@grapecity-software/spread-common 19.0.1 → 19.0.3
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.
- package/dist/gc.spread.common.min.js +2 -2
- package/dist/gc.spread.sheets.d.ts +218 -126
- package/package.json +1 -1
- package/styles/gc.spread.sheets.css +9 -0
- package/styles/gc.spread.sheets.excel2013darkGray.css +9 -0
- package/styles/gc.spread.sheets.excel2013lightGray.css +9 -0
- package/styles/gc.spread.sheets.excel2013white.css +9 -0
- package/styles/gc.spread.sheets.excel2016black.css +9 -0
- package/styles/gc.spread.sheets.excel2016colorful.css +9 -0
- package/styles/gc.spread.sheets.excel2016darkGray.css +9 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* SpreadJS Library 19.0.
|
|
3
|
+
* SpreadJS Library 19.0.3
|
|
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 t,r={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var r;!function(){"use strict";var t,n={"./src/common/common.entry.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),l=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||d(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.Events=r.UserManager=r.UUIDGenerator=r.B3=r.rbush=r.CultureManager=r.CultureInfo=r.zf=r.$T=r.st=r.ct=r.Uf=r.lt=r.ft=void 0,e=n("./src/common/util/colorhelper.ts"),Object.defineProperty(r,"ft",{enumerable:!0,get:function(){return e.ft}}),i=n("./src/common/util/types.ts"),Object.defineProperty(r,"lt",{enumerable:!0,get:function(){return i.lt}}),o=n("./src/common/util/arrayhelper.ts"),Object.defineProperty(r,"Uf",{enumerable:!0,get:function(){return o.Uf}}),u=n("./src/common/util/datetimehelper.ts"),Object.defineProperty(r,"ct",{enumerable:!0,get:function(){return u.ct}}),Object.defineProperty(r,"B3",{enumerable:!0,get:function(){return u.getSR}}),a=n("./src/common/util/numberhelper.ts"),Object.defineProperty(r,"st",{enumerable:!0,get:function(){return a.st}}),s=n("./src/common/util/regexhelper.ts"),Object.defineProperty(r,"$T",{enumerable:!0,get:function(){return s.$T}}),f=n("./src/common/util/stringhelper.ts"),Object.defineProperty(r,"zf",{enumerable:!0,get:function(){return f.zf}}),c=n("./src/common/util/rbush.ts"),Object.defineProperty(r,"rbush",{enumerable:!0,get:function(){return c.rbush}}),y=n("./src/common/util/common.ts"),m=n("./src/common/util/uuid-helper.ts"),Object.defineProperty(r,"UUIDGenerator",{enumerable:!0,get:function(){return m.UUIDGenerator}}),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){y.HandleExcelSpecialDate=t},get:function(){return y.HandleExcelSpecialDate}}),l(n("./src/common/util/common.ts"),r),h=n("./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}}),l(n("./src/common/util/functionhelper.ts"),r),M=n("./src/common/users/users.entry.ts"),Object.defineProperty(r,"UserManager",{enumerable:!0,get:function(){return M.UserManager}}),Object.defineProperty(r,"Events",{enumerable:!0,get:function(){return M.Events}})},"./src/common/culture/cultureInfo.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,g,b,p,F,_,w,D,H,N,x,$,k,S,C,P,A,O=this&&this.vJr||(T=function(t,r){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},T(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}T(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),T;function j(t){return t.split("\xa0").join(" ").toUpperCase()}function E(t){var r,n,e=[];for(r=0,n=t.length;r<n;r++)e[r]=j(t[r]);return e}function R(t,r,n){var e=j(t),i=r.indexOf(e);return-1===i&&(i=n.indexOf(e)),i}function I(t){if(t){var r=t.charCodeAt(0);if(r>=11904&&r<12032||r>=8208&&r<8252||r>=12288&&r<40960||r>=43360&&r<43392||r>=44032&&r<55215||r>=63744&&r<64256||r>=65280&&r<65535)return!0}return!1}function B(t,r,n){if(" "===t||n&&"\u3000"===t)return 0;var e=n&&n(t);return r.lineBreakingForbidStart&&-1!==r.lineBreakingForbidStart.indexOf(t)?!n||e?7:6:r.lineBreakingForbidEnd&&-1!==r.lineBreakingForbidEnd.indexOf(t)?!n||e?5:4:e?2:r.lineBreakingChar&&-1!==r.lineBreakingChar.indexOf(t)?3:1}function G(t,r,n){var e,i,o,u,a,f;if(!t)return[];for(e=[t[0]],i=0,o=B(t[0],r,n),u=1;u<t.length;u++)a=B(t[u],r,n),g[f=o+""+a]&&e[++i]===s&&(e[i]=""),e[i]+=t[u],o=a;return e}function L(t,r,n){var e,i,o,u=this;for(i=0,o=r.length;i<o;i++)e=r[i],u[t][e]=n[i]}function z(t,r){var n;"object"==typeof document&&("function"!=typeof CustomEvent?(n=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):n=new CustomEvent("cultureChanged",{}),n.cultureInfo=t,a.gcCultureInfo=t,a.gcCultureObj=r,document.dispatchEvent(n))}Object.defineProperty(r,"__esModule",{value:!0}),r.CultureManager=r.XPt=r.CultureInfo=r.TimelineDateOrder=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/util/regexhelper.ts"),a="undefined"!=typeof window?window:n.g,s=void 0,f=null,c=e.lt.y0,y=e.lt.Dh,m=(new Date).getFullYear(),d=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],l=(h=["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(M=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"]),c(h,(function(t,r){c(M,(function(t,n){t<M.length-4&&l.push(r+" "+n)}))})),l=l.concat(d),c(d,(function(t,r){c(M,(function(t,n){t<M.length-4&&l.push(r+" "+n)}))})),function(t){t[t.year=1]="year",t[t.quarterOrMonth=2]="quarterOrMonth",t[t.date=3]="date"}(v=r.TimelineDateOrder||(r.TimelineDateOrder={})),g={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1},b=function(){function t(){this.instanceType="CultureInfo",this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"\xa4",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"\u2030",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=s,this.predefinedFormats={},this.TimelineDateOrder=[v.quarterOrMonth,v.date,v.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=s}return t.register=function(r,n){t.registry[r]=n},t.prototype.mTe=function(){return[" "]},t.prototype.FAe=function(t){var r=this,n=r.mTe(),e={lineBreakingChar:n};return r.TextFormat&&r.TextFormat.lineBreakingStrategy?r.TextFormat.lineBreakingStrategy(t,e):G(t,e)},t.prototype.hse=function(t){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var r={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(t,r)}return G(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},t.prototype.qPt=function(){var t,r,n,e;return this.$Pt||(n=(n=[r=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),r+" h:mm",r+" h:mm:ss",r+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(l),1041===this.id&&(e=t.eraFormatter,n=(n=n.concat(this.QPt)).concat(e)),n=n.concat(t.preselectedFormatters),this.$Pt=n),this.$Pt},t.prototype.tGt=function(t){var r=this;return r.nGt||(r.nGt=E(r.DateTimeFormat.monthNames),r.eGt=E(r.DateTimeFormat.monthGenitiveNames)),R(t,r.nGt,r.eGt)},t.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=E(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=E(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),R(t,r.rGt,r.oGt)},t.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=E(r.DateTimeFormat.dayNames)),r.uGt.indexOf(j(t))},t.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=E(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(j(t))},t.prototype.toInstanceJSON=function(){var t=this,r=["NumberFormat","DateTimeFormat","TextFormat","LocalNumberFormat","predefinedFormats","displayName","isJCKCulture","fontScriptCode","equalCharacters","TimelineDateOrder","TimelineDateSuffix"],n={cultureName:this.name(),instanceType:this.instanceType};return r.forEach((function(r){var e;void 0!==t[r]&&(n[r]=JSON.parse(JSON.stringify(t[r])))})),n.DateTimeFormat.qGt=void 0,n},t.fromInstanceJSON=function(r){var n=t.registry[r.instanceType],e=n?new n:new t;return r&&Object.assign(e,r),e.name=function(){return e.cultureName},e},t.registry={},t}(),r.CultureInfo=b,p=function(){function t(){}return t.fGt=function(r){return r>=t.lGt()&&r<=t.hGt()},t.dGt=function(){var t,r,n=b.eras;if(n!==s){for(t=[],r=0;r<n.length;r++)t[r]=new Date(n[r].startDate.replace(/-/g,"/"));return t}return this.vGt},t.mGt=function(r){var n,e,i,o,u;switch(r){case"g":n="symbol",e=t.gGt;break;case"gg":n="abbreviation",e=t.pGt;break;case"ggg":n="name",e=t.DEt;break;default:return[]}if(o=[],(i=b.eras)!==s){for(u=0;u<i.length;u++)o[u]=i[u][n];return o}return e},t.hGt=function(){var t,r=b.eras;return r!==s&&r.length>0?((t=new Date(r[r.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},t.lGt=function(){var t=b.eras;return t!==s&&t.length>0?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},t.wGt=function(){var t=b.eras;return t!==s?t.length:this.MGt},t.CGt=function(){var t,r,n,e,i=b.eras;if(i!==s){for(t=[],r=1;r<i.length;r++)n=new Date(i[r-1].startDate.replace(/-/g,"/")),e=new Date(i[r].startDate.replace(/-/g,"/")),t[r-1]=e.getFullYear()-n.getFullYear()+1;return t[r-1]=99,t}return this.SGt},t.TGt=function(r){var n,e,i={AGt:-1,IGt:-1};if(!t.fGt(r)){if(!(r>t.hGt()))return i;r=t.hGt()}for(n=0;n<t.wGt();n++)if(r<(e=n+1!==t.wGt()?t.dGt()[n+1]:t.xGt(t.hGt(),1))){i.AGt=n,i.IGt=r.getFullYear()-t.dGt()[n].getFullYear()+1;break}return i},t.xGt=function(t,r){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return n.setMilliseconds(n.getMilliseconds()+r),new Date(n.valueOf())},t.NGt=function(r,n){var e;return t.dGt()[r].getFullYear()+n-1},t.kGt=function(r,n){var e,i;for(n=n.toUpperCase(),e=t.mGt(r),i=0;i<e.length;i++)if(e[i]===n)return i;return-1},t.DGt=function(r,n,e){var i,o,u,a=t,s=a.TGt(n),f=s.AGt;if(f>=0&&(i=a.mGt(r)).length>0)return i[f];if((o=s.IGt)>=0){if("1"===(u=o.toString())&&e)return u="\u5143";if("ee"===r)return 1===u.length&&(u="0"+u),u;if("e"===r)return u}return""},t.vGt=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],t.MGt=5,t.SGt=[45,15,64,31,99],t.bGt=new Date(2117,11,31,23,59,59),t.yGt=new Date(1868,8,8),t._Gt=["1,m","2,t","3,s","4,h","5,r"],t.EGt=[0,1,2,3,0,1,2,3],t.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],t.gGt=["M","T","S","H","R"],t.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],t.jGt=99,t.eraExcelFormatter="[$-ja-JP-x-gannen]",t.eraInternalFormatter="[$-411]",t}(),r.XPt=p,F="ENCulture",_=function(t){function r(){var r,n=t.call(this)||this;return n.instanceType=F,L.call(n,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),r=["MMM yyyy","MMMM yyyy"],L.call(n,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1,r]),n.DateTimeFormat.defaultDatePattern=n.DateTimeFormat.shortDatePattern+" H:mm:ss",n.name=function(){return"en-US"},n.displayName="English (United States)",n.id=1033,n.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},n}return O(r,t),r}(b),b.register(F,_),w="JACulture",D=function(t){function r(){var r,n,e,i,o,u=t.call(this)||this;return u.instanceType=w,r={1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\u62fe","\u5104","\u9621","\u767e","\u62fe","\u842c","\u9621","\u767e","\u62fe",""],numbers:["\u3007","\u58f1","\u5f10","\u53c2","\u56db","\u4f0d","\u516d","\u4e03","\u516b","\u4e5d"]},3:{letters:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},n={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"},L.call(u,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",r,n]),e=["1","2","3","4","5","6","7","8","9","10","11","12",""],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",""],o=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"],L.call(u,"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"],e,e,"\u5348\u524d",!1,["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i,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",o,"ggge/mmmm/d\u65e5"]),u.DateTimeFormat.eras=!0,u.DateTimeFormat.defaultDatePattern=u.DateTimeFormat.shortDatePattern+" "+u.DateTimeFormat.longTimePattern,u.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'],u.name=function(){return"ja-JP"},u.id=1041,u.displayName="Japanese (Japan)",u.isJCKCulture=!0,u.predefinedFormats={Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\xa5-411]#,##0_);[Red]([$\xa5-411]#,##0)","[$\xa5-411]#,##0_);([$\xa5-411]#,##0)","[$\xa5-411]#,##0;[Red][$\xa5-411]#,##0","[$\xa5-411]#,##0;-[$\xa5-411]#,##0","[$\xa5-411]#,##0;[Red]-[$\xa5-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"\u6642"mm"\u5206";@','h"\u6642"mm"\u5206"ss"\u79d2";@'],Special:{"\u90f5\u4fbf\u756a\u53f7":"[<=999]000;[<=9999]000-00;000-0000","\u96fb\u8a71\u756a\u53f7\uff08\u6771\u4eac)":"[<=99999999]####-####;(00) ####-####","\u6b63\u8ca0\u8a18\u53f7 \uff08+ = \u25b3; - = \u25b2)":'"\u25b3" #,##0;"\u25b2" #,##0',"\u6f22\u6570\u5b57\uff08\u5341\u4e8c\u4e07\u4e09\u5343\u56db\u767e\uff09":"[DBNum1][$-411]General","\u5927\u5b57 (\u58f1\u62fe\u5f10\u842c\u53c2\u9621\u56db\u767e)":"[DBNum2][$-411]General","\u5168\u89d2 (\uff11\uff12\uff13\uff14\uff15)":"[DBNum3][$-411]0","\u5168\u89d2 \u6841\u533a\u5207\u308a\uff08\uff11\uff12,\uff13\uff14\uff15\uff09":"[DBNum3][$-411]#,##0"},shortcut:{Number:"0.00",Currency:"[$\xa5-411]#,##0.00",Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},u.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],u.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},u.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 G(t,r,I)}},u.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],u}return O(r,t),r}(b),b.register(w,D),H="ZHCulture",N=function(t){function r(){var r,n,e,i,o,a=t.call(this)||this;return a.instanceType=H,r={1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u25cb","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u4edf","\u4f70","\u62fe","\u4ebf","\u4edf","\u4f70","\u62fe","\u4e07","\u4edf","\u4f70","\u62fe",""],numbers:["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"]},3:{letters:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},n={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"},L.call(a,"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",r,n]),e=["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=["\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",""],o=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"],L.call(a,"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"],e,e,"\u4e0a\u5348",!1,["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],1,"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i,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",o]),a.DateTimeFormat.defaultDatePattern=a.DateTimeFormat.shortDatePattern+" "+a.DateTimeFormat.longTimePattern,a.name=function(){return"zh-cn"},a.id=2052,a.displayName="Chinese (China)",a.isJCKCulture=!0,a.localeCompare=function(t,r){var n=t.localeCompare(r,"zh");return n<0&&t>="\u4e00"&&r<"\u4e00"||n>0&&r>="\u4e00"&&t<"\u4e00"?-n:n},a.predefinedFormats={Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$\xa5-804]#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]#,##0","[$\xa5-804]#,##0;[$\xa5-804]-#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"\u5e74"m"\u6708"d"\u65e5";@','[DBNum1][$-804]yyyy"\u5e74"m"\u6708";@','[DBNum1][$-804]m"\u6708"d"\u65e5";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"\u65f6"mm"\u5206";@','h"\u65f6"mm"\u5206"ss"\u79d2";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2";@','[DBNum1][$-804]h"\u65f6"mm"\u5206";@','[DBNum1][$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@'],Special:{"\u90ae\u653f\u7f16\u7801":"000000","\u4e2d\u6587\u5c0f\u5199\u5b57\u6bcd":"[DBNum1][$-804]General","\u4e2d\u6587\u5927\u5199\u5b57\u6bcd":"[DBNum2][$-804]General"},shortcut:{Number:"0.00",Currency:"[$\xa5-804]#,##0.00",Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},a.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],a.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},a.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return G(t,r,I)}},a.normalizeDateTimeString=function(t){var r,n;return u.$T.qT("^([0-9]{1,2}|[0-9]{4})\u5e74[0-9]{1,2}\u6708$").test(t)?(r=t.split("\u5e74"))[1].replace("\u6708","")+"/1/"+r[0]:u.$T.qT("^[0-9]{1,2}\u6708[0-9]{1,2}\u65e5$").test(t)?(r=t.split("\u6708"))[0]+"/"+r[1].replace("\u65e5","")+"/"+m:u.$T.qT("^(\u4e0a\u5348|\u4e0b\u5348)?[0-9]{1,2}\u65f6[0-9]{1,2}\u5206([0-9]{1,2}\u79d2)?$").test(t)?((n=(n=t.replace("\u65f6",":").replace("\u5206",":").replace("\u79d2","")).endsWith(":")?n+"00":n).startsWith("\u4e0a\u5348")&&(n=n.replace("\u4e0a\u5348","")+" AM"),n.startsWith("\u4e0b\u5348")&&(n=n.replace("\u4e0b\u5348","")+" PM"),n):t.includes("\u4e0a\u5348")||t.includes("\u4e0b\u5348")?t.replace("\u4e0a\u5348","am").replace("\u4e0b\u5348","pm"):f},a}return O(r,t),r.prototype.mTe=function(){return[" ","\u3000"]},r}(b),b.register(H,N),x="KOCulture",$=function(t){function r(){var r,n,e,i,o=t.call(this)||this;return o.instanceType=x,r={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"]}},n={Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"},L.call(o,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,r,n]),e=["1","2","3","4","5","6","7","8","9","10","11","12",""],i=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""],L.call(o,"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"],e,e,"\uc624\uc804",!1,["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],1,"yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd h:mm:ss","yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd","h:mm:ss","M'\uc6d4' d'\uc77c'",i,i,"\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"]),o.DateTimeFormat.defaultDatePattern=o.DateTimeFormat.shortDatePattern+" "+o.DateTimeFormat.longTimePattern,o.name=function(){return"ko-kr"},o.id=1042,o.displayName="Korean (Korea)",o.isJCKCulture=!0,o.predefinedFormats={Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red][$\u20a9-412]#,##0","[$\u20a9-412]#,##0;-[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red]-[$\u20a9-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',"yyyy-mm-dd;@",'yyyy"\ub144" m"\uc6d4" d"\uc77c";@','yy"\u5e74" m"\u6708" d"\u65e5";@','yyyy"\ub144" m"\uc6d4";@','m"\uc6d4" d"\uc77c";@',"yy-m-d;@","yy-m-d h:mm;@",'m"\u6708"d"\u65e5";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"\uc2dc" mm"\ubd84";@','h"\uc2dc" mm"\ubd84" ss"\ucd08";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84" ss"\ucd08";@'],Special:{"\uc6b0\ud3b8 \ubc88\ud638":"000-000","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 4\uc790\ub9ac)":"[<=999999]####-####;(0##) ####-####","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 3\uc790\ub9ac)":"[<=9999999]###-####;(0##) ###-####","\uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638":"000000-0000000","\uc22b\uc790(\ud55c\uc790)":"[DBNum1][$-412]General","\uc22b\uc790(\ud55c\uc790-\uac16\uc740\uc790)":"[DBNum2][$-412]General","\uc22b\uc790(\ud55c\uae00)":"[DBNum4][$-412]General"},shortcut:{Number:"0.00",Currency:"[$\u20a9-412]#,##0.00",Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},o.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],o.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},o}return O(r,t),r}(b),b.register(x,$),k={invariant:new b,"en-us":new _,"ja-jp":new D,"zh-cn":new N,"ko-kr":new $},S={},C=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],P=["wmk1","wmk2"],A=function(){function t(){this.KPt=1,this.JPt={}}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.culture=function(r,n){if(0===arguments.length)return t.RGt;r&&(r=r.toLowerCase(),(t.RGt!==r||n)&&(t.RGt=r,this.KPt++,z(t.RGt,t.OGt.getCultureInfo())))},t.prototype.addCultureInfo=function(t,r,n){var e,o,u,a,s;if(r&&r instanceof b){if(e=r.NumberFormat&&r.NumberFormat.numberDecimalSeparator,o=r.NumberFormat.arrayListSeparator,u=r.NumberFormat.arrayGroupSeparator,e===r.NumberFormat.listSeparator||u===o)throw(a=new i.ResourceManager(i.SR)).getResource().Exp_Separator;k[t.toLowerCase()]=r}n&&"object"==typeof n&&(s=t.toLowerCase(),S[s]=y(!0,{},n),this.KPt++)},t.prototype.getCultureInfoDict=function(){return k},t.prototype.getCultureInfo=function(r){var n,e,i;if(0===arguments.length)return k[t.RGt];for(i in"string"==typeof r&&(r=r.toLowerCase()),e=f,n=k)if(i===r||n[i].id!==s&&n[i].id===r){e=n[i];break}return e},t.prototype.getLanguage=function(t){if("string"==typeof t){var r=t.toLowerCase();return S[r]}return f},t.prototype.getResources=function(t){var r,n=this.culture().toLowerCase();return t!==f&&t!==s||(t=n),"string"==typeof t&&(r=t.toLowerCase(),this.JPt[r])?this.BGt(this.JPt[r]):f},t.prototype.BGt=function(t){var r,n="PivotTables",e="ReportSheet",i="GanttSheet",o="DataChart",u="Sheets",a="CalcEngine",s="Functions",f="TableFunctions",c=y(!0,{},t);return c[n]&&this.LGt(c[n],P),c[e]&&this.LGt(c[e],P),c[i]&&this.LGt(c[i],P),c[o]&&this.LGt(c[o],P),c[u]&&this.LGt(c[u],C),(r=c[a])&&(c[s]=r.wmt,c[f]=r.d2t,delete r.wmt,delete r.d2t),c},t.prototype.LGt=function(t,r){var n,e,i;for(n=0,e=r;n<e.length;n++)delete t[i=e[n]]},t.prototype.FGt=function(t,r,n){var e,i,u,a,s=S[t.toLowerCase()];for(e in r)o.Uf.OS(C,e)||(u=null!==(i=this.PGt(s,e,n))&&"string"==typeof i&&"string"==typeof r[e],a=null!==i&&"object"==typeof i&&!Array.isArray(i),(u||a)&&(r[e]=i));r.wmt&&s.Functions&&this.GGt(s.Functions,r.wmt),r.d2t&&s.TableFunctions&&y(!0,r.d2t,s.TableFunctions)},t.prototype.PGt=function(t,r,n){var e,i;if(t.hasOwnProperty(r))return t[r];if(n&&(e=t[n])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];for(i in t)if((e=t[i])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];return null},t.prototype.GGt=function(t,r){var n,e,i,o,u,a,s,f={};for(n in r)if(t.hasOwnProperty(n))for(a in e=r[n],i=t[n],o=e.parameters,u=i.parameters,e.description=i.description,o)u.hasOwnProperty(a)&&"string"==typeof(s=u[a])&&(o[a].name=s);return f},t.prototype.Fe=function(r){var n=this.getCultureInfo(r);return n||(n=k[t.RGt])||(n=new b),n},t.prototype.xat=function(t,r){var n=this.getCultureInfo(t)||this.getCultureInfo("en-US"),e=n.DateTimeFormat,i=e.filterDialogDateFormatter;return(r.indexOf("g")>=0||r.indexOf("e")>=0)&&(i=e.EraFilterDialogDateFormatter||i),i},t.RGt="en-us",t}(),r.CultureManager=A.instance()},"./src/common/users/users.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/common/users/users.ts"),r)},"./src/common/users/users.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Error_InvalidRemoteConfigurationForUserFetching=r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=r.Error_FailedToFetchUsers=r.Error_RemoteConfigurationForUserFetchingNotProvided=r.GUEST_USER=void 0,r.GUEST_USER="Guest",r.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",r.Error_FailedToFetchUsers="Failed to fetch users: ",r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",r.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},"./src/common/users/users.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l=this&&this.pJr||function(t,r,n,e){function i(t){return t instanceof n?t:new n((function(r){r(t)}))}return new(n||(n=Promise))((function(n,o){function u(t){try{s(e.next(t))}catch(t){o(t)}}function a(t){try{s(e.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(u,a)}s((e=e.apply(t,r||[])).next())}))},v=this&&this.gJr||function(t,r){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},e,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(n=0)),n;)try{if(e=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=r.call(t,n)}catch(t){a=[6,t],i=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.UserManager=r.Events=void 0,e=n("./src/common/users/users.res.en.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/uuid-helper.ts"),u=n("./src/common/util/types.ts"),a=n("./src/common/util/arrayhelper.ts"),u.lt.Dh(i.SR.en,e),s=new i.ResourceManager(i.SR),f=s.getResource.bind(s),c=u.lt.ht,y=a.Uf.Gf,m=u.lt.tv,h=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"],M=function(){function t(){}return t.CurrentUserChanged="CurrentUserChanged",t}(),r.Events=M,d=function(){function t(t){var r=o.UUIDGenerator.secureUpperCaseUUID(),n={id:r,name:"",color:"#26A69A"};Object.defineProperty(n,"name",{get:function(){return f().GUEST_USER},enumerable:!0,configurable:!0}),this.Ewo=r,this.upo=[n],this.hpo=n.id,this.options=t,this.cpo=0,this.aT=new Map([[M.CurrentUserChanged,[]]])}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.configure=function(t){this.options=t},t.prototype.Hfo=function(t){var r,n=this.upo;for(r=0;r<n.length;r++)if(n[r].id===t)return m(n[r])},t.prototype.get=function(t){var r;return l(this,void 0,void 0,(function(){var n;return v(this,(function(e){switch(e.label){case 0:return(null===(r=this.options)||void 0===r?void 0:r.get)?t===this.Ewo?[2,this.Hfo(t)]:[4,this.options.get(t)]:[3,2];case 1:return(n=e.sent())&&this.ZP(n),[2,n];case 2:return[2,this.Hfo(t)]}}))}))},t.prototype.Tdo=function(t){t||(t=o.UUIDGenerator.secureUpperCaseUUID());var r=this.Hfo(t);return r||(r={id:t,name:f().GUEST_USER}),this.ZP(r),r},t.prototype.fpo=function(t){var r=this;Array.isArray(t)&&t.forEach((function(t){t&&!t.color&&(t.color=r.lpo(t.id))}))},t.prototype.dvo=function(t){var r;return l(this,void 0,void 0,(function(){var n,e;return v(this,(function(i){switch(i.label){case 0:return(null===(r=(n=this).options)||void 0===r?void 0:r.search)?[4,n.options.search(t)]:[3,2];case 1:return e=i.sent(),n.fpo(e),[2,e];case 2:return[2,[]]}}))}))},t.prototype.bind=function(t,r){this.aT.has(t)||this.aT.set(t,[]);var n=this.aT.get(t);Array.isArray(n)&&n.push(r)},t.prototype.current=function(t){var r,n=this;return c(t)||(r=n.hpo)!==t&&(n.hpo=t,Promise.all([n.get(r),n.get(t)]).then((function(e){var i=e[0],o=e[1];r===n.Ewo&&(n.upo=n.upo.filter((function(t){return t.id!==n.Ewo})),delete n.Ewo),n.dpo(i,o,r,t)})).catch((function(e){n.dpo(void 0,void 0,r,t)}))),n.hpo},t.prototype.dpo=function(t,r,n,e){var i=this;t||(t=i.Hfo(n)),r||(r=i.Hfo(e)),i.ki(M.CurrentUserChanged,{oldCurrentUser:t,newCurrentUser:r})},t.prototype.Ufo=function(){return y(this.upo)},t.prototype.unbind=function(t,r){if(this.aT.has(t)){var n=this.aT.get(t);if(!Array.isArray(n))return;r?n.splice(n.indexOf(r),1):n.splice(0)}},t.prototype.ki=function(t,r){if(this.aT.has(t)){var n=this.aT.get(t);if(!Array.isArray(n))return;n.forEach((function(n){n(t,r)}))}},t.prototype.xji=function(t){var r;t&&(this.fpo(t),this.upo=t||[])},t.prototype.Np=function(){return y(this.upo)},t.prototype.vpo=function(){var t,r=this.cpo,n=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:h.length;return this.cpo=(r+1)%n,r},t.prototype.ago=function(t){var r,n,e=0;if(!t||0===t.length)return e;for(r=0;r<t.length;r++)e=(e<<5)-e+(n=t.charCodeAt(r)),e&=e;return Math.abs(e)},t.prototype.ugo=function(t){var r,n=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)?this.options.colorScheme.length:h.length,e=this.ago(t);return e%n},t.prototype.lpo=function(t){var r,n,e,i=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)||h;return t?i[n=this.ugo(t)]:i[e=this.vpo()]},t.prototype.ZP=function(t){var r,n=this.upo;for(r=0;r<n.length;r++)if(n[r].id===t.id)return n[r]=t,void(t.color||(t.color=this.lpo(t.id)));t.color||(t.color=this.lpo(t.id)),n.push(t)},t.prototype.ZX=function(t,r){var n={id:t||o.UUIDGenerator.secureUpperCaseUUID(),name:r||f().GUEST_USER};return this.ZP(n),n},t.prototype.VP=function(t){this.upo=this.upo.filter((function(r){return r.id!==t}))},t.prototype.L0=function(){this.aT.clear(),this.upo=[],this.hpo=""},t}(),r.UserManager=d.instance()},"./src/common/util/arrayhelper.ts":function(t,r){var n,e,i;function o(t,r){var e,i;for(e in r)r.hasOwnProperty(e)&&(i=r[e],Array.isArray(i)?(t[e]=[],o(t[e],r[e])):i!==n&&"object"==typeof i?(t[e]={},o(t[e],r[e])):t[e]=r[e])}Object.defineProperty(r,"__esModule",{value:!0}),r.Uf=void 0,n=null,e=void 0,i=function(){function t(){}return t.Eit=function(t,r,n){t.splice(r,0,n)},t.ZP=function(t,r){t.push(r)},t.OS=function(t,r){return t.indexOf(r)>-1},t.VP=function(t,r){var n=t.indexOf(r);n>-1&&t.splice(n,1)},t.UGt=function(t,r){return t.slice(0,r).concat(t.slice(r+1))},t.hD=function(t,r,n){return t.indexOf(r,n)},t.d5=function(t,r,e){if(!(r<0))for(var i=0;i<e&&r+i<t.length;i++)t[r+i]=n},t.N2t=function(t,r){var i,o;for(r<0&&(r=-1),o=i=r+1;o<t.length;o++)if(t[o]!==e&&t[o]!==n)return o;return-1},t.tR=function(t){return t&&t.length},t.Gf=function(t){var r=[];return o(r,t),r},t}(),r.Uf=i},"./src/common/util/colorhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m;function h(t,r,n){return n<0&&(n+=240),n>240&&(n-=240),n<40?t+((r-t)*n+20)/40:n<120?r:n<160?t+((r-t)*(160-n)+20)/40:t}function M(t,r,n){var e,i,o,u,a;return 0===n?e=i=o=s(255*r/240+"",10):(u=void 0,a=void 0,e=d(u=2*r-(a=r<=120?s((r*(240+n)+120)/240+""):r+n-s((r*n+120)/240+"")),a,t+80),i=d(u,a,t),o=d(u,a,t-80)),{a:255,r:e,g:i,b:o}}function d(t,r,n){return o(s((255*h(t,r,n)+120)/240+""),255)}function l(t){var r,n,e,i,o,u,a,s,c,m;return/^#[A-Fa-f0-9]+$/.test(t)?(r=t.replace(/^#/,""),e="",i="",6===(n=r.length)||8===n?(e=r.substr(0,6),8===n&&(i=r.substr(6,2))):3!==n&&4!==n||(e=(o=r.split(3===n?/(.)/:/(..)/)).filter(Boolean).map((function(t){return parseInt(3===n?t+t:t,16)})).map((function(t){return t.toString(16).padStart(2,"0")})).join(""),4===n&&(i=o[3]+o[3])),[u=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),c=i?parseInt(i,16):255]):t.toLowerCase()in f?f[t.toLowerCase()]:null!==(m=y.exec(t))?(c=void 0===m[4]?255:255*+m[4],[m[1],m[2],m[3],c]):null}Object.defineProperty(r,"__esModule",{value:!0}),r.ft=void 0,e=n("./src/common/util/numberhelper.ts"),i=e.st.VGt,o=Math.min,u=Math.max,a=Math.abs,s=parseInt,f={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},c=function(){function t(t){var r,n,e,i,a=this,f=t.r,c=t.g,y=t.b,m=u(u(f,c),y),h=o(o(f,c),y),M=m+h;a.HGt=s((240*M+255)/510+"",10),0===(r=m-h)?(a.zGt=0,a.wv=160):(a.HGt<=120?a.zGt=s((240*r+M/2)/M+"",10):a.zGt=s((240*r+(510-M)/2)/(510-M)+"",10),n=(40*(m-f)+r/2)/r,e=(40*(m-c)+r/2)/r,i=(40*(m-y)+r/2)/r,a.wv=s(f===m?i-e+"":c===m?80+n-i+"":160+e-n+"",10),a.wv<0&&(a.wv+=240),a.wv>240&&(a.wv-=240))}return t.prototype.YGt=function(t){var r=this,n=r.HGt,e=r.ZGt(r.HGt,500,!0);return M(r.wv,n+(e-n)*t,r.zGt)},t.prototype.ZGt=function(t,r,n){return 0===r?t:n?r>0?(t*(1e3-r)+241*r)/1e3:t*(r+1e3)/1e3:((t+=240*r/1e3)<0&&(t=0),t>240&&(t=240),t)},t}(),y=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,m=function(){function t(){}return t.j=function(t){var r=t.a,n=t.r,e=t.g,o=t.b;return 3===arguments.length&&(r=255,n=arguments[0],e=arguments[1],o=arguments[2]),4===arguments.length&&(r=arguments[0],n=arguments[1],e=arguments[2],o=arguments[3]),255===r?"#"+i(n,!0,2)+i(e,!0,2)+i(o,!0,2):"rgba("+n+","+e+","+o+","+r+")"},t.Tv=function(t,r){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(r):t.a===r.a&&t.r===r.r&&t.g===r.g&&t.b===r.b},t.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},t.Km=function(t,r){var n,e=255-a(t.r-r.r),i=255-a(t.g-r.g),o=255-a(t.b-r.b),u=a(t.a-r.a);return!!((n=((e/=255)+(i/=255)+(o/=255))/3)>=.9&&u<=.05)},t.Uv=function(r){var n=255^r.r,e=255^r.g,i=255^r.b;return t.j(r.a,n,e,i)},t.WGt=function(r){var e,i,o,u;return"object"!=typeof document?l(r):((e=t.xf)||(i=document.createElement("canvas"))&&i.getContext&&(e=t.xf=i.getContext("2d",{willReadFrequently:!0})),e||((o=n("canvas"))&&o.createCanvas&&(i=o.createCanvas(2,2),e=t.xf=i.getContext("2d")),e)?(e.clearRect(1,1,1,1),e.fillStyle=r,e.fillRect(1,1,1,1),(u=e.getImageData(1,1,1,1))?u.data:null):l(r))},t._=function(r){var n,e,i,o,u;return r instanceof t||null!==r&&"object"==typeof r?r:(n=0,e=0,i=0,o=0,r&&(u=t.WGt(r))&&(e=u[0],i=u[1],o=u[2],n=u[3]),{a:n,r:e,g:i,b:o})},t.Cv=function(r,n){var e,i;return 0===n?r:(e=new c(r),i=s((n>0?(240-e.HGt)*n:e.HGt*n)+"",10),t.QGt(e.wv,e.HGt+i,e.zGt))},t.YGt=function(r,n){var e=t._(r),i=new c(e),o=i.YGt(n);return t.j(o)},t.Dz=h,t.QGt=M,t}(),r.ft=m},"./src/common/util/common.ts":function(t,r,n){var e,i,o,u,a;function s(t,r,n,e){var i,o,u,a,s;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=void 0,u=n;u<r;u++)void 0!==t[u]&&i.push(u);for(o=i.length,u=0;u<o;u++)s=t[a=i[o-u-1]],t[a]=null,t[Math.floor(a)+e]=s}}function f(t,r,n,e){var i,o,u,a,s,f,c,y,m;if(t&&0<=r){for(i=[],o=void 0,u=void 0,s=0,f=a=Array.from(t.keys());s<f.length;s++)(c=f[s])>=r&&i.push(c);for(i.sort((function(t,r){return t-r})),o=i.length,u=0;u<o;u++)c=i[o-u-1],y=t.get(c),t.delete(c),m=c+n,t.set(m,y),e&&e(y,m)}}function c(t,r,n,e){var i,o,u,a,s,f;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=n+e,a=void 0,a=n;a<r;a++)void 0!==t[a]&&(n<=a&&a<u?t[a]=null:a>=u&&i.push(a));for(o=i.length,a=0;a<o;a++)f=t[s=i[a]],t[s]=null,t[Math.floor(s)-e]=f}}function y(t,r,n,e){var i,o,u,a,s,f,c,y,m,h;if(t&&0<=r){for(i=[],o=void 0,u=r+n,a=void 0,f=0,c=s=Array.from(t.keys());f<c.length;f++)y=c[f],t.has(y)&&(r<=y&&y<u?(e&&e(t.get(y),-1),t.delete(y)):y>=u&&i.push(y));for(i.sort((function(t,r){return t-r})),o=i.length,a=0;a<o;a++)y=i[a],m=t.get(y),t.delete(y),h=y-n,t.set(h,m),e&&e(m,h)}}function m(t,r){return t.hasOwnProperty(r)}function h(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.Cho=r.X8=r.who=r.J8=r.ResourceManager=r.SR=void 0,e=n("./src/common/culture/cultureInfo.ts"),i=n("./src/common/util/util.res.en.ts"),o=n("./src/common/util/types.ts"),r.SR={en:i},u=o.lt.Dh,a=function(){function t(t,r){this.res=t,this.KGt=r,this.JPt=e.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,r),this.KPt=0}return t.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},t.prototype.XGt=function(t,r){var n,i;r&&(i=(n=e.CultureManager.culture()).toLowerCase(),this.JPt[i]=this.JPt[i]||{},this.JPt[i][r]=t,e.CultureManager.JPt=this.JPt)},t.prototype.JGt=function(t,r){var n,i,o,a=e.CultureManager.culture();if(t&&a){if(n=e.CultureManager.KPt,this.KPt===n&&!r)return;return this.KPt=n,e.CultureManager.getLanguage(a)?(i=u(!0,{},t.en),e.CultureManager.FGt(a,i,this.KGt),i):(o=a.substr(0,2).toLowerCase(),t.hasOwnProperty(o)?t[o]:t.en)}return{}},t}(),r.ResourceManager=a,r.J8=s,r.who=f,r.X8=c,r.Cho=y,r.kh=m,r.ut=h},"./src/common/util/datetimehelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,g;function b(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 p(t,n,e,i){var o,a,s,c,y,m,l,v,g,_,w,D,H,N,x,$,k,S,C,P,A,O,T,j,E=e.DateTimeFormat,R=E.Calendar.convert;if(!n||!n.length)return e&&e.name.length?R?p(t,E.fullDateTimePattern,e):t.toLocaleString():t.toString();function I(){return y||m||(y=l.test(n),m=h),y}function B(t,r){return _?_[r]:b(t,r)}for(o=E.eras,s="",l=/([^d]|^)(d|dd)([^d]|$)/g,v=0,g=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g,!(a="s"===n)&&R&&(_=R.fromGregorian(t)),w=-2,D=-2,H={y4:""},N=0;x=g.lastIndex,$=g.exec(n),k=n.slice(x,$?$.index:n.length),H.y4="",v+=F(k,H),s+=H.y4,$;N++)if(v%2!=1)switch(S=B(t,0),C=t.getDay(),P=t.getHours(),A=t.getMinutes(),O=t.getSeconds(),T=t.getMilliseconds(),j=t.getTimezoneOffset(),$[0]){case"dddd":s+=E.dayNames[C];break;case"ddd":s+=E.abbreviatedDayNames[C];break;case"dd":y=h,s+=f(B(t,2),2);break;case"d":y=h,s+=B(t,2);break;case"MMMM":s+=E.monthGenitiveNames&&I()?E.monthGenitiveNames[B(t,1)]:E.monthNames[B(t,1)];break;case"MMM":s+=E.abbreviatedMonthGenitiveNames&&I()?E.abbreviatedMonthGenitiveNames[B(t,1)]:E.abbreviatedMonthNames[B(t,1)];break;case"MM":s+=f(B(t,1)+1,2);break;case"M":s+=B(t,1)+1;break;case"yyyy":case"yyy":s+=w>=0?u.XPt.DGt("ee",t,i):f(_?_[0]:S,4);break;case"yy":s+=w>=0?u.XPt.DGt("ee",t,i):f((_?_[0]:S)%100,2);break;case"y":s+=w>=0?u.XPt.DGt("e",t,i):((_?_[0]:S)%100).toString();break;case"hh":0===(c=P%12)&&(c=12),s+=f(c,2);break;case"h":0===(c=P%12)&&(c=12),s+=c;break;case"HH":s+=f(P,2);break;case"H":s+=P.toString();break;case"mm":s+=f(A,2);break;case"m":s+=A.toString();break;case"ss":s+=f(O,2);break;case"s":s+=O.toString();break;case"tt":s+=P<12?E.amDesignator:E.pmDesignator;break;case"t":s+=(P<12?E.amDesignator:E.pmDesignator).charAt(0);break;case"f":case"0":s+=f(T,3).charAt(0);break;case"ff":case"00":s+=f(T,3).substr(0,2);break;case"fff":case"000":s+=f(T,3);break;case"z":s+=((c=j/60)<=0?"+":"-")+M(d(c));break;case"zz":s+=((c=j/60)<=0?"+":"-")+f(M(d(c)),2);break;case"zzz":s+=((c=j/60)<=0?"+":"-")+f(M(d(c)),2)+":"+f(d(j%60),2);break;case"g":case"gg":case"ggg":if(!o)break;if(w===N-1){w=N;break}s+=u.XPt.DGt($[0],t,i),w=N;break;case"e":case"ee":if(!o){s+=f(_?_[0]:S,4);break}if(D===N-1){D=N;break}s+=u.XPt.DGt($[0],t,i),D=N;break;case"/":s+=E.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test($[0]))throw new Error((0,r.getSR)().Exp_InvalidDateFormat);s+=$[0]}else s+=$[0];return s.toString()}function F(t,r){var n,e,i,o=0,u=m;for(n=0,e=t.length;n<e;n++)switch(i=t.charAt(n)){case'"':u?r.y4+="'":o++,u=m;break;case"\\":u&&(r.y4+="\\"),u=!u;break;default:r.y4+=i,u=m}return o}function _(t,r){var n,e=new Date,i=t.DateTimeFormat.eras;return i&&r<100&&(r+=(n=u.XPt.TGt(e).IGt)-n%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(r-=100),r}function w(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g}function D(t,n,e){var i,u,a,s,f,y,m,h,M,d,l;if(t.qGt){if(t.qGt[n])return t.qGt[n]}else t.qGt={};for(i=(i=(i=n).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),u="^",a={y4:""},s=[],f=0,y=0,m=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;(h=m.exec(i))!==c;)if(a.y4="",M=i.slice(f,h.index),f=m.lastIndex,y+=F(M,a),u+=a.y4,y%2!=1){switch(h[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":u+="(\\D+)";break;case"tt":case"t":u+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":u+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":u+=e?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":u+="(\\d{2}|\\d{4})";break;case"fff":case"000":u+="(\\d{3})";break;case"ff":case"00":u+="(\\d{2})";break;case"f":case"0":u+="(\\d)";break;case"zzz":u+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":u+="([+-]?\\d\\d?)";break;case"/":u+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,r.getSR)().Exp_InvalidDateFormat)}o.Uf.ZP(s,h[0])}else u+=h[0];return a.y4="",F(i.slice(f),a),u+=a.y4,l={$Gt:d=(u+="$").toString().replace(/\s+/g,"\\s+"),QMt:s,tUt:new RegExp(d)},t.qGt[n]=l,l}function H(t){var r=t.getTimezoneOffset();return-485===r&&(r=-485-43/60),-321===r&&(r=-321-10/60),-507===r&&(r=-507-52/60),-402===r&&(r=-402-4/60),r}Object.defineProperty(r,"__esModule",{value:!0}),r.ct=r.getSR=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/stringhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/culture/cultureInfo.ts"),a=n("./src/common/util/types.ts"),s=a.lt.ht,f=i.zf.B9t,c=null,y=parseInt,m=!1,h=!0,M=Math.floor,d=Math.abs,l=new e.ResourceManager(e.SR,"Common"),r.getSR=l.getResource.bind(l),v={},g=function(){function t(){}return t.L9t=function(t,r,n,e){return n||(n=u.CultureManager.Fe()),p(t,r,n,e)},t.Pe=function(t,r,n){return p(t,r,n||u.CultureManager.Fe())},t.Mjt=function(r,n,e){var i,o,u,a,s,f=m;for((s=e).slice(1).forEach((function(t){t&&(f=!0)})),f||(s=s.concat(n.qPt())),o=s.length,i=1;i<o;i++)if((a=s[i])&&(f=h,u=t.nUt(r,a,n)))return u;return c},t.yU=function(r,n,e){var i,o;return n||e||void 0===(o=v[r])?(i=n?[r,n]:[r],o=t.Mjt(r,e||u.CultureManager.Fe(),i),n||e||(v[r]=o),o?new Date(o):o):o?new Date(o):o},t.Z6t=function(r,n){return t.Mjt(r,u.CultureManager.Fe("invariant"),[r,n])},t.nUt=function(t,r,n){var e,o,a,s,f,h,M,d,l,v,g,b,p,F,w,H,N,x,$,k,S,C,P,A,O,T,j,E,R,I;if(t=t.trim(),(s=(a=D(e=n.DateTimeFormat,r,o=1041===n.id)).tUt.exec(t))===c)return c;for(f=a.QMt,h=c,M=c,d=c,l=c,v=c,g=0,p=0,F=0,w=0,H=c,N=m,x=m,$=0,k=f.length;$<k;$++)if(S=s[$+1])switch(f[$]){case"dd":case"d":if((l=y(S,10))<1||l>31)return c;break;case"MMMM":if((d=n.tGt(S))<0||d>11)return c;break;case"MMM":if((d=n.iGt(S))<0||d>11)return c;break;case"M":case"MM":case"%M":if((d=y(S,10)-1)<0||d>11)return c;break;case"e":case"ee":if((M=o&&"\u5143"===S?1:_(n,y(S,10)))<0||M>9999)return c;break;case"y":case"yy":case"yyy":case"yyyy":if((M=y(S,10))<0||M>9999)return c;break;case"h":case"hh":case"H":case"HH":if((g=y(S,10))<0)return c;break;case"m":case"mm":if((p=y(S,10))<0||p>59)return c;break;case"s":case"ss":if((F=y(S,10))<0||F>59)return c;break;case"tt":case"t":if(N=(C=S.toUpperCase())===e.pmDesignator.toUpperCase(),x=C===e.amDesignator.toUpperCase(),!N&&!x)return c;break;case"f":case"0":if((w=100*y(S,10))<0||w>999)return c;break;case"ff":case"00":if((w=10*y(S,10))<0||w>999)return c;break;case"fff":case"000":if((w=y(S,10))<0||w>999)return c;break;case"dddd":if((v=n.aGt(S))<0||v>6)return c;break;case"ddd":if((v=n.sGt(S))<0||v>6)return c;break;case"zzz":if(2!==(P=S.split(/:/)).length)return c;if((b=y(P[0],10))<-12||b>13)return c;if((A=y(P[1],10))<0||A>59)return c;H=60*b+(i.zf.fJ(S,"-")?-A:A);break;case"z":case"zz":if((b=y(S,10))<-12||b>13)return c;H=60*b;break;case"g":case"gg":case"ggg":if(!(O=S)||!e.eras)return c;if((h=u.XPt.kGt(f[$],O))<0)return c}if(j=(T=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(R=e.Calendar.convert)&&(E=R.fromGregorian(j)),R||(E=[j.getFullYear(),j.getMonth(),j.getDate()]),M===c?M=E[0]:M<100&&(e.eras&&h!==c?M=u.XPt.NGt(h||0,M):M+=M>=30?1900:2e3),d===c&&(d=E[1]),l===c&&(l=T?E[2]:1),R){if((j=R.toGregorian(M,d,l))===c)return c}else{if(j.setFullYear(M,d,l),j.getDate()!==l)return c;if(v!==c&&j.getDay()!==v)return c}return N&&g<12?g+=12:x&&12===g&&(g=0),j.setHours(g,p,F,w),H!==c&&(I=j.getMinutes()-(H+j.getTimezoneOffset()),j.setHours(j.getHours()+I/60,I%60)),j},t.Y0=function(t){var r,n=t-25569,e=new Date(864e5*n),i=H(e),o=Math.round(864e5*(t-25569+i/1440)),u=new Date(o),a=i>=0?1:-1,s=new Date(o+36e5*a),f=H(s);if(d(i-f)>=60)if(r=new Date(o+60*(f-i)*1e3),i>f){if(-1===a||f===H(u))return r}else if(i<f&&(1===a||f===H(u)))return r;return u},t.dJ=function(r){if("/OADate("===r.substr(0,8)){var n=parseFloat(r.substr(8,r.length-10));return t.Y0(n)}},t.Q0=function(r){return"/OADate("+t.o0(r)+")/"},t.o0=function(t){if(s(t))return 0;if("number"!=typeof t&&"string"!=typeof t||(t=new Date(t)),t instanceof Date){var r=H(t);return(1440*t.getTime()+3181192704e6-864e5*r)/124416e6}return 0},t._DT=function(n){var e,i,o,u=c,a=h;if(s(n)?u=t.Y0(0):n instanceof Date?u=new Date(n.valueOf()):"string"==typeof n?((e=t.yU(n))||(isNaN(n)?t.u6t(n)?a=m:(e=new Date(n),isNaN(e.valueOf())&&(a=m),(o=(i=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(n.replace(/ |\n/g,"").trim()))&&4===o.length&&(-1!==o.indexOf(e.getFullYear().toString())&&-1!==o.indexOf((e.getMonth()+1).toString())&&-1!==o.indexOf(e.getDate().toString())||(a=m))):(e=t.Y0(parseFloat(n)))||(a=m)),u=e):"number"==typeof n?u=t.Y0(n):a=m,a)return u;throw(0,r.getSR)().Exp_InvalidCast},t.u6t=function(r){var n=u.CultureManager.Fe().DateTimeFormat,e=t.eUt,i=function(t,r){var n=0;return r.forEach((function(r){r&&t.indexOf(r)>-1&&n++})),n>1},o=function(t,r){if(t&&t.indexOf(" ")>-1){var n=t.split(" "),e=n.length;return e>=2&&r.indexOf(n[e-2])<=-1&&!isNaN(n[e-1])}return!1},a=function(t){var r=!1;return e.forEach((function(n){t.indexOf(n)>-1&&(r=!0)})),r};return i(r,n.monthNames)||i(r,n.abbreviatedMonthNames)||i(r,n.dayNames)||i(r,n.abbreviatedDayNames)||o(r,n.monthNames.concat(n.abbreviatedMonthNames))||a(r)},t.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},t.eUt=["@","#","!","`","^","$","*","(",")","&"],t}(),r.ct=g},"./src/common/util/functionhelper.ts":function(t,r,n){var e,i,o,u;function a(t){return t}function s(t,r,n,a,s,f,c,y,m,h,M){var d,l,v,g,b,p,F,_,w,D,H,N,x,$,k,S,C,P,A,O,T,j,E,R,I=n[o],B=n[u],G=r[o],L=r[u],z=a[o],K=a[u],J=1===B,U=1===L;if(G===I&&L===B){for(C=0,P=0,A=0,O=0,F=I*B,d=0;d<I;d++)for(l=0;l<B;l++){if(g=f(n[d][l]),b=f(r[d][l]),t&&(i(g)||i(b)))return m;C+=g,P+=g*g,A+=b=h(b),O+=g*b}for(T=F*O-C*A,_=s?(A*P-C*O)/(F*P-C*C):0,((j=(p=s?T/(F*P-C*C):O/P).toString()).indexOf("000000000000")>1||j.indexOf("999999999999")>1)&&(p=e.st.E8(p,12),_=e.st.E8(_,12)),w=[],d=0;d<z;d++)for(w[d]=[],l=0;l<K;l++){if(g=f(a[d][l]),t&&i(g))return m;w[d][l]=0===T?r[0][0]:M(e.st.Jme(p*g,_))}return c?new c(w):w}if(U&&G===I||1===G&&L===B){for(g=[],b=[],k=B+1,S=B+2,d=0;d<I;d++){if(_=f(H=U?r[d][0]:r[0][d]),t&&i(_))return m;b[d]=J?h(_):_}for(d=0;d<I;d++)for(g[d]=[],l=0;l<B;l++){if(_=f(n[d][l]),t&&i(_))return m;g[d][l]=_}for(E=[],p=0;p<k;p++)for(E[p]=[],F=0;F<S;F++)E[p][F]=0;for(v=0;v<I;v++)for(E[0][k]+=b[v],d=0;d<B;d++)for(H=d+1,E[0][H]+=g[v][d],E[H][0]=E[0][H],E[H][k]+=g[v][d]*b[v],l=d;l<B;l++)E[x=l+1][H]+=g[v][d]*g[v][l],E[H][x]=E[x][H];for(E[0][0]=I,D=R=s?0:1;D<k;D++){if(t){if(0===E[D][D]){for($=!1,l=D+1;!$&&l<k;l++)if(0!==E[l][D]){for(v=0;v<S;v++)x=E[D][v],E[D][v]=E[l][v],E[l][v]=x;$=!0}if(!$)return y}}else{for(d=D;d<k&&0===E[d][D];)d++;if(d>=k)return y;for(N=R;N<S;N++)H=E[D][N],E[D][N]=E[d][N],E[d][N]=H}for(H=1/E[D][D],N=R;N<S;N++)E[D][N]*=H;for(d=R;d<k;d++)if(d!==D)for(H=-E[d][D],N=0;N<S;N++)E[d][N]+=H*E[D][N];s||(E[0][k]=0)}for(w=[],U||(w[0]=[]),d=0;d<z;d++){for(U&&(w[d]=[]),H=E[0][k],l=0;l<B;l++){if(_=f(U?a[d][l]:a[l][d]),t&&i(_))return m;H+=E[l+1][k]*_}U?w[d][0]=M(H):w[0][d]=M(H)}return c?new c(w):w}return y}function f(t,r,n,e,i,o,u,f){return s(!0,t,r,n,e,i,o,f,u,a,a)}function c(t,r,n,e,i,f,c){var y,m;for(y=0;y<t[o];y++)for(m=0;m<t[u];m++)if(t[y][m]<=0)return f;return s(!1,t,r,n,e,a,i,c,null,Math.log,Math.exp)}Object.defineProperty(r,"__esModule",{value:!0}),r.iit=r.eit=void 0,e=n("./src/common/util/numberhelper.ts"),i=isNaN,o="rowCount",u="colCount",r.eit=f,r.iit=c},"./src/common/util/numberhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,g,b,p,F,_,w,D,H,N,x,$,k,S,C,P,A,O;function T(t,r,n,e){return r&&0!==r.length&&"i"!==r?j(t,r,n.NumberFormat,e):n&&n.name.length>0?t.toLocaleString():t.toString()}function j(t,r,n,e){var i;return Y(t,I(r),n,e)}function E(t,r){for(var n,e,i,o,u,a,s,f,c=v(g(t)),y={iUt:1,rUt:0};c>=10&&Number.isFinite(c);)c/=10,y.iUt++;return e=(n=t.toString()).search(/e/gi),i=n.indexOf(r),-1!==e?(u=D(n,0,e),a=D(n,e+1),s=0,-1!==i&&(s=D(u,i+1).length),(o=s-(f=M(a)))<0&&(o=0),y.rUt=o):(o=0,-1!==i&&(o=D(n,i+1).length),y.rUt=o),y}function R(t){var r,n={oUt:t.charAt(0),aUt:0,tUt:0},e="";for(r=1;r<t.length;r++)if("+"===(e=t.charAt(r)))n.aUt=1;else{if("-"!==e){if("0"===e){n.tUt=t.length-r;break}throw new Error(x().Exp_InvalidExponentFormat)}n.aUt=-1}return n}function I(t){var r,n,e,i,o,u,a={uUt:y,sUt:y,rCt:d,fxt:0,d0:0,cUt:0,fUt:y},s="",f=d,c=d,m=d,h=d,M=d,v=d,g=y,b=[];for(n=0;n<t.length;n++){if(r=t.charAt(n),f)s+=r,'"'===r&&(b.push(s),s="",f=d);else if(c){if("E"===g||"e"===g){if(!(["+","-","0"].indexOf(r)>=0)){c=d,n--;continue}s+=r}else if("+"===g||"-"===g){if("0"!==r){c=d,n--;continue}s+=r}else if("0"===g){if("0"!==r){c=d,M||(M=l,a.fUt=R(s)),n--;continue}s+=r}}else if("*"!==g&&"_"!==g&&"\\"!==g||""===s)if("*"===r||"_"===r||"\\"===r)v=d,""!==s&&(b.push(s),s=""),s+=r;else if("'"===r)v=d,""!==s&&(b.push(s),s=""),b.push(r);else if('"'===r)v=d,f=l,""!==s&&(b.push(s),s=""),s+=r;else if(P.indexOf(r)>=0)v=l,P.indexOf(g)<0&&""!==s&&(b.push(s),s=""),s+=r;else if("."!==r||m)if("%"===r)v=d,a.d0++,""!==s&&(b.push(s),s=""),b.push(r);else if("\u2030"===r)v=d,a.cUt++,""!==s&&(b.push(s),s=""),b.push(r);else if(","===r)if(v){for(e=void 0,""!==s&&(b.push(s),s=""),i=l,o="",u=n+1;u<t.length;u++)if(e=t.charAt(u),'"'!==o)if("\\"!==o&&"_"!==o){if(P.indexOf(e)>=0){i=d;break}if("."===e||";"===e)break;o=e}else o="";else'"'===e&&(o="");i?a.fxt++:m||(e=t.charAt(n+1))&&P.indexOf(e)>=0&&(h=l)}else s+=r;else"E"===r||"e"===r?(v=d,c=l,""!==s&&(b.push(s),s=""),s+=r):(v=d,P.indexOf(g)>=0&&""!==s&&(b.push(s),s=""),s+=r);else""!==s&&(b.push(s),s=""),a.uUt=b,b=[],m=l,v=d;else s+=r,b.push(s),s="";g=r}return""!==s&&(c&&!M&&(a.fUt=R(s)),b.push(s)),h&&(a.rCt=l),m?a.sUt=b:a.uUt=b,a}function B(t,r,n,e){var i,o,u,a,s,f=r[0],c=1,y=0,m=d,h=t.length;for(i=0;i<h;i++)if("number"===(o=t[i].type)){for(u="",s=(a=t[i].value).length-1;s>=0;){if(!(1<=f&&f<=9||0===f&&c===r.length))throw new Error(x().Exp_InvalidNumberGroupSize);/\d/gi.test(a[s])?(m&&(u&&t.push({type:"number",value:u}),t.push({type:"groupSeparator",value:n}),u="",m=d),y++):y=0,u=a[s]+u,y===f&&f>0&&(m=l,y=0,c<r.length&&(f=r[c],c++)),s--}u&&t.push({type:o,value:u})}else"fillingChar"===o&&(e.infillIndex=t.length-h),t.push({type:o,value:t[i].value});return t.splice(0,h)}function G(t,r,n,e,i,o){var u,a,s,y,m=tt(t,-r);return isFinite(m)||(m=t),y=(u=(t=m).toString()).split(/e/i),u=y[0],s=y.length>1?h(y[1],10):0,y=u.split("."),u=y[0],a=y.length>1?y[1]:"",s>0?(u+=(a=c(a,s)).slice(0,s),a=D(a,s)):s<0&&(s=-s,a=(u=t<0?o+f(u.replace(o,""),s+1):f(u,s+1)).slice(-s,u.length)+a,u=u.slice(0,-s)),u+(a=r>0?i+(a=a.length>r?a.slice(0,r):c(a,r)):"")}function L(t,r,n,e){var i=t;return r>0&&(i=et(i*b(100,r),15)),n>0&&(i=et(i*b(1e3,n),15)),e>0&&(i=et(i/b(1e3,e),15)),i}function z(t){var r,n,e=y;if(t)for(e="",r=0;r<t.length;r++)n=t[r],/^(0|#|\?)+/g.test(n)&&(e+=n);return e}function K(t,r){return t===r||0!==t&&0!==r&&(g(t-r)<g(t)/O||(t=et(t,15),r=et(r,15),g(t-r)<g(t)/O))}function J(t,r){return K(t,-r)?0:t+r}function U(t,r,n){var e,i,o={value:t,exponentValue:0},u=E(t,"."),a=u.iUt,s=g(t),f=n?n.length:1;if(s>=1)a>f?(a-=f,o.value=t/b(10,a),o.exponentValue=a):o.exponentValue=0,-1===r.aUt&&(r.aUt=0);else if(s<1&&s>0){for(r.aUt=-1,e=b(10,f);10*s<e&&!K(10*s,e);)s*=10,o.exponentValue++;i=b(10,o.exponentValue),o.value*=i>F?0:i}return o}function V(t,r,n,e,i,o,u,a){var s,c,y,m,h,M,d,v,g,b,p,F,_=a.numberGroupSizes,w=a.numberGroupSeparator,H=a.negativeSign,N=a.percentSymbol,x=a.perMilleSymbol,$=e.fUt,k=D(r,0,1);for(k===H&&(r=D(r,1)),r=0===(s=1===r.length&&"0"===r?0:r.length)?"":r,c=0,y="",m=t.length-1;m>=0;m--)if(h="",M=t[m],/^(0|#|\?)+/g.test(M)){if(y!==n){for(d=M.length,v=s-c-1;v>=0&&d>0;v--)h=(g=r.charAt(v))+h,d--,c++;for(b=d-1;b>=0;b--)c++,"0"===(p=M[b])?h=p+h:"?"===p&&(""!==h&&(o.push({type:"number",value:h}),h=""),o.push({type:"numberPlaceholder",value:p}));(y=M+y)===n&&c<s&&(h=r.substr(0,s-c)+h),""!==h&&o.push({type:"number",value:h})}}else e.fUt&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(M)?(u.replaceExponent=l,F="",F+=$.oUt,F+=S[$.aUt],F+=f(i.toString(),$.tUt),o.push({type:"exponent",value:F})):"_"===M[0]?o.push({type:"placeholder",value:M[1]}):"*"===M[0]?u.hasInfilling||(o.push({type:"fillingChar",value:M[1]}),u.hasInfilling=!0,u.infillIndex=o.length-1):"\\"===M[0]?2===M.length&&o.push({type:"text",value:M[1]}):'"'===M[0]&&'"'===M[M.length-1]?M.length>2&&o.push({type:"text",value:M.substr(1,M.length-2)}):M===N?o.push({type:"percent",value:M}):M===x?o.push({type:"permille",value:M}):A[M]?o.push({type:"currency",value:M}):o.push({type:"text",value:M});k===H&&n&&o.push({type:"text",value:k}),e.rCt===l&&B(o,_,w,u),o.reverse(),u.infillIndex=o.length-1-u.infillIndex}function W(t,r,n,e,i,o,u,a,s){var c,y,m,h,M,d,v,g,b,p,F,_,w=s.numberDecimalSeparator,D=s.percentSymbol,H=s.perMilleSymbol,N=r.indexOf(w),x=i.fUt;for((N>0||e!==$||n!==k)&&u.push({type:"decimalSeparator",value:w}),c=-1!==N?r.substring(N+1):"",y=0,m="",h=0;h<t.length;h++)if(M=t[h],/^(0|#|\?)+/g.test(M)){if(d="",m!==n){for(v=M.length,g=0,b=y;v>0&&c.length-y>0;)d+=c.charAt(b),v--,y++,g++,b++;for(p=g;v>0;)F=M[p],p++,y++,v--,"0"===F?d+=F:"?"===F&&(""!==d&&(u.push({type:"number",value:d}),d=""),u.push({type:"numberPlaceholder",value:F}));""!==d&&u.push({type:"number",value:d}),m+=M}}else x&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(M)?(a.replaceExponent=l,_="",_+=x.oUt,_+=S[x.aUt],_+=f(o.toString(),x.tUt),u.push({type:"exponent",value:_})):"_"===M[0]?u.push({type:"placeholder",value:M[1]}):"*"===M[0]?(u.push({type:"fillingChar",value:M[1]}),a.hasInfilling&&u.splice(a.infillIndex,1),a.hasInfilling=!0,a.infillIndex=u.length-1):"\\"===M[0]?2===M.length&&u.push({type:"text",value:M[1]}):'"'===M[0]&&'"'===M[M.length-1]?M.length>2&&u.push({type:"text",value:M.substr(1,M.length-2)}):M===D?u.push({type:"percent",value:M}):M===H?u.push({type:"permille",value:M}):A[M]?u.push({type:"currency",value:M}):u.push({type:"text",value:M})}function q(t,r){var n=t,e=t.indexOf(r);return-1!==e&&(n=t.replace(/0+$/,"")),n}function Y(t,r,n,e){var i,o,u,a,s,f,c,y,m,h,M,l,v,b,F,_,w=[];return t=L(t,r.d0,r.cUt,r.fxt),i=r.uUt,o=r.sUt,i||o?(u=z(i),(a=z(o))||(a=""),r.fUt&&(t=(f=U(t,r.fUt,u)).value,s=f.exponentValue),c=E(t,"."),g(t)>1&&c.iUt+c.rUt>15&&(t=et(t,15)),y=n.numberGroupSizes,m=n.numberGroupSeparator,h=n.numberDecimalSeparator,M=n.negativeSign,v=G(t,l=p(c.rUt,a.length),y,m,h,M),e||(v=q(v,h)),""===v?(w.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),w):(b={hasInfilling:d,infillIndex:-1,replaceExponent:d},"10"!==(F=v.split(h)[0])||isNaN(s)||(F="1",s+=(_=r&&r.fUt&&-1===r.fUt.aUt)?-1:1),i&&V(i,F,u,r,s,w,b,n),t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||("0"!==F&&""===u&&o&&w.push({type:"number",value:F}),o&&W(o,v,a,u,r,s,w,b,n)),w)):w}function X(t,r){var n,e,i,o,a,f,c,m,d,l,v,g,b,p,F,_,w;return(t=s(t)?"":u.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?M(t):t.match(/^0x[a-f0-9]+$/i)?h(t,10):(o=(i=Z(t,n=r.NumberFormat,e=n.numberNegativePattern))[0],a=i[1],""===o&&1!==e&&(o=(i=Z(t,n,1))[0],a=i[1]),""===o&&(o="+"),a[0]===n.currencySymbol&&(a=D(a,1)),(m=a.indexOf("e"))<0&&(m=a.indexOf("E")),m<0?(c=a,f=y):(c=D(a,0,m),f=D(a,m+1)),(v=c.indexOf("."))<0?(d=c,l=y):(d=D(c,0,v),l=D(c,v+1)),d=d.split(",").join(""),","!==(g=",".replace(/\u00A0/g," "))&&(d=d.split(g).join("")),b=o+d,l!==y&&(b+="."+l),(p=b[b.length-1])===n.percentSymbol&&(b=D(b,0,b.length-1),-1===(F=(b=u.zf.s6t(b,"")).indexOf("."))&&(F=b.length),_="",_+=D(b,0,F-2),_+=".",_+=D(b,F-2,2),b=_+=D(b,F+1)),f!==y&&(""===(w=Z(f,n,1))[0]&&(w[0]="+"),b+="e"+w[0]+w[1]),b.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?M(b):NaN)}function Z(t,r,n){var e=r.negativeSign,i=r.positiveSign;if(4!==n&&2!==n||(e=" "+e,i=" "+i),4===n||3===n){if(u.zf.dT(t,e))return["-",D(t,0,t.length-e.length)];if(u.zf.dT(t,i))return["+",D(t,0,t.length-i.length)]}else if(2===n||1===n){if(u.zf.fJ(t,e))return["-",D(t,e.length)];if(u.zf.fJ(t,i))return["+",D(t,i.length)]}else{if(0!==n)throw new Error("");if(u.zf.fJ(t,"(")&&u.zf.dT(t,")"))return["-",D(t,1,t.length-2)]}return["",t]}function Q(t,r,n){if(0!==g(v(t)-t))throw new Error(x().Exp_BadFormatSpecifier);var e=t>=0?t.toString(16):(C+t+1).toString(16);return e=r?e.toLowerCase():e.toUpperCase(),!s(n)&&e.length<n?f(e,n):e}function tt(t,r){var n,e;return t=+t,r=+r,isNaN(t)||r%1!=0?NaN:(t=(n=t<0)?-t:t,typeof r===m||0===r?(t=Math.round(t),n?-t:t):(e=t.toString().split("e"),t=Math.round(+(e[0]+"e"+(e[1]?+e[1]-r:-r))),+((e=(t=n?-t:t).toString().split("e"))[0]+"e"+(e[1]?+e[1]+r:r))))}function rt(t){var r=a.CultureManager.Fe().NumberFormat;return"string"==typeof t&&(r=a.CultureManager.Fe(t).NumberFormat),r}function nt(t){var r,n,e,i="";if(Array.isArray(t)&&t.length>0)for(r=0;r<t.length;r++)if(n=t[r].type,e=t[r].value,"placeholder"===n)i+=" ";else{if("fillingChar"===n)continue;i+="numberPlaceholder"===n?" ":e}return i}function et(t,r){return"number"==typeof t&&t.toString().length>=r&&(t=+t.toPrecision(r)),t}Object.defineProperty(r,"__esModule",{value:!0}),r.st=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/types.ts"),o=n("./src/common/util/regexhelper.ts"),u=n("./src/common/util/stringhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=i.lt.ht,f=u.zf.B9t,c=u.zf.lUt,y=null,m=void 0,h=parseInt,M=parseFloat,d=!1,l=!0,v=Math.floor,g=Math.abs,b=Math.pow,p=Math.min,F=Number.MAX_VALUE,_="#dot#",w="#group#",D=function(t,r,n){return t.substr(r,n)},H=function(t){return o.$T.qT(t)},N=new e.ResourceManager(e.SR),x=N.getResource.bind(N),$="##################0",k="################",S={1:"+",0:"","-1":"-"},C=4294967295,P=["0","#","?"],A={"\xa4":"\xa4",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH\u20b5":"GH\u20b5","\u1265\u122d":"\u1265\u122d","\u0631.\u0633.\u200f":"\u0631.\u0633.\u200f",XDR:"XDR","\u062f.\u0625.\u200f":"\u062f.\u0625.\u200f","\u062f.\u0628.\u200f":"\u062f.\u0628.\u200f","\u062f.\u062c.\u200f":"\u062f.\u062c.\u200f","\u062c.\u0645.\u200f":"\u062c.\u0645.\u200f","\u20aa":"\u20aa","\u062f.\u0639.\u200f":"\u062f.\u0639.\u200f","\u062f.\u0627.\u200f":"\u062f.\u0627.\u200f","\u0641.\u062c.\u0642.\u200f":"\u0641.\u062c.\u0642.\u200f","\u062f.\u0643.\u200f":"\u062f.\u0643.\u200f","\u0644.\u0644.\u200f":"\u0644.\u0644.\u200f","\u062f.\u0644.\u200f":"\u062f.\u0644.\u200f","\u062f.\u0645.\u200f":"\u062f.\u0645.\u200f","\u0623.\u0645.\u200f":"\u0623.\u0645.\u200f","\u0631.\u0639.\u200f":"\u0631.\u0639.\u200f","\u0631.\u0642.\u200f":"\u0631.\u0642.\u200f","\u062c.\u0633.":"\u062c.\u0633.",S:"S","\xa3":"\xa3","\u0644.\u0633.\u200f":"\u0644.\u0633.\u200f","\u062f.\u062a.\u200f":"\u062f.\u062a.\u200f","\u0631.\u064a.\u200f":"\u0631.\u064a.\u200f","\u20b9":"\u20b9",TSh:"TSh","\u20ac":"\u20ac","\u20bc":"\u20bc","\u20bd":"\u20bd",K:"K","\u043b\u0432.":"\u043b\u0432.","\u20a6":"\u20a6",CFA:"CFA","\u09f3":"\u09f3","\xa5":"\xa5",KM:"KM","\u041a\u041c":"\u041a\u041c",USh:"USh","K\u010d":"K\u010d","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","\u0783.":"\u0783.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","\u20b1":"\u20b1",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","\u20a1":"\u20a1",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","\u20b2":"\u20b2","Bs.":"Bs.","\u0631\u064a\u0627\u0644":"\u0631\u064a\u0627\u0644",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","\u058f":"\u058f",ISK:"ISK","\u20be":"\u20be","\u200b":"\u200b","\u20b8":"\u20b8","\u17db":"\u17db","\u20a9":"\u20a9","\u0441\u043e\u043c":"\u0441\u043e\u043c",Kz:"Kz","\u20ad":"\u20ad",MTn:"MTn","\u0434\u0435\u043d":"\u0434\u0435\u043d","\u20ae":"\u20ae","\u0930\u0941":"\u0930\u0941","Afl.":"Afl.","\u07d6\u07d5.":"\u07d6\u07d5.","\u0440\u0443\u0431.":"\u0440\u0443\u0431.","z\u0142":"z\u0142","\u060b":"\u060b",R$:"R$",Db:"Db",RON:"RON","\u20b4":"\u20b4",MAD:"MAD","\u0dbb\u0dd4.":"\u0dbb\u0dd4.","Lek\xeb":"Lek\xeb",den:"den",RSD:"RSD","\u0434\u0438\u043d.":"\u0434\u0438\u043d.","\u0720.\u0723.\u200f":"\u0720.\u0723.\u200f","Rs.":"Rs.","\u0441\u043c\u043d":"\u0441\u043c\u043d","\u0e3f":"\u0e3f","m.":"m.","\u20ba":"\u20ba","\u2d37\u2d54":"\u2d37\u2d54","so\u02bbm":"so\u02bbm","\u0441\u045e\u043c":"\u0441\u045e\u043c","\u20ab":"\u20ab",HK$:"HK$",MOP:"MOP",NT$:"NT$"},O=Math.pow(2,48),r.st={yU:function(t){return X(t,a.CultureManager.Fe())},Z6t:function(t){return X(t,a.CultureManager.Fe("invariant"))},L9t:function(t,r,n,e){return n||(n=a.CultureManager.Fe()),T(t,r,n,e)},Ge:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("[.]"),_)),","!==i&&(t=t.replace(H("[,]"),w)),"."!==e&&(t=t.replace(H(_),e)),","!==i&&(t=t.replace(H(w),i))),t},Jf:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("["+e+"]"),_)),","!==i&&(t=t.replace(H("["+i+"]"),w)),"."!==e&&(t=t.replace(H(_),".")),","!==i&&(t=t.replace(H(w),","))),t},hUt:function(t,r){var n,e,i;return!("string"==typeof t&&(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&"."!==i&&t.indexOf(".")>=0||","!==e&&","!==i&&t.indexOf(",")>=0))},dUt:function(t,r){return M(this.Jf(t,r))},VGt:Q,v0:I,vUt:Y,ukt:K,Jme:J,mUt:nt,gUt:$,pUt:k,E8:et}},"./src/common/util/rbush.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rbush=void 0;var n=Math.max,e=Math.min,i=Number.POSITIVE_INFINITY;function o(t,r){this.bUt=n(4,t||9),this.yUt=n(2,Math.ceil(.4*this.bUt)),r&&this.wUt(r),this.clear()}function u(t,r,n){if(!n)return r.indexOf(t);for(var e=0;e<r.length;e++)if(n(t,r[e]))return e;return-1}function a(t,r){s(t,0,t.children.length,r,t)}function s(t,r,n,e,o){o||(o=g(null)),o.minX=i,o.minY=i,o.maxX=-i,o.maxY=-i;for(var u=r,a=void 0;u<n;u++)a=t.children[u],f(o,t.leaf?e(a):a);return o}function f(t,r){return t.minX=e(t.minX,r.minX),t.minY=e(t.minY,r.minY),t.maxX=n(t.maxX,r.maxX),t.maxY=n(t.maxY,r.maxY),t}function c(t,r){return t.minX-r.minX}function y(t,r){return t.minY-r.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function M(t,r){return(n(r.maxX,t.maxX)-e(r.minX,t.minX))*(n(r.maxY,t.maxY)-e(r.minY,t.minY))}function d(t,r){var i=n(t.minX,r.minX),o=n(t.minY,r.minY),u=e(t.maxX,r.maxX),a=e(t.maxY,r.maxY);return n(0,u-i)*n(0,a-o)}function l(t,r){return t.minX<=r.minX&&t.minY<=r.minY&&(r.maxX>=0&&r.maxX<=t.maxX||t.minX<0)&&(r.maxY>=0&&r.maxY<=t.maxY||t.minY<0)}function v(t,r){return(-1===t.minY||-1===r.minY||t.minY<=r.maxY&&r.minY<=t.maxY)&&(-1===t.minX||-1===r.minX||t.minX<=r.maxX&&r.minX<=t.maxX)}function g(t){return{children:t,height:1,leaf:!0,minX:i,minY:i,maxX:-i,maxY:-i}}r.rbush=o,o.prototype={all:function(){return this.QP(this.data,[])},search:function(t){var r,n,e,i,o,u=this.data,a=[],s=this.toBBox;if(!v(t,u))return a;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)i=u.children[n],v(t,o=u.leaf?s(i):i)&&(u.leaf?a.push(i):l(t,o)?this.QP(i,a):r.push(i));u=r.pop()}return a},collides:function(t){var r,n,e,i,o,u=this.data,a=this.toBBox;if(!v(t,u))return!1;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)if(i=u.children[n],v(t,o=u.leaf?a(i):i)){if(u.leaf||l(t,o))return!0;r.push(i)}u=r.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,r){if(!t)return this;for(var n=this.data,e=this.toBBox(t),i=[],o=[],a,s,f,c;n||i.length;){if(n||(n=i.pop(),s=i[i.length-1],a=o.pop(),c=!0),n.leaf&&-1!==(f=u(t,n.children,r)))return n.children.splice(f,1),i.push(n),this.MUt(i),this;c||n.leaf||!l(n,e)?s?(a++,n=s.children[a],c=!1):n=null:(i.push(n),o.push(a),a=0,s=n,n=n.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:y,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,r){for(var n=[];t;)t.leaf?r.push.apply(r,t.children):n.push.apply(n,t.children),t=n.pop();return r},CUt:function(t,r,n,e){for(var o,u,a,s,f,c,y,h;e.push(r),!r.leaf&&e.length-1!==n;){for(y=h=i,o=0,u=r.children.length;o<u;o++)f=m(a=r.children[o]),(c=M(t,a)-f)<h?(h=c,y=f<y?f:y,s=a):c===h&&f<y&&(y=f,s=a);r=s||r.children[0]}return r},Eit:function(t,r,n){var e=this.toBBox,i=n?t:e(t),o=[],u=this.CUt(i,this.data,r,o);for(u.children.push(t),f(u,i);r>=0&&o[r].children.length>this.bUt;)this.SUt(o,r),r--;this.TUt(i,o,r)},SUt:function(t,r){var n,e,i=t[r],o=i.children.length,u=this.yUt;this.AUt(i,u,o),n=this.IUt(i,u,o),(e=g(i.children.splice(n,i.children.length-n))).height=i.height,e.leaf=i.leaf,a(i,this.toBBox),a(e,this.toBBox),r?t[r-1].children.push(e):this.xUt(i,e)},xUt:function(t,r){this.data=g([t,r]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},IUt:function(t,r,n){var e,o,u,a,f,c,y,h;for(c=y=i,e=r;e<=n-r;e++)a=d(o=s(t,0,e,this.toBBox),u=s(t,e,n,this.toBBox)),f=m(o)+m(u),a<c?(c=a,h=e,y=f<y?f:y):a===c&&f<y&&(y=f,h=e);return h},AUt:function(t,r,n){var e=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:y,o,u;this.NUt(t,r,n,e)<this.NUt(t,r,n,i)&&t.children.sort(e)},NUt:function(t,r,n,e){t.children.sort(e);var i=this.toBBox,o=s(t,0,r,i),u=s(t,n-r,n,i),a=h(o)+h(u),c,y;for(c=r;c<n-r;c++)y=t.children[c],f(o,t.leaf?i(y):y),a+=h(o);for(c=n-r-1;c>=r;c--)y=t.children[c],f(u,t.leaf?i(y):y),a+=h(u);return a},TUt:function(t,r,n){for(var e=n;e>=0;e--)f(r[e],t)},MUt:function(t){for(var r=t.length-1,n=void 0;r>=0;r--)0===t[r].children.length?r>0?(n=t[r-1].children).splice(n.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},wUt:function(t){var r=["return a"," - b",";"];this.compareMinX=new Function("a","b",r.join(t[0])),this.compareMinY=new Function("a","b",r.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},"./src/common/util/regexhelper.ts":function(t,r,n){var e,i,o,u;Object.defineProperty(r,"__esModule",{value:!0}),r.$T=void 0,e=n("./src/common/util/stringhelper.ts"),i=!0,o="empty",u=function(){function t(){}return t.bue=function(r,n){var e;if(n&&t.yue[n]&&t.yue[n][r])e=t.yue[n][r];else try{null==n?(e=new RegExp(r),n=o):e=new RegExp(r,n),t.yue[n]||(t.yue[n]={}),t.yue[n][r]=e}catch(t){return null}return e.lastIndex=0,e},t.qT=function(r){var n=t.kUt[r];return n||(n=t.kUt[r]=new RegExp(r,"g")),n.lastIndex=0,n},t.OJ=function(r){var n=t.DUt[r];return n||(n=t.DUt[r]=new RegExp(r,"gi")),n.lastIndex=0,n},t.jJ=function(r,n,e){var o,u,a,s,f,c;if(t._Ut[r])return t.EUt[r];if(o=n?"[?*]+":"[~?*]+",t.qT(o).test(r)){for(u=[],a=r.split(""),s=void 0,f={".":i,"+":i,$:i,"^":i,"[":i,"]":i,"(":i,")":i,"{":i,"}":i,"|":i,"/":i,"\\":i},c=0;c<a.length;c++)if("~"===(s=a[c])){if(!(c<a.length-1))break;"*"!==(s=a[++c])&&"?"!==s||u.push("\\"),u.push(s)}else"?"===s?u.push("."):"*"===s?(u.push("[\\s\\S]"),e?u.push("+"):u.push("*")):f[s]?(u.push("\\"),u.push(s)):u.push(s);return u.join("")}return null},t.tbt=function(r,n,e){var i=t.jJ(r,n,e);return i&&(i="^"+i+"$"),i},t.jUt=function(t,r){for(var n="#"+t+"0#",i=1;r.indexOf(n)>0;)n=e.zf.qS(n,"#"+t+(i-1)+"#","#"+t+i+"#"),i++;return n},t.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},t.kUt={},t.DUt={},t.yue={},t._Ut={},t.EUt={},t}(),r.$T=u},"./src/common/util/stringhelper.ts":function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.zf=void 0;var e=n("./src/common/util/regexhelper.ts");function i(t,r,n){return t.substr(r,n)}function o(t){return null==t}function u(t,r,n,e){var i,u;if(o(r))throw new Error;return""===r||!(r.length>t.length)&&(i=t,u=r,n&&(i=i.toLowerCase(),u=u.toLowerCase()),e(i,u))}r.zf={OS:function(t,r,n){return n&&(t=t.toLowerCase(),r=r.toLowerCase()),""===r||t.indexOf(r)>=0},hD:function(t,r,n){var e,i;return n?(e=t.toLowerCase(),i=r.toLowerCase(),e.indexOf(i)):t.indexOf(r)},cJ:function(t,r){if(!r)return t;for(var n=t;i(n,0,r.length)===r;)n=i(n,r.length);return n},s6t:function(t,r){if(!r)return t;for(var n=t;i(n,n.length-r.length,r.length)===r;)n=i(n,0,n.length-r.length);return n},Eit:function(t,r,n){var e,u;if(r<0||r>t.length||o(n))throw new Error;return(e=i(t,0,r))+n+(u=i(t,r,t.length-r))},VP:function(t,r,n){var e,u;if(o(n)&&(n=t.length-r),r<0||n<0||r+n>t.length)throw new Error;return(e=i(t,0,r))+(u=i(t,r+n,t.length-r-n))},fJ:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(0,r.length)===r}))},dT:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(-r.length)===r}))},Vi:function(t,r,n,e){if(!r)throw new Error;return n=(""+n).replace(/\$/g,"$$$$"),t.replace(new RegExp(r,"g"+(e?"i":"")),n)},OUt:function(t,n,i,o){return n=e.$T.D9t(n),r.zf.Vi(t,n,i,o)},gmt:function(t,r){var n=t.indexOf(r);return n<0||n>=t.length?t:i(t,0,n)},DU:function(t,r){for(var n=0,e=t.indexOf(r);e>=0;)n+=1,e=t.indexOf(r,e+1);return n},qS:function(t,r,n){return t.split(r).join(n)},I5:function(t,r){var n,e,i=t;for(n=0;n<r.length;n++)e=new RegExp("\\{"+n+"\\}","g"),i=i.replace(e,r[n]);return i},RUt:function(t,r,n){var e,i=t.toString();for(e=i.length;e<r;e++)i=n?"0"+i:i+"0";return i},B9t:function(t,n){return r.zf.RUt(t,n,!0)},lUt:function(t,n){return r.zf.RUt(t,n,!1)},Dbt:function(t,r){return t===r||!t&&!r||t&&r&&t.toLowerCase()===r.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n=e.$T.qT("(?:&|<|>|\"|'|`)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},dI:function(t){var r={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},n=e.$T.qT("(?:&|<|>|"|'|`)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},TY:function(t){var r,n,e=t;for(e=e.replace(/[\t\n\r\f\v]/g,""),r=/javascript:/gi;e.match(r);)e=e.replace(r,"");try{if("javascript:"===(n=new URL(e)).protocol)return""}catch(t){}return e}}},"./src/common/util/types.ts":function(t,r){var n,e;Object.defineProperty(r,"__esModule",{value:!0}),r.lt=void 0,n="undefined"!=typeof window?window.File:null,e="undefined"!=typeof window?window.Blob:null,r.lt={BUt:null,y0:function(t,n){var e,i,o,u;if(r.lt.Gh(t))for(i=0,o=t.length;i<o&&!1!==(e=n.call(t[i],i,t[i]));i++);else for(u in t)if(t.hasOwnProperty(u)&&!1===(e=n.call(t[u],u,t[u])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===r.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===r.lt.Oh(t)},jh:function(t){return r.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var n,e,i,o,u,a;if(null===t)return"null";if(!(n=r.lt.BUt))for(n=r.lt.BUt={},i=0,o=(e=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;i<o;i++)n["[object "+e[i]+"]"]=e[i].toLowerCase();return u=n.toString,"object"===(a=typeof t)||"function"===a?n[u.call(t)]||"object":a},Rh:function(t,n,e){var i,o;if(n){if(o=[].indexOf)return o.call(n,t,e);for(i=n.length,r.lt.ht(e)&&(e=0),e=e<0?Math.max(0,i+e):e;e<i;e++)if(e in n&&n[e]===t)return e}return-1},Bh:function(t,r){var n=r.length,e=t.length,i=0;if("number"==typeof n)for(;i<n;i++)t[e]=r[i],e++;else for(;void 0!==r[i];)t[e]=r[i],e++,i++;return t.length=e,t},Lh:function(t,n,e){var i,o,u,a,s=[];if(r.lt.Gh(t))for(o=0,u=t.length;o<u;o++)null!==(i=n(t[o],o,e))&&(s[s.length]=i);else for(a in a=void 0,t)t.hasOwnProperty(a)&&null!==(i=n(t[a],a,e))&&(s[s.length]=i);return s.concat([])},Dh:function(){var t,n,e,i,o,u,a,s,f,c,y,m=[];for(t=0;t<arguments.length;t++)m[t]=arguments[t];for(s=m[0]||{},f=1,c=m.length,y=!1,"boolean"==typeof s&&(y=s,s=m[1]||{},f=2),"object"==typeof s||r.lt.Eh(s)||(s={}),c===f&&(s=this,--f);f<c;f++)if(u=m[f],!r.lt.ht(u))for(o in u)n=s[o],s!==(i=u[o])&&(e=r.lt.Nh(i),y&&i&&(r.lt.Ph(i)||e)?(a=e?n&&r.lt.Nh(n)?n:[]:n&&r.lt.Ph(n)?n:{},s[o]=r.lt.Dh(y,a,i)):void 0!==i&&(s[o]=i));return s},Fh:function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var n,e;if(!t||"object"!==r.lt.Oh(t)||t.nodeType||r.lt.Uh(t))return!1;n={}.hasOwnProperty;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||n.call(t,e)},Gh:function(t){if(r.lt.ht(t))return!1;var n=t.length,e=r.lt.Oh(t);return!r.lt.Uh(t)&&(!(1!==t.nodeType||!n)||("array"===e||"function"!==e&&(0===n||"number"==typeof n&&n>0&&n-1 in t)))},Hh:function(t,n){var e=n||[];return null!==t&&(r.lt.Gh(Object(t))?r.lt.Bh(e,"string"==typeof t?[t]:t):[].push.call(e,t)),e},dt:null,ht:function(t){return null==t},q8:null,uJ:null,tv:function(t){if(!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||r.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var i,o,u;if(n&&t instanceof n)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if(e&&t instanceof e)return new e([t],{type:t.type});for(o in i=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(o)&&(u=t[o],t.hasOwnProperty(o)&&i[o]!==u&&(i[o]="object"==typeof u?r.lt.tv(u):u));return i}}},"./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/common/util/uuid-helper.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UUIDGenerator=void 0;var n=function(){function t(){}return t.wrap=function(t){return"{".concat(t.toUpperCase(),"}")},t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=16*Math.random()|0,n="x"===t?r:3&r|8;return n.toString(16)}))},t.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},t.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},t.isValidUpperCaseUUID=function(t){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(t)},t}();r.UUIDGenerator=n},"./src/plugins/commands/commands.entry.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=r.CommandManager=r.Key=void 0,e=n("./src/plugins/commands/commands.ts"),Object.defineProperty(r,"Key",{enumerable:!0,get:function(){return e.Key}}),Object.defineProperty(r,"CommandManager",{enumerable:!0,get:function(){return e.CommandManager}}),i=n("./src/plugins/commands/undomanager.ts"),Object.defineProperty(r,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,r){var n,e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.CommandManager=r.Key=void 0,function(t){t[t.left=37]="left",t[t.right=39]="right",t[t.up=38]="up",t[t.down=40]="down",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.shift=16]="shift",t[t.ctrl=17]="ctrl",t[t.space=32]="space",t[t.altkey=18]="altkey",t[t.home=36]="home",t[t.end=35]="end",t[t.pup=33]="pup",t[t.pdn=34]="pdn",t[t.backspace=8]="backspace",t[t.del=46]="del",t[t.esc=27]="esc",t[t.a=65]="a",t[t.c=67]="c",t[t.v=86]="v",t[t.x=88]="x",t[t.z=90]="z",t[t.y=89]="y"}(n=r.Key||(r.Key={})),e=function(){function t(t,r,n){var e,i;this.jS=t,this.LUt=r,this.Zc=n,e=this,Object.defineProperty(e,"shortcutKey",{get:function(){return e.FUt},set:function(t){var r,n,o=e.FUt;o!==t&&((r=(i=e.jS.PUt)[o])&&(n=r.indexOf(e))>=0&&r.splice(n,1),e.FUt=t,t&&((r=i[t])||(i[t]=r=[]),r.splice(0,0,e)))}})}return t.prototype.canUndo=function(){var t;return this.LUt.canUndo},t.prototype.execute=function(t,r,n){var e,i,o,u,a,s=this,f=!0,c=!0;if(s.LUt&&r&&(o={command:r,result:i,vM:n,actionType:n,metaData:null===(e=s.LUt)||void 0===e?void 0:e.metaData,r:null,isBefore:!0},s.jS.MGr(o),o.r&&(c=!1,i=!1)),c){try{f=!1!==(i=(u=s.LUt.execute||s.LUt)(t,r,1===n))}catch(t){f=!1}r&&f&&s.jS.HUt({command:s.Kro(r),result:i,vM:n,actionType:n})}return s.jS&&r&&(a={command:r,result:i,vM:n,actionType:n,isBefore:!1},s.jS.MGr(a)),i},t.prototype.Kro=function(t){return t&&!t.cmd&&(t.cmd=this.Zc),t},t}(),i=function(){function t(t){this.DJ=t,this.aT={},this.GUt={},this.yGr={},this.PUt={}}return t.prototype.register=function(t,r,n,i,o,u,a){var s=this,f=new e(s,r,t);s[t]=f,n&&(f.shortcutKey=s.getShortcutKey(n,i,o,u,a))},t.prototype.getCommand=function(t){return this[t]},t.prototype.execute=function(t){var r=this[t.cmd];if(r)return r.execute(this.DJ,t,0)},t.prototype.setShortcutKey=function(t,r,n,e,i,o){var u,a,s,f,c=this;if(t)(u=c[t])&&(u.shortcutKey=c.getShortcutKey(r,n,e,i,o));else if(a=c.getShortcutKey(r,n,e,i,o),s=c.getCommands(a))for(f=s.length-1;f>=0;f--)s[f].shortcutKey=void 0},t.prototype.getShortcutKey=function(t,r,e,i,o){if(t){var u="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):n[t];return u||(u=t),u+(r?"+ctrl":"")+(e?"+shift":"")+(i?"+alt":"")+(o?"+window":"")}},t.prototype.getCommands=function(t){return this.PUt[t]},t.prototype.addListener=function(t,r){this.aT[t]=r},t.prototype.removeListener=function(t){delete this.aT[t]},t.prototype.HUt=function(t){var r,n=this.aT;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.cM=function(t,r){this.GUt[t]=r},t.prototype.zUt=function(t){delete this.GUt[t]},t.prototype.MGr=function(t){var r,n=this.GUt;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.L0=function(){this.DJ=null},t}(),r.CommandManager=i},"./src/plugins/commands/undomanager.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=void 0;var n=function(){function t(t,r,n){var e=this;e.DJ=t,r<0&&(r=2147483647),e.VUt=r,e.Hw=n,e.Nmt=[],e.kmt=[],e.YUt=!1}return t.prototype.dM=function(t,r){var n,e,i,o=this;if(t){if(1===r)o.kmt.push(t);else{if(n=o.VUt,e=o.Nmt.length,n>0&&e>=n)for(i=0;i<e-n+1;i++)o.Nmt.shift();o.Nmt.push(t),0===r&&(o.kmt=[])}o.YUt=!0}},t.prototype.canUndo=function(){return this.Nmt.length>0},t.prototype.undo=function(){var t,r,n=this,e=n.Nmt,i=!0;if(n.Hw&&n.canUndo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,1))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.kmt.push(t))}return i},t.prototype.canRedo=function(){return this.kmt.length>0},t.prototype.redo=function(){var t,r,n=this,e=n.kmt,i=!0;if(n.Hw&&n.canRedo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,2))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.Nmt.push(t))}return i},t.prototype.getRedoStack=function(){return this.kmt.slice()},t.prototype.getUndoStack=function(){return this.Nmt.slice()},t.prototype.maxSize=function(t){var r=this;return arguments.length<1?r.VUt:(t>=0&&(r.VUt=t),r)},t.prototype.clear=function(){this.Nmt=[],this.kmt=[]},t.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},t.prototype.L0=function(){this.DJ=null},t.prototype.setNewChangeStatus=function(t){this.YUt=t},t.prototype.getNewChangeStatus=function(){return this.YUt},t}();r.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/formatter/formatter.ts"),r)},"./src/plugins/formatter/formatter.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_InvalidCast=r.Exp_ValueIllegal=r.Exp_TokenIllegal=r.Exp_DuplicatedDescriptor=r.Exp_ValueIsNull=r.Exp_FormatIllegal=r.Exp_InvalidBackslash=r.Exp_TokenIsNull=void 0,r.Exp_TokenIsNull="token is null",r.Exp_InvalidBackslash="the '\\' cannot be evaluated",r.Exp_FormatIllegal="format is illegal.",r.Exp_ValueIsNull="value is null",r.Exp_DuplicatedDescriptor="The type of descriptor was added.",r.Exp_TokenIllegal="token is illegal.",r.Exp_ValueIllegal="value is illegal.",r.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,g,b,p,F,_,w,D,H,N,x,$,k,S,C,P,A,O,T,j,E,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut=this&&this.vJr||(at=function(t,r){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},at(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}at(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),at;function st(t,r,n){return t.substr(r,n)}function ft(t){return o.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function ct(t,r){if("\\"===t[r])throw new Error(h().Exp_InvalidBackslash);if(r-1>0&&r-1<t.length&&"\\"===t[r-1]){if(r-2<0)return!0;if(r-2>0&&r-2<t.length)return"\\"!==t[r-2]}return!1}function yt(t){if(!t)throw new Error(h().Exp_TokenIsNull);return"["+t+"]"}function mt(t){var r,n,e,i,o;if(t===l||t===d||""===t)return t;for(r="",n=0,e=!1,i=0;i<t.length;i++)'"'===(o=t[i])?(e=!e,r+=o):e?r+=o:"["===o?n++:"]"===o?--n<0&&(n=0):0===n&&(r+=o);return r.toString()}function ht(t){return t=Mt(t,"[",""),Mt(t,"]","")}function Mt(t,r,n){return!t||t===K.oHt||lt(r,n,!0)?t:(r=r.replace(D,"\\$1"),t.replace(new RegExp(r,"g"),n))}function dt(t){var r,n,e=t.length,i=!1,o="";for(r=0;r<e;r++)"\\"===(n=t.charAt(r))?(i=!i)&&"@"!==t.charAt(r+1)||(o+=n):(i=!1,o+=n);return o}function lt(t,r,n){return n?B(t)===B(r):t===r}function vt(t,r){var n,e,i,o;for(1===arguments.length&&(r=!0),n=!1,e="",i=0;i<t.length;i++){if('"'===(o=t[i]))n=!n;else if(!n&&!r&&"/"===o&&!ct(t,i))continue;e+=o}return e}function gt(t){var r,n,e,i="",o=!1;for(r=0,n=t.length;r<n;r++)'"'===(e=t[r])&&(o=!o),"E"===e||o||(i+=B(e));return i}function bt(t,r){var n,e,i,o;if(!t||t===K.oHt)return!1;for(e=gt(n=vt(t)),i=0;i<r.length;i++)if(0===(o=e.indexOf(r[i]))||o>0&&"_"!==e[o-1]&&"*"!==e[o-1])return!0;return!1}function pt(t,r,n,e){this.j9t=t,this.aHt=r,this.cultureName=n,this.O9t=e}function Ft(t){this.Nat=t}function _t(t){var r,n,i=ht(t);return i&&i!==K.oHt?(n=i[0],["<",">","="].indexOf(n)>-1?(r=q).Name="ConditionalFormatPart":e.zf.fJ(i,"DBNum",!0)?(r=Y).Name="DBNumberFormatPart":lt(i[0],M,!1)&&i.indexOf("-")>-1?(r=V).Name="LocaleIDFormatPart":Dt(i)?(r=Z).Name="ABSTimeFormatPart":i.indexOf(M)<0&&i.length>=3&&((r=Q).Name="ColorFormatPart"),r):r}function wt(t,r){var n,e=!1;return bt(t=t?t.toString():K.oHt,["general"])?n=rt:X.a0(t)?n=X:bt(t,["E+","E-","#",".",",","%","0","/","?"])||r?(e=!0,n=tt):(e=!0,n=nt),{uHt:e,_type:n}}function Dt(t){var r,n=B(t),e=n[0];if("h"!==e&&"m"!==e&&"s"!==e)return!1;for(r=1;r<n.length;r++)if(e!==n[r])return!1;return!0}function Ht(t,r,n){var e,i;return e=t?t.cultureInfo():E(n),(r<4||4===r&&("ko-kr"===n||"ko-kr"===e.name()))&&(i=e.NumberFormat.dbNumber)?i[r]:d}function Nt(t,r,n,e,o){var u,a=t;if(!T(e)&&r instanceof Date){if(!(u=Ht(n,e.type,o)))return t;a=e.sHt(a,u,!0),1===e.type&&(a=a.replace(new RegExp(p,"g"),F)),a=(a=a.replace("@"+g.cHt,i.ct.Pe(r,g.cHt))).replace("@"+g.fHt,i.ct.Pe(r,g.fHt)),a=e.sHt(a,u,!1)}return a}function xt(t,r,n,e,i){var o,u,a,s,f,c,y;if(!T(e)&&(o=Ht(n,e.type,i),!T(o))){for(u=!1,a=void 0,s=E(i),f=void 0,c=0,y=t.length;c<y;c++)"decimalSeparator"===t[c].type&&(u=!0,t[c].value=e.sHt(t[c].value,o,r),a=t[c].value),"number"===t[c].type&&(t[c].value=u?e.sHt(a+t[c].value,o,r).slice(1):e.sHt(t[c].value,o,r),"ja-JP"===s.name()&&t[c].value.length>1&&("\u4e00\u5343"!==(f=t[c].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[c].value=t[c].value.substr(1))));return t}return t}function $t(t){var r,n=[],e=0,i=0,o=t.length;for(r=0;r<o;r++)"_"===t[r]?e++:(";"!==t[r]||0!==e&&e%2!=0||(n.push(t.substring(i,r)),i=r+1),e=0);return i<=o&&n.push(t.substring(i,o)),n}function kt(t){var r,n,e=[],i=!1,o=!1,u="",a=function(t,r){return{type:t,content:r}},s=function(t){return!T(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},f=function(r,n){if(s(r)){for(var i=r,o=t[n+1];s(o)&&o.toLowerCase()===r.toLowerCase()&&(i+=o,n<t.length-1);)n++,o=t[n+1];e.push(a("symbolic",i))}else"a"===r&&"aaa"===t.slice(n,n+3).toLowerCase()?(e.push(a("symbolic",t.slice(n,n+3))),n+=2):e.push(a("text",r));return n};for(r=0;r<t.length;r++)if(n=t[r],i)e.push(a("text","\\"+n)),i=!1;else if(o&&'"'!==n)u+=n;else switch(n){case"\\":i=!0;break;case'"':o&&(e.push(a("text",'"'+u+'"')),u=""),o=!o;break;default:r=f(n,r)}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralFormatter=r.Hf=r.FormatterBase=void 0,e=n("./src/common/util/stringhelper.ts"),i=n("./src/common/util/datetimehelper.ts"),o=n("./src/common/util/types.ts"),u=n("./src/common/util/numberhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=n("./src/common/util/common.ts"),f=n("./src/plugins/formatter/formatter.res.en.ts"),c=n("./src/plugins/formatter/formatterGrammar/lexer.ts"),y=n("./src/plugins/formatter/formatterGrammar/parser.ts"),o.lt.Dh(s.SR.en,f),m=new s.ResourceManager(s.SR),h=m.getResource.bind(m),M="$",o.lt.dt=function(t,r){if(o.lt.ht(t))return"null"===r;if(!r)return!1;if(r instanceof Function&&t instanceof r)return!0;if(typeof t===r)return!0;if("function"===r&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===r.toLowerCase())return!0;if("DateTime"===r)return t instanceof Date;if("TimeSpan"===r){if(t instanceof Date){var n=i.ct.o0(t);return n>=0&&n<1}return!1}return"string"==typeof r&&"undefined number boolean string".indexOf(r),!1},o.lt.q8=function(t,r){return!!u.st.hUt(t,r)&&(("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=u.st.Jf(t,r),o.lt.dt(t,"number")||o.lt.dt(t,"DateTime")||o.lt.dt(t,"TimeSpan")||t&&!o.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(t.length>=2&&"0"===t[0]&&"x"===t[1])))},o.lt.uJ=function(t){return o.lt.ht(t)||""===t?0:o.lt.dt(t,"number")?t:o.lt.dt(t,"string")&&!isNaN(t)?u.st.yU(t):o.lt.dt(t,"boolean")?t?1:0:o.lt.dt(t,"DateTime")?i.ct.o0(t):o.lt.dt(t,"TimeSpan")?Math.floor(i.ct.o0(t)):parseFloat(t)},d=null,l=void 0,v=Math.abs,g={fHt:"yy",hHt:"y",cHt:"yyyy",dHt:"m",vHt:"mm",mHt:"mmm",gHt:"mmmm",pHt:"mmmmm",bHt:"d",yHt:"dd",wHt:"aaa",MHt:"aaaa",CHt:"h",SHt:"hh",THt:"m",AHt:"mm",IHt:"s",xHt:"ss",IGt:"e",NHt:"AM/PM",kHt:"A/P",DHt:"@mmmmm",_Ht:new Date(1899,11,30,0,0,0,0)},b=[g.hHt,g.fHt,g.cHt,g.dHt,g.vHt,g.mHt,g.gHt,g.pHt,g.bHt,g.yHt,g.wHt,g.MHt,g.CHt,g.SHt,g.THt,g.AHt,g.IHt,g.xHt,"ggg","gg","g","ee","e"],p="\u4e00\u5341",F="\u5341",_={EHt:0,jHt:1,OHt:2,_text:3},w=[{EHt:0,jHt:0,OHt:0,_text:0},{EHt:0,jHt:1,OHt:0,_text:0},{EHt:0,jHt:1,OHt:2,_text:0},{EHt:0,jHt:1,OHt:2,_text:3}],D=new RegExp("([.+?*$^\\[\\](){}|/])","g"),H=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],N=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333"],x=new RegExp("color\\s*(\\d+)","i"),$=o.lt.dt,k=o.lt.Nh,S=u.st,C=S.gUt+"."+S.pUt,P=S.mUt,A=S.L9t,O=S.E8,T=o.lt.ht,j=isNaN,E=function(t){return a.CultureManager.Fe(t)},R=function(t){return E(t).DateTimeFormat},I=function(t){return E(t).NumberFormat},B=function(t){return t&&t.toLowerCase()},G=function(t){return t&&t.toUpperCase()},L=function(){throw new Error(h().Exp_FormatIllegal)},z=function(){return a.CultureManager.booleanMapping},K={oHt:"",I5:function(){var t,r,n,e,i,o,u=[];for(t=0;t<arguments.length;t++)u[t]=arguments[t];for(r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return d;for(e=r[0],i=1;i<arguments.length;i++)o=new RegExp("\\{"+(i-1)+"\\}","gm"),e=e.replace(o,arguments[i]);return e},Ji:function(t){return!t||t===K.oHt}},J=function(t){var r=t.charCodeAt(0);return r>=48&&r<=57},U=function(t){var r=t.charCodeAt(0);return r>=9&&r<=13||32===r||133===r||160===r},V=function(){function t(t,r){var n,i,o,u;if(Ft.call(this,r),(n=this).Jq=t,o=lt((i=n.Jq)[0],M,!1),u=i.indexOf("-"),!(o&&u>-1))throw new Error(h().Exp_TokenIllegal);n.ZUt=st(i,1,u-1),(i=e.zf.VP(i,0,u+1)).length>0&&(n.Iat=parseInt(i,16))}return t.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=E(t.Iat)),t.RHt},t.prototype.currencySymbol=function(){return this.ZUt?e.zf.Vi(this.ZUt,"\\.",'"."'):K.oHt},t.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},t.prototype.toString=function(){return this.Jq?yt(this.Jq):K.oHt},t.Name="LocaleIDFormatPart",t}(),W=function(){function t(t,r){this.formatCached=t,this.cultureName=r,this.typeName=""}return t.prototype.format=function(t,r){return d},t.prototype.parse=function(t){return d},t.prototype.formatString=function(t){return this.formatCached},t.prototype.toJSON=function(){var t,r={};for(t in this)this.hasOwnProperty(t)&&(r[t]=this[t]);return r},t.prototype.fromJSON=function(t){if(t)for(var r in t)t[r]!==l&&(this[r]=t[r])},t}(),r.FormatterBase=W,q=function(){function t(t,r){var n,i,o,u,a,s,f,c;for(Ft.call(this,r),n=this,s=0,f=(a=["<=","<>",">=",">","<","="]).length;s<f;s++)if(i=a[s],e.zf.fJ(t,i,!0)){o=e.zf.VP(t,0,i.length),c=parseFloat(o),j(c)||(u=c);break}if(u===d&&u===l)throw new Error(h().Exp_TokenIllegal);n.value=u,n.WUt=i,n.isMeetCondition=function(t){var r=n.WUt,e=n.value;switch(r){case"<=":return t<=e;case"<>":return t!==e;case">=":return t>=e;case">":return t>e;case"<":return t<e;case"=":return t===e}}}return t.prototype.toString=function(){return yt(this.WUt+this.value.toString())},t}(),Y=function(){function t(t,r){Ft.call(this,r);var n=this;if(n.token=t,n.type=parseInt(e.zf.VP(t,0,5),10),n.type<0||n.type>4)throw new Error(h().Exp_TokenIllegal)}return t.prototype.sHt=function(r,n,i){var o,u,a,s,f,c,y,m,h,M;if(!r||r===K.oHt)return r;for(o=r,u=r,a=-1,s=-1,f=!1,h=r.length-1;h>=0;h--)M=u[h],!j(M)&&!lt(M," ",!1)||lt(M,".",!1)&&!f?(lt(M,".",!1)&&(f=!0),-1===a&&(a=h),s=h):s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m)),a=-1,s=-1,f=!1);return s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m))),o},t.prototype.toString=function(){if(this.type>-1)return yt("DBNum"+this.type);throw new Error},t.numberString=function(r,n,e){var i,o,u=t.formatNumberString,a=r.split(".");if(a){if(1===a.length)return u(a[0],n.numbers,e?n.letters:d);if(2===a.length)return(i=u(a[0],n.numbers,e?n.letters:d))+"."+(o=u(a[1],n.numbers))}throw new Error(h().Exp_ValueIllegal)},t.formatNumberString=function(r,n,e){var i,o,u,a,s,f,c,y,m,h,M,d,l,v,g,b=r,p=0,F=0;if(2===arguments.length){for(o="";p<b.length;p++)i=st(b,p,1),o+=n[F=parseInt(i,10)];return o}if(3===arguments.length){if(!e)return t.formatNumberString(r,n);for(u=0,a="",s=b.length,f=!1,c=[];p<s;p++)(y=e.length-1-p)>-1?c.push(e[y].toString()):c.push(K.oHt);for(m=[],h=c.length-1;h>=0;h--)m[c.length-h-1]=c[h];for(c=m,M=!1,h=0;h<s;h++)i=st(b,h,1),F=parseInt(i,10),d=void 0,l=K.oHt,s-h-16>0?(d=n[F],l="",M=!0):h!==s-1&&h!==s-5&&h!==s-9&&h!==s-13?"0"===i?(d="",l="",u+=1):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[h],u=0):(d=n[F],l=c[h],u=0):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[h],u=0):"0"!==i&&0===u||M?(d=n[F],l=c[h],u=0,M=!1):"0"===i&&u>=3?(d="",l="",u+=1):s>=11?(d="",u+=1):(d="",l=c[h],u+=1),(v=d+l===K.oHt)||(f=!1),h!==s-13||f||(l=c[h],f=!0),h!==s-9||f||(l=c[h],f=!0),h===s-1&&(l=c[h],f=!0),a=a+d+l;return 0===(g=parseInt(r,10))?n[0]:a}},t}(),X=function(){function t(t,r,n,e,i,o){pt.call(this,r,n,e,o);var u=this;u.pU=u.QUt(vt(t)),u.KUt=i,u.JUt=2,u.Hc()}return t.prototype.Hc=function(){var r,n,e,i,o=this,u={y4:o.pU},a=t;if(a.a0(u.y4)){if(r=o.BHt(u),n=R(this.cultureName).amDesignator&&R(this.cultureName).pmDesignator,o.hasJD=o.Vi(u.y4,g.pHt,'"'+g.DHt+'"',!0,!1,u,!1),o.Vi(u.y4,g.gHt,"MMMM",!0,!1,u,!1),o.Vi(u.y4,g.mHt,"MMM",!0,!1,u,!1),o.LHt(u.y4,u),o.Vi(u.y4,g.wHt,"ddd",!0,!0,u,!0),o.Vi(u.y4,g.MHt,"dddd",!0,!0,u,!0),r&&n||(o.Vi(u.y4,g.CHt,"H",!0,!0,u,!1),o.Vi(u.y4,g.SHt,"HH",!0,!0,u,!1)),o.aHt&&(o.j9t||E(o.cultureName).NumberFormat.dbNumber)&&(o.FHt=o.FHt||o.Vi(u.y4,g.cHt,'"@'+g.cHt+'"',!0,!1,u,!0),o.FHt=o.FHt||o.Vi(u.y4,g.fHt,'"@'+g.fHt+'"',!0,!1,u,!0)),o.KUt)for(e=0;e<o.KUt.length;e++)i=o.KUt[e],o.Vi(u.y4,i.Nat,"@"+i.Nat,!0,!0,u,!0);o.PHt=u.y4}else L()},t.prototype.formatString=function(){return this.pU},t.prototype.format=function(t){var r,n,o,u,a,s,f,c,y=this,m=K.oHt,h=d;try{if((h=i.ct._DT(t))&&j(h.valueOf())&&(h=d),h?t=h:m=t.toString(),h&&(m=i.ct.L9t(h,y.PHt,y.j9t&&y.j9t.cultureInfo()||E(y.cultureName),y.O9t),y.hasJD&&(r=E(y.cultureName).DateTimeFormat.monthNames[h.getMonth()],m=e.zf.Vi(m,g.DHt,st(r,0,1))),y.KUt))for(n=24*(i.ct.o0(h)-i.ct.o0(g._Ht))*60*60*1e3,o=0;o<y.KUt.length;o++)a=(u=y.KUt[o]).XUt(n),T(a)||(s=u.Nat.replace("[","\\[").replace("]","\\]"),f=u.Nat.replace("[","").replace("]",""),c=e.zf.B9t(a+"",f.length),m=e.zf.Vi(m,"@"+s,c))}catch(r){m=ft(t)}return Nt(m,t,y.j9t,y.aHt,y.cultureName)},t.prototype.parse=function(t){var r,n,e,o,u;if(!t||t===K.oHt)return d;if(r=this,"true"===(e=B(n=t)))return!0;if("false"===e)return!1;if(r.PHt&&(o=i.ct.nUt(n,r.PHt,E(r.cultureName))))return o;try{return(u=i.ct._DT(n))&&!j(u)?u:(u=new Date(n),j(u.valueOf())?n:u)}catch(t){return n}},t.prototype.QUt=function(t){var r,n,e,i=t,o="",u=!1;for(r=0;r<i.length;r++)'"'===(n=i[r])?u=!u:u||("Y"===n||"D"===n||"S"===n||"E"===n||"G"===n?n=B(n):"M"===n&&(lt("A",e=i[r-1],!0)||lt("P",e,!0)||(n=B(n)))),o+=n;return o},t.prototype.BHt=function(t){var r,n,i,o=R(this.cultureName).amDesignator,u=R(this.cultureName).pmDesignator,a=[g.NHt];for(o&&u?a.push(o+"/"+u):a.push(g.NHt),a.push(g.kHt),r=["tt","tt","t"],n=t.y4,i=0;i<3;i++){if(e.zf.OS(n,r[i]))return!0;if(e.zf.OS(n,a[i],!0))return t.y4=e.zf.Vi(n,a[i],r[i],!0),!0}return!1},t.prototype.LHt=function(t,r){var n,e,i=kt(t),o=-1,u=-1;for(n=0;n<i.length;n++)"symbolic"===(e=i[n]).type?"m"===e.content[0].toLowerCase()?o>=0?(e.content=e.content.toLowerCase(),o=-1):(e.content=e.content.toUpperCase(),u=n):"s"===e.content[0].toLowerCase()?u>=0&&(i[u].content=i[u].content.toLowerCase(),u=-1):"h"===e.content[0].toLowerCase()?(o=n,u=-1):u=-1:u>=0&&n>0&&"0"===e.content&&"."===i[n-1].content&&n===u+2&&(i[u].content=i[u].content.toLowerCase());r.y4=i.map((function(t){return t.content})).join("")},t.prototype.Vi=function(r,n,i,o,u,a,s){var f,c,y,m,h,M,d,l,v,g,b;if(o||u){for(f=[],c=!0,!t.hasDate(r)&&t.hasTime(r)&&(c=!1),y=!1,m=0;m<r.length;m++){if(h=r[m],t.hasTime(h)&&!y?c=!1:t.hasDate(h)&&!y&&(c=!0),o&<(h,n[0],s)&&c||u&<(h,n[0],s)&&!c){for(M=!0,d=0;d<n.length;d++)if(d+m>=r.length||!lt(n[d],r[d+m],s)){M=!1;break}if(l=m+n.length-1,M&&l+1<r.length){for(v=r[l],g=-1,g=l+1;g<r.length&<(v,r[g],s);g++);g>l+1&&(m=g,M=!1)}M&&!y&&f.splice(0,0,m)}'"'===h&&(y=!y)}if(a.y4=r,f.length>0){for(m=0;m<f.length;m++)b=f[m],a.y4=e.zf.VP(a.y4,b,n.length),a.y4=e.zf.Eit(a.y4,b,i);return!0}return!1}return!1},t.hasTime=function(t){return e.zf.hD(t,g.CHt[0],!0)>-1||e.zf.hD(t,g.IHt[0],!0)>-1},t.hasDate=function(t){return e.zf.hD(t,g.fHt[0],!0)>-1||e.zf.hD(t,g.bHt[0],!0)>-1},t.a0=function(t,r){return bt(t,r||b)},t}(),r.Hf=X,Z=function(){function t(t,r){var n,e,i;if(Ft.call(this,r),n=this,"h"===(e=B(t)[0]))i=3600;else if("m"===e)i=60;else{if("s"!==e)throw new Error(h().Exp_TokenIllegal);i=1}n.XUt=function(t){var r=t/1e3/i;return Math.abs(r-Math.round(r))<1e-6?Math.round(r):Math.floor(r)}}return t.Name="ABSTimeFormatPart",t}(),Q=function(){function t(t,r){var n,e;Ft.call(this,r),null!==(n=x.exec(t))&&(e=Number(n[1]),(e-=1)>=0&&e<N.length&&(t=N[e])),this.foreColor=t}return t.prototype.toString=function(){return yt(this.foreColor)},t.Name="ColorFormatPart",t}(),tt=function(){function t(t,r,n,e){var i,o,u,a,s,f;function c(t,r){var n,e,i,o,u,a=[],s='"';if(t===d||""===t)return a;for(n=!1,e=[],i=!1,o=0;o<t.length;o++)(u=t[o])!==s||n||(i=!i),n||i||u!==r?e.push(u):(a.push(e.join("")),e=[]),n="\\"===u&&!n;return a.push(e.join("")),a}pt.call(this,r,n,e),(i=this).qUt=!1,i.JUt=1,i.$Ut=mt(t),o=vt(t),r&&(o=Mt(o,i.j9t.Nat,i.j9t.currencySymbol())),(u=(o=mt(o)).indexOf("/"))>-1&&(a=c(o,"/"))&&2===a.length&&(i.tHt=a[1],(s=a[0])&&((f=s.lastIndexOf(" "))>-1?(i.nHt=st(s,0,f),i.eHt=st(s,f+1,s.length-f-1)):i.eHt=s)),i.iHt=o}return t.prototype.formatString=function(){return this.$Ut},t.prototype.format=function(r){var n,e,i,u,a,s,f,c,y,m,h,M,l,v,g,b,p,F,_,w,D,H;return $(r,"boolean")?r.toString().toUpperCase():(n=this,e=o.lt.uJ(r),j(e)||!isFinite(e)||j(r)?"string"==typeof r?r:d:(i=E(n.cultureName),n.eHt&&n.tHt?(m={value:0},h={value:0},M={value:0},l=n.GHt(),t.getFraction(e,l,m,h,M)?((v=t.getGCD(h.value,M.value))>1&&(h.value/=v,M.value/=v),n.nHt?(y="",1===M.value&&(m.value+=h.value,h.value=0,M.value=0),(g=P(A(m.value,n.nHt,i)))&&"0"!==g&&(y+=g,y+=" "),0===m.value&&e<0&&(y+=i.NumberFormat.negativeSign),0===e&&(y+="0"),a=n.tHt,s=parseFloat(a),!j(s)&&s>0&&(0!==h.value&&0!==M.value&&(h.value*=s/M.value),M.value=s,a=a.replace(/^\d+/,t.toNumberPlaceholder(s)),c=(f=Math.ceil(h.value))-h.value,h.value=c<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString())),b=n.eHt,p=parseFloat(b),j(p)||0!==p||((F=b.length)>(w=(_=h.value.toString()).length)?b=b.substr(0,F-(F-w)):F<w&&(_=_.substr(0,w-(w-F)),h.value=parseInt(_,10))),D=n.UHt(h.value,M.value,b,a,i),0===h.value&&(D=D.replace(/./g," "),""===g)?"0 "+D:""===(y+=D)?"0":y):(y="",H=m.value*M.value+h.value,a=n.tHt,(s=parseFloat(a))>0?(H*=s/M.value,M.value=s,y+=(H=(c=(f=Math.ceil(H))-H)<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString()))+"/"+M.value):y+=n.UHt(H,M.value,n.eHt,n.tHt,i),0===H?"0":y)):e.toString()):u=xt(u=A(e,n.iHt,i),n.qUt,n.j9t,n.aHt,n.cultureName)))},t.prototype.parse=function(t){var r,n,i,o,u,a,s,f,c,y,m,h,M,l,g,b=this;if(!t||t===K.oHt)return d;if("TRUE"===(r=G(t))||r===z()&&z().boolean_true)return!0;if("FALSE"===r||r===z()&&z().boolean_false)return!1;if((n="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),i=b.eHt&&b.tHt,o=b.zHt(b.iHt).HHt,(i||o)&&(u=0,i&&b.nHt&&0<(a=(t=t.trim()).lastIndexOf(" "))&&a<t.length-1&&(u=parseInt(t.substr(0,a),10),t=t.substr(a+1)),0<(s=t.indexOf("/"))&&s<t.length-1&&(f=t.substr(0,s),c=t.substr(s+1),!(j(f)||j(c)||(y=parseInt(f,10),m=parseInt(c,10),j(y)||j(m)||0===m)))))return u+y/m;if(t=b.VHt(t),t=b.YHt(t),M=(h=b.zHt(t)).HHt,l=h.$6t,b.ZHt(l)&&(l=e.zf.OUt(l,I(b.cultureName).numberGroupSeparator,"",!1),g=S.dUt(l,b.cultureName),!j(g)&&isFinite(g))){if(M&&(g=O(g/100,15)),n){if("-"===l.charAt(0)||"+"===l.charAt(0))return d;g=-1*v(g)}return g}return d},t.prototype.GHt=function(){var t,r,n=this,e=n.tHt,i=0;if(e)for(t=e.length,r=0;r<t&&e[r].match(/[#?\d]/);r++)i++;return i},t.prototype.ZHt=function(t){var r,n="",e=0,i=0,o=0,u=d,a=I(this.cultureName);for(r=t.length-1;r>-1;r--){if(t[r]===a.numberDecimalSeparator)e++,o>0&&(u=!1),n="";else if("e"===B(t[r])){if(i++,n="",r===t.length-1)return!1}else if(t[r]===a.numberGroupSeparator)u=3===n.length,o++,n="";else if("-"===t[r]||"+"===t[r]){if(r>0&&"e"!==B(t[r-1]))return!1}else{if(!J(t[r]))return!1;if(n+=t[r],0===r&&0===parseInt(n,10)&&u)return!1}if(e>1||i>1||!1===u)return!1}return!0},t.prototype.VHt=function(t){var r,n,i,o,u,a,s,f=t,c=[];for(r=0;r<f.length;r++)J(f[r])&&c.push(r);for(i=[(n=I(this.cultureName)).currencyDecimalSeparator,n.currencyGroupSeparator,n.currencySymbol,M,n.nanSymbol,n.negativeInfinitySymbol,n.negativeSign,n.numberDecimalSeparator,n.numberGroupSeparator,n.percentDecimalSeparator,n.percentGroupSeparator,n.percentSymbol,n.perMilleSymbol,n.positiveInfinitySymbol,n.positiveSign],o=f.length-1;o>-1;o--)if(u=f[o],U(u)&&i.indexOf(u.toString())<=-1)(o<c[0]||c[c.length-1]<o)&&(f=e.zf.VP(f,o,1));else if(("-"===u||"+"===u)&&(a=o>0?f[o-1].toString():d,(s=["e","E","(",I(this.cultureName).currencySymbol,M]).indexOf(a)<0))break;return f},t.prototype.YHt=function(t){var r,n;if(e.zf.fJ(t,M)){if((r=e.zf.VP(t,0,1)).indexOf(M)<0)return r}else if(n=I(this.cultureName).currencySymbol,M!==n&&e.zf.fJ(t,n)&&(r=e.zf.VP(t,0,n.length)).indexOf(n)<0)return r;return t},t.prototype.zHt=function(t){var r=I(this.cultureName).percentSymbol,n=!0,i=t;return e.zf.fJ(t,r)?i=e.zf.VP(t,0,r.length):e.zf.dT(t,r)?i=e.zf.VP(t,t.length-r.length,r.length):n=!1,e.zf.OS(i,r)&&(n=!1),{$6t:i,HHt:n}},t.prototype.UHt=function(t,r,n,e,i){var o=P(A(t,n,i)),u="0."+r,a="#."+e,s=P(A(u,a,i,!0)),f=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",c=o+"/"+s.substr(s.indexOf(f)+1);return""===n&&(c=t+c),""===e&&(c+=r),c},t.getGCD=function(t,r){var n,e,i;if(0===t)return v(r);if(0===r)return v(t);for(i=(n=Math.max(t,r))%(e=Math.min(t,r));0!==i;)i=(n=e)%(e=i);return v(e)},t.getFraction=function(t,r,n,e,i){var o,u,a,s,f,c,y,m,h,M=0,d=0,l=0,g=0,b=Math.ceil;for(t>0?1===(g=t-b(t)+1)?(g=0,M=t):M=b(t)-1:t<0&&(M=b(t),g=b(t)-t),(o=Math.pow(10,r-1))<2&&(o=2),(u=Math.pow(10,r)-1)<2&&(u=2),a=!1,s=0,f=o;f<=u&&(c=f*g,y=Math.round(c),h=v((m=y/f)-g),!((!a||h<v(s-g))&&(a=!0,s=m,d=y,l=f,h<1e-6)));f++);return n.value=M,e.value=d,i.value=l,a},t.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},t}(),rt=function(){function t(r,n,e,i){pt.call(this,n,e,i),arguments.length>0?(t.rHt(r)||L(),this.$Ut=r):this.$Ut="General",this.JUt=0}return t.rHt=function(t){var r,n,e="",i=!1,o=-1,u=t.length;for(r=0;r<u;r++)'"'===(n=t[r])?o=(i=!i)?r:-1:i||(e+=n);return o>0&&(e+=t.substring(o,u)),!(e.indexOf("0")>=0||e.indexOf("#")>=0||e.indexOf(".")>=0||e.indexOf("@")>=0)},t.prototype.WHt=function(){var t,r=this;return r.QHt||(t=Mt(t=r.$Ut,"General",C),r.QHt=new tt(t,r.j9t,r.aHt,r.cultureName),r.QHt.qUt=!0),r.QHt},t.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new tt("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},t.prototype.formatString=function(){return e.zf.Vi(this.$Ut,"@NumberFormat","General")},t.prototype.format=function(t){var r,n,i,u=this;if(o.lt.q8(t,u.cultureName)){if(r=!u.j9t||u.j9t.allowScience(),(n=o.lt.uJ(t))!==l&&n!==d)return v(n)>99999999999&&r||v(n)<1e-11&&0!==n?u.KHt().format(t):u.WHt().format(t)}else{if($(t,"string"))return i=dt(i=e.zf.Vi(u.formatString(),'"',"")),t;if($(t,"boolean"))return t.toString().toUpperCase()}return""},t.prototype.parse=function(t){var r,n,o,u,s,f,c,y,m,h,M,g,b,p,F;if(K.Ji(t))return d;if("number"==typeof t)return t;if(r=!1,n=t.trim(),(o=e.zf.hD(n,"-",!1))>0&&!lt(n.charAt(o-1),"E",!0)&&(r=!0),f=(s=(u=E(this.cultureName)).DateTimeFormat).dateSeparator,c=s.timeSeparator,y=s.monthNames,m=s.abbreviatedMonthNames,h=function(t,r){var n,i,o;if(!r||0===r.length)return!1;for(n=!1,i=0,o=r.length;i<o;i++)if(e.zf.OS(t,r[i],!0)){n=!0;break}return n},(r||e.zf.OS(n,f,!1)||e.zf.OS(n,c,!1)||e.zf.OS(n,"/",!1)||e.zf.OS(n,":",!1)||e.zf.OS(n,"-",!1)||e.zf.OS(n,"\u5e74",!1)||e.zf.OS(n,"\u6708",!1)||e.zf.OS(n,"\u65e5",!1)||h(n,y)||h(n,m)||"ja-JP"===u.name()&&a.XPt.gGt.indexOf(n[0].toUpperCase())>=0&&e.zf.OS(n,".",!1))&&(M=i.ct.yU(n)))return M;if((b="-"===n.charAt(0))||"+"===n.charAt(0)){if("("===(n=e.zf.VP(n,0,1)).charAt(0)&&")"===n.charAt(n.length-1))return t}else if("("===n.charAt(0)&&")"===n.charAt(n.length-1)&&(p=!0,"-"===(n=(n=n.substring(1,n.length-1)).trim()).charAt(0)||"+"===n.charAt(0)))return t;return(g=this.WHt().parse(n))!==d&&g!==l?(F=p&&$(g,"boolean"))?t:(p||b)&&$(g,"number")?-1*v(g):g:t},t}(),nt=function(){function t(t,r,n,e){var i,o=this;pt.call(o,r,n,e),i=vt(t,!1),r&&(i=Mt(i,o.j9t.Nat,o.j9t.currencySymbol())),i=dt(i=mt(i)),o.pU=i,o.JUt=3}return t.prototype.format=function(t,r){var n,e,o,u=this;try{return n=void 0,e=void 0,e=t instanceof Date?i.ct.o0(t).toString():ft(t),o=u.XHt(u.pU),n=u.qHt(e,o.formatTokens,t,o.hasAtPart,r)}catch(t){return""}},t.prototype.parse=function(t){return t||""},t.prototype.formatString=function(){return this.pU},t.prototype.XHt=function(t){var r,n,e=[],i=!1,o="",u=!1,a=d;for(n=0;n<t.length;n++)r=t.charAt(n),u?('"'!==r?o+=r:(o+=r,e.push(o),o="",u=!1),a=r):"*"!==a&&"_"!==a&&"\\"!==a||""===o?"*"!==r&&"_"!==r&&"\\"!==r?"@"!==r?'"'!==r?(o+=r,a=r):(a=r,""!==o&&e.push(o),o=r,u=!0):(a=r,""!==o&&(e.push(o),o=""),e.push(r),i=!0):(a=r,""!==o&&(e.push(o),o=""),o+=r):(o+=r,e.push(o),o="");return""!==o&&e.push(o),{formatTokens:e,hasAtPart:i}},t.prototype.qHt=function(t,r,n,e,i){var o,u,a=[],s=!1;if("string"!=typeof n||e||i)for(o=r.length-1;o>=0;o--)"*"===(u=r[o])[0]?s||(s=!0,a.push({type:"fillingChar",value:u[1]})):"_"===u[0]?a.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&a.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?a.push({type:"text",value:"@"}):"@"===u[0]?a.push({type:"text",value:t}):a.push({type:"text",value:u});else a.push({type:"text",value:n});return a.reverse()},t}(),et=function(){return{pattern:H,formatter:["d-mmm","mmm-yy",R().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",R().shortDatePattern+" h:mm",R().shortDatePattern+" h:mm:ss",R().shortDatePattern+" h:mm:ss.0"]}},it=function(){function t(t,r){var n=this;0===arguments.length?(n.formatCached="General",n.E9t=new rt):n.Hc(t,r)}return t.prototype.Hc=function(r,n){var e,i,o,u,s,f,c,y,m,h,M,v,g,b,p,F,_;for(r!==d&&r!==l||L(),e=r,(i=this).formatCached=r,o="",u="",s=!1,f=!1,c=!1,y=[],m=0;m<r.length;m++)'"'===(h=r[m])?(f=!f,u+=h):f?u+=h:"["===h?(s&&L(),u&&(o||(o=""),o+=u),u=h.toString(),s=!0):"]"===h?(s||L(),u?(M=(u+=h).toString(),(v=_t(u.toString()))?"ABSTimeFormatPart"===v.Name?(y.push(new v(t.preProcessPart(M),M)),o+=u):M===a.XPt.eraExcelFormatter?(i.addPart(v,a.XPt.eraInternalFormatter),c=!0):i.addPart(v,M):(o+=g=t.partToNormalStr(M),e=Mt(r,M,g)),u=""):L(),s=!1):u+=h;u?s?L():o+=u:o||(o=i.$Ht()),i.localeIDFormatPart&&(n=i.localeIDFormatPart.cultureInfo().name()),F=(p=wt(o,b=i.conditionalFormatPart))._type,_=p.uHt?e:o,F?i.E9t=new F(_,i.localeIDFormatPart,i.dbNumberFormatPart,n,y.length>0?y:d,c):L()},t.prototype.$Ht=function(){var r,n=this,e="";return n.dbNumberFormatPart&&((r=t.proNames.some((function(t){return"dbNumberFormatPart"!==t&&n[t]})))||(e="General")),e},t.prototype.formatString=function(){var r,n,e,i=this,o="";for(r=0,n=t.proNames.length;r<n;r++)i[e=t.proNames[r]]&&(o+=i[e].toString());return o+=i.E9t.formatString()},t.prototype.addPart=function(r,n){var e,i,o,u=this,a=t.proNames,s=t.preProcessPart(n);for(e=0,i=a.length;e<i;e++)if(lt(o=a[e],r.Name,!0)){if(u[o])throw new Error(h().Exp_DuplicatedDescriptor);u[o]=new r(s,n)}},t.prototype.format=function(t,r){return this.E9t.format(t,r)},t.prototype.parse=function(t){return this.E9t.parse(t)},t.checkFormatter=function(t){if(!t||t===K.oHt)throw new Error(h().Exp_TokenIllegal)},t.preProcessPart=function(r){t.checkFormatter(r);var n=ht(r);return t.checkFormatter(n),n},t.partToNormalStr=function(r){var n=t.preProcessPart(r);return n[0]===M&&(n=n.slice(1)),'"'+n+'"'},t.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],t}(),ot=function(t){function r(r,n){var e=t.call(this,r,n)||this,i=e;return i.lHt=!0,i.PropertyChanged=[],K.Ji(r)&&(r="General"),i.formatCached=r,i.cultureName=n,i.init(),e}return ut(r,t),r.prototype.toJSON=function(){var t=this,r={formatCached:t.formatCached};return t.cultureName&&(r.customerCultureName=t.cultureName),"general"===B(t.formatCached)&&delete r.formatCached,r},r.prototype.hasFormattedColor=function(){var t,r,n=this;for(t in _)if(_.hasOwnProperty(t)&&(r=n.getFormatter(_[t]))&&r.colorFormatPart)return!0;return!1},r.prototype.formatString=function(t){var r,n,e,i,o=this;if(0===arguments.length){for(r=K.oHt,n=0,e=o.formatters.length;n<e;n++)r+=(i=o.formatters[n]).formatString(),n!==e-1&&(r+=";");return r}if(!t)throw new Error(h().Exp_ValueIsNull);return o.formatters=d,o.formatCached=t,o.init(),o.tzt("formatString"),o},r.prototype.getFormatter=function(t){var r=this;return r.formatters&&r.formatters[t]},r.prototype.getPreferredEditingFormatter=function(t){var n,e,i,u=R(this.cultureName),a=I(this.cultureName),s=r.defFormatter;return $(t,"TimeSpan")?s(u.longTimePattern):$(t,"DateTime")?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",s(u.shortDatePattern+e)):o.lt.q8(t,this.cultureName)?s((i=o.lt.uJ(t))>=1e21||i<=1e-17&&i>0||i<=-1e21||i<0&&i>=-1e-17?null!==(n=a.scientificNotation)&&void 0!==n?n:"0.##############E+00":C):s("General")},r.prototype.getPreferredDisplayFormatter=function(t,n){var u,a,s,f,c,y,m,h,M,l,v,g,b,p,F,_,w,D,H,N,x,k,S,C,P,A=this,O=r.defFormatter;if(n||(n={value:d}),n.value=d,K.Ji(t))return new r;if(u=t,a=n.value=A.parse(u),$(a,"DateTime")||$(a,"TimeSpan")){for(f=(s=et()).pattern,c=s.formatter,(h=(m=(y=E(A.cultureName)).DateTimeFormat).preselectedFormatters).length>0&&(f=f.concat([h]),c=c.concat([h[0]])),"ja-JP"===y.name()&&(f=f.concat([m.eraFormatter]),c=c.concat(["ge.M.d"]),M=y.QPt.filter((function(t){return"ggge"===t.substr(0,4)})),f=f.concat([M]),c=c.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),l=y.QPt.filter((function(t){return"gge"===t.substr(0,3)})),f=f.concat([l]),c=c.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),v=y.QPt.filter((function(t){return"ge"===t.substr(0,2)})),f=f.concat([v]),c=c.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),g=0;g<f.length;g++)for(b=f[g],p=0;p<b.length;p++)if(F=b[p],(_=i.ct.yU(t,F))&&_-a===0)return new r(c[g])}else if(o.lt.q8(a,A.cultureName)){if(D=(w=I(A.cultureName)).currencySymbol,H=w.numberDecimalSeparator,N=w.percentSymbol,x=w.numberGroupSeparator,k="E",P=(C=(S=e.zf.OS)(u,H))?".00":"",u[0]===D)return O(K.I5("{0}#,##0{1};[Red]({0}#,##0{1})",D,P));if(S(u,k,!0))return O("0.00E+00");if(u[0].toString()===N||u[u.length-1].toString()===N)return O(K.I5("0{0}%",P));if(S(u,x))return O(K.I5("#,##0{0}",P))}return O("General")},r.prototype.format=function(t,r){var n,e,i,u,a,s,f;if($(t,"boolean"))return z()&&(t=t?z().boolean_true:z().boolean_false),t.toString().toUpperCase();if(i=0,u=(n=this).vn(t)){a=u.colorFormatPart,r&&a&&(r.conditionalForeColor=r.value=a.foreColor),(e=o.lt.q8(t,n.cultureName))&&(i=o.lt.uJ(t)),s=K.oHt;try{e&&u===n.getFormatter(_.jHt)&&0!==this.expressionNumber?(s=u.format(u.considerNegSymbol?i:v(i)))===d&&$(t,"string")&&(s=t):(s=u.value)===l&&(f=!n.lHt&&u===n.getFormatter(_._text),s=u.format(t,e||f)),r&&(r.content=k(s)?s:[{type:"text",value:s}]),k(s)&&(s=S.mUt(s))}catch(r){$(t,"string")&&(s=t.toString())}return s}return e&&i<0?"-".toString():$(t,"string")?t.toString():t===l||t===d?K.oHt:t.toString()},r.prototype.parse=function(t){var r=this;return r.formatters&&r.formatters.length>0?r.formatters[0].parse(t):d},r.prototype.init=function(){var t,r,n,e=this,i=e.formatCached;for(K.Ji(i)&&L(),e.formatters=[],t=$t(i),e.lHt=1===t.length,(!t||t.length<1||t.length>4)&&L(),r=0;r<t.length;r++)-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?L():this.hasAt=!0),n=new it(t[r],e.cultureName),e.formatters.push(n);e.getFormatter(_.EHt)||L(),this.nzt()},r.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;_=o.lt.Dh({},w[t]),this.hasAt&&0!==this.expressionNumber&&(_._text=this.formatters.length-1)},r.prototype.vn=function(t){var r,n,e,i,u,a,s,f,c,y,m,h=this;if(h.nzt(),n=(r=h.getFormatter(_.EHt))&&r.conditionalFormatPart,e=h.getFormatter(_._text),n&&(_.OHt=2,this.hasAt||(_._text=3)),"string"==typeof t&&j(t))return e||(n?t:r);if(o.lt.q8(t,h.cultureName)||$(t,"boolean")){if(i=h.getFormatter(_.jHt),u=h.getFormatter(_.OHt),a=o.lt.uJ(t),s=n&&r.conditionalFormatPart.isMeetCondition(a),c=(f=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(a),y=void 0,h.lHt||(n?s:a>0||0===a&&!u))y=r;else if(f?c:a<0)y=i;else if(u)y=u;else if(i){if(n&&f)return{value:m=a+""};y=i}return y&&(!n||f||y!==i||u||(y.considerNegSymbol=!0),n&&f&&y===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(y.considerNegSymbol=!0),this.expressionNumber<=1&&(y.considerNegSymbol=!0)),y}return d},r.prototype.tzt=function(t){var r,n,e=this;if(e.PropertyChanged)for(r=0;r<e.PropertyChanged.length;r++)"function"==typeof(n=e.PropertyChanged[r])&&n(e,t)},r.defFormatter=function(t){var n=r[t];return n||(n=new r(t),r[t]=n),n},r.test=function(t){var r,n,e=!0;try{r=new c.Lexer(t),(n=new y.Parser(r)).parse()}catch(t){e=!1}return e},r}(W),r.GeneralFormatter=ot},"./src/plugins/formatter/formatterGrammar/interface.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=r.BACKSLASH=r.UNDERLINE=r.ASTERISK=r.DOUBLE_QUOTE=r.SEMICOLON=void 0,r.SEMICOLON=";",r.DOUBLE_QUOTE='"',r.ASTERISK="*",r.UNDERLINE="_",r.BACKSLASH="\\";var n=function(){throw new Error("Invalid Number Format")};r.throwError=n},"./src/plugins/formatter/formatterGrammar/lexer.ts":function(t,r,n){var e,i,o,u,a;Object.defineProperty(r,"__esModule",{value:!0}),r.Lexer=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(t){var r;return!!["0","#","?",".","%",",","/",e.BACKSLASH,e.ASTERISK,e.UNDERLINE,"@"].find((function(r){return r===t}))},o=function(t){var r;return[e.BACKSLASH,e.ASTERISK,e.UNDERLINE].find((function(r){return r===t}))},u=function(t,r){return{type:t,value:r}},a=function(){function t(t){this.Fmt=[],this.DZe=t,this.vHr()}return t.prototype.vHr=function(){for(var t,r,n=0,a=this.DZe;n<a.length;n++)if(t=a[n],i(t)){if(o(t)){this.Fmt.push(u("symbol",t)),n<a.length-1&&(this.Fmt.push(u("char",a[n+1])),n++);continue}this.Fmt.push(u("symbol",t))}else if(t!==e.SEMICOLON){if(t===e.DOUBLE_QUOTE){if(-1!==(r=a.slice(n+1).search(e.DOUBLE_QUOTE))){r=r+n+1,this.Fmt.push(u("text",a.slice(n+1,r))),n=r;continue}(0,e.throwError)()}this.Fmt.push(u("char",t))}else this.Fmt.push(u("semicolon",t));this.Fmt.push(u("EOF",""))},t.prototype.jbi=function(){return this.Fmt.shift()},t}(),r.Lexer=a},"./src/plugins/formatter/formatterGrammar/parser.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(){function t(t){this.bHr=t,this.SYr=t.jbi()}return t.prototype.TYr=function(t){this.SYr.type===t?this.SYr=this.bHr.jbi():(0,e.throwError)()},t.prototype.parse=function(){for(var t=[];"EOF"!==this.SYr.type;)t.push(this.xYr()),t.length>4&&(0,e.throwError)();return{type:"numberFormat",body:t}},t.prototype.xYr=function(){for(var t,r=[];"semicolon"!==this.SYr.type&&"EOF"!==this.SYr.type;)"symbol"===(t=this.SYr.type)?r.push(this.wHr()):r.push(this.yHr());return"semicolon"===this.SYr.type&&this.TYr("semicolon"),{type:"formatPart",body:r}},t.prototype.wHr=function(){var t,r=this.SYr.value;return r===e.ASTERISK?(this.TYr("symbol"),t={type:"asterisk",body:this.SYr.value},this.TYr("char")):r===e.BACKSLASH?(this.TYr("symbol"),t={type:"char",body:this.SYr.value},this.TYr("char")):r===e.UNDERLINE?(this.TYr("symbol"),t={type:"underline",body:this.SYr.value},this.TYr("char")):(t={type:"symbol",body:this.SYr.value},this.TYr("symbol")),t},t.prototype.yHr=function(){var t,r=this.SYr.type;return"char"===r?(t={type:"char",body:this.SYr.value},this.TYr("char")):"text"===r&&(t={type:"text",body:this.SYr.value},this.TYr("text")),t},t}(),r.Parser=i},"./src/plugins/slicer/slicer.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/slicer/slicer.ts"),r)},"./src/plugins/slicer/slicer.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h;function M(t){return"object"==typeof t&&t!==o&&t.text!==i}function d(t,r){var n,e,f;if(t===o||t===i)return!1;if($(t)===u)r.value=t;else if($(t)===s)r.value=t?1:0;else if(t instanceof Date)r.value=m.o0(t);else{if($(t)!==a)return!1;if(0===k(t=t.trim()))return!1;if(n=!1,"%"===t.charAt(k(t)-1)&&(n=!0,t=t.substr(0,k(t)-1)),k(t)>=2&&"0"===t[0]&&"x"===t[1])return!1;if(e=Number(t).valueOf(),isNaN(e)||!isFinite(e)){if(f=new Date(t),isNaN(f))return!1;e=m.o0(f)}n&&(e/=100),r.value=e}return!0}function l(t){var r,n,e,i,o,u,a,s,f,c,y,m,h,M,d,l=t.ezt;for(l||(t.izt=[],t.rzt=[]),r=l?t.ozt:t.izt,n=t.azt,e=t.uzt,i=l?t.szt:t.rzt,o=t.Mct,u=t.czt,a=t.fzt,s=t.SIr(),c={},y=0;y<s;y++){for(m=!1,h=void 0,M=0;M<k(o)&&(h=o[M],l&&h===t.lzt||(e[h]?(x(c[d=t.columnNames[h]])&&(c[d]=t.getColumnIndex(d)),f=t.fue(c[d],y),m=!e[h][f]):n[h]&&(m=!n[h][y]),!m));M++);!m&&l&&(u?(x(c[d=t.columnNames[h]])&&(c[d]=t.getColumnIndex(d)),m=!u[f=t.fue(c[d],y)]):a&&(m=!a[y])),m||(r[y]=!0)}for(M=0;M<k(r);M++)r[M]&&i.push(M)}function v(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?m.o0(t):t}function g(t){var r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<k(r);n++)e[(r[n]+"").toUpperCase()]=n}function b(t,r){var n,e,i,o,u,a,s,f=t.vzt,c=t.pzt,y=t.mzt,m=t.gzt,h=m[r]=[];for(t.bzt=[],t.xIr(r,[]),f[r]=[],c[r]={},y[r]=[],n={},e=0;e<t.SIr();e++)o=M(i=t.JNr(e,r))?i.text.trim():i,t.TIr(r,o),(u=n[v(o)])?(u.list.push(e),h[e]=u.index):(a=[e],f[r].push(o),y[r].push(a),s=k(y[r])-1,c[r][o]=s,h[e]=s,n[v(o)]={list:a,index:s})}function p(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,d,l=t.yzt,v=t.getColumnIndex(r),g=[];if(!v)return g;if(e=t.ezt?t.wzt:t.Mzt[v],i=t.izt,!e)return g;for(l[v]||t.Czt(v),o=[],u=l[v],a=0;a<k(u);a++)f=M(s=t.JNr(a,v))?s.value:s,o[u[a]]=f;for(c=t.Szt[v],a=0;a<k(e);a++){for(y=e[a],m=!1,d=(h=t.Tzt(o,y)).start;d<=h.end;d++)if(i[c[d]]){m=!0;break}m!==n&&g.push(y)}return g}function F(t,r){var n,e,i,o,u=[],a=t.getColumnIndex(r);if(a>=0){for(n=k(t.getData(r)),e=t.ezt?t.ozt:t.izt,i=0;i<n;i++)e[i]||(o=t.fue(a,i),-1===u.indexOf(o)&&u.push(o));return u}}function _(t,r){var n,e,i,o,u,a,s,f=[],c={},y=t.getColumnIndex(r);if(y>=0)for(n=t.czt||t.fzt,e=t.uzt[y]||t.azt[y],i=t.ezt&&y===t.lzt?n:e,u=k((o=!!t.azt[y])?t.getData(r):t.getExclusiveData(r)),a=0;a<u;a++)i&&!i[a]&&(c[s=o?t.fue(y,a):a]||(c[s]=!0,f.push(s)));return f}function w(t,r){var n,e,i,o,u,a,s,f,c,y={},m=t.columnNames,h=k(m);for(n=0;n<h;n++)if(m[n]!==r)for(e=_(t,m[n]),i=0;i<k(e);i++)for(o=t.getRowIndexes(m[n],e[i]),u=0;u<k(o);u++)y[o[u]]||(y[o[u]]=!0);for(a={},h=t.SIr(),n=0;n<h;n++)s=t.getExclusiveRowIndex(r,n),y[n]||(a[s]=!0);for(f=k(t.getExclusiveData(r)),c=[],n=0;n<f;n++)a[n]||c.push(n);return c}function D(t,r,n,e){var i,o,u,a,s,f,c,y,m=t.getColumnIndex(r),h=t.yzt;for(h[m]||t.Czt(m),i=[],o=h[m],u=0;u<k(o);u++)s=M(a=t.JNr(u,m))?a.value:a,i[o[u]]=s;for(f=[],u=0;u<k(n);u++)for(c=t.Tzt(i,n[u]),y=0;y<k(o);y++)o[y]>=c.start&&o[y]<=c.end&&(f[y]=!0);e?(t.fzt=f,t.wzt=n):(t.Mzt[m]=n,t.azt[m]=f,delete t.uzt[m],delete t.Azt[m]),l(t)}function H(t,r,n,e){var i,o=t.getColumnIndex(r),u=[];for(i=0;i<k(n);i++)u[n[i]]=!0;e?t.czt=u:(t.uzt[o]=u,t.Azt[o]=n,delete t.Mzt[o],delete t.azt[o]),l(t)}function N(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function x(t){return t===i||t===o}function $(t){return typeof t}function k(t){return t?t.length:0}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralSlicerData=r.xzt=r.SlicerAggregateType=r.FilteredOutDataType=void 0,e=n("./src/common/util/datetimehelper.ts"),i=void 0,o=null,u="number",a="string",s="boolean",f=e.ct.o0,function(t){t[t.all=0]="all",t[t.byCurrentColumn=1]="byCurrentColumn",t[t.byOtherColumns=2]="byOtherColumns"}(c=r.FilteredOutDataType||(r.FilteredOutDataType={})),function(t){t[t.average=1]="average",t[t.count=2]="count",t[t.counta=3]="counta",t[t.max=4]="max",t[t.min=5]="min",t[t.product=6]="product",t[t.stdev=7]="stdev",t[t.stdevp=8]="stdevp",t[t.sum=9]="sum",t[t.vars=10]="vars",t[t.varp=11]="varp"}(y=r.SlicerAggregateType||(r.SlicerAggregateType={})),m=function(){function t(){}return t.o0=function(t){return f(t)},t.quickSort=function(r){var n,e=k(r),i=[];for(n=0;n<e;n++)i[n]={index:n,value:r[n]};return t.quickSortImp(i)},t.quickSortImp=function(r){var n,e,i,o,u,a,s,f,c=r.length;if(c<=1)return r;for(n=t,i=r[e=Math.floor(c*Math.random())],o=[],u=[],a=[],s=0;s<c;s++)e!==s?(f=n.sortCompare(r[s].value,i.value))<0?o.push(r[s]):f>0?u.push(r[s]):a.push(r[s]):a.push(r[s]);return n.quickSortImp(o).concat(a,n.quickSortImp(u))},t.isEquals=function(t,r){return!(!x(t)&&""!==t||!x(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():$(t)===a&&$(r)===a?t.toLowerCase()===r.toLowerCase():t===r)},t.isGreaterThan=function(r,n){var e=$(r),i=$(n);return e===s?r=r?1:0:r instanceof Date&&(r=t.o0(r)),i===s?n=n?1:0:n instanceof Date&&(n=t.o0(n)),e===i||e!==u&&i!==u?e===a&&i===a?r.toLowerCase()>n.toLowerCase():r>n:i===u},t.sortCompare=function(r,n){var e=t,i=-1,o=x(r)||""===r||$(r)===u&&isNaN(r),a=x(n)||""===n||$(n)===u&&isNaN(n);return o&&a?i=0:o?i=1:a?i=-1:e.isEquals(r,n)?i=0:e.isGreaterThan(r,n)&&(i=1),i},t}(),r.xzt=m,h=function(){function t(t,r){var n=this;n.hzt={},n.dzt=[],n.vzt=[],n.pzt=[],n.mzt=[],n.gzt=[],n.uzt=[],n.Azt=[],n.azt=[],n.Mzt=[],n.izt=[],n.rzt=[],n.Mct=[],n.szt=[],n.ozt=[],n.ezt=!1,n.aT=[],n.Upt=0,n.bzt=[],n.Szt=[],n.yzt=[],n.lue=0,Object.defineProperty(n,"data",{get:function(){return this.VEt()},set:function(t){n.HY(t)}}),n.Izt(t,r),n.AIr()}return t.prototype.AIr=function(){var t,r=this;for(t=0;t<r.SIr();t++)r.izt[t]=!0,r.rzt.push(t)},t.prototype.VEt=function(){return this._data},t.prototype.HY=function(t){this._data=t},t.prototype.SIr=function(){return k(this._data)},t.prototype.JNr=function(t,r){return this._data[t][r]},t.prototype.IIr=function(t,r,n){this._data[t][r]=n},t.prototype.kIr=function(t,r){var n,e=this,i=this._data,o=k(e.columnNames);for(n=0;n<r;n++)i.splice(t,0,new Array(o))},t.prototype.tX=function(t,r){this._data.splice(t,r)},t.prototype.NIr=function(t,r){var n,e=this._data;for(n=0;n<k(e);n++)e[n].splice(t,r)},t.prototype.jIr=function(t,r,n){this.dzt[t][r]=n},t.prototype.DIr=function(t){return!!this.dzt[t]},t.prototype.jEe=function(t){return this.dzt[t]},t.prototype.xIr=function(t,r){this.dzt[t]=r},t.prototype.TIr=function(t,r){this.dzt[t].push(r)},t.prototype._Ir=function(t,r,n){this.dzt[t].splice(r,0,null!=n?n:i)},t.prototype.OIr=function(t,r,n){this.dzt[t].splice(r,n)},t.prototype.EIr=function(t,r){this.dzt.splice(t,r)},t.prototype.inPreview=function(){return this.ezt},t.prototype.Izt=function(t,r){var n=this;n._data=t,n.columnNames=r,g(n)},t.prototype.vue=function(t){var r=this;r.mue&&0===r.lue&&(r.Nzt("onDataChanged",t),r.mue=!1)},t.prototype.gue=function(){this.lue++},t.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},t.prototype.onDataChanged=function(t){var r,n,e,i,o,u,a,s,f,c,y,m=this,h=new Array(k(m.columnNames)),d=m.Azt,v=m.vzt,g=m.uzt,p={};for(r=0;r<k(t);r++)e=(n=t[r]).data,i=n.columnName,o=n.row,x(p[i])&&(p[i]=m.getColumnIndex(i)),u=p[i],o>=m.SIr()&&m.onRowsAdded(o,1,!1),m.IIr(o,u,e),a=M(e)?e.text:e,m.DIr(u)&&m.jIr(u,o,a),h[u]=!0;for(s=0;s<k(h);s++)if(h[s]){for(f=d[s],d[s]=f?[]:void 0,g[s]=f?[]:void 0,c=[],r=0;f&&r<k(f);r++)c.push(v[s][f[r]]);for(b(m,s),r=0;r<k(c);r++)y=m.pzt[s][c[r]],d[s].push(y),g[s][y]=!0}l(m),m.mue=!0,m.vue(t)},t.prototype.Nzt=function(t){var r,n,e,i,o=[];for(r=1;r<arguments.length;r++)o[r-1]=arguments[r];for(n=this.aT||[],e=0;e<k(n);e++)(i=n[e])[t]&&i[t].apply(i,o)},t.prototype.onColumnNameChanged=function(t,r){var n=this,e=n.hzt,i=n.getColumnIndex(t);i<0||(n.columnNames[i]=r,delete e[t.toUpperCase()],e[r.toUpperCase()]=i,n.Nzt("onColumnNameChanged",t,r))},t.prototype.onRowsAdded=function(t,r,n){var e,i,u,a,s,f,c,y,h,M,d,l,v,g=this,b=k(g.columnNames),p=g.vzt,F=g.mzt,_=g.gzt,w=g.uzt,D=g.Azt,H=g.izt,N=g.rzt,x=g.Mct;for(g.bzt=[],g.kIr(t,r),i=0;i<b;i++){for(e=0;e<r;e++)g.DIr(i)&&g._Ir(i,t);if(s=void 0,a=p[i]){for(f=o,c=0;c<k(a);c++){for(y=F[i][c],h=0;h<k(y);h++)y[h]>=t&&(y[h]+=r);m.isEquals(a[c],o)&&(f=y,s=c)}for(f||(f=[],a.push(o),s=k(a)-1,g.pzt[i][o]=s,F[i].push(f),w[i]&&-1===x.indexOf(i)&&(w[i][s]=!0,D[i].push(s))),M=t;M<t+r;M++)f.push(M);for(u=t;u<t+r;u++)_[i].splice(u,0,s)}}for(d=!0,e=0;e<k(x);e++)l=_[i=x[e]][t],!0!==w[i][l]&&(d=!1);for(e=0;e<k(N);e++)N[e]>=t&&(N[e]+=r);for(u=g.SIr()-1;u>=t+r;u--)H[u]=H[u-r];for(v=k(x)>0,u=t;u<t+r;u++)d&&N.push(u),H[u]=!v;n||g.Nzt("onRowsChanged",t,r,!0)},t.prototype.onRowsRemoved=function(t,r){this.kzt(t,r,!0)},t.prototype.kzt=function(t,r,n){var e,i,o,u,a,s,f,c,y=this,m=y.Azt,h=y.vzt,M=y.uzt,d=k(y.columnNames);for(y.tX(t,r),i=0;i<d;i++){if(y.DIr(i)&&y.OIr(i,t,r),u=[],(o=m[i])&&n){for(e=0;e<k(o);e++){for(a=y.getRowIndexes(y.columnNames[i],o[e]),s=!0,f=0;f<k(a);f++)if(a[f]<t||a[f]>=t+r){s=!1;break}s||u.push(h[i][o[e]])}m[i]=[],M[i]=[]}if(b(y,i),o&&n)for(e=0;e<k(u);e++)c=y.pzt[i][u[e]],m[i].push(c),M[i][c]=!0}n&&l(y),y.Nzt("onRowsChanged",t,r,!1)},t.prototype.onColumnsRemoved=function(t,r){var n,e,i,o,u,a,s,f,c=this,y=[],m=c.Mct,h=t+r;for(n=t;n<h;n++)(e=c.columnNames[n])&&(i=n,y.push(e),-1!==m.indexOf(i)&&c.doUnfilter(e));for(s in o=c.uzt||c.azt,u=c.Azt||c.Mzt,a=c.hzt,c.NIr(t,r),c.bzt=[],c.columnNames.splice(t,r),c.EIr(t,r),c.vzt.splice(t,r),c.pzt.splice(t,r),c.mzt.splice(t,r),c.gzt.splice(t,r),o.splice(t,r),u.splice(t,r),a)a[s]>=t+r&&(a[s]-=r);for(n=0;n<k(y);n++)delete a[(e=y[n]).toUpperCase()],t=c.getColumnIndex(e),-1!==(f=m.indexOf(t))&&m.splice(f,1),c.Nzt("onColumnRemoved",y[n])},t.prototype.Dzt=function(){return this.bzt},t.prototype._zt=function(){return this.Szt},t.prototype.Czt=function(t){var r,n,e,i,o,u,a,s,f,c,y,h=this;for(h.DIr(t)||b(h,t),r=h.SIr(),n=[],e=0;e<r;e++)o=M(i=h.JNr(e,t))?i.value:i,n.push(o);for(u=m.quickSort(n),a=h.bzt[t]=[],s=h.Szt[t]=[],f=h.yzt[t]=[],c=0;c<k(u);c++)y=u[c],a.push(y.value),s.push(y.index),f[y.index]=c},t.prototype.getColumnIndex=function(t){var r=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===r?-1:r},t.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},t.prototype.getFilteredOutRowIndexes=function(){var t,r=this,n=r.SIr(),e=r.ezt?r.ozt:r.izt,i=[];for(t=0;t<n;t++)e[t]||i.push(t);return i},t.prototype.getData=function(t,r){var n,e,i,o,u,a,s,f=this,c=f.getColumnIndex(t);if(c>=0){if(r){for(f.bzt[c]||f.Czt(c),n=f.jEe(c),e=f.bzt[c],o=(i=f.Tzt(e,r)).start,u=i.end,a=[],s=o;s<=u;s++)a.push(n[f.Szt[c][s]]);return a}return f.DIr(c)||b(f,c),f.jEe(c)}return[]},t.prototype.aggregateData=function(t,r,n){var e,o,u,a,s,f,c,y,m,h=this,M=h.getColumnIndex(t);return M<0?i:(h.bzt[M]||h.Czt(M),a=k(u=h.bzt[M]),e=(s=h.Tzt(u,n)).start,o=s.end,5===r?e>=a?i:u[e]:4===r?o<0?i:u[o]:3===r?o<e?0:o-e+1:(c=(f=h.Ezt(u,r,e,o)).data1,y=f.data2,m=f.data3,1===r?c/=y:7===r||10===r?(c=(m*y-c*c)/(m*(m-1)),c=7===r?Math.sqrt(c):c):8!==r&&11!==r||(c=(m*y-c*c)/(m*m),c=8===r?Math.sqrt(c):c),c))},t.prototype.Ezt=function(t,r,n,e){var u,a,s,f=6===r?1:0,c=0,y=0;for(u=n;u<=e;u++)(a=t[u])===o&&a===i||d(a,s={value:o})&&(a=s.value,1===r?(f+=a,c++):2===r?f++:9===r?f+=a:6===r?f*=a:7!==r&&8!==r&&10!==r&&11!==r||(f+=a,c+=a*a,y++));return{data1:f,data2:c,data3:y}},t.prototype.Tzt=function(t,r){var n=k(t),e,o,u,a;if(r){if(r.min===-1/0)e=0;else for(u=0;u<n;u++)if(a=t[u],m.isEquals(r.min,a)||m.isGreaterThan(a,r.min)){e=u;break}if(e===i&&(e=n),o===1/0)o=n-1;else{for(u=n-1;u>=0;u--)if(a=t[u],m.isEquals(a,r.max)||m.isGreaterThan(r.max,a)){o=u;break}o===i&&(o=-1)}}else e=0,o=n-1;return{start:e,end:o}},t.prototype.getExclusiveData=function(t){var r=this,n=r.vzt,e=r.getColumnIndex(t);return e>=0?(n[e]||b(r,e),n[e]):[]},t.prototype.getRowIndexes=function(t,r){var n=this,e=n.getColumnIndex(t);return e>=0?(n.gzt[e]||b(n,e),n.mzt[e][r]):[]},t.prototype.getExclusiveRowIndex=function(t,r){var n=this,e=n.getColumnIndex(t);return n.fue(e,r)},t.prototype.fue=function(t,r){var n=this,e=n.gzt;return t>=0?(e[t]||b(n,t),e[t][r]):-1},t.prototype.getFilteredIndexes=function(t){var r=[],n={};return this.jzt(t,r,n),r},t.prototype.jzt=function(t,r,n){var e,i,o,u=this,a=u.ezt?u.szt:u.rzt,s=u.getColumnIndex(t);for(e=0;e<k(a);e++)i=a[e],x(o=u.fue(s,i))||(n[o]?n[o]++:(n[o]=1,r.push(o)))},t.prototype.getFilteredRanges=function(t){return p(this,t,!1)},t.prototype.getFilteredOutRanges=function(t){return p(this,t,!0)},t.prototype.getFilteredOutIndexes=function(t,r){var n=this;return 0===r?F(n,t):1===r?_(n,t):w(n,t)},t.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},t.prototype.detachListener=function(t){var r,n=this.aT||[];for(r=0;r<k(n);r++)if(n[r]===t){n.splice(r,1);break}},t.prototype.suspendFilteredEvents=function(){this.Upt++},t.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},t.prototype.doFilter=function(t,r,n){this.Ozt(t,r,n),this.onFiltered()},t.prototype.Ozt=function(t,r,n){var e=this,i=e.Mct,o=e.getColumnIndex(t);o<0||(n?(e.ezt=!0,e.lzt=o):e.ezt&&N(e,!1),i.indexOf(o)<0&&i.push(o),r.ranges?D(e,t,r.ranges,n):H(e,t,r.exclusiveRowIndexes,n))},t.prototype.clearPreview=function(){N(this,!0)},t.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},t.prototype.Rzt=function(t){var r,n,e=this;e.ezt&&N(e,!1),(r=e.getColumnIndex(t))<0||(delete e.Mzt[r],delete e.azt[r],delete e.uzt[r],delete e.Azt[r],l(e),(n=e.Mct.indexOf(r))>=0&&e.Mct.splice(n,1))},t.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},t.prototype.getListener=function(){return this.aT},t}(),r.GeneralSlicerData=h},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/sparkline/sparkline.ts"),r)},"./src/plugins/sparkline/sparkline.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,g,b,p,F,_,w,D,H,N,x,$,k,S,C,P,A,O,T,j,E,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt,dt,lt,vt,gt,bt,pt,Ft,_t,wt=this&&this.vJr||(Dt=function(t,r){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Dt(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Dt(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),Dt;function Ht(t,r){return{x:t,y:r}}function Nt(t,r,n,e){return{x:t,y:r,width:n,height:e}}function xt(t,r){var n,e,i,o=t[0],u=o&&o.value?o.value:o;for(e=1,i=t.length;e<i;e++)n=(o=t[e])&&o.value?o.value:o,(r&&u>n||!r&&u<n)&&(u=n);return u}function $t(t,r,n,e,i,o,u){o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.stroke()}function kt(t,r,n,e,i,o,u){t.save(),o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.closePath(),t.stroke(),t.restore()}function St(t,r,n,e,i,o,u,a){var s,f,c,y,m,h,M;if(t.save(),s=[o,u],t.setLineDash)t.beginPath(),t.strokeStyle=a,t.setLineDash(s),t.stroke(),t.moveTo(r,n),t.lineTo(e,i),t.stroke();else{for(t.beginPath(),t.lineWidth=1,t.strokeStyle=a,c={x:(e-r)/(f=p(b(e-r,2)+b(i-n,2))),y:(i-n)/f},y=0,m=0;y<f;)y+=h=l(s[m%2],f-y),(M=++m%2)&&t.moveTo(r,n),r+=h*c.x,n+=h*c.y,M&&t.lineTo(r,n);t.stroke()}t.restore()}function Ct(t,r,n,e,i,o,u,a,s,f,c,y){r?$t(t,n,e,i,o,c,y):$t(t,u,a,s,f,c,y)}function Pt(t,r,n,e,i,o,u,a){t.save(),u&&(t.fillStyle=u),t.textBaseline=a||K,t.beginPath(),t.font=i,t.textAlign=o,e="string"==typeof e?e:e+"",t.fillText(e,r,n),t.restore()}function At(t,r,n,e,i,o,u){r=Math.floor(r),n=Math.floor(n),e=Math.floor(e),i=Math.floor(i),u%2!=0&&(r===e?(r+=.5,e+=.5):n===i&&(n+=.5,i+=.5)),$t(t,r,n,e,i,o,u)}function Ot(t,r,n,e,i,o,u,a,s,f){var c,y,m,M;switch(o=Math.round(o),u=Math.round(u),s){case 0:u=Math.round(n+a),M=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u-Math.sin(h/3)*a);break;case 1:o=Math.round(r+e-a),m=Math.round(o),M=Math.round(u+a),c=Math.round(o+Math.sin(h/3)*a),y=Math.round((u+M)/2);break;case 2:u=Math.round(n+i-a),M=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u+Math.sin(h/3)*a);break;case 3:o=r+a,m=Math.round(o),M=Math.round(u+a),c=Math.round(o-Math.sin(h/3)*a),y=Math.round((u+M)/2)}t.beginPath(),t.moveTo(o,u),t.lineTo(c,y),t.lineTo(m,M),t.closePath(),t.fillStyle=f,t.fill()}function Tt(t,r,n,e,i){t.beginPath(),t.fillStyle=i,t.arc(r,n,e,0,2*Math.PI),t.fill()}function jt(t,r,n,e,i,o){if(r){var u=i/2;Tt(t,n+u,e+u,u,o)}else Jt(t,n,e,i,i,o)}function Et(t,r,n,e,i,o,u,a,s,f,c,y,m,h,M){var d,l,v,g,b,p;s?(d=Math.floor(r+.5*e),l=Math.floor(a?f-c:f),v=Math.floor(y),g=Math.floor(c),b=Math.floor(d-h/2),p=Math.floor(a?l-h/2:l+g+h/2),At(t,d,l,d,l+g,o,v)):(d=Math.floor(a?f:f-c),l=Math.floor(n+.5*i),v=Math.floor(c),g=Math.floor(y),b=Math.floor(a?d+v+h/2:d-h/2),p=Math.floor(l-h/2),At(t,d,l,d+v,l,o,g)),m?Rt(t,r,n,e,i,b,p,h,s,a,o):s?jt(t,M,b,a?p:p-=h,h,u):jt(t,M,a?b-=h:b,p,h,u)}function Rt(t,r,n,e,i,o,u,a,s,f,c){t.save(),Ot(t,r,n,e,i,o,u,a,s?f?0:2:f?1:3,c),t.restore()}function It(t,r,n,e,i,o,u,a,s,f,c,y,m,h){var M,d,l,v=4,g=void 0;t.save(),t.beginPath(),t.rect(r,n,e,i),t.clip(),t.font=s+V,t.fillStyle=O,t.fillStyle="black",f?(t.textBaseline=z,(g=s+(M=m<h?h:m)+o+v+h/2)>0?(t.textAlign=B,c?t.fillText(a,r+e/2+h/2,y-M/2):t.fillText(a,r+e/2+h/2,y+M/2)):(t.textAlign=L,c?t.fillText(a,r+e/2,y-M-h/2-s):t.fillText(a,r+e/2,y+M+h/2+v))):(t.textBaseline=J,(g=(d=t.measureText(a).width)+m+u+v+h/2)>0?d>m+h/2?c?(t.textAlign=G,t.fillText(a,y-v,n+i/2)):(t.textAlign=B,t.fillText(a,y+h/2,n+i/2)):(t.textAlign=L,c?t.fillText(a,y+m/2,n+i/2+s):t.fillText(a,y-m/2,n+i/2+s)):c?(t.textAlign=B,l=y+m+h/2+v,t.fillText(a,l,n+i/2)):(t.textAlign=G,l=y-m-h/2-v,t.fillText(a,l,n+i/2))),t.restore()}function Bt(t){return i.ft.rp(s(t))<127.5?A:O}function Gt(t,r,n,e,i,o,a,s){var f,c,y,m,h=s;return u(s)&&(h=i),a?(f=r+h+o,y=e-2*h,c=t+i,m=n-2*i):(f=t+h,y=n-2*h,c=r+i,m=e-2*i),{left:f,top:c,width:y,height:m}}function Lt(t,r){var n,e,i=0;for(n=0,e=t.length;n<e;n++)i+=r&&!r(t[n])?0:t[n];return i}function zt(t){return t*h/180}function Kt(t,r,n,e){var i,o,u,a,s=[];for(o=0,u=0,a=t.length;o<a;o++)r?(r(t[o])?s[u]=n?n(t[o]):t[o]:s[u]=0,u++):(i=N(t[o]),!H(i)&&isFinite(i)&&(s[u]=i,u++));return e&&e(s),s}function Jt(t,r,n,e,i,o){var u=g(r+e),a=g(n+i);r=g(r),n=g(n),e=g(u-r),i=g(a-n),t.beginPath(),t.fillStyle=o,t.fillRect(r,n,e,i),t.fill()}function Ut(t,r,n){return t=l(t,r),t=v(t,n)}function Vt(t,r,n,e,i){t.save(),t.rect(r,n,e,i),t.clip()}function Wt(t,r){var n,e,i,o;return!(!t||!r)&&(n=v(t.x+t.width,r.x+r.width),e=v(t.y+t.height,r.y+r.height),i=l(t.x,r.x),o=l(t.y,r.y),n-i<=t.width+r.width&&e-o<=t.height+r.height)}function qt(t,r,n,e,i,o){var a,s,f,c,y,m,v=n+i/2,g=e+o/2,b=5,p=l(i,o)/2-b,_=-.5*h,w=v+p*d(_),D=g+p*M(_),N=[],x=[];if(!(p<=0)){for(c=Yt(f=(s=Kt(r.values,(function(t){return!u(t)&&!H(t)&&isFinite(t)}),(function(t){return F(t)}),(function(t){1===t.length&&(t[1]=1-t[0])}))).length,r.colors),y=Lt(s),t.save(),m=0;m<f;m++)a=_+s[m]/y*2*h,t.beginPath(),t.moveTo(v,g),t.lineTo(w,D),t.arc(v,g,p,_,a,!1),t.lineTo(v,g),t.fillStyle=c[m],t.fill(),N.push(w),x.push(D),w=v+p*d(_=a),D=g+p*M(_);for(m=0;m<f;m++)$t(t,v,g,N[m],x[m],A);t.restore()}}function Yt(t,r){var n,e,o,u,a,f,c=[],y=r.length;if(t<=y)c=r.slice(0,t);else{for(0===y?(c.push("darkgray"),y=1):c=r.slice(0),n=[],e=void 0,o=t-y+1,u=void 0,u=0;u<y;u++)n[u]=s(c[u]);for(u=y;u<t;u++){for(a in e=n[u%y])e.hasOwnProperty(a)&&(f=e[a],e[a]=m(f-f/o*(u/y)));e.a=255,c[u]=i.ft.j(e)}}return c}function Xt(t,r,n){return{x:t,y:r,value:n}}function Zt(t){return isNaN(t)||t===1/0?0:t}function Qt(t,r,n,e,i,o){var a,s,f,y,m,h,M,d,b,p,F,_,D,N,x,$,k,C,P,A,O,j,E,R,I,B,G,L,z,K,J,U;if(t.save(),a=r.points,s=r.mini,f=r.maxi,y=r.line1,m=r.line2,h=r.colorPositive,M=r.colorNegative,d=5,a=Kt(a,(function(t){return!u(t)&&!H(t)&&isFinite(t)})),h=u(h)?"#787878":h,M=u(M)?S:M,P=xt(a,!1),f=u(f)?P:f,p=v(f,P),A=xt(a,!0),s=u(s)?A:s,b=l(s,A),F=(F=(F=0)>(p=p<0?0:p)?p:F)<(b=b>0?0:b)?b-1:F,_=a.length,O=Gt(n,e,i,o,d),D=O.left,N=O.top,x=O.width,$=O.height,k=Zt(x/(_-1)),j=[],C=Zt((p-b)/$))for(I=void 0,B=void 0,G=N+Zt((p-F)/C),L=void 0,z=void 0,K=0;K<_;K++)I=a[K],L=D+k*K,z=N+Zt((p-I)/C),0===K&&j.push(new dt(Xt(L,G,F))),K>0&&I*a[K-1]<0&&(R=j[j.length-1])&&(B=tr(R.x,R.y,L,z,G),j.push(new dt(Xt(B,G,F)))),j.push(new dt(Xt(L,z,I))),K===_-1&&j.push(new dt(Xt(L,G,F)));for(t.beginPath(),J=0,U=j.length;J<U;J++)(E=j[J])&&(0===J?t.moveTo(E.x,E.y):t.lineTo(E.x,E.y),R=j[J-1],E.value===F&&R&&(t.fillStyle=R.value>F?h:M,t.fill(),J!==U-1&&(t.beginPath(),t.moveTo(E.x,E.y))));function V(r){var n,e,i;r===c&&typeof r!==w||(n=Ut(r,p,b),i=g(N+(e=0!==C?(p-n)/C:$/2))-.5,$t(t,D,i,D+x,i,T))}V(y),V(m),t.restore()}function tr(t,r,n,e,i){return((r-i)*n+(i-e)*t)/(r-e)}function rr(t,r,n,e,i,o){var a,s,f,c,y,m,M,d,b,p,F,_,w,D,H,N,$,C,A,O,T,j,E,R,I,B,G=r.points1,L=r.points2,z=r.minX,K=r.maxX,J=r.minY,U=r.maxY,V=r.hLine,W=r.vLine,q=r.xMinZone,Y=r.xMaxZone,X=r.yMinZone,Z=r.yMaxZone,Q=r.tags,tt=r.drawSymbol,rt=r.drawLines,nt=r.color1,et=r.color2,it=r.dash,ot=4,ut=Gt(n,e,i,o,5),at=ut.left,st=ut.top,ft=ut.width,ct=ut.height;if(G&&!(G.length<=0)&&!((a=or(G)).length<=0||L&&L.length>0&&(s=or(L)).length<=0)){for(Vt(t,n,e,i,o),t.beginPath(),tt=!!u(tt)||tt,nt=u(nt)?k:nt,et=u(et)?S:et,mt(a,J,U,z,K),!u(q)&&!u(Y)&&!u(X)&&!u(Z)&&y<=q&&q<=m&&y<=Y&&Y<=m&&f<=X&&X<=c&&f<=Z&&Z<=c&&((E=v(y,q))>=(R=l(m,Y))&&(R=E+1),(I=v(f,X))>=(B=l(c,Z))&&(B=I+1),Jt(t,at+(E-y)*ft/(m-y),st+(c-B)*ct/(c-f),(R-E)*ft/(m-y),(B-I)*ct/(c-f),P)),C=-x,A=-x,O=x,T=x,b=a.length,M=0;M<b-1;M++)yt(a,M,nt,Mt),Q&&(0===M&&(H>A&&(C=D,A=H),H<T&&(O=D,T=H)),$>A&&(C=N,A=$),$<T&&(O=N,T=$));if(s&&s.length>0)for(mt(s,f,c,y,m),b=s.length,M=0;M<b-1;M++)yt(s,M,et,dt);Q&&(ht(C,A,S),ht(O,T,"#0000FF")),!u(V)&&f<=V&&V<=c&&(j=g(st+(c-V)*ct/(c-f))-.5,ir(t,at,j,at+ft,j,S)),!u(W)&&y<=W&&W<=m&&(j=g(at+(W-y)*ft/(m-y))-.5,ir(t,j,st,j,st+ct,S)),t.restore()}function yt(r,n,e,i){d=r[n],p=d.x,F=d.y,d=r[n+1],_=d.x,w=d.y,D=at+(p-y)*ft/(m-y),N=at+(_-y)*ft/(m-y),H=st+(c-F)*ct/(c-f),$=st+(c-w)*ct/(c-f),rt&&ir(t,D,H,N,$,e,it),tt&&(0===n&&i(D,H),i(N,$))}function mt(t,r,n,e,i){var o=nr(t,!0),a=nr(t,!1);f=u(J)?o.y:r,c=u(U)?a.y:n,y=u(z)?o.x:e,m=u(K)?a.x:i,m=y>=m?y+1:m,c=f>=c?f+1:c}function ht(r,n,e){t.beginPath(),t.arc(r-ot/2,n-ot/2,ot/2,0,2*h,!1),t.fillStyle=e,t.fill()}function Mt(r,n){t.beginPath(),t.strokeStyle=nt,t.arc(r-ot/2,n-ot/2,ot/2,0,2*h,!1),t.stroke()}function dt(r,n){t.beginPath(),t.strokeStyle=et,t.strokeRect(r-ot/2,n-ot/2,ot,ot)}}function nr(t,r){var n,e,i=r?1:-1,o=r?l:v,u=new ht(Ht(i*x,i*x)),a=t.length;for(e=0;e<a;e++)n=t[e],u.x=o(u.x,n.x),u.y=o(u.y,n.y);return u}function er(t,r,n,e){return n/e*(r-t)+t}function ir(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,g,F,_,w,D,H;if(u){for(a=p(b(e-r,2)+b(i-n,2)),s=0,f=6,c=2,y=4,h=void 0,M=void 0,d=void 0,l=void 0,r<=e?(h=r,M=e,d=r,l=n):(h=e,M=r,d=e,l=i),g=n-(v=(i-n)/(e-r))*r,(m=[]).push(new ht(Ht(d,l))),F=[f,y,c,y];s<a;)for(_=0,w=F.length;_<w;_++)(s+=F[_])<=a&&(l=v*(d=er(h,M,s,a))+g,m.push(new ht(Ht(d,l))));for(D=0,H=m.length;D<H-1;D+=2)$t(t,m[D].x,m[D].y,m[D+1].x,m[D+1].y,o)}else $t(t,r,n,e,i,o)}function or(t){var r,n,e,i=[],o=t.length;if(o>0)if(o<(r=t[0].length)){if(o>=2)for(n=0;n<r;n++)i.push(new ht(Ht(t[0][n],t[1][n])))}else if(r>=2)for(e=0;e<o;e++)i.push(new ht(Ht(t[e][0],t[e][1])));return i}function ur(t,r,n,e,i,o){var s,f,c,y,h,M,d,l,b,p,F,_,w,D,N,x,$,k=r.measure,P=r.target,A=r.maxi,O=r.good,T=r.bad,j=r.forecast,E=r.tickUnit,R=r.colorScheme,I=r.vertical,B=5,G=r.measureColor,L=r.targetColor,z=r.maxiColor,K=r.goodColor,J=r.badColor,U=r.forecastColor,V=r.allowMeasureOverMaxi,W=r.barSize;if(!(u(A)||A<0)&&(u(W)||!(H(W)||W<=0))){if(W>1&&(W=1),k=u(k)||k<0?0:k,O=u(O)||O<0?0:O,T=u(T)||T<0?0:T,P=u(P)?0:P,j=u(j)?0:j,E=u(E)?0:E,R=u(R)?"#A0A0A0":R,s=u(G)?"#252525":G,k>A&&!V&&(k=A,s=S),O>A&&(O=A,s=S),T>A&&(T=A,s=S),P>A&&(P=0,s=S),j>A&&(j=A,s=S),f=Gt(n,e,i,o,B,o-2*B,I),c=f.left,y=f.width,t.save(),h=u(W)?.2:(1-W)/2,M=u(W)?.6:W,d=V?v(A,k):A,q(u(z)?a(R,1.66):z,A,d,h,M),q(u(K)?a(R,1.33):K,O,d,h,M),q(u(J)?R:J,T,d,h,M),l=.25*W/.6,q(s,k,d,b=u(W)?.375:(1-l)/2,p=u(W)?.25:l),j>0&&(F=c,(_=y*(j/d))>y&&(_=y),w=u(W)?3:3*W/.6,Ct(t,I,n+.5*i,F,n+.5*i,F-_,F,e+.5*o,F+_,e+.5*o,u(U)?"#3690BF":U,w)),P>0&&(D=g(c-(I?1:-1)*y*(P/d))-.5,Ct(t,I,n+i*h,D,n+i*(1-h),D,D,e+o*h,D,e+o*(1-h),u(L)?S:L,1)),E>0)for(N=m(d/E),x=void 0,$=0;$<=N;$++)x=g(c-y/d*E*(I?1:-1)*$)-.5,Ct(t,I,n,x,n+.05*i,x,x,e+o,x,e+.95*o,C,1);t.restore()}function q(r,u,a,s,f){var m,h,M;t.fillStyle=r,m=c,(h=y*(u/a))>y&&!V&&(h=y),M=new Mt(I?Nt(n+i*s,m-h,i*f,h):Nt(m,e+o*s,h,o*f)),t.fillRect(M.x,M.y,M.width,M.height)}}function ar(t,r,n,e,i,o){var a,s,f,c,y,m,h,M,d,b,p,F,_,w,D,H,N,x,$,k,P,A,O=r.spreadData,T=r.showAverage,j=r.scaleStart,E=r.scaleEnd,R=r.style,I=r.colorScheme,B=r.vertical,G=5,L=O.length;if(!(L<=0)){for(a=O[0].key,s=O[L-1].key,j=u(j)?a:j,E=u(E)?s:E,R=u(R)?4:R,I=u(I)?C:I,c=(f=Gt(n,e,i,o,G,o-2*G,B)).left,y=f.width,m=f.top,h=f.height,Vt(t,n,e,i,o),t.beginPath(),t.strokeStyle=I,t.fillStyle=I,t.lineWidth=2,b=xt(O,!1),F=0,_=O.length;F<_;F++)if(D=(w=O[F]).key,H=w.value,M=c+(B?-1:1)*y*(D-j)/(E-j),B?(M=l(M,c),M=v(M,c-y)):(M=v(M,c),M=l(M,c+y)),M=g(M),1===R)Ct(t,B,N=m+h/2-(p=(p=H/2*h/b)<.5?.5:p),M,x=m+h/2+p,M,M,N,M,x);else if(4===R)Ct(t,B,m,M,m+(p=(p=H*h/b)<1?1:p),M,M,m+h,M,m+h-p);else if(6===R)Ct(t,B,m,M,m+h,M,M,m,M,m+h);else for($=2,k=1;k<=H;k++){switch(R){case 2:d=m+h/2-G-(H/2-k)*h/b;break;case 3:d=m+h-G-(P=sr(H,h,$+1,w.randomNumbers))[k-1];break;default:d=m+h-k*h/b}d=g(d),t.beginPath(),t.fillRect(B?d:M,B?M:d,$,$)}T&&Ct(t,B,m-G,M=c-(B?1:-1)*y*((A=fr(O))-j)/(E-j),m+h+G,M,M,m-G,M,m+h+G,S),t.restore()}}function sr(t,r,n,e){for(var i,o=[],u=v(100,10*t),a=0,s=[],f=0;o.length<t;)i=m(e[f]*r),f++,(a>u||cr(i,s))&&(o.push(i),s.push([i-n,i+n])),a++;return o}function fr(t){var r,n,e,i=0,o=0;for(r=0,n=t.length;r<n;r++)o+=(e=t[r]).value,i+=e.key*e.value;return 0===o?0:i/o}function cr(t,r){var n,e,i;for(n=0,e=r.length;n<e;n++)if((i=r[n])[0]<=t&&t<=i[1])return!1;return!0}function yr(t,r,n,e,i,o,s){var f,m,h,M,d,l,v,b,p,F,_,w,D,N,x,$,k,P,A=r.points,O=A&&A.length,E=r.colorRange,I=r.labelRange,B=r.maximum,G=r.targetRed,z=r.targetGreen,K=r.targetBlue,U=r.targetYellow,W=r.color,q=r.highlightPosition,Y=r.vertical,X=r.textOrientation,Z=r.textSize,Q=5;if(!(u(A)||O<=0)){if(W=u(W)?C:W,u(E)||E.length!==O||mr(E))for(E=[],f=0;f<O;f++)E.push(a(W,1+f/O));for(m=Lt(A,(function(t){return t>0})),B=u(B)||B<m?m:B,X=u(X)?0:X,Z=u(Z)||Z<=0?10:Z,Z=H(Z)?Z:Z*s.zoomFactor,h=Gt(n,e,i,o,Q,o-2*Q,Y),M=h.left,d=h.width,l=h.top,v=h.height,t.save(),b=M,x=0,$=O;x<$;x++)(N=A[x])<=0||(p=N/B*d,Y?(F=n+.15*i,w=.7*i,_=b-p,D=p):(F=b,w=p,_=e+.15*o,D=.7*o),k=x+1===q?S:E[x],t.save(),t.fillStyle=k,t.fillRect(F,_,w,D),(P=I&&I[x])&&(t.save(),t.fillStyle=Bt(k),t.textBaseline=J,t.textAlign=L,t.font=Z+V,t.rect(F,_,w,D),t.clip(),1===X?(t.translate(F+w/2,_),t.rotate(Math.PI/2),t.fillText(P,D/2,0)):t.fillText(P,F+w/2,_+D/2),t.restore()),b+=(Y?-1:1)*p,t.restore());tt(R,G,(function(t){return t>0})),tt(j,z),tt(T,K),tt("yellow",U),t.restore()}function tt(r,n,e){var i,o;n!==c&&n!==y&&(n=n>B?B:n,e&&!e(n)||(o=(n=n<0?0:n)/B*d,Y?(i=g(M-o)-.5,$t(t,l,i,l+v,i,r)):(i=g(M+o)-.5,$t(t,i,l,i,l+v,r))))}}function mr(t){for(var r=0,n=t.length;r<n;r++)if(u(t[r]))return!0;return!1}function hr(t,r,n,e,i,o){$t(t,lr(r),lr(n),lr(e),lr(i),u(o)?O:o,1)}function Mr(t,r,n,e,i){var o,u,a,s,f,c=.4*e;switch(r=lr(r),n=lr(n),t.beginPath(),t.moveTo(r,n),o=c/2,u=p(3)*c/2,a=c/p(3),i){case 0:s=[-o,0,o],f=[u,a,u];break;case 2:s=[-o,0,o],f=[-u,-a,-u];break;case 3:s=[u,a,u],f=[-o,0,o];break;case 1:s=[-u,-a,-u],f=[-o,0,o];break;default:s=[],f=[]}s.forEach((function(e,i){t.lineTo(lr(r+e),lr(n+f[i]))})),t.lineTo(r,n),t.closePath(),t.fillStyle=A,t.fill()}function dr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,g,b,p,_,w=n.value,D=n.colorScheme,x=n.axisVisible,$=n.barHeight,k=n.barWidth,S=5,C=5,P=!1,A=N(w);if(!H(A)){if(u(M=0===t?$:k))d=.7;else{if(H(M)||M<=0)return;d=Math.min(1,M)}A>1?(A=1,P=!0):A<-1&&(A=-1,P=!0),D=u(D)?"grey":D,x=!!u(x)||x,r.save(),0===t?(l=o-2*S,v=a*d,A>=0?(P&&(s=new ht(Ht(e+S+l-C,i+a/2))),f=new Mt(Nt(e+S,i+a*(1-d)/2,l*A,v)),c=new ht(Ht(e+S,i+1)),y=new ht(Ht(e+S,i+a)),m=1):(g=F(l*A),P&&(s=new ht(Ht(e+S+C,i+a/2))),f=new Mt(Nt(e+o-S-g,i+a*(1-d)/2,g,v)),c=new ht(Ht(e+o-S,i+1)),y=new ht(Ht(e+o-S,i+a)),m=3),h=u(M)?a:a*d):1===t&&(b=a-2*S,p=o*d,A>=0?(f=new Mt(Nt(e+(1-d)/2*o,i+a-S-(_=b*A),p,_)),P&&(s=new ht(Ht(e+o/2,i+a-S-_+C)),m=0),c=new ht(Ht(e+1,i+a-S)),y=new ht(Ht(e+o,i+a-S))):(A=F(A),f=new Mt(Nt(e+(1-d)/2*o,i+S,p,b*A)),P&&(s=new ht(Ht(e+o/2,i+S+b-C)),m=2),c=new ht(Ht(e+1,i+S)),y=new ht(Ht(e+o,i+S))),h=u(M)?o:o*d),r.beginPath(),f&&(Jt(r,f.x,f.y,f.width,f.height,D),Vt(r,f.x,f.y,f.width,f.height)),s&&Mr(r,s.x,s.y,h,m),r.restore(),x&&c&&hr(r,c.x,c.y,y.x,y.y),r.restore()}}function lr(t){return g(t)-.5}function vr(t,r,n,e,i,o){dr(0,t,r,n,e,i,o)}function gr(t,r,n,e,i,o){dr(1,t,r,n,e,i,o)}function br(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,g,b,_,w,D,x,$,C,P,A,T,E=r.variance,I=r.reference,U=r.mini,W=r.maxi,q=r.mark,Y=r.tickUnit,X=r.legend,Z=r.colorPositive,Q=r.colorNegative,tt=r.vertical,rt=.5,nt=.5-rt/2,et=5,it=S,ot=k,ut=13*a.zoomFactor,at=N(E);if(!(H(at)||(Q=u(Q)?R:Q,Z=u(Z)?j:Z,Y=u(Y)?0:Y,W=u(W)?1:W,U=u(U)?-1:U,(M=!u(I))||(I=0),tt?(s=e+o-et,f=o-2*et,c=i-4*et,y=-1):(s=n+et,f=i-2*et,c=o-4*et,y=1),X&&(l=N(r.variance),H(l)||(g=(v=l.toString()).substr(v.indexOf(".")+1).length,m=g>=2?(100*l).toFixed(g-2)+"%":(100*l).toFixed(0)+"%")),at>W&&(at=W,d=!0),at<U&&(at=U,d=!0),I=Ut(I,W,U),d&&(h=Ut(c,60,15)),_=f/(b=F(W-U)),w=s+y*F(U-I)*_,(D=F(at-I)*_)>F(b)*_&&(D=F(b+U)*_),x=s+y*f,tt&&w<x||!tt&&w>x))){if(Vt(t,n,e,i,o),at>I?st(Z,0,et-f,f-et,0,1,e-w,K,z,w-n-i,B,G,-1,F(W-at)*_):(D>F(b)*_&&(D=F(b+U)*_,w=s),st(Q,1,-et,et,2,3,w-e-o,z,K,n-w,G,B,1,F(U-at)*_)),M&&($=s+y*(Math.abs(U-I)*_),ct(n,$,n+i,$,$,e,$,e+o)),Y>0)for(t.beginPath(),C=b/Y,P=0;P<=C;P++)ct(n,A=s+f/C*P*y,n+.1*i,A,A,e+.9*o,A,e+o,ot,ot);!u(q)&&U<=q&&q<=W&&(t.beginPath(),T=s-(tt?1:-1)*F(U-q)*_,ct(n,T,n+.33*i,T,T,e+.66*o,T,e+o,it,it),t.fill()),t.restore()}function st(r,u,a,f,c,y,M,l,v,g,b,F,_,H){var N,x,$,k,S,C;tt?Jt(t,N=n+nt*i,x=0===u?w-D:w,$=i*rt,k=D,r):Jt(t,N=0===u?w:w-D,x=e+nt*o,$=D,k=o*rt,r),d&&(Vt(t,N,x,$,k),tt?Mr(t,n+i/2,s+a,h,c):Mr(t,s+f,e+o/2,h,y),t.restore()),X&&(S=void 0,C=0,d&&(C=.4*h*p(3)/2+et+2),t.save(),t.beginPath(),t.font=ut+V,t.fillStyle=O,tt?(t.textAlign=L,ft(S=ut+D+M,H,r,l,v,N,x,$,k,tt),t.fillText(m,n+i/2,w+_*(D-C))):(t.textBaseline=J,ft(S=t.measureText(m).width+D+g,H,r,b,F,N,x,$,k,tt),t.fillText(m,w+_*(C-D),e+o/2)),t.restore())}function ft(r,n,e,i,o,u,a,s,f,c){c?t.textBaseline=i:t.textAlign=i,r>0&&n<D&&(t.rect(u,a,s,f),t.clip(),c?t.textBaseline=o:t.textAlign=o,t.fillStyle=Bt(e))}function ct(r,n,e,i,o,u,a,s,f,c){tt?hr(t,r,n,e,i,f):hr(t,o,u,a,s,c)}}function pr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,g,b,p,_,w,D,x,$,k,S,C,A,T,E,I,B=r.plannedValue,G=r.actualValue,L=r.index,z=r.absolute,K=r.reference,J=r.mini,U=r.maxi,V=r.tickUnit,W=r.legend,q=r.colorPositive,Y=r.colorNegative,X=r.lollipopHeaderColor,Z=r.vertical,Q=[],tt="",rt=.9,nt=10,et=13*a.zoomFactor,it=P,ot=!1;if(!(0===B.length||0===G.length||L<0||L>=B.length||L>=G.length||J>=U||H(G[L])||H(B[L]))){if(Y=u(Y)?R:Y,q=u(q)?j:q,V=u(V)?0:V,z=!u(z)&&z,m=!u(K),X=u(X)?O:X,z){for(v=0;v<B.length&&v<G.length;v++)Q.push(G[v]-B[v]);U=xt(Q,!1),J=xt(Q,!0),U>0&&J>0?J=0:U<0&&J<0&&(U=0),h=Q[L],K=0,m=!0}else U=u(U)?1:U,J=u(J)?-1:J,h=(G[L]-B[L])/Math.abs(B[L]),((K=Ut(K,U,J))===U&&h>K||K===J&&h<K)&&(ot=!0),u(B[L])&&(ot=!0);if(m||(K=0),Z?(s=e+o-nt,f=o-2*nt,c=-1):(s=n+nt,f=i-2*nt,c=1),!z&&W?((b=N((g=h-K).toString()))>0&&(tt="+"),!H(b)&&isFinite(b)?y=tt+(y=(_=(p=b.toString()).substr(p.indexOf(".")+1).length)>=2?(100*b).toFixed(2)+"%":100*b+"%"):isFinite(b)||(y=tt+b)):(h>0&&(tt="+"),y=tt+(y=(_=(p=(b=N(h)).toString()).substr(p.indexOf(".")+1).length)>=2?b.toFixed(2):b)),z?l=!1:(h>U&&(h=U,l=!0),h<J&&(h=J,l=!0)),D=f/(w=F(U-J)),x=s+c*F(J-K)*D,($=F(h-K)*D*rt)>F(w)*D&&($=F(w+J)*D),k=s+c*f,!(Z&&x<k||!Z&&x>k))if(z||0!==B[L]&&!ot){if(Vt(t,n,e,i,o),S=F(Math.ceil((U-K)/V)),C=F(Math.floor((K-J)/V)),z){if(V>5/D)if(Z){for(T=1;T<=S;T++)At(t,n,E=x+V*D*T*-1*rt,n+i,E,it,1);for(T=1;T<=C;T++)At(t,n,E=x+V*D*T*1*rt,n+i,E,it,1)}else{for(T=1;T<=S;T++)At(t,I=x+V*D*T*1*rt,e,I,e+o,it,1);for(T=1;T<=C;T++)At(t,I=x+V*D*T*-1*rt,e,I,e+o,it,1)}}else if(V>0&&V<=U&&V>5/D)if(t.beginPath(),Z){for(A=.1*i>10?10:.1*i,T=1;T<=S;T++)At(t,n,E=x+V*D*T*-1*rt,n+A,E,it,1);for(T=1;T<=C;T++)At(t,n,E=x+V*D*T*1*rt,n+A,E,it,1)}else{for(A=.1*o>10?10:.1*o,T=1;T<=S;T++)At(t,I=x+V*D*T*1*rt,e+o-A,I,e+o,it,1);for(T=1;T<=C;T++)At(t,I=x+V*D*T*-1*rt,e+o-A,I,e+o,it,1)}M=Math.floor(12*a.zoomFactor),(d=Math.floor(4*a.zoomFactor))%2!=0&&(d+=1),M%2!=0&&(M+=1),h>K?Et(t,n,e,i,o,q,X,!0,Z,x,$,d,l,M,z):($>F(w)*D&&($=F(w+J)*D,x=s),Et(t,n,e,i,o,Y,X,!1,Z,x,$,d,l,M,z)),W&&(h>K?It(t,n,e,i,o,e-x,x-n-i,y,et,Z,!0,x,$,M):It(t,n,e,i,o,x-e-o,n-x,y,et,Z,!1,x,$,M)),m&&(Z?At(t,n,x,n+i,x,O,2):At(t,x,e,x,e+o,O,2)),t.restore()}else Z?At(t,n,x,n+i,x,O,2):At(t,x,e,x,e+o,O,2)}}function Fr(t,r,n,e,i,o){var a,s,f,y,m,h,M,d,g,b,p,_,w,x,$,P,A,O,T,j,E,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt,dt,Ft,_t,wt=r.points,Dt=r.boxPlotClass,Ht=r.showAverage,Nt=r.scaleStart,$t=r.scaleEnd,kt=r.acceptableStart,St=r.acceptableEnd,Pt=r.style,At=r.colorScheme,Ot=r.vertical,Tt=5,jt=xt(wt,!1),Et=xt(wt,!0);if(!(u(wt)||(wt=Kt(wt)).length<=0)){for((Dt=Dt===c||typeof Dt!==D?vt:Dt.toLocaleLowerCase())!==vt&&Dt!==lt&&Dt!==gt&&Dt!==bt&&Dt!==pt&&(Dt=vt),a=N(Nt),a=H(a)?Et:a,s=N($t),s=H(s)?jt:s,f=N(kt),y=N(St),At!==c&&typeof At===D||(At="#D2D2D2"),(Pt===c||0!==Pt&&1!==Pt)&&(Pt=0),m=S,a>Et&&(At=m,a=Et),s<jt&&(At=m,s=jt),Vt(t,n,e,i,o),t.lineWidth=2,M=(h=Gt(n,e,i,o,Tt,o-2*Tt,Ot)).left,d=h.width,g=h.top,b=h.height,p=Ot?-1:1,_=r.perc02,w=r.perc09,x=r.perc10,$=r.perc90,P=r.perc91,A=r.perc98,O=r.q1,E=Et,R=jt,I=1.5*(j=(T=r.q3)-O),B=1.5*j,G=r.stDev,L=Lt(wt)/v(1,wt.length),z=0,K=0,J=g+.1*b,U=.7*b,V=F(s-a),W=0,q=wt.length;W<q;W++)(Y=wt[W])<O&&Y>=O-1.5*j&&Y-(O-1.5*j)<I&&(I=Y-(O-1.5*j),E=Y),Y>T&&Y<=T+1.5*j&&T+1.5*j-Y<B&&(B=T+1.5*j-Y,R=Y),X=!1,z=M+p*(d*((Y-a)/V)),Dt===gt&&(Y<=O-1.5*j||Y>=T+1.5*j)&&(X=!0,K=Y<=O-3*j||Y>=T+3*j?0:1),Dt===lt&&(Y<=_||Y>=A)&&(X=!0,K=1),Dt===pt&&(Y<=L-2*G||Y>=L+2*G)&&(X=!0,K=Y<=L-3*G||Y>=L+3*G?0:1),Z=k,X&&(1===Pt?1===K?It(.2,.8,z,Z):It(.3,.7,z,Z):((Q=.1*b)<2&&(Q=2),t.beginPath(),t.strokeStyle=Z,tt=g+.45*b,rt=z,t.arc(Ot?tt:rt,Ot?rt:tt,Q/2,0,2*Math.PI),t.stroke()));switch((a>f||s<y)&&(At="#C0FF00"),(f=v(a,f))>(y=l(s,y))?At=m:f<y&&Ct(t,Ot,it=g+.9*b,nt=M+p*(d*((f-a)/V)),it,et=M+p*(d*((y-a)/V)),nt,it,et,it,C),ut=F(M+p*(d*((T-a)/V))-(ot=M+p*(d*((O-a)/V)))),st=M+p*(d*(((at=r.median)-a)/V)),Dt){case lt:yt=_,mt=A;break;case gt:yt=E,mt=R;break;case pt:ut=F(M+p*(d*((L+G-a)/V))-(ot=M+p*(d*((L-G-a)/V)))),st=M+p*(d*((L-a)/V)),yt=(ht=L-2*G)>a?ht:Et,mt=(ht=L+2*G)<s?ht:jt,Ht=!1;break;default:yt=Et,mt=jt}ft=M+p*(d*((yt-a)/V)),ct=M+p*(d*((mt-a)/V)),Mt=k,1===Pt?Rt("#F2F2F2",J,ct,U,ft-ct,ft,J,ct-ft,U):Ct(t,Ot,dt=g+.45*b,ft,dt,ct,ft,dt,ct,dt,Mt),Rt(At,J,ot-ut,U,ut,ot,J,ut,U),Ct(t,Ot,J,st,J+U,st,st,J,st,J+U,Mt),0===Pt&&(Ct(t,Ot,J+.3*U,ct,J+.7*U,ct,ct,J+.3*U,ct,J+.7*U,Mt),Ct(t,Ot,J+.3*U,ft,J+.7*U,ft,ft,J+.3*U,ft,J+.7*U,Mt)),Dt!==lt&&Dt!==bt||(Ft=void 0,_t=void 0,Dt===lt?(yt=w,mt=P):(yt=x,mt=$),Ft=M+p*(d*((yt-a)/V)),It(.3,.7,_t=M+p*(d*((mt-a)/V)),Mt),It(.3,.7,Ft,Mt)),Ht&&It(.2,.8,z=M+p*(d*((L-a)/V)),m),t.restore()}function Rt(r,n,e,i,o,u,a,s,f){Ot?Jt(t,n,e,i,o,r):Jt(t,u,a,s,f,r)}function It(r,n,e,i){Ct(t,Ot,J+U*r,e,J+U*n,e,e,J+U*r,e,J+U*n,i)}}function _r(t,r,n,e,i){r=g(r),n=g(n),r===(e=g(e))&&(r=e-=.5),n===(i=g(i))&&(n=i-=.5),t.moveTo(r,n),t.lineTo(e,i)}function wr(t,r,n,e,i,o,u,a,s,f,c){t.beginPath(),t.strokeStyle=n,r?_r(t,e,i,o,u):_r(t,a,s,f,c),t.stroke()}function Dr(t,r,n,e,i){t.rect(r,n,e,i),t.clip()}function Hr(t,r,n,e,i,o){var a,s,f,c,y,m,h,M=o.labelText,d=o.fontSize,l=o.startBox,v=o.endBox,g=o.boxColor,b=o.isInRightOrTopOfBox,p=o.fillStyle;t.save(),t.beginPath(),t.font=d+V,c=1,p=u(p)?O:p,o.vertical?(y=L,b?(a=d+v-(l-n))>0&&l-v-n<v?(m=z,p=Bt(g),f=l-v+c,Dr(t,r,l-v,e,v)):(m=K,f=l-v-c):(a=d-(n+i-l))>0&&n+i-l<v?(Dr(t,r,l-v,e,v),m=K,p=Bt(g),f=l-c):(m=z,f=l+c),t.textAlign=y,t.textBaseline=m,t.fillStyle=p,t.fillText(M,r+e/2,f)):(m=J,h=t.measureText(M),b?(a=h.width+v-(r+e-l))>0&&r+e-(l+v)<v?(Dr(t,l,n,v,i),y=G,p=Bt(g),s=l+v-c):(y=B,s=l+v+c):(a=h.width-(l-r))>0&&l-r<v?(Dr(t,l,n,v,i),s=l+c,y=B,p=Bt(g)):(y=G,s=l-c),t.textAlign=y,t.textBaseline=m,t.fillStyle=p,t.fillText(M,s,n+i/2)),t.restore()}function Nr(t,r,n,e,i,o,s){var f,y,m,h,M,d,g,b,p,_,w,x,$,k,S,C,A,T,j,E,R,I,B,G,L,z,K,J,U,V,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt=r.points,dt=r.labels,lt=r.pointIndex,vt=r.minimum,gt=r.maximum,bt=r.colorPositive,pt=r.colorNegative,Ft=r.vertical,_t=r.itemTypeRange,wt=r.colorTotal,Dt=5,Ht=13*s.zoomFactor;if(!u(Mt)&&!((f=Mt.length)<=0)&&_t&&(y=parseInt(lt,10),!(H(y)||y<=0||y>f))){for(dt=u(dt)?[]:dt,bt!==c&&typeof bt===D||(bt="#8CBF64"),pt!==c&&typeof pt===D||(pt="#D6604D"),typeof wt!==D&&(wt=c),m=bt,h=a(bt,1.3),M=pt,d=a(pt,1.3),g=1,b=0,p=0,_=0,w=0,x=[],$=0,k=0,C=0,A=f;C<A;C++)k=Mt[C],S=_t[C],T=!1,j=1===g,(E=!u(S))&&(S===q?k=F(k):S===W?k=-F(k):S===Y?(T=!0,j?b=k:k=b):E=!1),x[g]=[],R=x[g],H(k)?(R[0]=0,R[1]=b,R[2]=0):(R[0]=F(k),b=T?b:k+b,R[1]=k>0?p:b,R[2]=k),R[3]=g,_=l(p,_),w=v(p,w),((I=g===f)&&!E||T)&&($=_<0?-_:0,R[1]=k>0?0:k),E&&T&&!j||(p=k+p,I&&E&&(_=l(p,_),w=v(p,w))),g++;B=!1,u(S)||(B=-1===(G=[W,q,Y]).indexOf(S)),(u(S)||B)&&(b-=k),K=N(vt),H(K)||K>0||K>_?(L=_,K=_):(L=K,$=-K),J=N(gt),H(J)||J<0||J<w?z=w:(z=J,$=-K),V=(U=Gt(n,e,i,o,Dt,o-2*Dt,Ft)).left,X=U.width,Z=U.top,Q=U.height,tt=Ft?-1:1,nt=X/(rt=z-L),Vt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,it=(et=x[y])[2],ot=_t[y-1],ut=V+tt*(et[1]+$)*nt,at=et[0]*nt,ft=ot===Y,ct=(u(ot)||B)&&y===f||ft,st=wt&&ct?wt:1===y||ct?it>=0?m:M:it>=0?h:d,Ft?Jt(t,Z,ut-at,Q,at,st):Jt(t,ut,Z,at,Q,st),Ft?(1!==y&&(y!==f?wr(t,it>0,P,n,ut,Z+Q,ut,n,ut-at,Z+Q,ut-at):wr(t,!0,P,n,yt=V-(b+$)*nt,Z+Q,yt)),y!==f&&wr(t,it>0,P,Z,ut-at,n+i,ut-at,Z,ut,n+i,ut)):(1!==y&&(y!==f?wr(t,it>0,P,ut,e,ut,Z+Q,ut+at,e,ut+at,Z+Q):wr(t,!0,P,mt=V+(b+$)*nt,e,mt,Z+Q)),y!==f&&wr(t,it>0,P,ut+at,Z,ut+at,e+o,ut,Z,ut,e+o)),ht=dt[y-1],dt.length>0&&!u(ht)&&""!==ht&&Hr(t,n,e,i,o,{labelText:ht,vertical:Ft,isInRightOrTopOfBox:it>0,fontSize:Ht,startBox:ut,endBox:at,boxColor:st}),wr(t,Ft,O,n,V-$*nt,n+i,V-$*nt,V+$*nt,e,V+$*nt,e+o),t.restore()}}function xr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,b,p,F,w,x,$,C,P,A,O,T,j,E,R,I,B,G,L=r.points,z=r.pointIndex,K=r.colorRange,J=r.target,U=r.target2,V=r.highlightPosition,W=r.label,q=r.vertical,Y=13*a.zoomFactor,X=r.targetColor,Z=r.target2Color,Q=r.labelColor,tt=r.barSize;if(!u(L)&&(u(tt)||!(H(tt)||tt<=0))&&(tt>1&&(tt=1),!((s=L.length)<=0||(f=parseInt(z,10),H(f)||f<=0||f>s)))){for(K=u(K)?[]:K,c=parseInt(W,10),c=H(c)?0:c,y=1,m=0,h=[],M=0,d=L.length;M<d;M++)l=L[M],h[y]=[],v=h[y],l<0||H(l)||u(l)?(v[0]=1===y?0:m,v[1]=0):(m+=l,v[0]=1===y?0:m-l,v[1]=l),y++;p=5,b=u(tt)?p:q?i*(1-tt)/2:o*(1-tt)/2,F=Gt(n,e,i,o,b,o-2*p,q,p),w=F.left,x=F.width,$=F.top,C=F.height,P=q?-1:1,A=x/m,Vt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,T=(O=h[f])[1],j=w+P*O[0]*A,E=O[1]*A,R=f===V?S:0===K.length||typeof K[f-1]!==D?k:K[f-1],q?Jt(t,$,j-E,C,E,R):Jt(t,j,$,E,C,R),1===c?I=(O[0]+T)/m*1e3:2===c&&(I=T/m*1e3),B=g(I)/10+"%",1!==c&&2!==c||""===B||Hr(t,n,e,i,o,{labelText:B,vertical:q,isInRightOrTopOfBox:(O[0]+O[1])*A<x/2,fontSize:Y,startBox:j,endBox:E,boxColor:R,fillStyle:Q}),G=[u(X)?"#8CBF64":X,u(Z)?"#EE5D5D":Z],[J,U].forEach((function(r,u){var a=rt(r),s=_(w+P*x*a);wr(t,q,G[u],n,s,n+i,s,s,e,s,e+o)})),t.restore()}function rt(t){var r=N(t);return r=(r=(r=H(r)?0:r)<0?0:r)>1?1:r}}function $r(t,r){switch(r){case 2:var n;return t%4==0&&t%100!=0||t%400==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}function kr(t,r,n){var e,i,o,u,a,f;return t<0&&(t=0),t>1&&(t=1),e=s(r),i=s(n),o=e.a*(1-t)+i.a*t,u=e.r*(1-t)+i.r*t+"",a=e.g*(1-t)+i.g*t+"",f=e.b*(1-t)+i.b*t+"","rgba("+parseInt(u,10)+","+parseInt(a,10)+","+parseInt(f,10)+","+N(o/255+"")+")"}function Sr(t,r,n){return t===r&&t===n?1:t<=r?0:t>=n?1:(t-r)/(n-r)}function Cr(t,r,n,e,i,o){var u=(o+i)/2;return i<=e&&e<=u?kr(Sr(e,i,u),t,r):kr(Sr(e,u,o),r,n)}function Pr(t){var r=x,n=-x;return t.forEach((function(t){t!==c&&t!==y&&(r>t&&(r=t),n<t&&(n=t))})),{min:r,max:n}}function Ar(t,r,n,e,i,o,u){var a,s,f;e?t.forEach((function(t,i){0!==t&&t!==c&&t!==y&&(r[n+i]=e[i]||r[n+i])})):(a=Pr(t),s=a.min,f=a.max,t.forEach((function(t,e){0!==t&&t!==c&&t!==y&&(r[n+e]=Cr(i,o,u,t,s,f))})))}function Or(t,r,n,e,i,o){var u,a,s,f,c=r.year,y=r.month,m=r.values,h=r.emptyColor||"lightgray",M=r.startColor,d=r.middleColor,l=r.endColor,v="white",g=6,b=7,p=2,F=(i-(g+1)*p)/g,_=(o-(b+1)*p)/b,w=[],D=new Date(c,y-1,1).getDay();for(u=0;u<g*b;u++)u<D?w[u]=v:u<D+$r(c,y)?w[u]=h:w[u]=v;for(Ar(m,w,D,r.colors,M,d,l),t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),a=0,s=0;s<g;s++)for(f=0;f<b;f++)t.fillStyle=w[a],a++,t.fillRect(n+s*F+(s+1)*p,e+f*_+(f+1)*p,F,_);t.restore()}function Tr(t){var r,n=t.getFullYear(),e=t.getMonth(),i=t.getDate();for(r=1;r<e+1;r++)i+=$r(n,r);return i}function jr(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,g,b,p,F,_,w,D,H,N,x,$,k,S,C=r.year,P=r.values,A=r.emptyColor||"lightgray",O=r.startColor,T=r.middleColor,j=r.endColor,E="white",R=7,I=parseInt(366/R+"",10)+2,B=[],G=new Date(C,0,1).getDay(),L=Tr(new Date(C,11,31));for(a=0;a<I*R;a++)B[a]=a<G?E:a<G+L?A:E;for(Ar(P,B,G,r.colors,O,T,j),t.save(),t.rect(n,e,i,o),t.clip(),c=n+(f=15*(s=u.zoomFactor)),y=e,m=i-f,h=o,t.save(),t.translate(n+f/2,y+h),t.rotate(-Math.PI/2),t.font=13*s+V,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(C+"",h/2,0),t.restore(),d=(m-(I+1)*(M=2))/I,l=(h-(R+1)*M)/R,v=0,F=[],b=0;b<I;b++)for(g=0;g<R;g++)p={x:c+b*d+(b+1)*M,y:y+g*l+(g+1)*M,w:d,h:l},F[v]=p,t.fillStyle=B[v],v++,t.fillRect(p.x,p.y,p.w,p.h);for(_=[],w={},D=0;D<12;D++)w[D]=Tr(new Date(C,D,1))-1+G;for(H=w[11]+$r(C,12)-1,v=0,b=0;b<I;b++)for(g=0;g<R;g++)G<=v&&v<G+L&&($=w[x=(N=new Date(C,0,v-G+1)).getMonth()],p=F[v],$<=v&&v<7+$&&_.push({x1:p.x,y1:p.y-M/2,x2:p.x,y2:p.y+p.h+M/2}),v!==$&&0!==N.getDay()||_.push({x1:p.x-M/2,y1:p.y,x2:p.x+p.w+M/2+(v===$?M:0),y2:p.y}),H-7<v&&v<=H&&_.push({x1:p.x+p.w,y1:p.y-M/2,x2:p.x+p.w,y2:p.y+p.h+M/2}),v!==H&&6!==N.getDay()||_.push({x1:p.x-M/2-(v===H?M:0),y1:p.y+p.h,x2:p.x+p.w+M/2,y2:p.y+p.h})),v++;for(t.strokeStyle="black",t.lineWidth=2,k=0;k<_.length;k++)S=_[k],t.beginPath(),t.moveTo(S.x1,S.y1),t.lineTo(S.x2,S.y2),t.stroke();t.restore()}function Er(t){var r,n,e=zt(t.minAngle-90),i=zt(t.maxAngle-90),o=t.minValueOption.value,u=t.maxValueOption.value,a=t.ranges,s=I,f=(i-e)/(u-o),c=[];return a.length>0&&a.forEach((function(t){r=t.start,n=t.end,c.push({start:f*(r-o)+e,end:f*(n-o)+e,color:t.color})})),c.unshift({start:e,end:i,color:s}),{paintRanges:c,fillColor:s,targetValueRadian:f*(t.targetValueOption.value-o)+e,currentValueRadian:f*(t.currentValueOption.value-o)+e,minValueRadian:e,maxValueRadian:i}}function Rr(t,r,n,e,i,o,u){var a,s,f,c,h,M,d,g=o.zoomFactor,b=t.currentValueOption.normalFontHeight*g,p=t.minValueOption.normalFontHeight*g,_=t.maxValueOption.normalFontHeight*g,w=t.minAngle,D=t.maxAngle,H=t.currentValueOption.normalFontWidth*g,N=F(w)>90||F(D)>90,x=F(w)>120||F(D)>120,$=yt*l(e,i);return u?(a=m(e/2*ct),s=m(i*ct),c=l(a,f=N?s/2:s),M=(i-(N?2*c:c))/2,d=.03*c,h={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio,currentValuePoint:y,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:p<M,enoughShowMaxLabel:_<M,moreThanSemiCircle:N},N?x?2*b/3<M-d-v(_,p)&&H<e-2*$&&(h.currentValuePoint={x:h.x,y:h.y+c+d+b/2+v(_,p)},h.enoughShowCurrentLabel=!0):2*b/3<i/2-d&&H<e-2*$&&(h.currentValuePoint={x:h.x,y:h.y+2*d+b},h.enoughShowCurrentLabel=!0):b<M-d&&H<e-2*$&&(h.currentValuePoint={x:h.x,y:h.y+b},h.enoughShowCurrentLabel=!0)):(a=m(e/2*ft),s=m(i*ft),c=l(a,f=N?s/2:s),h={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio}),h}function Ir(t,r,n,e){return{x:t+d(n)*e,y:r+M(n)*e}}function Br(t,r){return F(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:L}:r.x>t.x?{x:r.x+et,y:r.y,textAlign:B}:r.x<t.x?{x:r.x-et,y:r.y,textAlign:G}:{x:r.x,y:r.y,textAlign:B}}function Gr(t,r,n,e,i,o,a){var s,f,c,y,l,g,b,p,_,w,D,H,N,x,$,k,S,C,P,T,j,R,I,z,K,J,V,W,q,Y,tt,et,it,ot,at,st=a.zoomFactor,ft=!!u(r.showLabel)||r.showLabel,ct=Rr(r,n,e,i,o,a,ft);if(!(ct.outerRadius<=0))return s={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=ct.innerRadius,c=ct.outerRadius,y=ct.currentValuePoint,l=ct.moreThanSemiCircle,g={x:ct.x,y:ct.y},p=(b=Er(r)).paintRanges,_=b.fillColor,t.save(),p.forEach((function(r){t.beginPath(),t.strokeStyle=A,t.moveTo(g.x,g.y),t.fillStyle=r.color||_,t.arc(g.x,g.y,c,r.start,r.end,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke(),t.beginPath(),t.fillStyle=A,t.strokeStyle=A,t.moveTo(g.x,g.y),t.arc(g.x,g.y,f,r.start-mt,r.end+mt,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke()})),t.beginPath(),t.moveTo(g.x,g.y),t.fillStyle=O,t.arc(g.x,g.y,c*X,0,2*h,!1),t.fill(),w=Ir(g.x,g.y,b.targetValueRadian,f),D=Ir(g.x,g.y,b.targetValueRadian,c*Q),St(t,w.x,w.y,D.x,D.y,rt,nt,E),H=Ir(g.x,g.y,b.currentValueRadian,c*Q),$t(t,g.x,g.y,H.x,H.y,O,Z*c),ft&&(t.save(),t.beginPath(),t.textAlign=U,t.fillStyle=E,N=r.minValueOption.normalFontHeight*st,x=r.maxValueOption.normalFontHeight*st,$=r.minValueOption.normalFontWidth*st,k=r.maxValueOption.normalFontWidth*st,S=b.minValueRadian,C=b.maxValueRadian,P=r.currentValueOption.normalFontHeight*st,T=r.currentValueOption.normalFontWidth*st,j=void 0,R=void 0,I=void 0,ct.enoughShowCurrentLabel&&(Pt(t,y.x,y.y,r.currentValueOption.label,r.currentValueOption.fontAfterZoom,L),s.showCurrentLabel=!0,j={x:y.x-T/2,y:y.y-P,width:T,height:P}),ct.enoughShowMinLabel&&F(d(S)*c)+$<i/2-ut&&(z=Ir(g.x,g.y,b.minValueRadian,c),Wt(R={x:(K=Br(g,z)).x-$,y:K.y,width:$,height:N},j)||(Pt(t,K.x,K.y+m(N),r.minValueOption.label,r.minValueOption.fontAfterZoom,G),s.showMinLabel=!0)),ct.enoughShowMaxLabel&&F(d(C)*c)+k<i/2-ut&&(J=Ir(g.x,g.y,b.maxValueRadian,c),Wt(I={x:(V=Br(g,J)).x,y:V.y,width:k,height:x},j)||(Pt(t,V.x,V.y+m(x),r.maxValueOption.label,r.maxValueOption.fontAfterZoom,B),s.showMaxLabel=!0)),ct.enoughShowTargetLabel&&(W=r.targetValueOption.normalFontWidth*st,q=r.targetValueOption.normalFontHeight*st,Y=r.targetValueOption.label,tt=c+3*q/2,D=Ir(g.x,g.y,b.targetValueRadian,tt),et=Br(g,D),it=b.targetValueRadian,ot=l?(o-2*tt)/2+tt:o-(o-c)/2,F(d(it)*tt)+W<i/2-ut&&F(M(it)*tt)+q/2+ut/2<ot&&(at=v(N,x)/2,Pt(t,et.x,et.y-(it>h?at:-at),Y,r.targetValueOption.fontAfterZoom,et.textAlign),s.showTargetLabel=!0)),t.restore()),t.restore(),s}function Lr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,h=t.currentValueOption.normalFontHeight*u,M=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,l=t.targetValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,b=.05*e,p=m(i*at),F=m(e*st),_={x:r+e*(1-st)/2,y:n+i*(at+(1-at)/2),graphWidth:F,graphHeight:p,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&(s<(i-p)/2&&M<(e-F)/2-b&&(_.minValuePoint={x:_.x-M,y:_.y+s/3},_.enoughShowMinLabel=!0),f<(i-p)/2&&d<(e-F)/2-b&&(_.maxValuePoint={x:_.x-d,y:_.y-p+f/3},_.enoughShowMaxLabel=!0),(c<(i-p)/2||c/2<p)&&l<(e-F)/2-b-v(M,d)&&(_.targetValuePoint={x:_.x-l-v(M,d),y:y},_.enoughShowTargetLabel=!0),(h<(i-p)/2||h/2<p)&&g<(e-F)/2-b&&(_.currentValuePoint={x:_.x+F+b,y:y},_.enoughShowCurrentLabel=!0)),_}function zr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphHeight/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.y-s*(n-i),height:s*(e-n),color:t.color})})),f.unshift({start:r.y,height:r.graphHeight,color:a}),{paintRanges:f,fillColor:a,targetValueY:r.y-s*(t.targetValueOption.value-i),currentValueY:r.y-s*(t.currentValueOption.value-i)}}function Kr(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,g,b=u.zoomFactor,p=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Lr(r,n,e,i,o,u),N=H.graphWidth,x=H.graphHeight;if(!(N<=0||x<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},M=(h=zr(r,H)).paintRanges,d=w.normalFontHeight*b,l=D.normalFontHeight*b,v=h.targetValueY,g=h.currentValueY,t.save(),M.forEach((function(r){Jt(t,m.x,r.start,N,-r.height,r.color)})),St(t,m.x-(Q-1)*N,v,m.x+N,v,rt,nt,E),$t(t,m.x,g,m.x+N*Q,g,O,tt*x),p&&(t.save(),t.beginPath(),H.enoughShowMinLabel&&(Pt(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Pt(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-e+l/2>o||v-e-ot<0)&&(Pt(t,f.x,h.targetValueY+D.normalFontHeight*b/3,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-e+d/2>o||g-e-ot<0)&&(Pt(t,s.x,h.currentValueY+w.normalFontHeight*b/3,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Jr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,h=t.currentValueOption.normalFontHeight*u,M=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,b=t.targetValueOption.normalFontWidth*u,p=.1*l(e,i),F=m(i*st),_=m(e*at),w={x:r+e*(1-at)/2,y:n+i*(1-st)/2,graphWidth:_,graphHeight:F,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&((g<3*(e-_)/4||g<_)&&h<(i-F)/2-ut&&(w.currentValuePoint={x:y,y:w.y-h/2},w.enoughShowCurrentLabel=!0),(b<3*(e-_)/4||b<_)&&c<(i-F)/2-v(s,f)&&(w.targetValuePoint={x:y,y:w.y+F+v(s,f)+c/4*3},w.enoughShowTargetLabel=!0),M<3*(e-_)/4&&s<(i-F)/2-p&&(w.minValuePoint={x:w.x-M/2,y:w.y+F+s},w.enoughShowMinLabel=!0),d<3*(e-_)/4&&f<(i-F)/2-p&&(w.maxValuePoint={x:w.x+_-d/2,y:w.y+F+f},w.enoughShowMaxLabel=!0)),w}function Ur(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphWidth/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.x+s*(n-i),width:s*(e-n),color:t.color||a})})),f.unshift({start:r.x,width:r.graphWidth,color:a}),{paintRanges:f,fillColor:a,targetValueX:r.x+s*(t.targetValueOption.value-i),currentValueX:r.x+s*(t.currentValueOption.value-i)}}function Vr(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,g,b=u.zoomFactor,p=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Jr(r,n,e,i,o,u),N=H.graphWidth,x=H.graphHeight;if(!(N<=0||x<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},M=(h=Ur(r,H)).paintRanges,d=w.normalFontWidth*b,l=D.normalFontWidth*b,v=h.targetValueX,g=h.currentValueX,t.save(),M.forEach((function(r){Jt(t,r.start,m.y,r.width,x,r.color)})),St(t,v,m.y,v,m.y+x*Q,rt,nt,E),kt(t,g,m.y+x-1,g,m.y-x*(Q-1)-1,O,N*tt),p&&(t.save(),H.enoughShowMinLabel&&(Pt(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Pt(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-n+l/2+it>i||v-n-l/2-it<0)&&(Pt(t,v-D.normalFontWidth*b/2,f.y,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-n+d/2+it>i||g-n-d/2-it<0)&&(Pt(t,g-w.normalFontWidth*b/2,s.y,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Wr(t,r,n,e,i,o,u){t.save(),t.rect(n,e,i,o),t.clip(),0===r.gaugeType?Gr(t,r,n,e,i,o,u):1===r.gaugeType?Kr(t,r,n,e,i,o,u):2===r.gaugeType&&Vr(t,r,n,e,i,o,u),t.restore()}function qr(t,r,n,e,i,o,u,a){var s,f,c,y,m,h,M=[],d=t.length,l=0,v=u.fontPixelSize;if(o&&(l=v+3),0===d)return M;for(s=e/d,f=t[0].value,c=1;c<d;c++)f=Math.max(f,t[c].value);for(y=0;y<d;y++)m=n+i-l,(h=t[y].value/f*(i-l))<0&&(h=0),M.push({x:r+y*s+s*(1-a)/2,textX:r+y*s,y:m-h,width:s*a,textWidth:s,height:h,axis:t[y].axis});return M}function Yr(t,r,n,e){t.save(),t.fillStyle=n;for(var i=0;i<r.length;i++)t.fillRect(r[i].x,r[i].y,r[i].width,r[i].height);t.restore()}function Xr(t,r,n,e){var i,o,u,a,s;for(t.save(),i=n.fontPixelSize,o=rn(n),t.textAlign="center",t.fillStyle=e,u=0;u<r.length;u++)a=void 0,s=void 0,a=r[u].x+r[u].width/2,s=r[u].y+r[u].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(r[u].textX,r[u].y+r[u].height+1,r[u].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(r[u].axis,a,s),t.restore();t.restore()}function Zr(t,r,n,e){var i,o,u,a,s,f;if("none"!==e){for(t.save(),t.lineWidth=1,t.strokeStyle=e,t.beginPath(),i=0;i<r.length;i++)u=(o=r[i]).x,a=o.y,s=o.width,0!==(f=o.height)&&0!==s&&($t(t,u,a,u+s,a),$t(t,u,a+f,u+s,a+f),r[i-1]&&r[i-1].height>=f&&1===n||$t(t,u,a,u,a+f),r[i+1]&&r[i+1].height>f&&1===n||$t(t,u+s,a,u+s,a+f));t.stroke(),t.closePath(),t.restore()}}function Qr(t,r,n,e,i){var o,u,a,s,f,c=!1;for(t.save(),t.font=i,u=(n-6)/(o=r.length),a=0,s=r;a<s.length;a++)if(f=s[a],t.measureText(f.axis).width>u){c=!0;break}return t.restore(),c}function tn(t,r,n,e,i,o,a){var s,f,c,y=r.barColor,m=r.values,h=r.paintLabel,M=r.barWidth,d=r.labelFontStyle,l=r.afterZoomFontStyle,v=r.edgeColor,g=r.labelColor;u(d)||(o<3*(s=l.fontPixelSize)||Qr(t,m,i,o,rn(l)))&&(h=!1),h&&u(d)&&(f=Math.floor(o/3>=12?12:Math.floor(o/3)),l.fontPixelSize=f,l.fontSize=f+"px",Qr(t,m,i,o,rn(l))&&(h=!1)),Yr(t,c=qr(m,n+3,e+3,i-6,o-6,h,l,M),y,v),Zr(t,c,M,v),h&&Xr(t,c,l,g)}function rn(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function nn(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d;t.save(),t.rect(n,e,i,o),t.clip(),a=r.clipX,s=r.clipY,f=r.clipWidth,c=r.clipHeight,y=r.paintX,m=r.paintY,h=r.paintWidth,M=r.paintHeight,d=r.img,f>0&&c>0&&h>0&&M>0&&t.drawImage(d,a,s,f,c,y,m,h,M),t.restore()}Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineExRenders=r.SparklineRender=r.Uzt=r.Hzt=r.zzt=r.oCt=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/colorhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=e.lt.ht,a=i.ft.YGt,s=i.ft._,f=o.Uf.hD,r.oCt={},c=null,y=void 0,m=Math.floor,h=Math.PI,M=Math.sin,d=Math.cos,l=Math.min,v=Math.max,g=Math.round,b=Math.pow,p=Math.sqrt,F=Math.abs,_=Math.ceil,w="undefined",D="string",H=isNaN,N=parseFloat,x=Number.MAX_VALUE,$=new Date(""),k="#969696",S="#CB0000",C="#646464",P="#DCDCDC",A="white",O="black",T="blue",j="green",E="grey",R="red",I="lightgrey",B="left",G="right",L="center",z="top",K="bottom",J="middle",U="start",V="px Arial",W="-",q="+",Y="=",X=.05,Z=.03,Q=1.06,tt=.02,rt=4,nt=5,et=5,it=3,ot=10,ut=8,at=.8,st=.25,ft=.9,ct=.7,yt=.1,mt=1/45*h,ht=function(){function t(t){this.x=t.x,this.y=t.y}return t}(),Mt=function(){function t(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}return t}(),dt=function(t){function r(r){var n=t.call(this,Ht(r.x,r.y))||this;return n.value=r.value,n}return wt(r,t),r}(ht),lt="7ns",vt="5ns",gt="tukey",bt="bowley",pt="sigma3",r.zzt=Gr,r.Hzt=Kr,r.Uzt=Vr,Ft=function(){function t(t,r,n,e){this.X=t,this.Y=r,this.Width=n,this.Height=e,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}return t}(),_t=function(){function t(){this.Bzt=2,this.Lzt=$,this.Fzt=$,this.Pzt=x,this.Gzt=-x}return t.prototype.paint=function(t,r,n,e,i,o){var u,a,s,f=this;f.options=r,f.setting=r.settings,u=r.values,a=r.dateValues,s=r.zoomFactor,t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),0===r.sparklineType&&f.c6(t,n,e,i,o,u,a,s),f.Vzt(t,n,e,i,o,u,a,s),f.Yzt(t,n,e,i,o,u,a,s),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,n){var e,i,u,a,s,m,h,M,d,v=this.Kzt;if(v)return v;if(v=this.Kzt=[],e=t.length,this.options.displayDateAxis){for(a=n.length,m=[],(s=l(e,a))>0&&(m=n.slice(0,s)),m.sort((function(t,n){return t===n?0:(t===r.oCt&&(t=0),n===r.oCt&&(n=0),t-n)})),h=m.length,M=void 0,d=void 0,i=0;i<h;i++)if(typeof(M=m[i])!==w&&M!==c){for(d=f(n,M);o.Uf.OS(v,d);)d=f(n,M,d+1);isNaN(M)||(u=t[d])!==y&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(d)}}else for(i=0;i<e;i++)typeof(u=t[i])!==w&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(i);return v},t.prototype.Sl=function(t,n){var e=n[t];return typeof e===w||e===c?1===this.setting.options.displayEmptyCellsAs&&(e=0):e===r.oCt&&(e=0),e},t.prototype.c6=function(t,r,n,e,i,o,u,a){var s,f,y,m,h,M,d,l,v,g,b,p,F,_,D,H=this,N=H.Qzt(o,u),x=N.length-1;for(x<0&&(x=0),m=H.setting.options,h=H.linePos=[],b=m.displayEmptyCellsAs,s=0;s<x;s++)if(typeof(M=H.Sl(N[s],o))!==w&&M!==c){if(l=s+1,typeof(d=H.Sl(N[l],o))===w||d===c)if(1===b)d=0;else if(2===b)for(l=s+2;l<=x;l++)if(typeof(p=o[N[l]])!==w&&p!==c){d=p;break}typeof d!==w&&d!==c?(v=H.Jzt(N[s],{Width:e,Height:i},o,u,a),g=H.Jzt(N[l],{Width:e,Height:i},o,u,a),F=v.Width/2,f={X:v.X+F,Y:v.Y+F},y={X:g.X+F,Y:g.Y+F},h[s]={P1:f,P2:y}):s++}if((_=h.length)>0)for(t.strokeStyle=H.options.getColor(m.seriesColor),t.lineCap="round",t.lineWidth=H.Wzt(a),s=0;s<_;s++)(D=h[s])&&(t.beginPath(),f=D.P1,y=D.P2,t.moveTo(r+f.X,n+f.Y),t.lineTo(r+y.X,n+y.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,r,n){var e,i,o,u=this,a=u.options,s=u.setting.options,m=c,h=u.Sl(t,r),M=u.Qzt(r,n),d=M.length,l=a.getColor.bind(u);return typeof h!==w&&h!==c&&(u.Pzt!==x&&u.Gzt!==-x||u.qzt(r),h===u.Pzt&&s.showLow&&(m=l(s.lowMarkerColor)),h!==u.Gzt||!s.showHigh||typeof m!==w&&m!==c||(m=l(s.highMarkerColor)),typeof m!==w&&m!==c||(a.displayDateAxis?0===(e=f(M,t))&&s.showFirst&&(m=l(s.firstMarkerColor)):0===t&&s.showFirst&&(m=l(s.firstMarkerColor))),typeof m!==w&&m!==c||(a.displayDateAxis?(i=f(M,t))===d-1&&s.showLast&&(m=l(s.lastMarkerColor)):t===d-1&&s.showLast&&(m=l(s.lastMarkerColor))),h<0&&s.showNegative&&(typeof m===w||m===c)&&(m=l(s.negativeColor)),typeof m!==w&&m!==c||(0===(o=a.sparklineType)?s.showMarkers&&(m=l(s.markersColor)):(1===o||2===o)&&(m=l(s.seriesColor)))),m===y||m===c?"Transparent":m},t.prototype.Vzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,M,d,l,v,g,b,p=this,F={Width:e,Height:i},_=p.Qzt(o,u),w=_.length,D=p.options.sparklineType;for(b=0;b<w;b++)s=_[b],f=p.Xzt(s,o,u),c=p.Jzt(s,F,o,u,a),t.fillStyle!==f&&(t.fillStyle=f),0===D?(t.save(),y=r+c.X+c.Width/2,M=n+c.Y+c.Height/2,t.translate(y,M),t.rotate(45*h/180),t.fillRect(0-c.Width/2,0-c.Height/2,c.Width,c.Height),t.restore()):(d=r+c.X+c.Width/4,d=m(d),l=n+c.Y,v=c.Width/2,g=c.Height,t.fillRect(d,l,v,g))},t.prototype.Yzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,h,M,d,l=this,v=l.setting&&l.setting.options;v&&v.displayXAxis&&l.$zt(o,u)&&(s={Width:e,Height:i},f=l.Zzt(a),c=s.Width-l.Zzt(a),h=y=m(l.tVt(s,o,a))+.5,M=l.options.getColor(v.axisColor),(d=a)<1&&(d=1),t.strokeStyle!==M&&(t.strokeStyle=M),t.lineWidth!==d&&(t.lineWidth=d),t.beginPath(),t.moveTo(r+f,n+y),t.lineTo(r+c,n+h),t.stroke())},t.prototype.nVt=function(t){var r,n=this.eVt(t);return n===-x||(r=this.iVt(t))===x||(n===r||n*r<=0)},t.prototype.$zt=function(t,r){var n,e,i,o,u,a=this.nVt(t);if(2!==this.options.sparklineType)return a;if(e=(n=this.Qzt(t,r)).length,!a&&e>0)for(u=0;u<e;u++)if(typeof(o=t[i=n[u]])!==w&&o!==c)return!0;return a},t.prototype.rVt=function(t,r){var n=this.Lzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Lzt},t.prototype.aVt=function(t,r){var n=this.Fzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Fzt},t.prototype.oVt=function(t,r){var n,e,i,o,u=this,a=new Date(0,0,0),s=x,f=u.Qzt(t,r),y=f.length;for(o=0;o<y;o++)e=r[n=f[o]],isNaN(e)||(i=u.Sl(n,t))!==c&&typeof i===w||isNaN(i)||typeof e!==w&&e!==c&&(e>a&&(a=e),e<s&&(s=e));u.Fzt=a,u.Lzt=s},t.prototype.uVt=function(t,r,n,e){var i,o,u,a,s,f,c,y,m=this,h=m.rVt(r,n),M=m.aVt(r,n),d=[],l=m.Qzt(r,n),v=l.length;for(i=0;i<v;i++)(o=n[u=l[i]])&&!isNaN(o)&&d.push(o);if(d.sort((function(t,r){return t-r})),(a=d.length)>1&&h!==M){for(s=x,f=0,c=void 0,i=1;i<a;i++)(o=(c=d[i])-d[i-1])<s&&o>0&&(s=o),f+=o;return(y=(t.Width-m.Zzt(e)-m.Zzt(e))*s/f/2)<2&&(y=2),y}return(t.Width-m.Zzt(e)-m.Zzt(e))/2},t.prototype.sVt=function(t,r,n,e){var i,o=this;return o.options.displayDateAxis?o.uVt(t,r,n,e):(i=o.Qzt(r,n).length,(t.Width-o.Zzt(e)-o.Zzt(e))/i)},t.prototype.cVt=function(t,r,n,e,i){var o,u,a,s,c,y,h,M,d=this,l=d.Zzt(i);return d.options.displayDateAxis?(o=d.sVt(t,n,e,i),(u=d.aVt(n,e))===(a=d.rVt(n,e))?l+o/2:(s=e[r])?(c=t.Width-l-d.Zzt(i),c-=o,y=u.valueOf()-a.valueOf(),l+m((s.valueOf()-a.valueOf())/y*c)):0):(o=d.sVt(t,n,e,i),h=f(d.Qzt(n,e),r),m(M=l+o*h))},t.prototype.fVt=function(t,r){var n,e=this,i=t.Width-e.Zzt(r)-e.Zzt(r);return i=v(i,0),n=t.Height-e.Zzt(r)-e.Zzt(r),{Width:i,Height:n=v(n,0)}},t.prototype.qzt=function(t){var r,n,e=this,i=t.length;for(n=0;n<i;n++)typeof(r=t[n])!==w&&r!==c&&("number"!=typeof r&&(r=0),r<e.Pzt&&(e.Pzt=r),r>e.Gzt&&(e.Gzt=r))},t.prototype.eVt=function(t){var r,n,e=this;return e.Gzt!==-x&&e.Gzt||e.qzt(t),0===(n=(r=e.setting.options).maxAxisType)?e.Gzt:1===n?r.groupMaxValue:2===n?r.manualMax:e.Gzt},t.prototype.iVt=function(t){var r,n,e=this;return e.Pzt!==x&&e.Pzt||e.qzt(t),0===(n=(r=e.setting.options).minAxisType)?e.Pzt:1===n?r.groupMinValue:2===n?r.manualMin:void 0},t.prototype.lVt=function(t,r,n,e){var i=this.fVt(t,e),o=this.eVt(n),u=this.iVt(n),a=o-u,s,f;if(o===u){if(0===o)return 0;a=F(o)}return(s=n[r])||(s=0),s*(f=i.Height/a)},t.prototype.hVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;if(0===s)return a.lVt(t,r,n,e);if(1===s){if(i=n[r],1===a.setting.options.displayEmptyCellsAs&&(typeof i===w||i===c))return 0;if((o=a.lVt(t,r,n,e))>-a.Bzt&&o<a.Bzt){if(i>0)return o+a.Bzt;if(i<0)return o-a.Bzt}return o}return 2===s?typeof(i=n[r])===w||i===c||0===i||isNaN(i)?0:(u=a.fVt(t,e),i>=0?u.Height/2:-u.Height/2):void 0},t.prototype.dVt=function(t,r,n){var e,i,o=this,u=o.fVt(t,n),a=o.eVt(r),s=o.iVt(r);if(a===-x||s===x)return t.Height/2;if(e=a-s,a===s){if(0===a)return t.Height/2;e=a,a<0&&(a=0)}return i=u.Height/e,o.Zzt(n)+a*i},t.prototype.tVt=function(t,r,n){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,r,n)},t.prototype.vVt=function(t,r,n,e){var i,o,u,a=this,s=a.fVt(t,e),f=a.eVt(n),y=a.iVt(n),m=f-y;if(f===y){if(0===f)return 0;m=f}return i=s.Height/m,typeof(o=a.Sl(r,n))!==w&&o!==c||(o=0),f!==y&&f*y>0?(u=0,u=o>=0?(o-y)*i:(o-f)*i):o*i},t.prototype.mVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;return 0===s?a.vVt(t,r,n,e):1===s?(i=a.vVt(t,r,n,e))>-(o=a.Bzt)&&i<o&&(typeof(u=a.Sl(r,n))!==w&&u!==c||(u=0),0!==u)?u>0?i+o:i-o:i:2===s?a.hVt(t,r,n,e):void 0},t.prototype.gVt=function(t,r,n,e,i){var o,u,a,s,f,c,y,h,M,d=this,l=d.sVt(r,n,e,i),g=d.cVt(r,t,n,e,i);return l<0&&(l=0),(l=m(l))%2==1&&(l+=1),o=d.hVt(r,t,n,i),u=d.tVt(r,n,i),a=d.eVt(n),s=d.iVt(n),f=0,a<0&&s<0?f=v(d.Zzt(i),u):(f=u,o>=0&&(f=u-o)),c=d.mVt(r,t,n,i),y=new Ft(g,f,l,F(c)),0!==o&&(h=d.Zzt(i),y.Y<h&&y.Bottom<h+1?y.Height=m(y.Height+1):(M=r.Height-d.Zzt(i),y.Bottom>M&&y.Y>M-1&&(y.Y=M-c,y.Height=c))),y},t.prototype.Wzt=function(t){var r=this.setting.options.lineWeight*t;return r<1&&(r=1),r},t.prototype.Jzt=function(t,r,n,e,i){var o,u,a,s,f,y=this,m=y.Wzt(i);return++m<2&&(m=2),o=y.gVt(t,r,n,e,i),0===y.options.sparklineType&&(o.X=o.X+(o.Width-m)/2,typeof(u=y.Sl(t,n))!==w&&u!==c?(u>=0?o.Y-=m/2:o.Y=o.Bottom-m/2,o.Width=m,o.Height=m):(o.Width=0,o.Height=0)),y.setting.options.rightToLeft&&(a=o.X,f=(s=r.Width-a)-o.Width,o=new Ft(f,o.Y,o.Width,o.Height)),o},t}(),r.SparklineRender=_t,r.SparklineExRenders={PIESPARKLINE:qt,AREASPARKLINE:Qt,SCATTERSPARKLINE:rr,BULLETSPARKLINE:ur,SPREADSPARKLINE:ar,STACKEDSPARKLINE:yr,HBARSPARKLINE:vr,VBARSPARKLINE:gr,VARISPARKLINE:br,LOLLIPOPVARISPARKLINE:pr,BOXPLOTSPARKLINE:Fr,CASCADESPARKLINE:Nr,PARETOSPARKLINE:xr,MONTHSPARKLINE:Or,YEARSPARKLINE:jr,GAUGEKPISPARKLINE:Wr,HISTOGRAMSPARKLINE:tn,IMAGESPARKLINE:nn}},canvas:function(t){t.exports=canvas}},e={};function i(t){var r,o=e[t];return void 0!==o?o.exports:(r=e[t]={exports:{}},n[t].call(r.exports,r,r.exports,i),r.exports)}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t={},function(){var r,n,e,o,u,a=t;Object.defineProperty(a,"__esModule",{value:!0}),a.Slicers=a.Sparklines=a.Formatter=a.Commands=a.Common=void 0,r=i("./src/common/common.entry.ts"),a.Common=r,n=i("./src/plugins/commands/commands.entry.ts"),a.Commands=n,e=i("./src/plugins/formatter/formatter.entry.ts"),a.Formatter=e,o=i("./src/plugins/sparkline/sparkline.entry.ts"),a.Sparklines=o,u=i("./src/plugins/slicer/slicer.entry.ts"),a.Slicers=u}(),(r=void 0===r?{}:r).Spread=t}(),t.exports=r.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,r,n)=>{t.exports=n("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={};function e(t){var i,o=n[t];return void 0!==o?o.exports:(i=n[t]={exports:{}},r[t](i,i.exports,e),i.exports)}t=e("./node_modules_local/@spreadjs/js-sheets-common/index.js"),(GC=void 0===GC?{}:GC).Spread=t})(),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd?define("@grapecity-software/spread-common",[],(function(){return t})):"object"==typeof exports&&(exports.Spread=t.Spread)}(GC||{});
|
|
12
|
+
var GC;(()=>{var t,r={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var r;!function(){"use strict";var t,n={"./src/common/common.entry.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),l=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||d(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.Events=r.UserManager=r.UUIDGenerator=r.B3=r.rbush=r.CultureManager=r.CultureInfo=r.zf=r.$T=r.st=r.ct=r.Uf=r.lt=r.ft=void 0,e=n("./src/common/util/colorhelper.ts"),Object.defineProperty(r,"ft",{enumerable:!0,get:function(){return e.ft}}),i=n("./src/common/util/types.ts"),Object.defineProperty(r,"lt",{enumerable:!0,get:function(){return i.lt}}),o=n("./src/common/util/arrayhelper.ts"),Object.defineProperty(r,"Uf",{enumerable:!0,get:function(){return o.Uf}}),u=n("./src/common/util/datetimehelper.ts"),Object.defineProperty(r,"ct",{enumerable:!0,get:function(){return u.ct}}),Object.defineProperty(r,"B3",{enumerable:!0,get:function(){return u.getSR}}),a=n("./src/common/util/numberhelper.ts"),Object.defineProperty(r,"st",{enumerable:!0,get:function(){return a.st}}),s=n("./src/common/util/regexhelper.ts"),Object.defineProperty(r,"$T",{enumerable:!0,get:function(){return s.$T}}),f=n("./src/common/util/stringhelper.ts"),Object.defineProperty(r,"zf",{enumerable:!0,get:function(){return f.zf}}),c=n("./src/common/util/rbush.ts"),Object.defineProperty(r,"rbush",{enumerable:!0,get:function(){return c.rbush}}),y=n("./src/common/util/common.ts"),m=n("./src/common/util/uuid-helper.ts"),Object.defineProperty(r,"UUIDGenerator",{enumerable:!0,get:function(){return m.UUIDGenerator}}),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){y.HandleExcelSpecialDate=t},get:function(){return y.HandleExcelSpecialDate}}),l(n("./src/common/util/common.ts"),r),h=n("./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}}),l(n("./src/common/util/functionhelper.ts"),r),M=n("./src/common/users/users.entry.ts"),Object.defineProperty(r,"UserManager",{enumerable:!0,get:function(){return M.UserManager}}),Object.defineProperty(r,"Events",{enumerable:!0,get:function(){return M.Events}})},"./src/common/culture/cultureInfo.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O=this&&this.vJr||(T=function(t,r){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},T(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}T(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),T;function E(t){return t.split("\xa0").join(" ").toUpperCase()}function j(t){var r,n,e=[];for(r=0,n=t.length;r<n;r++)e[r]=E(t[r]);return e}function R(t,r,n){var e=E(t),i=r.indexOf(e);return-1===i&&(i=n.indexOf(e)),i}function I(t){if(t){var r=t.charCodeAt(0);if(r>=11904&&r<12032||r>=8208&&r<8252||r>=12288&&r<40960||r>=43360&&r<43392||r>=44032&&r<55215||r>=63744&&r<64256||r>=65280&&r<65535)return!0}return!1}function B(t,r,n){if(" "===t||n&&"\u3000"===t)return 0;var e=n&&n(t);return r.lineBreakingForbidStart&&-1!==r.lineBreakingForbidStart.indexOf(t)?!n||e?7:6:r.lineBreakingForbidEnd&&-1!==r.lineBreakingForbidEnd.indexOf(t)?!n||e?5:4:e?2:r.lineBreakingChar&&-1!==r.lineBreakingChar.indexOf(t)?3:1}function G(t,r,n){var e,i,o,u,a,f;if(!t)return[];for(e=[t[0]],i=0,o=B(t[0],r,n),u=1;u<t.length;u++)a=B(t[u],r,n),b[f=o+""+a]&&e[++i]===s&&(e[i]=""),e[i]+=t[u],o=a;return e}function L(t,r,n){var e,i,o,u=this;for(i=0,o=r.length;i<o;i++)e=r[i],u[t][e]=n[i]}function z(t,r){var n;"object"==typeof document&&("function"!=typeof CustomEvent?(n=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):n=new CustomEvent("cultureChanged",{}),n.cultureInfo=t,a.gcCultureInfo=t,a.gcCultureObj=r,document.dispatchEvent(n))}Object.defineProperty(r,"__esModule",{value:!0}),r.CultureManager=r.XPt=r.CultureInfo=r.TimelineDateOrder=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/util/regexhelper.ts"),a="undefined"!=typeof window?window:n.g,s=void 0,f=null,c=e.lt.y0,y=e.lt.Dh,m=(new Date).getFullYear(),d=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],l=(h=["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(M=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"]),c(h,(function(t,r){c(M,(function(t,n){t<M.length-4&&l.push(r+" "+n)}))})),l=l.concat(d),c(d,(function(t,r){c(M,(function(t,n){t<M.length-4&&l.push(r+" "+n)}))})),function(t){t[t.year=1]="year",t[t.quarterOrMonth=2]="quarterOrMonth",t[t.date=3]="date"}(v=r.TimelineDateOrder||(r.TimelineDateOrder={})),b={"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},g=function(){function t(){this.instanceType="CultureInfo",this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"\xa4",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"\u2030",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=s,this.predefinedFormats={},this.TimelineDateOrder=[v.quarterOrMonth,v.date,v.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=s}return t.register=function(r,n){t.registry[r]=n},t.prototype.mTe=function(){return[" "]},t.prototype.FAe=function(t){var r=this,n=r.mTe(),e={lineBreakingChar:n};return r.TextFormat&&r.TextFormat.lineBreakingStrategy?r.TextFormat.lineBreakingStrategy(t,e):G(t,e)},t.prototype.hse=function(t){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var r={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(t,r)}return G(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},t.prototype.qPt=function(){var t,r,n,e;return this.$Pt||(n=(n=[r=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),r+" h:mm",r+" h:mm:ss",r+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(l),1041===this.id&&(e=t.eraFormatter,n=(n=n.concat(this.QPt)).concat(e)),n=n.concat(t.preselectedFormatters),this.$Pt=n),this.$Pt},t.prototype.tGt=function(t){var r=this;return r.nGt||(r.nGt=j(r.DateTimeFormat.monthNames),r.eGt=j(r.DateTimeFormat.monthGenitiveNames)),R(t,r.nGt,r.eGt)},t.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=j(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=j(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),R(t,r.rGt,r.oGt)},t.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=j(r.DateTimeFormat.dayNames)),r.uGt.indexOf(E(t))},t.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=j(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(E(t))},t.prototype.toInstanceJSON=function(){var t=this,r=["NumberFormat","DateTimeFormat","TextFormat","LocalNumberFormat","predefinedFormats","displayName","isJCKCulture","fontScriptCode","equalCharacters","TimelineDateOrder","TimelineDateSuffix"],n={cultureName:this.name(),instanceType:this.instanceType};return r.forEach((function(r){var e;void 0!==t[r]&&(n[r]=JSON.parse(JSON.stringify(t[r])))})),n.DateTimeFormat.qGt=void 0,n},t.fromInstanceJSON=function(r){var n=t.registry[r.instanceType],e=n?new n:new t;return r&&Object.assign(e,r),e.name=function(){return e.cultureName},e},t.registry={},t}(),r.CultureInfo=g,p=function(){function t(){}return t.fGt=function(r){return r>=t.lGt()&&r<=t.hGt()},t.dGt=function(){var t,r,n=g.eras;if(n!==s){for(t=[],r=0;r<n.length;r++)t[r]=new Date(n[r].startDate.replace(/-/g,"/"));return t}return this.vGt},t.mGt=function(r){var n,e,i,o,u;switch(r){case"g":n="symbol",e=t.gGt;break;case"gg":n="abbreviation",e=t.pGt;break;case"ggg":n="name",e=t.DEt;break;default:return[]}if(o=[],(i=g.eras)!==s){for(u=0;u<i.length;u++)o[u]=i[u][n];return o}return e},t.hGt=function(){var t,r=g.eras;return r!==s&&r.length>0?((t=new Date(r[r.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},t.lGt=function(){var t=g.eras;return t!==s&&t.length>0?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},t.wGt=function(){var t=g.eras;return t!==s?t.length:this.MGt},t.CGt=function(){var t,r,n,e,i=g.eras;if(i!==s){for(t=[],r=1;r<i.length;r++)n=new Date(i[r-1].startDate.replace(/-/g,"/")),e=new Date(i[r].startDate.replace(/-/g,"/")),t[r-1]=e.getFullYear()-n.getFullYear()+1;return t[r-1]=99,t}return this.SGt},t.TGt=function(r){var n,e,i={AGt:-1,IGt:-1};if(!t.fGt(r)){if(!(r>t.hGt()))return i;r=t.hGt()}for(n=0;n<t.wGt();n++)if(r<(e=n+1!==t.wGt()?t.dGt()[n+1]:t.xGt(t.hGt(),1))){i.AGt=n,i.IGt=r.getFullYear()-t.dGt()[n].getFullYear()+1;break}return i},t.xGt=function(t,r){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return n.setMilliseconds(n.getMilliseconds()+r),new Date(n.valueOf())},t.NGt=function(r,n){var e;return t.dGt()[r].getFullYear()+n-1},t.kGt=function(r,n){var e,i;for(n=n.toUpperCase(),e=t.mGt(r),i=0;i<e.length;i++)if(e[i]===n)return i;return-1},t.DGt=function(r,n,e){var i,o,u,a=t,s=a.TGt(n),f=s.AGt;if(f>=0&&(i=a.mGt(r)).length>0)return i[f];if((o=s.IGt)>=0){if("1"===(u=o.toString())&&e)return u="\u5143";if("ee"===r)return 1===u.length&&(u="0"+u),u;if("e"===r)return u}return""},t.vGt=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],t.MGt=5,t.SGt=[45,15,64,31,99],t.bGt=new Date(2117,11,31,23,59,59),t.yGt=new Date(1868,8,8),t._Gt=["1,m","2,t","3,s","4,h","5,r"],t.EGt=[0,1,2,3,0,1,2,3],t.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],t.gGt=["M","T","S","H","R"],t.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],t.jGt=99,t.eraExcelFormatter="[$-ja-JP-x-gannen]",t.eraInternalFormatter="[$-411]",t}(),r.XPt=p,F="ENCulture",_=function(t){function r(){var r,n=t.call(this)||this;return n.instanceType=F,L.call(n,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),r=["MMM yyyy","MMMM yyyy"],L.call(n,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1,r]),n.DateTimeFormat.defaultDatePattern=n.DateTimeFormat.shortDatePattern+" H:mm:ss",n.name=function(){return"en-US"},n.displayName="English (United States)",n.id=1033,n.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},n}return O(r,t),r}(g),g.register(F,_),w="JACulture",D=function(t){function r(){var r,n,e,i,o,u=t.call(this)||this;return u.instanceType=w,r={1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\u62fe","\u5104","\u9621","\u767e","\u62fe","\u842c","\u9621","\u767e","\u62fe",""],numbers:["\u3007","\u58f1","\u5f10","\u53c2","\u56db","\u4f0d","\u516d","\u4e03","\u516b","\u4e5d"]},3:{letters:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},n={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"},L.call(u,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",r,n]),e=["1","2","3","4","5","6","7","8","9","10","11","12",""],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",""],o=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"],L.call(u,"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"],e,e,"\u5348\u524d",!1,["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i,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",o,"ggge/mmmm/d\u65e5"]),u.DateTimeFormat.eras=!0,u.DateTimeFormat.defaultDatePattern=u.DateTimeFormat.shortDatePattern+" "+u.DateTimeFormat.longTimePattern,u.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'],u.name=function(){return"ja-JP"},u.id=1041,u.displayName="Japanese (Japan)",u.isJCKCulture=!0,u.predefinedFormats={Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\xa5-411]#,##0_);[Red]([$\xa5-411]#,##0)","[$\xa5-411]#,##0_);([$\xa5-411]#,##0)","[$\xa5-411]#,##0;[Red][$\xa5-411]#,##0","[$\xa5-411]#,##0;-[$\xa5-411]#,##0","[$\xa5-411]#,##0;[Red]-[$\xa5-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"\u6642"mm"\u5206";@','h"\u6642"mm"\u5206"ss"\u79d2";@'],Special:{"\u90f5\u4fbf\u756a\u53f7":"[<=999]000;[<=9999]000-00;000-0000","\u96fb\u8a71\u756a\u53f7\uff08\u6771\u4eac)":"[<=99999999]####-####;(00) ####-####","\u6b63\u8ca0\u8a18\u53f7 \uff08+ = \u25b3; - = \u25b2)":'"\u25b3" #,##0;"\u25b2" #,##0',"\u6f22\u6570\u5b57\uff08\u5341\u4e8c\u4e07\u4e09\u5343\u56db\u767e\uff09":"[DBNum1][$-411]General","\u5927\u5b57 (\u58f1\u62fe\u5f10\u842c\u53c2\u9621\u56db\u767e)":"[DBNum2][$-411]General","\u5168\u89d2 (\uff11\uff12\uff13\uff14\uff15)":"[DBNum3][$-411]0","\u5168\u89d2 \u6841\u533a\u5207\u308a\uff08\uff11\uff12,\uff13\uff14\uff15\uff09":"[DBNum3][$-411]#,##0"},shortcut:{Number:"0.00",Currency:"[$\xa5-411]#,##0.00",Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},u.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],u.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},u.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 G(t,r,I)}},u.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],u}return O(r,t),r}(g),g.register(w,D),H="ZHCulture",$=function(t){function r(){var r,n,e,i,o,a=t.call(this)||this;return a.instanceType=H,r={1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u25cb","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u4edf","\u4f70","\u62fe","\u4ebf","\u4edf","\u4f70","\u62fe","\u4e07","\u4edf","\u4f70","\u62fe",""],numbers:["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"]},3:{letters:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},n={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"},L.call(a,"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",r,n]),e=["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=["\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",""],o=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"],L.call(a,"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"],e,e,"\u4e0a\u5348",!1,["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],1,"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i,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",o]),a.DateTimeFormat.defaultDatePattern=a.DateTimeFormat.shortDatePattern+" "+a.DateTimeFormat.longTimePattern,a.name=function(){return"zh-cn"},a.id=2052,a.displayName="Chinese (China)",a.isJCKCulture=!0,a.localeCompare=function(t,r){var n=t.localeCompare(r,"zh");return n<0&&t>="\u4e00"&&r<"\u4e00"||n>0&&r>="\u4e00"&&t<"\u4e00"?-n:n},a.predefinedFormats={Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$\xa5-804]#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]#,##0","[$\xa5-804]#,##0;[$\xa5-804]-#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"\u5e74"m"\u6708"d"\u65e5";@','[DBNum1][$-804]yyyy"\u5e74"m"\u6708";@','[DBNum1][$-804]m"\u6708"d"\u65e5";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"\u65f6"mm"\u5206";@','h"\u65f6"mm"\u5206"ss"\u79d2";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2";@','[DBNum1][$-804]h"\u65f6"mm"\u5206";@','[DBNum1][$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@'],Special:{"\u90ae\u653f\u7f16\u7801":"000000","\u4e2d\u6587\u5c0f\u5199\u5b57\u6bcd":"[DBNum1][$-804]General","\u4e2d\u6587\u5927\u5199\u5b57\u6bcd":"[DBNum2][$-804]General"},shortcut:{Number:"0.00",Currency:"[$\xa5-804]#,##0.00",Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},a.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],a.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},a.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return G(t,r,I)}},a.normalizeDateTimeString=function(t){var r,n;return u.$T.qT("^([0-9]{1,2}|[0-9]{4})\u5e74[0-9]{1,2}\u6708$").test(t)?(r=t.split("\u5e74"))[1].replace("\u6708","")+"/1/"+r[0]:u.$T.qT("^[0-9]{1,2}\u6708[0-9]{1,2}\u65e5$").test(t)?(r=t.split("\u6708"))[0]+"/"+r[1].replace("\u65e5","")+"/"+m:u.$T.qT("^(\u4e0a\u5348|\u4e0b\u5348)?[0-9]{1,2}\u65f6[0-9]{1,2}\u5206([0-9]{1,2}\u79d2)?$").test(t)?((n=(n=t.replace("\u65f6",":").replace("\u5206",":").replace("\u79d2","")).endsWith(":")?n+"00":n).startsWith("\u4e0a\u5348")&&(n=n.replace("\u4e0a\u5348","")+" AM"),n.startsWith("\u4e0b\u5348")&&(n=n.replace("\u4e0b\u5348","")+" PM"),n):t.includes("\u4e0a\u5348")||t.includes("\u4e0b\u5348")?t.replace("\u4e0a\u5348","am").replace("\u4e0b\u5348","pm"):f},a}return O(r,t),r.prototype.mTe=function(){return[" ","\u3000"]},r}(g),g.register(H,$),N="KOCulture",x=function(t){function r(){var r,n,e,i,o=t.call(this)||this;return o.instanceType=N,r={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"]}},n={Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"},L.call(o,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,r,n]),e=["1","2","3","4","5","6","7","8","9","10","11","12",""],i=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""],L.call(o,"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"],e,e,"\uc624\uc804",!1,["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],1,"yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd h:mm:ss","yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd","h:mm:ss","M'\uc6d4' d'\uc77c'",i,i,"\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"]),o.DateTimeFormat.defaultDatePattern=o.DateTimeFormat.shortDatePattern+" "+o.DateTimeFormat.longTimePattern,o.name=function(){return"ko-kr"},o.id=1042,o.displayName="Korean (Korea)",o.isJCKCulture=!0,o.predefinedFormats={Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red][$\u20a9-412]#,##0","[$\u20a9-412]#,##0;-[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red]-[$\u20a9-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',"yyyy-mm-dd;@",'yyyy"\ub144" m"\uc6d4" d"\uc77c";@','yy"\u5e74" m"\u6708" d"\u65e5";@','yyyy"\ub144" m"\uc6d4";@','m"\uc6d4" d"\uc77c";@',"yy-m-d;@","yy-m-d h:mm;@",'m"\u6708"d"\u65e5";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"\uc2dc" mm"\ubd84";@','h"\uc2dc" mm"\ubd84" ss"\ucd08";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84" ss"\ucd08";@'],Special:{"\uc6b0\ud3b8 \ubc88\ud638":"000-000","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 4\uc790\ub9ac)":"[<=999999]####-####;(0##) ####-####","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 3\uc790\ub9ac)":"[<=9999999]###-####;(0##) ###-####","\uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638":"000000-0000000","\uc22b\uc790(\ud55c\uc790)":"[DBNum1][$-412]General","\uc22b\uc790(\ud55c\uc790-\uac16\uc740\uc790)":"[DBNum2][$-412]General","\uc22b\uc790(\ud55c\uae00)":"[DBNum4][$-412]General"},shortcut:{Number:"0.00",Currency:"[$\u20a9-412]#,##0.00",Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},o.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],o.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},o}return O(r,t),r}(g),g.register(N,x),k={invariant:new g,"en-us":new _,"ja-jp":new D,"zh-cn":new $,"ko-kr":new x},S={},C=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],P=["wmk1","wmk2"],A=function(){function t(){this.KPt=1,this.JPt={}}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.culture=function(r,n){if(0===arguments.length)return t.RGt;r&&(r=r.toLowerCase(),(t.RGt!==r||n)&&(t.RGt=r,this.KPt++,z(t.RGt,t.OGt.getCultureInfo())))},t.prototype.addCultureInfo=function(t,r,n){var e,o,u,a,s;if(r&&r instanceof g){if(e=r.NumberFormat&&r.NumberFormat.numberDecimalSeparator,o=r.NumberFormat.arrayListSeparator,u=r.NumberFormat.arrayGroupSeparator,e===r.NumberFormat.listSeparator||u===o)throw(a=new i.ResourceManager(i.SR)).getResource().Exp_Separator;k[t.toLowerCase()]=r}n&&"object"==typeof n&&(s=t.toLowerCase(),S[s]=y(!0,{},n),this.KPt++)},t.prototype.getCultureInfoDict=function(){return k},t.prototype.getCultureInfo=function(r){var n,e,i;if(0===arguments.length)return k[t.RGt];for(i in"string"==typeof r&&(r=r.toLowerCase()),e=f,n=k)if(i===r||n[i].id!==s&&n[i].id===r){e=n[i];break}return e},t.prototype.getLanguage=function(t){if("string"==typeof t){var r=t.toLowerCase();return S[r]}return f},t.prototype.getResources=function(t){var r,n=this.culture().toLowerCase();return t!==f&&t!==s||(t=n),"string"==typeof t&&(r=t.toLowerCase(),this.JPt[r])?this.BGt(this.JPt[r]):f},t.prototype.BGt=function(t){var r,n="PivotTables",e="ReportSheet",i="GanttSheet",o="DataChart",u="Sheets",a="CalcEngine",s="Functions",f="TableFunctions",c=y(!0,{},t);return c[n]&&this.LGt(c[n],P),c[e]&&this.LGt(c[e],P),c[i]&&this.LGt(c[i],P),c[o]&&this.LGt(c[o],P),c[u]&&this.LGt(c[u],C),(r=c[a])&&(c[s]=r.wmt,c[f]=r.d2t,delete r.wmt,delete r.d2t),c},t.prototype.LGt=function(t,r){var n,e,i;for(n=0,e=r;n<e.length;n++)delete t[i=e[n]]},t.prototype.FGt=function(t,r,n){var e,i,u,a,s=S[t.toLowerCase()];for(e in r)o.Uf.OS(C,e)||(u=null!==(i=this.PGt(s,e,n))&&"string"==typeof i&&"string"==typeof r[e],a=null!==i&&"object"==typeof i&&!Array.isArray(i),(u||a)&&(r[e]=i));r.wmt&&s.Functions&&this.GGt(s.Functions,r.wmt),r.d2t&&s.TableFunctions&&y(!0,r.d2t,s.TableFunctions)},t.prototype.PGt=function(t,r,n){var e,i;if(t.hasOwnProperty(r))return t[r];if(n&&(e=t[n])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];for(i in t)if((e=t[i])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];return null},t.prototype.GGt=function(t,r){var n,e,i,o,u,a,s,f={};for(n in r)if(t.hasOwnProperty(n))for(a in e=r[n],i=t[n],o=e.parameters,u=i.parameters,e.description=i.description,o)u.hasOwnProperty(a)&&"string"==typeof(s=u[a])&&(o[a].name=s);return f},t.prototype.Fe=function(r){var n=this.getCultureInfo(r);return n||(n=k[t.RGt])||(n=new g),n},t.prototype.xat=function(t,r){var n=this.getCultureInfo(t)||this.getCultureInfo("en-US"),e=n.DateTimeFormat,i=e.filterDialogDateFormatter;return(r.indexOf("g")>=0||r.indexOf("e")>=0)&&(i=e.EraFilterDialogDateFormatter||i),i},t.RGt="en-us",t}(),r.CultureManager=A.instance()},"./src/common/users/users.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/common/users/users.ts"),r)},"./src/common/users/users.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Error_InvalidRemoteConfigurationForUserFetching=r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=r.Error_FailedToFetchUsers=r.Error_RemoteConfigurationForUserFetchingNotProvided=r.GUEST_USER=void 0,r.GUEST_USER="Guest",r.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",r.Error_FailedToFetchUsers="Failed to fetch users: ",r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",r.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},"./src/common/users/users.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l=this&&this.pJr||function(t,r,n,e){function i(t){return t instanceof n?t:new n((function(r){r(t)}))}return new(n||(n=Promise))((function(n,o){function u(t){try{s(e.next(t))}catch(t){o(t)}}function a(t){try{s(e.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(u,a)}s((e=e.apply(t,r||[])).next())}))},v=this&&this.gJr||function(t,r){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},e,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(n=0)),n;)try{if(e=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=r.call(t,n)}catch(t){a=[6,t],i=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.UserManager=r.Events=void 0,e=n("./src/common/users/users.res.en.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/uuid-helper.ts"),u=n("./src/common/util/types.ts"),a=n("./src/common/util/arrayhelper.ts"),u.lt.Dh(i.SR.en,e),s=new i.ResourceManager(i.SR),f=s.getResource.bind(s),c=u.lt.ht,y=a.Uf.Gf,m=u.lt.tv,h=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"],M=function(){function t(){}return t.CurrentUserChanged="CurrentUserChanged",t}(),r.Events=M,d=function(){function t(t){var r=o.UUIDGenerator.secureUpperCaseUUID(),n={id:r,name:"",color:"#26A69A"};Object.defineProperty(n,"name",{get:function(){return f().GUEST_USER},enumerable:!0,configurable:!0}),this.Ewo=r,this.upo=[n],this.hpo=n.id,this.options=t,this.cpo=0,this.aT=new Map([[M.CurrentUserChanged,[]]])}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.configure=function(t){this.options=t},t.prototype.Hfo=function(t){var r,n=this.upo;for(r=0;r<n.length;r++)if(n[r].id===t)return m(n[r])},t.prototype.get=function(t){var r;return l(this,void 0,void 0,(function(){var n;return v(this,(function(e){switch(e.label){case 0:return(null===(r=this.options)||void 0===r?void 0:r.get)?t===this.Ewo?[2,this.Hfo(t)]:[4,this.options.get(t)]:[3,2];case 1:return(n=e.sent())&&this.ZP(n),[2,n];case 2:return[2,this.Hfo(t)]}}))}))},t.prototype.Tdo=function(t){t||(t=o.UUIDGenerator.secureUpperCaseUUID());var r=this.Hfo(t);return r||(r={id:t,name:f().GUEST_USER}),this.ZP(r),r},t.prototype.fpo=function(t){var r=this;Array.isArray(t)&&t.forEach((function(t){t&&!t.color&&(t.color=r.lpo(t.id))}))},t.prototype.dvo=function(t){var r;return l(this,void 0,void 0,(function(){var n,e;return v(this,(function(i){switch(i.label){case 0:return(null===(r=(n=this).options)||void 0===r?void 0:r.search)?[4,n.options.search(t)]:[3,2];case 1:return e=i.sent(),n.fpo(e),[2,e];case 2:return[2,[]]}}))}))},t.prototype.bind=function(t,r){this.aT.has(t)||this.aT.set(t,[]);var n=this.aT.get(t);Array.isArray(n)&&n.push(r)},t.prototype.current=function(t){var r,n=this;return c(t)||(r=n.hpo)!==t&&(n.hpo=t,Promise.all([n.get(r),n.get(t)]).then((function(e){var i=e[0],o=e[1];r===n.Ewo&&(n.upo=n.upo.filter((function(t){return t.id!==n.Ewo})),delete n.Ewo),n.dpo(i,o,r,t)})).catch((function(e){n.dpo(void 0,void 0,r,t)}))),n.hpo},t.prototype.dpo=function(t,r,n,e){var i=this;t||(t=i.Hfo(n)),r||(r=i.Hfo(e)),i.ki(M.CurrentUserChanged,{oldCurrentUser:t,newCurrentUser:r})},t.prototype.Ufo=function(){return y(this.upo)},t.prototype.unbind=function(t,r){if(this.aT.has(t)){var n=this.aT.get(t);if(!Array.isArray(n))return;r?n.splice(n.indexOf(r),1):n.splice(0)}},t.prototype.ki=function(t,r){if(this.aT.has(t)){var n=this.aT.get(t);if(!Array.isArray(n))return;n.forEach((function(n){n(t,r)}))}},t.prototype.xji=function(t){var r;t&&(this.fpo(t),this.upo=t||[])},t.prototype.Np=function(){return y(this.upo)},t.prototype.vpo=function(){var t,r=this.cpo,n=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:h.length;return this.cpo=(r+1)%n,r},t.prototype.ago=function(t){var r,n,e=0;if(!t||0===t.length)return e;for(r=0;r<t.length;r++)e=(e<<5)-e+(n=t.charCodeAt(r)),e&=e;return Math.abs(e)},t.prototype.ugo=function(t){var r,n=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)?this.options.colorScheme.length:h.length,e=this.ago(t);return e%n},t.prototype.lpo=function(t){var r,n,e,i=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)||h;return t?i[n=this.ugo(t)]:i[e=this.vpo()]},t.prototype.ZP=function(t){var r,n=this.upo;for(r=0;r<n.length;r++)if(n[r].id===t.id)return n[r]=t,void(t.color||(t.color=this.lpo(t.id)));t.color||(t.color=this.lpo(t.id)),n.push(t)},t.prototype.ZX=function(t,r){var n={id:t||o.UUIDGenerator.secureUpperCaseUUID(),name:r||f().GUEST_USER};return this.ZP(n),n},t.prototype.VP=function(t){this.upo=this.upo.filter((function(r){return r.id!==t}))},t.prototype.L0=function(){this.aT.clear(),this.upo=[],this.hpo=""},t}(),r.UserManager=d.instance()},"./src/common/util/arrayhelper.ts":function(t,r){var n,e,i;function o(t,r){var e,i;for(e in r)r.hasOwnProperty(e)&&(i=r[e],Array.isArray(i)?(t[e]=[],o(t[e],r[e])):i!==n&&"object"==typeof i?(t[e]={},o(t[e],r[e])):t[e]=r[e])}Object.defineProperty(r,"__esModule",{value:!0}),r.Uf=void 0,n=null,e=void 0,i=function(){function t(){}return t.Eit=function(t,r,n){t.splice(r,0,n)},t.ZP=function(t,r){t.push(r)},t.OS=function(t,r){return t.indexOf(r)>-1},t.VP=function(t,r){var n=t.indexOf(r);n>-1&&t.splice(n,1)},t.UGt=function(t,r){return t.slice(0,r).concat(t.slice(r+1))},t.hD=function(t,r,n){return t.indexOf(r,n)},t.d5=function(t,r,e){if(!(r<0))for(var i=0;i<e&&r+i<t.length;i++)t[r+i]=n},t.N2t=function(t,r){var i,o;for(r<0&&(r=-1),o=i=r+1;o<t.length;o++)if(t[o]!==e&&t[o]!==n)return o;return-1},t.tR=function(t){return t&&t.length},t.Gf=function(t){var r=[];return o(r,t),r},t}(),r.Uf=i},"./src/common/util/colorhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m;function h(t,r,n){return n<0&&(n+=240),n>240&&(n-=240),n<40?t+((r-t)*n+20)/40:n<120?r:n<160?t+((r-t)*(160-n)+20)/40:t}function M(t,r,n){var e,i,o,u,a;return 0===n?e=i=o=s(255*r/240+"",10):(u=void 0,a=void 0,e=d(u=2*r-(a=r<=120?s((r*(240+n)+120)/240+""):r+n-s((r*n+120)/240+"")),a,t+80),i=d(u,a,t),o=d(u,a,t-80)),{a:255,r:e,g:i,b:o}}function d(t,r,n){return o(s((255*h(t,r,n)+120)/240+""),255)}function l(t){var r,n,e,i,o,u,a,s,c,m;return/^#[A-Fa-f0-9]+$/.test(t)?(r=t.replace(/^#/,""),e="",i="",6===(n=r.length)||8===n?(e=r.substr(0,6),8===n&&(i=r.substr(6,2))):3!==n&&4!==n||(e=(o=r.split(3===n?/(.)/:/(..)/)).filter(Boolean).map((function(t){return parseInt(3===n?t+t:t,16)})).map((function(t){return t.toString(16).padStart(2,"0")})).join(""),4===n&&(i=o[3]+o[3])),[u=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),c=i?parseInt(i,16):255]):t.toLowerCase()in f?f[t.toLowerCase()]:null!==(m=y.exec(t))?(c=void 0===m[4]?255:255*+m[4],[m[1],m[2],m[3],c]):null}Object.defineProperty(r,"__esModule",{value:!0}),r.ft=void 0,e=n("./src/common/util/numberhelper.ts"),i=e.st.VGt,o=Math.min,u=Math.max,a=Math.abs,s=parseInt,f={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},c=function(){function t(t){var r,n,e,i,a=this,f=t.r,c=t.g,y=t.b,m=u(u(f,c),y),h=o(o(f,c),y),M=m+h;a.HGt=s((240*M+255)/510+"",10),0===(r=m-h)?(a.zGt=0,a.wv=160):(a.HGt<=120?a.zGt=s((240*r+M/2)/M+"",10):a.zGt=s((240*r+(510-M)/2)/(510-M)+"",10),n=(40*(m-f)+r/2)/r,e=(40*(m-c)+r/2)/r,i=(40*(m-y)+r/2)/r,a.wv=s(f===m?i-e+"":c===m?80+n-i+"":160+e-n+"",10),a.wv<0&&(a.wv+=240),a.wv>240&&(a.wv-=240))}return t.prototype.YGt=function(t){var r=this,n=r.HGt,e=r.ZGt(r.HGt,500,!0);return M(r.wv,n+(e-n)*t,r.zGt)},t.prototype.ZGt=function(t,r,n){return 0===r?t:n?r>0?(t*(1e3-r)+241*r)/1e3:t*(r+1e3)/1e3:((t+=240*r/1e3)<0&&(t=0),t>240&&(t=240),t)},t}(),y=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,m=function(){function t(){}return t.j=function(t){var r=t.a,n=t.r,e=t.g,o=t.b;return 3===arguments.length&&(r=255,n=arguments[0],e=arguments[1],o=arguments[2]),4===arguments.length&&(r=arguments[0],n=arguments[1],e=arguments[2],o=arguments[3]),255===r?"#"+i(n,!0,2)+i(e,!0,2)+i(o,!0,2):"rgba("+n+","+e+","+o+","+r+")"},t.Tv=function(t,r){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(r):t.a===r.a&&t.r===r.r&&t.g===r.g&&t.b===r.b},t.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},t.Km=function(t,r){var n,e=255-a(t.r-r.r),i=255-a(t.g-r.g),o=255-a(t.b-r.b),u=a(t.a-r.a);return!!((n=((e/=255)+(i/=255)+(o/=255))/3)>=.9&&u<=.05)},t.Uv=function(r){var n=255^r.r,e=255^r.g,i=255^r.b;return t.j(r.a,n,e,i)},t.WGt=function(r){var e,i,o,u;return"object"!=typeof document?l(r):((e=t.xf)||(i=document.createElement("canvas"))&&i.getContext&&(e=t.xf=i.getContext("2d",{willReadFrequently:!0})),e||((o=n("canvas"))&&o.createCanvas&&(i=o.createCanvas(2,2),e=t.xf=i.getContext("2d")),e)?(e.clearRect(1,1,1,1),e.fillStyle=r,e.fillRect(1,1,1,1),(u=e.getImageData(1,1,1,1))?u.data:null):l(r))},t._=function(r){var n,e,i,o,u;return r instanceof t||null!==r&&"object"==typeof r?r:(n=0,e=0,i=0,o=0,r&&(u=t.WGt(r))&&(e=u[0],i=u[1],o=u[2],n=u[3]),{a:n,r:e,g:i,b:o})},t.Cv=function(r,n){var e,i;return 0===n?r:(e=new c(r),i=s((n>0?(240-e.HGt)*n:e.HGt*n)+"",10),t.QGt(e.wv,e.HGt+i,e.zGt))},t.YGt=function(r,n){var e=t._(r),i=new c(e),o=i.YGt(n);return t.j(o)},t.Dz=h,t.QGt=M,t}(),r.ft=m},"./src/common/util/common.ts":function(t,r,n){var e,i,o,u,a;function s(t,r,n,e){var i,o,u,a,s;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=void 0,u=n;u<r;u++)void 0!==t[u]&&i.push(u);for(o=i.length,u=0;u<o;u++)s=t[a=i[o-u-1]],t[a]=null,t[Math.floor(a)+e]=s}}function f(t,r,n,e){var i,o,u,a,s,f,c,y,m;if(t&&0<=r){for(i=[],o=void 0,u=void 0,s=0,f=a=Array.from(t.keys());s<f.length;s++)(c=f[s])>=r&&i.push(c);for(i.sort((function(t,r){return t-r})),o=i.length,u=0;u<o;u++)c=i[o-u-1],y=t.get(c),t.delete(c),m=c+n,t.set(m,y),e&&e(y,m)}}function c(t,r,n,e){var i,o,u,a,s,f;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=n+e,a=void 0,a=n;a<r;a++)void 0!==t[a]&&(n<=a&&a<u?t[a]=null:a>=u&&i.push(a));for(o=i.length,a=0;a<o;a++)f=t[s=i[a]],t[s]=null,t[Math.floor(s)-e]=f}}function y(t,r,n,e){var i,o,u,a,s,f,c,y,m,h;if(t&&0<=r){for(i=[],o=void 0,u=r+n,a=void 0,f=0,c=s=Array.from(t.keys());f<c.length;f++)y=c[f],t.has(y)&&(r<=y&&y<u?(e&&e(t.get(y),-1),t.delete(y)):y>=u&&i.push(y));for(i.sort((function(t,r){return t-r})),o=i.length,a=0;a<o;a++)y=i[a],m=t.get(y),t.delete(y),h=y-n,t.set(h,m),e&&e(m,h)}}function m(t,r){return t.hasOwnProperty(r)}function h(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.Cho=r.X8=r.who=r.J8=r.ResourceManager=r.SR=void 0,e=n("./src/common/culture/cultureInfo.ts"),i=n("./src/common/util/util.res.en.ts"),o=n("./src/common/util/types.ts"),r.SR={en:i},u=o.lt.Dh,a=function(){function t(t,r){this.res=t,this.KGt=r,this.JPt=e.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,r),this.KPt=0}return t.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},t.prototype.XGt=function(t,r){var n,i;r&&(i=(n=e.CultureManager.culture()).toLowerCase(),this.JPt[i]=this.JPt[i]||{},this.JPt[i][r]=t,e.CultureManager.JPt=this.JPt)},t.prototype.JGt=function(t,r){var n,i,o,a=e.CultureManager.culture();if(t&&a){if(n=e.CultureManager.KPt,this.KPt===n&&!r)return;return this.KPt=n,e.CultureManager.getLanguage(a)?(i=u(!0,{},t.en),e.CultureManager.FGt(a,i,this.KGt),i):(o=a.substr(0,2).toLowerCase(),t.hasOwnProperty(o)?t[o]:t.en)}return{}},t}(),r.ResourceManager=a,r.J8=s,r.who=f,r.X8=c,r.Cho=y,r.kh=m,r.ut=h},"./src/common/util/datetimehelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g,p,F;function _(t,r){return-1!==t.indexOf(r)&&t.indexOf(r)===t.lastIndexOf(r)}function w(t,r){return new Date(t,r+1,0).getDate()}function D(t,r){var n,e=Number(r),i=(new Date).getFullYear();return!(t>12||0===t||3===r.length||4===r.length&&e<1900)&&(e>(n=w(i,t-1))?(e<30?"20":"19")+e+"/"+t+"/1":i+"/"+t+"/"+e)}function H(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 $(t,n,e,i){var o,a,s,f,y,m,h,v,b,g,p,F,_,w,D,x,k,S,C,P,A,O,T,E,j=e.DateTimeFormat,R=j.Calendar.convert;if(!n||!n.length)return e&&e.name.length?R?$(t,j.fullDateTimePattern,e):t.toLocaleString():t.toString();function I(){return y||m||(y=h.test(n),m=M),y}function B(t,r){return g?g[r]:H(t,r)}for(o=j.eras,s="",h=/([^d]|^)(d|dd)([^d]|$)/g,v=0,b=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g,!(a="s"===n)&&R&&(g=R.fromGregorian(t)),p=-2,F=-2,_={y4:""},w=0;D=b.lastIndex,x=b.exec(n),k=n.slice(D,x?x.index:n.length),_.y4="",v+=N(k,_),s+=_.y4,x;w++)if(v%2!=1)switch(S=B(t,0),C=t.getDay(),P=t.getHours(),A=t.getMinutes(),O=t.getSeconds(),T=t.getMilliseconds(),E=t.getTimezoneOffset(),x[0]){case"dddd":s+=j.dayNames[C];break;case"ddd":s+=j.abbreviatedDayNames[C];break;case"dd":y=M,s+=c(B(t,2),2);break;case"d":y=M,s+=B(t,2);break;case"MMMM":s+=j.monthGenitiveNames&&I()?j.monthGenitiveNames[B(t,1)]:j.monthNames[B(t,1)];break;case"MMM":s+=j.abbreviatedMonthGenitiveNames&&I()?j.abbreviatedMonthGenitiveNames[B(t,1)]:j.abbreviatedMonthNames[B(t,1)];break;case"MM":s+=c(B(t,1)+1,2);break;case"M":s+=B(t,1)+1;break;case"yyyy":case"yyy":s+=p>=0?u.XPt.DGt("ee",t,i):c(g?g[0]:S,4);break;case"yy":s+=p>=0?u.XPt.DGt("ee",t,i):c((g?g[0]:S)%100,2);break;case"y":s+=p>=0?u.XPt.DGt("e",t,i):((g?g[0]:S)%100).toString();break;case"hh":0===(f=P%12)&&(f=12),s+=c(f,2);break;case"h":0===(f=P%12)&&(f=12),s+=f;break;case"HH":s+=c(P,2);break;case"H":s+=P.toString();break;case"mm":s+=c(A,2);break;case"m":s+=A.toString();break;case"ss":s+=c(O,2);break;case"s":s+=O.toString();break;case"tt":s+=P<12?j.amDesignator:j.pmDesignator;break;case"t":s+=(P<12?j.amDesignator:j.pmDesignator).charAt(0);break;case"f":case"0":s+=c(T,3).charAt(0);break;case"ff":case"00":s+=c(T,3).substr(0,2);break;case"fff":case"000":s+=c(T,3);break;case"z":s+=((f=E/60)<=0?"+":"-")+d(l(f));break;case"zz":s+=((f=E/60)<=0?"+":"-")+c(d(l(f)),2);break;case"zzz":s+=((f=E/60)<=0?"+":"-")+c(d(l(f)),2)+":"+c(l(E%60),2);break;case"g":case"gg":case"ggg":if(!o)break;if(p===w-1){p=w;break}s+=u.XPt.DGt(x[0],t,i),p=w;break;case"e":case"ee":if(!o){s+=c(g?g[0]:S,4);break}if(F===w-1){F=w;break}s+=u.XPt.DGt(x[0],t,i),F=w;break;case"/":s+=j.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(x[0]))throw new Error((0,r.getSR)().Exp_InvalidDateFormat);s+=x[0]}else s+=x[0];return s.toString()}function N(t,r){var n,e,i,o=0,u=h;for(n=0,e=t.length;n<e;n++)switch(i=t.charAt(n)){case'"':u?r.y4+="'":o++,u=h;break;case"\\":u&&(r.y4+="\\"),u=!u;break;default:r.y4+=i,u=h}return o}function x(t,r){var n,e=new Date,i=t.DateTimeFormat.eras;return i&&r<100&&(r+=(n=u.XPt.TGt(e).IGt)-n%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(r-=100),r}function k(){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 S(t,n,e){var i,u,a,s,f,c,m,h,M,d,l;if(t.qGt){if(t.qGt[n])return t.qGt[n]}else t.qGt={};for(i=(i=(i=n).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),u="^",a={y4:""},s=[],f=0,c=0,m=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;(h=m.exec(i))!==y;)if(a.y4="",M=i.slice(f,h.index),f=m.lastIndex,c+=N(M,a),u+=a.y4,c%2!=1){switch(h[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":u+="(\\D+)";break;case"tt":case"t":u+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":u+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":u+=e?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":u+="(\\d{2}|\\d{4})";break;case"fff":case"000":u+="(\\d{3})";break;case"ff":case"00":u+="(\\d{2})";break;case"f":case"0":u+="(\\d)";break;case"zzz":u+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":u+="([+-]?\\d\\d?)";break;case"/":u+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,r.getSR)().Exp_InvalidDateFormat)}o.Uf.ZP(s,h[0])}else u+=h[0];return a.y4="",N(i.slice(f),a),u+=a.y4,l={$Gt:d=(u+="$").toString().replace(/\s+/g,"\\s+"),QMt:s,tUt:new RegExp(d)},t.qGt[n]=l,l}function C(t){var r=t.getTimezoneOffset();return-485===r&&(r=-485-43/60),-321===r&&(r=-321-10/60),-507===r&&(r=-507-52/60),-402===r&&(r=-402-4/60),r}Object.defineProperty(r,"__esModule",{value:!0}),r.ct=r.getSR=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/stringhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/culture/cultureInfo.ts"),a=n("./src/common/util/types.ts"),s=n("./src/common/util/regexhelper.ts"),f=a.lt.ht,c=i.zf.B9t,y=null,m=parseInt,h=!1,M=!0,d=Math.floor,l=Math.abs,v=new e.ResourceManager(e.SR,"Common"),r.getSR=v.getResource.bind(v),b={},g="January|February|March|April|May|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec",p={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12},F=function(){function t(){}return t.L9t=function(t,r,n,e){return n||(n=u.CultureManager.Fe()),$(t,r,n,e)},t.Pe=function(t,r,n){return $(t,r,n||u.CultureManager.Fe())},t.Mjt=function(r,n,e){var i,o,u,a,s,f=h;for((s=e).slice(1).forEach((function(t){t&&(f=!0)})),f||(s=s.concat(n.qPt())),o=s.length,i=1;i<o;i++)if((a=s[i])&&(f=M,u=t.nUt(r,a,n)))return u;return y},t.yU=function(r,n,e){var i,o;return n||e||void 0===(o=b[r])?(i=n?[r,n]:[r],o=t.Mjt(r,e||u.CultureManager.Fe(),i),n||e||(b[r]=o),o?new Date(o):o):o?new Date(o):o},t.Z6t=function(r,n){return t.Mjt(r,u.CultureManager.Fe("invariant"),[r,n])},t.nUt=function(t,r,n){var e,o,a,s,f,c,M,d,l,v,b,g,p,F,_,w,D,H,$,N,k,C,P,A,O,T,E,j,R,I;if(t=t.trim(),(s=(a=S(e=n.DateTimeFormat,r,o=1041===n.id)).tUt.exec(t))===y)return y;for(f=a.QMt,c=y,M=y,d=y,l=y,v=y,b=0,p=0,F=0,_=0,w=y,D=h,H=h,$=0,N=f.length;$<N;$++)if(k=s[$+1])switch(f[$]){case"dd":case"d":if((l=m(k,10))<1||l>31)return y;break;case"MMMM":if((d=n.tGt(k))<0||d>11)return y;break;case"MMM":if((d=n.iGt(k))<0||d>11)return y;break;case"M":case"MM":case"%M":if((d=m(k,10)-1)<0||d>11)return y;break;case"e":case"ee":if((M=o&&"\u5143"===k?1:x(n,m(k,10)))<0||M>9999)return y;break;case"y":case"yy":case"yyy":case"yyyy":if((M=m(k,10))<0||M>9999)return y;break;case"h":case"hh":case"H":case"HH":if((b=m(k,10))<0)return y;break;case"m":case"mm":if((p=m(k,10))<0||p>59)return y;break;case"s":case"ss":if((F=m(k,10))<0||F>59)return y;break;case"tt":case"t":if(D=(C=k.toUpperCase())===e.pmDesignator.toUpperCase(),H=C===e.amDesignator.toUpperCase(),!D&&!H)return y;break;case"f":case"0":if((_=100*m(k,10))<0||_>999)return y;break;case"ff":case"00":if((_=10*m(k,10))<0||_>999)return y;break;case"fff":case"000":if((_=m(k,10))<0||_>999)return y;break;case"dddd":if((v=n.aGt(k))<0||v>6)return y;break;case"ddd":if((v=n.sGt(k))<0||v>6)return y;break;case"zzz":if(2!==(P=k.split(/:/)).length)return y;if((g=m(P[0],10))<-12||g>13)return y;if((A=m(P[1],10))<0||A>59)return y;w=60*g+(i.zf.fJ(k,"-")?-A:A);break;case"z":case"zz":if((g=m(k,10))<-12||g>13)return y;w=60*g;break;case"g":case"gg":case"ggg":if(!(O=k)||!e.eras)return y;if((c=u.XPt.kGt(f[$],O))<0)return y}if(E=(T=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(R=e.Calendar.convert)&&(j=R.fromGregorian(E)),R||(j=[E.getFullYear(),E.getMonth(),E.getDate()]),M===y?M=j[0]:M<100&&(e.eras&&c!==y?M=u.XPt.NGt(c||0,M):M+=M>=30?1900:2e3),d===y&&(d=j[1]),l===y&&(l=T?j[2]:1),R){if((E=R.toGregorian(M,d,l))===y)return y}else{if(E.setFullYear(M,d,l),E.getDate()!==l)return y;if(v!==y&&E.getDay()!==v)return y}return D&&b<12?b+=12:H&&12===b&&(b=0),E.setHours(b,p,F,_),w!==y&&(I=E.getMinutes()-(w+E.getTimezoneOffset()),E.setHours(E.getHours()+I/60,I%60)),E},t.Y0=function(t){var r,n=t-25569,e=new Date(864e5*n),i=C(e),o=Math.round(864e5*(t-25569+i/1440)),u=new Date(o),a=i>=0?1:-1,s=new Date(o+36e5*a),f=C(s);if(l(i-f)>=60)if(r=new Date(o+60*(f-i)*1e3),i>f){if(-1===a||f===C(u))return r}else if(i<f&&(1===a||f===C(u)))return r;return u},t.dJ=function(r){if("/OADate("===r.substr(0,8)){var n=parseFloat(r.substr(8,r.length-10));return t.Y0(n)}},t.Q0=function(r){return"/OADate("+t.o0(r)+")/"},t.o0=function(t){if(f(t))return 0;if("number"!=typeof t&&"string"!=typeof t||(t=new Date(t)),t instanceof Date){var r=C(t);return(1440*t.getTime()+3181192704e6-864e5*r)/124416e6}return 0},t.eaa=function(r){var n,e,i,o,a,f,c,m,h,M,d,l,v,b,F,w,H,$,N,x;if(s.$T.qT("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})?$").test(r))return n=new Date(r),isNaN(n.valueOf())?y:n;if(e=r,r=r.trim(),o=(i=u.CultureManager.Fe())&&i.DateTimeFormat&&i.DateTimeFormat.shortDatePattern,(a=i&&i.normalizeDateTimeString&&i.normalizeDateTimeString(r))&&(r=a),r=r.replace(s.$T.qT("[ ]*([/\\-: ])[ ]*"),"$1"),o&&o.indexOf("d")<o.indexOf("M"))return t.yU(r);if(f=(new Date).getFullYear(),c=void 0,m=void 0,r.indexOf(":")>0){if(_(r,":")&&s.$T.qT("([0-2]?[0-9]):[0-5]?[0-9]\\.[0-9]*").test(r)&&(r=r.replace(s.$T.qT("([0-2]?[0-9]):"),"00:$1:")),h=s.$T.OJ("^(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)|(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)$"),!(M=r.match(h))||1!==M.length)return y;if(c=M[0],s.$T.OJ("\\.\\s+[AP]M").test(c))return y;if(c.endsWith(".")&&(c+="0"),0===(r=r.replace(h,"")).length)m="1899/12/30 "+c;else{if(" "!==r[0]&&" "!==r[r.length-1])return y;r=r.trim()}}if(!m){if(d=!0,s.$T.qT("^[0-9]{1,2}[-/]([0-9]{4}|0)$").test(r))m=r.replace(/[-/]/,"/1/");else if(s.$T.OJ("^(((".concat(g,")[\\s-/]?[0-9]{4}))$")).test(r))m="1"+r.replace(/[-/]/,"");else if(s.$T.OJ("^(([0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}))$").test(r)){if(l=r.split(/(\/|\-)/),!(F=D(v=Number(l[0]),b=l[2])))return y;m=F}else if(s.$T.OJ("^((".concat(g,")[/-\\s]?[0-9]{1,2})$")).test(r)){if(w=r.match(s.$T.OJ("^(".concat(g,")")))[0],!(F=D(v=p[w.substring(0,3).toUpperCase()],b=r.match(s.$T.OJ("\\d+"))[0])))return y;m=F}else if(s.$T.OJ("^([0-9]{1,2}[/-\\s]?(".concat(g,"))$")).test(r))d=!1,m=r.replace(/[-/\s]/,"")+f;else if(s.$T.OJ("^(([0-9]{4}/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}/[0-9]{4})|([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}-[0-9]{1,2}-[0-9]{4})|([0-9]{1,2}-(".concat(g,")-[0-9]{4})|([0-9]{1,2}/(").concat(g,")/[0-9]{4})|([0-9]{1,2}\\s+(").concat(g,")\\s+[0-9]{4}))$")).test(r))m=r;else if(s.$T.OJ("^(((0?[1-9]|10|11|12)-[0-9]{1,2}-[0-9]{1,2})|((0?[1-9]|10|11|12)/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/(".concat(g,")/[0-9]{1,2})|([0-9]{1,2}-(").concat(g,")-[0-9]{1,2})|([0-9]{1,2}\\s+(").concat(g,")\\s+[0-9]{1,2}))$")).test(r))$=+(H=r.split(/[-/\s]/))[2],H[2]=""+($<30?$+2e3:$+1900),m=H.join("/");else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]))$")).test(r))N=r.length,m=r.substr(0,N-1)+"200"+r[N-1];else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]{2}))$")).test(r))N=r.length,$=+r.substr(N-2),m=r.substr(0,N-2)+($<30?20:19)+$;else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]{4}))$")).test(r))m=r;else if(s.$T.OJ("^(".concat(g,"),?\\s*[0-9]{1,2},\\s+[0-9]{4}$")).test(r))m=r;else{if(!s.$T.OJ("^(".concat(g,"),?\\s*[0-9]{1,2},\\s+[0-9]{1,2}$")).test(r))return y;$=+r.match(/\d+$/)[0],m=r.replace(/\d+$/,""+($<30?2e3+$:1900+$))}if(m=m+" "+(c||"00:00:00"),d&&" "===e[0])return y}return x=new Date(m),isNaN(x.valueOf())?y:x},t._DT=function(n){var e,i=y,o=M;if(f(n)?i=t.Y0(0):n instanceof Date?i=new Date(n.valueOf()):"string"==typeof n?((e=t.yU(n))||(isNaN(n)?(e=t.eaa(n))||(o=h):(e=t.Y0(parseFloat(n)))||(o=h)),i=e):"number"==typeof n?i=t.Y0(n):o=h,o)return i;throw(0,r.getSR)().Exp_InvalidCast},t.u6t=function(r){return!t.eaa(r)},t.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},t}(),r.ct=F},"./src/common/util/functionhelper.ts":function(t,r,n){var e,i,o,u;function a(t){return t}function s(t,r,n,a,s,f,c,y,m,h,M){var d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O,T,E,j,R,I=n[o],B=n[u],G=r[o],L=r[u],z=a[o],K=a[u],J=1===B,U=1===L;if(G===I&&L===B){for(C=0,P=0,A=0,O=0,F=I*B,d=0;d<I;d++)for(l=0;l<B;l++){if(b=f(n[d][l]),g=f(r[d][l]),t&&(i(b)||i(g)))return m;C+=b,P+=b*b,A+=g=h(g),O+=b*g}for(T=F*O-C*A,_=s?(A*P-C*O)/(F*P-C*C):0,((E=(p=s?T/(F*P-C*C):O/P).toString()).indexOf("000000000000")>1||E.indexOf("999999999999")>1)&&(p=e.st.E8(p,12),_=e.st.E8(_,12)),w=[],d=0;d<z;d++)for(w[d]=[],l=0;l<K;l++){if(b=f(a[d][l]),t&&i(b))return m;w[d][l]=0===T?r[0][0]:M(e.st.Jme(p*b,_))}return c?new c(w):w}if(U&&G===I||1===G&&L===B){for(b=[],g=[],k=B+1,S=B+2,d=0;d<I;d++){if(_=f(H=U?r[d][0]:r[0][d]),t&&i(_))return m;g[d]=J?h(_):_}for(d=0;d<I;d++)for(b[d]=[],l=0;l<B;l++){if(_=f(n[d][l]),t&&i(_))return m;b[d][l]=_}for(j=[],p=0;p<k;p++)for(j[p]=[],F=0;F<S;F++)j[p][F]=0;for(v=0;v<I;v++)for(j[0][k]+=g[v],d=0;d<B;d++)for(H=d+1,j[0][H]+=b[v][d],j[H][0]=j[0][H],j[H][k]+=b[v][d]*g[v],l=d;l<B;l++)j[N=l+1][H]+=b[v][d]*b[v][l],j[H][N]=j[N][H];for(j[0][0]=I,D=R=s?0:1;D<k;D++){if(t){if(0===j[D][D]){for(x=!1,l=D+1;!x&&l<k;l++)if(0!==j[l][D]){for(v=0;v<S;v++)N=j[D][v],j[D][v]=j[l][v],j[l][v]=N;x=!0}if(!x)return y}}else{for(d=D;d<k&&0===j[d][D];)d++;if(d>=k)return y;for($=R;$<S;$++)H=j[D][$],j[D][$]=j[d][$],j[d][$]=H}for(H=1/j[D][D],$=R;$<S;$++)j[D][$]*=H;for(d=R;d<k;d++)if(d!==D)for(H=-j[d][D],$=0;$<S;$++)j[d][$]+=H*j[D][$];s||(j[0][k]=0)}for(w=[],U||(w[0]=[]),d=0;d<z;d++){for(U&&(w[d]=[]),H=j[0][k],l=0;l<B;l++){if(_=f(U?a[d][l]:a[l][d]),t&&i(_))return m;H+=j[l+1][k]*_}U?w[d][0]=M(H):w[0][d]=M(H)}return c?new c(w):w}return y}function f(t,r,n,e,i,o,u,f){return s(!0,t,r,n,e,i,o,f,u,a,a)}function c(t,r,n,e,i,f,c){var y,m;for(y=0;y<t[o];y++)for(m=0;m<t[u];m++)if(t[y][m]<=0)return f;return s(!1,t,r,n,e,a,i,c,null,Math.log,Math.exp)}Object.defineProperty(r,"__esModule",{value:!0}),r.iit=r.eit=void 0,e=n("./src/common/util/numberhelper.ts"),i=isNaN,o="rowCount",u="colCount",r.eit=f,r.iit=c},"./src/common/util/numberhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O;function T(t,r,n,e){return r&&0!==r.length&&"i"!==r?E(t,r,n.NumberFormat,e):n&&n.name.length>0?t.toLocaleString():t.toString()}function E(t,r,n,e){var i;return Y(t,I(r),n,e)}function j(t,r){for(var n,e,i,o,u,a,s,f,c=v(b(t)),y={iUt:1,rUt:0};c>=10&&Number.isFinite(c);)c/=10,y.iUt++;return e=(n=t.toString()).search(/e/gi),i=n.indexOf(r),-1!==e?(u=D(n,0,e),a=D(n,e+1),s=0,-1!==i&&(s=D(u,i+1).length),(o=s-(f=M(a)))<0&&(o=0),y.rUt=o):(o=0,-1!==i&&(o=D(n,i+1).length),y.rUt=o),y}function R(t){var r,n={oUt:t.charAt(0),aUt:0,tUt:0},e="";for(r=1;r<t.length;r++)if("+"===(e=t.charAt(r)))n.aUt=1;else{if("-"!==e){if("0"===e){n.tUt=t.length-r;break}throw new Error(N().Exp_InvalidExponentFormat)}n.aUt=-1}return n}function I(t){var r,n,e,i,o,u,a={uUt:y,sUt:y,rCt:d,fxt:0,d0:0,cUt:0,fUt:y},s="",f=d,c=d,m=d,h=d,M=d,v=d,b=y,g=[];for(n=0;n<t.length;n++){if(r=t.charAt(n),f)s+=r,'"'===r&&(g.push(s),s="",f=d);else if(c){if("E"===b||"e"===b){if(!(["+","-","0"].indexOf(r)>=0)){c=d,n--;continue}s+=r}else if("+"===b||"-"===b){if("0"!==r){c=d,n--;continue}s+=r}else if("0"===b){if("0"!==r){c=d,M||(M=l,a.fUt=R(s)),n--;continue}s+=r}}else if("*"!==b&&"_"!==b&&"\\"!==b||""===s)if("*"===r||"_"===r||"\\"===r)v=d,""!==s&&(g.push(s),s=""),s+=r;else if("'"===r)v=d,""!==s&&(g.push(s),s=""),g.push(r);else if('"'===r)v=d,f=l,""!==s&&(g.push(s),s=""),s+=r;else if(P.indexOf(r)>=0)v=l,P.indexOf(b)<0&&""!==s&&(g.push(s),s=""),s+=r;else if("."!==r||m)if("%"===r)v=d,a.d0++,""!==s&&(g.push(s),s=""),g.push(r);else if("\u2030"===r)v=d,a.cUt++,""!==s&&(g.push(s),s=""),g.push(r);else if(","===r)if(v){for(e=void 0,""!==s&&(g.push(s),s=""),i=l,o="",u=n+1;u<t.length;u++)if(e=t.charAt(u),'"'!==o)if("\\"!==o&&"_"!==o){if(P.indexOf(e)>=0){i=d;break}if("."===e||";"===e)break;o=e}else o="";else'"'===e&&(o="");i?a.fxt++:m||(e=t.charAt(n+1))&&P.indexOf(e)>=0&&(h=l)}else s+=r;else"E"===r||"e"===r?(v=d,c=l,""!==s&&(g.push(s),s=""),s+=r):(v=d,P.indexOf(b)>=0&&""!==s&&(g.push(s),s=""),s+=r);else""!==s&&(g.push(s),s=""),a.uUt=g,g=[],m=l,v=d;else s+=r,g.push(s),s="";b=r}return""!==s&&(c&&!M&&(a.fUt=R(s)),g.push(s)),h&&(a.rCt=l),m?a.sUt=g:a.uUt=g,a}function B(t,r,n,e){var i,o,u,a,s,f=r[0],c=1,y=0,m=d,h=t.length;for(i=0;i<h;i++)if("number"===(o=t[i].type)){for(u="",s=(a=t[i].value).length-1;s>=0;){if(!(1<=f&&f<=9||0===f&&c===r.length))throw new Error(N().Exp_InvalidNumberGroupSize);/\d/gi.test(a[s])?(m&&(u&&t.push({type:"number",value:u}),t.push({type:"groupSeparator",value:n}),u="",m=d),y++):y=0,u=a[s]+u,y===f&&f>0&&(m=l,y=0,c<r.length&&(f=r[c],c++)),s--}u&&t.push({type:o,value:u})}else"fillingChar"===o&&(e.infillIndex=t.length-h),t.push({type:o,value:t[i].value});return t.splice(0,h)}function G(t,r,n,e,i,o){var u,a,s,y,m=tt(t,-r);return isFinite(m)||(m=t),y=(u=(t=m).toString()).split(/e/i),u=y[0],s=y.length>1?h(y[1],10):0,y=u.split("."),u=y[0],a=y.length>1?y[1]:"",s>0?(u+=(a=c(a,s)).slice(0,s),a=D(a,s)):s<0&&(s=-s,a=(u=t<0?o+f(u.replace(o,""),s+1):f(u,s+1)).slice(-s,u.length)+a,u=u.slice(0,-s)),u+(a=r>0?i+(a=a.length>r?a.slice(0,r):c(a,r)):"")}function L(t,r,n,e){var i=t;return r>0&&(i=et(i*g(100,r),15)),n>0&&(i=et(i*g(1e3,n),15)),e>0&&(i=et(i/g(1e3,e),15)),i}function z(t){var r,n,e=y;if(t)for(e="",r=0;r<t.length;r++)n=t[r],/^(0|#|\?)+/g.test(n)&&(e+=n);return e}function K(t,r){return t===r||0!==t&&0!==r&&(b(t-r)<b(t)/O||(t=et(t,15),r=et(r,15),b(t-r)<b(t)/O))}function J(t,r){return K(t,-r)?0:t+r}function U(t,r,n){var e,i,o={value:t,exponentValue:0},u=j(t,"."),a=u.iUt,s=b(t),f=n?n.length:1;if(s>=1)a>f?(a-=f,o.value=t/g(10,a),o.exponentValue=a):o.exponentValue=0,-1===r.aUt&&(r.aUt=0);else if(s<1&&s>0){for(r.aUt=-1,e=g(10,f);10*s<e&&!K(10*s,e);)s*=10,o.exponentValue++;i=g(10,o.exponentValue),o.value*=i>F?0:i}return o}function V(t,r,n,e,i,o,u,a){var s,c,y,m,h,M,d,v,b,g,p,F,_=a.numberGroupSizes,w=a.numberGroupSeparator,H=a.negativeSign,$=a.percentSymbol,N=a.perMilleSymbol,x=e.fUt,k=D(r,0,1);for(k===H&&(r=D(r,1)),r=0===(s=1===r.length&&"0"===r?0:r.length)?"":r,c=0,y="",m=t.length-1;m>=0;m--)if(h="",M=t[m],/^(0|#|\?)+/g.test(M)){if(y!==n){for(d=M.length,v=s-c-1;v>=0&&d>0;v--)h=(b=r.charAt(v))+h,d--,c++;for(g=d-1;g>=0;g--)c++,"0"===(p=M[g])?h=p+h:"?"===p&&(""!==h&&(o.push({type:"number",value:h}),h=""),o.push({type:"numberPlaceholder",value:p}));(y=M+y)===n&&c<s&&(h=r.substr(0,s-c)+h),""!==h&&o.push({type:"number",value:h})}}else e.fUt&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(M)?(u.replaceExponent=l,F="",F+=x.oUt,F+=S[x.aUt],F+=f(i.toString(),x.tUt),o.push({type:"exponent",value:F})):"_"===M[0]?o.push({type:"placeholder",value:M[1]}):"*"===M[0]?u.hasInfilling||(o.push({type:"fillingChar",value:M[1]}),u.hasInfilling=!0,u.infillIndex=o.length-1):"\\"===M[0]?2===M.length&&o.push({type:"text",value:M[1]}):'"'===M[0]&&'"'===M[M.length-1]?M.length>2&&o.push({type:"text",value:M.substr(1,M.length-2)}):M===$?o.push({type:"percent",value:M}):M===N?o.push({type:"permille",value:M}):A[M]?o.push({type:"currency",value:M}):o.push({type:"text",value:M});k===H&&n&&o.push({type:"text",value:k}),e.rCt===l&&B(o,_,w,u),o.reverse(),u.infillIndex=o.length-1-u.infillIndex}function W(t,r,n,e,i,o,u,a,s){var c,y,m,h,M,d,v,b,g,p,F,_,w=s.numberDecimalSeparator,D=s.percentSymbol,H=s.perMilleSymbol,$=r.indexOf(w),N=i.fUt;for(($>0||e!==x||n!==k)&&u.push({type:"decimalSeparator",value:w}),c=-1!==$?r.substring($+1):"",y=0,m="",h=0;h<t.length;h++)if(M=t[h],/^(0|#|\?)+/g.test(M)){if(d="",m!==n){for(v=M.length,b=0,g=y;v>0&&c.length-y>0;)d+=c.charAt(g),v--,y++,b++,g++;for(p=b;v>0;)F=M[p],p++,y++,v--,"0"===F?d+=F:"?"===F&&(""!==d&&(u.push({type:"number",value:d}),d=""),u.push({type:"numberPlaceholder",value:F}));""!==d&&u.push({type:"number",value:d}),m+=M}}else N&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(M)?(a.replaceExponent=l,_="",_+=N.oUt,_+=S[N.aUt],_+=f(o.toString(),N.tUt),u.push({type:"exponent",value:_})):"_"===M[0]?u.push({type:"placeholder",value:M[1]}):"*"===M[0]?(u.push({type:"fillingChar",value:M[1]}),a.hasInfilling&&u.splice(a.infillIndex,1),a.hasInfilling=!0,a.infillIndex=u.length-1):"\\"===M[0]?2===M.length&&u.push({type:"text",value:M[1]}):'"'===M[0]&&'"'===M[M.length-1]?M.length>2&&u.push({type:"text",value:M.substr(1,M.length-2)}):M===D?u.push({type:"percent",value:M}):M===H?u.push({type:"permille",value:M}):A[M]?u.push({type:"currency",value:M}):u.push({type:"text",value:M})}function q(t,r){var n=t,e=t.indexOf(r);return-1!==e&&(n=t.replace(/0+$/,"")),n}function Y(t,r,n,e){var i,o,u,a,s,f,c,y,m,h,M,l,v,g,F,_,w=[];return t=L(t,r.d0,r.cUt,r.fxt),i=r.uUt,o=r.sUt,i||o?(u=z(i),(a=z(o))||(a=""),r.fUt&&(t=(f=U(t,r.fUt,u)).value,s=f.exponentValue),c=j(t,"."),b(t)>1&&c.iUt+c.rUt>15&&(t=et(t,15)),y=n.numberGroupSizes,m=n.numberGroupSeparator,h=n.numberDecimalSeparator,M=n.negativeSign,v=G(t,l=p(c.rUt,a.length),y,m,h,M),e||(v=q(v,h)),""===v?(w.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),w):(g={hasInfilling:d,infillIndex:-1,replaceExponent:d},"10"!==(F=v.split(h)[0])||isNaN(s)||(F="1",s+=(_=r&&r.fUt&&-1===r.fUt.aUt)?-1:1),i&&V(i,F,u,r,s,w,g,n),t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||("0"!==F&&""===u&&o&&w.push({type:"number",value:F}),o&&W(o,v,a,u,r,s,w,g,n)),w)):w}function X(t,r){var n,e,i,o,a,f,c,m,d,l,v,b,g,p,F,_,w;return(t=s(t)?"":u.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?M(t):t.match(/^0x[a-f0-9]+$/i)?h(t,10):(o=(i=Z(t,n=r.NumberFormat,e=n.numberNegativePattern))[0],a=i[1],""===o&&1!==e&&(o=(i=Z(t,n,1))[0],a=i[1]),""===o&&(o="+"),a[0]===n.currencySymbol&&(a=D(a,1)),(m=a.indexOf("e"))<0&&(m=a.indexOf("E")),m<0?(c=a,f=y):(c=D(a,0,m),f=D(a,m+1)),(v=c.indexOf("."))<0?(d=c,l=y):(d=D(c,0,v),l=D(c,v+1)),d=d.split(",").join(""),","!==(b=",".replace(/\u00A0/g," "))&&(d=d.split(b).join("")),g=o+d,l!==y&&(g+="."+l),(p=g[g.length-1])===n.percentSymbol&&(g=D(g,0,g.length-1),-1===(F=(g=u.zf.s6t(g,"")).indexOf("."))&&(F=g.length),_="",_+=D(g,0,F-2),_+=".",_+=D(g,F-2,2),g=_+=D(g,F+1)),f!==y&&(""===(w=Z(f,n,1))[0]&&(w[0]="+"),g+="e"+w[0]+w[1]),g.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?M(g):NaN)}function Z(t,r,n){var e=r.negativeSign,i=r.positiveSign;if(4!==n&&2!==n||(e=" "+e,i=" "+i),4===n||3===n){if(u.zf.dT(t,e))return["-",D(t,0,t.length-e.length)];if(u.zf.dT(t,i))return["+",D(t,0,t.length-i.length)]}else if(2===n||1===n){if(u.zf.fJ(t,e))return["-",D(t,e.length)];if(u.zf.fJ(t,i))return["+",D(t,i.length)]}else{if(0!==n)throw new Error("");if(u.zf.fJ(t,"(")&&u.zf.dT(t,")"))return["-",D(t,1,t.length-2)]}return["",t]}function Q(t,r,n){if(0!==b(v(t)-t))throw new Error(N().Exp_BadFormatSpecifier);var e=t>=0?t.toString(16):(C+t+1).toString(16);return e=r?e.toLowerCase():e.toUpperCase(),!s(n)&&e.length<n?f(e,n):e}function tt(t,r){var n,e;return t=+t,r=+r,isNaN(t)||r%1!=0?NaN:(t=(n=t<0)?-t:t,typeof r===m||0===r?(t=Math.round(t),n?-t:t):(e=t.toString().split("e"),t=Math.round(+(e[0]+"e"+(e[1]?+e[1]-r:-r))),+((e=(t=n?-t:t).toString().split("e"))[0]+"e"+(e[1]?+e[1]+r:r))))}function rt(t){var r=a.CultureManager.Fe().NumberFormat;return"string"==typeof t&&(r=a.CultureManager.Fe(t).NumberFormat),r}function nt(t){var r,n,e,i="";if(Array.isArray(t)&&t.length>0)for(r=0;r<t.length;r++)if(n=t[r].type,e=t[r].value,"placeholder"===n)i+=" ";else{if("fillingChar"===n)continue;i+="numberPlaceholder"===n?" ":e}return i}function et(t,r){return"number"==typeof t&&t.toString().length>=r&&(t=+t.toPrecision(r)),t}Object.defineProperty(r,"__esModule",{value:!0}),r.st=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/types.ts"),o=n("./src/common/util/regexhelper.ts"),u=n("./src/common/util/stringhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=i.lt.ht,f=u.zf.B9t,c=u.zf.lUt,y=null,m=void 0,h=parseInt,M=parseFloat,d=!1,l=!0,v=Math.floor,b=Math.abs,g=Math.pow,p=Math.min,F=Number.MAX_VALUE,_="#dot#",w="#group#",D=function(t,r,n){return t.substr(r,n)},H=function(t){return o.$T.qT(t)},$=new e.ResourceManager(e.SR),N=$.getResource.bind($),x="##################0",k="################",S={1:"+",0:"","-1":"-"},C=4294967295,P=["0","#","?"],A={"\xa4":"\xa4",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH\u20b5":"GH\u20b5","\u1265\u122d":"\u1265\u122d","\u0631.\u0633.\u200f":"\u0631.\u0633.\u200f",XDR:"XDR","\u062f.\u0625.\u200f":"\u062f.\u0625.\u200f","\u062f.\u0628.\u200f":"\u062f.\u0628.\u200f","\u062f.\u062c.\u200f":"\u062f.\u062c.\u200f","\u062c.\u0645.\u200f":"\u062c.\u0645.\u200f","\u20aa":"\u20aa","\u062f.\u0639.\u200f":"\u062f.\u0639.\u200f","\u062f.\u0627.\u200f":"\u062f.\u0627.\u200f","\u0641.\u062c.\u0642.\u200f":"\u0641.\u062c.\u0642.\u200f","\u062f.\u0643.\u200f":"\u062f.\u0643.\u200f","\u0644.\u0644.\u200f":"\u0644.\u0644.\u200f","\u062f.\u0644.\u200f":"\u062f.\u0644.\u200f","\u062f.\u0645.\u200f":"\u062f.\u0645.\u200f","\u0623.\u0645.\u200f":"\u0623.\u0645.\u200f","\u0631.\u0639.\u200f":"\u0631.\u0639.\u200f","\u0631.\u0642.\u200f":"\u0631.\u0642.\u200f","\u062c.\u0633.":"\u062c.\u0633.",S:"S","\xa3":"\xa3","\u0644.\u0633.\u200f":"\u0644.\u0633.\u200f","\u062f.\u062a.\u200f":"\u062f.\u062a.\u200f","\u0631.\u064a.\u200f":"\u0631.\u064a.\u200f","\u20b9":"\u20b9",TSh:"TSh","\u20ac":"\u20ac","\u20bc":"\u20bc","\u20bd":"\u20bd",K:"K","\u043b\u0432.":"\u043b\u0432.","\u20a6":"\u20a6",CFA:"CFA","\u09f3":"\u09f3","\xa5":"\xa5",KM:"KM","\u041a\u041c":"\u041a\u041c",USh:"USh","K\u010d":"K\u010d","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","\u0783.":"\u0783.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","\u20b1":"\u20b1",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","\u20a1":"\u20a1",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","\u20b2":"\u20b2","Bs.":"Bs.","\u0631\u064a\u0627\u0644":"\u0631\u064a\u0627\u0644",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","\u058f":"\u058f",ISK:"ISK","\u20be":"\u20be","\u200b":"\u200b","\u20b8":"\u20b8","\u17db":"\u17db","\u20a9":"\u20a9","\u0441\u043e\u043c":"\u0441\u043e\u043c",Kz:"Kz","\u20ad":"\u20ad",MTn:"MTn","\u0434\u0435\u043d":"\u0434\u0435\u043d","\u20ae":"\u20ae","\u0930\u0941":"\u0930\u0941","Afl.":"Afl.","\u07d6\u07d5.":"\u07d6\u07d5.","\u0440\u0443\u0431.":"\u0440\u0443\u0431.","z\u0142":"z\u0142","\u060b":"\u060b",R$:"R$",Db:"Db",RON:"RON","\u20b4":"\u20b4",MAD:"MAD","\u0dbb\u0dd4.":"\u0dbb\u0dd4.","Lek\xeb":"Lek\xeb",den:"den",RSD:"RSD","\u0434\u0438\u043d.":"\u0434\u0438\u043d.","\u0720.\u0723.\u200f":"\u0720.\u0723.\u200f","Rs.":"Rs.","\u0441\u043c\u043d":"\u0441\u043c\u043d","\u0e3f":"\u0e3f","m.":"m.","\u20ba":"\u20ba","\u2d37\u2d54":"\u2d37\u2d54","so\u02bbm":"so\u02bbm","\u0441\u045e\u043c":"\u0441\u045e\u043c","\u20ab":"\u20ab",HK$:"HK$",MOP:"MOP",NT$:"NT$"},O=Math.pow(2,48),r.st={yU:function(t){return X(t,a.CultureManager.Fe())},Z6t:function(t){return X(t,a.CultureManager.Fe("invariant"))},L9t:function(t,r,n,e){return n||(n=a.CultureManager.Fe()),T(t,r,n,e)},Ge:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("[.]"),_)),","!==i&&(t=t.replace(H("[,]"),w)),"."!==e&&(t=t.replace(H(_),e)),","!==i&&(t=t.replace(H(w),i))),t},Jf:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("["+e+"]"),_)),","!==i&&(t=t.replace(H("["+i+"]"),w)),"."!==e&&(t=t.replace(H(_),".")),","!==i&&(t=t.replace(H(w),","))),t},hUt:function(t,r){var n,e,i;return!("string"==typeof t&&(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&"."!==i&&t.indexOf(".")>=0||","!==e&&","!==i&&t.indexOf(",")>=0))},dUt:function(t,r){return M(this.Jf(t,r))},VGt:Q,v0:I,vUt:Y,ukt:K,Jme:J,mUt:nt,gUt:x,pUt:k,E8:et}},"./src/common/util/rbush.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rbush=void 0;var n=Math.max,e=Math.min,i=Number.POSITIVE_INFINITY;function o(t,r){this.bUt=n(4,t||9),this.yUt=n(2,Math.ceil(.4*this.bUt)),r&&this.wUt(r),this.clear()}function u(t,r,n){if(!n)return r.indexOf(t);for(var e=0;e<r.length;e++)if(n(t,r[e]))return e;return-1}function a(t,r){s(t,0,t.children.length,r,t)}function s(t,r,n,e,o){o||(o=b(null)),o.minX=i,o.minY=i,o.maxX=-i,o.maxY=-i;for(var u=r,a=void 0;u<n;u++)a=t.children[u],f(o,t.leaf?e(a):a);return o}function f(t,r){return t.minX=e(t.minX,r.minX),t.minY=e(t.minY,r.minY),t.maxX=n(t.maxX,r.maxX),t.maxY=n(t.maxY,r.maxY),t}function c(t,r){return t.minX-r.minX}function y(t,r){return t.minY-r.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function M(t,r){return(n(r.maxX,t.maxX)-e(r.minX,t.minX))*(n(r.maxY,t.maxY)-e(r.minY,t.minY))}function d(t,r){var i=n(t.minX,r.minX),o=n(t.minY,r.minY),u=e(t.maxX,r.maxX),a=e(t.maxY,r.maxY);return n(0,u-i)*n(0,a-o)}function l(t,r){return t.minX<=r.minX&&t.minY<=r.minY&&(r.maxX>=0&&r.maxX<=t.maxX||t.minX<0)&&(r.maxY>=0&&r.maxY<=t.maxY||t.minY<0)}function v(t,r){return(-1===t.minY||-1===r.minY||t.minY<=r.maxY&&r.minY<=t.maxY)&&(-1===t.minX||-1===r.minX||t.minX<=r.maxX&&r.minX<=t.maxX)}function b(t){return{children:t,height:1,leaf:!0,minX:i,minY:i,maxX:-i,maxY:-i}}r.rbush=o,o.prototype={all:function(){return this.QP(this.data,[])},search:function(t){var r,n,e,i,o,u=this.data,a=[],s=this.toBBox;if(!v(t,u))return a;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)i=u.children[n],v(t,o=u.leaf?s(i):i)&&(u.leaf?a.push(i):l(t,o)?this.QP(i,a):r.push(i));u=r.pop()}return a},collides:function(t){var r,n,e,i,o,u=this.data,a=this.toBBox;if(!v(t,u))return!1;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)if(i=u.children[n],v(t,o=u.leaf?a(i):i)){if(u.leaf||l(t,o))return!0;r.push(i)}u=r.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=b([]),this},remove:function(t,r){if(!t)return this;for(var n=this.data,e=this.toBBox(t),i=[],o=[],a,s,f,c;n||i.length;){if(n||(n=i.pop(),s=i[i.length-1],a=o.pop(),c=!0),n.leaf&&-1!==(f=u(t,n.children,r)))return n.children.splice(f,1),i.push(n),this.MUt(i),this;c||n.leaf||!l(n,e)?s?(a++,n=s.children[a],c=!1):n=null:(i.push(n),o.push(a),a=0,s=n,n=n.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:y,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,r){for(var n=[];t;)t.leaf?r.push.apply(r,t.children):n.push.apply(n,t.children),t=n.pop();return r},CUt:function(t,r,n,e){for(var o,u,a,s,f,c,y,h;e.push(r),!r.leaf&&e.length-1!==n;){for(y=h=i,o=0,u=r.children.length;o<u;o++)f=m(a=r.children[o]),(c=M(t,a)-f)<h?(h=c,y=f<y?f:y,s=a):c===h&&f<y&&(y=f,s=a);r=s||r.children[0]}return r},Eit:function(t,r,n){var e=this.toBBox,i=n?t:e(t),o=[],u=this.CUt(i,this.data,r,o);for(u.children.push(t),f(u,i);r>=0&&o[r].children.length>this.bUt;)this.SUt(o,r),r--;this.TUt(i,o,r)},SUt:function(t,r){var n,e,i=t[r],o=i.children.length,u=this.yUt;this.AUt(i,u,o),n=this.IUt(i,u,o),(e=b(i.children.splice(n,i.children.length-n))).height=i.height,e.leaf=i.leaf,a(i,this.toBBox),a(e,this.toBBox),r?t[r-1].children.push(e):this.xUt(i,e)},xUt:function(t,r){this.data=b([t,r]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},IUt:function(t,r,n){var e,o,u,a,f,c,y,h;for(c=y=i,e=r;e<=n-r;e++)a=d(o=s(t,0,e,this.toBBox),u=s(t,e,n,this.toBBox)),f=m(o)+m(u),a<c?(c=a,h=e,y=f<y?f:y):a===c&&f<y&&(y=f,h=e);return h},AUt:function(t,r,n){var e=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:y,o,u;this.NUt(t,r,n,e)<this.NUt(t,r,n,i)&&t.children.sort(e)},NUt:function(t,r,n,e){t.children.sort(e);var i=this.toBBox,o=s(t,0,r,i),u=s(t,n-r,n,i),a=h(o)+h(u),c,y;for(c=r;c<n-r;c++)y=t.children[c],f(o,t.leaf?i(y):y),a+=h(o);for(c=n-r-1;c>=r;c--)y=t.children[c],f(u,t.leaf?i(y):y),a+=h(u);return a},TUt:function(t,r,n){for(var e=n;e>=0;e--)f(r[e],t)},MUt:function(t){for(var r=t.length-1,n=void 0;r>=0;r--)0===t[r].children.length?r>0?(n=t[r-1].children).splice(n.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},wUt:function(t){var r=["return a"," - b",";"];this.compareMinX=new Function("a","b",r.join(t[0])),this.compareMinY=new Function("a","b",r.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},"./src/common/util/regexhelper.ts":function(t,r,n){var e,i,o,u;Object.defineProperty(r,"__esModule",{value:!0}),r.$T=void 0,e=n("./src/common/util/stringhelper.ts"),i=!0,o="empty",u=function(){function t(){}return t.bue=function(r,n){var e;if(n&&t.yue[n]&&t.yue[n][r])e=t.yue[n][r];else try{null==n?(e=new RegExp(r),n=o):e=new RegExp(r,n),t.yue[n]||(t.yue[n]={}),t.yue[n][r]=e}catch(t){return null}return e.lastIndex=0,e},t.qT=function(r){var n=t.kUt[r];return n||(n=t.kUt[r]=new RegExp(r,"g")),n.lastIndex=0,n},t.OJ=function(r){var n=t.DUt[r];return n||(n=t.DUt[r]=new RegExp(r,"gi")),n.lastIndex=0,n},t.jJ=function(r,n,e){var o,u,a,s,f,c;if(t._Ut[r])return t.EUt[r];if(o=n?"[?*]+":"[~?*]+",t.qT(o).test(r)){for(u=[],a=r.split(""),s=void 0,f={".":i,"+":i,$:i,"^":i,"[":i,"]":i,"(":i,")":i,"{":i,"}":i,"|":i,"/":i,"\\":i},c=0;c<a.length;c++)if("~"===(s=a[c])){if(!(c<a.length-1))break;"*"!==(s=a[++c])&&"?"!==s||u.push("\\"),u.push(s)}else"?"===s?u.push("."):"*"===s?(u.push("[\\s\\S]"),e?u.push("+"):u.push("*")):f[s]?(u.push("\\"),u.push(s)):u.push(s);return u.join("")}return null},t.tbt=function(r,n,e){var i=t.jJ(r,n,e);return i&&(i="^"+i+"$"),i},t.jUt=function(t,r){for(var n="#"+t+"0#",i=1;r.indexOf(n)>0;)n=e.zf.qS(n,"#"+t+(i-1)+"#","#"+t+i+"#"),i++;return n},t.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},t.kUt={},t.DUt={},t.yue={},t._Ut={},t.EUt={},t}(),r.$T=u},"./src/common/util/stringhelper.ts":function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.zf=void 0;var e=n("./src/common/util/regexhelper.ts");function i(t,r,n){return t.substr(r,n)}function o(t){return null==t}function u(t,r,n,e){var i,u;if(o(r))throw new Error;return""===r||!(r.length>t.length)&&(i=t,u=r,n&&(i=i.toLowerCase(),u=u.toLowerCase()),e(i,u))}r.zf={OS:function(t,r,n){return n&&(t=t.toLowerCase(),r=r.toLowerCase()),""===r||t.indexOf(r)>=0},hD:function(t,r,n){var e,i;return n?(e=t.toLowerCase(),i=r.toLowerCase(),e.indexOf(i)):t.indexOf(r)},cJ:function(t,r){if(!r)return t;for(var n=t;i(n,0,r.length)===r;)n=i(n,r.length);return n},s6t:function(t,r){if(!r)return t;for(var n=t;i(n,n.length-r.length,r.length)===r;)n=i(n,0,n.length-r.length);return n},Eit:function(t,r,n){var e,u;if(r<0||r>t.length||o(n))throw new Error;return(e=i(t,0,r))+n+(u=i(t,r,t.length-r))},VP:function(t,r,n){var e,u;if(o(n)&&(n=t.length-r),r<0||n<0||r+n>t.length)throw new Error;return(e=i(t,0,r))+(u=i(t,r+n,t.length-r-n))},fJ:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(0,r.length)===r}))},dT:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(-r.length)===r}))},Vi:function(t,r,n,e){if(!r)throw new Error;return n=(""+n).replace(/\$/g,"$$$$"),t.replace(new RegExp(r,"g"+(e?"i":"")),n)},OUt:function(t,n,i,o){return n=e.$T.D9t(n),r.zf.Vi(t,n,i,o)},gmt:function(t,r){var n=t.indexOf(r);return n<0||n>=t.length?t:i(t,0,n)},DU:function(t,r){for(var n=0,e=t.indexOf(r);e>=0;)n+=1,e=t.indexOf(r,e+1);return n},qS:function(t,r,n){return t.split(r).join(n)},I5:function(t,r){var n,e,i=t;for(n=0;n<r.length;n++)e=new RegExp("\\{"+n+"\\}","g"),i=i.replace(e,r[n]);return i},RUt:function(t,r,n){var e,i=t.toString();for(e=i.length;e<r;e++)i=n?"0"+i:i+"0";return i},B9t:function(t,n){return r.zf.RUt(t,n,!0)},lUt:function(t,n){return r.zf.RUt(t,n,!1)},Dbt:function(t,r){return t===r||!t&&!r||t&&r&&t.toLowerCase()===r.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var r={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n=e.$T.qT("(?:&|<|>|\"|'|`)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},dI:function(t){var r={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},n=e.$T.qT("(?:&|<|>|"|'|`)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},TY:function(t){var r,n,e=t;for(e=e.replace(/[\t\n\r\f\v]/g,""),r=/javascript:/gi;e.match(r);)e=e.replace(r,"");try{if("javascript:"===(n=new URL(e)).protocol)return""}catch(t){}return e}}},"./src/common/util/types.ts":function(t,r){var n,e;Object.defineProperty(r,"__esModule",{value:!0}),r.lt=void 0,n="undefined"!=typeof window?window.File:null,e="undefined"!=typeof window?window.Blob:null,r.lt={BUt:null,y0:function(t,n){var e,i,o,u;if(r.lt.Gh(t))for(i=0,o=t.length;i<o&&!1!==(e=n.call(t[i],i,t[i]));i++);else for(u in t)if(t.hasOwnProperty(u)&&!1===(e=n.call(t[u],u,t[u])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===r.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===r.lt.Oh(t)},jh:function(t){return r.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var n,e,i,o,u,a;if(null===t)return"null";if(!(n=r.lt.BUt))for(n=r.lt.BUt={},i=0,o=(e=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;i<o;i++)n["[object "+e[i]+"]"]=e[i].toLowerCase();return u=n.toString,"object"===(a=typeof t)||"function"===a?n[u.call(t)]||"object":a},Rh:function(t,n,e){var i,o;if(n){if(o=[].indexOf)return o.call(n,t,e);for(i=n.length,r.lt.ht(e)&&(e=0),e=e<0?Math.max(0,i+e):e;e<i;e++)if(e in n&&n[e]===t)return e}return-1},Bh:function(t,r){var n=r.length,e=t.length,i=0;if("number"==typeof n)for(;i<n;i++)t[e]=r[i],e++;else for(;void 0!==r[i];)t[e]=r[i],e++,i++;return t.length=e,t},Lh:function(t,n,e){var i,o,u,a,s=[];if(r.lt.Gh(t))for(o=0,u=t.length;o<u;o++)null!==(i=n(t[o],o,e))&&(s[s.length]=i);else for(a in a=void 0,t)t.hasOwnProperty(a)&&null!==(i=n(t[a],a,e))&&(s[s.length]=i);return s.concat([])},Dh:function(){var t,n,e,i,o,u,a,s,f,c,y,m=[];for(t=0;t<arguments.length;t++)m[t]=arguments[t];for(s=m[0]||{},f=1,c=m.length,y=!1,"boolean"==typeof s&&(y=s,s=m[1]||{},f=2),"object"==typeof s||r.lt.Eh(s)||(s={}),c===f&&(s=this,--f);f<c;f++)if(u=m[f],!r.lt.ht(u))for(o in u)n=s[o],s!==(i=u[o])&&(e=r.lt.Nh(i),y&&i&&(r.lt.Ph(i)||e)?(a=e?n&&r.lt.Nh(n)?n:[]:n&&r.lt.Ph(n)?n:{},s[o]=r.lt.Dh(y,a,i)):void 0!==i&&(s[o]=i));return s},Fh:function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var n,e;if(!t||"object"!==r.lt.Oh(t)||t.nodeType||r.lt.Uh(t))return!1;n={}.hasOwnProperty;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||n.call(t,e)},Gh:function(t){if(r.lt.ht(t))return!1;var n=t.length,e=r.lt.Oh(t);return!r.lt.Uh(t)&&(!(1!==t.nodeType||!n)||("array"===e||"function"!==e&&(0===n||"number"==typeof n&&n>0&&n-1 in t)))},Hh:function(t,n){var e=n||[];return null!==t&&(r.lt.Gh(Object(t))?r.lt.Bh(e,"string"==typeof t?[t]:t):[].push.call(e,t)),e},dt:null,ht:function(t){return null==t},q8:null,uJ:null,tv:function(t){if(!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||r.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var i,o,u;if(n&&t instanceof n)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if(e&&t instanceof e)return new e([t],{type:t.type});for(o in i=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(o)&&(u=t[o],t.hasOwnProperty(o)&&i[o]!==u&&(i[o]="object"==typeof u?r.lt.tv(u):u));return i}}},"./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/common/util/uuid-helper.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UUIDGenerator=void 0;var n=function(){function t(){}return t.wrap=function(t){return"{".concat(t.toUpperCase(),"}")},t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=16*Math.random()|0,n="x"===t?r:3&r|8;return n.toString(16)}))},t.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},t.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},t.isValidUpperCaseUUID=function(t){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(t)},t}();r.UUIDGenerator=n},"./src/plugins/commands/commands.entry.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=r.CommandManager=r.Key=void 0,e=n("./src/plugins/commands/commands.ts"),Object.defineProperty(r,"Key",{enumerable:!0,get:function(){return e.Key}}),Object.defineProperty(r,"CommandManager",{enumerable:!0,get:function(){return e.CommandManager}}),i=n("./src/plugins/commands/undomanager.ts"),Object.defineProperty(r,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,r){var n,e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.CommandManager=r.Key=void 0,function(t){t[t.left=37]="left",t[t.right=39]="right",t[t.up=38]="up",t[t.down=40]="down",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.shift=16]="shift",t[t.ctrl=17]="ctrl",t[t.space=32]="space",t[t.altkey=18]="altkey",t[t.home=36]="home",t[t.end=35]="end",t[t.pup=33]="pup",t[t.pdn=34]="pdn",t[t.backspace=8]="backspace",t[t.del=46]="del",t[t.esc=27]="esc",t[t.a=65]="a",t[t.c=67]="c",t[t.v=86]="v",t[t.x=88]="x",t[t.z=90]="z",t[t.y=89]="y"}(n=r.Key||(r.Key={})),e=function(){function t(t,r,n){var e,i;this.jS=t,this.LUt=r,this.Zc=n,e=this,Object.defineProperty(e,"shortcutKey",{get:function(){return e.FUt},set:function(t){var r,n,o=e.FUt;o!==t&&((r=(i=e.jS.PUt)[o])&&(n=r.indexOf(e))>=0&&r.splice(n,1),e.FUt=t,t&&((r=i[t])||(i[t]=r=[]),r.splice(0,0,e)))}})}return t.prototype.canUndo=function(){var t;return this.LUt.canUndo},t.prototype.execute=function(t,r,n){var e,i,o,u,a,s=this,f=!0,c=!0;if(s.LUt&&r&&(o={command:r,result:i,vM:n,actionType:n,metaData:null===(e=s.LUt)||void 0===e?void 0:e.metaData,r:null,isBefore:!0},s.jS.MGr(o),o.r&&(c=!1,i=!1)),c){try{f=!1!==(i=(u=s.LUt.execute||s.LUt)(t,r,1===n))}catch(t){f=!1}r&&f&&s.jS.HUt({command:s.Kro(r),result:i,vM:n,actionType:n})}return s.jS&&r&&(a={command:r,result:i,vM:n,actionType:n,isBefore:!1},s.jS.MGr(a)),i},t.prototype.Kro=function(t){return t&&!t.cmd&&(t.cmd=this.Zc),t},t}(),i=function(){function t(t){this.DJ=t,this.aT={},this.GUt={},this.yGr={},this.PUt={}}return t.prototype.register=function(t,r,n,i,o,u,a){var s=this,f=new e(s,r,t);s[t]=f,n&&(f.shortcutKey=s.getShortcutKey(n,i,o,u,a))},t.prototype.getCommand=function(t){return this[t]},t.prototype.execute=function(t){var r=this[t.cmd];if(r)return r.execute(this.DJ,t,0)},t.prototype.setShortcutKey=function(t,r,n,e,i,o){var u,a,s,f,c=this;if(t)(u=c[t])&&(u.shortcutKey=c.getShortcutKey(r,n,e,i,o));else if(a=c.getShortcutKey(r,n,e,i,o),s=c.getCommands(a))for(f=s.length-1;f>=0;f--)s[f].shortcutKey=void 0},t.prototype.getShortcutKey=function(t,r,e,i,o){if(t){var u="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):n[t];return u||(u=t),u+(r?"+ctrl":"")+(e?"+shift":"")+(i?"+alt":"")+(o?"+window":"")}},t.prototype.getCommands=function(t){return this.PUt[t]},t.prototype.addListener=function(t,r){this.aT[t]=r},t.prototype.removeListener=function(t){delete this.aT[t]},t.prototype.HUt=function(t){var r,n=this.aT;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.cM=function(t,r){this.GUt[t]=r},t.prototype.zUt=function(t){delete this.GUt[t]},t.prototype.MGr=function(t){var r,n=this.GUt;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.L0=function(){this.DJ=null},t}(),r.CommandManager=i},"./src/plugins/commands/undomanager.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=void 0;var n=function(){function t(t,r,n){var e=this;e.DJ=t,r<0&&(r=2147483647),e.VUt=r,e.Hw=n,e.Nmt=[],e.kmt=[],e.YUt=!1}return t.prototype.dM=function(t,r){var n,e,i,o=this;if(t){if(1===r)o.kmt.push(t);else{if(n=o.VUt,e=o.Nmt.length,n>0&&e>=n)for(i=0;i<e-n+1;i++)o.Nmt.shift();o.Nmt.push(t),0===r&&(o.kmt=[])}o.YUt=!0}},t.prototype.canUndo=function(){return this.Nmt.length>0},t.prototype.undo=function(){var t,r,n=this,e=n.Nmt,i=!0;if(n.Hw&&n.canUndo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,1))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.kmt.push(t))}return i},t.prototype.canRedo=function(){return this.kmt.length>0},t.prototype.redo=function(){var t,r,n=this,e=n.kmt,i=!0;if(n.Hw&&n.canRedo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,2))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.Nmt.push(t))}return i},t.prototype.getRedoStack=function(){return this.kmt.slice()},t.prototype.getUndoStack=function(){return this.Nmt.slice()},t.prototype.maxSize=function(t){var r=this;return arguments.length<1?r.VUt:(t>=0&&(r.VUt=t),r)},t.prototype.clear=function(){this.Nmt=[],this.kmt=[]},t.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},t.prototype.L0=function(){this.DJ=null},t.prototype.setNewChangeStatus=function(t){this.YUt=t},t.prototype.getNewChangeStatus=function(){return this.YUt},t}();r.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/formatter/formatter.ts"),r)},"./src/plugins/formatter/formatter.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_InvalidCast=r.Exp_ValueIllegal=r.Exp_TokenIllegal=r.Exp_DuplicatedDescriptor=r.Exp_ValueIsNull=r.Exp_FormatIllegal=r.Exp_InvalidBackslash=r.Exp_TokenIsNull=void 0,r.Exp_TokenIsNull="token is null",r.Exp_InvalidBackslash="the '\\' cannot be evaluated",r.Exp_FormatIllegal="format is illegal.",r.Exp_ValueIsNull="value is null",r.Exp_DuplicatedDescriptor="The type of descriptor was added.",r.Exp_TokenIllegal="token is illegal.",r.Exp_ValueIllegal="value is illegal.",r.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O,T,E,j,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut=this&&this.vJr||(at=function(t,r){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},at(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}at(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),at;function st(t,r,n){return t.substr(r,n)}function ft(t){return o.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function ct(t,r){if("\\"===t[r])throw new Error(h().Exp_InvalidBackslash);if(r-1>0&&r-1<t.length&&"\\"===t[r-1]){if(r-2<0)return!0;if(r-2>0&&r-2<t.length)return"\\"!==t[r-2]}return!1}function yt(t){if(!t)throw new Error(h().Exp_TokenIsNull);return"["+t+"]"}function mt(t){var r,n,e,i,o;if(t===l||t===d||""===t)return t;for(r="",n=0,e=!1,i=0;i<t.length;i++)'"'===(o=t[i])?(e=!e,r+=o):e?r+=o:"["===o?n++:"]"===o?--n<0&&(n=0):0===n&&(r+=o);return r.toString()}function ht(t){return t=Mt(t,"[",""),Mt(t,"]","")}function Mt(t,r,n){return!t||t===K.oHt||lt(r,n,!0)?t:(r=r.replace(D,"\\$1"),t.replace(new RegExp(r,"g"),n))}function dt(t){var r,n,e=t.length,i=!1,o="";for(r=0;r<e;r++)"\\"===(n=t.charAt(r))?(i=!i)&&"@"!==t.charAt(r+1)||(o+=n):(i=!1,o+=n);return o}function lt(t,r,n){return n?B(t)===B(r):t===r}function vt(t,r){var n,e,i,o;for(1===arguments.length&&(r=!0),n=!1,e="",i=0;i<t.length;i++){if('"'===(o=t[i]))n=!n;else if(!n&&!r&&"/"===o&&!ct(t,i))continue;e+=o}return e}function bt(t){var r,n,e,i="",o=!1;for(r=0,n=t.length;r<n;r++)'"'===(e=t[r])&&(o=!o),"E"===e||o||(i+=B(e));return i}function gt(t,r){var n,e,i,o;if(!t||t===K.oHt)return!1;for(e=bt(n=vt(t)),i=0;i<r.length;i++)if(0===(o=e.indexOf(r[i]))||o>0&&"_"!==e[o-1]&&"*"!==e[o-1])return!0;return!1}function pt(t,r,n,e){this.j9t=t,this.aHt=r,this.cultureName=n,this.O9t=e}function Ft(t){this.Nat=t}function _t(t){var r,n,i=ht(t);return i&&i!==K.oHt?(n=i[0],["<",">","="].indexOf(n)>-1?(r=q).Name="ConditionalFormatPart":e.zf.fJ(i,"DBNum",!0)?(r=Y).Name="DBNumberFormatPart":lt(i[0],M,!1)&&i.indexOf("-")>-1?(r=V).Name="LocaleIDFormatPart":Dt(i)?(r=Z).Name="ABSTimeFormatPart":i.indexOf(M)<0&&i.length>=3&&((r=Q).Name="ColorFormatPart"),r):r}function wt(t,r){var n,e=!1;return gt(t=t?t.toString():K.oHt,["general"])?n=rt:X.a0(t)?n=X:gt(t,["E+","E-","#",".",",","%","0","/","?"])||r?(e=!0,n=tt):(e=!0,n=nt),{uHt:e,_type:n}}function Dt(t){var r,n=B(t),e=n[0];if("h"!==e&&"m"!==e&&"s"!==e)return!1;for(r=1;r<n.length;r++)if(e!==n[r])return!1;return!0}function Ht(t,r,n){var e,i;return e=t?t.cultureInfo():j(n),(r<4||4===r&&("ko-kr"===n||"ko-kr"===e.name()))&&(i=e.NumberFormat.dbNumber)?i[r]:d}function $t(t,r,n,e,o){var u,a=t;if(!T(e)&&r instanceof Date){if(!(u=Ht(n,e.type,o)))return t;a=e.sHt(a,u,!0),1===e.type&&(a=a.replace(new RegExp(p,"g"),F)),a=(a=a.replace("@"+b.cHt,i.ct.Pe(r,b.cHt))).replace("@"+b.fHt,i.ct.Pe(r,b.fHt)),a=e.sHt(a,u,!1)}return a}function Nt(t,r,n,e,i){var o,u,a,s,f,c,y;if(!T(e)&&(o=Ht(n,e.type,i),!T(o))){for(u=!1,a=void 0,s=j(i),f=void 0,c=0,y=t.length;c<y;c++)"decimalSeparator"===t[c].type&&(u=!0,t[c].value=e.sHt(t[c].value,o,r),a=t[c].value),"number"===t[c].type&&(t[c].value=u?e.sHt(a+t[c].value,o,r).slice(1):e.sHt(t[c].value,o,r),"ja-JP"===s.name()&&t[c].value.length>1&&("\u4e00\u5343"!==(f=t[c].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[c].value=t[c].value.substr(1))));return t}return t}function xt(t){var r,n=[],e=0,i=0,o=t.length;for(r=0;r<o;r++)"_"===t[r]?e++:(";"!==t[r]||0!==e&&e%2!=0||(n.push(t.substring(i,r)),i=r+1),e=0);return i<=o&&n.push(t.substring(i,o)),n}function kt(t){var r,n,e=[],i=!1,o=!1,u="",a=function(t,r){return{type:t,content:r}},s=function(t){return!T(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},f=function(r,n){if(s(r)){for(var i=r,o=t[n+1];s(o)&&o.toLowerCase()===r.toLowerCase()&&(i+=o,n<t.length-1);)n++,o=t[n+1];e.push(a("symbolic",i))}else"a"===r&&"aaa"===t.slice(n,n+3).toLowerCase()?(e.push(a("symbolic",t.slice(n,n+3))),n+=2):e.push(a("text",r));return n};for(r=0;r<t.length;r++)if(n=t[r],i)e.push(a("text","\\"+n)),i=!1;else if(o&&'"'!==n)u+=n;else switch(n){case"\\":i=!0;break;case'"':o&&(e.push(a("text",'"'+u+'"')),u=""),o=!o;break;default:r=f(n,r)}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralFormatter=r.Hf=r.FormatterBase=void 0,e=n("./src/common/util/stringhelper.ts"),i=n("./src/common/util/datetimehelper.ts"),o=n("./src/common/util/types.ts"),u=n("./src/common/util/numberhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=n("./src/common/util/common.ts"),f=n("./src/plugins/formatter/formatter.res.en.ts"),c=n("./src/plugins/formatter/formatterGrammar/lexer.ts"),y=n("./src/plugins/formatter/formatterGrammar/parser.ts"),o.lt.Dh(s.SR.en,f),m=new s.ResourceManager(s.SR),h=m.getResource.bind(m),M="$",o.lt.dt=function(t,r){if(o.lt.ht(t))return"null"===r;if(!r)return!1;if(r instanceof Function&&t instanceof r)return!0;if(typeof t===r)return!0;if("function"===r&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===r.toLowerCase())return!0;if("DateTime"===r)return t instanceof Date;if("TimeSpan"===r){if(t instanceof Date){var n=i.ct.o0(t);return n>=0&&n<1}return!1}return"string"==typeof r&&"undefined number boolean string".indexOf(r),!1},o.lt.q8=function(t,r){return!!u.st.hUt(t,r)&&(("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=u.st.Jf(t,r),o.lt.dt(t,"number")||o.lt.dt(t,"DateTime")||o.lt.dt(t,"TimeSpan")||t&&!o.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(t.length>=2&&"0"===t[0]&&"x"===t[1])))},o.lt.uJ=function(t){return o.lt.ht(t)||""===t?0:o.lt.dt(t,"number")?t:o.lt.dt(t,"string")&&!isNaN(t)?u.st.yU(t):o.lt.dt(t,"boolean")?t?1:0:o.lt.dt(t,"DateTime")?i.ct.o0(t):o.lt.dt(t,"TimeSpan")?Math.floor(i.ct.o0(t)):parseFloat(t)},d=null,l=void 0,v=Math.abs,b={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)},g=[b.hHt,b.fHt,b.cHt,b.dHt,b.vHt,b.mHt,b.gHt,b.pHt,b.bHt,b.yHt,b.wHt,b.MHt,b.CHt,b.SHt,b.THt,b.AHt,b.IHt,b.xHt,"ggg","gg","g","ee","e"],p="\u4e00\u5341",F="\u5341",_={EHt:0,jHt:1,OHt:2,_text:3},w=[{EHt:0,jHt:0,OHt:0,_text:0},{EHt:0,jHt:1,OHt:0,_text:0},{EHt:0,jHt:1,OHt:2,_text:0},{EHt:0,jHt:1,OHt:2,_text:3}],D=new RegExp("([.+?*$^\\[\\](){}|/])","g"),H=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],$=["#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"],N=new RegExp("color\\s*(\\d+)","i"),x=o.lt.dt,k=o.lt.Nh,S=u.st,C=S.gUt+"."+S.pUt,P=S.mUt,A=S.L9t,O=S.E8,T=o.lt.ht,E=isNaN,j=function(t){return a.CultureManager.Fe(t)},R=function(t){return j(t).DateTimeFormat},I=function(t){return j(t).NumberFormat},B=function(t){return t&&t.toLowerCase()},G=function(t){return t&&t.toUpperCase()},L=function(){throw new Error(h().Exp_FormatIllegal)},z=function(){return a.CultureManager.booleanMapping},K={oHt:"",I5:function(){var t,r,n,e,i,o,u=[];for(t=0;t<arguments.length;t++)u[t]=arguments[t];for(r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return d;for(e=r[0],i=1;i<arguments.length;i++)o=new RegExp("\\{"+(i-1)+"\\}","gm"),e=e.replace(o,arguments[i]);return e},Ji:function(t){return!t||t===K.oHt}},J=function(t){var r=t.charCodeAt(0);return r>=48&&r<=57},U=function(t){var r=t.charCodeAt(0);return r>=9&&r<=13||32===r||133===r||160===r},V=function(){function t(t,r){var n,i,o,u;if(Ft.call(this,r),(n=this).Jq=t,o=lt((i=n.Jq)[0],M,!1),u=i.indexOf("-"),!(o&&u>-1))throw new Error(h().Exp_TokenIllegal);n.ZUt=st(i,1,u-1),(i=e.zf.VP(i,0,u+1)).length>0&&(n.Iat=parseInt(i,16))}return t.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=j(t.Iat)),t.RHt},t.prototype.currencySymbol=function(){return this.ZUt?e.zf.Vi(this.ZUt,"\\.",'"."'):K.oHt},t.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},t.prototype.toString=function(){return this.Jq?yt(this.Jq):K.oHt},t.Name="LocaleIDFormatPart",t}(),W=function(){function t(t,r){this.formatCached=t,this.cultureName=r,this.typeName=""}return t.prototype.format=function(t,r){return d},t.prototype.parse=function(t){return d},t.prototype.formatString=function(t){return this.formatCached},t.prototype.toJSON=function(){var t,r={};for(t in this)this.hasOwnProperty(t)&&(r[t]=this[t]);return r},t.prototype.fromJSON=function(t){if(t)for(var r in t)t[r]!==l&&(this[r]=t[r])},t}(),r.FormatterBase=W,q=function(){function t(t,r){var n,i,o,u,a,s,f,c;for(Ft.call(this,r),n=this,s=0,f=(a=["<=","<>",">=",">","<","="]).length;s<f;s++)if(i=a[s],e.zf.fJ(t,i,!0)){o=e.zf.VP(t,0,i.length),c=parseFloat(o),E(c)||(u=c);break}if(u===d&&u===l)throw new Error(h().Exp_TokenIllegal);n.value=u,n.WUt=i,n.isMeetCondition=function(t){var r=n.WUt,e=n.value;switch(r){case"<=":return t<=e;case"<>":return t!==e;case">=":return t>=e;case">":return t>e;case"<":return t<e;case"=":return t===e}}}return t.prototype.toString=function(){return yt(this.WUt+this.value.toString())},t}(),Y=function(){function t(t,r){Ft.call(this,r);var n=this;if(n.token=t,n.type=parseInt(e.zf.VP(t,0,5),10),n.type<0||n.type>4)throw new Error(h().Exp_TokenIllegal)}return t.prototype.sHt=function(r,n,i){var o,u,a,s,f,c,y,m,h,M;if(!r||r===K.oHt)return r;for(o=r,u=r,a=-1,s=-1,f=!1,h=r.length-1;h>=0;h--)M=u[h],!E(M)&&!lt(M," ",!1)||lt(M,".",!1)&&!f?(lt(M,".",!1)&&(f=!0),-1===a&&(a=h),s=h):s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),E(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m)),a=-1,s=-1,f=!1);return s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),E(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m))),o},t.prototype.toString=function(){if(this.type>-1)return yt("DBNum"+this.type);throw new Error},t.numberString=function(r,n,e){var i,o,u=t.formatNumberString,a=r.split(".");if(a){if(1===a.length)return u(a[0],n.numbers,e?n.letters:d);if(2===a.length)return(i=u(a[0],n.numbers,e?n.letters:d))+"."+(o=u(a[1],n.numbers))}throw new Error(h().Exp_ValueIllegal)},t.formatNumberString=function(r,n,e){var i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g=r,p=0,F=0;if(2===arguments.length){for(o="";p<g.length;p++)i=st(g,p,1),o+=n[F=parseInt(i,10)];return o}if(3===arguments.length){if(!e)return t.formatNumberString(r,n);for(u=0,a="",s=g.length,f=!1,c=[];p<s;p++)(y=e.length-1-p)>-1?c.push(e[y].toString()):c.push(K.oHt);for(m=[],h=c.length-1;h>=0;h--)m[c.length-h-1]=c[h];for(c=m,M=!1,h=0;h<s;h++)i=st(g,h,1),F=parseInt(i,10),d=void 0,l=K.oHt,s-h-16>0?(d=n[F],l="",M=!0):h!==s-1&&h!==s-5&&h!==s-9&&h!==s-13?"0"===i?(d="",l="",u+=1):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[h],u=0):(d=n[F],l=c[h],u=0):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[h],u=0):"0"!==i&&0===u||M?(d=n[F],l=c[h],u=0,M=!1):"0"===i&&u>=3?(d="",l="",u+=1):s>=11?(d="",u+=1):(d="",l=c[h],u+=1),(v=d+l===K.oHt)||(f=!1),h!==s-13||f||(l=c[h],f=!0),h!==s-9||f||(l=c[h],f=!0),h===s-1&&(l=c[h],f=!0),a=a+d+l;return 0===(b=parseInt(r,10))?n[0]:a}},t}(),X=function(){function t(t,r,n,e,i,o){pt.call(this,r,n,e,o);var u=this;u.pU=u.QUt(vt(t)),u.KUt=i,u.JUt=2,u.Hc()}return t.prototype.Hc=function(){var r,n,e,i,o=this,u={y4:o.pU},a=t;if(a.a0(u.y4)){if(r=o.BHt(u),n=R(this.cultureName).amDesignator&&R(this.cultureName).pmDesignator,o.hasJD=o.Vi(u.y4,b.pHt,'"'+b.DHt+'"',!0,!1,u,!1),o.Vi(u.y4,b.gHt,"MMMM",!0,!1,u,!1),o.Vi(u.y4,b.mHt,"MMM",!0,!1,u,!1),o.LHt(u.y4,u),o.Vi(u.y4,b.wHt,"ddd",!0,!0,u,!0),o.Vi(u.y4,b.MHt,"dddd",!0,!0,u,!0),r&&n||(o.Vi(u.y4,b.CHt,"H",!0,!0,u,!1),o.Vi(u.y4,b.SHt,"HH",!0,!0,u,!1)),o.aHt&&(o.j9t||j(o.cultureName).NumberFormat.dbNumber)&&(o.FHt=o.FHt||o.Vi(u.y4,b.cHt,'"@'+b.cHt+'"',!0,!1,u,!0),o.FHt=o.FHt||o.Vi(u.y4,b.fHt,'"@'+b.fHt+'"',!0,!1,u,!0)),o.KUt)for(e=0;e<o.KUt.length;e++)i=o.KUt[e],o.Vi(u.y4,i.Nat,"@"+i.Nat,!0,!0,u,!0);o.PHt=u.y4}else L()},t.prototype.formatString=function(){return this.pU},t.prototype.format=function(t){var r,n,o,u,a,s,f,c,y=this,m=K.oHt,h=d;try{if((h=i.ct._DT(t))&&E(h.valueOf())&&(h=d),h?t=h:m=t.toString(),h&&(m=i.ct.L9t(h,y.PHt,y.j9t&&y.j9t.cultureInfo()||j(y.cultureName),y.O9t),y.hasJD&&(r=j(y.cultureName).DateTimeFormat.monthNames[h.getMonth()],m=e.zf.Vi(m,b.DHt,st(r,0,1))),y.KUt))for(n=24*(i.ct.o0(h)-i.ct.o0(b._Ht))*60*60*1e3,o=0;o<y.KUt.length;o++)a=(u=y.KUt[o]).XUt(n),T(a)||(s=u.Nat.replace("[","\\[").replace("]","\\]"),f=u.Nat.replace("[","").replace("]",""),c=e.zf.B9t(a+"",f.length),m=e.zf.Vi(m,"@"+s,c))}catch(r){m=ft(t)}return $t(m,t,y.j9t,y.aHt,y.cultureName)},t.prototype.parse=function(t){var r,n,e,o,u;if(!t||t===K.oHt)return d;if(r=this,"true"===(e=B(n=t)))return!0;if("false"===e)return!1;if(r.PHt&&(o=i.ct.nUt(n,r.PHt,j(r.cultureName))))return o;try{return(u=i.ct._DT(n))&&!E(u)?u:(u=new Date(n),E(u.valueOf())?n:u)}catch(t){return n}},t.prototype.QUt=function(t){var r,n,e,i=t,o="",u=!1;for(r=0;r<i.length;r++)'"'===(n=i[r])?u=!u:u||("Y"===n||"D"===n||"S"===n||"E"===n||"G"===n?n=B(n):"M"===n&&(lt("A",e=i[r-1],!0)||lt("P",e,!0)||(n=B(n)))),o+=n;return o},t.prototype.BHt=function(t){var r,n,i,o=R(this.cultureName).amDesignator,u=R(this.cultureName).pmDesignator,a=[b.NHt];for(o&&u?a.push(o+"/"+u):a.push(b.NHt),a.push(b.kHt),r=["tt","tt","t"],n=t.y4,i=0;i<3;i++){if(e.zf.OS(n,r[i]))return!0;if(e.zf.OS(n,a[i],!0))return t.y4=e.zf.Vi(n,a[i],r[i],!0),!0}return!1},t.prototype.LHt=function(t,r){var n,e,i=kt(t),o=-1,u=-1;for(n=0;n<i.length;n++)"symbolic"===(e=i[n]).type?"m"===e.content[0].toLowerCase()?o>=0?(e.content=e.content.toLowerCase(),o=-1):(e.content=e.content.toUpperCase(),u=n):"s"===e.content[0].toLowerCase()?u>=0&&(i[u].content=i[u].content.toLowerCase(),u=-1):"h"===e.content[0].toLowerCase()?(o=n,u=-1):u=-1:u>=0&&n>0&&"0"===e.content&&"."===i[n-1].content&&n===u+2&&(i[u].content=i[u].content.toLowerCase());r.y4=i.map((function(t){return t.content})).join("")},t.prototype.Vi=function(r,n,i,o,u,a,s){var f,c,y,m,h,M,d,l,v,b,g;if(o||u){for(f=[],c=!0,!t.hasDate(r)&&t.hasTime(r)&&(c=!1),y=!1,m=0;m<r.length;m++){if(h=r[m],t.hasTime(h)&&!y?c=!1:t.hasDate(h)&&!y&&(c=!0),o&<(h,n[0],s)&&c||u&<(h,n[0],s)&&!c){for(M=!0,d=0;d<n.length;d++)if(d+m>=r.length||!lt(n[d],r[d+m],s)){M=!1;break}if(l=m+n.length-1,M&&l+1<r.length){for(v=r[l],b=-1,b=l+1;b<r.length&<(v,r[b],s);b++);b>l+1&&(m=b,M=!1)}M&&!y&&f.splice(0,0,m)}'"'===h&&(y=!y)}if(a.y4=r,f.length>0){for(m=0;m<f.length;m++)g=f[m],a.y4=e.zf.VP(a.y4,g,n.length),a.y4=e.zf.Eit(a.y4,g,i);return!0}return!1}return!1},t.hasTime=function(t){return e.zf.hD(t,b.CHt[0],!0)>-1||e.zf.hD(t,b.IHt[0],!0)>-1},t.hasDate=function(t){return e.zf.hD(t,b.fHt[0],!0)>-1||e.zf.hD(t,b.bHt[0],!0)>-1},t.a0=function(t,r){return gt(t,r||g)},t}(),r.Hf=X,Z=function(){function t(t,r){var n,e,i;if(Ft.call(this,r),n=this,"h"===(e=B(t)[0]))i=3600;else if("m"===e)i=60;else{if("s"!==e)throw new Error(h().Exp_TokenIllegal);i=1}n.XUt=function(t){var r=t/1e3/i;return Math.abs(r-Math.round(r))<1e-6?Math.round(r):Math.floor(r)}}return t.Name="ABSTimeFormatPart",t}(),Q=function(){function t(t,r){var n,e;Ft.call(this,r),null!==(n=N.exec(t))&&(e=Number(n[1]),(e-=1)>=0&&e<$.length&&(t=$[e])),this.foreColor=t}return t.prototype.toString=function(){return yt(this.foreColor)},t.Name="ColorFormatPart",t}(),tt=function(){function t(t,r,n,e){var i,o,u,a,s,f;function c(t,r){var n,e,i,o,u,a=[],s='"';if(t===d||""===t)return a;for(n=!1,e=[],i=!1,o=0;o<t.length;o++)(u=t[o])!==s||n||(i=!i),n||i||u!==r?e.push(u):(a.push(e.join("")),e=[]),n="\\"===u&&!n;return a.push(e.join("")),a}pt.call(this,r,n,e),(i=this).qUt=!1,i.JUt=1,i.$Ut=mt(t),o=vt(t),r&&(o=Mt(o,i.j9t.Nat,i.j9t.currencySymbol())),(u=(o=mt(o)).indexOf("/"))>-1&&(a=c(o,"/"))&&2===a.length&&(i.tHt=a[1],(s=a[0])&&((f=s.lastIndexOf(" "))>-1?(i.nHt=st(s,0,f),i.eHt=st(s,f+1,s.length-f-1)):i.eHt=s)),i.iHt=o}return t.prototype.formatString=function(){return this.$Ut},t.prototype.format=function(r){var n,e,i,u,a,s,f,c,y,m,h,M,l,v,b,g,p,F,_,w,D,H;return x(r,"boolean")?r.toString().toUpperCase():(n=this,e=o.lt.uJ(r),E(e)||!isFinite(e)||E(r)?"string"==typeof r?r:d:(i=j(n.cultureName),n.eHt&&n.tHt?(m={value:0},h={value:0},M={value:0},l=n.GHt(),t.getFraction(e,l,m,h,M)?((v=t.getGCD(h.value,M.value))>1&&(h.value/=v,M.value/=v),n.nHt?(y="",1===M.value&&(m.value+=h.value,h.value=0,M.value=0),(b=P(A(m.value,n.nHt,i)))&&"0"!==b&&(y+=b,y+=" "),0===m.value&&e<0&&(y+=i.NumberFormat.negativeSign),0===e&&(y+="0"),a=n.tHt,s=parseFloat(a),!E(s)&&s>0&&(0!==h.value&&0!==M.value&&(h.value*=s/M.value),M.value=s,a=a.replace(/^\d+/,t.toNumberPlaceholder(s)),c=(f=Math.ceil(h.value))-h.value,h.value=c<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString())),g=n.eHt,p=parseFloat(g),E(p)||0!==p||((F=g.length)>(w=(_=h.value.toString()).length)?g=g.substr(0,F-(F-w)):F<w&&(_=_.substr(0,w-(w-F)),h.value=parseInt(_,10))),D=n.UHt(h.value,M.value,g,a,i),0===h.value&&(D=D.replace(/./g," "),""===b)?"0 "+D:""===(y+=D)?"0":y):(y="",H=m.value*M.value+h.value,a=n.tHt,(s=parseFloat(a))>0?(H*=s/M.value,M.value=s,y+=(H=(c=(f=Math.ceil(H))-H)<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString()))+"/"+M.value):y+=n.UHt(H,M.value,n.eHt,n.tHt,i),0===H?"0":y)):e.toString()):u=Nt(u=A(e,n.iHt,i),n.qUt,n.j9t,n.aHt,n.cultureName)))},t.prototype.parse=function(t){var r,n,i,o,u,a,s,f,c,y,m,h,M,l,b,g=this;if(!t||t===K.oHt)return d;if("TRUE"===(r=G(t))||r===z()&&z().boolean_true)return!0;if("FALSE"===r||r===z()&&z().boolean_false)return!1;if((n="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),i=g.eHt&&g.tHt,o=g.zHt(g.iHt).HHt,(i||o)&&(u=0,i&&g.nHt&&0<(a=(t=t.trim()).lastIndexOf(" "))&&a<t.length-1&&(u=parseInt(t.substr(0,a),10),t=t.substr(a+1)),0<(s=t.indexOf("/"))&&s<t.length-1&&(f=t.substr(0,s),c=t.substr(s+1),!(E(f)||E(c)||(y=parseInt(f,10),m=parseInt(c,10),E(y)||E(m)||0===m)))))return u+y/m;if(t=g.VHt(t),t=g.YHt(t),M=(h=g.zHt(t)).HHt,l=h.$6t,g.ZHt(l)&&(l=e.zf.OUt(l,I(g.cultureName).numberGroupSeparator,"",!1),b=S.dUt(l,g.cultureName),!E(b)&&isFinite(b))){if(M&&(b=O(b/100,15)),n){if("-"===l.charAt(0)||"+"===l.charAt(0))return d;b=-1*v(b)}return b}return d},t.prototype.GHt=function(){var t,r,n=this,e=n.tHt,i=0;if(e)for(t=e.length,r=0;r<t&&e[r].match(/[#?\d]/);r++)i++;return i},t.prototype.ZHt=function(t){var r,n="",e=0,i=0,o=0,u=d,a=I(this.cultureName);for(r=t.length-1;r>-1;r--){if(t[r]===a.numberDecimalSeparator)e++,o>0&&(u=!1),n="";else if("e"===B(t[r])){if(i++,n="",r===t.length-1)return!1}else if(t[r]===a.numberGroupSeparator)u=3===n.length,o++,n="";else if("-"===t[r]||"+"===t[r]){if(r>0&&"e"!==B(t[r-1]))return!1}else{if(!J(t[r]))return!1;if(n+=t[r],0===r&&0===parseInt(n,10)&&u)return!1}if(e>1||i>1||!1===u)return!1}return!0},t.prototype.VHt=function(t){var r,n,i,o,u,a,s,f=t,c=[];for(r=0;r<f.length;r++)J(f[r])&&c.push(r);for(i=[(n=I(this.cultureName)).currencyDecimalSeparator,n.currencyGroupSeparator,n.currencySymbol,M,n.nanSymbol,n.negativeInfinitySymbol,n.negativeSign,n.numberDecimalSeparator,n.numberGroupSeparator,n.percentDecimalSeparator,n.percentGroupSeparator,n.percentSymbol,n.perMilleSymbol,n.positiveInfinitySymbol,n.positiveSign],o=f.length-1;o>-1;o--)if(u=f[o],U(u)&&i.indexOf(u.toString())<=-1)(o<c[0]||c[c.length-1]<o)&&(f=e.zf.VP(f,o,1));else if(("-"===u||"+"===u)&&(a=o>0?f[o-1].toString():d,(s=["e","E","(",I(this.cultureName).currencySymbol,M]).indexOf(a)<0))break;return f},t.prototype.YHt=function(t){var r,n;if(e.zf.fJ(t,M)){if((r=e.zf.VP(t,0,1)).indexOf(M)<0)return r}else if(n=I(this.cultureName).currencySymbol,M!==n&&e.zf.fJ(t,n)&&(r=e.zf.VP(t,0,n.length)).indexOf(n)<0)return r;return t},t.prototype.zHt=function(t){var r=I(this.cultureName).percentSymbol,n=!0,i=t;return e.zf.fJ(t,r)?i=e.zf.VP(t,0,r.length):e.zf.dT(t,r)?i=e.zf.VP(t,t.length-r.length,r.length):n=!1,e.zf.OS(i,r)&&(n=!1),{$6t:i,HHt:n}},t.prototype.UHt=function(t,r,n,e,i){var o=P(A(t,n,i)),u="0."+r,a="#."+e,s=P(A(u,a,i,!0)),f=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",c=o+"/"+s.substr(s.indexOf(f)+1);return""===n&&(c=t+c),""===e&&(c+=r),c},t.getGCD=function(t,r){var n,e,i;if(0===t)return v(r);if(0===r)return v(t);for(i=(n=Math.max(t,r))%(e=Math.min(t,r));0!==i;)i=(n=e)%(e=i);return v(e)},t.getFraction=function(t,r,n,e,i){var o,u,a,s,f,c,y,m,h,M=0,d=0,l=0,b=0,g=Math.ceil;for(t>0?1===(b=t-g(t)+1)?(b=0,M=t):M=g(t)-1:t<0&&(M=g(t),b=g(t)-t),(o=Math.pow(10,r-1))<2&&(o=2),(u=Math.pow(10,r)-1)<2&&(u=2),a=!1,s=0,f=o;f<=u&&(c=f*b,y=Math.round(c),h=v((m=y/f)-b),!((!a||h<v(s-b))&&(a=!0,s=m,d=y,l=f,h<1e-6)));f++);return n.value=M,e.value=d,i.value=l,a},t.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},t}(),rt=function(){function t(r,n,e,i){pt.call(this,n,e,i),arguments.length>0?(t.rHt(r)||L(),this.$Ut=r):this.$Ut="General",this.JUt=0}return t.rHt=function(t){var r,n,e="",i=!1,o=-1,u=t.length;for(r=0;r<u;r++)'"'===(n=t[r])?o=(i=!i)?r:-1:i||(e+=n);return o>0&&(e+=t.substring(o,u)),!(e.indexOf("0")>=0||e.indexOf("#")>=0||e.indexOf(".")>=0||e.indexOf("@")>=0)},t.prototype.WHt=function(){var t,r=this;return r.QHt||(t=Mt(t=r.$Ut,"General",C),r.QHt=new tt(t,r.j9t,r.aHt,r.cultureName),r.QHt.qUt=!0),r.QHt},t.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new tt("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},t.prototype.formatString=function(){return e.zf.Vi(this.$Ut,"@NumberFormat","General")},t.prototype.format=function(t){var r,n,i,u=this;if(o.lt.q8(t,u.cultureName)){if(r=!u.j9t||u.j9t.allowScience(),(n=o.lt.uJ(t))!==l&&n!==d)return v(n)>99999999999&&r||v(n)<1e-11&&0!==n?u.KHt().format(t):u.WHt().format(t)}else{if(x(t,"string"))return i=dt(i=e.zf.Vi(u.formatString(),'"',"")),t;if(x(t,"boolean"))return t.toString().toUpperCase()}return""},t.prototype.parse=function(t){var r,n,o,u,s,f,c,y,m,h,M,b,g,p,F;if(K.Ji(t))return d;if("number"==typeof t)return t;if(r=!1,n=t.trim(),(o=e.zf.hD(n,"-",!1))>0&&!lt(n.charAt(o-1),"E",!0)&&(r=!0),f=(s=(u=j(this.cultureName)).DateTimeFormat).dateSeparator,c=s.timeSeparator,y=s.monthNames,m=s.abbreviatedMonthNames,h=function(t,r){var n,i,o;if(!r||0===r.length)return!1;for(n=!1,i=0,o=r.length;i<o;i++)if(e.zf.OS(t,r[i],!0)){n=!0;break}return n},(r||e.zf.OS(n,f,!1)||e.zf.OS(n,c,!1)||e.zf.OS(n,"/",!1)||e.zf.OS(n,":",!1)||e.zf.OS(n,"-",!1)||e.zf.OS(n,"\u5e74",!1)||e.zf.OS(n,"\u6708",!1)||e.zf.OS(n,"\u65e5",!1)||h(n,y)||h(n,m)||"ja-JP"===u.name()&&a.XPt.gGt.indexOf(n[0].toUpperCase())>=0&&e.zf.OS(n,".",!1))&&(M=i.ct.yU(n)))return M;if((g="-"===n.charAt(0))||"+"===n.charAt(0)){if("("===(n=e.zf.VP(n,0,1)).charAt(0)&&")"===n.charAt(n.length-1))return t}else if("("===n.charAt(0)&&")"===n.charAt(n.length-1)&&(p=!0,"-"===(n=(n=n.substring(1,n.length-1)).trim()).charAt(0)||"+"===n.charAt(0)))return t;return(b=this.WHt().parse(n))!==d&&b!==l?(F=p&&x(b,"boolean"))?t:(p||g)&&x(b,"number")?-1*v(b):b:t},t}(),nt=function(){function t(t,r,n,e){var i,o=this;pt.call(o,r,n,e),i=vt(t,!1),r&&(i=Mt(i,o.j9t.Nat,o.j9t.currencySymbol())),i=dt(i=mt(i)),o.pU=i,o.JUt=3}return t.prototype.format=function(t,r){var n,e,o,u=this;try{return n=void 0,e=void 0,e=t instanceof Date?i.ct.o0(t).toString():ft(t),o=u.XHt(u.pU),n=u.qHt(e,o.formatTokens,t,o.hasAtPart,r)}catch(t){return""}},t.prototype.parse=function(t){return t||""},t.prototype.formatString=function(){return this.pU},t.prototype.XHt=function(t){var r,n,e=[],i=!1,o="",u=!1,a=d;for(n=0;n<t.length;n++)r=t.charAt(n),u?('"'!==r?o+=r:(o+=r,e.push(o),o="",u=!1),a=r):"*"!==a&&"_"!==a&&"\\"!==a||""===o?"*"!==r&&"_"!==r&&"\\"!==r?"@"!==r?'"'!==r?(o+=r,a=r):(a=r,""!==o&&e.push(o),o=r,u=!0):(a=r,""!==o&&(e.push(o),o=""),e.push(r),i=!0):(a=r,""!==o&&(e.push(o),o=""),o+=r):(o+=r,e.push(o),o="");return""!==o&&e.push(o),{formatTokens:e,hasAtPart:i}},t.prototype.qHt=function(t,r,n,e,i){var o,u,a=[],s=!1;if("string"!=typeof n||e||i)for(o=r.length-1;o>=0;o--)"*"===(u=r[o])[0]?s||(s=!0,a.push({type:"fillingChar",value:u[1]})):"_"===u[0]?a.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&a.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?a.push({type:"text",value:"@"}):"@"===u[0]?a.push({type:"text",value:t}):a.push({type:"text",value:u});else a.push({type:"text",value:n});return a.reverse()},t}(),et=function(){return{pattern:H,formatter:["d-mmm","mmm-yy",R().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",R().shortDatePattern+" h:mm",R().shortDatePattern+" h:mm:ss",R().shortDatePattern+" h:mm:ss.0"]}},it=function(){function t(t,r){var n=this;0===arguments.length?(n.formatCached="General",n.E9t=new rt):n.Hc(t,r)}return t.prototype.Hc=function(r,n){var e,i,o,u,s,f,c,y,m,h,M,v,b,g,p,F,_;for(r!==d&&r!==l||L(),e=r,(i=this).formatCached=r,o="",u="",s=!1,f=!1,c=!1,y=[],m=0;m<r.length;m++)'"'===(h=r[m])?(f=!f,u+=h):f?u+=h:"["===h?(s&&L(),u&&(o||(o=""),o+=u),u=h.toString(),s=!0):"]"===h?(s||L(),u?(M=(u+=h).toString(),(v=_t(u.toString()))?"ABSTimeFormatPart"===v.Name?(y.push(new v(t.preProcessPart(M),M)),o+=u):M===a.XPt.eraExcelFormatter?(i.addPart(v,a.XPt.eraInternalFormatter),c=!0):i.addPart(v,M):(o+=b=t.partToNormalStr(M),e=Mt(r,M,b)),u=""):L(),s=!1):u+=h;u?s?L():o+=u:o||(o=i.$Ht()),i.localeIDFormatPart&&(n=i.localeIDFormatPart.cultureInfo().name()),F=(p=wt(o,g=i.conditionalFormatPart))._type,_=p.uHt?e:o,F?i.E9t=new F(_,i.localeIDFormatPart,i.dbNumberFormatPart,n,y.length>0?y:d,c):L()},t.prototype.$Ht=function(){var r,n=this,e="";return n.dbNumberFormatPart&&((r=t.proNames.some((function(t){return"dbNumberFormatPart"!==t&&n[t]})))||(e="General")),e},t.prototype.formatString=function(){var r,n,e,i=this,o="";for(r=0,n=t.proNames.length;r<n;r++)i[e=t.proNames[r]]&&(o+=i[e].toString());return o+=i.E9t.formatString()},t.prototype.addPart=function(r,n){var e,i,o,u=this,a=t.proNames,s=t.preProcessPart(n);for(e=0,i=a.length;e<i;e++)if(lt(o=a[e],r.Name,!0)){if(u[o])throw new Error(h().Exp_DuplicatedDescriptor);u[o]=new r(s,n)}},t.prototype.format=function(t,r){return this.E9t.format(t,r)},t.prototype.parse=function(t){return this.E9t.parse(t)},t.checkFormatter=function(t){if(!t||t===K.oHt)throw new Error(h().Exp_TokenIllegal)},t.preProcessPart=function(r){t.checkFormatter(r);var n=ht(r);return t.checkFormatter(n),n},t.partToNormalStr=function(r){var n=t.preProcessPart(r);return n[0]===M&&(n=n.slice(1)),'"'+n+'"'},t.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],t}(),ot=function(t){function r(r,n){var e=t.call(this,r,n)||this,i=e;return i.lHt=!0,i.PropertyChanged=[],K.Ji(r)&&(r="General"),i.formatCached=r,i.cultureName=n,i.init(),e}return ut(r,t),r.prototype.toJSON=function(){var t=this,r={formatCached:t.formatCached};return t.cultureName&&(r.customerCultureName=t.cultureName),"general"===B(t.formatCached)&&delete r.formatCached,r},r.prototype.hasFormattedColor=function(){var t,r,n=this;for(t in _)if(_.hasOwnProperty(t)&&(r=n.getFormatter(_[t]))&&r.colorFormatPart)return!0;return!1},r.prototype.formatString=function(t){var r,n,e,i,o=this;if(0===arguments.length){for(r=K.oHt,n=0,e=o.formatters.length;n<e;n++)r+=(i=o.formatters[n]).formatString(),n!==e-1&&(r+=";");return r}if(!t)throw new Error(h().Exp_ValueIsNull);return o.formatters=d,o.formatCached=t,o.init(),o.tzt("formatString"),o},r.prototype.getFormatter=function(t){var r=this;return r.formatters&&r.formatters[t]},r.prototype.getPreferredEditingFormatter=function(t){var n,e,i,u=R(this.cultureName),a=I(this.cultureName),s=r.defFormatter;return x(t,"TimeSpan")?s(u.longTimePattern):x(t,"DateTime")?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",s(u.shortDatePattern+e)):o.lt.q8(t,this.cultureName)?s((i=o.lt.uJ(t))>=1e21||i<=1e-17&&i>0||i<=-1e21||i<0&&i>=-1e-17?null!==(n=a.scientificNotation)&&void 0!==n?n:"0.##############E+00":C):s("General")},r.prototype.getPreferredDisplayFormatter=function(t,n){var u,a,s,f,c,y,m,h,M,l,v,b,g,p,F,_,w,D,H,$,N,k,S,C,P,A=this,O=r.defFormatter;if(n||(n={value:d}),n.value=d,K.Ji(t))return new r;if(u=t,a=n.value=A.parse(u),x(a,"DateTime")||x(a,"TimeSpan")){for(f=(s=et()).pattern,c=s.formatter,(h=(m=(y=j(A.cultureName)).DateTimeFormat).preselectedFormatters).length>0&&(f=f.concat([h]),c=c.concat([h[0]])),"ja-JP"===y.name()&&(f=f.concat([m.eraFormatter]),c=c.concat(["ge.M.d"]),M=y.QPt.filter((function(t){return"ggge"===t.substr(0,4)})),f=f.concat([M]),c=c.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),l=y.QPt.filter((function(t){return"gge"===t.substr(0,3)})),f=f.concat([l]),c=c.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),v=y.QPt.filter((function(t){return"ge"===t.substr(0,2)})),f=f.concat([v]),c=c.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),b=0;b<f.length;b++)for(g=f[b],p=0;p<g.length;p++)if(F=g[p],(_=i.ct.yU(t,F))&&_-a===0)return new r(c[b])}else if(o.lt.q8(a,A.cultureName)){if(D=(w=I(A.cultureName)).currencySymbol,H=w.numberDecimalSeparator,$=w.percentSymbol,N=w.numberGroupSeparator,k="E",P=(C=(S=e.zf.OS)(u,H))?".00":"",u[0]===D)return O(K.I5("{0}#,##0{1};[Red]({0}#,##0{1})",D,P));if(S(u,k,!0))return O("0.00E+00");if(u[0].toString()===$||u[u.length-1].toString()===$)return O(K.I5("0{0}%",P));if(S(u,N))return O(K.I5("#,##0{0}",P))}return O("General")},r.prototype.format=function(t,r){var n,e,i,u,a,s,f;if(x(t,"boolean"))return z()&&(t=t?z().boolean_true:z().boolean_false),t.toString().toUpperCase();if(i=0,u=(n=this).vn(t)){a=u.colorFormatPart,r&&a&&(r.conditionalForeColor=r.value=a.foreColor),(e=o.lt.q8(t,n.cultureName))&&(i=o.lt.uJ(t)),s=K.oHt;try{e&&u===n.getFormatter(_.jHt)&&0!==this.expressionNumber?(s=u.format(u.considerNegSymbol?i:v(i)))===d&&x(t,"string")&&(s=t):(s=u.value)===l&&(f=!n.lHt&&u===n.getFormatter(_._text),s=u.format(t,e||f)),r&&(r.content=k(s)?s:[{type:"text",value:s}]),k(s)&&(s=S.mUt(s))}catch(r){x(t,"string")&&(s=t.toString())}return s}return e&&i<0?"-".toString():x(t,"string")?t.toString():t===l||t===d?K.oHt:t.toString()},r.prototype.parse=function(t){var r=this;return r.formatters&&r.formatters.length>0?r.formatters[0].parse(t):d},r.prototype.init=function(){var t,r,n,e=this,i=e.formatCached;for(K.Ji(i)&&L(),e.formatters=[],t=xt(i),e.lHt=1===t.length,(!t||t.length<1||t.length>4)&&L(),r=0;r<t.length;r++)-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?L():this.hasAt=!0),n=new it(t[r],e.cultureName),e.formatters.push(n);e.getFormatter(_.EHt)||L(),this.nzt()},r.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;_=o.lt.Dh({},w[t]),this.hasAt&&0!==this.expressionNumber&&(_._text=this.formatters.length-1)},r.prototype.vn=function(t){var r,n,e,i,u,a,s,f,c,y,m,h=this;if(h.nzt(),n=(r=h.getFormatter(_.EHt))&&r.conditionalFormatPart,e=h.getFormatter(_._text),n&&(_.OHt=2,this.hasAt||(_._text=3)),"string"==typeof t&&E(t))return e||(n?t:r);if(o.lt.q8(t,h.cultureName)||x(t,"boolean")){if(i=h.getFormatter(_.jHt),u=h.getFormatter(_.OHt),a=o.lt.uJ(t),s=n&&r.conditionalFormatPart.isMeetCondition(a),c=(f=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(a),y=void 0,h.lHt||(n?s:a>0||0===a&&!u))y=r;else if(f?c:a<0)y=i;else if(u)y=u;else if(i){if(n&&f)return{value:m=a+""};y=i}return y&&(!n||f||y!==i||u||(y.considerNegSymbol=!0),n&&f&&y===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(y.considerNegSymbol=!0),this.expressionNumber<=1&&(y.considerNegSymbol=!0)),y}return d},r.prototype.tzt=function(t){var r,n,e=this;if(e.PropertyChanged)for(r=0;r<e.PropertyChanged.length;r++)"function"==typeof(n=e.PropertyChanged[r])&&n(e,t)},r.defFormatter=function(t){var n=r[t];return n||(n=new r(t),r[t]=n),n},r.test=function(t){var r,n,e=!0;try{r=new c.Lexer(t),(n=new y.Parser(r)).parse()}catch(t){e=!1}return e},r}(W),r.GeneralFormatter=ot},"./src/plugins/formatter/formatterGrammar/interface.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=r.BACKSLASH=r.UNDERLINE=r.ASTERISK=r.DOUBLE_QUOTE=r.SEMICOLON=void 0,r.SEMICOLON=";",r.DOUBLE_QUOTE='"',r.ASTERISK="*",r.UNDERLINE="_",r.BACKSLASH="\\";var n=function(){throw new Error("Invalid Number Format")};r.throwError=n},"./src/plugins/formatter/formatterGrammar/lexer.ts":function(t,r,n){var e,i,o,u,a;Object.defineProperty(r,"__esModule",{value:!0}),r.Lexer=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(t){var r;return!!["0","#","?",".","%",",","/",e.BACKSLASH,e.ASTERISK,e.UNDERLINE,"@"].find((function(r){return r===t}))},o=function(t){var r;return[e.BACKSLASH,e.ASTERISK,e.UNDERLINE].find((function(r){return r===t}))},u=function(t,r){return{type:t,value:r}},a=function(){function t(t){this.Fmt=[],this.DZe=t,this.vHr()}return t.prototype.vHr=function(){for(var t,r,n=0,a=this.DZe;n<a.length;n++)if(t=a[n],i(t)){if(o(t)){this.Fmt.push(u("symbol",t)),n<a.length-1&&(this.Fmt.push(u("char",a[n+1])),n++);continue}this.Fmt.push(u("symbol",t))}else if(t!==e.SEMICOLON){if(t===e.DOUBLE_QUOTE){if(-1!==(r=a.slice(n+1).search(e.DOUBLE_QUOTE))){r=r+n+1,this.Fmt.push(u("text",a.slice(n+1,r))),n=r;continue}(0,e.throwError)()}this.Fmt.push(u("char",t))}else this.Fmt.push(u("semicolon",t));this.Fmt.push(u("EOF",""))},t.prototype.jbi=function(){return this.Fmt.shift()},t}(),r.Lexer=a},"./src/plugins/formatter/formatterGrammar/parser.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(){function t(t){this.bHr=t,this.SYr=t.jbi()}return t.prototype.TYr=function(t){this.SYr.type===t?this.SYr=this.bHr.jbi():(0,e.throwError)()},t.prototype.parse=function(){for(var t=[];"EOF"!==this.SYr.type;)t.push(this.xYr()),t.length>4&&(0,e.throwError)();return{type:"numberFormat",body:t}},t.prototype.xYr=function(){for(var t,r=[];"semicolon"!==this.SYr.type&&"EOF"!==this.SYr.type;)"symbol"===(t=this.SYr.type)?r.push(this.wHr()):r.push(this.yHr());return"semicolon"===this.SYr.type&&this.TYr("semicolon"),{type:"formatPart",body:r}},t.prototype.wHr=function(){var t,r=this.SYr.value;return r===e.ASTERISK?(this.TYr("symbol"),t={type:"asterisk",body:this.SYr.value},this.TYr("char")):r===e.BACKSLASH?(this.TYr("symbol"),t={type:"char",body:this.SYr.value},this.TYr("char")):r===e.UNDERLINE?(this.TYr("symbol"),t={type:"underline",body:this.SYr.value},this.TYr("char")):(t={type:"symbol",body:this.SYr.value},this.TYr("symbol")),t},t.prototype.yHr=function(){var t,r=this.SYr.type;return"char"===r?(t={type:"char",body:this.SYr.value},this.TYr("char")):"text"===r&&(t={type:"text",body:this.SYr.value},this.TYr("text")),t},t}(),r.Parser=i},"./src/plugins/slicer/slicer.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/slicer/slicer.ts"),r)},"./src/plugins/slicer/slicer.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h;function M(t){return"object"==typeof t&&t!==o&&t.text!==i}function d(t,r){var n,e,f;if(t===o||t===i)return!1;if(x(t)===u)r.value=t;else if(x(t)===s)r.value=t?1:0;else if(t instanceof Date)r.value=m.o0(t);else{if(x(t)!==a)return!1;if(0===k(t=t.trim()))return!1;if(n=!1,"%"===t.charAt(k(t)-1)&&(n=!0,t=t.substr(0,k(t)-1)),k(t)>=2&&"0"===t[0]&&"x"===t[1])return!1;if(e=Number(t).valueOf(),isNaN(e)||!isFinite(e)){if(f=new Date(t),isNaN(f))return!1;e=m.o0(f)}n&&(e/=100),r.value=e}return!0}function l(t){var r,n,e,i,o,u,a,s,f,c,y,m,h,M,d,l=t.ezt;for(l||(t.izt=[],t.rzt=[]),r=l?t.ozt:t.izt,n=t.azt,e=t.uzt,i=l?t.szt:t.rzt,o=t.Mct,u=t.czt,a=t.fzt,s=t.SIr(),c={},y=0;y<s;y++){for(m=!1,h=void 0,M=0;M<k(o)&&(h=o[M],l&&h===t.lzt||(e[h]?(N(c[d=t.columnNames[h]])&&(c[d]=t.getColumnIndex(d)),f=t.fue(c[d],y),m=!e[h][f]):n[h]&&(m=!n[h][y]),!m));M++);!m&&l&&(u?(N(c[d=t.columnNames[h]])&&(c[d]=t.getColumnIndex(d)),m=!u[f=t.fue(c[d],y)]):a&&(m=!a[y])),m||(r[y]=!0)}for(M=0;M<k(r);M++)r[M]&&i.push(M)}function v(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?m.o0(t):t}function b(t){var r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<k(r);n++)e[(r[n]+"").toUpperCase()]=n}function g(t,r){var n,e,i,o,u,a,s,f=t.vzt,c=t.pzt,y=t.mzt,m=t.gzt,h=m[r]=[];for(t.bzt=[],t.xIr(r,[]),f[r]=[],c[r]={},y[r]=[],n={},e=0;e<t.SIr();e++)o=M(i=t.JNr(e,r))?i.text.trim():i,t.TIr(r,o),(u=n[v(o)])?(u.list.push(e),h[e]=u.index):(a=[e],f[r].push(o),y[r].push(a),s=k(y[r])-1,c[r][o]=s,h[e]=s,n[v(o)]={list:a,index:s})}function p(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,d,l=t.yzt,v=t.getColumnIndex(r),b=[];if(!v)return b;if(e=t.ezt?t.wzt:t.Mzt[v],i=t.izt,!e)return b;for(l[v]||t.Czt(v),o=[],u=l[v],a=0;a<k(u);a++)f=M(s=t.JNr(a,v))?s.value:s,o[u[a]]=f;for(c=t.Szt[v],a=0;a<k(e);a++){for(y=e[a],m=!1,d=(h=t.Tzt(o,y)).start;d<=h.end;d++)if(i[c[d]]){m=!0;break}m!==n&&b.push(y)}return b}function F(t,r){var n,e,i,o,u=[],a=t.getColumnIndex(r);if(a>=0){for(n=k(t.getData(r)),e=t.ezt?t.ozt:t.izt,i=0;i<n;i++)e[i]||(o=t.fue(a,i),-1===u.indexOf(o)&&u.push(o));return u}}function _(t,r){var n,e,i,o,u,a,s,f=[],c={},y=t.getColumnIndex(r);if(y>=0)for(n=t.czt||t.fzt,e=t.uzt[y]||t.azt[y],i=t.ezt&&y===t.lzt?n:e,u=k((o=!!t.azt[y])?t.getData(r):t.getExclusiveData(r)),a=0;a<u;a++)i&&!i[a]&&(c[s=o?t.fue(y,a):a]||(c[s]=!0,f.push(s)));return f}function w(t,r){var n,e,i,o,u,a,s,f,c,y={},m=t.columnNames,h=k(m);for(n=0;n<h;n++)if(m[n]!==r)for(e=_(t,m[n]),i=0;i<k(e);i++)for(o=t.getRowIndexes(m[n],e[i]),u=0;u<k(o);u++)y[o[u]]||(y[o[u]]=!0);for(a={},h=t.SIr(),n=0;n<h;n++)s=t.getExclusiveRowIndex(r,n),y[n]||(a[s]=!0);for(f=k(t.getExclusiveData(r)),c=[],n=0;n<f;n++)a[n]||c.push(n);return c}function D(t,r,n,e){var i,o,u,a,s,f,c,y,m=t.getColumnIndex(r),h=t.yzt;for(h[m]||t.Czt(m),i=[],o=h[m],u=0;u<k(o);u++)s=M(a=t.JNr(u,m))?a.value:a,i[o[u]]=s;for(f=[],u=0;u<k(n);u++)for(c=t.Tzt(i,n[u]),y=0;y<k(o);y++)o[y]>=c.start&&o[y]<=c.end&&(f[y]=!0);e?(t.fzt=f,t.wzt=n):(t.Mzt[m]=n,t.azt[m]=f,delete t.uzt[m],delete t.Azt[m]),l(t)}function H(t,r,n,e){var i,o=t.getColumnIndex(r),u=[];for(i=0;i<k(n);i++)u[n[i]]=!0;e?t.czt=u:(t.uzt[o]=u,t.Azt[o]=n,delete t.Mzt[o],delete t.azt[o]),l(t)}function $(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function N(t){return t===i||t===o}function x(t){return typeof t}function k(t){return t?t.length:0}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralSlicerData=r.xzt=r.SlicerAggregateType=r.FilteredOutDataType=void 0,e=n("./src/common/util/datetimehelper.ts"),i=void 0,o=null,u="number",a="string",s="boolean",f=e.ct.o0,function(t){t[t.all=0]="all",t[t.byCurrentColumn=1]="byCurrentColumn",t[t.byOtherColumns=2]="byOtherColumns"}(c=r.FilteredOutDataType||(r.FilteredOutDataType={})),function(t){t[t.average=1]="average",t[t.count=2]="count",t[t.counta=3]="counta",t[t.max=4]="max",t[t.min=5]="min",t[t.product=6]="product",t[t.stdev=7]="stdev",t[t.stdevp=8]="stdevp",t[t.sum=9]="sum",t[t.vars=10]="vars",t[t.varp=11]="varp"}(y=r.SlicerAggregateType||(r.SlicerAggregateType={})),m=function(){function t(){}return t.o0=function(t){return f(t)},t.quickSort=function(r){var n,e=k(r),i=[];for(n=0;n<e;n++)i[n]={index:n,value:r[n]};return t.quickSortImp(i)},t.quickSortImp=function(r){var n,e,i,o,u,a,s,f,c=r.length;if(c<=1)return r;for(n=t,i=r[e=Math.floor(c*Math.random())],o=[],u=[],a=[],s=0;s<c;s++)e!==s?(f=n.sortCompare(r[s].value,i.value))<0?o.push(r[s]):f>0?u.push(r[s]):a.push(r[s]):a.push(r[s]);return n.quickSortImp(o).concat(a,n.quickSortImp(u))},t.isEquals=function(t,r){return!(!N(t)&&""!==t||!N(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():x(t)===a&&x(r)===a?t.toLowerCase()===r.toLowerCase():t===r)},t.isGreaterThan=function(r,n){var e=x(r),i=x(n);return e===s?r=r?1:0:r instanceof Date&&(r=t.o0(r)),i===s?n=n?1:0:n instanceof Date&&(n=t.o0(n)),e===i||e!==u&&i!==u?e===a&&i===a?r.toLowerCase()>n.toLowerCase():r>n:i===u},t.sortCompare=function(r,n){var e=t,i=-1,o=N(r)||""===r||x(r)===u&&isNaN(r),a=N(n)||""===n||x(n)===u&&isNaN(n);return o&&a?i=0:o?i=1:a?i=-1:e.isEquals(r,n)?i=0:e.isGreaterThan(r,n)&&(i=1),i},t}(),r.xzt=m,h=function(){function t(t,r){var n=this;n.hzt={},n.dzt=[],n.vzt=[],n.pzt=[],n.mzt=[],n.gzt=[],n.uzt=[],n.Azt=[],n.azt=[],n.Mzt=[],n.izt=[],n.rzt=[],n.Mct=[],n.szt=[],n.ozt=[],n.ezt=!1,n.aT=[],n.Upt=0,n.bzt=[],n.Szt=[],n.yzt=[],n.lue=0,Object.defineProperty(n,"data",{get:function(){return this.VEt()},set:function(t){n.HY(t)}}),n.Izt(t,r),n.AIr()}return t.prototype.AIr=function(){var t,r=this;for(t=0;t<r.SIr();t++)r.izt[t]=!0,r.rzt.push(t)},t.prototype.VEt=function(){return this._data},t.prototype.HY=function(t){this._data=t},t.prototype.SIr=function(){return k(this._data)},t.prototype.JNr=function(t,r){return this._data[t][r]},t.prototype.IIr=function(t,r,n){this._data[t][r]=n},t.prototype.kIr=function(t,r){var n,e=this,i=this._data,o=k(e.columnNames);for(n=0;n<r;n++)i.splice(t,0,new Array(o))},t.prototype.tX=function(t,r){this._data.splice(t,r)},t.prototype.NIr=function(t,r){var n,e=this._data;for(n=0;n<k(e);n++)e[n].splice(t,r)},t.prototype.jIr=function(t,r,n){this.dzt[t][r]=n},t.prototype.DIr=function(t){return!!this.dzt[t]},t.prototype.jEe=function(t){return this.dzt[t]},t.prototype.xIr=function(t,r){this.dzt[t]=r},t.prototype.TIr=function(t,r){this.dzt[t].push(r)},t.prototype._Ir=function(t,r,n){this.dzt[t].splice(r,0,null!=n?n:i)},t.prototype.OIr=function(t,r,n){this.dzt[t].splice(r,n)},t.prototype.EIr=function(t,r){this.dzt.splice(t,r)},t.prototype.inPreview=function(){return this.ezt},t.prototype.Izt=function(t,r){var n=this;n._data=t,n.columnNames=r,b(n)},t.prototype.vue=function(t){var r=this;r.mue&&0===r.lue&&(r.Nzt("onDataChanged",t),r.mue=!1)},t.prototype.gue=function(){this.lue++},t.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},t.prototype.onDataChanged=function(t){var r,n,e,i,o,u,a,s,f,c,y,m=this,h=new Array(k(m.columnNames)),d=m.Azt,v=m.vzt,b=m.uzt,p={};for(r=0;r<k(t);r++)e=(n=t[r]).data,i=n.columnName,o=n.row,N(p[i])&&(p[i]=m.getColumnIndex(i)),u=p[i],o>=m.SIr()&&m.onRowsAdded(o,1,!1),m.IIr(o,u,e),a=M(e)?e.text:e,m.DIr(u)&&m.jIr(u,o,a),h[u]=!0;for(s=0;s<k(h);s++)if(h[s]){for(f=d[s],d[s]=f?[]:void 0,b[s]=f?[]:void 0,c=[],r=0;f&&r<k(f);r++)c.push(v[s][f[r]]);for(g(m,s),r=0;r<k(c);r++)y=m.pzt[s][c[r]],d[s].push(y),b[s][y]=!0}l(m),m.mue=!0,m.vue(t)},t.prototype.Nzt=function(t){var r,n,e,i,o=[];for(r=1;r<arguments.length;r++)o[r-1]=arguments[r];for(n=this.aT||[],e=0;e<k(n);e++)(i=n[e])[t]&&i[t].apply(i,o)},t.prototype.onColumnNameChanged=function(t,r){var n=this,e=n.hzt,i=n.getColumnIndex(t);i<0||(n.columnNames[i]=r,delete e[t.toUpperCase()],e[r.toUpperCase()]=i,n.Nzt("onColumnNameChanged",t,r))},t.prototype.onRowsAdded=function(t,r,n){var e,i,u,a,s,f,c,y,h,M,d,l,v,b=this,g=k(b.columnNames),p=b.vzt,F=b.mzt,_=b.gzt,w=b.uzt,D=b.Azt,H=b.izt,$=b.rzt,N=b.Mct;for(b.bzt=[],b.kIr(t,r),i=0;i<g;i++){for(e=0;e<r;e++)b.DIr(i)&&b._Ir(i,t);if(s=void 0,a=p[i]){for(f=o,c=0;c<k(a);c++){for(y=F[i][c],h=0;h<k(y);h++)y[h]>=t&&(y[h]+=r);m.isEquals(a[c],o)&&(f=y,s=c)}for(f||(f=[],a.push(o),s=k(a)-1,b.pzt[i][o]=s,F[i].push(f),w[i]&&-1===N.indexOf(i)&&(w[i][s]=!0,D[i].push(s))),M=t;M<t+r;M++)f.push(M);for(u=t;u<t+r;u++)_[i].splice(u,0,s)}}for(d=!0,e=0;e<k(N);e++)l=_[i=N[e]][t],!0!==w[i][l]&&(d=!1);for(e=0;e<k($);e++)$[e]>=t&&($[e]+=r);for(u=b.SIr()-1;u>=t+r;u--)H[u]=H[u-r];for(v=k(N)>0,u=t;u<t+r;u++)d&&$.push(u),H[u]=!v;n||b.Nzt("onRowsChanged",t,r,!0)},t.prototype.onRowsRemoved=function(t,r){this.kzt(t,r,!0)},t.prototype.kzt=function(t,r,n){var e,i,o,u,a,s,f,c,y=this,m=y.Azt,h=y.vzt,M=y.uzt,d=k(y.columnNames);for(y.tX(t,r),i=0;i<d;i++){if(y.DIr(i)&&y.OIr(i,t,r),u=[],(o=m[i])&&n){for(e=0;e<k(o);e++){for(a=y.getRowIndexes(y.columnNames[i],o[e]),s=!0,f=0;f<k(a);f++)if(a[f]<t||a[f]>=t+r){s=!1;break}s||u.push(h[i][o[e]])}m[i]=[],M[i]=[]}if(g(y,i),o&&n)for(e=0;e<k(u);e++)c=y.pzt[i][u[e]],m[i].push(c),M[i][c]=!0}n&&l(y),y.Nzt("onRowsChanged",t,r,!1)},t.prototype.onColumnsRemoved=function(t,r){var n,e,i,o,u,a,s,f,c=this,y=[],m=c.Mct,h=t+r;for(n=t;n<h;n++)(e=c.columnNames[n])&&(i=n,y.push(e),-1!==m.indexOf(i)&&c.doUnfilter(e));for(s in o=c.uzt||c.azt,u=c.Azt||c.Mzt,a=c.hzt,c.NIr(t,r),c.bzt=[],c.columnNames.splice(t,r),c.EIr(t,r),c.vzt.splice(t,r),c.pzt.splice(t,r),c.mzt.splice(t,r),c.gzt.splice(t,r),o.splice(t,r),u.splice(t,r),a)a[s]>=t+r&&(a[s]-=r);for(n=0;n<k(y);n++)delete a[(e=y[n]).toUpperCase()],t=c.getColumnIndex(e),-1!==(f=m.indexOf(t))&&m.splice(f,1),c.Nzt("onColumnRemoved",y[n])},t.prototype.Dzt=function(){return this.bzt},t.prototype._zt=function(){return this.Szt},t.prototype.Czt=function(t){var r,n,e,i,o,u,a,s,f,c,y,h=this;for(h.DIr(t)||g(h,t),r=h.SIr(),n=[],e=0;e<r;e++)o=M(i=h.JNr(e,t))?i.value:i,n.push(o);for(u=m.quickSort(n),a=h.bzt[t]=[],s=h.Szt[t]=[],f=h.yzt[t]=[],c=0;c<k(u);c++)y=u[c],a.push(y.value),s.push(y.index),f[y.index]=c},t.prototype.getColumnIndex=function(t){var r=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===r?-1:r},t.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},t.prototype.getFilteredOutRowIndexes=function(){var t,r=this,n=r.SIr(),e=r.ezt?r.ozt:r.izt,i=[];for(t=0;t<n;t++)e[t]||i.push(t);return i},t.prototype.getData=function(t,r){var n,e,i,o,u,a,s,f=this,c=f.getColumnIndex(t);if(c>=0){if(r){for(f.bzt[c]||f.Czt(c),n=f.jEe(c),e=f.bzt[c],o=(i=f.Tzt(e,r)).start,u=i.end,a=[],s=o;s<=u;s++)a.push(n[f.Szt[c][s]]);return a}return f.DIr(c)||g(f,c),f.jEe(c)}return[]},t.prototype.aggregateData=function(t,r,n){var e,o,u,a,s,f,c,y,m,h=this,M=h.getColumnIndex(t);return M<0?i:(h.bzt[M]||h.Czt(M),a=k(u=h.bzt[M]),e=(s=h.Tzt(u,n)).start,o=s.end,5===r?e>=a?i:u[e]:4===r?o<0?i:u[o]:3===r?o<e?0:o-e+1:(c=(f=h.Ezt(u,r,e,o)).data1,y=f.data2,m=f.data3,1===r?c/=y:7===r||10===r?(c=(m*y-c*c)/(m*(m-1)),c=7===r?Math.sqrt(c):c):8!==r&&11!==r||(c=(m*y-c*c)/(m*m),c=8===r?Math.sqrt(c):c),c))},t.prototype.Ezt=function(t,r,n,e){var u,a,s,f=6===r?1:0,c=0,y=0;for(u=n;u<=e;u++)(a=t[u])===o&&a===i||d(a,s={value:o})&&(a=s.value,1===r?(f+=a,c++):2===r?f++:9===r?f+=a:6===r?f*=a:7!==r&&8!==r&&10!==r&&11!==r||(f+=a,c+=a*a,y++));return{data1:f,data2:c,data3:y}},t.prototype.Tzt=function(t,r){var n=k(t),e,o,u,a;if(r){if(r.min===-1/0)e=0;else for(u=0;u<n;u++)if(a=t[u],m.isEquals(r.min,a)||m.isGreaterThan(a,r.min)){e=u;break}if(e===i&&(e=n),o===1/0)o=n-1;else{for(u=n-1;u>=0;u--)if(a=t[u],m.isEquals(a,r.max)||m.isGreaterThan(r.max,a)){o=u;break}o===i&&(o=-1)}}else e=0,o=n-1;return{start:e,end:o}},t.prototype.getExclusiveData=function(t){var r=this,n=r.vzt,e=r.getColumnIndex(t);return e>=0?(n[e]||g(r,e),n[e]):[]},t.prototype.getRowIndexes=function(t,r){var n=this,e=n.getColumnIndex(t);return e>=0?(n.gzt[e]||g(n,e),n.mzt[e][r]):[]},t.prototype.getExclusiveRowIndex=function(t,r){var n=this,e=n.getColumnIndex(t);return n.fue(e,r)},t.prototype.fue=function(t,r){var n=this,e=n.gzt;return t>=0?(e[t]||g(n,t),e[t][r]):-1},t.prototype.getFilteredIndexes=function(t){var r=[],n={};return this.jzt(t,r,n),r},t.prototype.jzt=function(t,r,n){var e,i,o,u=this,a=u.ezt?u.szt:u.rzt,s=u.getColumnIndex(t);for(e=0;e<k(a);e++)i=a[e],N(o=u.fue(s,i))||(n[o]?n[o]++:(n[o]=1,r.push(o)))},t.prototype.getFilteredRanges=function(t){return p(this,t,!1)},t.prototype.getFilteredOutRanges=function(t){return p(this,t,!0)},t.prototype.getFilteredOutIndexes=function(t,r){var n=this;return 0===r?F(n,t):1===r?_(n,t):w(n,t)},t.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},t.prototype.detachListener=function(t){var r,n=this.aT||[];for(r=0;r<k(n);r++)if(n[r]===t){n.splice(r,1);break}},t.prototype.suspendFilteredEvents=function(){this.Upt++},t.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},t.prototype.doFilter=function(t,r,n){this.Ozt(t,r,n),this.onFiltered()},t.prototype.Ozt=function(t,r,n){var e=this,i=e.Mct,o=e.getColumnIndex(t);o<0||(n?(e.ezt=!0,e.lzt=o):e.ezt&&$(e,!1),i.indexOf(o)<0&&i.push(o),r.ranges?D(e,t,r.ranges,n):H(e,t,r.exclusiveRowIndexes,n))},t.prototype.clearPreview=function(){$(this,!0)},t.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},t.prototype.Rzt=function(t){var r,n,e=this;e.ezt&&$(e,!1),(r=e.getColumnIndex(t))<0||(delete e.Mzt[r],delete e.azt[r],delete e.uzt[r],delete e.Azt[r],l(e),(n=e.Mct.indexOf(r))>=0&&e.Mct.splice(n,1))},t.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},t.prototype.getListener=function(){return this.aT},t}(),r.GeneralSlicerData=h},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,n){var e=this&&this.hJr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/sparkline/sparkline.ts"),r)},"./src/plugins/sparkline/sparkline.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O,T,E,j,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt,dt,lt,vt,bt,gt,pt,Ft,_t,wt=this&&this.vJr||(Dt=function(t,r){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Dt(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Dt(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),Dt;function Ht(t,r){return{x:t,y:r}}function $t(t,r,n,e){return{x:t,y:r,width:n,height:e}}function Nt(t,r){var n,e,i,o=t[0],u=o&&o.value?o.value:o;for(e=1,i=t.length;e<i;e++)n=(o=t[e])&&o.value?o.value:o,(r&&u>n||!r&&u<n)&&(u=n);return u}function xt(t,r,n,e,i,o,u){o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.stroke()}function kt(t,r,n,e,i,o,u){t.save(),o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.closePath(),t.stroke(),t.restore()}function St(t,r,n,e,i,o,u,a){var s,f,c,y,m,h,M;if(t.save(),s=[o,u],t.setLineDash)t.beginPath(),t.strokeStyle=a,t.setLineDash(s),t.stroke(),t.moveTo(r,n),t.lineTo(e,i),t.stroke();else{for(t.beginPath(),t.lineWidth=1,t.strokeStyle=a,c={x:(e-r)/(f=p(g(e-r,2)+g(i-n,2))),y:(i-n)/f},y=0,m=0;y<f;)y+=h=l(s[m%2],f-y),(M=++m%2)&&t.moveTo(r,n),r+=h*c.x,n+=h*c.y,M&&t.lineTo(r,n);t.stroke()}t.restore()}function Ct(t,r,n,e,i,o,u,a,s,f,c,y){r?xt(t,n,e,i,o,c,y):xt(t,u,a,s,f,c,y)}function Pt(t,r,n,e,i,o,u,a){t.save(),u&&(t.fillStyle=u),t.textBaseline=a||K,t.beginPath(),t.font=i,t.textAlign=o,e="string"==typeof e?e:e+"",t.fillText(e,r,n),t.restore()}function At(t,r,n,e,i,o,u){r=Math.floor(r),n=Math.floor(n),e=Math.floor(e),i=Math.floor(i),u%2!=0&&(r===e?(r+=.5,e+=.5):n===i&&(n+=.5,i+=.5)),xt(t,r,n,e,i,o,u)}function Ot(t,r,n,e,i,o,u,a,s,f){var c,y,m,M;switch(o=Math.round(o),u=Math.round(u),s){case 0:u=Math.round(n+a),M=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u-Math.sin(h/3)*a);break;case 1:o=Math.round(r+e-a),m=Math.round(o),M=Math.round(u+a),c=Math.round(o+Math.sin(h/3)*a),y=Math.round((u+M)/2);break;case 2:u=Math.round(n+i-a),M=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u+Math.sin(h/3)*a);break;case 3:o=r+a,m=Math.round(o),M=Math.round(u+a),c=Math.round(o-Math.sin(h/3)*a),y=Math.round((u+M)/2)}t.beginPath(),t.moveTo(o,u),t.lineTo(c,y),t.lineTo(m,M),t.closePath(),t.fillStyle=f,t.fill()}function Tt(t,r,n,e,i){t.beginPath(),t.fillStyle=i,t.arc(r,n,e,0,2*Math.PI),t.fill()}function Et(t,r,n,e,i,o){if(r){var u=i/2;Tt(t,n+u,e+u,u,o)}else Jt(t,n,e,i,i,o)}function jt(t,r,n,e,i,o,u,a,s,f,c,y,m,h,M){var d,l,v,b,g,p;s?(d=Math.floor(r+.5*e),l=Math.floor(a?f-c:f),v=Math.floor(y),b=Math.floor(c),g=Math.floor(d-h/2),p=Math.floor(a?l-h/2:l+b+h/2),At(t,d,l,d,l+b,o,v)):(d=Math.floor(a?f:f-c),l=Math.floor(n+.5*i),v=Math.floor(c),b=Math.floor(y),g=Math.floor(a?d+v+h/2:d-h/2),p=Math.floor(l-h/2),At(t,d,l,d+v,l,o,b)),m?Rt(t,r,n,e,i,g,p,h,s,a,o):s?Et(t,M,g,a?p:p-=h,h,u):Et(t,M,a?g-=h:g,p,h,u)}function Rt(t,r,n,e,i,o,u,a,s,f,c){t.save(),Ot(t,r,n,e,i,o,u,a,s?f?0:2:f?1:3,c),t.restore()}function It(t,r,n,e,i,o,u,a,s,f,c,y,m,h){var M,d,l,v=4,b=void 0;t.save(),t.beginPath(),t.rect(r,n,e,i),t.clip(),t.font=s+V,t.fillStyle=O,t.fillStyle="black",f?(t.textBaseline=z,(b=s+(M=m<h?h:m)+o+v+h/2)>0?(t.textAlign=B,c?t.fillText(a,r+e/2+h/2,y-M/2):t.fillText(a,r+e/2+h/2,y+M/2)):(t.textAlign=L,c?t.fillText(a,r+e/2,y-M-h/2-s):t.fillText(a,r+e/2,y+M+h/2+v))):(t.textBaseline=J,(b=(d=t.measureText(a).width)+m+u+v+h/2)>0?d>m+h/2?c?(t.textAlign=G,t.fillText(a,y-v,n+i/2)):(t.textAlign=B,t.fillText(a,y+h/2,n+i/2)):(t.textAlign=L,c?t.fillText(a,y+m/2,n+i/2+s):t.fillText(a,y-m/2,n+i/2+s)):c?(t.textAlign=B,l=y+m+h/2+v,t.fillText(a,l,n+i/2)):(t.textAlign=G,l=y-m-h/2-v,t.fillText(a,l,n+i/2))),t.restore()}function Bt(t){return i.ft.rp(s(t))<127.5?A:O}function Gt(t,r,n,e,i,o,a,s){var f,c,y,m,h=s;return u(s)&&(h=i),a?(f=r+h+o,y=e-2*h,c=t+i,m=n-2*i):(f=t+h,y=n-2*h,c=r+i,m=e-2*i),{left:f,top:c,width:y,height:m}}function Lt(t,r){var n,e,i=0;for(n=0,e=t.length;n<e;n++)i+=r&&!r(t[n])?0:t[n];return i}function zt(t){return t*h/180}function Kt(t,r,n,e){var i,o,u,a,s=[];for(o=0,u=0,a=t.length;o<a;o++)r?(r(t[o])?s[u]=n?n(t[o]):t[o]:s[u]=0,u++):(i=$(t[o]),!H(i)&&isFinite(i)&&(s[u]=i,u++));return e&&e(s),s}function Jt(t,r,n,e,i,o){var u=b(r+e),a=b(n+i);r=b(r),n=b(n),e=b(u-r),i=b(a-n),t.beginPath(),t.fillStyle=o,t.fillRect(r,n,e,i),t.fill()}function Ut(t,r,n){return t=l(t,r),t=v(t,n)}function Vt(t,r,n,e,i){t.save(),t.rect(r,n,e,i),t.clip()}function Wt(t,r){var n,e,i,o;return!(!t||!r)&&(n=v(t.x+t.width,r.x+r.width),e=v(t.y+t.height,r.y+r.height),i=l(t.x,r.x),o=l(t.y,r.y),n-i<=t.width+r.width&&e-o<=t.height+r.height)}function qt(t,r,n,e,i,o){var a,s,f,c,y,m,v=n+i/2,b=e+o/2,g=5,p=l(i,o)/2-g,_=-.5*h,w=v+p*d(_),D=b+p*M(_),$=[],N=[];if(!(p<=0)){for(c=Yt(f=(s=Kt(r.values,(function(t){return!u(t)&&!H(t)&&isFinite(t)}),(function(t){return F(t)}),(function(t){1===t.length&&(t[1]=1-t[0])}))).length,r.colors),y=Lt(s),t.save(),m=0;m<f;m++)a=_+s[m]/y*2*h,t.beginPath(),t.moveTo(v,b),t.lineTo(w,D),t.arc(v,b,p,_,a,!1),t.lineTo(v,b),t.fillStyle=c[m],t.fill(),$.push(w),N.push(D),w=v+p*d(_=a),D=b+p*M(_);for(m=0;m<f;m++)xt(t,v,b,$[m],N[m],A);t.restore()}}function Yt(t,r){var n,e,o,u,a,f,c=[],y=r.length;if(t<=y)c=r.slice(0,t);else{for(0===y?(c.push("darkgray"),y=1):c=r.slice(0),n=[],e=void 0,o=t-y+1,u=void 0,u=0;u<y;u++)n[u]=s(c[u]);for(u=y;u<t;u++){for(a in e=n[u%y])e.hasOwnProperty(a)&&(f=e[a],e[a]=m(f-f/o*(u/y)));e.a=255,c[u]=i.ft.j(e)}}return c}function Xt(t,r,n){return{x:t,y:r,value:n}}function Zt(t){return isNaN(t)||t===1/0?0:t}function Qt(t,r,n,e,i,o){var a,s,f,y,m,h,M,d,g,p,F,_,D,$,N,x,k,C,P,A,O,E,j,R,I,B,G,L,z,K,J,U;if(t.save(),a=r.points,s=r.mini,f=r.maxi,y=r.line1,m=r.line2,h=r.colorPositive,M=r.colorNegative,d=5,a=Kt(a,(function(t){return!u(t)&&!H(t)&&isFinite(t)})),h=u(h)?"#787878":h,M=u(M)?S:M,P=Nt(a,!1),f=u(f)?P:f,p=v(f,P),A=Nt(a,!0),s=u(s)?A:s,g=l(s,A),F=(F=(F=0)>(p=p<0?0:p)?p:F)<(g=g>0?0:g)?g-1:F,_=a.length,O=Gt(n,e,i,o,d),D=O.left,$=O.top,N=O.width,x=O.height,k=Zt(N/(_-1)),E=[],C=Zt((p-g)/x))for(I=void 0,B=void 0,G=$+Zt((p-F)/C),L=void 0,z=void 0,K=0;K<_;K++)I=a[K],L=D+k*K,z=$+Zt((p-I)/C),0===K&&E.push(new dt(Xt(L,G,F))),K>0&&I*a[K-1]<0&&(R=E[E.length-1])&&(B=tr(R.x,R.y,L,z,G),E.push(new dt(Xt(B,G,F)))),E.push(new dt(Xt(L,z,I))),K===_-1&&E.push(new dt(Xt(L,G,F)));for(t.beginPath(),J=0,U=E.length;J<U;J++)(j=E[J])&&(0===J?t.moveTo(j.x,j.y):t.lineTo(j.x,j.y),R=E[J-1],j.value===F&&R&&(t.fillStyle=R.value>F?h:M,t.fill(),J!==U-1&&(t.beginPath(),t.moveTo(j.x,j.y))));function V(r){var n,e,i;r===c&&typeof r!==w||(n=Ut(r,p,g),i=b($+(e=0!==C?(p-n)/C:x/2))-.5,xt(t,D,i,D+N,i,T))}V(y),V(m),t.restore()}function tr(t,r,n,e,i){return((r-i)*n+(i-e)*t)/(r-e)}function rr(t,r,n,e,i,o){var a,s,f,c,y,m,M,d,g,p,F,_,w,D,H,$,x,C,A,O,T,E,j,R,I,B,G=r.points1,L=r.points2,z=r.minX,K=r.maxX,J=r.minY,U=r.maxY,V=r.hLine,W=r.vLine,q=r.xMinZone,Y=r.xMaxZone,X=r.yMinZone,Z=r.yMaxZone,Q=r.tags,tt=r.drawSymbol,rt=r.drawLines,nt=r.color1,et=r.color2,it=r.dash,ot=4,ut=Gt(n,e,i,o,5),at=ut.left,st=ut.top,ft=ut.width,ct=ut.height;if(G&&!(G.length<=0)&&!((a=or(G)).length<=0||L&&L.length>0&&(s=or(L)).length<=0)){for(Vt(t,n,e,i,o),t.beginPath(),tt=!!u(tt)||tt,nt=u(nt)?k:nt,et=u(et)?S:et,mt(a,J,U,z,K),!u(q)&&!u(Y)&&!u(X)&&!u(Z)&&y<=q&&q<=m&&y<=Y&&Y<=m&&f<=X&&X<=c&&f<=Z&&Z<=c&&((j=v(y,q))>=(R=l(m,Y))&&(R=j+1),(I=v(f,X))>=(B=l(c,Z))&&(B=I+1),Jt(t,at+(j-y)*ft/(m-y),st+(c-B)*ct/(c-f),(R-j)*ft/(m-y),(B-I)*ct/(c-f),P)),C=-N,A=-N,O=N,T=N,g=a.length,M=0;M<g-1;M++)yt(a,M,nt,Mt),Q&&(0===M&&(H>A&&(C=D,A=H),H<T&&(O=D,T=H)),x>A&&(C=$,A=x),x<T&&(O=$,T=x));if(s&&s.length>0)for(mt(s,f,c,y,m),g=s.length,M=0;M<g-1;M++)yt(s,M,et,dt);Q&&(ht(C,A,S),ht(O,T,"#0000FF")),!u(V)&&f<=V&&V<=c&&(E=b(st+(c-V)*ct/(c-f))-.5,ir(t,at,E,at+ft,E,S)),!u(W)&&y<=W&&W<=m&&(E=b(at+(W-y)*ft/(m-y))-.5,ir(t,E,st,E,st+ct,S)),t.restore()}function yt(r,n,e,i){d=r[n],p=d.x,F=d.y,d=r[n+1],_=d.x,w=d.y,D=at+(p-y)*ft/(m-y),$=at+(_-y)*ft/(m-y),H=st+(c-F)*ct/(c-f),x=st+(c-w)*ct/(c-f),rt&&ir(t,D,H,$,x,e,it),tt&&(0===n&&i(D,H),i($,x))}function mt(t,r,n,e,i){var o=nr(t,!0),a=nr(t,!1);f=u(J)?o.y:r,c=u(U)?a.y:n,y=u(z)?o.x:e,m=u(K)?a.x:i,m=y>=m?y+1:m,c=f>=c?f+1:c}function ht(r,n,e){t.beginPath(),t.arc(r-ot/2,n-ot/2,ot/2,0,2*h,!1),t.fillStyle=e,t.fill()}function Mt(r,n){t.beginPath(),t.strokeStyle=nt,t.arc(r-ot/2,n-ot/2,ot/2,0,2*h,!1),t.stroke()}function dt(r,n){t.beginPath(),t.strokeStyle=et,t.strokeRect(r-ot/2,n-ot/2,ot,ot)}}function nr(t,r){var n,e,i=r?1:-1,o=r?l:v,u=new ht(Ht(i*N,i*N)),a=t.length;for(e=0;e<a;e++)n=t[e],u.x=o(u.x,n.x),u.y=o(u.y,n.y);return u}function er(t,r,n,e){return n/e*(r-t)+t}function ir(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,b,F,_,w,D,H;if(u){for(a=p(g(e-r,2)+g(i-n,2)),s=0,f=6,c=2,y=4,h=void 0,M=void 0,d=void 0,l=void 0,r<=e?(h=r,M=e,d=r,l=n):(h=e,M=r,d=e,l=i),b=n-(v=(i-n)/(e-r))*r,(m=[]).push(new ht(Ht(d,l))),F=[f,y,c,y];s<a;)for(_=0,w=F.length;_<w;_++)(s+=F[_])<=a&&(l=v*(d=er(h,M,s,a))+b,m.push(new ht(Ht(d,l))));for(D=0,H=m.length;D<H-1;D+=2)xt(t,m[D].x,m[D].y,m[D+1].x,m[D+1].y,o)}else xt(t,r,n,e,i,o)}function or(t){var r,n,e,i=[],o=t.length;if(o>0)if(o<(r=t[0].length)){if(o>=2)for(n=0;n<r;n++)i.push(new ht(Ht(t[0][n],t[1][n])))}else if(r>=2)for(e=0;e<o;e++)i.push(new ht(Ht(t[e][0],t[e][1])));return i}function ur(t,r,n,e,i,o){var s,f,c,y,h,M,d,l,g,p,F,_,w,D,$,N,x,k=r.measure,P=r.target,A=r.maxi,O=r.good,T=r.bad,E=r.forecast,j=r.tickUnit,R=r.colorScheme,I=r.vertical,B=5,G=r.measureColor,L=r.targetColor,z=r.maxiColor,K=r.goodColor,J=r.badColor,U=r.forecastColor,V=r.allowMeasureOverMaxi,W=r.barSize;if(!(u(A)||A<0)&&(u(W)||!(H(W)||W<=0))){if(W>1&&(W=1),k=u(k)||k<0?0:k,O=u(O)||O<0?0:O,T=u(T)||T<0?0:T,P=u(P)?0:P,E=u(E)?0:E,j=u(j)?0:j,R=u(R)?"#A0A0A0":R,s=u(G)?"#252525":G,k>A&&!V&&(k=A,s=S),O>A&&(O=A,s=S),T>A&&(T=A,s=S),P>A&&(P=0,s=S),E>A&&(E=A,s=S),f=Gt(n,e,i,o,B,o-2*B,I),c=f.left,y=f.width,t.save(),h=u(W)?.2:(1-W)/2,M=u(W)?.6:W,d=V?v(A,k):A,q(u(z)?a(R,1.66):z,A,d,h,M),q(u(K)?a(R,1.33):K,O,d,h,M),q(u(J)?R:J,T,d,h,M),l=.25*W/.6,q(s,k,d,g=u(W)?.375:(1-l)/2,p=u(W)?.25:l),E>0&&(F=c,(_=y*(E/d))>y&&(_=y),w=u(W)?3:3*W/.6,Ct(t,I,n+.5*i,F,n+.5*i,F-_,F,e+.5*o,F+_,e+.5*o,u(U)?"#3690BF":U,w)),P>0&&(D=b(c-(I?1:-1)*y*(P/d))-.5,Ct(t,I,n+i*h,D,n+i*(1-h),D,D,e+o*h,D,e+o*(1-h),u(L)?S:L,1)),j>0)for($=m(d/j),N=void 0,x=0;x<=$;x++)N=b(c-y/d*j*(I?1:-1)*x)-.5,Ct(t,I,n,N,n+.05*i,N,N,e+o,N,e+.95*o,C,1);t.restore()}function q(r,u,a,s,f){var m,h,M;t.fillStyle=r,m=c,(h=y*(u/a))>y&&!V&&(h=y),M=new Mt(I?$t(n+i*s,m-h,i*f,h):$t(m,e+o*s,h,o*f)),t.fillRect(M.x,M.y,M.width,M.height)}}function ar(t,r,n,e,i,o){var a,s,f,c,y,m,h,M,d,g,p,F,_,w,D,H,$,N,x,k,P,A,O=r.spreadData,T=r.showAverage,E=r.scaleStart,j=r.scaleEnd,R=r.style,I=r.colorScheme,B=r.vertical,G=5,L=O.length;if(!(L<=0)){for(a=O[0].key,s=O[L-1].key,E=u(E)?a:E,j=u(j)?s:j,R=u(R)?4:R,I=u(I)?C:I,c=(f=Gt(n,e,i,o,G,o-2*G,B)).left,y=f.width,m=f.top,h=f.height,Vt(t,n,e,i,o),t.beginPath(),t.strokeStyle=I,t.fillStyle=I,t.lineWidth=2,g=Nt(O,!1),F=0,_=O.length;F<_;F++)if(D=(w=O[F]).key,H=w.value,M=c+(B?-1:1)*y*(D-E)/(j-E),B?(M=l(M,c),M=v(M,c-y)):(M=v(M,c),M=l(M,c+y)),M=b(M),1===R)Ct(t,B,$=m+h/2-(p=(p=H/2*h/g)<.5?.5:p),M,N=m+h/2+p,M,M,$,M,N);else if(4===R)Ct(t,B,m,M,m+(p=(p=H*h/g)<1?1:p),M,M,m+h,M,m+h-p);else if(6===R)Ct(t,B,m,M,m+h,M,M,m,M,m+h);else for(x=2,k=1;k<=H;k++){switch(R){case 2:d=m+h/2-G-(H/2-k)*h/g;break;case 3:d=m+h-G-(P=sr(H,h,x+1,w.randomNumbers))[k-1];break;default:d=m+h-k*h/g}d=b(d),t.beginPath(),t.fillRect(B?d:M,B?M:d,x,x)}T&&Ct(t,B,m-G,M=c-(B?1:-1)*y*((A=fr(O))-E)/(j-E),m+h+G,M,M,m-G,M,m+h+G,S),t.restore()}}function sr(t,r,n,e){for(var i,o=[],u=v(100,10*t),a=0,s=[],f=0;o.length<t;)i=m(e[f]*r),f++,(a>u||cr(i,s))&&(o.push(i),s.push([i-n,i+n])),a++;return o}function fr(t){var r,n,e,i=0,o=0;for(r=0,n=t.length;r<n;r++)o+=(e=t[r]).value,i+=e.key*e.value;return 0===o?0:i/o}function cr(t,r){var n,e,i;for(n=0,e=r.length;n<e;n++)if((i=r[n])[0]<=t&&t<=i[1])return!1;return!0}function yr(t,r,n,e,i,o,s){var f,m,h,M,d,l,v,g,p,F,_,w,D,$,N,x,k,P,A=r.points,O=A&&A.length,j=r.colorRange,I=r.labelRange,B=r.maximum,G=r.targetRed,z=r.targetGreen,K=r.targetBlue,U=r.targetYellow,W=r.color,q=r.highlightPosition,Y=r.vertical,X=r.textOrientation,Z=r.textSize,Q=5;if(!(u(A)||O<=0)){if(W=u(W)?C:W,u(j)||j.length!==O||mr(j))for(j=[],f=0;f<O;f++)j.push(a(W,1+f/O));for(m=Lt(A,(function(t){return t>0})),B=u(B)||B<m?m:B,X=u(X)?0:X,Z=u(Z)||Z<=0?10:Z,Z=H(Z)?Z:Z*s.zoomFactor,h=Gt(n,e,i,o,Q,o-2*Q,Y),M=h.left,d=h.width,l=h.top,v=h.height,t.save(),g=M,N=0,x=O;N<x;N++)($=A[N])<=0||(p=$/B*d,Y?(F=n+.15*i,w=.7*i,_=g-p,D=p):(F=g,w=p,_=e+.15*o,D=.7*o),k=N+1===q?S:j[N],t.save(),t.fillStyle=k,t.fillRect(F,_,w,D),(P=I&&I[N])&&(t.save(),t.fillStyle=Bt(k),t.textBaseline=J,t.textAlign=L,t.font=Z+V,t.rect(F,_,w,D),t.clip(),1===X?(t.translate(F+w/2,_),t.rotate(Math.PI/2),t.fillText(P,D/2,0)):t.fillText(P,F+w/2,_+D/2),t.restore()),g+=(Y?-1:1)*p,t.restore());tt(R,G,(function(t){return t>0})),tt(E,z),tt(T,K),tt("yellow",U),t.restore()}function tt(r,n,e){var i,o;n!==c&&n!==y&&(n=n>B?B:n,e&&!e(n)||(o=(n=n<0?0:n)/B*d,Y?(i=b(M-o)-.5,xt(t,l,i,l+v,i,r)):(i=b(M+o)-.5,xt(t,i,l,i,l+v,r))))}}function mr(t){for(var r=0,n=t.length;r<n;r++)if(u(t[r]))return!0;return!1}function hr(t,r,n,e,i,o){xt(t,lr(r),lr(n),lr(e),lr(i),u(o)?O:o,1)}function Mr(t,r,n,e,i){var o,u,a,s,f,c=.4*e;switch(r=lr(r),n=lr(n),t.beginPath(),t.moveTo(r,n),o=c/2,u=p(3)*c/2,a=c/p(3),i){case 0:s=[-o,0,o],f=[u,a,u];break;case 2:s=[-o,0,o],f=[-u,-a,-u];break;case 3:s=[u,a,u],f=[-o,0,o];break;case 1:s=[-u,-a,-u],f=[-o,0,o];break;default:s=[],f=[]}s.forEach((function(e,i){t.lineTo(lr(r+e),lr(n+f[i]))})),t.lineTo(r,n),t.closePath(),t.fillStyle=A,t.fill()}function dr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,b,g,p,_,w=n.value,D=n.colorScheme,N=n.axisVisible,x=n.barHeight,k=n.barWidth,S=5,C=5,P=!1,A=$(w);if(!H(A)){if(u(M=0===t?x:k))d=.7;else{if(H(M)||M<=0)return;d=Math.min(1,M)}A>1?(A=1,P=!0):A<-1&&(A=-1,P=!0),D=u(D)?"grey":D,N=!!u(N)||N,r.save(),0===t?(l=o-2*S,v=a*d,A>=0?(P&&(s=new ht(Ht(e+S+l-C,i+a/2))),f=new Mt($t(e+S,i+a*(1-d)/2,l*A,v)),c=new ht(Ht(e+S,i+1)),y=new ht(Ht(e+S,i+a)),m=1):(b=F(l*A),P&&(s=new ht(Ht(e+S+C,i+a/2))),f=new Mt($t(e+o-S-b,i+a*(1-d)/2,b,v)),c=new ht(Ht(e+o-S,i+1)),y=new ht(Ht(e+o-S,i+a)),m=3),h=u(M)?a:a*d):1===t&&(g=a-2*S,p=o*d,A>=0?(f=new Mt($t(e+(1-d)/2*o,i+a-S-(_=g*A),p,_)),P&&(s=new ht(Ht(e+o/2,i+a-S-_+C)),m=0),c=new ht(Ht(e+1,i+a-S)),y=new ht(Ht(e+o,i+a-S))):(A=F(A),f=new Mt($t(e+(1-d)/2*o,i+S,p,g*A)),P&&(s=new ht(Ht(e+o/2,i+S+g-C)),m=2),c=new ht(Ht(e+1,i+S)),y=new ht(Ht(e+o,i+S))),h=u(M)?o:o*d),r.beginPath(),f&&(Jt(r,f.x,f.y,f.width,f.height,D),Vt(r,f.x,f.y,f.width,f.height)),s&&Mr(r,s.x,s.y,h,m),r.restore(),N&&c&&hr(r,c.x,c.y,y.x,y.y),r.restore()}}function lr(t){return b(t)-.5}function vr(t,r,n,e,i,o){dr(0,t,r,n,e,i,o)}function br(t,r,n,e,i,o){dr(1,t,r,n,e,i,o)}function gr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,b,g,_,w,D,N,x,C,P,A,T,j=r.variance,I=r.reference,U=r.mini,W=r.maxi,q=r.mark,Y=r.tickUnit,X=r.legend,Z=r.colorPositive,Q=r.colorNegative,tt=r.vertical,rt=.5,nt=.5-rt/2,et=5,it=S,ot=k,ut=13*a.zoomFactor,at=$(j);if(!(H(at)||(Q=u(Q)?R:Q,Z=u(Z)?E:Z,Y=u(Y)?0:Y,W=u(W)?1:W,U=u(U)?-1:U,(M=!u(I))||(I=0),tt?(s=e+o-et,f=o-2*et,c=i-4*et,y=-1):(s=n+et,f=i-2*et,c=o-4*et,y=1),X&&(l=$(r.variance),H(l)||(b=(v=l.toString()).substr(v.indexOf(".")+1).length,m=b>=2?(100*l).toFixed(b-2)+"%":(100*l).toFixed(0)+"%")),at>W&&(at=W,d=!0),at<U&&(at=U,d=!0),I=Ut(I,W,U),d&&(h=Ut(c,60,15)),_=f/(g=F(W-U)),w=s+y*F(U-I)*_,(D=F(at-I)*_)>F(g)*_&&(D=F(g+U)*_),N=s+y*f,tt&&w<N||!tt&&w>N))){if(Vt(t,n,e,i,o),at>I?st(Z,0,et-f,f-et,0,1,e-w,K,z,w-n-i,B,G,-1,F(W-at)*_):(D>F(g)*_&&(D=F(g+U)*_,w=s),st(Q,1,-et,et,2,3,w-e-o,z,K,n-w,G,B,1,F(U-at)*_)),M&&(x=s+y*(Math.abs(U-I)*_),ct(n,x,n+i,x,x,e,x,e+o)),Y>0)for(t.beginPath(),C=g/Y,P=0;P<=C;P++)ct(n,A=s+f/C*P*y,n+.1*i,A,A,e+.9*o,A,e+o,ot,ot);!u(q)&&U<=q&&q<=W&&(t.beginPath(),T=s-(tt?1:-1)*F(U-q)*_,ct(n,T,n+.33*i,T,T,e+.66*o,T,e+o,it,it),t.fill()),t.restore()}function st(r,u,a,f,c,y,M,l,v,b,g,F,_,H){var $,N,x,k,S,C;tt?Jt(t,$=n+nt*i,N=0===u?w-D:w,x=i*rt,k=D,r):Jt(t,$=0===u?w:w-D,N=e+nt*o,x=D,k=o*rt,r),d&&(Vt(t,$,N,x,k),tt?Mr(t,n+i/2,s+a,h,c):Mr(t,s+f,e+o/2,h,y),t.restore()),X&&(S=void 0,C=0,d&&(C=.4*h*p(3)/2+et+2),t.save(),t.beginPath(),t.font=ut+V,t.fillStyle=O,tt?(t.textAlign=L,ft(S=ut+D+M,H,r,l,v,$,N,x,k,tt),t.fillText(m,n+i/2,w+_*(D-C))):(t.textBaseline=J,ft(S=t.measureText(m).width+D+b,H,r,g,F,$,N,x,k,tt),t.fillText(m,w+_*(C-D),e+o/2)),t.restore())}function ft(r,n,e,i,o,u,a,s,f,c){c?t.textBaseline=i:t.textAlign=i,r>0&&n<D&&(t.rect(u,a,s,f),t.clip(),c?t.textBaseline=o:t.textAlign=o,t.fillStyle=Bt(e))}function ct(r,n,e,i,o,u,a,s,f,c){tt?hr(t,r,n,e,i,f):hr(t,o,u,a,s,c)}}function pr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,b,g,p,_,w,D,N,x,k,S,C,A,T,j,I,B=r.plannedValue,G=r.actualValue,L=r.index,z=r.absolute,K=r.reference,J=r.mini,U=r.maxi,V=r.tickUnit,W=r.legend,q=r.colorPositive,Y=r.colorNegative,X=r.lollipopHeaderColor,Z=r.vertical,Q=[],tt="",rt=.9,nt=10,et=13*a.zoomFactor,it=P,ot=!1;if(!(0===B.length||0===G.length||L<0||L>=B.length||L>=G.length||J>=U||H(G[L])||H(B[L]))){if(Y=u(Y)?R:Y,q=u(q)?E:q,V=u(V)?0:V,z=!u(z)&&z,m=!u(K),X=u(X)?O:X,z){for(v=0;v<B.length&&v<G.length;v++)Q.push(G[v]-B[v]);U=Nt(Q,!1),J=Nt(Q,!0),U>0&&J>0?J=0:U<0&&J<0&&(U=0),h=Q[L],K=0,m=!0}else U=u(U)?1:U,J=u(J)?-1:J,h=(G[L]-B[L])/Math.abs(B[L]),((K=Ut(K,U,J))===U&&h>K||K===J&&h<K)&&(ot=!0),u(B[L])&&(ot=!0);if(m||(K=0),Z?(s=e+o-nt,f=o-2*nt,c=-1):(s=n+nt,f=i-2*nt,c=1),!z&&W?((g=$((b=h-K).toString()))>0&&(tt="+"),!H(g)&&isFinite(g)?y=tt+(y=(_=(p=g.toString()).substr(p.indexOf(".")+1).length)>=2?(100*g).toFixed(2)+"%":100*g+"%"):isFinite(g)||(y=tt+g)):(h>0&&(tt="+"),y=tt+(y=(_=(p=(g=$(h)).toString()).substr(p.indexOf(".")+1).length)>=2?g.toFixed(2):g)),z?l=!1:(h>U&&(h=U,l=!0),h<J&&(h=J,l=!0)),D=f/(w=F(U-J)),N=s+c*F(J-K)*D,(x=F(h-K)*D*rt)>F(w)*D&&(x=F(w+J)*D),k=s+c*f,!(Z&&N<k||!Z&&N>k))if(z||0!==B[L]&&!ot){if(Vt(t,n,e,i,o),S=F(Math.ceil((U-K)/V)),C=F(Math.floor((K-J)/V)),z){if(V>5/D)if(Z){for(T=1;T<=S;T++)At(t,n,j=N+V*D*T*-1*rt,n+i,j,it,1);for(T=1;T<=C;T++)At(t,n,j=N+V*D*T*1*rt,n+i,j,it,1)}else{for(T=1;T<=S;T++)At(t,I=N+V*D*T*1*rt,e,I,e+o,it,1);for(T=1;T<=C;T++)At(t,I=N+V*D*T*-1*rt,e,I,e+o,it,1)}}else if(V>0&&V<=U&&V>5/D)if(t.beginPath(),Z){for(A=.1*i>10?10:.1*i,T=1;T<=S;T++)At(t,n,j=N+V*D*T*-1*rt,n+A,j,it,1);for(T=1;T<=C;T++)At(t,n,j=N+V*D*T*1*rt,n+A,j,it,1)}else{for(A=.1*o>10?10:.1*o,T=1;T<=S;T++)At(t,I=N+V*D*T*1*rt,e+o-A,I,e+o,it,1);for(T=1;T<=C;T++)At(t,I=N+V*D*T*-1*rt,e+o-A,I,e+o,it,1)}M=Math.floor(12*a.zoomFactor),(d=Math.floor(4*a.zoomFactor))%2!=0&&(d+=1),M%2!=0&&(M+=1),h>K?jt(t,n,e,i,o,q,X,!0,Z,N,x,d,l,M,z):(x>F(w)*D&&(x=F(w+J)*D,N=s),jt(t,n,e,i,o,Y,X,!1,Z,N,x,d,l,M,z)),W&&(h>K?It(t,n,e,i,o,e-N,N-n-i,y,et,Z,!0,N,x,M):It(t,n,e,i,o,N-e-o,n-N,y,et,Z,!1,N,x,M)),m&&(Z?At(t,n,N,n+i,N,O,2):At(t,N,e,N,e+o,O,2)),t.restore()}else Z?At(t,n,N,n+i,N,O,2):At(t,N,e,N,e+o,O,2)}}function Fr(t,r,n,e,i,o){var a,s,f,y,m,h,M,d,b,g,p,_,w,N,x,P,A,O,T,E,j,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt,dt,Ft,_t,wt=r.points,Dt=r.boxPlotClass,Ht=r.showAverage,$t=r.scaleStart,xt=r.scaleEnd,kt=r.acceptableStart,St=r.acceptableEnd,Pt=r.style,At=r.colorScheme,Ot=r.vertical,Tt=5,Et=Nt(wt,!1),jt=Nt(wt,!0);if(!(u(wt)||(wt=Kt(wt)).length<=0)){for((Dt=Dt===c||typeof Dt!==D?vt:Dt.toLocaleLowerCase())!==vt&&Dt!==lt&&Dt!==bt&&Dt!==gt&&Dt!==pt&&(Dt=vt),a=$($t),a=H(a)?jt:a,s=$(xt),s=H(s)?Et:s,f=$(kt),y=$(St),At!==c&&typeof At===D||(At="#D2D2D2"),(Pt===c||0!==Pt&&1!==Pt)&&(Pt=0),m=S,a>jt&&(At=m,a=jt),s<Et&&(At=m,s=Et),Vt(t,n,e,i,o),t.lineWidth=2,M=(h=Gt(n,e,i,o,Tt,o-2*Tt,Ot)).left,d=h.width,b=h.top,g=h.height,p=Ot?-1:1,_=r.perc02,w=r.perc09,N=r.perc10,x=r.perc90,P=r.perc91,A=r.perc98,O=r.q1,j=jt,R=Et,I=1.5*(E=(T=r.q3)-O),B=1.5*E,G=r.stDev,L=Lt(wt)/v(1,wt.length),z=0,K=0,J=b+.1*g,U=.7*g,V=F(s-a),W=0,q=wt.length;W<q;W++)(Y=wt[W])<O&&Y>=O-1.5*E&&Y-(O-1.5*E)<I&&(I=Y-(O-1.5*E),j=Y),Y>T&&Y<=T+1.5*E&&T+1.5*E-Y<B&&(B=T+1.5*E-Y,R=Y),X=!1,z=M+p*(d*((Y-a)/V)),Dt===bt&&(Y<=O-1.5*E||Y>=T+1.5*E)&&(X=!0,K=Y<=O-3*E||Y>=T+3*E?0:1),Dt===lt&&(Y<=_||Y>=A)&&(X=!0,K=1),Dt===pt&&(Y<=L-2*G||Y>=L+2*G)&&(X=!0,K=Y<=L-3*G||Y>=L+3*G?0:1),Z=k,X&&(1===Pt?1===K?It(.2,.8,z,Z):It(.3,.7,z,Z):((Q=.1*g)<2&&(Q=2),t.beginPath(),t.strokeStyle=Z,tt=b+.45*g,rt=z,t.arc(Ot?tt:rt,Ot?rt:tt,Q/2,0,2*Math.PI),t.stroke()));switch((a>f||s<y)&&(At="#C0FF00"),(f=v(a,f))>(y=l(s,y))?At=m:f<y&&Ct(t,Ot,it=b+.9*g,nt=M+p*(d*((f-a)/V)),it,et=M+p*(d*((y-a)/V)),nt,it,et,it,C),ut=F(M+p*(d*((T-a)/V))-(ot=M+p*(d*((O-a)/V)))),st=M+p*(d*(((at=r.median)-a)/V)),Dt){case lt:yt=_,mt=A;break;case bt:yt=j,mt=R;break;case pt:ut=F(M+p*(d*((L+G-a)/V))-(ot=M+p*(d*((L-G-a)/V)))),st=M+p*(d*((L-a)/V)),yt=(ht=L-2*G)>a?ht:jt,mt=(ht=L+2*G)<s?ht:Et,Ht=!1;break;default:yt=jt,mt=Et}ft=M+p*(d*((yt-a)/V)),ct=M+p*(d*((mt-a)/V)),Mt=k,1===Pt?Rt("#F2F2F2",J,ct,U,ft-ct,ft,J,ct-ft,U):Ct(t,Ot,dt=b+.45*g,ft,dt,ct,ft,dt,ct,dt,Mt),Rt(At,J,ot-ut,U,ut,ot,J,ut,U),Ct(t,Ot,J,st,J+U,st,st,J,st,J+U,Mt),0===Pt&&(Ct(t,Ot,J+.3*U,ct,J+.7*U,ct,ct,J+.3*U,ct,J+.7*U,Mt),Ct(t,Ot,J+.3*U,ft,J+.7*U,ft,ft,J+.3*U,ft,J+.7*U,Mt)),Dt!==lt&&Dt!==gt||(Ft=void 0,_t=void 0,Dt===lt?(yt=w,mt=P):(yt=N,mt=x),Ft=M+p*(d*((yt-a)/V)),It(.3,.7,_t=M+p*(d*((mt-a)/V)),Mt),It(.3,.7,Ft,Mt)),Ht&&It(.2,.8,z=M+p*(d*((L-a)/V)),m),t.restore()}function Rt(r,n,e,i,o,u,a,s,f){Ot?Jt(t,n,e,i,o,r):Jt(t,u,a,s,f,r)}function It(r,n,e,i){Ct(t,Ot,J+U*r,e,J+U*n,e,e,J+U*r,e,J+U*n,i)}}function _r(t,r,n,e,i){r=b(r),n=b(n),r===(e=b(e))&&(r=e-=.5),n===(i=b(i))&&(n=i-=.5),t.moveTo(r,n),t.lineTo(e,i)}function wr(t,r,n,e,i,o,u,a,s,f,c){t.beginPath(),t.strokeStyle=n,r?_r(t,e,i,o,u):_r(t,a,s,f,c),t.stroke()}function Dr(t,r,n,e,i){t.rect(r,n,e,i),t.clip()}function Hr(t,r,n,e,i,o){var a,s,f,c,y,m,h,M=o.labelText,d=o.fontSize,l=o.startBox,v=o.endBox,b=o.boxColor,g=o.isInRightOrTopOfBox,p=o.fillStyle;t.save(),t.beginPath(),t.font=d+V,c=1,p=u(p)?O:p,o.vertical?(y=L,g?(a=d+v-(l-n))>0&&l-v-n<v?(m=z,p=Bt(b),f=l-v+c,Dr(t,r,l-v,e,v)):(m=K,f=l-v-c):(a=d-(n+i-l))>0&&n+i-l<v?(Dr(t,r,l-v,e,v),m=K,p=Bt(b),f=l-c):(m=z,f=l+c),t.textAlign=y,t.textBaseline=m,t.fillStyle=p,t.fillText(M,r+e/2,f)):(m=J,h=t.measureText(M),g?(a=h.width+v-(r+e-l))>0&&r+e-(l+v)<v?(Dr(t,l,n,v,i),y=G,p=Bt(b),s=l+v-c):(y=B,s=l+v+c):(a=h.width-(l-r))>0&&l-r<v?(Dr(t,l,n,v,i),s=l+c,y=B,p=Bt(b)):(y=G,s=l-c),t.textAlign=y,t.textBaseline=m,t.fillStyle=p,t.fillText(M,s,n+i/2)),t.restore()}function $r(t,r,n,e,i,o,s){var f,y,m,h,M,d,b,g,p,_,w,N,x,k,S,C,A,T,E,j,R,I,B,G,L,z,K,J,U,V,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt=r.points,dt=r.labels,lt=r.pointIndex,vt=r.minimum,bt=r.maximum,gt=r.colorPositive,pt=r.colorNegative,Ft=r.vertical,_t=r.itemTypeRange,wt=r.colorTotal,Dt=5,Ht=13*s.zoomFactor;if(!u(Mt)&&!((f=Mt.length)<=0)&&_t&&(y=parseInt(lt,10),!(H(y)||y<=0||y>f))){for(dt=u(dt)?[]:dt,gt!==c&&typeof gt===D||(gt="#8CBF64"),pt!==c&&typeof pt===D||(pt="#D6604D"),typeof wt!==D&&(wt=c),m=gt,h=a(gt,1.3),M=pt,d=a(pt,1.3),b=1,g=0,p=0,_=0,w=0,N=[],x=0,k=0,C=0,A=f;C<A;C++)k=Mt[C],S=_t[C],T=!1,E=1===b,(j=!u(S))&&(S===q?k=F(k):S===W?k=-F(k):S===Y?(T=!0,E?g=k:k=g):j=!1),N[b]=[],R=N[b],H(k)?(R[0]=0,R[1]=g,R[2]=0):(R[0]=F(k),g=T?g:k+g,R[1]=k>0?p:g,R[2]=k),R[3]=b,_=l(p,_),w=v(p,w),((I=b===f)&&!j||T)&&(x=_<0?-_:0,R[1]=k>0?0:k),j&&T&&!E||(p=k+p,I&&j&&(_=l(p,_),w=v(p,w))),b++;B=!1,u(S)||(B=-1===(G=[W,q,Y]).indexOf(S)),(u(S)||B)&&(g-=k),K=$(vt),H(K)||K>0||K>_?(L=_,K=_):(L=K,x=-K),J=$(bt),H(J)||J<0||J<w?z=w:(z=J,x=-K),V=(U=Gt(n,e,i,o,Dt,o-2*Dt,Ft)).left,X=U.width,Z=U.top,Q=U.height,tt=Ft?-1:1,nt=X/(rt=z-L),Vt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,it=(et=N[y])[2],ot=_t[y-1],ut=V+tt*(et[1]+x)*nt,at=et[0]*nt,ft=ot===Y,ct=(u(ot)||B)&&y===f||ft,st=wt&&ct?wt:1===y||ct?it>=0?m:M:it>=0?h:d,Ft?Jt(t,Z,ut-at,Q,at,st):Jt(t,ut,Z,at,Q,st),Ft?(1!==y&&(y!==f?wr(t,it>0,P,n,ut,Z+Q,ut,n,ut-at,Z+Q,ut-at):wr(t,!0,P,n,yt=V-(g+x)*nt,Z+Q,yt)),y!==f&&wr(t,it>0,P,Z,ut-at,n+i,ut-at,Z,ut,n+i,ut)):(1!==y&&(y!==f?wr(t,it>0,P,ut,e,ut,Z+Q,ut+at,e,ut+at,Z+Q):wr(t,!0,P,mt=V+(g+x)*nt,e,mt,Z+Q)),y!==f&&wr(t,it>0,P,ut+at,Z,ut+at,e+o,ut,Z,ut,e+o)),ht=dt[y-1],dt.length>0&&!u(ht)&&""!==ht&&Hr(t,n,e,i,o,{labelText:ht,vertical:Ft,isInRightOrTopOfBox:it>0,fontSize:Ht,startBox:ut,endBox:at,boxColor:st}),wr(t,Ft,O,n,V-x*nt,n+i,V-x*nt,V+x*nt,e,V+x*nt,e+o),t.restore()}}function Nr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,g,p,F,w,N,x,C,P,A,O,T,E,j,R,I,B,G,L=r.points,z=r.pointIndex,K=r.colorRange,J=r.target,U=r.target2,V=r.highlightPosition,W=r.label,q=r.vertical,Y=13*a.zoomFactor,X=r.targetColor,Z=r.target2Color,Q=r.labelColor,tt=r.barSize;if(!u(L)&&(u(tt)||!(H(tt)||tt<=0))&&(tt>1&&(tt=1),!((s=L.length)<=0||(f=parseInt(z,10),H(f)||f<=0||f>s)))){for(K=u(K)?[]:K,c=parseInt(W,10),c=H(c)?0:c,y=1,m=0,h=[],M=0,d=L.length;M<d;M++)l=L[M],h[y]=[],v=h[y],l<0||H(l)||u(l)?(v[0]=1===y?0:m,v[1]=0):(m+=l,v[0]=1===y?0:m-l,v[1]=l),y++;p=5,g=u(tt)?p:q?i*(1-tt)/2:o*(1-tt)/2,F=Gt(n,e,i,o,g,o-2*p,q,p),w=F.left,N=F.width,x=F.top,C=F.height,P=q?-1:1,A=N/m,Vt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,T=(O=h[f])[1],E=w+P*O[0]*A,j=O[1]*A,R=f===V?S:0===K.length||typeof K[f-1]!==D?k:K[f-1],q?Jt(t,x,E-j,C,j,R):Jt(t,E,x,j,C,R),1===c?I=(O[0]+T)/m*1e3:2===c&&(I=T/m*1e3),B=b(I)/10+"%",1!==c&&2!==c||""===B||Hr(t,n,e,i,o,{labelText:B,vertical:q,isInRightOrTopOfBox:(O[0]+O[1])*A<N/2,fontSize:Y,startBox:E,endBox:j,boxColor:R,fillStyle:Q}),G=[u(X)?"#8CBF64":X,u(Z)?"#EE5D5D":Z],[J,U].forEach((function(r,u){var a=rt(r),s=_(w+P*N*a);wr(t,q,G[u],n,s,n+i,s,s,e,s,e+o)})),t.restore()}function rt(t){var r=$(t);return r=(r=(r=H(r)?0:r)<0?0:r)>1?1:r}}function xr(t,r){switch(r){case 2:var n;return t%4==0&&t%100!=0||t%400==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}function kr(t,r,n){var e,i,o,u,a,f;return t<0&&(t=0),t>1&&(t=1),e=s(r),i=s(n),o=e.a*(1-t)+i.a*t,u=e.r*(1-t)+i.r*t+"",a=e.g*(1-t)+i.g*t+"",f=e.b*(1-t)+i.b*t+"","rgba("+parseInt(u,10)+","+parseInt(a,10)+","+parseInt(f,10)+","+$(o/255+"")+")"}function Sr(t,r,n){return t===r&&t===n?1:t<=r?0:t>=n?1:(t-r)/(n-r)}function Cr(t,r,n,e,i,o){var u=(o+i)/2;return i<=e&&e<=u?kr(Sr(e,i,u),t,r):kr(Sr(e,u,o),r,n)}function Pr(t){var r=N,n=-N;return t.forEach((function(t){t!==c&&t!==y&&(r>t&&(r=t),n<t&&(n=t))})),{min:r,max:n}}function Ar(t,r,n,e,i,o,u){var a,s,f;e?t.forEach((function(t,i){0!==t&&t!==c&&t!==y&&(r[n+i]=e[i]||r[n+i])})):(a=Pr(t),s=a.min,f=a.max,t.forEach((function(t,e){0!==t&&t!==c&&t!==y&&(r[n+e]=Cr(i,o,u,t,s,f))})))}function Or(t,r,n,e,i,o){var u,a,s,f,c=r.year,y=r.month,m=r.values,h=r.emptyColor||"lightgray",M=r.startColor,d=r.middleColor,l=r.endColor,v="white",b=6,g=7,p=2,F=(i-(b+1)*p)/b,_=(o-(g+1)*p)/g,w=[],D=new Date(c,y-1,1).getDay();for(u=0;u<b*g;u++)u<D?w[u]=v:u<D+xr(c,y)?w[u]=h:w[u]=v;for(Ar(m,w,D,r.colors,M,d,l),t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),a=0,s=0;s<b;s++)for(f=0;f<g;f++)t.fillStyle=w[a],a++,t.fillRect(n+s*F+(s+1)*p,e+f*_+(f+1)*p,F,_);t.restore()}function Tr(t){var r,n=t.getFullYear(),e=t.getMonth(),i=t.getDate();for(r=1;r<e+1;r++)i+=xr(n,r);return i}function Er(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C=r.year,P=r.values,A=r.emptyColor||"lightgray",O=r.startColor,T=r.middleColor,E=r.endColor,j="white",R=7,I=parseInt(366/R+"",10)+2,B=[],G=new Date(C,0,1).getDay(),L=Tr(new Date(C,11,31));for(a=0;a<I*R;a++)B[a]=a<G?j:a<G+L?A:j;for(Ar(P,B,G,r.colors,O,T,E),t.save(),t.rect(n,e,i,o),t.clip(),c=n+(f=15*(s=u.zoomFactor)),y=e,m=i-f,h=o,t.save(),t.translate(n+f/2,y+h),t.rotate(-Math.PI/2),t.font=13*s+V,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(C+"",h/2,0),t.restore(),d=(m-(I+1)*(M=2))/I,l=(h-(R+1)*M)/R,v=0,F=[],g=0;g<I;g++)for(b=0;b<R;b++)p={x:c+g*d+(g+1)*M,y:y+b*l+(b+1)*M,w:d,h:l},F[v]=p,t.fillStyle=B[v],v++,t.fillRect(p.x,p.y,p.w,p.h);for(_=[],w={},D=0;D<12;D++)w[D]=Tr(new Date(C,D,1))-1+G;for(H=w[11]+xr(C,12)-1,v=0,g=0;g<I;g++)for(b=0;b<R;b++)G<=v&&v<G+L&&(x=w[N=($=new Date(C,0,v-G+1)).getMonth()],p=F[v],x<=v&&v<7+x&&_.push({x1:p.x,y1:p.y-M/2,x2:p.x,y2:p.y+p.h+M/2}),v!==x&&0!==$.getDay()||_.push({x1:p.x-M/2,y1:p.y,x2:p.x+p.w+M/2+(v===x?M:0),y2:p.y}),H-7<v&&v<=H&&_.push({x1:p.x+p.w,y1:p.y-M/2,x2:p.x+p.w,y2:p.y+p.h+M/2}),v!==H&&6!==$.getDay()||_.push({x1:p.x-M/2-(v===H?M:0),y1:p.y+p.h,x2:p.x+p.w+M/2,y2:p.y+p.h})),v++;for(t.strokeStyle="black",t.lineWidth=2,k=0;k<_.length;k++)S=_[k],t.beginPath(),t.moveTo(S.x1,S.y1),t.lineTo(S.x2,S.y2),t.stroke();t.restore()}function jr(t){var r,n,e=zt(t.minAngle-90),i=zt(t.maxAngle-90),o=t.minValueOption.value,u=t.maxValueOption.value,a=t.ranges,s=I,f=(i-e)/(u-o),c=[];return a.length>0&&a.forEach((function(t){r=t.start,n=t.end,c.push({start:f*(r-o)+e,end:f*(n-o)+e,color:t.color})})),c.unshift({start:e,end:i,color:s}),{paintRanges:c,fillColor:s,targetValueRadian:f*(t.targetValueOption.value-o)+e,currentValueRadian:f*(t.currentValueOption.value-o)+e,minValueRadian:e,maxValueRadian:i}}function Rr(t,r,n,e,i,o,u){var a,s,f,c,h,M,d,b=o.zoomFactor,g=t.currentValueOption.normalFontHeight*b,p=t.minValueOption.normalFontHeight*b,_=t.maxValueOption.normalFontHeight*b,w=t.minAngle,D=t.maxAngle,H=t.currentValueOption.normalFontWidth*b,$=F(w)>90||F(D)>90,N=F(w)>120||F(D)>120,x=yt*l(e,i);return u?(a=m(e/2*ct),s=m(i*ct),c=l(a,f=$?s/2:s),M=(i-($?2*c:c))/2,d=.03*c,h={x:r+e/2,y:n+i/2+($?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio,currentValuePoint:y,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:p<M,enoughShowMaxLabel:_<M,moreThanSemiCircle:$},$?N?2*g/3<M-d-v(_,p)&&H<e-2*x&&(h.currentValuePoint={x:h.x,y:h.y+c+d+g/2+v(_,p)},h.enoughShowCurrentLabel=!0):2*g/3<i/2-d&&H<e-2*x&&(h.currentValuePoint={x:h.x,y:h.y+2*d+g},h.enoughShowCurrentLabel=!0):g<M-d&&H<e-2*x&&(h.currentValuePoint={x:h.x,y:h.y+g},h.enoughShowCurrentLabel=!0)):(a=m(e/2*ft),s=m(i*ft),c=l(a,f=$?s/2:s),h={x:r+e/2,y:n+i/2+($?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio}),h}function Ir(t,r,n,e){return{x:t+d(n)*e,y:r+M(n)*e}}function Br(t,r){return F(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:L}:r.x>t.x?{x:r.x+et,y:r.y,textAlign:B}:r.x<t.x?{x:r.x-et,y:r.y,textAlign:G}:{x:r.x,y:r.y,textAlign:B}}function Gr(t,r,n,e,i,o,a){var s,f,c,y,l,b,g,p,_,w,D,H,$,N,x,k,S,C,P,T,E,R,I,z,K,J,V,W,q,Y,tt,et,it,ot,at,st=a.zoomFactor,ft=!!u(r.showLabel)||r.showLabel,ct=Rr(r,n,e,i,o,a,ft);if(!(ct.outerRadius<=0))return s={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=ct.innerRadius,c=ct.outerRadius,y=ct.currentValuePoint,l=ct.moreThanSemiCircle,b={x:ct.x,y:ct.y},p=(g=jr(r)).paintRanges,_=g.fillColor,t.save(),p.forEach((function(r){t.beginPath(),t.strokeStyle=A,t.moveTo(b.x,b.y),t.fillStyle=r.color||_,t.arc(b.x,b.y,c,r.start,r.end,!1),t.lineTo(b.x,b.y),t.closePath(),t.fill(),t.stroke(),t.beginPath(),t.fillStyle=A,t.strokeStyle=A,t.moveTo(b.x,b.y),t.arc(b.x,b.y,f,r.start-mt,r.end+mt,!1),t.lineTo(b.x,b.y),t.closePath(),t.fill(),t.stroke()})),t.beginPath(),t.moveTo(b.x,b.y),t.fillStyle=O,t.arc(b.x,b.y,c*X,0,2*h,!1),t.fill(),w=Ir(b.x,b.y,g.targetValueRadian,f),D=Ir(b.x,b.y,g.targetValueRadian,c*Q),St(t,w.x,w.y,D.x,D.y,rt,nt,j),H=Ir(b.x,b.y,g.currentValueRadian,c*Q),xt(t,b.x,b.y,H.x,H.y,O,Z*c),ft&&(t.save(),t.beginPath(),t.textAlign=U,t.fillStyle=j,$=r.minValueOption.normalFontHeight*st,N=r.maxValueOption.normalFontHeight*st,x=r.minValueOption.normalFontWidth*st,k=r.maxValueOption.normalFontWidth*st,S=g.minValueRadian,C=g.maxValueRadian,P=r.currentValueOption.normalFontHeight*st,T=r.currentValueOption.normalFontWidth*st,E=void 0,R=void 0,I=void 0,ct.enoughShowCurrentLabel&&(Pt(t,y.x,y.y,r.currentValueOption.label,r.currentValueOption.fontAfterZoom,L),s.showCurrentLabel=!0,E={x:y.x-T/2,y:y.y-P,width:T,height:P}),ct.enoughShowMinLabel&&F(d(S)*c)+x<i/2-ut&&(z=Ir(b.x,b.y,g.minValueRadian,c),Wt(R={x:(K=Br(b,z)).x-x,y:K.y,width:x,height:$},E)||(Pt(t,K.x,K.y+m($),r.minValueOption.label,r.minValueOption.fontAfterZoom,G),s.showMinLabel=!0)),ct.enoughShowMaxLabel&&F(d(C)*c)+k<i/2-ut&&(J=Ir(b.x,b.y,g.maxValueRadian,c),Wt(I={x:(V=Br(b,J)).x,y:V.y,width:k,height:N},E)||(Pt(t,V.x,V.y+m(N),r.maxValueOption.label,r.maxValueOption.fontAfterZoom,B),s.showMaxLabel=!0)),ct.enoughShowTargetLabel&&(W=r.targetValueOption.normalFontWidth*st,q=r.targetValueOption.normalFontHeight*st,Y=r.targetValueOption.label,tt=c+3*q/2,D=Ir(b.x,b.y,g.targetValueRadian,tt),et=Br(b,D),it=g.targetValueRadian,ot=l?(o-2*tt)/2+tt:o-(o-c)/2,F(d(it)*tt)+W<i/2-ut&&F(M(it)*tt)+q/2+ut/2<ot&&(at=v($,N)/2,Pt(t,et.x,et.y-(it>h?at:-at),Y,r.targetValueOption.fontAfterZoom,et.textAlign),s.showTargetLabel=!0)),t.restore()),t.restore(),s}function Lr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,h=t.currentValueOption.normalFontHeight*u,M=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,l=t.targetValueOption.normalFontWidth*u,b=t.currentValueOption.normalFontWidth*u,g=.05*e,p=m(i*at),F=m(e*st),_={x:r+e*(1-st)/2,y:n+i*(at+(1-at)/2),graphWidth:F,graphHeight:p,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&(s<(i-p)/2&&M<(e-F)/2-g&&(_.minValuePoint={x:_.x-M,y:_.y+s/3},_.enoughShowMinLabel=!0),f<(i-p)/2&&d<(e-F)/2-g&&(_.maxValuePoint={x:_.x-d,y:_.y-p+f/3},_.enoughShowMaxLabel=!0),(c<(i-p)/2||c/2<p)&&l<(e-F)/2-g-v(M,d)&&(_.targetValuePoint={x:_.x-l-v(M,d),y:y},_.enoughShowTargetLabel=!0),(h<(i-p)/2||h/2<p)&&b<(e-F)/2-g&&(_.currentValuePoint={x:_.x+F+g,y:y},_.enoughShowCurrentLabel=!0)),_}function zr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphHeight/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.y-s*(n-i),height:s*(e-n),color:t.color})})),f.unshift({start:r.y,height:r.graphHeight,color:a}),{paintRanges:f,fillColor:a,targetValueY:r.y-s*(t.targetValueOption.value-i),currentValueY:r.y-s*(t.currentValueOption.value-i)}}function Kr(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,b,g=u.zoomFactor,p=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Lr(r,n,e,i,o,u),$=H.graphWidth,N=H.graphHeight;if(!($<=0||N<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},M=(h=zr(r,H)).paintRanges,d=w.normalFontHeight*g,l=D.normalFontHeight*g,v=h.targetValueY,b=h.currentValueY,t.save(),M.forEach((function(r){Jt(t,m.x,r.start,$,-r.height,r.color)})),St(t,m.x-(Q-1)*$,v,m.x+$,v,rt,nt,j),xt(t,m.x,b,m.x+$*Q,b,O,tt*N),p&&(t.save(),t.beginPath(),H.enoughShowMinLabel&&(Pt(t,c.x,c.y,F.label,F.fontAfterZoom,B,j),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Pt(t,y.x,y.y,_.label,_.fontAfterZoom,B,j),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-e+l/2>o||v-e-ot<0)&&(Pt(t,f.x,h.targetValueY+D.normalFontHeight*g/3,D.label,D.fontAfterZoom,B,j),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(b-e+d/2>o||b-e-ot<0)&&(Pt(t,s.x,h.currentValueY+w.normalFontHeight*g/3,w.label,w.fontAfterZoom,B,j),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Jr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,h=t.currentValueOption.normalFontHeight*u,M=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,b=t.currentValueOption.normalFontWidth*u,g=t.targetValueOption.normalFontWidth*u,p=.1*l(e,i),F=m(i*st),_=m(e*at),w={x:r+e*(1-at)/2,y:n+i*(1-st)/2,graphWidth:_,graphHeight:F,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&((b<3*(e-_)/4||b<_)&&h<(i-F)/2-ut&&(w.currentValuePoint={x:y,y:w.y-h/2},w.enoughShowCurrentLabel=!0),(g<3*(e-_)/4||g<_)&&c<(i-F)/2-v(s,f)&&(w.targetValuePoint={x:y,y:w.y+F+v(s,f)+c/4*3},w.enoughShowTargetLabel=!0),M<3*(e-_)/4&&s<(i-F)/2-p&&(w.minValuePoint={x:w.x-M/2,y:w.y+F+s},w.enoughShowMinLabel=!0),d<3*(e-_)/4&&f<(i-F)/2-p&&(w.maxValuePoint={x:w.x+_-d/2,y:w.y+F+f},w.enoughShowMaxLabel=!0)),w}function Ur(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphWidth/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.x+s*(n-i),width:s*(e-n),color:t.color||a})})),f.unshift({start:r.x,width:r.graphWidth,color:a}),{paintRanges:f,fillColor:a,targetValueX:r.x+s*(t.targetValueOption.value-i),currentValueX:r.x+s*(t.currentValueOption.value-i)}}function Vr(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,b,g=u.zoomFactor,p=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Jr(r,n,e,i,o,u),$=H.graphWidth,N=H.graphHeight;if(!($<=0||N<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},M=(h=Ur(r,H)).paintRanges,d=w.normalFontWidth*g,l=D.normalFontWidth*g,v=h.targetValueX,b=h.currentValueX,t.save(),M.forEach((function(r){Jt(t,r.start,m.y,r.width,N,r.color)})),St(t,v,m.y,v,m.y+N*Q,rt,nt,j),kt(t,b,m.y+N-1,b,m.y-N*(Q-1)-1,O,$*tt),p&&(t.save(),H.enoughShowMinLabel&&(Pt(t,c.x,c.y,F.label,F.fontAfterZoom,B,j),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Pt(t,y.x,y.y,_.label,_.fontAfterZoom,B,j),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-n+l/2+it>i||v-n-l/2-it<0)&&(Pt(t,v-D.normalFontWidth*g/2,f.y,D.label,D.fontAfterZoom,B,j),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(b-n+d/2+it>i||b-n-d/2-it<0)&&(Pt(t,b-w.normalFontWidth*g/2,s.y,w.label,w.fontAfterZoom,B,j),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Wr(t,r,n,e,i,o,u){t.save(),t.rect(n,e,i,o),t.clip(),0===r.gaugeType?Gr(t,r,n,e,i,o,u):1===r.gaugeType?Kr(t,r,n,e,i,o,u):2===r.gaugeType&&Vr(t,r,n,e,i,o,u),t.restore()}function qr(t,r,n,e,i,o,u,a){var s,f,c,y,m,h,M=[],d=t.length,l=0,v=u.fontPixelSize;if(o&&(l=v+3),0===d)return M;for(s=e/d,f=t[0].value,c=1;c<d;c++)f=Math.max(f,t[c].value);for(y=0;y<d;y++)m=n+i-l,(h=t[y].value/f*(i-l))<0&&(h=0),M.push({x:r+y*s+s*(1-a)/2,textX:r+y*s,y:m-h,width:s*a,textWidth:s,height:h,axis:t[y].axis});return M}function Yr(t,r,n,e){t.save(),t.fillStyle=n;for(var i=0;i<r.length;i++)t.fillRect(r[i].x,r[i].y,r[i].width,r[i].height);t.restore()}function Xr(t,r,n,e){var i,o,u,a,s;for(t.save(),i=n.fontPixelSize,o=rn(n),t.textAlign="center",t.fillStyle=e,u=0;u<r.length;u++)a=void 0,s=void 0,a=r[u].x+r[u].width/2,s=r[u].y+r[u].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(r[u].textX,r[u].y+r[u].height+1,r[u].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(r[u].axis,a,s),t.restore();t.restore()}function Zr(t,r,n,e){var i,o,u,a,s,f;if("none"!==e){for(t.save(),t.lineWidth=1,t.strokeStyle=e,t.beginPath(),i=0;i<r.length;i++)u=(o=r[i]).x,a=o.y,s=o.width,0!==(f=o.height)&&0!==s&&(xt(t,u,a,u+s,a),xt(t,u,a+f,u+s,a+f),r[i-1]&&r[i-1].height>=f&&1===n||xt(t,u,a,u,a+f),r[i+1]&&r[i+1].height>f&&1===n||xt(t,u+s,a,u+s,a+f));t.stroke(),t.closePath(),t.restore()}}function Qr(t,r,n,e,i){var o,u,a,s,f,c=!1;for(t.save(),t.font=i,u=(n-6)/(o=r.length),a=0,s=r;a<s.length;a++)if(f=s[a],t.measureText(f.axis).width>u){c=!0;break}return t.restore(),c}function tn(t,r,n,e,i,o,a){var s,f,c,y=r.barColor,m=r.values,h=r.paintLabel,M=r.barWidth,d=r.labelFontStyle,l=r.afterZoomFontStyle,v=r.edgeColor,b=r.labelColor;u(d)||(o<3*(s=l.fontPixelSize)||Qr(t,m,i,o,rn(l)))&&(h=!1),h&&u(d)&&(f=Math.floor(o/3>=12?12:Math.floor(o/3)),l.fontPixelSize=f,l.fontSize=f+"px",Qr(t,m,i,o,rn(l))&&(h=!1)),Yr(t,c=qr(m,n+3,e+3,i-6,o-6,h,l,M),y,v),Zr(t,c,M,v),h&&Xr(t,c,l,b)}function rn(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function nn(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d;t.save(),t.rect(n,e,i,o),t.clip(),a=r.clipX,s=r.clipY,f=r.clipWidth,c=r.clipHeight,y=r.paintX,m=r.paintY,h=r.paintWidth,M=r.paintHeight,d=r.img,f>0&&c>0&&h>0&&M>0&&t.drawImage(d,a,s,f,c,y,m,h,M),t.restore()}Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineExRenders=r.SparklineRender=r.Uzt=r.Hzt=r.zzt=r.oCt=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/colorhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=e.lt.ht,a=i.ft.YGt,s=i.ft._,f=o.Uf.hD,r.oCt={},c=null,y=void 0,m=Math.floor,h=Math.PI,M=Math.sin,d=Math.cos,l=Math.min,v=Math.max,b=Math.round,g=Math.pow,p=Math.sqrt,F=Math.abs,_=Math.ceil,w="undefined",D="string",H=isNaN,$=parseFloat,N=Number.MAX_VALUE,x=new Date(""),k="#969696",S="#CB0000",C="#646464",P="#DCDCDC",A="white",O="black",T="blue",E="green",j="grey",R="red",I="lightgrey",B="left",G="right",L="center",z="top",K="bottom",J="middle",U="start",V="px Arial",W="-",q="+",Y="=",X=.05,Z=.03,Q=1.06,tt=.02,rt=4,nt=5,et=5,it=3,ot=10,ut=8,at=.8,st=.25,ft=.9,ct=.7,yt=.1,mt=1/45*h,ht=function(){function t(t){this.x=t.x,this.y=t.y}return t}(),Mt=function(){function t(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}return t}(),dt=function(t){function r(r){var n=t.call(this,Ht(r.x,r.y))||this;return n.value=r.value,n}return wt(r,t),r}(ht),lt="7ns",vt="5ns",bt="tukey",gt="bowley",pt="sigma3",r.zzt=Gr,r.Hzt=Kr,r.Uzt=Vr,Ft=function(){function t(t,r,n,e){this.X=t,this.Y=r,this.Width=n,this.Height=e,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}return t}(),_t=function(){function t(){this.Bzt=2,this.Lzt=x,this.Fzt=x,this.Pzt=N,this.Gzt=-N}return t.prototype.paint=function(t,r,n,e,i,o){var u,a,s,f=this;f.options=r,f.setting=r.settings,u=r.values,a=r.dateValues,s=r.zoomFactor,t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),0===r.sparklineType&&f.c6(t,n,e,i,o,u,a,s),f.Vzt(t,n,e,i,o,u,a,s),f.Yzt(t,n,e,i,o,u,a,s),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,n){var e,i,u,a,s,m,h,M,d,v=this.Kzt;if(v)return v;if(v=this.Kzt=[],e=t.length,this.options.displayDateAxis){for(a=n.length,m=[],(s=l(e,a))>0&&(m=n.slice(0,s)),m.sort((function(t,n){return t===n?0:(t===r.oCt&&(t=0),n===r.oCt&&(n=0),t-n)})),h=m.length,M=void 0,d=void 0,i=0;i<h;i++)if(typeof(M=m[i])!==w&&M!==c){for(d=f(n,M);o.Uf.OS(v,d);)d=f(n,M,d+1);isNaN(M)||(u=t[d])!==y&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(d)}}else for(i=0;i<e;i++)typeof(u=t[i])!==w&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(i);return v},t.prototype.Sl=function(t,n){var e=n[t];return typeof e===w||e===c?1===this.setting.options.displayEmptyCellsAs&&(e=0):e===r.oCt&&(e=0),e},t.prototype.c6=function(t,r,n,e,i,o,u,a){var s,f,y,m,h,M,d,l,v,b,g,p,F,_,D,H=this,$=H.Qzt(o,u),N=$.length-1;for(N<0&&(N=0),m=H.setting.options,h=H.linePos=[],g=m.displayEmptyCellsAs,s=0;s<N;s++)if(typeof(M=H.Sl($[s],o))!==w&&M!==c){if(l=s+1,typeof(d=H.Sl($[l],o))===w||d===c)if(1===g)d=0;else if(2===g)for(l=s+2;l<=N;l++)if(typeof(p=o[$[l]])!==w&&p!==c){d=p;break}typeof d!==w&&d!==c?(v=H.Jzt($[s],{Width:e,Height:i},o,u,a),b=H.Jzt($[l],{Width:e,Height:i},o,u,a),F=v.Width/2,f={X:v.X+F,Y:v.Y+F},y={X:b.X+F,Y:b.Y+F},h[s]={P1:f,P2:y}):s++}if((_=h.length)>0)for(t.strokeStyle=H.options.getColor(m.seriesColor),t.lineCap="round",t.lineWidth=H.Wzt(a),s=0;s<_;s++)(D=h[s])&&(t.beginPath(),f=D.P1,y=D.P2,t.moveTo(r+f.X,n+f.Y),t.lineTo(r+y.X,n+y.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,r,n){var e,i,o,u=this,a=u.options,s=u.setting.options,m=c,h=u.Sl(t,r),M=u.Qzt(r,n),d=M.length,l=a.getColor.bind(u);return typeof h!==w&&h!==c&&(u.Pzt!==N&&u.Gzt!==-N||u.qzt(r),h===u.Pzt&&s.showLow&&(m=l(s.lowMarkerColor)),h!==u.Gzt||!s.showHigh||typeof m!==w&&m!==c||(m=l(s.highMarkerColor)),typeof m!==w&&m!==c||(a.displayDateAxis?0===(e=f(M,t))&&s.showFirst&&(m=l(s.firstMarkerColor)):0===t&&s.showFirst&&(m=l(s.firstMarkerColor))),typeof m!==w&&m!==c||(a.displayDateAxis?(i=f(M,t))===d-1&&s.showLast&&(m=l(s.lastMarkerColor)):t===d-1&&s.showLast&&(m=l(s.lastMarkerColor))),h<0&&s.showNegative&&(typeof m===w||m===c)&&(m=l(s.negativeColor)),typeof m!==w&&m!==c||(0===(o=a.sparklineType)?s.showMarkers&&(m=l(s.markersColor)):(1===o||2===o)&&(m=l(s.seriesColor)))),m===y||m===c?"Transparent":m},t.prototype.Vzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,M,d,l,v,b,g,p=this,F={Width:e,Height:i},_=p.Qzt(o,u),w=_.length,D=p.options.sparklineType;for(g=0;g<w;g++)s=_[g],f=p.Xzt(s,o,u),c=p.Jzt(s,F,o,u,a),t.fillStyle!==f&&(t.fillStyle=f),0===D?(t.save(),y=r+c.X+c.Width/2,M=n+c.Y+c.Height/2,t.translate(y,M),t.rotate(45*h/180),t.fillRect(0-c.Width/2,0-c.Height/2,c.Width,c.Height),t.restore()):(d=r+c.X+c.Width/4,d=m(d),l=n+c.Y,v=c.Width/2,b=c.Height,t.fillRect(d,l,v,b))},t.prototype.Yzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,h,M,d,l=this,v=l.setting&&l.setting.options;v&&v.displayXAxis&&l.$zt(o,u)&&(s={Width:e,Height:i},f=l.Zzt(a),c=s.Width-l.Zzt(a),h=y=m(l.tVt(s,o,a))+.5,M=l.options.getColor(v.axisColor),(d=a)<1&&(d=1),t.strokeStyle!==M&&(t.strokeStyle=M),t.lineWidth!==d&&(t.lineWidth=d),t.beginPath(),t.moveTo(r+f,n+y),t.lineTo(r+c,n+h),t.stroke())},t.prototype.nVt=function(t){var r,n=this.eVt(t);return n===-N||(r=this.iVt(t))===N||(n===r||n*r<=0)},t.prototype.$zt=function(t,r){var n,e,i,o,u,a=this.nVt(t);if(2!==this.options.sparklineType)return a;if(e=(n=this.Qzt(t,r)).length,!a&&e>0)for(u=0;u<e;u++)if(typeof(o=t[i=n[u]])!==w&&o!==c)return!0;return a},t.prototype.rVt=function(t,r){var n=this.Lzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Lzt},t.prototype.aVt=function(t,r){var n=this.Fzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Fzt},t.prototype.oVt=function(t,r){var n,e,i,o,u=this,a=new Date(0,0,0),s=N,f=u.Qzt(t,r),y=f.length;for(o=0;o<y;o++)e=r[n=f[o]],isNaN(e)||(i=u.Sl(n,t))!==c&&typeof i===w||isNaN(i)||typeof e!==w&&e!==c&&(e>a&&(a=e),e<s&&(s=e));u.Fzt=a,u.Lzt=s},t.prototype.uVt=function(t,r,n,e){var i,o,u,a,s,f,c,y,m=this,h=m.rVt(r,n),M=m.aVt(r,n),d=[],l=m.Qzt(r,n),v=l.length;for(i=0;i<v;i++)(o=n[u=l[i]])&&!isNaN(o)&&d.push(o);if(d.sort((function(t,r){return t-r})),(a=d.length)>1&&h!==M){for(s=N,f=0,c=void 0,i=1;i<a;i++)(o=(c=d[i])-d[i-1])<s&&o>0&&(s=o),f+=o;return(y=(t.Width-m.Zzt(e)-m.Zzt(e))*s/f/2)<2&&(y=2),y}return(t.Width-m.Zzt(e)-m.Zzt(e))/2},t.prototype.sVt=function(t,r,n,e){var i,o=this;return o.options.displayDateAxis?o.uVt(t,r,n,e):(i=o.Qzt(r,n).length,(t.Width-o.Zzt(e)-o.Zzt(e))/i)},t.prototype.cVt=function(t,r,n,e,i){var o,u,a,s,c,y,h,M,d=this,l=d.Zzt(i);return d.options.displayDateAxis?(o=d.sVt(t,n,e,i),(u=d.aVt(n,e))===(a=d.rVt(n,e))?l+o/2:(s=e[r])?(c=t.Width-l-d.Zzt(i),c-=o,y=u.valueOf()-a.valueOf(),l+m((s.valueOf()-a.valueOf())/y*c)):0):(o=d.sVt(t,n,e,i),h=f(d.Qzt(n,e),r),m(M=l+o*h))},t.prototype.fVt=function(t,r){var n,e=this,i=t.Width-e.Zzt(r)-e.Zzt(r);return i=v(i,0),n=t.Height-e.Zzt(r)-e.Zzt(r),{Width:i,Height:n=v(n,0)}},t.prototype.qzt=function(t){var r,n,e=this,i=t.length;for(n=0;n<i;n++)typeof(r=t[n])!==w&&r!==c&&("number"!=typeof r&&(r=0),r<e.Pzt&&(e.Pzt=r),r>e.Gzt&&(e.Gzt=r))},t.prototype.eVt=function(t){var r,n,e=this;return e.Gzt!==-N&&e.Gzt||e.qzt(t),0===(n=(r=e.setting.options).maxAxisType)?e.Gzt:1===n?r.groupMaxValue:2===n?r.manualMax:e.Gzt},t.prototype.iVt=function(t){var r,n,e=this;return e.Pzt!==N&&e.Pzt||e.qzt(t),0===(n=(r=e.setting.options).minAxisType)?e.Pzt:1===n?r.groupMinValue:2===n?r.manualMin:void 0},t.prototype.lVt=function(t,r,n,e){var i=this.fVt(t,e),o=this.eVt(n),u=this.iVt(n),a=o-u,s,f;if(o===u){if(0===o)return 0;a=F(o)}return(s=n[r])||(s=0),s*(f=i.Height/a)},t.prototype.hVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;if(0===s)return a.lVt(t,r,n,e);if(1===s){if(i=n[r],1===a.setting.options.displayEmptyCellsAs&&(typeof i===w||i===c))return 0;if((o=a.lVt(t,r,n,e))>-a.Bzt&&o<a.Bzt){if(i>0)return o+a.Bzt;if(i<0)return o-a.Bzt}return o}return 2===s?typeof(i=n[r])===w||i===c||0===i||isNaN(i)?0:(u=a.fVt(t,e),i>=0?u.Height/2:-u.Height/2):void 0},t.prototype.dVt=function(t,r,n){var e,i,o=this,u=o.fVt(t,n),a=o.eVt(r),s=o.iVt(r);if(a===-N||s===N)return t.Height/2;if(e=a-s,a===s){if(0===a)return t.Height/2;e=a,a<0&&(a=0)}return i=u.Height/e,o.Zzt(n)+a*i},t.prototype.tVt=function(t,r,n){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,r,n)},t.prototype.vVt=function(t,r,n,e){var i,o,u,a=this,s=a.fVt(t,e),f=a.eVt(n),y=a.iVt(n),m=f-y;if(f===y){if(0===f)return 0;m=f}return i=s.Height/m,typeof(o=a.Sl(r,n))!==w&&o!==c||(o=0),f!==y&&f*y>0?(u=0,u=o>=0?(o-y)*i:(o-f)*i):o*i},t.prototype.mVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;return 0===s?a.vVt(t,r,n,e):1===s?(i=a.vVt(t,r,n,e))>-(o=a.Bzt)&&i<o&&(typeof(u=a.Sl(r,n))!==w&&u!==c||(u=0),0!==u)?u>0?i+o:i-o:i:2===s?a.hVt(t,r,n,e):void 0},t.prototype.gVt=function(t,r,n,e,i){var o,u,a,s,f,c,y,h,M,d=this,l=d.sVt(r,n,e,i),b=d.cVt(r,t,n,e,i);return l<0&&(l=0),(l=m(l))%2==1&&(l+=1),o=d.hVt(r,t,n,i),u=d.tVt(r,n,i),a=d.eVt(n),s=d.iVt(n),f=0,a<0&&s<0?f=v(d.Zzt(i),u):(f=u,o>=0&&(f=u-o)),c=d.mVt(r,t,n,i),y=new Ft(b,f,l,F(c)),0!==o&&(h=d.Zzt(i),y.Y<h&&y.Bottom<h+1?y.Height=m(y.Height+1):(M=r.Height-d.Zzt(i),y.Bottom>M&&y.Y>M-1&&(y.Y=M-c,y.Height=c))),y},t.prototype.Wzt=function(t){var r=this.setting.options.lineWeight*t;return r<1&&(r=1),r},t.prototype.Jzt=function(t,r,n,e,i){var o,u,a,s,f,y=this,m=y.Wzt(i);return++m<2&&(m=2),o=y.gVt(t,r,n,e,i),0===y.options.sparklineType&&(o.X=o.X+(o.Width-m)/2,typeof(u=y.Sl(t,n))!==w&&u!==c?(u>=0?o.Y-=m/2:o.Y=o.Bottom-m/2,o.Width=m,o.Height=m):(o.Width=0,o.Height=0)),y.setting.options.rightToLeft&&(a=o.X,f=(s=r.Width-a)-o.Width,o=new Ft(f,o.Y,o.Width,o.Height)),o},t}(),r.SparklineRender=_t,r.SparklineExRenders={PIESPARKLINE:qt,AREASPARKLINE:Qt,SCATTERSPARKLINE:rr,BULLETSPARKLINE:ur,SPREADSPARKLINE:ar,STACKEDSPARKLINE:yr,HBARSPARKLINE:vr,VBARSPARKLINE:br,VARISPARKLINE:gr,LOLLIPOPVARISPARKLINE:pr,BOXPLOTSPARKLINE:Fr,CASCADESPARKLINE:$r,PARETOSPARKLINE:Nr,MONTHSPARKLINE:Or,YEARSPARKLINE:Er,GAUGEKPISPARKLINE:Wr,HISTOGRAMSPARKLINE:tn,IMAGESPARKLINE:nn}},canvas:function(t){t.exports=canvas}},e={};function i(t){var r,o=e[t];return void 0!==o?o.exports:(r=e[t]={exports:{}},n[t].call(r.exports,r,r.exports,i),r.exports)}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t={},function(){var r,n,e,o,u,a=t;Object.defineProperty(a,"__esModule",{value:!0}),a.Slicers=a.Sparklines=a.Formatter=a.Commands=a.Common=void 0,r=i("./src/common/common.entry.ts"),a.Common=r,n=i("./src/plugins/commands/commands.entry.ts"),a.Commands=n,e=i("./src/plugins/formatter/formatter.entry.ts"),a.Formatter=e,o=i("./src/plugins/sparkline/sparkline.entry.ts"),a.Sparklines=o,u=i("./src/plugins/slicer/slicer.entry.ts"),a.Slicers=u}(),(r=void 0===r?{}:r).Spread=t}(),t.exports=r.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,r,n)=>{t.exports=n("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={};function e(t){var i,o=n[t];return void 0!==o?o.exports:(i=n[t]={exports:{}},r[t](i,i.exports,e),i.exports)}t=e("./node_modules_local/@spreadjs/js-sheets-common/index.js"),(GC=void 0===GC?{}:GC).Spread=t})(),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd?define("@grapecity-software/spread-common",[],(function(){return t})):"object"==typeof exports&&(exports.Spread=t.Spread)}(GC||{});
|