@grapecity/activereports
Version:
ActiveReportsJS
10 lines • 4.08 MB
JavaScript
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.dv = factory();
}
}(this, function() {
"use strict";var dv,__extends=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),__spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},__decorate=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,l=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(r<3?o(l):r>3?o(e,i,l):o(e,i))||l);return r>3&&l&&Object.defineProperty(e,i,l),l};!function(t){var e=function(){function t(){}return t.Precision=.01,t.LabelPadding=2,t.TooltipThreshold=15,t.BarLineStroke="#000000",t.MiterSize=4,t.MajorTick=4,t.MinorTick=2,t.LogBase=10,t.AxisOrigin=0,t.BarWidth=.7,t.TextOffset=0,t.ViewSize=1,t.AnimationStay=200,t.SymbolValue=15,t.NeedleEndOffset=10,t.AnimationDuration=200,t.AnimationStartDelay=0,t.AnimationEndDelay=0,t.Padding=0,t.Margin=0,t.StrokeWidth=0,t.DataPointTextScope="DataPoint",t.ClusterTextScope="Cluster",t.ZoomInAcceleratedSpeed=1.1,t.ZoomOutAcceleratedSpeed=.9,t.AxisMaxWidthOrHeight=.75,t.AxisSetValueMaxWidthOrHeight=.5,t.MaxMajorTickCount=1e3,t.MaxMinorTickCount=2e3,t}();t._Constants=e}(dv||(dv={})),dv||(dv={}),dv||(dv={}),function(t){!function(t){t[t.NotLoad=0]="NotLoad",t[t.Loading=1]="Loading",t[t.Loaded=2]="Loaded"}(t.AsyncResourceState||(t.AsyncResourceState={}))}(dv||(dv={})),function(t){var e=function(){function t(){this.__callbacks=[],this.__loadingResources=[]}return Object.defineProperty(t.prototype,"completed",{get:function(){return this.__loadingResources.length<=0},enumerable:!1,configurable:!0}),t.prototype.load=function(t){var e=this;if(!t._isCompleted()){this.__loadingResources.push(t);var i=this;t._load((function(t){var n=e.__loadingResources.indexOf(t);if(n>=0&&e.__loadingResources.splice(n,1),e.__loadingResources.length<=0){for(var o=0,r=e.__callbacks;o<r.length;o++){(0,r[o])(i)}e.__callbacks=[]}}))}},t.prototype.wait=function(t){this.__loadingResources.length<=0?t(this):this.__callbacks.push(t)},t}();t._BuildInAsyncResourcePool=e}(dv||(dv={})),dv||(dv={}),dv||(dv={}),function(t){var e=function(){function e(t){this._paths=this._splitPath(t)}return e.prototype._getValueFromPath=function(e,i){if(null==e)return this._getValueFromUnsupportedPath(e,i);if("object"==typeof e){if(Array.isArray(e)){if("length"==i)return t._NativeExtension.getPropertyValue(e,i);i.length>2&&"["==i[0]&&"]"==i[i.length-1]&&(i=i.substring(1,i.length-1));var n=parseInt(i,10);if(isNaN(n))return this._getValueFromUnsupportedPath(e,i);var o=e;return 0<=n&&n<o.length?o[n]:null}return t._NativeExtension.hasProperty(e,i,!0)?t._NativeExtension.getPropertyValue(e,i):this._getValueFromUnsupportedPath(e,i)}return this._getValueFromUnsupportedPath(e,i)},e.prototype._createUnknownPropertyObject=function(t,e){return null},e.prototype._setUnknownPropertyValue=function(e,i,n){t._NativeExtension.setPropertyValue(e,i,n)},e.prototype._getValue=function(t){if(this._paths.length>0)for(var e=0,i=this._paths.length;e<i;e++){var n=this._paths[e];t=this._getValueFromPath(t,n)}return this._convert(t)},e.prototype._setValue=function(e,i){if(this._paths.length>0)for(var n=0,o=this._paths.length-1;n<o;n++){var r=this._paths[n];if("object"==typeof e){if(Array.isArray(e)){r.length>2&&"["==r[0]&&"]"==r[r.length-1]&&(r=r.substring(1,r.length-1));var l=parseInt(r,10);if(isNaN(l)){if(null==(e=this._createUnknownPropertyObject(e,r)))return}else e=e[l]}else if(t._NativeExtension.hasProperty(e,r,!0))e=this._getValueFromPath(e,r);else if(null==(e=this._createUnknownPropertyObject(e,r)))return}else if(null==(e=this._createUnknownPropertyObject(e,r)))return}if("object"==typeof e){r=this._paths[this._paths.length-1];t._NativeExtension.hasProperty(e,r,!0)?t._NativeExtension.setPropertyValue(e,r,i):this._setUnknownPropertyValue(e,r,i)}},e}();t._BaseBinding=e}(dv||(dv={})),dv||(dv={}),function(t){var e=function(){function t(t){this.__comparer=t}return t.prototype._equalsWith=function(t,e){if(null==t&&null==e)return!0;if(null==t||null==e)return!1;if(t.length!=e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(!this.__comparer._equalsWith(t[i],e[i]))return!1;return!0},t}();t._ArrayEqualityComparer=e}(dv||(dv={})),function(t){var e=function(){function t(){}return t.prototype._equalsWith=function(t,e){return!(!isNaN(t)||!isNaN(e))||!isNaN(t)&&!isNaN(e)&&t===e},t}(),i=function(){function t(){}return t.prototype._equalsWith=function(e,i){if(null==e&&null==i)return!0;if(null==e||null==i)return!1;if(e.length!=i.length)return!1;for(var n=0,o=e.length;n<o;n++)if(!t.__numberEqualityComparer._equalsWith(e[n],i[n]))return!1;return!0},t.__numberEqualityComparer=new e,t}(),n=function(){function t(){}return t.prototype._equalsWith=function(t,e){return null==t&&null==e||null!=t&&null!=e&&(!(!isNaN(t)||!isNaN(e))||!isNaN(t)&&!isNaN(e)&&t===e)},t._numberEqualityComparer=new t,t._numberArrayEqualityComparer=new i,t}();t._NumberEqualityComparer=n}(dv||(dv={})),function(t){var e=function(){function e(t){void 0===t&&(t=null),this.__precision=t}return e.prototype._equalsWith=function(e,i){return null==e&&null==i||null!=e&&null!=i&&(!(!isNaN(e)||!isNaN(i))||!isNaN(e)&&!isNaN(i)&&Math.abs(e-i)<t._NativeExtension._toNonNullNumber(this.__precision,.1))},e._numberPixelRoundEqualityComparer=new e,e}();t._NumberPixelRoundEqualityComparer=e}(dv||(dv={})),function(t){var e=function(){function t(){}return t.prototype._equalsWith=function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.equalsWith(e)},t}();t._ObjectEqualityComparer=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e.prototype._equalsWith=function(t,e){return null==t&&null==e||null!=t&&null!=e&&t===e},e._stringEqualityComparer=new e,e._stringArrayEqualityComparer=new t._ArrayEqualityComparer(e._stringEqualityComparer),e}();t._StringEqualityComparer=e}(dv||(dv={})),dv||(dv={}),dv||(dv={}),dv||(dv={}),function(t){var e=function(){function t(t,e,i){this._name=t,this._numberFormat=e,this._calendar=i}return t._currentCulture=function(){return t._usCulture()},t._usCulture=function(){return null==this.__usCulture&&(this.__usCulture=new t("en-US",new o(new i(2,"%",["-n %","n %"],[3]),new n("USD",2,"$",["($n)","$n"],[3]),".",",","+","-","‰",2,["(n)","-n","- n","n-","n -"],[3]),new r(0,["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["AM","A"],["PM","P"],["A.D.","B.C."],{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",t:"h:mm tt",T:"h:mm:ss tt",M:"MMMM d",m:"MMMM d",Y:"MMMM, yyyy",y:"MMMM, yyyy",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",s:'yyyy"-"MM"-"dd"T"HH":"mm":"ss',o:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',O:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',U:"dddd, MMMM dd, yyyy h:mm:ss tt"},null,"/",":"))),this.__usCulture},t}();t._CultureInfo=e;var i=function(t,e,i,n){this._decimalDigits=t,this._symbol=e,this._pattern=i,this._groupSizes=n},n=function(t,e,i,n,o){this._currency=t,this._decimalDigits=e,this._symbol=i,this._pattern=n,this._groupSizes=o},o=function(t,e,i,n,o,r,l,a,u,s){this._percent=t,this._currency=e,this._decimalSeparator=i,this._groupSeparator=n,this._positiveSign=o,this._negativeSign=r,this._permilleSymbol=l,this._decimalDigits=a,this._negativePattern=u,this._groupSizes=s},r=function(t,e,i,n,o,r,l,a,u,s,_,p){this._firstDay=t,this._days=e,this._daysAbbr=i,this._months=n,this._monthsAbbr=o,this._am=r,this._pm=l,this._eras=a,this._patterns=u,this._twoDigitYearMax=s,this._dateSeparator=_,this._timeSeparator=p}}(dv||(dv={})),function(t){var e=function(){function e(){}return e.prototype._expandFormat=function(e){var i=t._CultureInfo._currentCulture()._calendar._patterns[e];return null!=i&&""!=i?i:e},e.prototype._getEraByNameOrSymbol=function(t,e){return-1},e.prototype._parseDateFormat=function(i){if(t._NativeExtension.hasProperty(e.__dateFomatParts,i,!0))return e.__dateFomatParts[i];for(var n,o=[],r=0;r>-1&&r<i.length;r++){var l=i[r];if(("'"==l||'"'==l)&&(n=i.indexOf(l,r+1))>-1)o.push(i.substring(r,n+1)),r=n;else{for(n=r+1;n<i.length&&i[n]==l;n++);o.push(i.substring(r,n)),r=n-1}}return e.__dateFomatParts[i]=o,o},e.prototype._unquote=function(t){return t.length>1&&t[0]==t[t.length-1]&&("'"==t[0]||'"'==t[0])?t.substr(1,t.length-2):t},e.prototype._fromFiscal=function(t,e){return t},e.prototype._parse=function(i,n){var o;if("R"==n||"r"==n){var r=i.match(/(([0-9]+)\-([0-9]+)\-([0-9]+))?\s?(([0-9]+):([0-9]+)(:([0-9]+))?)?/);return null!=r&&(null!=r[1]&&""!=r[1]||null!=r[5]&&""!=r[5])?(o=null!=r[1]&&""!=r[1]?new Date(parseInt(r[2],10),parseInt(r[3],10)-1,parseInt(r[4],10)):new Date,null!=r[5]&&""!=r[5]&&(o.setHours(parseInt(r[6],10)),o.setMinutes(parseInt(r[7],10)),o.setSeconds(null!=r[8]&&""!=r[8]?parseInt(r[9],10):0)),o.setMilliseconds(0)):o=new Date(i),isNaN(o.valueOf())?null:o}n=this._expandFormat(null!=n&&""!=n?n:"d");var l=t._CultureInfo._currentCulture()._calendar,a=e.__CJK,u=new RegExp("(\\"+l._dateSeparator+")|(\\"+l._timeSeparator+")|(\\d+)|(["+a+"\\.]{2,})|(["+a+"]+)","gi"),s=i.match(u),_=this._parseDateFormat(n),p=0,c=-1,h=0,d=1,f=0,g=0,y=0,v=0,m=-1,w=!1,P=!1,S=!1,b=!1,C=null;if(null==s||0==s.length||null==_||0==_.length)return null;for(var x=0;x<_.length&&null!=s;x++){var V=x-p,D=V>-1&&V<s.length?s[V]:"",O=_[x].length,A=_[x];if("EEEE"==A||"EEE"==A||"EE"==A||"E"==A||"eeee"==A||"eee"==A||"ee"==A||"e"==A)C=_[x];else if("yyyy"==A||"yyy"==A||"yy"==A||"y"==A)O>1&&D.length>O&&(s[V]=D.substr(O),D=D.substr(0,O),p++),c=parseInt(D,10);else if("MMMM"==A||"MMM"==A){b=!0;var L=D.toLowerCase();h=-1;for(var T=0;T<12;T++)if(0==l._months[T].toLowerCase().indexOf(L)){h=T;break}if(h>-1)continue}else if("MM"==A||"M"==A)b=!0,O>1&&D.length>O&&(s[V]=D.substr(O),D=D.substr(0,O),p++),h=parseInt(D,10)-1;else if("dddd"==A||"ddd"==A)w=!0;else if("dd"==A||"d"==A)O>1&&D.length>O&&(s[V]=D.substr(O),D=D.substr(0,O),p++),d=parseInt(D,10),P=!0;else if("hh"==A||"h"==A)O>1&&D.length>O&&(s[V]=D.substr(O),D=D.substr(0,O),p++),f=12==(f=parseInt(D,10))?0:f;else if("HH"==A)O>1&&D.length>O&&(s[V]=D.substr(O),D=D.substr(0,O),p++),f=parseInt(D,10);else if("H"==A)f=parseInt(D,10);else if("mm"==A||"m"==A)O>1&&D.length>O&&(s[V]=D.substr(O),D=D.substr(0,O),p++),g=parseInt(D,10);else if("ss"==A||"s"==A)O>1&&D.length>O&&(s[V]=D.substr(O),D=D.substr(0,O),p++),y=parseInt(D,10);else if("fffffff"==A||"FFFFFFF"==A||"ffffff"==A||"FFFFFF"==A||"fffff"==A||"FFFFF"==A||"ffff"==A||"FFFF"==A||"fff"==A||"FFF"==A||"ff"==A||"FF"==A||"f"==A||"F"==A)v=parseInt(D,10)/Math.pow(10,O-3);else if("tt"==A||"t"==A)D=D.toUpperCase(),(null!=l._pm[0]&&""!=l._pm[0]&&D==l._pm[0]&&f<12||null!=l._pm[1]&&""!=l._pm[1]&&D==l._pm[1]&&f<12)&&(f+=12);else if("q"==A||"Q"==A||"u"==A||"U"==A)S=!0;else if("ggg"==A||"gg"==A||"g"==A)m=l._eras.length>1?this._getEraByNameOrSymbol(D,l):-1;else if(A==l._dateSeparator||A==l._timeSeparator){if(null!=D&&""!=D&&D!=_[x])return null}else"K"==A||this._unquote(_[x])!=D&&p++}if(b&&P&&(isNaN(f)&&(f=0),isNaN(g)&&(g=0),isNaN(y)&&(y=0)),h<0||h>11||isNaN(h)||d<0||d>31||isNaN(d)||f<0||f>24||isNaN(f)||g<0||g>60||isNaN(g)||y<0||y>60||isNaN(y))return null;if(null!=C&&""!=C){if(!b)return null;o=new Date(c,h),c=(o=this._fromFiscal(o,"E"==C[0])).getFullYear(),h=o.getMonth()}if(w&&!P)return null;if(S&&!b)return null;if(c<0&&(c=(new Date).getFullYear()),m>-1);else if(c<100){c+=c+2e3<(t._AnyTypeExtension._isNumber(l._twoDigitYearMax)?l._twoDigitYearMax:2029)?2e3:1900}return o=new Date(c,h,d,f,g+0,y,v),isNaN(o.valueOf())?null:o},e.__CJK="a-z"+"u00c0-u017fu3000-u30ffu4e00-u9faf".replace(/u/g,"\\u")+"u1100-u11ffu3130-u318fua960-ua97fuac00-ud7afud7b0-ud7ff".replace(/u/g,"\\u"),e.__dateFomatParts={},e}();t._CustomDateParser=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e.prototype._parseStringValue=function(e){var i=e.split("T");if(2!==i.length)return null;var n=i[1];if(3!==(i=i[0].split("-")).length)return null;var o=i[0],r=i[1],l=i[2];if(null!=o.match(/[\d]{4}|[\+\-]\d{6}/)&&null!=r.match(/0\d|1[0-2]/)&&null!=l.match(/[0-2]\d|3[0-1]/)&&null!=n.match(/[0-1]\d:[0-5][0-9]:[0-5][0-9]\.[\d]{3}Z|2[0-4]:[0-5][0-9]:[0-5][0-9]\.[\d]{3}Z/)){var a=t._NativeExtension._parseDateByPlatform(e);if(null!=a)return new Date(a)}return null},e.prototype._parse=function(t,e){return"o"===e||"O"===e?this._parseStringValue(t):null},e}();t._Iso8601DateParser=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e.prototype._parseStringValue=function(e){var i=e.match(/\b[a-zA-Z]+,\s([0-9]{2})\s([a-zA-Z]+)\s([0-9]{4})\s([0-9]{2}):([0-9]{2}):([0-9]{2})\sGMT\b/);if(null!=i&&7==i.length){if(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].indexOf(i[2])<0)return null;var n=t._NativeExtension._parseDateByPlatform(e);if(null!=n)return new Date(n)}return null},e.prototype.parse=function(t,e){return"r"===e||"R"===e?this._parseStringValue(t):null},e}();t._Rfc1123DateParser=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e.prototype._parseStringValue=function(e){var i=e.match(/\b([0-9]{4})-([0-9]{2})-([0-9]{2})\s([0-9]{2}):([0-9]{2}):([0-9]{2})Z\b/i);if(null!=i&&7==i.length){var n=t._NativeExtension._parseDateByPlatform(e);if(null!=n)return new Date(n)}return null},e.prototype.parse=function(t,e){return"u"===e?this._parseStringValue(t):null},e}();t._UniversalDateParser=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e.prototype._parse=function(t,i){var n=e.__iso8601DateParser._parse(t,i);return null!=n||null!=(n=e.__universalDateParser.parse(t,i))?n:e.__customDateParser._parse(t,i)},e._dateParser=new e,e.__iso8601DateParser=new t._Iso8601DateParser,e.__universalDateParser=new t._UniversalDateParser,e.__customDateParser=new t._CustomDateParser,e}();t._DateParser=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e._format=function(t,i){if("r"==i||"R"==i)return t.toUTCString();if("u"==i)return t.toISOString().replace(/\.\d{3}/,"");i=e._expandFormat(i);for(var n=e._parseDateFormat(i),o="",r=0;r<n.length;r++)o+=e._formatDatePart(t,i,n[r]);return o},e._formatDatePart=function(i,n,o){var r,l=t._CultureInfo._currentCulture()._calendar,a=0,u=0,s=o.length;if("yyyy"==o||"yyy"==o||"yy"==o||"y"==o||"EEEE"==o||"EEE"==o||"EE"==o||"E"==o||"eeee"==o||"eee"==o||"ee"==o||"e"==o)return a=(r="E"==o[0]?e._toFiscal(i,!0):"e"==o[0]?e._toFiscal(i,!1):i).getFullYear(),l._eras.length>1&&n.indexOf("g")>-1&&e._getEra(i,l),e._zeroPad(a,4).substr(4-o.length);if("MMMM"==o)return l._months[i.getMonth()];if("MMM"==o)return l._monthsAbbr[i.getMonth()];if("MM"==o||"M"==o)return e._zeroPad(i.getMonth()+1,s);if("dddd"==o)return l._days[i.getDay()];if("ddd"==o)return l._daysAbbr[i.getDay()];if("dd"==o)return e._zeroPad(i.getDate(),2);if("d"==o)return i.getDate().toString();if("hh"==o||"h"==o)return e._zeroPad(e._h12(i),s);if("HH"==o||"H"==o)return e._zeroPad(i.getHours(),s);if("mm"==o||"m"==o)return e._zeroPad(i.getMinutes(),s);if("ss"==o||"s"==o)return e._zeroPad(i.getSeconds(),s);if("fffffff"==o||"FFFFFFF"==o||"ffffff"==o||"FFFFFF"==o||"fffff"==o||"FFFFF"==o||"ffff"==o||"FFFF"==o||"fff"==o||"FFF"==o||"ff"==o||"FF"==o||"f"==o||"F"==o)return u=i.getMilliseconds()*Math.pow(10,s-3),"f"==o[0]?e._zeroPad(u,s):u.toFixed(0);if("tt"==o)return i.getHours()<12?l._am[0]:l._pm[0];if("t"==o)return i.getHours()<12?l._am[1]:l._pm[1];if("q"==o||"Q"==o)return(Math.floor(i.getMonth()/3)+1).toString();if("u"==o||"U"==o)return r=e._toFiscal(i,"U"==o),(Math.floor(r.getMonth()/3)+1).toString();if("ggg"==o||"gg"==o||"g"==o)return l._eras.length>1&&e._getEra(i,l),l._eras[0];if("/"==o)return l._dateSeparator;if(":"==o)return l._timeSeparator;if("K"==o){var _=i.toString().match(/(\+|\-)(\d{2})(\d{2})/);return null!=_?_[1]+_[2]+_[3]:""}return s>1&&o[0]==o[s-1]&&('"'==o[0]||"'"==o[0])?o.substr(1,s-2):o},e._parseDateFormat=function(i){if(t._NativeExtension.hasProperty(e.__dateFomatParts,i,!0))return e.__dateFomatParts[i];for(var n,o=[],r=0;r>-1&&r<i.length;r++){var l=i[r];if(("'"==l||'"'==l)&&(n=i.indexOf(l,r+1))>-1)o.push(i.substring(r,n+1)),r=n;else{for(n=r+1;n<i.length&&i[n]==l;n++);o.push(i.substring(r,n)),r=n-1}}return e.__dateFomatParts[i]=o,o},e._expandFormat=function(e){var i=t._CultureInfo._currentCulture()._calendar._patterns[e];return null!=i&&""!=i?i:e},e._getEra=function(t,e){return-1},e._zeroPad=function(t,e){var i=t.toFixed(0),n=e-i.length+1;if(n>0){for(var o=[],r=0;r<n-1;r++)o.push("0");return o.join("")+i}return i},e._h12=function(e){var i=t._CultureInfo._currentCulture()._calendar,n=e.getHours();return null!=i._am&&null!=i._am[0]&&""!=i._am[0]&&0==(n%=12)&&(n=12),n},e._toFiscal=function(t,e){return t},e.__dateFomatParts={},e}();t._DateFormat=e}(dv||(dv={})),function(t){var e=function(){function t(t){this._provider=t}return t.prototype._getPositiveSign=function(){return this._provider._positiveSign},t.prototype._getNegativeSign=function(){return this._provider._negativeSign},t.prototype._getGroupSeparator=function(){return this._provider._groupSeparator},t.prototype._getDecimalSeparator=function(){return this._provider._decimalSeparator},t}();t._BaseNumberFormat=e}(dv||(dv={})),function(t){var e=function(e){function s(t,i){var n=e.call(this,i)||this;return n.__zeroFormatLiterals=null,n.__roundZero=!1,n.__mainFormatContext=new a,n.__negativeFormatContext=null,n.__zeroFormatLiterals=null,n._parseFormat(t),n}return __extends(s,e),s.prototype._format=function(e,i){if(!isFinite(e)||isNaN(e))throw new t.AssertError(t.ErrorCode.InvalidArgument);if(0==e&&null!=this.__zeroFormatLiterals)return this.__zeroFormatLiterals;var n;this.__roundZero=!1;var o=this.__mainFormatContext;if(n=e<0?null==this.__negativeFormatContext?this._getNegativeSign()+o._prefix:(o=this.__negativeFormatContext)._prefix:o._prefix,o._allInLiteral||o._noFormatPattern)return n;var r=o._scaleCount;r>0&&(e/=Math.pow(10,3*r));var l=o._multiplier;l>1&&(e*=l);var a=[];a.push(n),this._formatNumber(Math.abs(e),a,o);var u=a.join("");if(this.__roundZero){if(null!=this.__zeroFormatLiterals)return this.__zeroFormatLiterals;e<0&&(null!=this.__negativeFormatContext&&(o=this.__mainFormatContext),a=[],n=o._prefix,a.push(n),this._formatNumber(0,a,o),u=a.join(""))}return u},s.prototype._formatNumber=function(t,e,i){i._useExponentialNotation?this._formatExponential(t,e,i):this._formatNormal(t,e,i)},s.prototype._formatExponential=function(t,e,i){var n=t.toExponential(),o=n.indexOf("e"),r=n.substr(0,o),l=r.length,a=parseInt(n.substr(o+1),10),u=i._digitLeftCount,s=r[0],_="";l>1&&"."==r[1]&&(l--,_=r.substr(2),r=s+_),u>1&&(a-=u-1,s=r.substr(0,u),l<u?(s+="0".repeat(u-l),_=""):_=r.substr(u)),this._formatBySections(s,_,e,i,a)},s.prototype._getFormatExponentSection=function(t,e,i){var n=[];n.push(e),t>0&&i._useSignForPositiveExponent?n.push(this._getPositiveSign()):t<0&&(n.push(this._getNegativeSign()),t*=-1);var o=t.toString(),r=i._minimumExponentDigits-o.length;return r>0&&(o="0".repeat(r)+o),n.push(o),n.join("")},s.prototype._formatNormal=function(t,e,i){var n,o,r,l,a=0,u=t.toString();if(-1==(r=u.indexOf("e"))){var s=i._digitRightCount;if(u=t.toFixed(s),0==parseFloat(u))return void(this.__roundZero=!0);-1==(r=u.indexOf("."))?(n=u,o=""):(n=u.substr(0,r),o=u.substr(r+1))}else{a=parseInt(u.substr(r+1),10);var _=u.substr(0,r);l=r,"."==_[1]&&(_=_[0]+_.substr(2),l--),a+1>l?(n=_+"0".repeat(a+1-l),o=""):a>0?(n=_.substr(0,a+1),o=_.substr(a+1)):(n="",o="0".repeat(-a-1)+_)}this._formatBySections(n,o,e,i)},s.prototype._formatBySections=function(t,e,i,o,l){void 0===l&&(l=null);var a=o._needGroup,u=o._formatInfo[0],s=u.length,_=t.length,p=o._leftZeros;p>_?(t="0".repeat(p-_)+t,_=p):0==p&&1==_&&"0"==t[0]&&(t="",_=0);var c=[],h="",d=[],f=0;if(s>0&&_>0){for(var g=_-1,y=s-1,v=0,m=o._digitLeftCount;y>=0;){if(n(x=u[y--])){var w=x;d.push(w._literalChar)}else if(null!=l&&r(x)){var P=x;d.push(this._getFormatExponentSection(l,P._exponentSymbol,o))}else g>=0&&(d.push(t[g--]),f++,v++);if(3==f&&(c.push(d.reverse().join("")),d=[],f=0),v>=m)for(;g>=0;)d.push(t[g--]),3==++f&&(c.push(d.reverse().join("")),d=[],f=0)}for(;g>=0;)d.push(t[g--]),3==++f&&(c.push(d.reverse().join("")),d=[],f=0);f>0&&c.push(d.reverse().join("")),h=c.reverse().join(a?this._getGroupSeparator():"")}else if(a){p=0;for(var S=_%3;p<_;)c.push(t.substr(p,S)),p+=S,S=3;h=c.join(this._getGroupSeparator())}else h=t;var b=o._rightZeros;_=e.length;var C=o._digitRightCount;if(_>C?(e=parseFloat("0."+e).toFixed(C).substr(2),_=C):_<b&&(e+="0".repeat(b-_),_=b),null==l)for(;_>b&&"0"==e[_-1];)_--;if(d=[],(s=(u=o._formatInfo[1]).length)>0){for(y=0,g=0;y<s;){var x;if(n(x=u[y++])){w=x;d.push(w._literalChar)}else if(null!=l&&r(x)){P=x;d.push(this._getFormatExponentSection(l,P._exponentSymbol,o))}else g<_&&d.push(e[g++])}g<_&&d.push(e.substr(g)),e=d.join("")}e.length>0?i.push([h,e].join(_>0?this._getDecimalSeparator():"")):i.push(h)},s.prototype._parseFormat=function(t){var e=this.__mainFormatContext,i=new u(t);i._moveNext();var n=this._parsePrefix(i,e);if(e._allInLiteral||this._parseTrunk(i,e),e._allInLiteral){var o=this._parseAsLiterals(i,s.__sectionSeparator);e._prefix=o}else e._prefix=n;if(null!=i&&i._getCurrentChar()==s.__sectionSeparator&&i._moveNext()){if(i._getCurrentChar()!=s.__sectionSeparator){var r=new a;if(this.__negativeFormatContext=r,n=this._parsePrefix(i,r),r._allInLiteral||(r._prefix=n,this._parseTrunk(i,r)),r._allInLiteral){o=this._parseAsLiterals(i,s.__sectionSeparator);if(r._prefix=o,null!=i._getCurrentChar())return void(this.__zeroFormatLiterals=this._parseAsLiterals(i))}}i._getCurrentChar()==s.__sectionSeparator&&i._moveNext()&&(this.__zeroFormatLiterals=this._parseAsLiterals(i))}},s.prototype._parseAsLiterals=function(t,e){void 0===e&&(e=null);for(var i=[];;){var n=t._getCurrentChar();if(null==n)break;if(null!=e&&n==e){t._moveNext();break}if(("\\"==n||n==s.__quote)&&(t._moveNext(),null==(n=t._getCurrentChar())))break;i.push(n),t._moveNext()}return i.join("")},s.prototype._parsePrefix=function(t,e){var i=[];for(t._inQuote=!1;this._parseLiterals(i,t,e)&&t._moveNext(););return i.join("")},s.prototype._parseLiterals=function(e,i,n){var o=i._getCurrentChar();if(null==o)return!1;if("\\"==o)return i._moveNext(),null!=(o=i._getCurrentChar())&&e.push(o),!0;if(o==s.__quote)return i._inQuote=!i._inQuote,!0;if(i._inQuote)e.push(o);else{var r=o.toUpperCase();if(r==s.__patternGroupingSeparator)return!0;if(r==s.__patternDigit||r==s.__patternZeroDigit||r==s.__patternDecimalSeparator)return!1;if(r==s.__sectionSeparator)return!0;if(r==s.__patternPercent){if(1!=n._multiplier&&n._multiplier!=s.__percentScale)throw new t.RuntimeError(t.ErrorCode.TooManyPercent);n._multiplier=s.__percentScale,e.push(this._provider._percent._symbol)}else if(r==s.__patternPerMille){if(1!=n._multiplier&&n._multiplier!=s.__perMilleScale)throw new t.RuntimeError(t.ErrorCode.TooManyPermill);n._multiplier=s.__perMilleScale,e.push(this._provider._permilleSymbol)}else if(r==s.__patternExponent){if(/^[+-]?0+/.test(i._getRemainder()))return n._allInLiteral=!0,!1;e.push(o)}else e.push(o)}return!0},s.prototype._parseTrunk=function(t,e){if(null==t._getCurrentChar())e._noFormatPattern=!0;else for(;this._parseTrunkCharacter(t,e););},s.prototype._parseTrunkCharacter=function(e,i){var n=e._getCurrentChar();if(null==n)return!1;if("\\"==n)return e._moveNext(),null!=(n=e._getCurrentChar())&&this._addLiteralItem(n,i),e._moveNext();if(n==s.__quote)return e._inQuote=!e._inQuote,e._moveNext();if(e._inQuote)return this._addLiteralItem(n,i),e._moveNext();var o=n.toUpperCase();if(o==s.__sectionSeparator)return!1;if(o==s.__patternDigit)i._decimalFound?i._digitRightCount+=1:(i._digitLeftCount+=1,i._leftZeros>0&&(i._leftZeros+=1)),this._addPlaceHolder(i);else if(o==s.__patternZeroDigit)i._decimalFound?(i._digitRightCount+=1,i._rightZeros=i._digitRightCount):(i._digitLeftCount+=1,i._leftZeros+=1),this._addPlaceHolder(i);else if(o==s.__patternGroupingSeparator)if(i._decimalFound)i._scaleCount+=1;else{var r=e._getPreviousChar(),l=e._getNextChar();r!=s.__patternDigit&&r!=s.__patternZeroDigit||l!=s.__patternDigit&&l!=s.__patternZeroDigit?i._scaleCount+=1:(i._needGroup=!0,i._scaleCount=0)}else if(o==s.__patternDecimalSeparator)i._decimalFound||(i._decimalFound=!0,i._scaleCount>0&&(i._needGroup=!0),i._scaleCount=0);else if(o==s.__patternExponent)if(i._useExponentialNotation)this._addLiteralItem(n,i);else{if(/^[+-]?0+/.test(e._getRemainder())){if(0==i._digitLeftCount&&0==i._digitRightCount)return i._allInLiteral=!0,!1;var a=0;e._moveNext();var u=e._getCurrentChar();for(u!=s.__patternPlus&&u!=s.__patternMinus||(e._moveNext(),i._useSignForPositiveExponent=u==s.__patternPlus);e._getCurrentChar()==s.__patternZeroDigit;)e._moveNext(),a++;return i._minimumExponentDigits=a,i._useExponentialNotation=!0,i._exponentSymbol=n,this._addExponentItem(i,n),!0}this._addLiteralItem(n,i)}else if(o==s.__patternPercent){if(1!=i._multiplier&&i._multiplier!=s.__percentScale)throw new t.RuntimeError(t.ErrorCode.TooManyPercent);i._multiplier=s.__percentScale,this._addLiteralItem(this._provider._percent._symbol,i)}else if(o==s.__patternPerMille){if(1!=i._multiplier&&i._multiplier!=s.__perMilleScale)throw new t.RuntimeError(t.ErrorCode.TooManyPermill);i._multiplier=s.__perMilleScale,this._addLiteralItem(this._provider._permilleSymbol,i)}else this._addLiteralItem(n,i);return e._moveNext()},s.prototype._addLiteralItem=function(t,e){var i=e._decimalFound?1:0;e._formatInfo[i].push(new o(t))},s.prototype._addPlaceHolder=function(t){var e=t._decimalFound?1:0;t._formatInfo[e].push(new i(0))},s.prototype._addExponentItem=function(t,e){var i=t._decimalFound?1:0;t._formatInfo[i].push(new l(e))},s.__sectionSeparator=";",s.__quote="'",s.__patternDigit="#",s.__patternZeroDigit="0",s.__patternGroupingSeparator=",",s.__patternDecimalSeparator=".",s.__patternPerMille="‰",s.__perMilleScale=1e3,s.__patternPercent="%",s.__percentScale=100,s.__patternExponent="E",s.__patternPlus="+",s.__patternMinus="-",s}(t._BaseNumberFormat);t._CustomNumberFormat=e;var i=function(t){this._type=t};function n(t){return void 0!==t._literalChar}var o=function(t){function e(e){var i=t.call(this,1)||this;return i._literalChar=e,i}return __extends(e,t),e}(i);function r(t){return void 0!==t._exponentSymbol}var l=function(t){function e(e){var i=t.call(this,2)||this;return i._exponentSymbol=e,i}return __extends(e,t),e}(i),a=function(){this._decimalFound=!1,this._leftZeros=0,this._rightZeros=0,this._needGroup=!1,this._scaleCount=0,this._digitLeftCount=0,this._digitRightCount=0,this._minimumExponentDigits=0,this._useSignForPositiveExponent=!1,this._useExponentialNotation=!1,this._exponentSymbol=null,this._multiplier=1,this._allInLiteral=!1,this._prefix="",this._noFormatPattern=!1,this._formatInfo=[[],[]]},u=function(){function t(t){this.__source=t,this.__length=t.length,this.__current=null,this.__nextIndex=0,this._inQuote=!1}return t.prototype._getCurrentChar=function(){return this.__current},t.prototype._getNextChar=function(){return this.__nextIndex>=this.__length?null:this.__source[this.__nextIndex]},t.prototype._getPreviousChar=function(){return this.__nextIndex>1?this.__source[this.__nextIndex-2]:null},t.prototype._getRemainder=function(){return this.__source.substring(this.__nextIndex)},t.prototype._moveNext=function(){return this.__nextIndex>=this.__length?(this.__current=null,!1):(this.__current=this.__source[this.__nextIndex],this.__nextIndex++,!0)},t}()}(dv||(dv={})),dv||(dv={}),function(t){var e=function(){function e(){}return e._format=function(t,i,n){if(void 0===n&&(n=!1),isNaN(t))return"NaN";if(!isFinite(t))return t>0?"Infinity":"-Infinity";var o=e.__formatCache[i];return null==o&&(o=e._createNumberFormat(i),e.__formatCache[i]=o),null!=o?o._format(t,n):t.toString()},e._createNumberFormat=function(i,n){void 0===n&&(n=null);var o=i.match(e.__regStandardPattern);if(null!=o){var r=o[1],l=o[2],a=0==l.length?-1:parseInt(l,10);return new t._StandardNumberFormat(r,a,t._CultureInfo._currentCulture()._numberFormat)}return new t._CustomNumberFormat(i,t._CultureInfo._currentCulture()._numberFormat)},e.__regStandardPattern=/^([a-zA-Z])(\d{0,2})$/,e.__formatCache={},e}();t._NumberFormat=e}(dv||(dv={})),function(t){var e=function(e){function o(t,i,n){var o=e.call(this,n)||this;return o.__formatSpecifier=t,o.__formatPrecision=i,o}return __extends(o,e),o.prototype._format=function(e,i){if(!isFinite(e)||isNaN(e))throw new t.AssertError(t.ErrorCode.InvalidArgument);var n=this.__formatSpecifier.toUpperCase();if("C"==n)return this._getCurrencyString(e);if("D"==n)return this._getDecimalString(e);if("E"==n)return this._getExponentialString(e);if("F"==n)return this._getFixedPointString(e);if("G"==n)return this._getGeneralString(e);if("N"==n)return this._getNumberString(e,i);if("P"==n)return this._getPercentString(e,i);if("R"==n)return this._getRoundTripString(e);if("X"==n)return this._getHexadecimalString(e);throw new t.RuntimeError(t.ErrorCode.FormatInvalid,this.__formatSpecifier)},o.prototype._getHexadecimalString=function(t){var e="X"==this.__formatSpecifier;return n._from(t)._toString(this.__formatPrecision,e)},o.prototype._getRoundTripString=function(t){var e=t.toString(),i=e.split("e");if(1==i.length)return e;var n="R"==this.__formatSpecifier?"E":"e",o=i[1],r=!1;return"-"==o[0]&&(r=!0,o=o.substr(1)),1==o.length&&(o="0"+o),o=(r?this._getNegativeSign():"")+o,i[0]+n+o},o.prototype._getPercentString=function(e,n){var o=this.__formatPrecision;-1==o&&(o=n?t._Utility._isInteger(e)?0:2:this._provider._percent._decimalDigits);var r=this._provider._percent._groupSizes,l=this._getNegativeSign(),a=i._from(e)._toPercent(o,r,l,this._getDecimalSeparator(),this._getGroupSeparator());return a[0]!=l?this._provider._percent._pattern[1].replace("n",a):this._provider._percent._pattern[0].replace("n",a.substr(1))},o.prototype._getNumberString=function(e,n){var o=this.__formatPrecision;-1==o&&(o=n?t._Utility._isInteger(e)?0:2:this._provider._decimalDigits);var r=this._provider._groupSizes,l=this._getNegativeSign(),a=i._from(e)._toGroup(o,r,l,this._getDecimalSeparator(),this._getGroupSeparator()),u=a[0]==l;return u&&(a=a.substr(1)),u?this._provider._negativePattern[1].replace("n",a):a},o.prototype._getGeneralString=function(t){var e=this.__formatPrecision;return-1!=e&&0!=e||(e=15),i._from(t)._toGeneral(e,this.__formatSpecifier,this._getPositiveSign(),this._getNegativeSign(),this._getDecimalSeparator())},o.prototype._getFixedPointString=function(t){var e=this.__formatPrecision;return-1==e&&(e=2),i._from(t)._toFixed(e,this._getNegativeSign(),this._getDecimalSeparator())},o.prototype._getExponentialString=function(t){var e=this.__formatPrecision;return-1==e&&(e=6),i._from(t)._toExponential(e,3,this.__formatSpecifier,this._getPositiveSign(),this._getNegativeSign(),this._getDecimalSeparator())},o.prototype._getDecimalString=function(t){var e=t<0,i=Math.floor(Math.abs(t)).toString(),n=this.__formatPrecision,o=i.length;(n>o&&(i="0".repeat(n-o)+i),e)&&(i=this._getNegativeSign()+i);return i},o.prototype._getCurrencyString=function(t){var e=this.__formatPrecision;-1==e&&(e=this._provider._currency._decimalDigits);var n=this._provider._currency._groupSizes,o=this._getNegativeSign(),r=i._from(t)._toGroup(e,n,o,this._getDecimalSeparator(),this._getGroupSeparator());return r[0]!=o?this._provider._currency._pattern[1].replace("n",r):this._provider._currency._pattern[0].replace("n",r.substring(1))},o}(t._BaseNumberFormat);t._StandardNumberFormat=e;var i=function(){function t(t,e,i){this.__isNegative=t,this.__place=e,this.__num=i.slice()}return t._from=function(e){var i=!1,n=0,o=[];(e<0||0==e&&1/e<0)&&(i=!0,e=-e);var r=e.toExponential(17);n=1;var l=r.split("e");n+=parseInt(l[1]),r=l[0];for(var a=0;a<r.length;++a)"."!=r[a]&&o.push(r.charCodeAt(a)-48);for(var u=o.length-1;u>=0&&0==o[u];)o.pop(),u--;for(;0!=o.length&&0==o[0];)o.shift(),n--;0==o.length&&(o.push(0),n=1);var s=new t(i,n,o);return s.__place=0,s._round(17),s.__place+=n,s},t.prototype._toExponential=function(t,e,i,n,o,r){var l=this._clone(),a=l.__place-1;l.__place=1,l._round(t),2==l.__place&&(l.__place=1,l.__num.pop(),a++);var u="";if(l.__isNegative&&(u+=o),u+=l.__num[0].toString(),0!=t){u+=r;for(var s=1;s<l.__num.length;++s)u+=l.__num[s].toString();l.__num.length<=t&&(u+="0".repeat(t-l.__num.length+1))}u+=a<0?i:i+n;var _=a.toString(),p=!1;return"-"==_[0]&&(p=!0,_=_.substr(1)),u+=p?o:"",u+=_.length>=e?_:"0".repeat(e-_.length)+_},t.prototype._toGeneral=function(t,e,i,n,o){var r=this._clone();if(r.__place=0,r._round(t),r.__place+=this.__place,r._removeTrailingZero(),r._isZero())return r._zero(0,n,o);var l=r._toExponential(t,2,"E",i,n,o),a=parseFloat(l.split("E")[1]);if(a>-5&&a<t)return r._toString(n,o);for(var u=l.split("E"),s=u[0],_=s.length-1;_>=0&&("0"==s[_]||"."==s[_]);)s=s.substr(0,s.length-1),_--;return s+("G"==e?"E":"e")+u[1]},t.prototype._toPercent=function(t,e,i,n,o){var r=this._clone();return r._isZero()?r._zero(t,i,n):(r.__place+=2,r._round(t),r._isZero()?r._zero(t,i,n):r._toGroup(t,e,i,n,o))},t.prototype._toGroup=function(t,e,i,n,o){var r=this._toFixed(t,i,n).split(n),l=r[0],a=!1;l[0]==i&&(l=l.substr(1),a=!0);for(var u=[],s=0,_=e;s<_.length;s++){var p=_[s];if(!((c=l.length-p)>=0)){0!=l.length&&(u.unshift(l),l="");break}u.unshift(l.substr(c,p)),l=l.substr(0,c)}if(0!=l.length)for(p=e[e.length-1];0!=l.length;){var c;(c=l.length-p)<0&&(c=0),u.unshift(l.substr(c,p)),l=l.substr(0,c)}return 1==r.length?(a?i:"")+u.join(o):(a?i:"")+u.join(o)+n+r[1]},t.prototype._toFixed=function(t,e,i){var n=this._clone();if(n._round(t),n._isZero())return n._zero(t,e,i);var o=n.__isNegative?e:"";if(n.__place<=0){o+="0"+i+"0".repeat(-n.__place);for(var r=0;r<n.__num.length;++r)o+=n.__num[r].toString();return-n.__place+n.__num.length<t&&(o+="0".repeat(t+n.__place-n.__num.length)),o}if(n.__place<n.__num.length){for(r=0;r<n.__place;++r)o+=n.__num[r].toString();o+=i;for(r=n.__place;r<n.__num.length;++r)o+=n.__num[r].toString();return n.__num.length-n.__place<t&&(o+="0".repeat(t-(n.__num.length-n.__place))),o}for(r=0;r<n.__num.length;++r)o+=n.__num[r].toString();return o+="0".repeat(n.__place-n.__num.length),t>0&&(o+=i+"0".repeat(t)),o},t.prototype._toNumber=function(t){return void 0===t&&(t=15),parseFloat(this._toFixed(t,"-","."))},t.prototype._toString=function(t,e){var i=this.__isNegative?t:"";if(this.__place<=0)if(this._isZero())i+="0";else{i+="0"+e+"0".repeat(-this.__place);for(var n=0,o=this.__num;n<o.length;n++){i+=o[n]}}else if(this.__place<this.__num.length){for(var r=0;r<this.__place;++r)i+=this.__num[r];i+=e;for(r=this.__place;r<this.__num.length;++r)i+=this.__num[r]}else{for(r=0;r<this.__num.length;++r)i+=this.__num[r];this.__place!=this.__num.length&&(i+="0".repeat(this.__place-this.__num.length))}return i},t.prototype._round=function(t){var e=this.__place+t;if(e<0)this.__num=[0],this.__place=1-t;else if(0==e){this.__num[e]>=5?(this.__num=[1],this.__place++):this.__num=[0]}else if(e<this.__num.length){this.__num[e]>=5&&(this.__num[e-1]+=1),this.__num=this.__num.slice(0,e);for(var i=e-1;i>=0&&10==this.__num[i];--i)this.__num[i]=0,i-1>=0?this.__num[i-1]+=1:(this.__num.unshift(1),this.__place++)}},t.prototype._clone=function(){return new t(this.__isNegative,this.__place,this.__num)},t.prototype._removeTrailingZero=function(){for(var t=this.__num.length-1;t>=0&&0==this.__num[t];)this.__num.pop(),t--;0==this.__num.length&&(this.__num.push(0),this.__place=1)},t.prototype._isZero=function(){return 0==parseInt(this.__num.join(""))},t.prototype._zero=function(t,e,i){var n=this.__isNegative?e:"";return 0==t?n+"0":n+"0"+i+"0".repeat(t)},t}(),n=function(){function t(t){this.__digits=t.slice()}return t._from=function(e){var i=(e=Math.round(e))<0;i&&(e=-e);var n=[];if(0==e)n.push(e);else for(;0!=e;)n.unshift(e%16),e=Math.floor(e/16);if(i){for(var o=[],r=0;r<16;++r)o.push(15);r=n.length-1;for(var l=o.length-1;r>=0;--r)o[l]=o[l]-n[r],l-=1;o[o.length-1]+=1;for(var a=o.length-1;a>=0&&16==o[a];)o[a]=0,o[--a]+=1;return o.length=16,new t(o)}return new t(n)},t.prototype._toString=function(t,e){void 0===e&&(e=!1);for(var i="",n=0,o=this.__digits;n<o.length;n++){var r=o[n];i+=this._toChar(r)}return i.length<t&&(i="0".repeat(t-i.length)+i),e?i.toUpperCase():i},t.prototype._toChar=function(t){if(t>=0&&t<=9){return String.fromCharCode(48+t)}return String.fromCharCode(97+t-10)},t}()}(dv||(dv={})),function(t){var e=function(){function e(){}return e._format=function(e,i,n){if(void 0===n&&(n=!1),t._AnyTypeExtension._isString(e))return t._AnyTypeExtension._toString(e);if(t._AnyTypeExtension._isNumber(e)){var o=t._AnyTypeExtension._toNumber(e),r=t._NativeExtension._isNullOrEmptyString(i)?t._Utility._isInteger(o)?"n0":"n2":t._Utility._toNonNullString(i,"");return t._NumberFormat._format(o,r,n)}return t._AnyTypeExtension._isDate(e)?t._DateFormat._format(t._AnyTypeExtension._toDate(e),i):null!=e?e.toString():""},e._parseDate=function(e,i){return t._DateParser._dateParser._parse(e,i)},e}();t._Globalize=e}(dv||(dv={})),dv||(dv={}),dv||(dv={}),dv||(dv={}),dv||(dv={}),dv||(dv={}),function(t){var e=function(){function e(){}return e._deprecated=function(e,i){t._NativeExtension._ConsoleWarning('"'+e+'" has been deprecated; please use "'+i+'" instead.')},e}();t._Debug=e}(dv||(dv={})),function(t){t.deprecated=function(e,i){return function(n,o,r){var l=function(){i?t._NativeExtension._ConsoleWarning('The "'+e+'" has been deprecated; please use "'+i+'" instead.'):t._NativeExtension._ConsoleWarning('The "'+e+'" has been deprecated.')};if(null!=r){var a=r.value;null!=a&&(r.value=function(){return l(),a.apply(this,arguments)});var u=r.get;null!=u&&(r.get=function(){return l(),u.call(this)});var s=r.set;null!=s&&(r.set=function(){l(),s.apply(this,arguments)})}}}}(dv||(dv={})),function(t){t.JsonIgnoreAttribute=function(){return function(t,e,i){}}}(dv||(dv={})),dv||(dv={}),dv||(dv={}),function(t){var e=function(t){void 0===t&&(t=null),this.strictMode=t};t._JsonDeserializerSettings=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e._deserialize=function(i,n,o){if(void 0===o&&(o=null),null==i||null==n)return i;for(var r in null==o&&(o=new t._JsonDeserializerSettings),n)if(r in i){var l=e._getPropertyDescriptor(i,r);null!=l&&null!=l.set&&l.set.call(i,n[r],o)}return i},e._getPropertyDescriptor=function(t,e){for(var i=Object.getPrototypeOf(t),n=Object.getOwnPropertyDescriptor(i,e);null==n&&null!=(i=Object.getPrototypeOf(i))&&i!=Object.prototype;)n=Object.getOwnPropertyDescriptor(i,e);return n},e}();t._JsonDeserializerUtility=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e._isBoolean=function(t){return"boolean"==typeof t},e._isNumber=function(t){return"number"==typeof t},e._isString=function(t){return"string"==typeof t},e._isDate=function(t){return t instanceof Date},e._isObject=function(t){return"[object Object]"==Object.prototype.toString.call(t)},e._isArray=function(t){return Array.isArray(t)},e._isNull=function(t){return null==t},e._isEmpty=function(t){return null!=t&&e._isObject(t)&&0==Object.getOwnPropertyNames(t).length},e._getAsDouble=function(i){if(!e._isNumber(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i},e._getAsInt=function(i){if(!e._isNumber(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return parseInt(i)},e._getAsString=function(i){if(!e._isString(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i},e._getAsBoolean=function(i){if(!e._isBoolean(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i},e._getAsDate=function(i){if(!e._isDate(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i},e._getAsArray=function(i){if(!e._isArray(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i},e._getLength=function(i){if(!e._isArray(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i.length},e._getAt=function(i,n){if(!e._isArray(i))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i[n]},e._getProperty=function(i,n){if(!e._hasProperty(i,n))throw new t.RuntimeError(t.ErrorCode.InvalidArgument);return i[n]},e._hasProperty=function(t,i){return!!e._isObject(t)&&t.hasOwnProperty(i)},e._enumerateArray=function(i,n){if(!e._isArray(i)||null==n)throw new t.RuntimeError(t.ErrorCode.InvalidArgument);for(var o=0;o<i.length;o++)n(i[o],o)},e}();t._JsonElementUtility=e}(dv||(dv={})),function(t){var e=function(e){function i(i,n){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];var l=e.call(this,t._NativeExtension._format.apply(t._NativeExtension,__spreadArray([i+t.ExceptionLocalization._errorMessage(n)],o,!1)))||this;return l._errorCode=n,l}return __extends(i,e),i}(Error);t.BaseError=e}(dv||(dv={})),function(t){var e=function(e){function i(i){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return e.apply(this,__spreadArray([t.ExceptionLocalization._errorMessage(t.ErrorCode.AssertPrompt),i],n,!1))||this}return __extends(i,e),i}(t.BaseError);t.AssertError=e}(dv||(dv={})),function(t){!function(t){t[t.None=0]="None",t[t.AssertPrompt=1]="AssertPrompt",t[t.OptionPrompt=2]="OptionPrompt",t[t.PluginPrompt=3]="PluginPrompt",t[t.RuntimePrompt=4]="RuntimePrompt",t[t.InvalidArgument=5]="InvalidArgument",t[t.LegalNumberValueRequired=6]="LegalNumberValueRequired",t[t.IntegerValueRequired=7]="IntegerValueRequired",t[t.LowerThanOrEqualToNumberValueRequired=8]="LowerThanOrEqualToNumberValueRequired",t[t.GreaterThanOrEqualToNumberValueRequired=9]="GreaterThanOrEqualToNumberValueRequired",t[t.Unknown=10]="Unknown",t[t.LowerThanNumberValueRequired=11]="LowerThanNumberValueRequired",t[t.GreaterThanNumberValueRequired=12]="GreaterThanNumberValueRequired",t[t.CoreBegin=2e3]="CoreBegin",t[t.CoreUnexpectedValue=2001]="CoreUnexpectedValue",t[t.NumberRequired=2002]="NumberRequired",t[t.BooleanRequired=2003]="BooleanRequired",t[t.StringRequired=2004]="StringRequired",t[t.DateRequired=2005]="DateRequired",t[t.UnexpectedValueType=2006]="UnexpectedValueType",t[t.ParsingXMLError=2007]="ParsingXMLError",t[t.FormatInvalid=2008]="FormatInvalid",t[t.TooManyPercent=2009]="TooManyPercent",t[t.TooManyPermill=2010]="TooManyPermill",t[t.MethodNotImplemented=2011]="MethodNotImplemented",t[t.InvalidRectangle=2012]="InvalidRectangle",t[t.InvalidRefParameter=2013]="InvalidRefParameter",t[t.MissingTemplatePart=2014]="MissingTemplatePart",t[t.CreateControlFailed=2015]="CreateControlFailed",t[t.FunctionExpected=2016]="FunctionExpected",t[t.CoordinateSystemTypeNotFound=2017]="CoordinateSystemTypeNotFound",t[t.OptionBegin=3e3]="OptionBegin",t[t.UnexpectedValue=3001]="UnexpectedValue",t[t.UnexpectedNullValue=3002]="UnexpectedNullValue",t[t.UnexpectedNaNValue=3003]="UnexpectedNaNValue",t[t.DuplicatedRowColumn=3004]="DuplicatedRowColumn",t[t.PositiveOrZeroExpected=3005]="PositiveOrZeroExpected",t[t.MaxLessThanMin=3006]="MaxLessThanMin",t[t.UnexpectedNegativeValue=3007]="UnexpectedNegativeValue",t[t.UnitIntervalExpected=3008]="UnitIntervalExpected",t[t.PositiveIntegerExpected=3009]="PositiveIntegerExpected",t[t.PositiveNumberExpected=3010]="PositiveNumberExpected",t[t.UnexpectedLogBaseValue=3011]="UnexpectedLogBaseValue",t[t.WrongLegendMerge=3012]="WrongLegendMerge",t[t.WrongGraphJson=3013]="WrongGraphJson",t[t.TextStyleRequired=3014]="TextStyleRequired",t[t.OverlayStyleRequired=3015]="OverlayStyleRequired",t[t.StyleRequired=3016]="StyleRequired",t[t.PathAnnotationRequired=3017]="PathAnnotationRequired",t[t.WrongGradientPosition=3018]="WrongGradientPosition",t[t.NonNullablePropertyValueRequired=3020]="NonNullablePropertyValueRequired",t[t.UnexpectedDuplicatedOrExistingFieldName=3021]="UnexpectedDuplicatedOrExistingFieldName",t[t.PluginBegin=4e3]="PluginBegin",t[t.PluginNullType=4001]="PluginNullType",t[t.PluginInvalidType=4002]="PluginInvalidType",t[t.PluginNull=4003]="PluginNull",t[t.PluginTypeExist=4004]="PluginTypeExist",t[t.PluginNullName=4005]="PluginNullName",t[t.AssertBegin=5e3]="AssertBegin",t[t.HslColorRequired=5001]="HslColorRequired",t[t.WrongDimensionMerge=5002]="WrongDimensionMerge",t[t.NoMatchedPlace=5003]="NoMatchedPlace",t[t.UnexpectedEmptyArray=5004]="UnexpectedEmptyArray",t[t.NotEqual=5005]="NotEqual",t[t.OperationIsNotPermitted=5006]="OperationIsNotPermitted",t[t.CyclicDataExisted=6001]="CyclicDataExisted"}(t.ErrorCode||(t.ErrorCode={}))}(dv||(dv={})),function(t){var e=function(){function e(){}return e._errorMessage=function(i){var n=e._errorMessages[t.ErrorCode[i]];return null!=n?n:"Unknown Error!"},e._errorMessages={None:"",AssertPrompt:"Assert Error: ",OptionPrompt:"Option Error: ",PluginPrompt:"Plugin Error: ",RuntimePrompt:"Runtime Error: ",InvalidArgument:"{0} is an invalid argument.",LegalNumberValueRequired:"{0} is an unexptectd value. A legal number value (not NaN) is required.",IntegerValueRequired:"{0} is an unexptectd value. A integer vaue is required.",LowerThanOrEqualToNumberValueRequired:"{0} is an unexptectd value. A number value lower than or equal to {1} is required.",GreaterThanOrEqualToNumberValueRequired:"{0} is an unexptectd value. A number value greater than or equal to {1} is required.",LowerThanNumberValueRequired:"{0} is an unexptectd value. A number value lower than {1} is required.",GreaterThanNumberValueRequired:"{0} is an unexptectd value. A number value greater than {1} is required.",NumberRequired:"{0} is an unexptectd value. Number type is required.",BooleanRequired:"{0} is an unexptectd value. Boolean type is required.",StringRequired:"{0} is an unexptectd value. String type is required.",UnexpectedValueType:"Unexpected value type, the {0} type is required.",ParsingXMLError:"Error parsing XML string.",FormatInvalid:"{0} is invalid format value.",TooManyPercent:"Too many percent/permill",TooManyPermill:"Too many percent/permill",MethodNotImplemented:"Method not implemented.",InvalidRectangle:"Invalid source rectangle.",InvalidRefParameter:"Invalid ref parameter.",MissingTemplatePart:"Missing template part.",CreateControlFailed:"Create control failed.",FunctionExpected:"Function expected.",UnexpectedNullValue:"Unexpected null value.",UnexpectedNaNValue:"Unexpected NaN value.",UnexpectedValue:"{0} is an unexptectd value.",DuplicatedRowColumn:"Unexpected duplicated row and column value.",PositiveOrZeroExpected:"{0} is an unexpected value. A positive integer or zero was expected.",MaxLessThanMin:"The axis range max value {0} less than min value {1}!",UnexpectedNegativeValue:"{0} is an unexpected negative value.",UnitIntervalExpected:"{0} is an unexpected value. An unit interval value was expected.",PositiveIntegerExpected:"{0} is an unexpected value. A positive integer was expected.",PositiveNumberExpected:"{0} is an unexpected value. A positive number was expected.",UnexpectedLogBaseValue:"{0} is an unexpected value. The value should be greater than 0 and not equal to 1.",WrongGraphJson:"{0} is an unexptectd value. A graph json is required.",StyleRequired:"{0} is an unexptectd value. A style option is required.",TextStyleRequired:"{0} is an unexptectd value. A TextStyle option is required.",OverlayStyleRequired:"{0} is an unexptectd value. An OverlayStyle option is required.",PathAnnotationRequired:"{0} is an unexptectd value. A string or array type is required.",UnexpectedEmptyArray:"The array is empty.",WrongLegendMerge:"Wrong Legend format.",WrongGradientPosition:"{0} is an unexpected vaue. Other direction keyword is required.",UnexpectedEmptyString:"Unexpected empty string.",NonNullablePropertyValueRequired:"The value of {0} is required. This property value should not be nullable.",UnexpectedDuplicatedOrExistingFieldName:"The {0} is an unexpected field name. The field name of {1} should not be duplicated or match any existing data fields.",PluginNullType:"Unexpected null type.",PluginInvalidType:"Unexpected plugin type.",PluginNull:"Unexpected plugin null.",PluginTypeExist:"Plugin type is exist.",PluginNullName:"Unexpected null plugin name.",OptionGraphViewport:"{0} is an unexptectd value. A viewport value (like [left, top, width, height]) is required.",NoMatchedPlace:"{0} is not equal {1}, no matched place holder pairs",NotEqual:"{0} is not equal {1}",HslColorRequired:"hsl({0}, {1}, {2}) is unexpected, HSL Color is required",OperationIsNotPermitted:"The operation {0} is not permitted.",CyclicDataExisted:"Sankey is a DAG, the original data has cycle."},e}();t.ExceptionLocalization=e}(dv||(dv={})),function(t){var e=function(e){function i(i){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return e.apply(this,__spreadArray([t.ExceptionLocalization._errorMessage(t.ErrorCode.RuntimePrompt),i],n,!1))||this}return __extends(i,e),i}(t.BaseError);t.RuntimeError=e}(dv||(dv={})),function(t){var e=function(){function e(){}return e._isBoolean=function(t){return"boolean"==typeof t},e._isDate=function(t){return t instanceof Date&&!isNaN(t.valueOf())},e._isNumber=function(t){return"number"==typeof t},e._isString=function(t){return"string"==typeof t},e._toNumber=function(i){if(null==i)throw new t.RuntimeError(t.ErrorCode.UnexpectedNullValue);if(!e._isNumber(i))throw new t.RuntimeError(t.ErrorCode.NumberRequired,i);return i},e._toString=function(i){if(null==i)throw new t.RuntimeError(t.ErrorCode.UnexpectedNullValue);if(!e._isString(i))throw new t.Runt