/*
Stimulsoft.Reports.JS
Version: 2018.1.6
Build date: 2018.01.20
License: https://www.stimulsoft.com/en/licensing/reports
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.opentype = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
function Tree(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function Data(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new Tree,this.dtree=new Tree}function tinf_build_bits_base(e,t,n,r){var s,i;for(s=0;n>s;++s)e[s]=0;for(s=0;30-n>s;++s)e[s+n]=s/n|0;for(i=r,s=0;30>s;++s)t[s]=i,i+=1<<e[s]}function tinf_build_fixed_trees(e,t){var n;for(n=0;7>n;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;24>n;++n)e.trans[n]=256+n;for(n=0;144>n;++n)e.trans[24+n]=n;for(n=0;8>n;++n)e.trans[168+n]=280+n;for(n=0;112>n;++n)e.trans[176+n]=144+n;for(n=0;5>n;++n)t.table[n]=0;for(t.table[5]=32,n=0;32>n;++n)t.trans[n]=n}function tinf_build_tree(e,t,n,r){var s,i;for(s=0;16>s;++s)e.table[s]=0;for(s=0;r>s;++s)e.table[t[n+s]]++;for(e.table[0]=0,i=0,s=0;16>s;++s)offs[s]=i,i+=e.table[s];for(s=0;r>s;++s)t[n+s]&&(e.trans[offs[t[n+s]]++]=s)}function tinf_getbit(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function tinf_read_bits(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function tinf_decode_symbol(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,s=0,i=e.tag;do r=2*r+(1&i),i>>>=1,++s,n+=t.table[s],r-=t.table[s];while(r>=0);return e.tag=i,e.bitcount-=s,t.trans[n+r]}function tinf_decode_trees(e,t,n){var r,s,i,a,o,_;for(r=tinf_read_bits(e,5,257),s=tinf_read_bits(e,5,1),i=tinf_read_bits(e,4,4),a=0;19>a;++a)lengths[a]=0;for(a=0;i>a;++a){var f=tinf_read_bits(e,3,0);lengths[clcidx[a]]=f}for(tinf_build_tree(code_tree,lengths,0,19),o=0;r+s>o;){var d=tinf_decode_symbol(e,code_tree);switch(d){case 16:var b=lengths[o-1];for(_=tinf_read_bits(e,2,3);_;--_)lengths[o++]=b;break;case 17:for(_=tinf_read_bits(e,3,3);_;--_)lengths[o++]=0;break;case 18:for(_=tinf_read_bits(e,7,11);_;--_)lengths[o++]=0;break;default:lengths[o++]=d}}tinf_build_tree(t,lengths,0,r),tinf_build_tree(n,lengths,r,s)}function tinf_inflate_block_data(e,t,n){for(;;){var r=tinf_decode_symbol(e,t);if(256===r)return TINF_OK;if(256>r)e.dest[e.destLen++]=r;else{var s,i,a,o;for(r-=257,s=tinf_read_bits(e,length_bits[r],length_base[r]),i=tinf_decode_symbol(e,n),a=e.destLen-tinf_read_bits(e,dist_bits[i],dist_base[i]),o=a;a+s>o;++o)e.dest[e.destLen++]=e.dest[o]}}}function tinf_inflate_uncompressed_block(e){for(var t,n,r;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if(t=e.source[e.sourceIndex+1],t=256*t+e.source[e.sourceIndex],n=e.source[e.sourceIndex+3],n=256*n+e.source[e.sourceIndex+2],t!==(65535&~n))return TINF_DATA_ERROR;for(e.sourceIndex+=4,r=t;r;--r)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,TINF_OK}function tinf_uncompress(e,t){var n,r,s=new Data(e,t);do{switch(n=tinf_getbit(s),btype=tinf_read_bits(s,2,0)){case 0:r=tinf_inflate_uncompressed_block(s);break;case 1:r=tinf_inflate_block_data(s,sltree,sdtree);break;case 2:tinf_decode_trees(s,s.ltree,s.dtree),r=tinf_inflate_block_data(s,s.ltree,s.dtree);break;default:r=TINF_DATA_ERROR}if(r!==TINF_OK)throw new Error("Data error")}while(!n);return s.destLen<s.dest.length?"function"==typeof s.dest.slice?s.dest.slice(0,s.destLen):s.dest.subarray(0,s.destLen):s.dest}var TINF_OK=0,TINF_DATA_ERROR=-3,sltree=new Tree,sdtree=new Tree,length_bits=new Uint8Array(30),length_base=new Uint16Array(30),dist_bits=new Uint8Array(30),dist_base=new Uint16Array(30),clcidx=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),code_tree=new Tree,lengths=new Uint8Array(320),offs=new Uint16Array(16);tinf_build_fixed_trees(sltree,sdtree),tinf_build_bits_base(length_bits,length_base,4,3),tinf_build_bits_base(dist_bits,dist_base,2,1),length_bits[28]=0,length_base[28]=258,module.exports=tinf_uncompress;


},{}],2:[function(require,module,exports){
"use strict";exports.argument=function(r,t){if(!r)throw new Error(t)},exports.assert=exports.argument;


},{}],3:[function(require,module,exports){
"use strict";function line(e,i,n,o,t){e.beginPath(),e.moveTo(i,n),e.lineTo(o,t),e.stroke()}exports.line=line;


},{}],4:[function(require,module,exports){
"use strict";function DefaultEncoding(e){this.font=e}function CmapEncoding(e){this.cmap=e}function CffEncoding(e,l){this.encoding=e,this.charset=l}function GlyphNames(e){var l;switch(e.version){case 1:this.names=exports.standardNames.slice();break;case 2:for(this.names=new Array(e.numberOfGlyphs),l=0;l<e.numberOfGlyphs;l++)this.names[l]=e.glyphNameIndex[l]<exports.standardNames.length?exports.standardNames[e.glyphNameIndex[l]]:e.names[e.glyphNameIndex[l]-exports.standardNames.length];break;case 2.5:for(this.names=new Array(e.numberOfGlyphs),l=0;l<e.numberOfGlyphs;l++)this.names[l]=exports.standardNames[l+e.glyphNameIndex[l]];break;case 3:this.names=[]}}function addGlyphNames(e){for(var l,r=e.tables.cmap.glyphIndexMap,a=Object.keys(r),s=0;s<a.length;s+=1){var i=a[s],o=r[i];l=e.glyphs.get(o),l.addUnicode(parseInt(i))}for(s=0;s<e.glyphs.length;s+=1)l=e.glyphs.get(s),l.name=e.cffEncoding?e.cffEncoding.charset[s]:e.glyphNames.glyphIndexToName(s)}var cffStandardStrings=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],cffStandardEncoding=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],cffExpertEncoding=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],standardNames=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];DefaultEncoding.prototype.charToGlyphIndex=function(e){var l=e.charCodeAt(0),r=this.font.glyphs;if(!r)return null;for(var a=0;a<r.length;a+=1)for(var s=r.get(a),i=0;i<s.unicodes.length;i+=1)if(s.unicodes[i]===l)return a},CmapEncoding.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.charCodeAt(0)]||0},CffEncoding.prototype.charToGlyphIndex=function(e){var l=e.charCodeAt(0),r=this.encoding[l];return this.charset.indexOf(r)},GlyphNames.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},GlyphNames.prototype.glyphIndexToName=function(e){return this.names[e]},exports.cffStandardStrings=cffStandardStrings,exports.cffStandardEncoding=cffStandardEncoding,exports.cffExpertEncoding=cffExpertEncoding,exports.standardNames=standardNames,exports.DefaultEncoding=DefaultEncoding,exports.CmapEncoding=CmapEncoding,exports.CffEncoding=CffEncoding,exports.GlyphNames=GlyphNames,exports.addGlyphNames=addGlyphNames;


},{}],5:[function(require,module,exports){
"use strict";function Font(e){e=e||{},e.empty||(util.checkArgument(e.familyName,"When creating a new Font object, familyName is required."),util.checkArgument(e.styleName,"When creating a new Font object, styleName is required."),util.checkArgument(e.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),util.checkArgument(e.ascender,"When creating a new Font object, ascender is required."),util.checkArgument(e.descender,"When creating a new Font object, descender is required."),util.checkArgument(e.descender<0,"Descender should be negative (e.g. -512)."),this.names={fontFamily:{en:e.familyName||" "},fontSubfamily:{en:e.styleName||" "},fullName:{en:e.fullName||e.familyName+" "+e.styleName},postScriptName:{en:e.postScriptName||e.familyName+e.styleName},designer:{en:e.designer||" "},designerURL:{en:e.designerURL||" "},manufacturer:{en:e.manufacturer||" "},manufacturerURL:{en:e.manufacturerURL||" "},license:{en:e.license||" "},licenseURL:{en:e.licenseURL||" "},version:{en:e.version||"Version 0.1"},description:{en:e.description||" "},copyright:{en:e.copyright||" "},trademark:{en:e.trademark||" "}},this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender),this.supported=!0,this.glyphs=new glyphset.GlyphSet(this,e.glyphs||[]),this.encoding=new encoding.DefaultEncoding(this),this.tables={}}var path=require("./path"),sfnt=require("./tables/sfnt"),encoding=require("./encoding"),glyphset=require("./glyphset"),util=require("./util");Font.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},Font.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Font.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},Font.prototype.stringToGlyphs=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e[n];t.push(this.charToGlyph(r))}return t},Font.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},Font.prototype.nameToGlyph=function(e){var t=this.nametoGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},Font.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},Font.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var n=this.getGposKerningValue;return n?n(e,t):this.kerningPairs[e+","+t]||0},Font.prototype.forEachGlyph=function(e,t,n,r,i,o){t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:72,i=i||{};for(var a=void 0===i.kerning?!0:i.kerning,s=1/this.unitsPerEm*r,h=this.stringToGlyphs(e),u=0;u<h.length;u+=1){var c=h[u];if(o(c,t,n,r,i),c.advanceWidth&&(t+=c.advanceWidth*s),a&&u<h.length-1){var l=this.getKerningValue(c,h[u+1]);t+=l*s}}},Font.prototype.getPath=function(e,t,n,r,i){var o=new path.Path;return this.forEachGlyph(e,t,n,r,i,function(e,t,n,r){var i=e.getPath(t,n,r);o.extend(i)}),o},Font.prototype.getPaths=function(e,t,n,r,i){var o=[];return this.forEachGlyph(e,t,n,r,i,function(e,t,n,r){var i=e.getPath(t,n,r);o.push(i)}),o},Font.prototype.draw=function(e,t,n,r,i,o){this.getPath(t,n,r,i,o).draw(e)},Font.prototype.drawPoints=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,function(t,n,r,i){t.drawPoints(e,n,r,i)})},Font.prototype.drawMetrics=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,function(t,n,r,i){t.drawMetrics(e,n,r,i)})},Font.prototype.getEnglishName=function(e){var t=this.names[e];return t?t.en:void 0},Font.prototype.validate=function(){function e(e,t){e||n.push(t)}function t(t){var n=r.getEnglishName(t);e(n&&n.trim().length>0,"No English "+t+" specified.")}var n=[],r=this;t("fontFamily"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),e(this.unitsPerEm>0,"No unitsPerEm specified.")},Font.prototype.toTables=function(){return sfnt.fontToTable(this)},Font.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},Font.prototype.toArrayBuffer=function(){for(var e=this.toTables(),t=e.encode(),n=new ArrayBuffer(t.length),r=new Uint8Array(n),i=0;i<t.length;i++)r[i]=t[i];return n},Font.prototype.download=function(){var e=this.getEnglishName("fontFamily"),t=this.getEnglishName("fontSubfamily"),n=e.replace(/\s/g,"")+"-"+t+".otf",r=this.toArrayBuffer();if(util.isBrowser())window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,r.byteLength,function(e){e.root.getFile(n,{create:!0},function(e){e.createWriter(function(t){var n=new DataView(r),i=new Blob([n],{type:"font/opentype"});t.write(i),t.addEventListener("writeend",function(){location.href=e.toURL()},!1)})})},function(e){throw e});else{var i=require("fs"),o=util.arrayBufferToNodeBuffer(r);i.writeFileSync(n,o)}},exports.Font=Font;


},{"./encoding":4,"./glyphset":7,"./path":10,"./tables/sfnt":27,"./util":29,"fs":undefined}],6:[function(require,module,exports){
"use strict";function getPathDefinition(t,i){var e=i||{commands:[]};return{configurable:!0,get:function(){return"function"==typeof e&&(e=e()),e},set:function(t){e=t}}}function Glyph(t){this.bindConstructorValues(t)}var check=require("./check"),draw=require("./draw"),path=require("./path");Glyph.prototype.bindConstructorValues=function(t){this.index=t.index||0,this.name=t.name||null,this.unicode=t.unicode||void 0,this.unicodes=t.unicodes||void 0!==t.unicode?[t.unicode]:[],t.xMin&&(this.xMin=t.xMin),t.yMin&&(this.yMin=t.yMin),t.xMax&&(this.xMax=t.xMax),t.yMax&&(this.yMax=t.yMax),t.advanceWidth&&(this.advanceWidth=t.advanceWidth),Object.defineProperty(this,"path",getPathDefinition(this,t.path))},Glyph.prototype.addUnicode=function(t){0===this.unicodes.length&&(this.unicode=t),this.unicodes.push(t)},Glyph.prototype.getPath=function(t,i,e){t=void 0!==t?t:0,i=void 0!==i?i:0,e=void 0!==e?e:72;for(var n=1/this.path.unitsPerEm*e,a=new path.Path,h=this.path.commands,o=0;o<h.length;o+=1){var r=h[o];"M"===r.type?a.moveTo(t+r.x*n,i+-r.y*n):"L"===r.type?a.lineTo(t+r.x*n,i+-r.y*n):"Q"===r.type?a.quadraticCurveTo(t+r.x1*n,i+-r.y1*n,t+r.x*n,i+-r.y*n):"C"===r.type?a.curveTo(t+r.x1*n,i+-r.y1*n,t+r.x2*n,i+-r.y2*n,t+r.x*n,i+-r.y*n):"Z"===r.type&&a.closePath()}return a},Glyph.prototype.getContours=function(){if(void 0===this.points)return[];for(var t=[],i=[],e=0;e<this.points.length;e+=1){var n=this.points[e];i.push(n),n.lastPointOfContour&&(t.push(i),i=[])}return check.argument(0===i.length,"There are still points left in the current contour."),t},Glyph.prototype.getMetrics=function(){for(var t=this.path.commands,i=[],e=[],n=0;n<t.length;n+=1){var a=t[n];"Z"!==a.type&&(i.push(a.x),e.push(a.y)),("Q"===a.type||"C"===a.type)&&(i.push(a.x1),e.push(a.y1)),"C"===a.type&&(i.push(a.x2),e.push(a.y2))}var h={xMin:Math.min.apply(null,i),yMin:Math.min.apply(null,e),xMax:Math.max.apply(null,i),yMax:Math.max.apply(null,e),leftSideBearing:0};return isFinite(h.xMin)||(h.xMin=0),isFinite(h.xMax)||(h.xMax=this.advanceWidth),isFinite(h.yMin)||(h.yMin=0),isFinite(h.yMax)||(h.yMax=0),h.rightSideBearing=this.advanceWidth-h.leftSideBearing-(h.xMax-h.xMin),h},Glyph.prototype.draw=function(t,i,e,n){this.getPath(i,e,n).draw(t)},Glyph.prototype.drawPoints=function(t,i,e,n){function a(i,e,n,a){var h=2*Math.PI;t.beginPath();for(var o=0;o<i.length;o+=1)t.moveTo(e+i[o].x*a,n+i[o].y*a),t.arc(e+i[o].x*a,n+i[o].y*a,2,0,h,!1);t.closePath(),t.fill()}i=void 0!==i?i:0,e=void 0!==e?e:0,n=void 0!==n?n:24;for(var h=1/this.path.unitsPerEm*n,o=[],r=[],s=this.path,p=0;p<s.commands.length;p+=1){var y=s.commands[p];void 0!==y.x&&o.push({x:y.x,y:-y.y}),void 0!==y.x1&&r.push({x:y.x1,y:-y.y1}),void 0!==y.x2&&r.push({x:y.x2,y:-y.y2})}t.fillStyle="blue",a(o,i,e,h),t.fillStyle="red",a(r,i,e,h)},Glyph.prototype.drawMetrics=function(t,i,e,n){var a;i=void 0!==i?i:0,e=void 0!==e?e:0,n=void 0!==n?n:24,a=1/this.path.unitsPerEm*n,t.lineWidth=1,t.strokeStyle="black",draw.line(t,i,-1e4,i,1e4),draw.line(t,-1e4,e,1e4,e);var h=this.xMin||0,o=this.yMin||0,r=this.xMax||0,s=this.yMax||0,p=this.advanceWidth||0;t.strokeStyle="blue",draw.line(t,i+h*a,-1e4,i+h*a,1e4),draw.line(t,i+r*a,-1e4,i+r*a,1e4),draw.line(t,-1e4,e+-o*a,1e4,e+-o*a),draw.line(t,-1e4,e+-s*a,1e4,e+-s*a),t.strokeStyle="green",draw.line(t,i+p*a,-1e4,i+p*a,1e4)},exports.Glyph=Glyph;


},{"./check":2,"./draw":3,"./path":10}],7:[function(require,module,exports){
"use strict";function GlyphSet(t,r){if(this.font=t,this.glyphs={},Array.isArray(r))for(var n=0;n<r.length;n++)this.glyphs[n]=r[n];this.length=r&&r.length||0}function glyphLoader(t,r){return new _glyph.Glyph({index:r,font:t})}function ttfGlyphLoader(t,r,n,e,h,p){return function(){var y=new _glyph.Glyph({index:r,font:t});return y.path=function(){n(y,e,h);var r=p(t.glyphs,y);return r.unitsPerEm=t.unitsPerEm,r},y}}function cffGlyphLoader(t,r,n,e){return function(){var h=new _glyph.Glyph({index:r,font:t});return h.path=function(){var r=n(t,h,e);return r.unitsPerEm=t.unitsPerEm,r},h}}var _glyph=require("./glyph");GlyphSet.prototype.get=function(t){return"function"==typeof this.glyphs[t]&&(this.glyphs[t]=this.glyphs[t]()),this.glyphs[t]},GlyphSet.prototype.push=function(t,r){this.glyphs[t]=r,this.length++},exports.GlyphSet=GlyphSet,exports.glyphLoader=glyphLoader,exports.ttfGlyphLoader=ttfGlyphLoader,exports.cffGlyphLoader=cffGlyphLoader;


},{"./glyph":6}],8:[function(require,module,exports){
"use strict";function loadFromFile(e,a){var r=require("fs");r.readFile(e,function(e,r){return e?a(e.message):void a(null,util.nodeBufferToArrayBuffer(r))})}function loadFromUrl(e,a){var r=new XMLHttpRequest;r.open("get",e,!0),r.responseType="arraybuffer",r.onload=function(){return 200!==r.status?a("Font could not be loaded: "+r.statusText):a(null,r.response)},r.send()}function parseOpenTypeTableEntries(e,a){for(var r=[],s=12,t=0;a>t;t+=1){var n=parse.getTag(e,s),o=parse.getULong(e,s+8);r.push({tag:n,offset:o,compression:!1}),s+=16}return r}function parseWOFFTableEntries(e,a){for(var r=[],s=44,t=0;a>t;t+=1){var n,o=parse.getTag(e,s),p=parse.getULong(e,s+4),f=parse.getULong(e,s+8),l=parse.getULong(e,s+12);n=l>f?"WOFF":!1,r.push({tag:o,offset:p,compression:n,compressedLength:f,originalLength:l}),s+=20}return r}function uncompressTable(e,a){if("WOFF"===a.compression){var r=new Uint8Array(e.buffer,a.offset+2,a.compressedLength-2),s=new Uint8Array(a.originalLength);if(inflate(r,s),s.byteLength!==a.originalLength)throw new Error("Decompression error: "+a.tag+" decompressed length doesn't match recorded length");var t=new DataView(s.buffer,0);return{data:t,offset:0}}return{data:e,offset:a.offset}}function parseBuffer(e){var a,r,s,t=new _font.Font({empty:!0}),n=new DataView(e,0),o=[],p=parse.getTag(n,0);if(p===String.fromCharCode(0,1,0,0))t.outlinesFormat="truetype",s=parse.getUShort(n,4),o=parseOpenTypeTableEntries(n,s);else if("OTTO"===p)t.outlinesFormat="cff",s=parse.getUShort(n,4),o=parseOpenTypeTableEntries(n,s);else{if("wOFF"!==p)throw new Error("Unsupported OpenType signature "+p);var f=parse.getTag(n,4);if(f===String.fromCharCode(0,1,0,0))t.outlinesFormat="truetype";else{if("OTTO"!==f)throw new Error("Unsupported OpenType flavor "+p);t.outlinesFormat="cff"}s=parse.getUShort(n,12),o=parseWOFFTableEntries(n,s)}for(var l,i,u,c,b,d,m,h,g=0;s>g;g+=1){var T,y=o[g];switch(y.tag){case"cmap":T=uncompressTable(n,y),t.tables.cmap=cmap.parse(T.data,T.offset),t.encoding=new encoding.CmapEncoding(t.tables.cmap);break;case"fvar":i=y;break;case"head":T=uncompressTable(n,y),t.tables.head=head.parse(T.data,T.offset),t.unitsPerEm=t.tables.head.unitsPerEm,a=t.tables.head.indexToLocFormat;break;case"hhea":T=uncompressTable(n,y),t.tables.hhea=hhea.parse(T.data,T.offset),t.ascender=t.tables.hhea.ascender,t.descender=t.tables.hhea.descender,t.numberOfHMetrics=t.tables.hhea.numberOfHMetrics;break;case"hmtx":b=y;break;case"ltag":T=uncompressTable(n,y),r=ltag.parse(T.data,T.offset);break;case"maxp":T=uncompressTable(n,y),t.tables.maxp=maxp.parse(T.data,T.offset),t.numGlyphs=t.tables.maxp.numGlyphs;break;case"name":h=y;break;case"OS/2":T=uncompressTable(n,y),t.tables.os2=os2.parse(T.data,T.offset);break;case"post":T=uncompressTable(n,y),t.tables.post=post.parse(T.data,T.offset),t.glyphNames=new encoding.GlyphNames(t.tables.post);break;case"glyf":u=y;break;case"loca":m=y;break;case"CFF ":l=y;break;case"kern":d=y;break;case"GPOS":c=y}}var F=uncompressTable(n,h);if(t.tables.name=_name.parse(F.data,F.offset,r),t.names=t.tables.name,u&&m){var v=0===a,q=uncompressTable(n,m),w=loca.parse(q.data,q.offset,t.numGlyphs,v),k=uncompressTable(n,u);t.glyphs=glyf.parse(k.data,k.offset,w,t)}else{if(!l)throw new Error("Font doesn't contain TrueType or CFF outlines.");var x=uncompressTable(n,l);cff.parse(x.data,x.offset,t)}var O=uncompressTable(n,b);if(hmtx.parse(O.data,O.offset,t.numberOfHMetrics,t.numGlyphs,t.glyphs),encoding.addGlyphNames(t),d){var U=uncompressTable(n,d);t.kerningPairs=kern.parse(U.data,U.offset)}else t.kerningPairs={};if(c){var E=uncompressTable(n,c);gpos.parse(E.data,E.offset,t)}if(i){var L=uncompressTable(n,i);t.tables.fvar=fvar.parse(L.data,L.offset,t.names)}return t}function load(e,a){var r="undefined"==typeof window,s=r?loadFromFile:loadFromUrl;s(e,function(e,r){if(e)return a(e);var s=parseBuffer(r);return a(null,s)})}function loadSync(e){var a=require("fs"),r=a.readFileSync(e);return parseBuffer(util.nodeBufferToArrayBuffer(r))}var inflate=require("tiny-inflate"),encoding=require("./encoding"),_font=require("./font"),glyph=require("./glyph"),parse=require("./parse"),path=require("./path"),util=require("./util"),cmap=require("./tables/cmap"),cff=require("./tables/cff"),fvar=require("./tables/fvar"),glyf=require("./tables/glyf"),gpos=require("./tables/gpos"),head=require("./tables/head"),hhea=require("./tables/hhea"),hmtx=require("./tables/hmtx"),kern=require("./tables/kern"),ltag=require("./tables/ltag"),loca=require("./tables/loca"),maxp=require("./tables/maxp"),_name=require("./tables/name"),os2=require("./tables/os2"),post=require("./tables/post");exports._parse=parse,exports.Font=_font.Font,exports.Glyph=glyph.Glyph,exports.Path=path.Path,exports.parse=parseBuffer,exports.load=load,exports.loadSync=loadSync;
},{"./encoding":4,"./font":5,"./glyph":6,"./parse":9,"./path":10,"./tables/cff":12,"./tables/cmap":13,"./tables/fvar":14,"./tables/glyf":15,"./tables/gpos":16,"./tables/head":17,"./tables/hhea":18,"./tables/hmtx":19,"./tables/kern":20,"./tables/loca":21,"./tables/ltag":22,"./tables/maxp":23,"./tables/name":24,"./tables/os2":25,"./tables/post":26,"./util":29,"fs":undefined,"tiny-inflate":1}],9:[function(require,module,exports){
"use strict";function Parser(t,e){this.data=t,this.offset=e,this.relativeOffset=0}exports.getByte=function(t,e){return t.getUint8(e)},exports.getCard8=exports.getByte,exports.getUShort=function(t,e){return t.getUint16(e,!1)},exports.getCard16=exports.getUShort,exports.getShort=function(t,e){return t.getInt16(e,!1)},exports.getULong=function(t,e){return t.getUint32(e,!1)},exports.getFixed=function(t,e){var r=t.getInt16(e,!1),s=t.getUint16(e+2,!1);return r+s/65535},exports.getTag=function(t,e){for(var r="",s=e;e+4>s;s+=1)r+=String.fromCharCode(t.getInt8(s));return r},exports.getOffset=function(t,e,r){for(var s=0,o=0;r>o;o+=1)s<<=8,s+=t.getUint8(e+o);return s},exports.getBytes=function(t,e,r){for(var s=[],o=e;r>o;o+=1)s.push(t.getUint8(o));return s},exports.bytesToString=function(t){for(var e="",r=0;r<t.length;r+=1)e+=String.fromCharCode(t[r]);return e};var typeOffsets={"byte":1,uShort:2,"short":2,uLong:4,fixed:4,longDateTime:8,tag:4};Parser.prototype.parseByte=function(){var t=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,t},Parser.prototype.parseChar=function(){var t=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,t},Parser.prototype.parseCard8=Parser.prototype.parseByte,Parser.prototype.parseUShort=function(){var t=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,t},Parser.prototype.parseCard16=Parser.prototype.parseUShort,Parser.prototype.parseSID=Parser.prototype.parseUShort,Parser.prototype.parseOffset16=Parser.prototype.parseUShort,Parser.prototype.parseShort=function(){var t=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,t},Parser.prototype.parseF2Dot14=function(){var t=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,t},Parser.prototype.parseULong=function(){var t=exports.getULong(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,t},Parser.prototype.parseFixed=function(){var t=exports.getFixed(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,t},Parser.prototype.parseOffset16List=Parser.prototype.parseUShortList=function(t){for(var e=new Array(t),r=this.data,s=this.offset+this.relativeOffset,o=0;t>o;o++)e[o]=exports.getUShort(r,s),s+=2;return this.relativeOffset+=2*t,e},Parser.prototype.parseString=function(t){var e=this.data,r=this.offset+this.relativeOffset,s="";this.relativeOffset+=t;for(var o=0;t>o;o++)s+=String.fromCharCode(e.getUint8(r+o));return s},Parser.prototype.parseTag=function(){return this.parseString(4)},Parser.prototype.parseLongDateTime=function(){var t=exports.getULong(this.data,this.offset+this.relativeOffset+4);return this.relativeOffset+=8,t},Parser.prototype.parseFixed=function(){var t=exports.getULong(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,t/65536},Parser.prototype.parseVersion=function(){var t=exports.getUShort(this.data,this.offset+this.relativeOffset),e=exports.getUShort(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,t+e/4096/10},Parser.prototype.skip=function(t,e){void 0===e&&(e=1),this.relativeOffset+=typeOffsets[t]*e},exports.Parser=Parser;


},{}],10:[function(require,module,exports){
"use strict";function Path(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}Path.prototype.moveTo=function(t,o){this.commands.push({type:"M",x:t,y:o})},Path.prototype.lineTo=function(t,o){this.commands.push({type:"L",x:t,y:o})},Path.prototype.curveTo=Path.prototype.bezierCurveTo=function(t,o,e,i,s,h){this.commands.push({type:"C",x1:t,y1:o,x2:e,y2:i,x:s,y:h})},Path.prototype.quadTo=Path.prototype.quadraticCurveTo=function(t,o,e,i){this.commands.push({type:"Q",x1:t,y1:o,x:e,y:i})},Path.prototype.close=Path.prototype.closePath=function(){this.commands.push({type:"Z"})},Path.prototype.extend=function(t){t.commands&&(t=t.commands),Array.prototype.push.apply(this.commands,t)},Path.prototype.draw=function(t){t.beginPath();for(var o=0;o<this.commands.length;o+=1){var e=this.commands[o];"M"===e.type?t.moveTo(e.x,e.y):"L"===e.type?t.lineTo(e.x,e.y):"C"===e.type?t.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y):"Q"===e.type?t.quadraticCurveTo(e.x1,e.y1,e.x,e.y):"Z"===e.type&&t.closePath()}this.fill&&(t.fillStyle=this.fill,t.fill()),this.stroke&&(t.strokeStyle=this.stroke,t.lineWidth=this.strokeWidth,t.stroke())},Path.prototype.toPathData=function(t){function o(o){return Math.round(o)===o?""+Math.round(o):o.toFixed(t)}function e(){for(var t="",e=0;e<arguments.length;e+=1){var i=arguments[e];i>=0&&e>0&&(t+=" "),t+=o(i)}return t}t=void 0!==t?t:2;for(var i="",s=0;s<this.commands.length;s+=1){var h=this.commands[s];"M"===h.type?i+="M"+e(h.x,h.y):"L"===h.type?i+="L"+e(h.x,h.y):"C"===h.type?i+="C"+e(h.x1,h.y1,h.x2,h.y2,h.x,h.y):"Q"===h.type?i+="Q"+e(h.x1,h.y1,h.x,h.y):"Z"===h.type&&(i+="Z")}return i},Path.prototype.toSVG=function(t){var o='<path d="';return o+=this.toPathData(t),o+='"',this.fill&"black"!==this.fill&&(o+=null===this.fill?' fill="none"':' fill="'+this.fill+'"'),this.stroke&&(o+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),o+="/>"},exports.Path=Path;


},{}],11:[function(require,module,exports){
"use strict";function Table(e,t,i){var s;for(s=0;s<t.length;s+=1){var r=t[s];this[r.name]=r.value}if(this.tableName=e,this.fields=t,i){var f=Object.keys(i);for(s=0;s<f.length;s+=1){var n=f[s],o=i[n];void 0!==this[n]&&(this[n]=o)}}}var check=require("./check"),encode=require("./types").encode,sizeOf=require("./types").sizeOf;Table.prototype.sizeOf=function(){for(var e=0,t=0;t<this.fields.length;t+=1){var i=this.fields[t],s=this[i.name];if(void 0===s&&(s=i.value),"function"==typeof s.sizeOf)e+=s.sizeOf();else{var r=sizeOf[i.type];check.assert("function"==typeof r,"Could not find sizeOf function for field"+i.name),e+=r(s)}}return e},Table.prototype.encode=function(){return encode.TABLE(this)},exports.Table=Table;


},{"./check":2,"./types":28}],12:[function(require,module,exports){
"use strict";function equals(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a+=1)if(!equals(e[a],t[a]))return!1;return!0}return!1}function parseCFFIndex(e,t,a){var r,n,s,i=[],o=[],h=parse.getCard16(e,t);if(0!==h){var f=parse.getByte(e,t+2);n=t+(h+1)*f+2;var p=t+3;for(r=0;h+1>r;r+=1)i.push(parse.getOffset(e,p,f)),p+=f;s=n+i[h]}else s=t+2;for(r=0;r<i.length-1;r+=1){var u=parse.getBytes(e,n+i[r],n+i[r+1]);a&&(u=a(u)),o.push(u)}return{objects:o,startOffset:t,endOffset:s}}function parseFloatOperand(e){for(var t="",a=15,r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var n=e.parseByte(),s=n>>4,i=15&n;if(s===a)break;if(t+=r[s],i===a)break;t+=r[i]}return parseFloat(t)}function parseOperand(e,t){var a,r,n,s;if(28===t)return a=e.parseByte(),r=e.parseByte(),a<<8|r;if(29===t)return a=e.parseByte(),r=e.parseByte(),n=e.parseByte(),s=e.parseByte(),a<<24|r<<16|n<<8|s;if(30===t)return parseFloatOperand(e);if(t>=32&&246>=t)return t-139;if(t>=247&&250>=t)return a=e.parseByte(),256*(t-247)+a+108;if(t>=251&&254>=t)return a=e.parseByte(),256*-(t-251)-a-108;throw new Error("Invalid b0 "+t)}function entriesToObject(e){for(var t={},a=0;a<e.length;a+=1){var r,n=e[a][0],s=e[a][1];if(r=1===s.length?s[0]:s,t.hasOwnProperty(n))throw new Error("Object "+t+" already has key "+n);t[n]=r}return t}function parseCFFDict(e,t,a){t=void 0!==t?t:0;var r=new parse.Parser(e,t),n=[],s=[];for(a=void 0!==a?a:e.length;r.relativeOffset<a;){var i=r.parseByte();21>=i?(12===i&&(i=1200+r.parseByte()),n.push([i,s]),s=[]):s.push(parseOperand(r,i))}return entriesToObject(n)}function getCFFString(e,t){return t=390>=t?encoding.cffStandardStrings[t]:e[t-391]}function interpretDict(e,t,a){for(var r={},n=0;n<t.length;n+=1){var s=t[n],i=e[s.op];void 0===i&&(i=void 0!==s.value?s.value:null),"SID"===s.type&&(i=getCFFString(a,i)),r[s.name]=i}return r}function parseCFFHeader(e,t){var a={};return a.formatMajor=parse.getCard8(e,t),a.formatMinor=parse.getCard8(e,t+1),a.size=parse.getCard8(e,t+2),a.offsetSize=parse.getCard8(e,t+3),a.startOffset=t,a.endOffset=t+4,a}function parseCFFTopDict(e,t){var a=parseCFFDict(e,0,e.byteLength);return interpretDict(a,TOP_DICT_META,t)}function parseCFFPrivateDict(e,t,a,r){var n=parseCFFDict(e,t,a);return interpretDict(n,PRIVATE_DICT_META,r)}function parseCFFCharset(e,t,a,r){var n,s,i,o=new parse.Parser(e,t);a-=1;var h=[".notdef"],f=o.parseCard8();if(0===f)for(n=0;a>n;n+=1)s=o.parseSID(),h.push(getCFFString(r,s));else if(1===f)for(;h.length<=a;)for(s=o.parseSID(),i=o.parseCard8(),n=0;i>=n;n+=1)h.push(getCFFString(r,s)),s+=1;else{if(2!==f)throw new Error("Unknown charset format "+f);for(;h.length<=a;)for(s=o.parseSID(),i=o.parseCard16(),n=0;i>=n;n+=1)h.push(getCFFString(r,s)),s+=1}return h}function parseCFFEncoding(e,t,a){var r,n,s={},i=new parse.Parser(e,t),o=i.parseCard8();if(0===o){var h=i.parseCard8();for(r=0;h>r;r+=1)n=i.parseCard8(),s[n]=r}else{if(1!==o)throw new Error("Unknown encoding format "+o);var f=i.parseCard8();for(n=1,r=0;f>r;r+=1)for(var p=i.parseCard8(),u=i.parseCard8(),l=p;p+u>=l;l+=1)s[l]=n,n+=1}return new encoding.CffEncoding(s,a)}function parseCFFCharstring(e,t,a){function r(e,t){g&&p.closePath(),p.moveTo(e,t),g=!0}function n(){var t;t=u.length%2!==0,t&&!c&&(d=u.shift()+e.nominalWidthX),l+=u.length>>1,u.length=0,c=!0}function s(a){for(var y,b,T,C,F,I,x,D,k,S,E,B,M=0;M<a.length;){var w=a[M];switch(M+=1,w){case 1:n();break;case 3:n();break;case 4:u.length>1&&!c&&(d=u.shift()+e.nominalWidthX,c=!0),m+=u.pop(),r(v,m);break;case 5:for(;u.length>0;)v+=u.shift(),m+=u.shift(),p.lineTo(v,m);break;case 6:for(;u.length>0&&(v+=u.shift(),p.lineTo(v,m),0!==u.length);)m+=u.shift(),p.lineTo(v,m);break;case 7:for(;u.length>0&&(m+=u.shift(),p.lineTo(v,m),0!==u.length);)v+=u.shift(),p.lineTo(v,m);break;case 8:for(;u.length>0;)i=v+u.shift(),o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),v=h+u.shift(),m=f+u.shift(),p.curveTo(i,o,h,f,v,m);break;case 10:F=u.pop()+e.subrsBias,I=e.subrs[F],I&&s(I);break;case 11:return;case 12:switch(w=a[M],M+=1,w){case 35:i=v+u.shift(),o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),x=h+u.shift(),D=f+u.shift(),k=x+u.shift(),S=D+u.shift(),E=k+u.shift(),B=S+u.shift(),v=E+u.shift(),m=B+u.shift(),u.shift(),p.curveTo(i,o,h,f,x,D),p.curveTo(k,S,E,B,v,m);break;case 34:i=v+u.shift(),o=m,h=i+u.shift(),f=o+u.shift(),x=h+u.shift(),D=f,k=x+u.shift(),S=f,E=k+u.shift(),B=m,v=E+u.shift(),p.curveTo(i,o,h,f,x,D),p.curveTo(k,S,E,B,v,m);break;case 36:i=v+u.shift(),o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),x=h+u.shift(),D=f,k=x+u.shift(),S=f,E=k+u.shift(),B=S+u.shift(),v=E+u.shift(),p.curveTo(i,o,h,f,x,D),p.curveTo(k,S,E,B,v,m);break;case 37:i=v+u.shift(),o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),x=h+u.shift(),D=f+u.shift(),k=x+u.shift(),S=D+u.shift(),E=k+u.shift(),B=S+u.shift(),Math.abs(E-v)>Math.abs(B-m)?v=E+u.shift():m=B+u.shift(),p.curveTo(i,o,h,f,x,D),p.curveTo(k,S,E,B,v,m);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+w),u.length=0}break;case 14:u.length>0&&!c&&(d=u.shift()+e.nominalWidthX,c=!0),g&&(p.closePath(),g=!1);break;case 18:n();break;case 19:case 20:n(),M+=l+7>>3;break;case 21:u.length>2&&!c&&(d=u.shift()+e.nominalWidthX,c=!0),m+=u.pop(),v+=u.pop(),r(v,m);break;case 22:u.length>1&&!c&&(d=u.shift()+e.nominalWidthX,c=!0),v+=u.pop(),r(v,m);break;case 23:n();break;case 24:for(;u.length>2;)i=v+u.shift(),o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),v=h+u.shift(),m=f+u.shift(),p.curveTo(i,o,h,f,v,m);v+=u.shift(),m+=u.shift(),p.lineTo(v,m);break;case 25:for(;u.length>6;)v+=u.shift(),m+=u.shift(),p.lineTo(v,m);i=v+u.shift(),o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),v=h+u.shift(),m=f+u.shift(),p.curveTo(i,o,h,f,v,m);break;case 26:for(u.length%2&&(v+=u.shift());u.length>0;)i=v,o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),v=h,m=f+u.shift(),p.curveTo(i,o,h,f,v,m);break;case 27:for(u.length%2&&(m+=u.shift());u.length>0;)i=v+u.shift(),o=m,h=i+u.shift(),f=o+u.shift(),v=h+u.shift(),m=f,p.curveTo(i,o,h,f,v,m);break;case 28:y=a[M],b=a[M+1],u.push((y<<24|b<<16)>>16),M+=2;break;case 29:F=u.pop()+e.gsubrsBias,I=e.gsubrs[F],I&&s(I);break;case 30:for(;u.length>0&&(i=v,o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),v=h+u.shift(),m=f+(1===u.length?u.shift():0),p.curveTo(i,o,h,f,v,m),0!==u.length);)i=v+u.shift(),o=m,h=i+u.shift(),f=o+u.shift(),m=f+u.shift(),v=h+(1===u.length?u.shift():0),p.curveTo(i,o,h,f,v,m);break;case 31:for(;u.length>0&&(i=v+u.shift(),o=m,h=i+u.shift(),f=o+u.shift(),m=f+u.shift(),v=h+(1===u.length?u.shift():0),p.curveTo(i,o,h,f,v,m),0!==u.length);)i=v,o=m+u.shift(),h=i+u.shift(),f=o+u.shift(),v=h+u.shift(),m=f+(1===u.length?u.shift():0),p.curveTo(i,o,h,f,v,m);break;default:32>w?console.log("Glyph "+t.index+": unknown operator "+w):247>w?u.push(w-139):251>w?(y=a[M],M+=1,u.push(256*(w-247)+y+108)):255>w?(y=a[M],M+=1,u.push(256*-(w-251)-y-108)):(y=a[M],b=a[M+1],T=a[M+2],C=a[M+3],M+=4,u.push((y<<24|b<<16|T<<8|C)/65536))}}}var i,o,h,f,p=new path.Path,u=[],l=0,c=!1,d=e.defaultWidthX,g=!1,v=0,m=0;return s(a),t.advanceWidth=d,p}function calcCFFSubroutineBias(e){var t;return t=e.length<1240?107:e.length<33900?1131:32768}function parseCFFTable(e,t,a){a.tables.cff={};var r=parseCFFHeader(e,t),n=parseCFFIndex(e,r.endOffset,parse.bytesToString),s=parseCFFIndex(e,n.endOffset),i=parseCFFIndex(e,s.endOffset,parse.bytesToString),o=parseCFFIndex(e,i.endOffset);a.gsubrs=o.objects,a.gsubrsBias=calcCFFSubroutineBias(a.gsubrs);var h=new DataView(new Uint8Array(s.objects[0]).buffer),f=parseCFFTopDict(h,i.objects);a.tables.cff.topDict=f;var p=t+f["private"][1],u=parseCFFPrivateDict(e,p,f["private"][0],i.objects);if(a.defaultWidthX=u.defaultWidthX,a.nominalWidthX=u.nominalWidthX,0!==u.subrs){var l=p+u.subrs,c=parseCFFIndex(e,l);a.subrs=c.objects,a.subrsBias=calcCFFSubroutineBias(a.subrs)}else a.subrs=[],a.subrsBias=0;var d=parseCFFIndex(e,t+f.charStrings);a.nGlyphs=d.objects.length;var g=parseCFFCharset(e,t+f.charset,a.nGlyphs,i.objects);a.cffEncoding=0===f.encoding?new encoding.CffEncoding(encoding.cffStandardEncoding,g):1===f.encoding?new encoding.CffEncoding(encoding.cffExpertEncoding,g):parseCFFEncoding(e,t+f.encoding,g),a.encoding=a.encoding||a.cffEncoding,a.glyphs=new glyphset.GlyphSet(a);for(var v=0;v<a.nGlyphs;v+=1){var m=d.objects[v];a.glyphs.push(v,glyphset.cffGlyphLoader(a,v,parseCFFCharstring,m))}}function encodeString(e,t){var a,r=encoding.cffStandardStrings.indexOf(e);return r>=0&&(a=r),r=t.indexOf(e),r>=0?a=r+encoding.cffStandardStrings.length:(a=encoding.cffStandardStrings.length+t.length,t.push(e)),a}function makeHeader(){return new table.Table("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}])}function makeNameIndex(e){var t=new table.Table("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var a=0;a<e.length;a+=1)t.names.push({name:"name_"+a,type:"NAME",value:e[a]});return t}function makeDict(e,t,a){for(var r={},n=0;n<e.length;n+=1){var s=e[n],i=t[s.name];void 0===i||equals(i,s.value)||("SID"===s.type&&(i=encodeString(i,a)),r[s.op]={name:s.name,type:s.type,value:i})}return r}function makeTopDict(e,t){var a=new table.Table("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return a.dict=makeDict(TOP_DICT_META,e,t),a}function makeTopDictIndex(e){var t=new table.Table("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function makeStringIndex(e){var t=new table.Table("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var a=0;a<e.length;a+=1)t.strings.push({name:"string_"+a,type:"STRING",value:e[a]});return t}function makeGlobalSubrIndex(){return new table.Table("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}])}function makeCharsets(e,t){for(var a=new table.Table("Charsets",[{name:"format",type:"Card8",value:0}]),r=0;r<e.length;r+=1){var n=e[r],s=encodeString(n,t);a.fields.push({name:"glyph_"+r,type:"SID",value:s})}return a}function glyphToOps(e){var t=[],a=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var r=0,n=0,s=0;s<a.commands.length;s+=1){var i,o,h=a.commands[s];if("Q"===h.type){var f=1/3,p=2/3;h={type:"C",x:h.x,y:h.y,x1:f*r+p*h.x1,y1:f*n+p*h.y1,x2:f*h.x+p*h.x1,y2:f*h.y+p*h.y1}}if("M"===h.type)i=Math.round(h.x-r),o=Math.round(h.y-n),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:o}),t.push({name:"rmoveto",type:"OP",value:21}),r=Math.round(h.x),n=Math.round(h.y);else if("L"===h.type)i=Math.round(h.x-r),o=Math.round(h.y-n),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:o}),t.push({name:"rlineto",type:"OP",value:5}),r=Math.round(h.x),n=Math.round(h.y);else if("C"===h.type){var u=Math.round(h.x1-r),l=Math.round(h.y1-n),c=Math.round(h.x2-h.x1),d=Math.round(h.y2-h.y1);i=Math.round(h.x-h.x2),o=Math.round(h.y-h.y2),t.push({name:"dx1",type:"NUMBER",value:u}),t.push({name:"dy1",type:"NUMBER",value:l}),t.push({name:"dx2",type:"NUMBER",value:c}),t.push({name:"dy2",type:"NUMBER",value:d}),t.push({name:"dx",type:"NUMBER",value:i}),t.push({name:"dy",type:"NUMBER",value:o}),t.push({name:"rrcurveto",type:"OP",value:8}),r=Math.round(h.x),n=Math.round(h.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}function makeCharStringsIndex(e){for(var t=new table.Table("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),a=0;a<e.length;a+=1){var r=e.get(a),n=glyphToOps(r);t.charStrings.push({name:r.name,type:"CHARSTRING",value:n})}return t}function makePrivateDict(e,t){var a=new table.Table("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return a.dict=makeDict(PRIVATE_DICT_META,e,t),a}function makeCFFTable(e,t){for(var a,r=new table.Table("CFF ",[{name:"header",type:"TABLE"},{name:"nameIndex",type:"TABLE"},{name:"topDictIndex",type:"TABLE"},{name:"stringIndex",type:"TABLE"},{name:"globalSubrIndex",type:"TABLE"},{name:"charsets",type:"TABLE"},{name:"charStringsIndex",type:"TABLE"},{name:"privateDict",type:"TABLE"}]),n=1/t.unitsPerEm,s={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontBBox:t.fontBBox||[0,0,0,0],fontMatrix:[n,0,0,n,0,0],charset:999,encoding:0,charStrings:999,"private":[0,999]},i={},o=[],h=1;h<e.length;h+=1)a=e.get(h),o.push(a.name);var f=[];r.header=makeHeader(),r.nameIndex=makeNameIndex([t.postScriptName]);var p=makeTopDict(s,f);r.topDictIndex=makeTopDictIndex(p),r.globalSubrIndex=makeGlobalSubrIndex(),r.charsets=makeCharsets(o,f),r.charStringsIndex=makeCharStringsIndex(e),r.privateDict=makePrivateDict(i,f),r.stringIndex=makeStringIndex(f);var u=r.header.sizeOf()+r.nameIndex.sizeOf()+r.topDictIndex.sizeOf()+r.stringIndex.sizeOf()+r.globalSubrIndex.sizeOf();return s.charset=u,s.encoding=0,s.charStrings=s.charset+r.charsets.sizeOf(),s.private[1]=s.charStrings+r.charStringsIndex.sizeOf(),p=makeTopDict(s,f),r.topDictIndex=makeTopDictIndex(p),r}var encoding=require("../encoding"),glyphset=require("../glyphset"),parse=require("../parse"),path=require("../path"),table=require("../table"),TOP_DICT_META=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]}],PRIVATE_DICT_META=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];exports.parse=parseCFFTable,exports.make=makeCFFTable;


},{"../encoding":4,"../glyphset":7,"../parse":9,"../path":10,"../table":11}],13:[function(require,module,exports){
"use strict";function parseCmapTable(e,a){var t,r={};r.version=parse.getUShort(e,a),check.argument(0===r.version,"cmap table version should be 0."),r.numTables=parse.getUShort(e,a+2);var n=-1;for(t=0;t<r.numTables;t+=1){var s=parse.getUShort(e,a+4+8*t),l=parse.getUShort(e,a+4+8*t+2);if(3===s&&(1===l||0===l)){n=parse.getULong(e,a+4+8*t+4);break}}if(-1===n)return null;var o=new parse.Parser(e,a+n);r.format=o.parseUShort(),check.argument(4===r.format,"Only format 4 cmap tables are supported."),r.length=o.parseUShort(),r.language=o.parseUShort();var p;r.segCount=p=o.parseUShort()>>1,o.skip("uShort",3),r.glyphIndexMap={};var g=new parse.Parser(e,a+n+14),m=new parse.Parser(e,a+n+16+2*p),u=new parse.Parser(e,a+n+16+4*p),h=new parse.Parser(e,a+n+16+6*p),c=a+n+16+8*p;for(t=0;p-1>t;t+=1)for(var f,d=g.parseUShort(),S=m.parseUShort(),i=u.parseShort(),v=h.parseUShort(),U=S;d>=U;U+=1)0!==v?(c=h.offset+h.relativeOffset-2,c+=v,c+=2*(U-S),f=parse.getUShort(e,c),0!==f&&(f=f+i&65535)):f=U+i&65535,r.glyphIndexMap[U]=f;return r}function addSegment(e,a,t){e.segments.push({end:a,start:a,delta:-(a-t),offset:0})}function addTerminatorSegment(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function makeCmapTable(e){var a,t=new table.Table("cmap",[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:1},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:12},{name:"format",type:"USHORT",value:4},{name:"length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);for(t.segments=[],a=0;a<e.length;a+=1){for(var r=e.get(a),n=0;n<r.unicodes.length;n+=1)addSegment(t,r.unicodes[n],a);t.segments=t.segments.sort(function(e,a){return e.start-a.start})}addTerminatorSegment(t);var s;s=t.segments.length,t.segCountX2=2*s,t.searchRange=2*Math.pow(2,Math.floor(Math.log(s)/Math.log(2))),t.entrySelector=Math.log(t.searchRange/2)/Math.log(2),t.rangeShift=t.segCountX2-t.searchRange;var l=[],o=[],p=[],g=[],m=[];for(a=0;s>a;a+=1){var u=t.segments[a];l=l.concat({name:"end_"+a,type:"USHORT",value:u.end}),o=o.concat({name:"start_"+a,type:"USHORT",value:u.start}),p=p.concat({name:"idDelta_"+a,type:"SHORT",value:u.delta}),g=g.concat({name:"idRangeOffset_"+a,type:"USHORT",value:u.offset}),void 0!==u.glyphId&&(m=m.concat({name:"glyph_"+a,type:"USHORT",value:u.glyphId}))}return t.fields=t.fields.concat(l),t.fields.push({name:"reservedPad",type:"USHORT",value:0}),t.fields=t.fields.concat(o),t.fields=t.fields.concat(p),t.fields=t.fields.concat(g),t.fields=t.fields.concat(m),t.length=14+2*l.length+2+2*o.length+2*p.length+2*g.length+2*m.length,t}var check=require("../check"),parse=require("../parse"),table=require("../table");exports.parse=parseCmapTable,exports.make=makeCmapTable;


},{"../check":2,"../parse":9,"../table":11}],14:[function(require,module,exports){
"use strict";function addName(e,a){var r=JSON.stringify(e),n=256;for(var t in a){var s=parseInt(t);if(s&&!(256>s)){if(JSON.stringify(a[t])===r)return s;s>=n&&(n=s+1)}}return a[n]=e,n}function makeFvarAxis(e,a){var r=addName(e.name,a);return new table.Table("fvarAxis",[{name:"tag",type:"TAG",value:e.tag},{name:"minValue",type:"FIXED",value:e.minValue<<16},{name:"defaultValue",type:"FIXED",value:e.defaultValue<<16},{name:"maxValue",type:"FIXED",value:e.maxValue<<16},{name:"flags",type:"USHORT",value:0},{name:"nameID",type:"USHORT",value:r}])}function parseFvarAxis(e,a,r){var n={},t=new parse.Parser(e,a);return n.tag=t.parseTag(),n.minValue=t.parseFixed(),n.defaultValue=t.parseFixed(),n.maxValue=t.parseFixed(),t.skip("uShort",1),n.name=r[t.parseUShort()]||{},n}function makeFvarInstance(e,a,r){for(var n=addName(e.name,r),t=[{name:"nameID",type:"USHORT",value:n},{name:"flags",type:"USHORT",value:0}],s=0;s<a.length;++s){var u=a[s].tag;t.push({name:"axis "+u,type:"FIXED",value:e.coordinates[u]<<16})}return new table.Table("fvarInstance",t)}function parseFvarInstance(e,a,r,n){var t={},s=new parse.Parser(e,a);t.name=n[s.parseUShort()]||{},s.skip("uShort",1),t.coordinates={};for(var u=0;u<r.length;++u)t.coordinates[r[u].tag]=s.parseFixed();return t}function makeFvarTable(e,a){var r=new table.Table("fvar",[{name:"version",type:"ULONG",value:65536},{name:"offsetToData",type:"USHORT",value:0},{name:"countSizePairs",type:"USHORT",value:2},{name:"axisCount",type:"USHORT",value:e.axes.length},{name:"axisSize",type:"USHORT",value:20},{name:"instanceCount",type:"USHORT",value:e.instances.length},{name:"instanceSize",type:"USHORT",value:4+4*e.axes.length}]);r.offsetToData=r.sizeOf();for(var n=0;n<e.axes.length;n++)r.fields.push({name:"axis "+n,type:"TABLE",value:makeFvarAxis(e.axes[n],a)});for(var t=0;t<e.instances.length;t++)r.fields.push({name:"instance "+t,type:"TABLE",value:makeFvarInstance(e.instances[t],e.axes,a)});return r}function parseFvarTable(e,a,r){var n=new parse.Parser(e,a),t=n.parseULong();check.argument(65536===t,"Unsupported fvar table version.");var s=n.parseOffset16();n.skip("uShort",1);for(var u=n.parseUShort(),i=n.parseUShort(),p=n.parseUShort(),l=n.parseUShort(),v=[],o=0;u>o;o++)v.push(parseFvarAxis(e,a+s+o*i,r));for(var m=[],f=a+s+u*i,c=0;p>c;c++)m.push(parseFvarInstance(e,f+c*l,v,r));return{axes:v,instances:m}}var check=require("../check"),parse=require("../parse"),table=require("../table");exports.make=makeFvarTable,exports.parse=parseFvarTable;


},{"../check":2,"../parse":9,"../table":11}],15:[function(require,module,exports){
"use strict";function parseGlyphCoordinate(r,e,t,o,a){var n;return(e&o)>0?(n=r.parseByte(),0===(e&a)&&(n=-n),n=t+n):n=(e&a)>0?t:t+r.parseShort(),n}function parseGlyph(r,e,t){var o=new parse.Parser(e,t);r.numberOfContours=o.parseShort(),r.xMin=o.parseShort(),r.yMin=o.parseShort(),r.xMax=o.parseShort(),r.yMax=o.parseShort();var a,n;if(r.numberOfContours>0){var s,p=r.endPointIndices=[];for(s=0;s<r.numberOfContours;s+=1)p.push(o.parseUShort());for(r.instructionLength=o.parseUShort(),r.instructions=[],s=0;s<r.instructionLength;s+=1)r.instructions.push(o.parseByte());var u=p[p.length-1]+1;for(a=[],s=0;u>s;s+=1)if(n=o.parseByte(),a.push(n),(8&n)>0)for(var h=o.parseByte(),i=0;h>i;i+=1)a.push(n),s+=1;if(check.argument(a.length===u,"Bad flags."),p.length>0){var l,y=[];if(u>0){for(s=0;u>s;s+=1)n=a[s],l={},l.onCurve=!!(1&n),l.lastPointOfContour=p.indexOf(s)>=0,y.push(l);var c=0;for(s=0;u>s;s+=1)n=a[s],l=y[s],l.x=parseGlyphCoordinate(o,n,c,2,16),c=l.x;var f=0;for(s=0;u>s;s+=1)n=a[s],l=y[s],l.y=parseGlyphCoordinate(o,n,f,4,32),f=l.y}r.points=y}else r.points=[]}else if(0===r.numberOfContours)r.points=[];else{r.isComposite=!0,r.points=[],r.components=[];for(var v=!0;v;){a=o.parseUShort();var x={glyphIndex:o.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&a)>0?(x.dx=o.parseShort(),x.dy=o.parseShort()):(x.dx=o.parseChar(),x.dy=o.parseChar()),(8&a)>0?x.xScale=x.yScale=o.parseF2Dot14():(64&a)>0?(x.xScale=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()):(128&a)>0&&(x.xScale=o.parseF2Dot14(),x.scale01=o.parseF2Dot14(),x.scale10=o.parseF2Dot14(),x.yScale=o.parseF2Dot14()),r.components.push(x),v=!!(32&a)}}}function transformPoints(r,e){for(var t=[],o=0;o<r.length;o+=1){var a=r[o],n={x:e.xScale*a.x+e.scale01*a.y+e.dx,y:e.scale10*a.x+e.yScale*a.y+e.dy,onCurve:a.onCurve,lastPointOfContour:a.lastPointOfContour};t.push(n)}return t}function getContours(r){for(var e=[],t=[],o=0;o<r.length;o+=1){var a=r[o];t.push(a),a.lastPointOfContour&&(e.push(t),t=[])}return check.argument(0===t.length,"There are still points left in the current contour."),e}function getPath(r){var e=new path.Path;if(!r)return e;for(var t=getContours(r),o=0;o<t.length;o+=1){var a,n,s=t[o],p=s[0],u=s[s.length-1];p.onCurve?(a=null,n=!0):(p=u.onCurve?u:{x:(p.x+u.x)/2,y:(p.y+u.y)/2},a=p,n=!1),e.moveTo(p.x,p.y);for(var h=n?1:0;h<s.length;h+=1){var i=s[h],l=0===h?p:s[h-1];if(l.onCurve&&i.onCurve)e.lineTo(i.x,i.y);else if(l.onCurve&&!i.onCurve)a=i;else if(l.onCurve||i.onCurve){if(l.onCurve||!i.onCurve)throw new Error("Invalid state.");e.quadraticCurveTo(a.x,a.y,i.x,i.y),a=null}else{var y={x:(l.x+i.x)/2,y:(l.y+i.y)/2};e.quadraticCurveTo(l.x,l.y,y.x,y.y),a=i}}p!==u&&(a?e.quadraticCurveTo(a.x,a.y,p.x,p.y):e.lineTo(p.x,p.y))}return e.closePath(),e}function buildPath(r,e){if(e.isComposite)for(var t=0;t<e.components.length;t+=1){var o=e.components[t],a=r.get(o.glyphIndex);if(a.getPath(),a.points){var n=transformPoints(a.points,o);e.points=e.points.concat(n)}}return getPath(e.points)}function parseGlyfTable(r,e,t,o){var a,n=new glyphset.GlyphSet(o);for(a=0;a<t.length-1;a+=1){var s=t[a],p=t[a+1];s!==p?n.push(a,glyphset.ttfGlyphLoader(o,a,parseGlyph,r,e+s,buildPath)):n.push(a,glyphset.glyphLoader(o,a))}return n}var check=require("../check"),glyphset=require("../glyphset"),parse=require("../parse"),path=require("../path");exports.parse=parseGlyfTable;


},{"../check":2,"../glyphset":7,"../parse":9,"../path":10}],16:[function(require,module,exports){
"use strict";function parseTaggedListTable(r,e){for(var a=new parse.Parser(r,e),s=a.parseUShort(),t=[],o=0;s>o;o++)t[a.parseTag()]={offset:a.parseUShort()};return t}function parseCoverageTable(r,e){var a=new parse.Parser(r,e),s=a.parseUShort(),t=a.parseUShort();if(1===s)return a.parseUShortList(t);if(2===s){for(var o=[];t--;)for(var p=a.parseUShort(),n=a.parseUShort(),f=a.parseUShort(),i=p;n>=i;i++)o[f++]=i;return o}}function parseClassDefTable(r,e){var a=new parse.Parser(r,e),s=a.parseUShort();if(1===s){var t=a.parseUShort(),o=a.parseUShort(),p=a.parseUShortList(o);return function(r){return p[r-t]||0}}if(2===s){for(var n=a.parseUShort(),f=[],i=[],h=[],S=0;n>S;S++)f[S]=a.parseUShort(),i[S]=a.parseUShort(),h[S]=a.parseUShort();return function(r){for(var e=0,a=f.length-1;a>e;){var s=e+a+1>>1;r<f[s]?a=s-1:e=s}return f[e]<=r&&r<=i[e]?h[e]||0:0}}}function parsePairPosSubTable(r,e){var a,s,t=new parse.Parser(r,e),o=t.parseUShort(),p=t.parseUShort(),n=parseCoverageTable(r,e+p),f=t.parseUShort(),i=t.parseUShort();if(4===f&&0===i){var h={};if(1===o){for(var S=t.parseUShort(),u=[],v=t.parseOffset16List(S),U=0;S>U;U++){var l=v[U],g=h[l];if(!g){g={},t.relativeOffset=l;for(var T=t.parseUShort();T--;){var c=t.parseUShort();f&&(a=t.parseShort()),i&&(s=t.parseShort()),g[c]=a}}u[n[U]]=g}return function(r,e){var a=u[r];return a?a[e]:void 0}}if(2===o){for(var b=t.parseUShort(),P=t.parseUShort(),L=t.parseUShort(),k=t.parseUShort(),d=parseClassDefTable(r,e+b),w=parseClassDefTable(r,e+P),O=[],C=0;L>C;C++)for(var G=O[C]=[],K=0;k>K;K++)f&&(a=t.parseShort()),i&&(s=t.parseShort()),G[K]=a;var V={};for(C=0;C<n.length;C++)V[n[C]]=1;return function(r,e){if(V[r]){var a=d(r),s=w(e),t=O[a];return t?t[s]:void 0}}}}}function parseLookupTable(r,e){var a=new parse.Parser(r,e),s=a.parseUShort(),t=a.parseUShort(),o=16&t,p=a.parseUShort(),n=a.parseOffset16List(p),f={lookupType:s,lookupFlag:t,markFilteringSet:o?a.parseUShort():-1};if(2===s){for(var i=[],h=0;p>h;h++)i.push(parsePairPosSubTable(r,e+n[h]));f.getKerningValue=function(r,e){for(var a=i.length;a--;){var s=i[a](r,e);if(void 0!==s)return s}return 0}}return f}function parseGposTable(r,e,a){var s=new parse.Parser(r,e),t=s.parseFixed();check.argument(1===t,"Unsupported GPOS table version."),parseTaggedListTable(r,e+s.parseUShort()),parseTaggedListTable(r,e+s.parseUShort());var o=s.parseUShort();s.relativeOffset=o;for(var p=s.parseUShort(),n=s.parseOffset16List(p),f=e+o,i=0;p>i;i++){var h=parseLookupTable(r,f+n[i]);2!==h.lookupType||a.getGposKerningValue||(a.getGposKerningValue=h.getKerningValue)}}var check=require("../check"),parse=require("../parse");exports.parse=parseGposTable;


},{"../check":2,"../parse":9}],17:[function(require,module,exports){
"use strict";function parseHeadTable(e,a){var r={},t=new parse.Parser(e,a);return r.version=t.parseVersion(),r.fontRevision=Math.round(1e3*t.parseFixed())/1e3,r.checkSumAdjustment=t.parseULong(),r.magicNumber=t.parseULong(),check.argument(1594834165===r.magicNumber,"Font header has wrong magic number."),r.flags=t.parseUShort(),r.unitsPerEm=t.parseUShort(),r.created=t.parseLongDateTime(),r.modified=t.parseLongDateTime(),r.xMin=t.parseShort(),r.yMin=t.parseShort(),r.xMax=t.parseShort(),r.yMax=t.parseShort(),r.macStyle=t.parseUShort(),r.lowestRecPPEM=t.parseUShort(),r.fontDirectionHint=t.parseShort(),r.indexToLocFormat=t.parseShort(),r.glyphDataFormat=t.parseShort(),r}function makeHeadTable(e){return new table.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:0},{name:"modified",type:"LONGDATETIME",value:0},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}var check=require("../check"),parse=require("../parse"),table=require("../table");exports.parse=parseHeadTable,exports.make=makeHeadTable;


},{"../check":2,"../parse":9,"../table":11}],18:[function(require,module,exports){
"use strict";function parseHheaTable(e,a){var r={},t=new parse.Parser(e,a);return r.version=t.parseVersion(),r.ascender=t.parseShort(),r.descender=t.parseShort(),r.lineGap=t.parseShort(),r.advanceWidthMax=t.parseUShort(),r.minLeftSideBearing=t.parseShort(),r.minRightSideBearing=t.parseShort(),r.xMaxExtent=t.parseShort(),r.caretSlopeRise=t.parseShort(),r.caretSlopeRun=t.parseShort(),r.caretOffset=t.parseShort(),t.relativeOffset+=8,r.metricDataFormat=t.parseShort(),r.numberOfHMetrics=t.parseUShort(),r}function makeHheaTable(e){return new table.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}var parse=require("../parse"),table=require("../table");exports.parse=parseHheaTable,exports.make=makeHheaTable;


},{"../parse":9,"../table":11}],19:[function(require,module,exports){
"use strict";function parseHmtxTable(e,a,r,t,s){for(var i,l,n=new parse.Parser(e,a),p=0;t>p;p+=1){r>p&&(i=n.parseUShort(),l=n.parseShort());var d=s.get(p);d.advanceWidth=i,d.leftSideBearing=l}}function makeHmtxTable(e){for(var a=new table.Table("hmtx",[]),r=0;r<e.length;r+=1){var t=e.get(r),s=t.advanceWidth||0,i=t.leftSideBearing||0;a.fields.push({name:"advanceWidth_"+r,type:"USHORT",value:s}),a.fields.push({name:"leftSideBearing_"+r,type:"SHORT",value:i})}return a}var parse=require("../parse"),table=require("../table");exports.parse=parseHmtxTable,exports.make=makeHmtxTable;


},{"../parse":9,"../table":11}],20:[function(require,module,exports){
"use strict";function parseKernTable(r,e){var a={},s=new parse.Parser(r,e),p=s.parseUShort();check.argument(0===p,"Unsupported kern table version."),s.skip("uShort",1);var t=s.parseUShort();check.argument(0===t,"Unsupported kern sub-table version."),s.skip("uShort",2);var o=s.parseUShort();s.skip("uShort",3);for(var n=0;o>n;n+=1){var h=s.parseUShort(),u=s.parseUShort(),c=s.parseShort();a[h+","+u]=c}return a}var check=require("../check"),parse=require("../parse");exports.parse=parseKernTable;


},{"../check":2,"../parse":9}],21:[function(require,module,exports){
"use strict";function parseLocaTable(r,a,e,s){for(var p=new parse.Parser(r,a),o=s?p.parseUShort:p.parseULong,t=[],c=0;e+1>c;c+=1){var n=o.call(p);s&&(n*=2),t.push(n)}return t}var parse=require("../parse");exports.parse=parseLocaTable;


},{"../parse":9}],22:[function(require,module,exports){
"use strict";function makeLtagTable(e){for(var a=new table.Table("ltag",[{name:"version",type:"ULONG",value:1},{name:"flags",type:"ULONG",value:0},{name:"numTags",type:"ULONG",value:e.length}]),r="",t=12+4*e.length,n=0;n<e.length;++n){var s=r.indexOf(e[n]);0>s&&(s=r.length,r+=e[n]),a.fields.push({name:"offset "+n,type:"USHORT",value:t+s}),a.fields.push({name:"length "+n,type:"USHORT",value:e[n].length})}return a.fields.push({name:"stringPool",type:"CHARARRAY",value:r}),a}function parseLtagTable(e,a){var r=new parse.Parser(e,a),t=r.parseULong();check.argument(1===t,"Unsupported ltag table version."),r.skip("uLong",1);for(var n=r.parseULong(),s=[],l=0;n>l;l++){for(var p="",u=a+r.parseUShort(),g=r.parseUShort(),o=u;u+g>o;++o)p+=String.fromCharCode(e.getInt8(o));s.push(p)}return s}var check=require("../check"),parse=require("../parse"),table=require("../table");exports.make=makeLtagTable,exports.parse=parseLtagTable;


},{"../check":2,"../parse":9,"../table":11}],23:[function(require,module,exports){
"use strict";function parseMaxpTable(e,a){var r={},s=new parse.Parser(e,a);return r.version=s.parseVersion(),r.numGlyphs=s.parseUShort(),1===r.version&&(r.maxPoints=s.parseUShort(),r.maxContours=s.parseUShort(),r.maxCompositePoints=s.parseUShort(),r.maxCompositeContours=s.parseUShort(),r.maxZones=s.parseUShort(),r.maxTwilightPoints=s.parseUShort(),r.maxStorage=s.parseUShort(),r.maxFunctionDefs=s.parseUShort(),r.maxInstructionDefs=s.parseUShort(),r.maxStackElements=s.parseUShort(),r.maxSizeOfInstructions=s.parseUShort(),r.maxComponentElements=s.parseUShort(),r.maxComponentDepth=s.parseUShort()),r}function makeMaxpTable(e){return new table.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}var parse=require("../parse"),table=require("../table");exports.parse=parseMaxpTable,exports.make=makeMaxpTable;


},{"../parse":9,"../table":11}],24:[function(require,module,exports){
"use strict";function getLanguageCode(e,a,r){switch(e){case 0:if(65535===a)return"und";if(r)return r[a];break;case 1:return macLanguages[a];case 3:return windowsLanguages[a]}return void 0}function getEncoding(e,a,r){switch(e){case 0:return utf16;case 1:return macLanguageEncodings[r]||macScriptEncodings[a];case 3:if(1===a||10===a)return utf16}return void 0}function parseNameTable(e,a,r){for(var n={},t=new parse.Parser(e,a),s=t.parseUShort(),m=t.parseUShort(),c=t.offset+t.parseUShort(),i=0;m>i;i++){var o=t.parseUShort(),u=t.parseUShort(),l=t.parseUShort(),g=t.parseUShort(),d=nameTableNames[g]||g,f=t.parseUShort(),p=t.parseUShort(),h=getLanguageCode(o,l,r),v=getEncoding(o,u,l);if(void 0!==v&&void 0!==h){var x;if(x=v===utf16?decode.UTF16(e,c+p,f):decode.MACSTRING(e,c+p,f,v)){var y=n[d];void 0===y&&(y=n[d]={}),y[h]=x}}}var b=0;return 1===s&&(b=t.parseUShort()),n}function reverseDict(e){var a={};for(var r in e)a[e[r]]=parseInt(r);return a}function makeNameRecord(e,a,r,n,t,s){return new table.Table("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:a},{name:"languageID",type:"USHORT",value:r},{name:"nameID",type:"USHORT",value:n},{name:"length",type:"USHORT",value:t},{name:"offset",type:"USHORT",value:s}])}function findSubArray(e,a){var r=e.length,n=a.length-r+1;e:for(var t=0;n>t;t++)for(;n>t;t++){for(var s=0;r>s;s++)if(a[t+s]!==e[s])continue e;return t}return-1}function addStringToPool(e,a){var r=findSubArray(e,a);if(0>r){r=a.length;for(var n=0,t=e.length;t>n;++n)a.push(e[n])}return r}function makeNameTable(e,a){var r,n=[],t={},s=reverseDict(nameTableNames);for(var m in e){var c=s[m];void 0===c&&(c=m),r=parseInt(c),t[r]=e[m],n.push(r)}for(var i=reverseDict(macLanguages),o=reverseDict(windowsLanguages),u=[],l=[],g=0;g<n.length;g++){r=n[g];var d=t[r];for(var f in d){var p=d[f],h=1,v=i[f],x=macLanguageToScript[v],y=getEncoding(h,x,v),b=encode.MACSTRING(p,y);void 0===b&&(h=0,v=a.indexOf(f),0>v&&(v=a.length,a.push(f)),x=4,b=encode.UTF16(p));var k=addStringToPool(b,l);u.push(makeNameRecord(h,x,v,r,b.length,k));var S=o[f];if(void 0!==S){var T=encode.UTF16(p),U=addStringToPool(T,l);u.push(makeNameRecord(3,1,S,r,T.length,U))}}}u.sort(function(e,a){return e.platformID-a.platformID||e.encodingID-a.encodingID||e.languageID-a.languageID||e.nameID-a.nameID});for(var L=new table.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:u.length},{name:"stringOffset",type:"USHORT",value:6+12*u.length}]),N=0;N<u.length;N++)L.fields.push({name:"record_"+N,type:"TABLE",value:u[N]});return L.fields.push({name:"strings",type:"LITERAL",value:l}),L}var types=require("../types"),decode=types.decode,encode=types.encode,parse=require("../parse"),table=require("../table"),nameTableNames=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","license","licenseURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"],macLanguages={0:"en",1:"fr",2:"de",3:"it",4:"nl",5:"sv",6:"es",7:"da",8:"pt",9:"no",10:"he",11:"ja",12:"ar",13:"fi",14:"el",15:"is",16:"mt",17:"tr",18:"hr",19:"zh-Hant",20:"ur",21:"hi",22:"th",23:"ko",24:"lt",25:"pl",26:"hu",27:"es",28:"lv",29:"se",30:"fo",31:"fa",32:"ru",33:"zh",34:"nl-BE",35:"ga",36:"sq",37:"ro",38:"cz",39:"sk",40:"si",41:"yi",42:"sr",43:"mk",44:"bg",45:"uk",46:"be",47:"uz",48:"kk",49:"az-Cyrl",50:"az-Arab",51:"hy",52:"ka",53:"mo",54:"ky",55:"tg",56:"tk",57:"mn-CN",58:"mn",59:"ps",60:"ks",61:"ku",62:"sd",63:"bo",64:"ne",65:"sa",66:"mr",67:"bn",68:"as",69:"gu",70:"pa",71:"or",72:"ml",73:"kn",74:"ta",75:"te",76:"si",77:"my",78:"km",79:"lo",80:"vi",81:"id",82:"tl",83:"ms",84:"ms-Arab",85:"am",86:"ti",87:"om",88:"so",89:"sw",90:"rw",91:"rn",92:"ny",93:"mg",94:"eo",128:"cy",129:"eu",130:"ca",131:"la",132:"qu",133:"gn",134:"ay",135:"tt",136:"ug",137:"dz",138:"jv",139:"su",140:"gl",141:"af",142:"br",143:"iu",144:"gd",145:"gv",146:"ga",147:"to",148:"el-polyton",149:"kl",150:"az",151:"nn"},macLanguageToScript={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:5,11:1,12:4,13:0,14:6,15:0,16:0,17:0,18:0,19:2,20:4,21:9,22:21,23:3,24:29,25:29,26:29,27:29,28:29,29:0,30:0,31:4,32:7,33:25,34:0,35:0,36:0,37:0,38:29,39:29,40:0,41:5,42:7,43:7,44:7,45:7,46:7,47:7,48:7,49:7,50:4,51:24,52:23,53:7,54:7,55:7,56:7,57:27,58:7,59:4,60:4,61:4,62:4,63:26,64:9,65:9,66:9,67:13,68:13,69:11,70:10,71:12,72:17,73:16,74:14,75:15,76:18,77:19,78:20,79:22,80:30,81:0,82:0,83:0,84:4,85:28,86:28,87:28,88:0,89:0,90:0,91:0,92:0,93:0,94:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:7,136:4,137:26,138:0,139:0,140:0,141:0,142:0,143:28,144:0,145:0,146:0,147:0,148:6,149:0,150:0,151:0},windowsLanguages={1078:"af",1052:"sq",1156:"gsw",1118:"am",5121:"ar-DZ",15361:"ar-BH",3073:"ar",2049:"ar-IQ",11265:"ar-JO",13313:"ar-KW",12289:"ar-LB",4097:"ar-LY",6145:"ary",8193:"ar-OM",16385:"ar-QA",1025:"ar-SA",10241:"ar-SY",7169:"aeb",14337:"ar-AE",9217:"ar-YE",1067:"hy",1101:"as",2092:"az-Cyrl",1068:"az",1133:"ba",1069:"eu",1059:"be",2117:"bn",1093:"bn-IN",8218:"bs-Cyrl",5146:"bs",1150:"br",1026:"bg",1027:"ca",3076:"zh-HK",5124:"zh-MO",2052:"zh",4100:"zh-SG",1028:"zh-TW",1155:"co",1050:"hr",4122:"hr-BA",1029:"cs",1030:"da",1164:"prs",1125:"dv",2067:"nl-BE",1043:"nl",3081:"en-AU",10249:"en-BZ",4105:"en-CA",9225:"en-029",16393:"en-IN",6153:"en-IE",8201:"en-JM",17417:"en-MY",5129:"en-NZ",13321:"en-PH",18441:"en-SG",7177:"en-ZA",11273:"en-TT",2057:"en-GB",1033:"en",12297:"en-ZW",1061:"et",1080:"fo",1124:"fil",1035:"fi",2060:"fr-BE",3084:"fr-CA",1036:"fr",5132:"fr-LU",6156:"fr-MC",4108:"fr-CH",1122:"fy",1110:"gl",1079:"ka",3079:"de-AT",1031:"de",5127:"de-LI",4103:"de-LU",2055:"de-CH",1032:"el",1135:"kl",1095:"gu",1128:"ha",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig",1057:"id",1117:"iu",2141:"iu-Latn",2108:"ga",1076:"xh",1077:"zu",1040:"it",2064:"it-CH",1041:"ja",1099:"kn",1087:"kk",1107:"km",1158:"quc",1159:"rw",1089:"sw",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1062:"lv",1063:"lt",2094:"dsb",1134:"lb",1071:"mk",2110:"ms-BN",1086:"ms",1100:"ml",1082:"mt",1153:"mi",1146:"arn",1102:"mr",1148:"moh",1104:"mn",2128:"mn-CN",1121:"ne",1044:"nb",2068:"nn",1154:"oc",1096:"or",1123:"ps",1045:"pl",1046:"pt",2070:"pt-PT",1094:"pa",1131:"qu-BO",2155:"qu-EC",3179:"qu",1048:"ro",1047:"rm",1049:"ru",9275:"smn",4155:"smj-NO",5179:"smj",3131:"se-FI",1083:"se",2107:"se-SE",8251:"sms",6203:"sma-NO",7227:"sms",1103:"sa",7194:"sr-Cyrl-BA",3098:"sr",6170:"sr-Latn-BA",2074:"sr-Latn",1132:"nso",1074:"tn",1115:"si",1051:"sk",1060:"sl",11274:"es-AR",16394:"es-BO",13322:"es-CL",9226:"es-CO",5130:"es-CR",7178:"es-DO",12298:"es-EC",17418:"es-SV",4106:"es-GT",18442:"es-HN",2058:"es-MX",19466:"es-NI",6154:"es-PA",15370:"es-PY",10250:"es-PE",20490:"es-PR",3082:"es",1034:"es",21514:"es-US",14346:"es-UY",8202:"es-VE",2077:"sv-FI",1053:"sv",1114:"syr",1064:"tg",2143:"tzm",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1055:"tr",1090:"tk",1152:"ug",1058:"uk",1070:"hsb",1056:"ur",2115:"uz-Cyrl",1091:"uz",1066:"vi",1106:"cy",1160:"wo",1157:"sah",1144:"ii",1130:"yo"},utf16="utf-16",macScriptEncodings={0:"macintosh",1:"x-mac-japanese",2:"x-mac-chinesetrad",3:"x-mac-korean",6:"x-mac-greek",7:"x-mac-cyrillic",9:"x-mac-devanagai",10:"x-mac-gurmukhi",11:"x-mac-gujarati",12:"x-mac-oriya",13:"x-mac-bengali",14:"x-mac-tamil",15:"x-mac-telugu",16:"x-mac-kannada",17:"x-mac-malayalam",18:"x-mac-sinhalese",19:"x-mac-burmese",20:"x-mac-khmer",21:"x-mac-thai",22:"x-mac-lao",23:"x-mac-georgian",24:"x-mac-armenian",25:"x-mac-chinesesimp",26:"x-mac-tibetan",27:"x-mac-mongolian",28:"x-mac-ethiopic",29:"x-mac-ce",30:"x-mac-vietnamese",31:"x-mac-extarabic"},macLanguageEncodings={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"};exports.parse=parseNameTable,exports.make=makeNameTable;


},{"../parse":9,"../table":11,"../types":28}],25:[function(require,module,exports){
"use strict";function getUnicodeRange(e){for(var n=0;n<unicodeRanges.length;n+=1){var a=unicodeRanges[n];if(e>=a.begin&&e<a.end)return n}return-1}function parseOS2Table(e,n){var a={},i=new parse.Parser(e,n);a.version=i.parseUShort(),a.xAvgCharWidth=i.parseShort(),a.usWeightClass=i.parseUShort(),a.usWidthClass=i.parseUShort(),a.fsType=i.parseUShort(),a.ySubscriptXSize=i.parseShort(),a.ySubscriptYSize=i.parseShort(),a.ySubscriptXOffset=i.parseShort(),a.ySubscriptYOffset=i.parseShort(),a.ySuperscriptXSize=i.parseShort(),a.ySuperscriptYSize=i.parseShort(),a.ySuperscriptXOffset=i.parseShort(),a.ySuperscriptYOffset=i.parseShort(),a.yStrikeoutSize=i.parseShort(),a.yStrikeoutPosition=i.parseShort(),a.sFamilyClass=i.parseShort(),a.panose=[];for(var t=0;10>t;t++)a.panose[t]=i.parseByte();return a.ulUnicodeRange1=i.parseULong(),a.ulUnicodeRange2=i.parseULong(),a.ulUnicodeRange3=i.parseULong(),a.ulUnicodeRange4=i.parseULong(),a.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),a.fsSelection=i.parseUShort(),a.usFirstCharIndex=i.parseUShort(),a.usLastCharIndex=i.parseUShort(),a.sTypoAscender=i.parseShort(),a.sTypoDescender=i.parseShort(),a.sTypoLineGap=i.parseShort(),a.usWinAscent=i.parseUShort(),a.usWinDescent=i.parseUShort(),a.version>=1&&(a.ulCodePageRange1=i.parseULong(),a.ulCodePageRange2=i.parseULong()),a.version>=2&&(a.sxHeight=i.parseShort(),a.sCapHeight=i.parseShort(),a.usDefaultChar=i.parseUShort(),a.usBreakChar=i.parseUShort(),a.usMaxContent=i.parseUShort()),a}function makeOS2Table(e){return new table.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)}var parse=require("../parse"),table=require("../table"),unicodeRanges=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];exports.unicodeRanges=unicodeRanges,exports.getUnicodeRange=getUnicodeRange,exports.parse=parseOS2Table,exports.make=makeOS2Table;


},{"../parse":9,"../table":11}],26:[function(require,module,exports){
"use strict";function parsePostTable(e,a){var r,n={},s=new parse.Parser(e,a);switch(n.version=s.parseVersion(),n.italicAngle=s.parseFixed(),n.underlinePosition=s.parseShort(),n.underlineThickness=s.parseShort(),n.isFixedPitch=s.parseULong(),n.minMemType42=s.parseULong(),n.maxMemType42=s.parseULong(),n.minMemType1=s.parseULong(),n.maxMemType1=s.parseULong(),n.version){case 1:n.names=encoding.standardNames.slice();break;case 2:for(n.numberOfGlyphs=s.parseUShort(),n.glyphNameIndex=new Array(n.numberOfGlyphs),r=0;r<n.numberOfGlyphs;r++)n.glyphNameIndex[r]=s.parseUShort();for(n.names=[],r=0;r<n.numberOfGlyphs;r++)if(n.glyphNameIndex[r]>=encoding.standardNames.length){var p=s.parseChar();n.names.push(s.parseString(p))}break;case 2.5:for(n.numberOfGlyphs=s.parseUShort(),n.offset=new Array(n.numberOfGlyphs),r=0;r<n.numberOfGlyphs;r++)n.offset[r]=s.parseChar()}return n}function makePostTable(){return new table.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}var encoding=require("../encoding"),parse=require("../parse"),table=require("../table");exports.parse=parsePostTable,exports.make=makePostTable;


},{"../encoding":4,"../parse":9,"../table":11}],27:[function(require,module,exports){
"use strict";function log2(e){return Math.log(e)/Math.log(2)|0}function computeCheckSum(e){for(;e.length%4!==0;)e.push(0);for(var a=0,n=0;n<e.length;n+=4)a+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return a%=Math.pow(2,32)}function makeTableRecord(e,a,n,t){return new table.Table("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==a?a:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==t?t:0}])}function makeSfntTable(e){var a=new table.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);a.tables=e,a.numTables=e.length;var n=Math.pow(2,log2(a.numTables));a.searchRange=16*n,a.entrySelector=log2(n),a.rangeShift=16*a.numTables-a.searchRange;for(var t=[],r=[],i=a.sizeOf()+makeTableRecord().sizeOf()*a.numTables;i%4!==0;)i+=1,r.push({name:"padding",type:"BYTE",value:0});for(var l=0;l<e.length;l+=1){var s=e[l];check.argument(4===s.tableName.length,"Table name"+s.tableName+" is invalid.");var u=s.sizeOf(),h=makeTableRecord(s.tableName,computeCheckSum(s.encode()),i,u);for(t.push({name:h.tag+" Table Record",type:"TABLE",value:h}),r.push({name:s.tableName+" table",type:"TABLE",value:s}),i+=u,check.argument(!isNaN(i),"Something went wrong calculating the offset.");i%4!==0;)i+=1,r.push({name:"padding",type:"BYTE",value:0})}return t.sort(function(e,a){return e.value.tag>a.value.tag?1:-1}),a.fields=a.fields.concat(t),a.fields=a.fields.concat(r),a}function metricsForChar(e,a,n){for(var t=0;t<a.length;t+=1){var r=e.charToGlyphIndex(a[t]);if(r>0){var i=e.glyphs.get(r);return i.getMetrics()}}return n}function average(e){for(var a=0,n=0;n<e.length;n+=1)a+=e[n];return a/e.length}function fontToSfntTable(e){for(var a,n=[],t=[],r=[],i=[],l=[],s=[],u=[],h=0,m=0,o=0,c=0,d=0,g=0;g<e.glyphs.length;g+=1){var p=e.glyphs.get(g),f=0|p.unicode;(a>f||null===a)&&(a=f),f>h&&(h=f);var v=os2.getUnicodeRange(f);if(32>v)m|=1<<v;else if(64>v)o|=1<<v-32;else if(96>v)c|=1<<v-64;else{if(!(123>v))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");d|=1<<v-96}if(".notdef"!==p.name){var y=p.getMetrics();n.push(y.xMin),t.push(y.yMin),r.push(y.xMax),i.push(y.yMax),s.push(y.leftSideBearing),u.push(y.rightSideBearing),l.push(p.advanceWidth)}}var x={xMin:Math.min.apply(null,n),yMin:Math.min.apply(null,t),xMax:Math.max.apply(null,r),yMax:Math.max.apply(null,i),advanceWidthMax:Math.max.apply(null,l),advanceWidthAvg:average(l),minLeftSideBearing:Math.min.apply(null,s),maxLeftSideBearing:Math.max.apply(null,s),minRightSideBearing:Math.min.apply(null,u)};x.ascender=void 0!==e.ascender?e.ascender:x.yMax,x.descender=void 0!==e.descender?e.descender:x.yMin;var M=head.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:x.xMin,yMin:x.yMin,xMax:x.xMax,yMax:x.yMax,lowestRecPPEM:3}),S=hhea.make({ascender:x.ascender,descender:x.descender,advanceWidthMax:x.advanceWidthMax,minLeftSideBearing:x.minLeftSideBearing,minRightSideBearing:x.minRightSideBearing,xMaxExtent:x.maxLeftSideBearing+(x.xMax-x.xMin),numberOfHMetrics:e.glyphs.length}),b=maxp.make(e.glyphs.length),T=os2.make({xAvgCharWidth:Math.round(x.advanceWidthAvg),usWeightClass:500,usWidthClass:5,usFirstCharIndex:a,usLastCharIndex:h,ulUnicodeRange1:m,ulUnicodeRange2:o,ulUnicodeRange3:c,ulUnicodeRange4:d,fsSelection:64,sTypoAscender:x.ascender,sTypoDescender:x.descender,sTypoLineGap:0,usWinAscent:x.yMax,usWinDescent:Math.abs(x.yMin),ulCodePageRange1:1,sxHeight:metricsForChar(e,"xyvw",{yMax:Math.round(x.ascender/2)}).yMax,sCapHeight:metricsForChar(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",x).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0}),k=hmtx.make(e.glyphs),R=cmap.make(e.glyphs),N=e.getEnglishName("fontFamily"),C=e.getEnglishName("fontSubfamily"),B=N+" "+C,E=e.getEnglishName("postScriptName");E||(E=N.replace(/\s/g,"")+"-"+C);var q={};for(var w in e.names)q[w]=e.names[w];q.uniqueID||(q.uniqueID={en:e.getEnglishName("manufacturer")+":"+B}),q.postScriptName||(q.postScriptName={en:E}),q.preferredFamily||(q.preferredFamily=e.names.fontFamily),q.preferredSubfamily||(q.preferredSubfamily=e.names.fontSubfamily);var O=[],U=_name.make(q,O),L=O.length>0?ltag.make(O):void 0,W=post.make(),A=cff.make(e.glyphs,{version:e.getEnglishName("version"),fullName:B,familyName:N,weightName:C,postScriptName:E,unitsPerEm:e.unitsPerEm,fontBBox:[0,x.yMin,x.ascender,x.advanceWidthMax]}),F=[M,S,b,T,U,R,W,A,k];L&&F.push(L);var G=makeSfntTable(F),H=G.encode(),P=computeCheckSum(H),D=G.fields,I=!1;for(g=0;g<D.length;g+=1)if("head table"===D[g].name){D[g].value.checkSumAdjustment=2981146554-P,I=!0;break}if(!I)throw new Error("Could not find head table with checkSum to adjust.");return G}var check=require("../check"),table=require("../table"),cmap=require("./cmap"),cff=require("./cff"),head=require("./head"),hhea=require("./hhea"),hmtx=require("./hmtx"),ltag=require("./ltag"),maxp=require("./maxp"),_name=require("./name"),os2=require("./os2"),post=require("./post");exports.computeCheckSum=computeCheckSum,exports.make=makeSfntTable,exports.fontToTable=fontToSfntTable;


},{"../check":2,"../table":11,"./cff":12,"./cmap":13,"./head":17,"./hhea":18,"./hmtx":19,"./ltag":22,"./maxp":23,"./name":24,"./os2":25,"./post":26}],28:[function(require,module,exports){
"use strict";function constant(e){return function(){return e}}var check=require("./check"),LIMIT16=32768,LIMIT32=2147483648,decode={},encode={},sizeOf={};encode.BYTE=function(e){return check.argument(e>=0&&255>=e,"Byte value should be between 0 and 255."),[e]},sizeOf.BYTE=constant(1),encode.CHAR=function(e){return[e.charCodeAt(0)]},sizeOf.CHAR=constant(1),encode.CHARARRAY=function(e){for(var n=[],o=0;o<e.length;o+=1)n.push(e.charCodeAt(o));return n},sizeOf.CHARARRAY=function(e){return e.length},encode.USHORT=function(e){return[e>>8&255,255&e]},sizeOf.USHORT=constant(2),encode.SHORT=function(e){return e>=LIMIT16&&(e=-(2*LIMIT16-e)),[e>>8&255,255&e]},sizeOf.SHORT=constant(2),encode.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},sizeOf.UINT24=constant(3),encode.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},sizeOf.ULONG=constant(4),encode.LONG=function(e){return e>=LIMIT32&&(e=-(2*LIMIT32-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},sizeOf.LONG=constant(4),encode.FIXED=encode.ULONG,sizeOf.FIXED=sizeOf.ULONG,encode.FWORD=encode.SHORT,sizeOf.FWORD=sizeOf.SHORT,encode.UFWORD=encode.USHORT,sizeOf.UFWORD=sizeOf.USHORT,encode.LONGDATETIME=function(){return[0,0,0,0,0,0,0,0]},sizeOf.LONGDATETIME=constant(8),encode.TAG=function(e){return check.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},sizeOf.TAG=constant(4),encode.Card8=encode.BYTE,sizeOf.Card8=sizeOf.BYTE,encode.Card16=encode.USHORT,sizeOf.Card16=sizeOf.USHORT,encode.OffSize=encode.BYTE,sizeOf.OffSize=sizeOf.BYTE,encode.SID=encode.USHORT,sizeOf.SID=sizeOf.USHORT,encode.NUMBER=function(e){return e>=-107&&107>=e?[e+139]:e>=108&&1131>=e?(e-=108,[(e>>8)+247,255&e]):e>=-1131&&-108>=e?(e=-e-108,[(e>>8)+251,255&e]):e>=-32768&&32767>=e?encode.NUMBER16(e):encode.NUMBER32(e)},sizeOf.NUMBER=function(e){return encode.NUMBER(e).length},encode.NUMBER16=function(e){return[28,e>>8&255,255&e]},sizeOf.NUMBER16=constant(3),encode.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},sizeOf.NUMBER32=constant(5),encode.REAL=function(e){var n=e.toString(),o=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(n);if(o){var c=parseFloat("1e"+((o[2]?+o[2]:0)+o[1].length));n=(Math.round(e*c)/c).toString()}var t,r,i="";for(t=0,r=n.length;r>t;t+=1){var a=n[t];i+="e"===a?"-"===n[++t]?"c":"b":"."===a?"a":"-"===a?"e":a}i+=1&i.length?"f":"ff";var f=[30];for(t=0,r=i.length;r>t;t+=2)f.push(parseInt(i.substr(t,2),16));return f},sizeOf.REAL=function(e){return encode.REAL(e).length},encode.NAME=encode.CHARARRAY,sizeOf.NAME=sizeOf.CHARARRAY,encode.STRING=encode.CHARARRAY,sizeOf.STRING=sizeOf.CHARARRAY,decode.UTF16=function(e,n,o){for(var c=[],t=o/2,r=0;t>r;r++,n+=2)c[r]=e.getUint16(n);return String.fromCharCode.apply(null,c)},encode.UTF16=function(e){for(var n=[],o=0;o<e.length;o+=1){var c=e.charCodeAt(o);n.push(c>>8&255),n.push(255&c)}return n},sizeOf.UTF16=function(e){return 2*e.length};var eightBitMacEncodings={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};decode.MACSTRING=function(e,n,o,c){var t=eightBitMacEncodings[c];if(void 0===t)return void 0;for(var r="",i=0;o>i;i++){var a=e.getUint8(n+i);r+=127>=a?String.fromCharCode(a):t[127&a]}return r};var macEncodingTableCache="function"==typeof WeakMap&&new WeakMap,macEncodingCacheKeys,getMacEncodingTable=function(e){if(!macEncodingCacheKeys){macEncodingCacheKeys={};for(var n in eightBitMacEncodings)macEncodingCacheKeys[n]=new String(n)}var o=macEncodingCacheKeys[e];if(void 0===o)return void 0;if(macEncodingTableCache){var c=macEncodingTableCache.get(o);if(void 0!==c)return c}var t=eightBitMacEncodings[e];if(void 0===t)return void 0;for(var r={},i=0;i<t.length;i++)r[t.charCodeAt(i)]=i+128;return macEncodingTableCache&&macEncodingTableCache.set(o,r),r};encode.MACSTRING=function(e,n){var o=getMacEncodingTable(n);if(void 0===o)return void 0;for(var c=[],t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r>=128&&(r=o[r],void 0===r))return void 0;c.push(r)}return c},sizeOf.MACSTRING=function(e,n){var o=encode.MACSTRING(e,n);return void 0!==o?o.length:0},encode.INDEX=function(e){var n,o=1,c=[o],t=[],r=0;for(n=0;n<e.length;n+=1){var i=encode.OBJECT(e[n]);Array.prototype.push.apply(t,i),r+=i.length,o+=i.length,c.push(o)}if(0===t.length)return[0,0];var a=[],f=1+Math.floor(Math.log(r)/Math.log(2))/8|0,d=[void 0,encode.BYTE,encode.USHORT,encode.UINT24,encode.ULONG][f];for(n=0;n<c.length;n+=1){var u=d(c[n]);Array.prototype.push.apply(a,u)}return Array.prototype.concat(encode.Card16(e.length),encode.OffSize(f),a,t)},sizeOf.INDEX=function(e){return encode.INDEX(e).length},encode.DICT=function(e){for(var n=[],o=Object.keys(e),c=o.length,t=0;c>t;t+=1){var r=parseInt(o[t],0),i=e[r];n=n.concat(encode.OPERAND(i.value,i.type)),n=n.concat(encode.OPERATOR(r))}return n},sizeOf.DICT=function(e){return encode.DICT(e).length},encode.OPERATOR=function(e){return 1200>e?[e]:[12,e-1200]},encode.OPERAND=function(e,n){var o=[];if(Array.isArray(n))for(var c=0;c<n.length;c+=1)check.argument(e.length===n.length,"Not enough arguments given for type"+n),o=o.concat(encode.OPERAND(e[c],n[c]));else if("SID"===n)o=o.concat(encode.NUMBER(e));else if("offset"===n)o=o.concat(encode.NUMBER32(e));else if("number"===n)o=o.concat(encode.NUMBER(e));else{if("real"!==n)throw new Error("Unknown operand type "+n);o=o.concat(encode.REAL(e))}return o},encode.OP=encode.BYTE,sizeOf.OP=sizeOf.BYTE;var wmm="function"==typeof WeakMap&&new WeakMap;encode.CHARSTRING=function(e){if(wmm){var n=wmm.get(e);if(void 0!==n)return n}for(var o=[],c=e.length,t=0;c>t;t+=1){var r=e[t];o=o.concat(encode[r.type](r.value))}return wmm&&wmm.set(e,o),o},sizeOf.CHARSTRING=function(e){return encode.CHARSTRING(e).length},encode.OBJECT=function(e){var n=encode[e.type];return check.argument(void 0!==n,"No encoding function for type "+e.type),n(e.value)},sizeOf.OBJECT=function(e){var n=sizeOf[e.type];return check.argument(void 0!==n,"No sizeOf function for type "+e.type),n(e.value)},encode.TABLE=function(e){for(var n=[],o=e.fields.length,c=0;o>c;c+=1){var t=e.fields[c],r=encode[t.type];check.argument(void 0!==r,"No encoding function for field type "+t.type);var i=e[t.name];void 0===i&&(i=t.value);var a=r(i);n=n.concat(a)}return n},sizeOf.TABLE=function(e){for(var n=0,o=e.fields.length,c=0;o>c;c+=1){var t=e.fields[c],r=sizeOf[t.type];check.argument(void 0!==r,"No sizeOf function for field type "+t.type);var i=e[t.name];void 0===i&&(i=t.value),n+=r(i)}return n},encode.LITERAL=function(e){return e},sizeOf.LITERAL=function(e){return e.length},exports.decode=decode,exports.encode=encode,exports.sizeOf=sizeOf;


},{"./check":2}],29:[function(require,module,exports){
"use strict";exports.isBrowser=function(){return"undefined"!=typeof window},exports.isNode=function(){return"undefined"==typeof window},exports.nodeBufferToArrayBuffer=function(r){for(var e=new ArrayBuffer(r.length),n=new Uint8Array(e),t=0;t<r.length;++t)n[t]=r[t];return e},exports.arrayBufferToNodeBuffer=function(r){for(var e=new Buffer(r.byteLength),n=new Uint8Array(r),t=0;t<e.length;++t)e[t]=n[t];return e},exports.checkArgument=function(r,e){if(!r)throw e};


},{}]},{},[8])(8)
});;
!function(e){function f(e){this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var a={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var r in a)e==r&&(e=a[r]);for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],d=0;d<t.length;d++){var n=t[d].re,i=t[d].process,l=n.exec(e);l&&(channels=i(l),this.r=channels[0],this.g=channels[1],this.b=channels[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),f=this.g.toString(16),a=this.b.toString(16);return 1==e.length&&(e="0"+e),1==f.length&&(f="0"+f),1==a.length&&(a="0"+a),"#"+e+f+a},this.getHelpXML=function(){for(var e=new Array,r=0;r<t.length;r++)for(var d=t[r].example,n=0;n<d.length;n++)e[e.length]=d[n];for(var i in a)e[e.length]=i;var l=document.createElement("ul");l.setAttribute("id","rgbcolor-examples");for(var r=0;r<e.length;r++)try{var o=document.createElement("li"),s=new f(e[r]),c=document.createElement("div");c.style.cssText="margin: 3px; "+"border: 1px solid black; "+"background:"+s.toHex()+"; "+"color:"+s.toHex(),c.appendChild(document.createTextNode("test"));var b=document.createTextNode(" "+e[r]+" -> "+s.toRGB()+" -> "+s.toHex());o.appendChild(c),o.appendChild(b),l.appendChild(o)}catch(e){}return l}}"undefined"!=typeof define&&define.amd?define(function(){return f}):"undefined"!=typeof module&&module.exports&&(module.exports=f),e.RGBColor=f}("undefined"!=typeof window?window:this);;
!function(e){function t(e){for(var t=e.data,a=e.width*e.height*4,r=0;r<a;r+=4){var n=t[r+3]/255;t[r]*=n,t[r+1]*=n,t[r+2]*=n}}function a(e){for(var t=e.data,a=e.width*e.height*4,r=0;r<a;r+=4){var n=t[r+3];0!=n&&(n=255/n,t[r]*=n,t[r+1]*=n,t[r+2]*=n)}}function r(e,t,a,r){var i=document.getElementById(e),g=i.naturalWidth,c=i.naturalHeight,l=document.getElementById(t);l.style.width=g+"px",l.style.height=c+"px",l.width=g,l.height=c;var d=l.getContext("2d");if(d.clearRect(0,0,g,c),d.drawImage(i,0,0),isNaN(a)||a<1)return;r?n(t,0,0,g,c,a):o(t,0,0,g,c,a)}function n(e,r,n,o,l,d){if(isNaN(d)||d<1)return;d|=0;var f=document.getElementById(e),s=f.getContext("2d"),u;try{try{u=s.getImageData(r,n,o,l)}catch(e){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"),u=s.getImageData(r,n,o,l)}catch(e){throw alert("Cannot access local image"),new Error("unable to access local image data: "+e);return}}}catch(e){throw alert("Cannot access image"),new Error("unable to access image data: "+e)}t(u);var h=u.data,m,x,b,v,w,y,p,I,B,E,C,D,N,R,P,G,M,U,k,A,H,W,j,q,z=d+d+1,F=o<<2,J=o-1,K=l-1,L=d+1,O=L*(L+1)/2,Q=new i,S=Q;for(b=1;b<z;b++)if(S=S.next=new i,b==L)var T=S;S.next=Q;var V=null,X=null;p=y=0;var Y=g[d],Z=c[d];for(x=0;x<l;x++){for(G=M=U=k=I=B=E=C=0,D=L*(A=h[y]),N=L*(H=h[y+1]),R=L*(W=h[y+2]),P=L*(j=h[y+3]),I+=O*A,B+=O*H,E+=O*W,C+=O*j,S=Q,b=0;b<L;b++)S.r=A,S.g=H,S.b=W,S.a=j,S=S.next;for(b=1;b<L;b++)v=y+((J<b?J:b)<<2),I+=(S.r=A=h[v])*(q=L-b),B+=(S.g=H=h[v+1])*q,E+=(S.b=W=h[v+2])*q,C+=(S.a=j=h[v+3])*q,G+=A,M+=H,U+=W,k+=j,S=S.next;for(V=Q,X=T,m=0;m<o;m++)h[y]=I*Y>>Z,h[y+1]=B*Y>>Z,h[y+2]=E*Y>>Z,h[y+3]=C*Y>>Z,I-=D,B-=N,E-=R,C-=P,D-=V.r,N-=V.g,R-=V.b,P-=V.a,v=p+((v=m+d+1)<J?v:J)<<2,G+=V.r=h[v],M+=V.g=h[v+1],U+=V.b=h[v+2],k+=V.a=h[v+3],I+=G,B+=M,E+=U,C+=k,V=V.next,D+=A=X.r,N+=H=X.g,R+=W=X.b,P+=j=X.a,G-=A,M-=H,U-=W,k-=j,X=X.next,y+=4;p+=o}for(m=0;m<o;m++){for(M=U=k=G=B=E=C=I=0,y=m<<2,D=L*(A=h[y]),N=L*(H=h[y+1]),R=L*(W=h[y+2]),P=L*(j=h[y+3]),I+=O*A,B+=O*H,E+=O*W,C+=O*j,S=Q,b=0;b<L;b++)S.r=A,S.g=H,S.b=W,S.a=j,S=S.next;for(w=o,b=1;b<=d;b++)y=w+m<<2,I+=(S.r=A=h[y])*(q=L-b),B+=(S.g=H=h[y+1])*q,E+=(S.b=W=h[y+2])*q,C+=(S.a=j=h[y+3])*q,G+=A,M+=H,U+=W,k+=j,S=S.next,b<K&&(w+=o);for(y=m,V=Q,X=T,x=0;x<l;x++)v=y<<2,h[v]=I*Y>>Z,h[v+1]=B*Y>>Z,h[v+2]=E*Y>>Z,h[v+3]=C*Y>>Z,I-=D,B-=N,E-=R,C-=P,D-=V.r,N-=V.g,R-=V.b,P-=V.a,v=m+((v=x+L)<K?v:K)*o<<2,I+=G+=V.r=h[v],B+=M+=V.g=h[v+1],E+=U+=V.b=h[v+2],C+=k+=V.a=h[v+3],V=V.next,D+=A=X.r,N+=H=X.g,R+=W=X.b,P+=j=X.a,G-=A,M-=H,U-=W,k-=j,X=X.next,y+=o}a(u),s.putImageData(u,r,n)}function o(e,t,a,r,n,o){if(isNaN(o)||o<1)return;o|=0;var l=document.getElementById(e),d=l.getContext("2d"),f;try{try{f=d.getImageData(t,a,r,n)}catch(e){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"),f=d.getImageData(t,a,r,n)}catch(e){throw alert("Cannot access local image"),new Error("unable to access local image data: "+e);return}}}catch(e){throw alert("Cannot access image"),new Error("unable to access image data: "+e)}var s=f.data,u,h,m,x,b,v,w,y,p,I,B,E,C,D,N,R,P,G,M,U,k=o+o+1,A=r<<2,H=r-1,W=n-1,j=o+1,q=j*(j+1)/2,z=new i,F=z;for(m=1;m<k;m++)if(F=F.next=new i,m==j)var J=F;F.next=z;var K=null,L=null;w=v=0;var O=g[o],Q=c[o];for(h=0;h<n;h++){for(D=N=R=y=p=I=0,B=j*(P=s[v]),E=j*(G=s[v+1]),C=j*(M=s[v+2]),y+=q*P,p+=q*G,I+=q*M,F=z,m=0;m<j;m++)F.r=P,F.g=G,F.b=M,F=F.next;for(m=1;m<j;m++)x=v+((H<m?H:m)<<2),y+=(F.r=P=s[x])*(U=j-m),p+=(F.g=G=s[x+1])*U,I+=(F.b=M=s[x+2])*U,D+=P,N+=G,R+=M,F=F.next;for(K=z,L=J,u=0;u<r;u++)s[v]=y*O>>Q,s[v+1]=p*O>>Q,s[v+2]=I*O>>Q,y-=B,p-=E,I-=C,B-=K.r,E-=K.g,C-=K.b,x=w+((x=u+o+1)<H?x:H)<<2,D+=K.r=s[x],N+=K.g=s[x+1],R+=K.b=s[x+2],y+=D,p+=N,I+=R,K=K.next,B+=P=L.r,E+=G=L.g,C+=M=L.b,D-=P,N-=G,R-=M,L=L.next,v+=4;w+=r}for(u=0;u<r;u++){for(N=R=D=p=I=y=0,v=u<<2,B=j*(P=s[v]),E=j*(G=s[v+1]),C=j*(M=s[v+2]),y+=q*P,p+=q*G,I+=q*M,F=z,m=0;m<j;m++)F.r=P,F.g=G,F.b=M,F=F.next;for(b=r,m=1;m<=o;m++)v=b+u<<2,y+=(F.r=P=s[v])*(U=j-m),p+=(F.g=G=s[v+1])*U,I+=(F.b=M=s[v+2])*U,D+=P,N+=G,R+=M,F=F.next,m<W&&(b+=r);for(v=u,K=z,L=J,h=0;h<n;h++)x=v<<2,s[x]=y*O>>Q,s[x+1]=p*O>>Q,s[x+2]=I*O>>Q,y-=B,p-=E,I-=C,B-=K.r,E-=K.g,C-=K.b,x=u+((x=h+j)<W?x:W)*r<<2,y+=D+=K.r=s[x],p+=N+=K.g=s[x+1],I+=R+=K.b=s[x+2],K=K.next,B+=P=L.r,E+=G=L.g,C+=M=L.b,D-=P,N-=G,R-=M,L=L.next,v+=r}d.putImageData(f,t,a)}function i(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var g=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],c=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24],l={image:r,canvasRGBA:n,canvasRGB:o};"undefined"!=typeof define&&define.amd?define(function(){return l}):"undefined"!=typeof module&&module.exports&&(module.exports=l),e.stackBlur=l}("undefined"!=typeof window?window:this);;
!function(t,e){"use strict";"undefined"!=typeof define&&define.amd?define("canvgModule",["rgbcolor","stackblur"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e(require("rgbcolor"),require("stackblur"))),t.canvg=e(t.RGBColor,t.stackBlur)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=[0,0,0],i=function(i,n){var s=t.match(i);null!=s&&(e[n]+=s.length,t=t.replace(i," "))};return t=t.replace(/:not\(([^\)]*)\)/g,"     $1 "),t=t.replace(/{[^]*/gm," "),i(o,1),i(l,0),i(h,1),i(u,2),i(c,1),i(f,1),t=t.replace(/[\*\s\+>~]/g," "),t=t.replace(/[#\.]/g," "),i(p,2),e.join("")}function s(s){var r={opts:s};r.FRAMERATE=30,r.MAX_VIRTUAL_PIXELS=3e4,r.log=function(){},1==r.opts.log&&"undefined"!=typeof console&&(r.log=function(t){console.log(t)}),r.init=function(t){var e=0;r.UniqueId=function(){return e++,"canvg"+e},r.Definitions={},r.Styles={},r.StylesSpecificity={},r.Animations=[],r.Images=[],r.ctx=t,r.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},r.init(),r.ImagesLoaded=function(){for(var t=0;t<r.Images.length;t++)if(!r.Images[t].loaded)return!1;return!0},r.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},r.compressSpaces=function(t){return t.replace(/[\s\r\t\n]+/gm," ")},r.ajax=function(t){var e;return e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),e?(e.open("GET",t,!1),e.send(null),e.responseText):null},r.parseXml=function(t){if("undefined"!=typeof Windows&&"undefined"!=typeof Windows.Data&&"undefined"!=typeof Windows.Data.Xml){var e=new Windows.Data.Xml.Dom.XmlDocument,i=new Windows.Data.Xml.Dom.XmlLoadSettings;return i.prohibitDtd=!1,e.loadXml(t,i),e}if(window.DOMParser){var n=new DOMParser;return n.parseFromString(t,"text/xml")}t=t.replace(/<!DOCTYPE svg[^>]*>/,"");var e=new ActiveXObject("Microsoft.XMLDOM");return e.async="false",e.loadXML(t),e},r.Property=function(t,e){this.name=t,this.value=e},r.Property.prototype.getValue=function(){return this.value},r.Property.prototype.hasValue=function(){return null!=this.value&&""!==this.value},r.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},r.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},r.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():t},r.Property.prototype.addOpacity=function(e){var i=this.value;if(null!=e.value&&""!=e.value&&"string"==typeof this.value){var n=new t(this.value);n.ok&&(i="rgba("+n.r+", "+n.g+", "+n.b+", "+e.numValue()+")")}return new r.Property(this.name,i)},r.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),r.Definitions[t]},r.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},r.Property.prototype.getFillStyleDefinition=function(t,e){var i=this.getDefinition();if(null!=i&&i.createGradient)return i.createGradient(r.ctx,t,e);if(null!=i&&i.createPattern){if(i.getHrefAttribute().hasValue()){var n=i.attribute("patternTransform");i=i.getHrefAttribute().getDefinition(),n.hasValue()&&(i.attribute("patternTransform",!0).value=n.value)}return i.createPattern(r.ctx,t)}return null},r.Property.prototype.getDPI=function(){return 96},r.Property.prototype.getEM=function(t){var e=12,i=new r.Property("fontSize",r.Font.Parse(r.ctx.font).fontSize);return i.hasValue()&&(e=i.toPixels(t)),e},r.Property.prototype.getUnits=function(){var t=this.value+"";return t.replace(/[0-9\.\-]/g,"")},r.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var i=this.value+"";if(i.match(/em$/))return this.numValue()*this.getEM(t);if(i.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(i.match(/px$/))return this.numValue();if(i.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(i.match(/pc$/))return 15*this.numValue();if(i.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(i.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(i.match(/in$/))return this.numValue()*this.getDPI(t);if(i.match(/%$/))return this.numValue()*r.ViewPort.ComputeSize(t);var n=this.numValue();return e&&1>n?n*r.ViewPort.ComputeSize(t):n},r.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/s$/)?1e3*this.numValue():(t.match(/ms$/),this.numValue())},r.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var o={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return r.Property.prototype.toTextBaseline=function(){return this.hasValue()?o[this.value]:null},r.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,e,i,n,s,a){var o=null!=a?this.Parse(a):this.CreateFont("","","","","",r.ctx.font);return{fontFamily:s||o.fontFamily,fontSize:n||o.fontSize,fontStyle:t||o.fontStyle,fontWeight:i||o.fontWeight,fontVariant:e||o.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var t=this;this.Parse=function(e){for(var i={},n=r.trim(r.compressSpaces(e||"")).split(" "),s={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},a="",o=0;o<n.length;o++)s.fontStyle||-1==t.Styles.indexOf(n[o])?s.fontVariant||-1==t.Variants.indexOf(n[o])?s.fontWeight||-1==t.Weights.indexOf(n[o])?s.fontSize?"inherit"!=n[o]&&(a+=n[o]):("inherit"!=n[o]&&(i.fontSize=n[o].split("/")[0]),s.fontStyle=s.fontVariant=s.fontWeight=s.fontSize=!0):("inherit"!=n[o]&&(i.fontWeight=n[o]),s.fontStyle=s.fontVariant=s.fontWeight=!0):("inherit"!=n[o]&&(i.fontVariant=n[o]),s.fontStyle=s.fontVariant=!0):("inherit"!=n[o]&&(i.fontStyle=n[o]),s.fontStyle=!0);return""!=a&&(i.fontFamily=a),i}},r.ToNumberArray=function(t){for(var e=r.trim(r.compressSpaces((t||"").replace(/,/g," "))).split(" "),i=0;i<e.length;i++)e[i]=parseFloat(e[i]);return e},r.Point=function(t,e){this.x=t,this.y=e},r.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)},r.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4],i=this.x*t[1]+this.y*t[3]+t[5];this.x=e,this.y=i},r.CreatePoint=function(t){var e=r.ToNumberArray(t);return new r.Point(e[0],e[1])},r.CreatePath=function(t){for(var e=r.ToNumberArray(t),i=[],n=0;n<e.length;n+=2)i.push(new r.Point(e[n],e[n+1]));return i},r.BoundingBox=function(t,e,n,s){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,i,n,s,a){var r=t+2/3*(i-t),o=e+2/3*(n-e),l=r+1/3*(s-t),h=o+1/3*(a-e);this.addBezierCurve(t,e,r,l,o,h,s,a)},this.addBezierCurve=function(t,e,n,s,a,r,o,l){var h=[t,e],u=[n,s],c=[a,r],f=[o,l];for(this.addPoint(h[0],h[1]),this.addPoint(f[0],f[1]),i=0;i<=1;i++){var p=function(t){return Math.pow(1-t,3)*h[i]+3*Math.pow(1-t,2)*t*u[i]+3*(1-t)*Math.pow(t,2)*c[i]+Math.pow(t,3)*f[i]},m=6*h[i]-12*u[i]+6*c[i],d=-3*h[i]+9*u[i]-9*c[i]+3*f[i],y=3*u[i]-3*h[i];if(0!=d){var v=Math.pow(m,2)-4*y*d;if(!(0>v)){var g=(-m+Math.sqrt(v))/(2*d);g>0&&1>g&&(0==i&&this.addX(p(g)),1==i&&this.addY(p(g)));var x=(-m-Math.sqrt(v))/(2*d);x>0&&1>x&&(0==i&&this.addX(p(x)),1==i&&this.addY(p(x)))}}else{if(0==m)continue;var b=-y/m;b>0&&1>b&&(0==i&&this.addX(p(b)),1==i&&this.addY(p(b)))}}},this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2},this.addPoint(t,e),this.addPoint(n,s)},r.Transform=function(t){var e=this;this.Type={},this.Type.translate=function(t){this.p=r.CreatePoint(t),this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)},this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)},this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(t){var e=r.ToNumberArray(t);this.angle=new r.Property("angle",e[0]),this.cx=e[1]||0,this.cy=e[2]||0,this.apply=function(t){t.translate(this.cx,this.cy),t.rotate(this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.unapply=function(t){t.translate(this.cx,this.cy),t.rotate(-1*this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(t){this.p=r.CreatePoint(t),this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)},this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)},this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(t){this.m=r.ToNumberArray(t),this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.unapply=function(t){var e=this.m[0],i=this.m[2],n=this.m[4],s=this.m[1],a=this.m[3],r=this.m[5],o=0,l=0,h=1,u=1/(e*(a*h-r*l)-i*(s*h-r*o)+n*(s*l-a*o));t.transform(u*(a*h-r*l),u*(r*o-s*h),u*(n*l-i*h),u*(e*h-n*o),u*(i*r-n*a),u*(n*s-e*r))},this.applyToPoint=function(t){t.applyTransform(this.m)}},this.Type.SkewBase=function(t){this.base=e.Type.matrix,this.base(t),this.angle=new r.Property("angle",t)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].apply(t)},this.unapply=function(t){for(var e=this.transforms.length-1;e>=0;e--)this.transforms[e].unapply(t)},this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].applyToPoint(t)};for(var i=r.trim(r.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/),n=0;n<i.length;n++){var s=r.trim(i[n].split("(")[0]),a=i[n].split("(")[1].replace(")",""),o=new this.Type[s](a);o.type=s,this.transforms.push(o)}},r.AspectRatio=function(t,e,i,n,s,a,o,l,h,u){e=r.compressSpaces(e),e=e.replace(/^defer\s/,"");var c=e.split(" ")[0]||"xMidYMid",f=e.split(" ")[1]||"meet",p=i/n,m=s/a,d=Math.min(p,m),y=Math.max(p,m);"meet"==f&&(n*=d,a*=d),"slice"==f&&(n*=y,a*=y),h=new r.Property("refX",h),u=new r.Property("refY",u),h.hasValue()&&u.hasValue()?t.translate(-d*h.toPixels("x"),-d*u.toPixels("y")):(c.match(/^xMid/)&&("meet"==f&&d==m||"slice"==f&&y==m)&&t.translate(i/2-n/2,0),c.match(/YMid$/)&&("meet"==f&&d==p||"slice"==f&&y==p)&&t.translate(0,s/2-a/2),c.match(/^xMax/)&&("meet"==f&&d==m||"slice"==f&&y==m)&&t.translate(i-n,0),c.match(/YMax$/)&&("meet"==f&&d==p||"slice"==f&&y==p)&&t.translate(0,s-a)),"none"==c?t.scale(p,m):"meet"==f?t.scale(d,d):"slice"==f&&t.scale(y,y),t.translate(null==o?0:-o,null==l?0:-l)},r.Element={},r.EmptyProperty=new r.Property("EMPTY",""),r.Element.ElementBase=function(t){if(this.attributes={},this.styles={},this.stylesSpecificity={},this.children=[],this.attribute=function(t,e){var i=this.attributes[t];return null!=i?i:(1==e&&(i=new r.Property(t,""),this.attributes[t]=i),i||r.EmptyProperty)},this.getHrefAttribute=function(){for(var t in this.attributes)if("href"==t||t.match(/:href$/))return this.attributes[t];return r.EmptyProperty},this.style=function(t,e,i){var n=this.styles[t];if(null!=n)return n;var s=this.attribute(t);if(null!=s&&s.hasValue())return this.styles[t]=s,s;if(1!=i){var a=this.parent;if(null!=a){var o=a.style(t);if(null!=o&&o.hasValue())return o}}return 1==e&&(n=new r.Property(t,""),this.styles[t]=n),n||r.EmptyProperty},this.render=function(t){if("none"!=this.style("display").value&&"hidden"!=this.style("visibility").value){if(t.save(),this.style("mask").hasValue()){var e=this.style("mask").getDefinition();null!=e&&e.apply(t,this)}else if(this.style("filter").hasValue()){var i=this.style("filter").getDefinition();null!=i&&i.apply(t,this)}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}},this.setContext=function(){},this.clearContext=function(){},this.renderChildren=function(t){for(var e=0;e<this.children.length;e++)this.children[e].render(t)},this.addChild=function(t,e){var i=t;e&&(i=r.CreateElement(t)),i.parent=this,"title"!=i.type&&this.children.push(i)},this.addStylesFromStyleDefinition=function(){for(var e in r.Styles)if("@"!=e[0]&&a(t,e)){var i=r.Styles[e],n=r.StylesSpecificity[e];if(null!=i)for(var s in i){var o=this.stylesSpecificity[s];"undefined"==typeof o&&(o="000"),n>o&&(this.styles[s]=i[s],this.stylesSpecificity[s]=n)}}},null!=t&&1==t.nodeType){for(var e=0;e<t.attributes.length;e++){var i=t.attributes[e];this.attributes[i.nodeName]=new r.Property(i.nodeName,i.value)}if(this.addStylesFromStyleDefinition(),this.attribute("style").hasValue())for(var n=this.attribute("style").value.split(";"),e=0;e<n.length;e++)if(""!=r.trim(n[e])){var s=n[e].split(":"),o=r.trim(s[0]),l=r.trim(s[1]);this.styles[o]=new r.Property(o,l)}this.attribute("id").hasValue()&&null==r.Definitions[this.attribute("id").value]&&(r.Definitions[this.attribute("id").value]=this);for(var e=0;e<t.childNodes.length;e++){var h=t.childNodes[e];if(1==h.nodeType&&this.addChild(h,!0),this.captureTextNodes&&(3==h.nodeType||4==h.nodeType)){var u=h.value||h.text||h.textContent||"";""!=r.compressSpaces(u)&&this.addChild(new r.Element.tspan(h),!1)}}}},r.Element.RenderedElementBase=function(t){this.base=r.Element.ElementBase,this.base(t),this.setContext=function(t){if(this.style("fill").isUrlDefinition()){var e=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity"));null!=e&&(t.fillStyle=e)}else if(this.style("fill").hasValue()){var i=this.style("fill");"currentColor"==i.value&&(i.value=this.style("color").value),"inherit"!=i.value&&(t.fillStyle="none"==i.value?"rgba(0,0,0,0)":i.value)}if(this.style("fill-opacity").hasValue()){var i=new r.Property("fill",t.fillStyle);i=i.addOpacity(this.style("fill-opacity")),t.fillStyle=i.value}if(this.style("stroke").isUrlDefinition()){var e=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity"));null!=e&&(t.strokeStyle=e)}else if(this.style("stroke").hasValue()){var n=this.style("stroke");"currentColor"==n.value&&(n.value=this.style("color").value),"inherit"!=n.value&&(t.strokeStyle="none"==n.value?"rgba(0,0,0,0)":n.value)}if(this.style("stroke-opacity").hasValue()){var n=new r.Property("stroke",t.strokeStyle);n=n.addOpacity(this.style("stroke-opacity")),t.strokeStyle=n.value}if(this.style("stroke-width").hasValue()){var s=this.style("stroke-width").toPixels();t.lineWidth=0==s?.001:s}if(this.style("stroke-linecap").hasValue()&&(t.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(t.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(t.miterLimit=this.style("stroke-miterlimit").value),this.style("stroke-dasharray").hasValue()&&"none"!=this.style("stroke-dasharray").value){var a=r.ToNumberArray(this.style("stroke-dasharray").value);"undefined"!=typeof t.setLineDash?t.setLineDash(a):"undefined"!=typeof t.webkitLineDash?t.webkitLineDash=a:"undefined"==typeof t.mozDash||1==a.length&&0==a[0]||(t.mozDash=a);var o=this.style("stroke-dashoffset").numValueOrDefault(1);"undefined"!=typeof t.lineDashOffset?t.lineDashOffset=o:"undefined"!=typeof t.webkitLineDashOffset?t.webkitLineDashOffset=o:"undefined"!=typeof t.mozDashOffset&&(t.mozDashOffset=o)}if("undefined"!=typeof t.font&&(t.font=r.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString()),this.style("transform",!1,!0).hasValue()){var l=new r.Transform(this.style("transform",!1,!0).value);l.apply(t)}if(this.style("clip-path",!1,!0).hasValue()){var h=this.style("clip-path",!1,!0).getDefinition();null!=h&&h.apply(t)}this.style("opacity").hasValue()&&(t.globalAlpha=this.style("opacity").numValue())}},r.Element.RenderedElementBase.prototype=new r.Element.ElementBase,r.Element.PathElementBase=function(t){this.base=r.Element.RenderedElementBase,this.base(t),this.path=function(t){return null!=t&&t.beginPath(),new r.BoundingBox},this.renderChildren=function(t){this.path(t),r.Mouse.checkPath(this,t),""!=t.fillStyle&&("inherit"!=this.style("fill-rule").valueOrDefault("inherit")?t.fill(this.style("fill-rule").value):t.fill()),""!=t.strokeStyle&&t.stroke();var e=this.getMarkers();if(null!=e){if(this.style("marker-start").isUrlDefinition()){var i=this.style("marker-start").getDefinition();i.render(t,e[0][0],e[0][1])}if(this.style("marker-mid").isUrlDefinition())for(var i=this.style("marker-mid").getDefinition(),n=1;n<e.length-1;n++)i.render(t,e[n][0],e[n][1]);if(this.style("marker-end").isUrlDefinition()){var i=this.style("marker-end").getDefinition();i.render(t,e[e.length-1][0],e[e.length-1][1])}}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},r.Element.PathElementBase.prototype=new r.Element.RenderedElementBase,r.Element.svg=function(t){this.base=r.Element.RenderedElementBase,this.base(t),this.baseClearContext=this.clearContext,this.clearContext=function(t){this.baseClearContext(t),r.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4,"undefined"!=typeof t.font&&"undefined"!=typeof window.getComputedStyle&&(t.font=window.getComputedStyle(t.canvas).getPropertyValue("font")),this.baseSetContext(t),this.attribute("x").hasValue()||(this.attribute("x",!0).value=0),this.attribute("y").hasValue()||(this.attribute("y",!0).value=0),t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var e=r.ViewPort.width(),i=r.ViewPort.height();if(this.attribute("width").hasValue()||(this.attribute("width",!0).value="100%"),this.attribute("height").hasValue()||(this.attribute("height",!0).value="100%"),"undefined"==typeof this.root){e=this.attribute("width").toPixels("x"),i=this.attribute("height").toPixels("y");var n=0,s=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(n=-this.attribute("refX").toPixels("x"),s=-this.attribute("refY").toPixels("y")),"visible"!=this.attribute("overflow").valueOrDefault("hidden")&&(t.beginPath(),t.moveTo(n,s),t.lineTo(e,s),t.lineTo(e,i),t.lineTo(n,i),t.closePath(),t.clip())}if(r.ViewPort.SetCurrent(e,i),this.attribute("viewBox").hasValue()){var a=r.ToNumberArray(this.attribute("viewBox").value),o=a[0],l=a[1];e=a[2],i=a[3],r.AspectRatio(t,this.attribute("preserveAspectRatio").value,r.ViewPort.width(),e,r.ViewPort.height(),i,o,l,this.attribute("refX").value,this.attribute("refY").value),r.ViewPort.RemoveCurrent(),r.ViewPort.SetCurrent(a[2],a[3])}}},r.Element.svg.prototype=new r.Element.RenderedElementBase,r.Element.rect=function(t){this.base=r.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),n=this.attribute("width").toPixels("x"),s=this.attribute("height").toPixels("y"),a=this.attribute("rx").toPixels("x"),o=this.attribute("ry").toPixels("y");return this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(o=a),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(a=o),a=Math.min(a,n/2),o=Math.min(o,s/2),null!=t&&(t.beginPath(),t.moveTo(e+a,i),t.lineTo(e+n-a,i),t.quadraticCurveTo(e+n,i,e+n,i+o),t.lineTo(e+n,i+s-o),t.quadraticCurveTo(e+n,i+s,e+n-a,i+s),t.lineTo(e+a,i+s),t.quadraticCurveTo(e,i+s,e,i+s-o),t.lineTo(e,i+o),t.quadraticCurveTo(e,i,e+a,i),t.closePath()),new r.BoundingBox(e,i,e+n,i+s)}},r.Element.rect.prototype=new r.Element.PathElementBase,r.Element.circle=function(t){this.base=r.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("cx").toPixels("x"),i=this.attribute("cy").toPixels("y"),n=this.attribute("r").toPixels();return null!=t&&(t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!0),t.closePath()),new r.BoundingBox(e-n,i-n,e+n,i+n)}},r.Element.circle.prototype=new r.Element.PathElementBase,r.Element.ellipse=function(t){this.base=r.Element.PathElementBase,this.base(t),this.path=function(t){var e=4*((Math.sqrt(2)-1)/3),i=this.attribute("rx").toPixels("x"),n=this.attribute("ry").toPixels("y"),s=this.attribute("cx").toPixels("x"),a=this.attribute("cy").toPixels("y");return null!=t&&(t.beginPath(),t.moveTo(s,a-n),t.bezierCurveTo(s+e*i,a-n,s+i,a-e*n,s+i,a),t.bezierCurveTo(s+i,a+e*n,s+e*i,a+n,s,a+n),t.bezierCurveTo(s-e*i,a+n,s-i,a+e*n,s-i,a),t.bezierCurveTo(s-i,a-e*n,s-e*i,a-n,s,a-n),t.closePath()),new r.BoundingBox(s-i,a-n,s+i,a+n)}},r.Element.ellipse.prototype=new r.Element.PathElementBase,r.Element.line=function(t){this.base=r.Element.PathElementBase,this.base(t),this.getPoints=function(){return[new r.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new r.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]},this.path=function(t){var e=this.getPoints();return null!=t&&(t.beginPath(),t.moveTo(e[0].x,e[0].y),t.lineTo(e[1].x,e[1].y)),new r.BoundingBox(e[0].x,e[0].y,e[1].x,e[1].y)},this.getMarkers=function(){var t=this.getPoints(),e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}},r.Element.line.prototype=new r.Element.PathElementBase,r.Element.polyline=function(t){this.base=r.Element.PathElementBase,this.base(t),this.points=r.CreatePath(this.attribute("points").value),this.path=function(t){var e=new r.BoundingBox(this.points[0].x,this.points[0].y);null!=t&&(t.beginPath(),t.moveTo(this.points[0].x,this.points[0].y));for(var i=1;i<this.points.length;i++)e.addPoint(this.points[i].x,this.points[i].y),null!=t&&t.lineTo(this.points[i].x,this.points[i].y);return e},this.getMarkers=function(){for(var t=[],e=0;e<this.points.length-1;e++)t.push([this.points[e],this.points[e].angleTo(this.points[e+1])]);return t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},r.Element.polyline.prototype=new r.Element.PathElementBase,r.Element.polygon=function(t){this.base=r.Element.polyline,this.base(t),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},r.Element.polygon.prototype=new r.Element.polyline,r.Element.path=function(t){this.base=r.Element.PathElementBase,this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var i=0;2>i;i++)e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2"),e=e.replace(/([0-9])([+\-])/gm,"$1 $2");for(var i=0;2>i;i++)e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),e=r.compressSpaces(e),e=r.trim(e),this.PathParser=new function(t){this.tokens=t.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new r.Point(0,0),this.control=new r.Point(0,0),this.current=new r.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return this.isEnd()?!0:null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new r.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t,t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t,t},this.getReflectedControlPoint=function(){if("c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase())return this.current;var t=new r.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return t},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,i){null!=i&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(i)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++)if(null==this.angles[t])for(var e=t+1;e<this.angles.length;e++)if(null!=this.angles[e]){this.angles[t]=this.angles[e];break}return this.angles}}(e),this.path=function(t){var e=this.PathParser;e.reset();var i=new r.BoundingBox;for(null!=t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":var n=e.getAsCurrentPoint();for(e.addMarker(n),i.addPoint(n.x,n.y),null!=t&&t.moveTo(n.x,n.y),e.start=e.current;!e.isCommandOrEnd();){var n=e.getAsCurrentPoint();e.addMarker(n,e.start),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"L":case"l":for(;!e.isCommandOrEnd();){var s=e.current,n=e.getAsCurrentPoint();e.addMarker(n,s),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"H":case"h":for(;!e.isCommandOrEnd();){var a=new r.Point((e.isRelativeCommand()?e.current.x:0)+e.getScalar(),e.current.y);e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"V":case"v":for(;!e.isCommandOrEnd();){var a=new r.Point(e.current.x,(e.isRelativeCommand()?e.current.y:0)+e.getScalar());e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"C":case"c":for(;!e.isCommandOrEnd();){var o=e.current,l=e.getPoint(),h=e.getAsControlPoint(),u=e.getAsCurrentPoint();e.addMarker(u,h,l),i.addBezierCurve(o.x,o.y,l.x,l.y,h.x,h.y,u.x,u.y),null!=t&&t.bezierCurveTo(l.x,l.y,h.x,h.y,u.x,u.y)}break;case"S":case"s":for(;!e.isCommandOrEnd();){var o=e.current,l=e.getReflectedControlPoint(),h=e.getAsControlPoint(),u=e.getAsCurrentPoint();e.addMarker(u,h,l),i.addBezierCurve(o.x,o.y,l.x,l.y,h.x,h.y,u.x,u.y),null!=t&&t.bezierCurveTo(l.x,l.y,h.x,h.y,u.x,u.y)}break;case"Q":case"q":for(;!e.isCommandOrEnd();){var o=e.current,h=e.getAsControlPoint(),u=e.getAsCurrentPoint();e.addMarker(u,h,h),i.addQuadraticCurve(o.x,o.y,h.x,h.y,u.x,u.y),null!=t&&t.quadraticCurveTo(h.x,h.y,u.x,u.y)}break;case"T":case"t":for(;!e.isCommandOrEnd();){var o=e.current,h=e.getReflectedControlPoint();e.control=h;var u=e.getAsCurrentPoint();e.addMarker(u,h,h),i.addQuadraticCurve(o.x,o.y,h.x,h.y,u.x,u.y),null!=t&&t.quadraticCurveTo(h.x,h.y,u.x,u.y)}break;case"A":case"a":for(;!e.isCommandOrEnd();){var o=e.current,c=e.getScalar(),f=e.getScalar(),p=e.getScalar()*(Math.PI/180),m=e.getScalar(),d=e.getScalar(),u=e.getAsCurrentPoint(),y=new r.Point(Math.cos(p)*(o.x-u.x)/2+Math.sin(p)*(o.y-u.y)/2,-Math.sin(p)*(o.x-u.x)/2+Math.cos(p)*(o.y-u.y)/2),v=Math.pow(y.x,2)/Math.pow(c,2)+Math.pow(y.y,2)/Math.pow(f,2);v>1&&(c*=Math.sqrt(v),f*=Math.sqrt(v));var g=(m==d?-1:1)*Math.sqrt((Math.pow(c,2)*Math.pow(f,2)-Math.pow(c,2)*Math.pow(y.y,2)-Math.pow(f,2)*Math.pow(y.x,2))/(Math.pow(c,2)*Math.pow(y.y,2)+Math.pow(f,2)*Math.pow(y.x,2)));isNaN(g)&&(g=0);var x=new r.Point(g*c*y.y/f,g*-f*y.x/c),b=new r.Point((o.x+u.x)/2+Math.cos(p)*x.x-Math.sin(p)*x.y,(o.y+u.y)/2+Math.sin(p)*x.x+Math.cos(p)*x.y),E=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},P=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(E(t)*E(e))},w=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(P(t,e))},B=w([1,0],[(y.x-x.x)/c,(y.y-x.y)/f]),C=[(y.x-x.x)/c,(y.y-x.y)/f],T=[(-y.x-x.x)/c,(-y.y-x.y)/f],V=w(C,T);P(C,T)<=-1&&(V=Math.PI),P(C,T)>=1&&(V=0);var M=1-d?1:-1,S=B+M*(V/2),k=new r.Point(b.x+c*Math.cos(S),b.y+f*Math.sin(S));if(e.addMarkerAngle(k,S-M*Math.PI/2),e.addMarkerAngle(u,S-M*Math.PI),i.addPoint(u.x,u.y),null!=t){var P=c>f?c:f,D=c>f?1:c/f,A=c>f?f/c:1;t.translate(b.x,b.y),t.rotate(p),t.scale(D,A),t.arc(0,0,P,B,B+V,1-d),t.scale(1/D,1/A),t.rotate(-p),t.translate(-b.x,-b.y)}}break;case"Z":case"z":null!=t&&t.closePath(),e.current=e.start}return i},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),i=[],n=0;n<t.length;n++)i.push([t[n],e[n]]);return i}},r.Element.path.prototype=new r.Element.PathElementBase,r.Element.pattern=function(t){this.base=r.Element.ElementBase,this.base(t),this.createPattern=function(t){var e=this.attribute("width").toPixels("x",!0),i=this.attribute("height").toPixels("y",!0),n=new r.Element.svg;n.attributes.viewBox=new r.Property("viewBox",this.attribute("viewBox").value),n.attributes.width=new r.Property("width",e+"px"),n.attributes.height=new r.Property("height",i+"px"),n.attributes.transform=new r.Property("transform",this.attribute("patternTransform").value),n.children=this.children;var s=document.createElement("canvas");s.width=e,s.height=i;var a=s.getContext("2d");this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&a.translate(this.attribute("x").toPixels("x",!0),this.attribute("y").toPixels("y",!0));for(var o=-1;1>=o;o++)for(var l=-1;1>=l;l++)a.save(),n.attributes.x=new r.Property("x",o*s.width),n.attributes.y=new r.Property("y",l*s.height),n.render(a),a.restore();var h=t.createPattern(s,"repeat");return h}},r.Element.pattern.prototype=new r.Element.ElementBase,r.Element.marker=function(t){this.base=r.Element.ElementBase,this.base(t),this.baseRender=this.render,this.render=function(t,e,i){t.translate(e.x,e.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(i),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(t.lineWidth,t.lineWidth),t.save();var n=new r.Element.svg;n.attributes.viewBox=new r.Property("viewBox",this.attribute("viewBox").value),n.attributes.refX=new r.Property("refX",this.attribute("refX").value),n.attributes.refY=new r.Property("refY",this.attribute("refY").value),n.attributes.width=new r.Property("width",this.attribute("markerWidth").value),n.attributes.height=new r.Property("height",this.attribute("markerHeight").value),n.attributes.fill=new r.Property("fill",this.attribute("fill").valueOrDefault("black")),n.attributes.stroke=new r.Property("stroke",this.attribute("stroke").valueOrDefault("none")),n.children=this.children,n.render(t),t.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(-i),t.translate(-e.x,-e.y)
}},r.Element.marker.prototype=new r.Element.ElementBase,r.Element.defs=function(t){this.base=r.Element.ElementBase,this.base(t),this.render=function(){}},r.Element.defs.prototype=new r.Element.ElementBase,r.Element.GradientBase=function(t){this.base=r.Element.ElementBase,this.base(t),this.stops=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"stop"==i.type&&this.stops.push(i)}this.getGradient=function(){},this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")},this.attributesToInherit=["gradientUnits"],this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var i=this.attributesToInherit[e];!this.attribute(i).hasValue()&&t.attribute(i).hasValue()&&(this.attribute(i,!0).value=t.attribute(i).value)}},this.createGradient=function(t,e,i){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var s=function(t){if(i.hasValue()){var e=new r.Property("color",t);return e.addOpacity(i).value}return t},a=this.getGradient(t,e);if(null==a)return s(n.stops[n.stops.length-1].color);for(var o=0;o<n.stops.length;o++)a.addColorStop(n.stops[o].offset,s(n.stops[o].color));if(this.attribute("gradientTransform").hasValue()){var l=r.ViewPort.viewPorts[0],h=new r.Element.rect;h.attributes.x=new r.Property("x",-r.MAX_VIRTUAL_PIXELS/3),h.attributes.y=new r.Property("y",-r.MAX_VIRTUAL_PIXELS/3),h.attributes.width=new r.Property("width",r.MAX_VIRTUAL_PIXELS),h.attributes.height=new r.Property("height",r.MAX_VIRTUAL_PIXELS);var u=new r.Element.g;u.attributes.transform=new r.Property("transform",this.attribute("gradientTransform").value),u.children=[h];var c=new r.Element.svg;c.attributes.x=new r.Property("x",0),c.attributes.y=new r.Property("y",0),c.attributes.width=new r.Property("width",l.width),c.attributes.height=new r.Property("height",l.height),c.children=[u];var f=document.createElement("canvas");f.width=l.width,f.height=l.height;var p=f.getContext("2d");return p.fillStyle=a,c.render(p),p.createPattern(f,"no-repeat")}return a}},r.Element.GradientBase.prototype=new r.Element.ElementBase,r.Element.linearGradient=function(t){this.base=r.Element.GradientBase,this.base(t),this.attributesToInherit.push("x1"),this.attributesToInherit.push("y1"),this.attributesToInherit.push("x2"),this.attributesToInherit.push("y2"),this.getGradient=function(t,e){var i="objectBoundingBox"==this.gradientUnits()?e.getBoundingBox():null;this.attribute("x1").hasValue()||this.attribute("y1").hasValue()||this.attribute("x2").hasValue()||this.attribute("y2").hasValue()||(this.attribute("x1",!0).value=0,this.attribute("y1",!0).value=0,this.attribute("x2",!0).value=1,this.attribute("y2",!0).value=0);var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y"),a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x"),r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");return n==a&&s==r?null:t.createLinearGradient(n,s,a,r)}},r.Element.linearGradient.prototype=new r.Element.GradientBase,r.Element.radialGradient=function(t){this.base=r.Element.GradientBase,this.base(t),this.attributesToInherit.push("cx"),this.attributesToInherit.push("cy"),this.attributesToInherit.push("r"),this.attributesToInherit.push("fx"),this.attributesToInherit.push("fy"),this.getGradient=function(t,e){var i=e.getBoundingBox();this.attribute("cx").hasValue()||(this.attribute("cx",!0).value="50%"),this.attribute("cy").hasValue()||(this.attribute("cy",!0).value="50%"),this.attribute("r").hasValue()||(this.attribute("r",!0).value="50%");var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y"),a=n,r=s;this.attribute("fx").hasValue()&&(a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")),this.attribute("fy").hasValue()&&(r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y"));var o="objectBoundingBox"==this.gradientUnits()?(i.width()+i.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels();return t.createRadialGradient(a,r,0,n,s,o)}},r.Element.radialGradient.prototype=new r.Element.GradientBase,r.Element.stop=function(t){this.base=r.Element.ElementBase,this.base(t),this.offset=this.attribute("offset").numValue(),this.offset<0&&(this.offset=0),this.offset>1&&(this.offset=1);var e=this.style("stop-color",!0);""===e.value&&(e.value="#000"),this.style("stop-opacity").hasValue()&&(e=e.addOpacity(this.style("stop-opacity"))),this.color=e.value},r.Element.stop.prototype=new r.Element.ElementBase,r.Element.AnimateBase=function(t){this.base=r.Element.ElementBase,this.base(t),r.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.begin<this.duration){var i=this.calcValue();if(this.attribute("type").hasValue()){var n=this.attribute("type").value;i=n+"("+i+")"}this.getProperty().value=i,e=!0}return e},this.from=this.attribute("from"),this.to=this.attribute("to"),this.values=this.attribute("values"),this.values.hasValue()&&(this.values.value=this.values.value.split(";")),this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var e=t.progress*(this.values.value.length-1),i=Math.floor(e),n=Math.ceil(e);t.from=new r.Property("from",parseFloat(this.values.value[i])),t.to=new r.Property("to",parseFloat(this.values.value[n])),t.progress=(e-i)/(n-i)}else t.from=this.from,t.to=this.to;return t}},r.Element.AnimateBase.prototype=new r.Element.ElementBase,r.Element.animate=function(t){this.base=r.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress;return e+this.initialUnits}},r.Element.animate.prototype=new r.Element.AnimateBase,r.Element.animateColor=function(e){this.base=r.Element.AnimateBase,this.base(e),this.calcValue=function(){var e=this.progress(),i=new t(e.from.value),n=new t(e.to.value);if(i.ok&&n.ok){var s=i.r+(n.r-i.r)*e.progress,a=i.g+(n.g-i.g)*e.progress,r=i.b+(n.b-i.b)*e.progress;return"rgb("+parseInt(s,10)+","+parseInt(a,10)+","+parseInt(r,10)+")"}return this.attribute("from").value}},r.Element.animateColor.prototype=new r.Element.AnimateBase,r.Element.animateTransform=function(t){this.base=r.Element.AnimateBase,this.base(t),this.calcValue=function(){for(var t=this.progress(),e=r.ToNumberArray(t.from.value),i=r.ToNumberArray(t.to.value),n="",s=0;s<e.length;s++)n+=e[s]+(i[s]-e[s])*t.progress+" ";return n}},r.Element.animateTransform.prototype=new r.Element.animate,r.Element.font=function(t){this.base=r.Element.ElementBase,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isRTL=!1,this.isArabic=!1,this.fontFace=null,this.missingGlyph=null,this.glyphs=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"font-face"==i.type?(this.fontFace=i,i.style("font-family").hasValue()&&(r.Definitions[i.style("font-family").value]=this)):"missing-glyph"==i.type?this.missingGlyph=i:"glyph"==i.type&&(""!=i.arabicForm?(this.isRTL=!0,this.isArabic=!0,"undefined"==typeof this.glyphs[i.unicode]&&(this.glyphs[i.unicode]=[]),this.glyphs[i.unicode][i.arabicForm]=i):this.glyphs[i.unicode]=i)}},r.Element.font.prototype=new r.Element.ElementBase,r.Element.fontface=function(t){this.base=r.Element.ElementBase,this.base(t),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},r.Element.fontface.prototype=new r.Element.ElementBase,r.Element.missingglyph=function(t){this.base=r.Element.path,this.base(t),this.horizAdvX=0},r.Element.missingglyph.prototype=new r.Element.path,r.Element.glyph=function(t){this.base=r.Element.path,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},r.Element.glyph.prototype=new r.Element.path,r.Element.text=function(t){this.captureTextNodes=!0,this.base=r.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();null==e&&(e=this.style("alignment-baseline").toTextBaseline()),null!=e&&(t.textBaseline=e)},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),e=this.attribute("y").toPixels("y"),i=this.parent.style("font-size").numValueOrDefault(r.Font.Parse(r.ctx.font).fontSize);return new r.BoundingBox(t,e-i,t+Math.floor(2*i/3)*this.children[0].getText().length,e)},this.renderChildren=function(t){this.x=this.attribute("x").toPixels("x"),this.y=this.attribute("y").toPixels("y"),this.attribute("dx").hasValue()&&(this.x+=this.attribute("dx").toPixels("x")),this.attribute("dy").hasValue()&&(this.y+=this.attribute("dy").toPixels("y")),this.x+=this.getAnchorDelta(t,this,0);for(var e=0;e<this.children.length;e++)this.renderChild(t,this,e)},this.getAnchorDelta=function(t,e,i){var n=this.style("text-anchor").valueOrDefault("start");if("start"!=n){for(var s=0,a=i;a<e.children.length;a++){var r=e.children[a];if(a>i&&r.attribute("x").hasValue())break;s+=r.measureTextRecursive(t)}return-1*("end"==n?s:s/2)}return 0},this.renderChild=function(t,e,i){var n=e.children[i];n.attribute("x").hasValue()?(n.x=n.attribute("x").toPixels("x")+e.getAnchorDelta(t,e,i),n.attribute("dx").hasValue()&&(n.x+=n.attribute("dx").toPixels("x"))):(n.attribute("dx").hasValue()&&(e.x+=n.attribute("dx").toPixels("x")),n.x=e.x),e.x=n.x+n.measureText(t),n.attribute("y").hasValue()?(n.y=n.attribute("y").toPixels("y"),n.attribute("dy").hasValue()&&(n.y+=n.attribute("dy").toPixels("y"))):(n.attribute("dy").hasValue()&&(e.y+=n.attribute("dy").toPixels("y")),n.y=e.y),e.y=n.y,n.render(t);for(var i=0;i<n.children.length;i++)e.renderChild(t,n,i)}},r.Element.text.prototype=new r.Element.RenderedElementBase,r.Element.TextElementBase=function(t){this.base=r.Element.RenderedElementBase,this.base(t),this.getGlyph=function(t,e,i){var n=e[i],s=null;if(t.isArabic){var a="isolated";(0==i||" "==e[i-1])&&i<e.length-2&&" "!=e[i+1]&&(a="terminal"),i>0&&" "!=e[i-1]&&i<e.length-2&&" "!=e[i+1]&&(a="medial"),i>0&&" "!=e[i-1]&&(i==e.length-1||" "==e[i+1])&&(a="initial"),"undefined"!=typeof t.glyphs[n]&&(s=t.glyphs[n][a],null==s&&"glyph"==t.glyphs[n].type&&(s=t.glyphs[n]))}else s=t.glyphs[n];return null==s&&(s=t.missingGlyph),s},this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(null==e)""!=t.fillStyle&&t.fillText(r.compressSpaces(this.getText()),this.x,this.y),""!=t.strokeStyle&&t.strokeText(r.compressSpaces(this.getText()),this.x,this.y);else{var i=this.parent.style("font-size").numValueOrDefault(r.Font.Parse(r.ctx.font).fontSize),n=this.parent.style("font-style").valueOrDefault(r.Font.Parse(r.ctx.font).fontStyle),s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=r.ToNumberArray(this.parent.attribute("dx").value),o=0;o<s.length;o++){var l=this.getGlyph(e,s,o),h=i/e.fontFace.unitsPerEm;t.translate(this.x,this.y),t.scale(h,-h);var u=t.lineWidth;t.lineWidth=t.lineWidth*e.fontFace.unitsPerEm/i,"italic"==n&&t.transform(1,0,.4,1,0,0),l.render(t),"italic"==n&&t.transform(1,0,-.4,1,0,0),t.lineWidth=u,t.scale(1/h,-1/h),t.translate(-this.x,-this.y),this.x+=i*(l.horizAdvX||e.horizAdvX)/e.fontFace.unitsPerEm,"undefined"==typeof a[o]||isNaN(a[o])||(this.x+=a[o])}}},this.getText=function(){},this.measureTextRecursive=function(t){for(var e=this.measureText(t),i=0;i<this.children.length;i++)e+=this.children[i].measureTextRecursive(t);return e},this.measureText=function(t){var e=this.parent.style("font-family").getDefinition();if(null!=e){var i=this.parent.style("font-size").numValueOrDefault(r.Font.Parse(r.ctx.font).fontSize),n=0,s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=r.ToNumberArray(this.parent.attribute("dx").value),o=0;o<s.length;o++){var l=this.getGlyph(e,s,o);n+=(l.horizAdvX||e.horizAdvX)*i/e.fontFace.unitsPerEm,"undefined"==typeof a[o]||isNaN(a[o])||(n+=a[o])}return n}var h=r.compressSpaces(this.getText());if(!t.measureText)return 10*h.length;t.save(),this.setContext(t);var u=t.measureText(h).width;return t.restore(),u}},r.Element.TextElementBase.prototype=new r.Element.RenderedElementBase,r.Element.tspan=function(t){this.captureTextNodes=!0,this.base=r.Element.TextElementBase,this.base(t),this.text=r.compressSpaces(t.value||t.text||t.textContent||""),this.getText=function(){return this.children.length>0?"":this.text}},r.Element.tspan.prototype=new r.Element.TextElementBase,r.Element.tref=function(t){this.base=r.Element.TextElementBase,this.base(t),this.getText=function(){var t=this.getHrefAttribute().getDefinition();return null!=t?t.children[0].getText():void 0}},r.Element.tref.prototype=new r.Element.TextElementBase,r.Element.a=function(t){this.base=r.Element.TextElementBase,this.base(t),this.hasText=t.childNodes.length>0;for(var e=0;e<t.childNodes.length;e++)3!=t.childNodes[e].nodeType&&(this.hasText=!1);this.text=this.hasText?t.childNodes[0].value:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var e=new r.Property("fontSize",r.Font.Parse(r.ctx.font).fontSize);r.Mouse.checkBoundingBox(this,new r.BoundingBox(this.x,this.y-e.toPixels("y"),this.x+this.measureText(t),this.y))}else if(this.children.length>0){var i=new r.Element.g;i.children=this.children,i.parent=this,i.render(t)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){r.ctx.canvas.style.cursor="pointer"}},r.Element.a.prototype=new r.Element.TextElementBase,r.Element.image=function(t){this.base=r.Element.RenderedElementBase,this.base(t);var e=this.getHrefAttribute().value;if(""!=e){var i=e.match(/\.svg$/);if(r.Images.push(this),this.loaded=!1,i)this.img=r.ajax(e),this.loaded=!0;else{this.img=document.createElement("img"),1==r.opts.useCORS&&(this.img.crossOrigin="Anonymous");var n=this;this.img.onload=function(){n.loaded=!0},this.img.onerror=function(){r.log('ERROR: image "'+e+'" not found'),n.loaded=!0},this.img.src=e}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),s=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");0!=s&&0!=a&&(t.save(),i?t.drawSvg(this.img,e,n,s,a):(t.translate(e,n),r.AspectRatio(t,this.attribute("preserveAspectRatio").value,s,this.img.width,a,this.img.height,0,0),t.drawImage(this.img,0,0)),t.restore())},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),e=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),n=this.attribute("height").toPixels("y");return new r.BoundingBox(t,e,t+i,e+n)}}},r.Element.image.prototype=new r.Element.RenderedElementBase,r.Element.g=function(t){this.base=r.Element.RenderedElementBase,this.base(t),this.getBoundingBox=function(){for(var t=new r.BoundingBox,e=0;e<this.children.length;e++)t.addBoundingBox(this.children[e].getBoundingBox());return t}},r.Element.g.prototype=new r.Element.RenderedElementBase,r.Element.symbol=function(t){this.base=r.Element.RenderedElementBase,this.base(t),this.render=function(){}},r.Element.symbol.prototype=new r.Element.RenderedElementBase,r.Element.style=function(t){this.base=r.Element.ElementBase,this.base(t);for(var e="",i=0;i<t.childNodes.length;i++)e+=t.childNodes[i].data;e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,""),e=r.compressSpaces(e);for(var s=e.split("}"),i=0;i<s.length;i++)if(""!=r.trim(s[i]))for(var a=s[i].split("{"),o=a[0].split(","),l=a[1].split(";"),h=0;h<o.length;h++){var u=r.trim(o[h]);if(""!=u){for(var c=r.Styles[u]||{},f=0;f<l.length;f++){var p=l[f].indexOf(":"),m=l[f].substr(0,p),d=l[f].substr(p+1,l[f].length-p);null!=m&&null!=d&&(c[r.trim(m)]=new r.Property(r.trim(m),r.trim(d)))}if(r.Styles[u]=c,r.StylesSpecificity[u]=n(u),"@font-face"==u)for(var y=c["font-family"].value.replace(/"/g,""),v=c.src.value.split(","),g=0;g<v.length;g++)if(v[g].indexOf('format("svg")')>0)for(var x=v[g].indexOf("url"),b=v[g].indexOf(")",x),E=v[g].substr(x+5,b-x-6),P=r.parseXml(r.ajax(E)),w=P.getElementsByTagName("font"),B=0;B<w.length;B++){var C=r.CreateElement(w[B]);r.Definitions[y]=C}}}},r.Element.style.prototype=new r.Element.ElementBase,r.Element.use=function(t){this.base=r.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").toPixels("y"))};var e=this.getHrefAttribute().getDefinition();this.path=function(t){null!=e&&e.path(t)},this.getBoundingBox=function(){return null!=e?e.getBoundingBox():void 0},this.renderChildren=function(t){if(null!=e){var i=e;"symbol"==e.type&&(i=new r.Element.svg,i.type="svg",i.attributes.viewBox=new r.Property("viewBox",e.attribute("viewBox").value),i.attributes.preserveAspectRatio=new r.Property("preserveAspectRatio",e.attribute("preserveAspectRatio").value),i.attributes.overflow=new r.Property("overflow",e.attribute("overflow").value),i.children=e.children),"svg"==i.type&&(this.attribute("width").hasValue()&&(i.attributes.width=new r.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(i.attributes.height=new r.Property("height",this.attribute("height").value)));var n=i.parent;i.parent=null,i.render(t),i.parent=n}}},r.Element.use.prototype=new r.Element.RenderedElementBase,r.Element.mask=function(t){this.base=r.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),s=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==s&&0==a){for(var o=new r.BoundingBox,l=0;l<this.children.length;l++)o.addBoundingBox(this.children[l].getBoundingBox());var i=Math.floor(o.x1),n=Math.floor(o.y1),s=Math.floor(o.width()),a=Math.floor(o.height())}var h=e.attribute("mask").value;e.attribute("mask").value="";var u=document.createElement("canvas");u.width=i+s,u.height=n+a;var c=u.getContext("2d");this.renderChildren(c);var f=document.createElement("canvas");f.width=i+s,f.height=n+a;var p=f.getContext("2d");e.render(p),p.globalCompositeOperation="destination-in",p.fillStyle=c.createPattern(u,"no-repeat"),p.fillRect(0,0,i+s,n+a),t.fillStyle=p.createPattern(f,"no-repeat"),t.fillRect(0,0,i+s,n+a),e.attribute("mask").value=h},this.render=function(){}},r.Element.mask.prototype=new r.Element.ElementBase,r.Element.clipPath=function(t){this.base=r.Element.ElementBase,this.base(t),this.apply=function(t){var e=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var i=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){},e.call(t);for(var n=0;n<this.children.length;n++){var s=this.children[n];if("undefined"!=typeof s.path){var a=null;s.style("transform",!1,!0).hasValue()&&(a=new r.Transform(s.style("transform",!1,!0).value),a.apply(t)),s.path(t),CanvasRenderingContext2D.prototype.closePath=i,a&&a.unapply(t)}}i.call(t),t.clip(),CanvasRenderingContext2D.prototype.beginPath=e,CanvasRenderingContext2D.prototype.closePath=i},this.render=function(){}},r.Element.clipPath.prototype=new r.Element.ElementBase,r.Element.filter=function(t){this.base=r.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=e.getBoundingBox(),n=Math.floor(i.x1),s=Math.floor(i.y1),a=Math.floor(i.width()),r=Math.floor(i.height()),o=e.style("filter").value;e.style("filter").value="";for(var l=0,h=0,u=0;u<this.children.length;u++){var c=this.children[u].extraFilterDistance||0;l=Math.max(l,c),h=Math.max(h,c)}var f=document.createElement("canvas");f.width=a+2*l,f.height=r+2*h;var p=f.getContext("2d");p.translate(-n+l,-s+h),e.render(p);for(var u=0;u<this.children.length;u++)"function"==typeof this.children[u].apply&&this.children[u].apply(p,0,0,a+2*l,r+2*h);t.drawImage(f,0,0,a+2*l,r+2*h,n-l,s-h,a+2*l,r+2*h),e.style("filter",!0).value=o},this.render=function(){}},r.Element.filter.prototype=new r.Element.ElementBase,r.Element.feMorphology=function(t){this.base=r.Element.ElementBase,this.base(t),this.apply=function(){}},r.Element.feMorphology.prototype=new r.Element.ElementBase,r.Element.feComposite=function(t){this.base=r.Element.ElementBase,this.base(t),this.apply=function(){}},r.Element.feComposite.prototype=new r.Element.ElementBase,r.Element.feColorMatrix=function(t){function e(t,e,i,n,s,a){return t[i*n*4+4*e+a]}function i(t,e,i,n,s,a,r){t[i*n*4+4*e+a]=r}function n(t,e){var i=s[t];return i*(0>i?e-255:e)}this.base=r.Element.ElementBase,this.base(t);var s=r.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var a=s[0];s=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=s[0]*Math.PI/180,l=function(t,e,i){return t+Math.cos(o)*e+Math.sin(o)*i};s=[l(.213,.787,-.213),l(.715,-.715,-.715),l(.072,-.072,.928),0,0,l(.213,-.213,.143),l(.715,.285,.14),l(.072,-.072,-.283),0,0,l(.213,-.213,-.787),l(.715,-.715,.715),l(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.apply=function(t,s,a,r,o){for(var l=t.getImageData(0,0,r,o),a=0;o>a;a++)for(var s=0;r>s;s++){var h=e(l.data,s,a,r,o,0),u=e(l.data,s,a,r,o,1),c=e(l.data,s,a,r,o,2),f=e(l.data,s,a,r,o,3);i(l.data,s,a,r,o,0,n(0,h)+n(1,u)+n(2,c)+n(3,f)+n(4,1)),i(l.data,s,a,r,o,1,n(5,h)+n(6,u)+n(7,c)+n(8,f)+n(9,1)),i(l.data,s,a,r,o,2,n(10,h)+n(11,u)+n(12,c)+n(13,f)+n(14,1)),i(l.data,s,a,r,o,3,n(15,h)+n(16,u)+n(17,c)+n(18,f)+n(19,1))}t.clearRect(0,0,r,o),t.putImageData(l,0,0)}},r.Element.feColorMatrix.prototype=new r.Element.ElementBase,r.Element.feGaussianBlur=function(t){this.base=r.Element.ElementBase,this.base(t),this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue()),this.extraFilterDistance=this.blurRadius,this.apply=function(t,i,n,s,a){return"undefined"==typeof e.canvasRGBA?void r.log("ERROR: StackBlur.js must be included for blur to work"):(t.canvas.id=r.UniqueId(),t.canvas.style.display="none",document.body.appendChild(t.canvas),e.canvasRGBA(t.canvas.id,i,n,s,a,this.blurRadius),void document.body.removeChild(t.canvas))}},r.Element.feGaussianBlur.prototype=new r.Element.ElementBase,r.Element.title=function(){},r.Element.title.prototype=new r.Element.ElementBase,r.Element.desc=function(){},r.Element.desc.prototype=new r.Element.ElementBase,r.Element.MISSING=function(t){r.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")},r.Element.MISSING.prototype=new r.Element.ElementBase,r.CreateElement=function(t){var e=t.nodeName.replace(/^[^:]+:/,"");e=e.replace(/\-/g,"");var i=null;return i="undefined"!=typeof r.Element[e]?new r.Element[e](t):new r.Element.MISSING(t),i.type=t.nodeName,i},r.load=function(t,e){r.loadXml(t,r.ajax(e))},r.loadXml=function(t,e){r.loadXmlDoc(t,r.parseXml(e))},r.loadXmlDoc=function(t,e){r.init(t);var i=function(e){for(var i=t.canvas;i;)e.x-=i.offsetLeft,e.y-=i.offsetTop,i=i.offsetParent;return window.scrollX&&(e.x+=window.scrollX),window.scrollY&&(e.y+=window.scrollY),e};1!=r.opts.ignoreMouse&&(t.canvas.onclick=function(t){var e=i(new r.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));r.Mouse.onclick(e.x,e.y)},t.canvas.onmousemove=function(t){var e=i(new r.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));r.Mouse.onmousemove(e.x,e.y)});var n=r.CreateElement(e.documentElement);n.root=!0,n.addStylesFromStyleDefinition();var s=!0,a=function(){r.ViewPort.Clear(),t.canvas.parentNode&&r.ViewPort.SetCurrent(t.canvas.parentNode.clientWidth,t.canvas.parentNode.clientHeight),1!=r.opts.ignoreDimensions&&(n.style("width").hasValue()&&(t.canvas.width=n.style("width").toPixels("x"),t.canvas.style.width=t.canvas.width+"px"),n.style("height").hasValue()&&(t.canvas.height=n.style("height").toPixels("y"),t.canvas.style.height=t.canvas.height+"px"));var i=t.canvas.clientWidth||t.canvas.width,a=t.canvas.clientHeight||t.canvas.height;if(1==r.opts.ignoreDimensions&&n.style("width").hasValue()&&n.style("height").hasValue()&&(i=n.style("width").toPixels("x"),a=n.style("height").toPixels("y")),r.ViewPort.SetCurrent(i,a),null!=r.opts.offsetX&&(n.attribute("x",!0).value=r.opts.offsetX),null!=r.opts.offsetY&&(n.attribute("y",!0).value=r.opts.offsetY),null!=r.opts.scaleWidth||null!=r.opts.scaleHeight){var o=null,l=null,h=r.ToNumberArray(n.attribute("viewBox").value);null!=r.opts.scaleWidth&&(n.attribute("width").hasValue()?o=n.attribute("width").toPixels("x")/r.opts.scaleWidth:isNaN(h[2])||(o=h[2]/r.opts.scaleWidth)),null!=r.opts.scaleHeight&&(n.attribute("height").hasValue()?l=n.attribute("height").toPixels("y")/r.opts.scaleHeight:isNaN(h[3])||(l=h[3]/r.opts.scaleHeight)),null==o&&(o=l),null==l&&(l=o),n.attribute("width",!0).value=r.opts.scaleWidth,n.attribute("height",!0).value=r.opts.scaleHeight,n.style("transform",!0,!0).value+=" scale("+1/o+","+1/l+")"}1!=r.opts.ignoreClear&&t.clearRect(0,0,i,a),n.render(t),s&&(s=!1,"function"==typeof r.opts.renderCallback&&r.opts.renderCallback(e))},o=!0;r.ImagesLoaded()&&(o=!1,a()),r.intervalID=setInterval(function(){var t=!1;if(o&&r.ImagesLoaded()&&(o=!1,t=!0),1!=r.opts.ignoreMouse&&(t|=r.Mouse.hasEvents()),1!=r.opts.ignoreAnimation)for(var e=0;e<r.Animations.length;e++)t|=r.Animations[e].update(1e3/r.FRAMERATE);"function"==typeof r.opts.forceRedraw&&1==r.opts.forceRedraw()&&(t=!0),t&&(a(),r.Mouse.runEvents())},1e3/r.FRAMERATE)},r.stop=function(){r.intervalID&&clearInterval(r.intervalID)},r.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onclick&&t.onclick()}})},this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onmousemove&&t.onmousemove()}})},this.eventElements=[],this.checkPath=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInPath&&e.isPointInPath(n.x,n.y)&&(this.eventElements[i]=t)}},this.checkBoundingBox=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInBox(n.x,n.y)&&(this.eventElements[i]=t)}},this.runEvents=function(){r.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++)for(var e=this.events[t],i=this.eventElements[t];i;)e.run(i),i=i.parent;this.events=[],this.eventElements=[]}},r}var a,r=function(t,e,i){if(null!=t||null!=e||null!=i){"string"==typeof t&&(t=document.getElementById(t)),null!=t.svg&&t.svg.stop();var n=s(i||{});(1!=t.childNodes.length||"OBJECT"!=t.childNodes[0].nodeName)&&(t.svg=n);var a=t.getContext("2d");"undefined"!=typeof e.documentElement?n.loadXmlDoc(a,e):"<"==e.substr(0,1)?n.loadXml(a,e):n.load(a,e)}else for(var o=document.querySelectorAll("svg"),l=0;l<o.length;l++){var h=o[l],u=document.createElement("canvas");u.width=h.clientWidth,u.height=h.clientHeight,h.parentNode.insertBefore(u,h),h.parentNode.removeChild(h);var c=document.createElement("div");c.appendChild(h),r(u,c.innerHTML)}};"undefined"== Element?1:"undefined"!=typeof Element.prototype.matches?a=function(t,e){return t.matches(e)}:"undefined"!=typeof Element.prototype.webkitMatchesSelector?a=function(t,e){return t.webkitMatchesSelector(e)}:"undefined"!=typeof Element.prototype.mozMatchesSelector?a=function(t,e){return t.mozMatchesSelector(e)}:"undefined"!=typeof Element.prototype.msMatchesSelector?a=function(t,e){return t.msMatchesSelector(e)}:"undefined"!=typeof Element.prototype.oMatchesSelector?a=function(t,e){return t.oMatchesSelector(e)}:(("function"==typeof jQuery||"function"==typeof Zepto)&&(a=function(t,e){return $(t).is(e)}),"undefined"==typeof a&&(a=Sizzle.matchesSelector));var o=/(\[[^\]]+\])/g,l=/(#[^\s\+>~\.\[:]+)/g,h=/(\.[^\s\+>~\.\[:]+)/g,u=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,c=/(:[\w-]+\([^\)]*\))/gi,f=/(:[^\s\+>~\.\[:]+)/g,p=/([^\s\+>~\.\[:]+)/g;return"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,i,n,s){r(this.canvas,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:i,scaleWidth:n,scaleHeight:s})}),r});
;
!function(t){if("object"!=typeof exports||"undefined"==typeof module)if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.JSZip=t()}}(function(){var t,e,r;return function t(e,r,n){function i(s,o){if(!r[s]){if(!e[s]){var d="function"==typeof require&&require;if(!o&&d)return d(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var h=r[s]={exports:{}};e[s][0].call(h.exports,function(t){var r=e[s][1][t];return i(r||t)},h,h.exports,t,e,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t,e){var r="",i,a,s,o,d,h,l,u=0;while(u<t.length)i=t.charCodeAt(u++),a=t.charCodeAt(u++),s=t.charCodeAt(u++),o=i>>2,d=(3&i)<<4|a>>4,h=(15&a)<<2|s>>6,l=63&s,isNaN(a)?h=l=64:isNaN(s)&&(l=64),r=r+n.charAt(o)+n.charAt(d)+n.charAt(h)+n.charAt(l);return r},r.decode=function(t,e){var r="",i,a,s,o,d,h,l,u=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(u<t.length)o=n.indexOf(t.charAt(u++)),d=n.indexOf(t.charAt(u++)),h=n.indexOf(t.charAt(u++)),l=n.indexOf(t.charAt(u++)),i=o<<2|d>>4,a=(15&d)<<4|h>>2,s=(3&h)<<6|l,r+=String.fromCharCode(i),64!=h&&(r+=String.fromCharCode(a)),64!=l&&(r+=String.fromCharCode(s));return r}},{}],2:[function(t,e,r){"use strict";function n(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},e.exports=n},{}],3:[function(t,e,r){"use strict";r.STORE={magic:"\0\0",compress:function(t,e){return t},uncompress:function(t){return t},compressInputType:null,uncompressInputType:null},r.DEFLATE=t("./flate")},{"./flate":8}],4:[function(t,e,r){"use strict";var n=t("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];e.exports=function t(e,r){if(void 0===e||!e.length)return 0;var a="string"!==n.getTypeOf(e);void 0===r&&(r=0);var s=0,o=0,d=0;r^=-1;for(var h=0,l=e.length;h<l;h++)d=a?e[h]:e.charCodeAt(h),o=255&(r^d),s=i[o],r=r>>>8^s;return-1^r}},{"./utils":21}],5:[function(t,e,r){"use strict";function n(t){this.data=null,this.length=0,this.index=0}var i=t("./utils");n.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e=0,r;for(this.checkOffset(t),r=this.index+t-1;r>=this.index;r--)e=(e<<8)+this.byteAt(r);return this.index+=t,e},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1)}},e.exports=n},{"./utils":21}],6:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!1,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],7:[function(t,e,r){"use strict";var n=t("./utils");r.string2binary=function(t){return n.string2binary(t)},r.string2Uint8Array=function(t){return n.transformTo("uint8array",t)},r.uint8Array2String=function(t){return n.transformTo("string",t)},r.string2Blob=function(t){var e=n.transformTo("arraybuffer",t);return n.arrayBuffer2Blob(e)},r.arrayBuffer2Blob=function(t){return n.arrayBuffer2Blob(t)},r.transformTo=function(t,e){return n.transformTo(t,e)},r.getTypeOf=function(t){return n.getTypeOf(t)},r.checkSupport=function(t){return n.checkSupport(t)},r.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS,r.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS,r.pretty=function(t){return n.pretty(t)},r.findCompression=function(t){return n.findCompression(t)},r.isRegExp=function(t){return n.isRegExp(t)}},{"./utils":21}],8:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako");r.uncompressInputType=n?"uint8array":"array",r.compressInputType=n?"uint8array":"array",r.magic="\b\0",r.compress=function(t,e){return i.deflateRaw(t,{level:e.level||-1})},r.uncompress=function(t){return i.inflateRaw(t)}},{pako:24}],9:[function(t,e,r){"use strict";function n(t,e){if(!(this instanceof n))return new n(t,e);this.files={},this.comment=null,this.root="",t&&this.load(t,e),this.clone=function(){var t=new n;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}var i=t("./base64");n.prototype=t("./object"),n.prototype.load=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.utils=t("./deprecatedPublicUtils"),n.base64={encode:function(t){return i.encode(t)},decode:function(t){return i.decode(t)}},n.compressions=t("./compressions"),e.exports=n},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(t,e,r){"use strict";var n=t("./base64"),i=t("./zipEntries");e.exports=function(t,e){var r,a,s,o;for(e=e||{},e.base64&&(t=n.decode(t)),a=new i(t,e),r=a.files,s=0;s<r.length;s++)o=r[s],this.file(o.fileName,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileComment.length?o.fileComment:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:e.createFolders});return a.zipComment.length&&(this.comment=a.zipComment),this}},{"./base64":1,"./zipEntries":22}],11:[function(t,e,r){(function(t){"use strict";e.exports=function(e,r){return new t(e,r)},e.exports.test=function(e){return t.isBuffer(e)}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],12:[function(t,e,r){"use strict";function n(t){this.data=t,this.length=this.data.length,this.index=0}var i=t("./uint8ArrayReader");n.prototype=new i,n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.index,this.index+t);return this.index+=t,e},e.exports=n},{"./uint8ArrayReader":18}],13:[function(t,e,r){"use strict";var n=t("./support"),i=t("./utils"),a=t("./crc32"),s=t("./signature"),o=t("./defaults"),d=t("./base64"),h=t("./compressions"),l=t("./compressedObject"),u=t("./nodeBuffer"),f=t("./utf8"),c=t("./stringWriter"),p=t("./uint8ArrayWriter"),_=function(t){if(t._data instanceof l&&(t._data=t._data.getContent(),t.options.binary=!0,t.options.base64=!1,"uint8array"===i.getTypeOf(t._data))){var e=t._data;t._data=new Uint8Array(e.length),0!==e.length&&t._data.set(e,0)}return t._data},m=function(t){var e=_(t);if("string"===i.getTypeOf(e)){if(!t.options.binary&&n.nodebuffer)return u(e,"utf-8");return t.asBinary()}return e},g=function(t){var e=_(this);if(null===e||void 0===e)return"";return this.options.base64&&(e=d.decode(e)),e=t&&this.options.binary?I.utf8decode(e):i.transformTo("string",e),t||this.options.binary||(e=i.transformTo("string",I.utf8encode(e))),e},b=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this.options=r,this._initialMetadata={dir:r.dir,date:r.date}};b.prototype={asText:function(){return g.call(this,!0)},asBinary:function(){return g.call(this,!1)},asNodeBuffer:function(){var t=m(this);return i.transformTo("nodebuffer",t)},asUint8Array:function(){var t=m(this);return i.transformTo("uint8array",t)},asArrayBuffer:function(){return this.asUint8Array().buffer}};var w=function(t,e){var r="",n;for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r},v=function(){var t={},e,r;for(e=0;e<arguments.length;e++)for(r in arguments[e])arguments[e].hasOwnProperty(r)&&void 0===t[r]&&(t[r]=arguments[e][r]);return t},y=function(t){return t=t||{},!0!==t.base64||null!==t.binary&&void 0!==t.binary||(t.binary=!0),t=v(t,o),t.date=t.date||new Date,null!==t.compression&&(t.compression=t.compression.toUpperCase()),t},k=function(t,e,r){var n=i.getTypeOf(e),a;if(r=y(r),"string"==typeof r.unixPermissions&&(r.unixPermissions=parseInt(r.unixPermissions,8)),r.unixPermissions&&16384&r.unixPermissions&&(r.dir=!0),r.dosPermissions&&16&r.dosPermissions&&(r.dir=!0),r.dir&&(t=z(t)),r.createFolders&&(a=x(t))&&C.call(this,a,!0),r.dir||null===e||void 0===e)r.base64=!1,r.binary=!1,e=null,n=null;else if("string"===n)r.binary&&!r.base64&&!0!==r.optimizedBinaryString&&(e=i.string2binary(e));else{if(r.base64=!1,r.binary=!0,!(n||e instanceof l))throw new Error("The data of '"+t+"' is in an unsupported format !");"arraybuffer"===n&&(e=i.transformTo("uint8array",e))}var s=new b(t,e,r);return this.files[t]=s,s},x=function(t){"/"==t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},z=function(t){return"/"!=t.slice(-1)&&(t+="/"),t},C=function(t,e){return e=void 0!==e&&e,t=z(t),this.files[t]||k.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]},A=function(t,e,r){var n=new l,s;return t._data instanceof l?(n.uncompressedSize=t._data.uncompressedSize,n.crc32=t._data.crc32,0===n.uncompressedSize||t.dir?(e=h.STORE,n.compressedContent="",n.crc32=0):t._data.compressionMethod===e.magic?n.compressedContent=t._data.getCompressedContent():(s=t._data.getContent(),n.compressedContent=e.compress(i.transformTo(e.compressInputType,s),r))):(s=m(t),s&&0!==s.length&&!t.dir||(e=h.STORE,s=""),n.uncompressedSize=s.length,n.crc32=a(s),n.compressedContent=e.compress(i.transformTo(e.compressInputType,s),r)),n.compressedSize=n.compressedContent.length,n.compressionMethod=e.magic,n},E=function(t,e){var r=t;return t||(r=e?16893:33204),(65535&r)<<16},S=function(t,e){return 63&(t||0)},B=function(t,e,r,n,o){var d=r.compressedContent,h=i.transformTo("string",f.utf8encode(e.name)),l=e.comment||"",u=i.transformTo("string",f.utf8encode(l)),c=h.length!==e.name.length,p=u.length!==l.length,_=e.options,m,g,b="",v="",y="",k,x;k=e._initialMetadata.dir!==e.dir?e.dir:_.dir,x=e._initialMetadata.date!==e.date?e.date:_.date;var z=0,C=0;k&&(z|=16),"UNIX"===o?(C=798,z|=E(e.unixPermissions,k)):(C=20,z|=S(e.dosPermissions,k)),m=x.getHours(),m<<=6,m|=x.getMinutes(),m<<=5,m|=x.getSeconds()/2,g=x.getFullYear()-1980,g<<=4,g|=x.getMonth()+1,g<<=5,g|=x.getDate(),c&&(v=w(1,1)+w(a(h),4)+h,b+="up"+w(v.length,2)+v),p&&(y=w(1,1)+w(this.crc32(u),4)+u,b+="uc"+w(y.length,2)+y);var A="";return A+="\n\0",A+=c||p?"\0\b":"\0\0",A+=r.compressionMethod,A+=w(m,2),A+=w(g,2),A+=w(r.crc32,4),A+=w(r.compressedSize,4),A+=w(r.uncompressedSize,4),A+=w(h.length,2),A+=w(b.length,2),{fileRecord:s.LOCAL_FILE_HEADER+A+h+b,dirRecord:s.CENTRAL_FILE_HEADER+w(C,2)+A+w(u.length,2)+"\0\0"+"\0\0"+w(z,4)+w(n,4)+h+b+u,compressedObject:r}},I={load:function(t,e){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(t){var e=[],r,n,i,a;for(r in this.files){if(!this.files.hasOwnProperty(r))continue;i=this.files[r],a=new b(i.name,i._data,v(i.options)),n=r.slice(this.root.length,r.length),r.slice(0,this.root.length)===this.root&&t(n,a)&&e.push(a)}return e},file:function(t,e,r){if(1===arguments.length){if(i.isRegExp(t)){var n=t;return this.filter(function(t,e){return!e.dir&&n.test(t)})}return this.filter(function(e,r){return!r.dir&&e===t})[0]||null}return t=this.root+t,k.call(this,t,e,r),this},folder:function(t){if(!t)return this;if(i.isRegExp(t))return this.filter(function(e,r){return r.dir&&t.test(e)});var e=this.root+t,r=C.call(this,e),n=this.clone();return n.root=r.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!=t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter(function(e,r){return r.name.slice(0,t.length)===t}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(t){t=v(t||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip"}),i.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var e=[],r=0,n=0,a,o,l=i.transformTo("string",this.utf8encode(t.comment||this.comment||""));for(var u in this.files){if(!this.files.hasOwnProperty(u))continue;var f=this.files[u],_=f.options.compression||t.compression.toUpperCase(),m=h[_];if(!m)throw new Error(_+" is not a valid compression method !");var g=f.options.compressionOptions||t.compressionOptions||{},b=A.call(this,f,m,g),y=B.call(this,u,f,b,r,t.platform);r+=y.fileRecord.length+b.compressedSize,n+=y.dirRecord.length,e.push(y)}var k="";k=s.CENTRAL_DIRECTORY_END+"\0\0"+"\0\0"+w(e.length,2)+w(e.length,2)+w(n,4)+w(r,4)+w(l.length,2)+l;var x=t.type.toLowerCase();for(a="uint8array"===x||"arraybuffer"===x||"blob"===x||"nodebuffer"===x?new p(r+n+k.length):new c(r+n+k.length),o=0;o<e.length;o++)a.append(e[o].fileRecord),a.append(e[o].compressedObject.compressedContent);for(o=0;o<e.length;o++)a.append(e[o].dirRecord);a.append(k);var z=a.finalize();switch(t.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return i.transformTo(t.type.toLowerCase(),z);case"blob":return i.arrayBuffer2Blob(i.transformTo("arraybuffer",z),t.mimeType);case"base64":return t.base64?d.encode(z):z;default:return z}},crc32:function(t,e){return a(t,e)},utf8encode:function(t){return i.transformTo("string",f.utf8encode(t))},utf8decode:function(t){return f.utf8decode(t)}};e.exports=I},{"./base64":1,"./compressedObject":2,"./compressions":3,"./crc32":4,"./defaults":6,"./nodeBuffer":11,"./signature":14,"./stringWriter":16,"./support":17,"./uint8ArrayWriter":19,"./utf8":20,"./utils":21}],14:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],15:[function(t,e,r){"use strict";function n(t,e){this.data=t,e||(this.data=a.string2binary(this.data)),this.length=this.data.length,this.index=0}var i=t("./dataReader"),a=t("./utils");n.prototype=new i,n.prototype.byteAt=function(t){return this.data.charCodeAt(t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)},n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.index,this.index+t);return this.index+=t,e},e.exports=n},{"./dataReader":5,"./utils":21}],16:[function(t,e,r){"use strict";var n=t("./utils"),i=function(){this.data=[]};i.prototype={append:function(t){t=n.transformTo("string",t),this.data.push(t)},finalize:function(){return this.data.join("")}},e.exports=i},{"./utils":21}],17:[function(t,e,r){(function(t){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==t,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var e=new ArrayBuffer(0);try{r.blob=0===new Blob([e],{type:"application/zip"}).size}catch(t){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;i.append(e),r.blob=0===i.getBlob("application/zip").size}catch(t){r.blob=!1}}}}).call(this,"undefined"!=typeof Buffer?Buffer:void 0)},{}],18:[function(t,e,r){"use strict";function n(t){t&&(this.data=t,this.length=this.data.length,this.index=0)}var i=t("./dataReader");n.prototype=new i,n.prototype.byteAt=function(t){return this.data[t]},n.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===e&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a;return-1},n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.index,this.index+t);return this.index+=t,e},e.exports=n},{"./dataReader":5}],19:[function(t,e,r){"use strict";var n=t("./utils"),i=function(t){this.data=new Uint8Array(t),this.index=0};i.prototype={append:function(t){0!==t.length&&(t=n.transformTo("uint8array",t),this.data.set(t,this.index),this.index+=t.length)},finalize:function(){return this.data}},e.exports=i},{"./utils":21}],20:[function(t,e,r){"use strict";for(var n=t("./utils"),i=t("./support"),a=t("./nodeBuffer"),s=new Array(256),o=0;o<256;o++)s[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;s[254]=s[254]=1;var d=function(t){var e,r,n,a,s,o=t.length,d=0;for(a=0;a<o;a++)r=t.charCodeAt(a),55296==(64512&r)&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),d+=r<128?1:r<2048?2:r<65536?3:4;for(e=i.uint8array?new Uint8Array(d):new Array(d),s=0,a=0;s<d;a++)r=t.charCodeAt(a),55296==(64512&r)&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?e[s++]=r:r<2048?(e[s++]=192|r>>>6,e[s++]=128|63&r):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|63&r):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|63&r);return e},h=function(t,e){var r;e=e||t.length,e>t.length&&(e=t.length),r=e-1;while(r>=0&&128==(192&t[r]))r--;if(r<0)return e;if(0===r)return e;return r+s[t[r]]>e?r:e},l=function(t){var e,r,i,a,o,d=t.length,h=new Array(2*d);for(i=0,r=0;r<d;){if((a=t[r++])<128){h[i++]=a;continue}if((o=s[a])>4){h[i++]=65533,r+=o-1;continue}a&=2===o?31:3===o?15:7;while(o>1&&r<d)a=a<<6|63&t[r++],o--;if(o>1){h[i++]=65533;continue}a<65536?h[i++]=a:(a-=65536,h[i++]=55296|a>>10&1023,h[i++]=56320|1023&a)}return h.length!==i&&(h.subarray?h=h.subarray(0,i):h.length=i),n.applyFromCharCode(h)};r.utf8encode=function t(e){if(i.nodebuffer)return a(e,"utf-8");return d(e)},r.utf8decode=function t(e){if(i.nodebuffer)return n.transformTo("nodebuffer",e).toString("utf-8");e=n.transformTo(i.uint8array?"uint8array":"array",e);var r=[],a=0,s=e.length;while(a<s){var o=h(e,Math.min(a+65536,s));i.uint8array?r.push(l(e.subarray(a,o))):r.push(l(e.slice(a,o))),a=o}return r.join("")}},{"./nodeBuffer":11,"./support":17,"./utils":21}],21:[function(t,e,r){"use strict";function n(t){return t}function i(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}function a(t){var e=65536,n=[],i=t.length,a=r.getTypeOf(t),s=0,o=!0;try{switch(a){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,h(0));break}}catch(t){o=!1}if(!o){for(var d="",l=0;l<t.length;l++)d+=String.fromCharCode(t[l]);return d}while(s<i&&e>1)try{"array"===a||"nodebuffer"===a?n.push(String.fromCharCode.apply(null,t.slice(s,Math.min(s+e,i)))):n.push(String.fromCharCode.apply(null,t.subarray(s,Math.min(s+e,i)))),s+=e}catch(t){e=Math.floor(e/2)}return n.join("")}function s(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}var o=t("./support"),d=t("./compressions"),h=t("./nodeBuffer");r.string2binary=function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(255&t.charCodeAt(r));return e},r.arrayBuffer2Blob=function(t,e){r.checkSupport("blob"),e=e||"application/zip";try{return new Blob([t],{type:e})}catch(r){try{var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=new n;return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}},r.applyFromCharCode=a;var l={};l.string={string:n,array:function(t){return i(t,new Array(t.length))},arraybuffer:function(t){return l.string.uint8array(t).buffer},uint8array:function(t){return i(t,new Uint8Array(t.length))},nodebuffer:function(t){return i(t,h(t.length))}},l.array={string:a,array:n,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return h(t)}},l.arraybuffer={string:function(t){return a(new Uint8Array(t))},array:function(t){return s(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:n,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return h(new Uint8Array(t))}},l.uint8array={string:a,array:function(t){return s(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:n,nodebuffer:function(t){return h(t)}},l.nodebuffer={string:a,array:function(t){return s(t,new Array(t.length))},arraybuffer:function(t){return l.nodebuffer.uint8array(t).buffer},uint8array:function(t){return s(t,new Uint8Array(t.length))},nodebuffer:n},r.transformTo=function(t,e){if(e||(e=""),!t)return e;r.checkSupport(t);var n=r.getTypeOf(e);return l[n][t](e)},r.getTypeOf=function(t){if("string"==typeof t)return"string";if("[object Array]"===Object.prototype.toString.call(t))return"array";if(o.nodebuffer&&h.test(t))return"nodebuffer";if(o.uint8array&&t instanceof Uint8Array)return"uint8array";if(o.arraybuffer&&t instanceof ArrayBuffer)return"arraybuffer"},r.checkSupport=function(t){if(!o[t.toLowerCase()])throw new Error(t+" is not supported by this browser")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var e="",r,n;for(n=0;n<(t||"").length;n++)r=t.charCodeAt(n),e+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return e},r.findCompression=function(t){for(var e in d){if(!d.hasOwnProperty(e))continue;if(d[e].magic===t)return d[e]}return null},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}},{"./compressions":3,"./nodeBuffer":11,"./support":17}],22:[function(t,e,r){"use strict";function n(t,e){this.files=[],this.loadOptions=e,t&&this.load(t)}var i=t("./stringReader"),a=t("./nodeBufferReader"),s=t("./uint8ArrayReader"),o=t("./utils"),d=t("./signature"),h=t("./zipEntry"),l=t("./support"),u=t("./object");n.prototype={checkSignature:function(t){var e=this.reader.readString(4);if(e!==t)throw new Error("Corrupted zip or bug : unexpected signature "+"("+o.pretty(e)+", expected "+o.pretty(t)+")")},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2),this.zipComment=this.reader.readString(this.zipCommentLength),this.zipComment=u.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var t=this.zip64EndOfCentralSize-44,e=0,r,n,i;while(e<t)r=this.reader.readInt(2),n=this.reader.readInt(4),i=this.reader.readString(n),this.zip64ExtensibleData[r]={id:r,length:n,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(d.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;this.reader.setIndex(this.centralDirOffset);while(this.reader.readString(4)===d.CENTRAL_FILE_HEADER)t=new h({zip64:this.zip64},this.loadOptions),t.readCentralPart(this.reader),this.files.push(t)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(d.CENTRAL_DIRECTORY_END);if(-1===t){var e=!0;try{this.reader.setIndex(0),this.checkSignature(d.LOCAL_FILE_HEADER),e=!1}catch(t){}throw e?new Error("Can't find end of central directory : is this a zip file ? "+"If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip : can't find end of central directory")}if(this.reader.setIndex(t),this.checkSignature(d.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,-1===(t=this.reader.lastIndexOfSignature(d.ZIP64_CENTRAL_DIRECTORY_LOCATOR)))throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");this.reader.setIndex(t),this.checkSignature(d.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(d.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}},prepareReader:function(t){var e=o.getTypeOf(t);"string"!==e||l.uint8array?this.reader="nodebuffer"===e?new a(t):new s(o.transformTo("uint8array",t)):this.reader=new i(t,this.loadOptions.optimizedBinaryString)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=n},{"./nodeBufferReader":12,"./object":13,"./signature":14,"./stringReader":15,"./support":17,"./uint8ArrayReader":18,"./utils":21,"./zipEntry":23}],23:[function(t,e,r){"use strict";function n(t,e){this.options=t,this.loadOptions=e}var i=t("./stringReader"),a=t("./utils"),s=t("./compressedObject"),o=t("./object");n.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},prepareCompressedContent:function(t,e,r){return function(){var n=t.index;t.setIndex(e);var i=t.readData(r);return t.setIndex(n),i}},prepareContent:function(t,e,r,n,i){return function(){var t=a.transformTo(n.uncompressInputType,this.getCompressedContent()),e=n.uncompress(t);if(e.length!==i)throw new Error("Bug : uncompressed data size mismatch");return e}},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readString(this.fileNameLength),t.skip(r),-1==this.compressedSize||-1==this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory "+"(compressedSize == -1 || uncompressedSize == -1)");if(null===(e=a.findCompression(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+this.fileName+")");if(this.decompressed=new s,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(t,t.index,this.compressedSize,e),this.decompressed.getContent=this.prepareContent(t,t.index,this.compressedSize,e,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=a.transformTo("string",this.decompressed.getContent()),o.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(t){if(this.versionMadeBy=t.readInt(2),this.versionNeeded=t.readInt(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4),this.fileNameLength=t.readInt(2),this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=t.readString(this.fileNameLength),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readString(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileName.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(!this.extraFields[1])return;var e=new i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(t){var e=t.index,r,n,i;this.extraFields=this.extraFields||{};while(t.index<e+this.extraFieldsLength)r=t.readInt(2),n=t.readInt(2),i=t.readString(n),this.extraFields[r]={id:r,length:n,value:i}},handleUTF8:function(){if(this.useUTF8())this.fileName=o.utf8decode(this.fileName),this.fileComment=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();null!==t&&(this.fileName=t);var e=this.findExtraFieldUnicodeComment();null!==e&&(this.fileComment=e)}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=new i(t.value);if(1!==e.readInt(1))return null;if(o.crc32(this.fileName)!==e.readInt(4))return null;return o.utf8decode(e.readString(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=new i(t.value);if(1!==e.readInt(1))return null;if(o.crc32(this.fileComment)!==e.readInt(4))return null;return o.utf8decode(e.readString(t.length-5))}return null}},e.exports=n},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(t,e,r){"use strict";var n=t("./lib/utils/common").assign,i=t("./lib/deflate"),a=t("./lib/inflate"),s=t("./lib/zlib/constants"),o={};n(o,i,a,s),e.exports=o},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(t,e,r){"use strict";function n(t,e){var r=new g(e);if(r.push(t,!0),r.err)throw r.msg;return r.result}function i(t,e){return e=e||{},e.raw=!0,n(t,e)}function a(t,e){return e=e||{},e.gzip=!0,n(t,e)}var s=t("./zlib/deflate.js"),o=t("./utils/common"),d=t("./utils/strings"),h=t("./zlib/messages"),l=t("./zlib/zstream"),u=4,f=0,c=1,p=-1,_=0,m=8,g=function(t){this.options=o.assign({level:p,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:_,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=s.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==f)throw new Error(h[r]);e.header&&s.deflateSetHeader(this.strm,e.header)};g.prototype.push=function(t,e){var r=this.strm,n=this.options.chunkSize,i,a;if(this.ended)return!1;a=e===~~e?e:!0===e?u:0,r.input="string"==typeof t?d.string2buf(t):t,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new o.Buf8(n),r.next_out=0,r.avail_out=n),(i=s.deflate(r,a))!==c&&i!==f)return this.onEnd(i),this.ended=!0,!1;(0===r.avail_out||0===r.avail_in&&a===u)&&("string"===this.options.to?this.onData(d.buf2binstring(o.shrinkBuf(r.output,r.next_out))):this.onData(o.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||0===r.avail_out)&&i!==c);if(a===u)return i=s.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===f;return!0},g.prototype.onData=function(t){this.chunks.push(t)},g.prototype.onEnd=function(t){t===f&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=g,r.deflate=n,r.deflateRaw=i,r.gzip=a},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(t,e,r){"use strict";function n(t,e){var r=new f(e);if(r.push(t,!0),r.err)throw r.msg;return r.result}function i(t,e){return e=e||{},e.raw=!0,n(t,e)}var a=t("./zlib/inflate.js"),s=t("./utils/common"),o=t("./utils/strings"),d=t("./zlib/constants"),h=t("./zlib/messages"),l=t("./zlib/zstream"),u=t("./zlib/gzheader"),f=function(t){this.options=s.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=a.inflateInit2(this.strm,e.windowBits);if(r!==d.Z_OK)throw new Error(h[r]);this.header=new u,a.inflateGetHeader(this.strm,this.header)};f.prototype.push=function(t,e){var r=this.strm,n=this.options.chunkSize,i,h,l,u,f;if(this.ended)return!1;h=e===~~e?e:!0===e?d.Z_FINISH:d.Z_NO_FLUSH,r.input="string"==typeof t?o.binstring2buf(t):t,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new s.Buf8(n),r.next_out=0,r.avail_out=n),(i=a.inflate(r,d.Z_NO_FLUSH))!==d.Z_STREAM_END&&i!==d.Z_OK)return this.onEnd(i),this.ended=!0,!1;r.next_out&&(0===r.avail_out||i===d.Z_STREAM_END||0===r.avail_in&&h===d.Z_FINISH)&&("string"===this.options.to?(l=o.utf8border(r.output,r.next_out),u=r.next_out-l,f=o.buf2string(r.output,l),r.next_out=u,r.avail_out=n-u,u&&s.arraySet(r.output,r.output,l,u,0),this.onData(f)):this.onData(s.shrinkBuf(r.output,r.next_out)))}while(r.avail_in>0&&i!==d.Z_STREAM_END);if(i===d.Z_STREAM_END&&(h=d.Z_FINISH),h===d.Z_FINISH)return i=a.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===d.Z_OK;return!0},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===d.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=f,r.inflate=n,r.inflateRaw=i,r.ungzip=n},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){var e=Array.prototype.slice.call(arguments,1);while(e.length){var r=e.shift();if(!r)continue;if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}return t},r.shrinkBuf=function(t,e){if(t.length===e)return t;if(t.subarray)return t.subarray(0,e);return t.length=e,t};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)return void t.set(e.subarray(r,r+n),i);for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){var e,r,n,i,a,s;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(s=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)a=t[e],s.set(a,i),i+=a.length;return s}},a={arraySet:function(t,e,r,n,i){for(var a=0;a<n;a++)t[i+a]=e[r+a]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],28:[function(t,e,r){"use strict";function n(t,e){if(e<65537&&(t.subarray&&s||!t.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}var i=t("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(t){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=!1}for(var o=new i.Buf8(256),d=0;d<256;d++)o[d]=d>=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;o[254]=o[254]=1,r.string2buf=function(t){var e,r,n,a,s,o=t.length,d=0;for(a=0;a<o;a++)r=t.charCodeAt(a),55296==(64512&r)&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),d+=r<128?1:r<2048?2:r<65536?3:4;for(e=new i.Buf8(d),s=0,a=0;s<d;a++)r=t.charCodeAt(a),55296==(64512&r)&&a+1<o&&56320==(64512&(n=t.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?e[s++]=r:r<2048?(e[s++]=192|r>>>6,e[s++]=128|63&r):r<65536?(e[s++]=224|r>>>12,e[s++]=128|r>>>6&63,e[s++]=128|63&r):(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63,e[s++]=128|r>>>6&63,e[s++]=128|63&r);return e},r.buf2binstring=function(t){return n(t,t.length)},r.binstring2buf=function(t){for(var e=new i.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,i,a,s,d=e||t.length,h=new Array(2*d);for(i=0,r=0;r<d;){if((a=t[r++])<128){h[i++]=a;continue}if((s=o[a])>4){h[i++]=65533,r+=s-1;continue}a&=2===s?31:3===s?15:7;while(s>1&&r<d)a=a<<6|63&t[r++],s--;if(s>1){h[i++]=65533;continue}a<65536?h[i++]=a:(a-=65536,h[i++]=55296|a>>10&1023,h[i++]=56320|1023&a)}return n(h,i)},r.utf8border=function(t,e){var r;e=e||t.length,e>t.length&&(e=t.length),r=e-1;while(r>=0&&128==(192&t[r]))r--;if(r<0)return e;if(0===r)return e;return r+o[t[r]]>e?r:e}},{"./common":27}],29:[function(t,e,r){"use strict";function n(t,e,r,n){var i=65535&t|0,a=t>>>16&65535|0,s=0;while(0!==r){s=r>2e3?2e3:r,r-=s;do{i=i+e[n++]|0,a=a+i|0}while(--s);i%=65521,a%=65521}return i|a<<16|0}e.exports=n},{}],30:[function(t,e,r){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(t,e,r){"use strict";function n(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}function i(t,e,r,n){var i=a,s=n+r;t^=-1;for(var o=n;o<s;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}var a=n();e.exports=i},{}],32:[function(t,e,r){"use strict";function n(t,e){return t.msg=T[e],e}function i(t){return(t<<1)-(t>4?9:0)}function a(t){var e=t.length;while(--e>=0)t[e]=0}function s(t){var e=t.state,r=e.pending;if(r>t.avail_out&&(r=t.avail_out),0===r)return;E.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0)}function o(t,e){S._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function d(t,e){t.pending_buf[t.pending++]=e}function h(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function l(t,e,r,n){var i=t.avail_in;if(i>n&&(i=n),0===i)return 0;return t.avail_in-=i,E.arraySet(e,t.input,t.next_in,i,r),1===t.state.wrap?t.adler=B(t.adler,e,i,r):2===t.state.wrap&&(t.adler=I(t.adler,e,i,r)),t.next_in+=i,t.total_in+=i,i}function u(t,e){var r=t.max_chain_length,n=t.strstart,i,a,s=t.prev_length,o=t.nice_match,d=t.strstart>t.w_size-dt?t.strstart-(t.w_size-dt):0,h=t.window,l=t.w_mask,u=t.prev,f=t.strstart+ot,c=h[n+s-1],p=h[n+s];t.prev_length>=t.good_match&&(r>>=2),o>t.lookahead&&(o=t.lookahead);do{if(i=e,h[i+s]!==p||h[i+s-1]!==c||h[i]!==h[n]||h[++i]!==h[n+1])continue;n+=2,i++;do{}while(h[++n]===h[++i]&&h[++n]===h[++i]&&h[++n]===h[++i]&&h[++n]===h[++i]&&h[++n]===h[++i]&&h[++n]===h[++i]&&h[++n]===h[++i]&&h[++n]===h[++i]&&n<f);if(a=ot-(f-n),n=f-ot,a>s){if(t.match_start=e,s=a,a>=o)break;c=h[n+s-1],p=h[n+s]}}while((e=u[e&l])>d&&0!=--r);if(s<=t.lookahead)return s;return t.lookahead}function f(t){var e=t.w_size,r,n,i,a,s;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-dt)){E.arraySet(t.window,t.window,e,e,0),t.match_start-=e,t.strstart-=e,t.block_start-=e,n=t.hash_size,r=n;do{i=t.head[--r],t.head[r]=i>=e?i-e:0}while(--n);n=e,r=n;do{i=t.prev[--r],t.prev[r]=i>=e?i-e:0}while(--n);a+=e}if(0===t.strm.avail_in)break;if(n=l(t.strm,t.window,t.strstart+t.lookahead,a),t.lookahead+=n,t.lookahead+t.insert>=st){s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;while(t.insert)if(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+st-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,t.lookahead+t.insert<st)break}}while(t.lookahead<dt&&0!==t.strm.avail_in)}function c(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(f(t),0===t.lookahead&&e===O)return gt;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,o(t,!1),0===t.strm.avail_out))return gt;if(t.strstart-t.block_start>=t.w_size-dt&&(o(t,!1),0===t.strm.avail_out))return gt}if(t.insert=0,e===D){if(o(t,!0),0===t.strm.avail_out)return wt;return vt}if(t.strstart>t.block_start&&(o(t,!1),0===t.strm.avail_out))return gt;return gt}function p(t,e){for(var r,n;;){if(t.lookahead<dt){if(f(t),t.lookahead<dt&&e===O)return gt;if(0===t.lookahead)break}if(r=0,t.lookahead>=st&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+st-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-dt&&(t.match_length=u(t,r)),t.match_length>=st)if(n=S._tr_tally(t,t.strstart-t.match_start,t.match_length-st),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=st){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+st-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=S._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(o(t,!1),0===t.strm.avail_out))return gt}if(t.insert=t.strstart<st-1?t.strstart:st-1,e===D){if(o(t,!0),0===t.strm.avail_out)return wt;return vt}if(t.last_lit&&(o(t,!1),0===t.strm.avail_out))return gt;return bt}function _(t,e){for(var r,n,i;;){if(t.lookahead<dt){if(f(t),t.lookahead<dt&&e===O)return gt;if(0===t.lookahead)break}if(r=0,t.lookahead>=st&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+st-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=st-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-dt&&(t.match_length=u(t,r),t.match_length<=5&&(t.strategy===H||t.match_length===st&&t.strstart-t.match_start>4096)&&(t.match_length=st-1)),t.prev_length>=st&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-st,n=S._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-st),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+st-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=st-1,t.strstart++,n&&(o(t,!1),0===t.strm.avail_out))return gt}else if(t.match_available){if(n=S._tr_tally(t,0,t.window[t.strstart-1]),n&&o(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return gt}else t.match_available=1,t.strstart++,t.lookahead--}if(t.match_available&&(n=S._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<st-1?t.strstart:st-1,e===D){if(o(t,!0),0===t.strm.avail_out)return wt;return vt}if(t.last_lit&&(o(t,!1),0===t.strm.avail_out))return gt;return bt}function m(t,e){for(var r,n,i,a,s=t.window;;){if(t.lookahead<=ot){if(f(t),t.lookahead<=ot&&e===O)return gt;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=st&&t.strstart>0&&(i=t.strstart-1,(n=s[i])===s[++i]&&n===s[++i]&&n===s[++i])){a=t.strstart+ot;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);t.match_length=ot-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=st?(r=S._tr_tally(t,1,t.match_length-st),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=S._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(o(t,!1),0===t.strm.avail_out))return gt}if(t.insert=0,e===D){if(o(t,!0),0===t.strm.avail_out)return wt;return vt}if(t.last_lit&&(o(t,!1),0===t.strm.avail_out))return gt;return bt}function g(t,e){for(var r;;){if(0===t.lookahead&&(f(t),0===t.lookahead)){if(e===O)return gt;break}if(t.match_length=0,r=S._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(o(t,!1),0===t.strm.avail_out))return gt}if(t.insert=0,e===D){if(o(t,!0),0===t.strm.avail_out)return wt;return vt}if(t.last_lit&&(o(t,!1),0===t.strm.avail_out))return gt;return bt}function b(t){t.window_size=2*t.w_size,a(t.head),t.max_lazy_match=xt[t.level].max_lazy,t.good_match=xt[t.level].good_length,t.nice_match=xt[t.level].nice_length,t.max_chain_length=xt[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=st-1,t.match_available=0,t.ins_h=0}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=q,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new E.Buf16(2*it),this.dyn_dtree=new E.Buf16(2*(2*rt+1)),this.bl_tree=new E.Buf16(2*(2*nt+1)),a(this.dyn_ltree),a(this.dyn_dtree),a(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(at+1),this.heap=new E.Buf16(2*et+1),a(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(2*et+1),a(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function v(t){var e;if(!t||!t.state)return n(t,Z);return t.total_in=t.total_out=0,t.data_type=W,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?lt:_t,t.adler=2===e.wrap?0:1,e.last_flush=O,S._tr_init(e),U}function y(t){var e=v(t);return e===U&&b(t.state),e}function k(t,e){if(!t||!t.state)return Z;if(2!==t.state.wrap)return Z;return t.state.gzhead=e,U}function x(t,e,r,i,a,s){if(!t)return Z;var o=1;if(e===j&&(e=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),a<1||a>G||r!==q||i<8||i>15||e<0||e>9||s<0||s>V)return n(t,Z);8===i&&(i=9);var d=new w;return t.state=d,d.strm=t,d.wrap=o,d.gzhead=null,d.w_bits=i,d.w_size=1<<d.w_bits,d.w_mask=d.w_size-1,d.hash_bits=a+7,d.hash_size=1<<d.hash_bits,d.hash_mask=d.hash_size-1,d.hash_shift=~~((d.hash_bits+st-1)/st),d.window=new E.Buf8(2*d.w_size),d.head=new E.Buf16(d.hash_size),d.prev=new E.Buf16(d.w_size),d.lit_bufsize=1<<a+6,d.pending_buf_size=4*d.lit_bufsize,d.pending_buf=new E.Buf8(d.pending_buf_size),d.d_buf=d.lit_bufsize>>1,d.l_buf=(1+2)*d.lit_bufsize,d.level=e,d.strategy=s,d.method=r,y(t)}function z(t,e){return x(t,e,q,J,Q,Y)}function C(t,e){var r,o,l,u;if(!t||!t.state||e>N||e<0)return t?n(t,Z):Z;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||o.status===mt&&e!==D)return n(t,0===t.avail_out?M:Z);if(o.strm=t,r=o.last_flush,o.last_flush=e,o.status===lt)if(2===o.wrap)t.adler=0,d(o,31),d(o,139),d(o,8),o.gzhead?(d(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),d(o,255&o.gzhead.time),d(o,o.gzhead.time>>8&255),d(o,o.gzhead.time>>16&255),d(o,o.gzhead.time>>24&255),d(o,9===o.level?2:o.strategy>=X||o.level<2?4:0),d(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(d(o,255&o.gzhead.extra.length),d(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=I(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=ut):(d(o,0),d(o,0),d(o,0),d(o,0),d(o,0),d(o,9===o.level?2:o.strategy>=X||o.level<2?4:0),d(o,yt),o.status=_t);else{var f=q+(o.w_bits-8<<4)<<8,c=-1;c=o.strategy>=X||o.level<2?0:o.level<6?1:6===o.level?2:3,f|=c<<6,0!==o.strstart&&(f|=ht),f+=31-f%31,o.status=_t,h(o,f),0!==o.strstart&&(h(o,t.adler>>>16),h(o,65535&t.adler)),t.adler=1}if(o.status===ut)if(o.gzhead.extra){l=o.pending;while(o.gzindex<(65535&o.gzhead.extra.length)){if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>l&&(t.adler=I(t.adler,o.pending_buf,o.pending-l,l)),s(t),l=o.pending,o.pending===o.pending_buf_size))break;d(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++}o.gzhead.hcrc&&o.pending>l&&(t.adler=I(t.adler,o.pending_buf,o.pending-l,l)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=ft)}else o.status=ft;if(o.status===ft)if(o.gzhead.name){l=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>l&&(t.adler=I(t.adler,o.pending_buf,o.pending-l,l)),s(t),l=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,d(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>l&&(t.adler=I(t.adler,o.pending_buf,o.pending-l,l)),0===u&&(o.gzindex=0,o.status=ct)}else o.status=ct;if(o.status===ct)if(o.gzhead.comment){l=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>l&&(t.adler=I(t.adler,o.pending_buf,o.pending-l,l)),s(t),l=o.pending,o.pending===o.pending_buf_size)){u=1;break}u=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,d(o,u)}while(0!==u);o.gzhead.hcrc&&o.pending>l&&(t.adler=I(t.adler,o.pending_buf,o.pending-l,l)),0===u&&(o.status=pt)}else o.status=pt;if(o.status===pt&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&s(t),o.pending+2<=o.pending_buf_size&&(d(o,255&t.adler),d(o,t.adler>>8&255),t.adler=0,o.status=_t)):o.status=_t),0!==o.pending){if(s(t),0===t.avail_out)return o.last_flush=-1,U}else if(0===t.avail_in&&i(e)<=i(r)&&e!==D)return n(t,M);if(o.status===mt&&0!==t.avail_in)return n(t,M);if(0!==t.avail_in||0!==o.lookahead||e!==O&&o.status!==mt){var p=o.strategy===X?g(o,e):o.strategy===K?m(o,e):xt[o.level].func(o,e);if(p!==wt&&p!==vt||(o.status=mt),p===gt||p===wt)return 0===t.avail_out&&(o.last_flush=-1),U;if(p===bt&&(e===R?S._tr_align(o):e!==N&&(S._tr_stored_block(o,0,0,!1),e===L&&(a(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),s(t),0===t.avail_out))return o.last_flush=-1,U}if(e!==D)return U;if(o.wrap<=0)return F;return 2===o.wrap?(d(o,255&t.adler),d(o,t.adler>>8&255),d(o,t.adler>>16&255),d(o,t.adler>>24&255),d(o,255&t.total_in),d(o,t.total_in>>8&255),d(o,t.total_in>>16&255),d(o,t.total_in>>24&255)):(h(o,t.adler>>>16),h(o,65535&t.adler)),s(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?U:F}function A(t){var e;if(!t||!t.state)return Z;if((e=t.state.status)!==lt&&e!==ut&&e!==ft&&e!==ct&&e!==pt&&e!==_t&&e!==mt)return n(t,Z);return t.state=null,e===_t?n(t,P):U}var E=t("../utils/common"),S=t("./trees"),B=t("./adler32"),I=t("./crc32"),T=t("./messages"),O=0,R=1,L=3,D=4,N=5,U=0,F=1,Z=-2,P=-3,M=-5,j=-1,H=1,X=2,K=3,V=4,Y=0,W=2,q=8,G=9,J=15,Q=8,$=29,tt=256,et=tt+1+$,rt=30,nt=19,it=2*et+1,at=15,st=3,ot=258,dt=ot+st+1,ht=32,lt=42,ut=69,ft=73,ct=91,pt=103,_t=113,mt=666,gt=1,bt=2,wt=3,vt=4,yt=3,kt=function(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i},xt;xt=[new kt(0,0,0,0,c),new kt(4,4,8,4,p),new kt(4,5,16,8,p),new kt(4,6,32,32,p),new kt(4,4,16,16,_),new kt(8,16,32,32,_),new kt(8,16,128,128,_),new kt(8,32,128,256,_),new kt(32,128,258,1024,_),new kt(32,258,258,4096,_)],r.deflateInit=z,r.deflateInit2=x,r.deflateReset=y,r.deflateResetKeep=v,r.deflateSetHeader=k,r.deflate=C,r.deflateEnd=A,r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(t,e,r){"use strict";function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=n},{}],34:[function(t,e,r){"use strict";var n=30;e.exports=function t(e,r){var i,a,s,o,d,h,l,u,f,c,p,_,m,g,b,w,v,y,k,x,z,C,A,E,S;i=e.state,a=e.next_in,E=e.input,s=a+(e.avail_in-5),o=e.next_out,S=e.output,d=o-(r-e.avail_out),h=o+(e.avail_out-257),l=i.dmax,u=i.wsize,f=i.whave,c=i.wnext,p=i.window,_=i.hold,m=i.bits,g=i.lencode,b=i.distcode,w=(1<<i.lenbits)-1,v=(1<<i.distbits)-1;t:do{m<15&&(_+=E[a++]<<m,m+=8,_+=E[a++]<<m,m+=8),y=g[_&w];e:for(;;){if(k=y>>>24,_>>>=k,m-=k,0==(k=y>>>16&255))S[o++]=65535&y;else{if(!(16&k)){if(0==(64&k)){y=g[(65535&y)+(_&(1<<k)-1)];continue e}if(32&k){i.mode=12;break t}e.msg="invalid literal/length code",i.mode=n;break t}x=65535&y,k&=15,k&&(m<k&&(_+=E[a++]<<m,m+=8),x+=_&(1<<k)-1,_>>>=k,m-=k),m<15&&(_+=E[a++]<<m,m+=8,_+=E[a++]<<m,m+=8),y=b[_&v];r:for(;;){if(k=y>>>24,_>>>=k,m-=k,!(16&(k=y>>>16&255))){if(0==(64&k)){y=b[(65535&y)+(_&(1<<k)-1)];continue r}e.msg="invalid distance code",i.mode=n;break t}if(z=65535&y,k&=15,m<k&&(_+=E[a++]<<m,(m+=8)<k&&(_+=E[a++]<<m,m+=8)),(z+=_&(1<<k)-1)>l){e.msg="invalid distance too far back",i.mode=n;break t}if(_>>>=k,m-=k,k=o-d,z>k){if((k=z-k)>f&&i.sane){e.msg="invalid distance too far back",i.mode=n;break t}if(C=0,A=p,0===c){if(C+=u-k,k<x){x-=k;do{S[o++]=p[C++]}while(--k);C=o-z,A=S}}else if(c<k){if(C+=u+c-k,(k-=c)<x){x-=k;do{S[o++]=p[C++]}while(--k);if(C=0,c<x){k=c,x-=k;do{S[o++]=p[C++]}while(--k);C=o-z,A=S}}}else if(C+=c-k,k<x){x-=k;do{S[o++]=p[C++]}while(--k);C=o-z,A=S}while(x>2)S[o++]=A[C++],S[o++]=A[C++],S[o++]=A[C++],x-=3;x&&(S[o++]=A[C++],x>1&&(S[o++]=A[C++]))}else{C=o-z;do{S[o++]=S[C++],S[o++]=S[C++],S[o++]=S[C++],x-=3}while(x>2);x&&(S[o++]=S[C++],x>1&&(S[o++]=S[C++]))}break}}break}}while(a<s&&o<h);return x=m>>3,a-=x,m-=x<<3,_&=(1<<m)-1,e.next_in=a,e.next_out=o,e.avail_in=a<s?5+(s-a):5-(a-s),e.avail_out=o<h?257+(h-o):257-(o-h),i.hold=_,void(i.bits=m)}},{}],35:[function(t,e,r){"use strict";function n(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new _.Buf16(320),this.work=new _.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(t){var e;if(!t||!t.state)return B;return e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=L,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new _.Buf32(ft),e.distcode=e.distdyn=new _.Buf32(ct),e.sane=1,e.back=-1,A}function s(t){var e;if(!t||!t.state)return B;return e=t.state,e.wsize=0,e.whave=0,e.wnext=0,a(t)}function o(t,e){var r,n;if(!t||!t.state)return B;if(n=t.state,e<0?(r=0,e=-e):(r=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))return B;return null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,s(t)}function d(t,e){var r,n;if(!t)return B;return n=new i,t.state=n,n.window=null,r=o(t,e),r!==A&&(t.state=null),r}function h(t){return d(t,_t)}function l(t){if(mt){var e;gt=new _.Buf32(512),bt=new _.Buf32(32),e=0;while(e<144)t.lens[e++]=8;while(e<256)t.lens[e++]=9;while(e<280)t.lens[e++]=7;while(e<288)t.lens[e++]=8;w(y,t.lens,0,288,gt,0,t.work,{bits:9}),e=0;while(e<32)t.lens[e++]=5;w(k,t.lens,0,32,bt,0,t.work,{bits:5}),mt=!1}t.lencode=gt,t.lenbits=9,t.distcode=bt,t.distbits=5}function u(t,e,r,n){var i,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new _.Buf8(a.wsize)),n>=a.wsize?(_.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),_.arraySet(a.window,e,r-n,i,a.wnext),n-=i,n?(_.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function f(t,e){var r,i,a,s,o,d,h,f,c,p,ft,ct,pt,_t,mt=0,gt,bt,wt,vt,yt,kt,xt,zt,Ct=new _.Buf8(4),At,Et,St=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return B;r=t.state,r.mode===K&&(r.mode=V),o=t.next_out,a=t.output,h=t.avail_out,s=t.next_in,i=t.input,d=t.avail_in,f=r.hold,c=r.bits,p=d,ft=h,zt=A;t:for(;;)switch(r.mode){case L:if(0===r.wrap){r.mode=V;break}while(c<16){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(2&r.wrap&&35615===f){r.check=0,Ct[0]=255&f,Ct[1]=f>>>8&255,r.check=g(r.check,Ct,2,0),f=0,c=0,r.mode=D;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg="incorrect header check",r.mode=ht;break}if((15&f)!==R){t.msg="unknown compression method",r.mode=ht;break}if(f>>>=4,c-=4,xt=(15&f)+8,0===r.wbits)r.wbits=xt;else if(xt>r.wbits){t.msg="invalid window size",r.mode=ht;break}r.dmax=1<<xt,t.adler=r.check=1,r.mode=512&f?H:K,f=0,c=0;break;case D:while(c<16){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(r.flags=f,(255&r.flags)!==R){t.msg="unknown compression method",r.mode=ht;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=ht;break}r.head&&(r.head.text=f>>8&1),512&r.flags&&(Ct[0]=255&f,Ct[1]=f>>>8&255,r.check=g(r.check,Ct,2,0)),f=0,c=0,r.mode=N;case N:while(c<32){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}r.head&&(r.head.time=f),512&r.flags&&(Ct[0]=255&f,Ct[1]=f>>>8&255,Ct[2]=f>>>16&255,Ct[3]=f>>>24&255,r.check=g(r.check,Ct,4,0)),f=0,c=0,r.mode=U;case U:while(c<16){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>8),512&r.flags&&(Ct[0]=255&f,Ct[1]=f>>>8&255,r.check=g(r.check,Ct,2,0)),f=0,c=0,r.mode=F;case F:if(1024&r.flags){while(c<16){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&(Ct[0]=255&f,Ct[1]=f>>>8&255,r.check=g(r.check,Ct,2,0)),f=0,c=0}else r.head&&(r.head.extra=null);r.mode=Z;case Z:if(1024&r.flags&&(ct=r.length,ct>d&&(ct=d),ct&&(r.head&&(xt=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),_.arraySet(r.head.extra,i,s,ct,xt)),512&r.flags&&(r.check=g(r.check,i,ct,s)),d-=ct,s+=ct,r.length-=ct),r.length))break t;r.length=0,r.mode=P;case P:if(2048&r.flags){if(0===d)break t;ct=0;do{xt=i[s+ct++],r.head&&xt&&r.length<65536&&(r.head.name+=String.fromCharCode(xt))}while(xt&&ct<d);if(512&r.flags&&(r.check=g(r.check,i,ct,s)),d-=ct,s+=ct,xt)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=M;case M:if(4096&r.flags){if(0===d)break t;ct=0;do{xt=i[s+ct++],r.head&&xt&&r.length<65536&&(r.head.comment+=String.fromCharCode(xt))}while(xt&&ct<d);if(512&r.flags&&(r.check=g(r.check,i,ct,s)),d-=ct,s+=ct,xt)break t}else r.head&&(r.head.comment=null);r.mode=j;case j:if(512&r.flags){while(c<16){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(f!==(65535&r.check)){t.msg="header crc mismatch",r.mode=ht;break}f=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=K;break;case H:while(c<32){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}t.adler=r.check=n(f),f=0,c=0,r.mode=X;case X:if(0===r.havedict)return t.next_out=o,t.avail_out=h,t.next_in=s,t.avail_in=d,r.hold=f,r.bits=c,S;t.adler=r.check=1,r.mode=K;case K:if(e===z||e===C)break t;case V:if(r.last){f>>>=7&c,c-=7&c,r.mode=st;break}while(c<3){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}switch(r.last=1&f,f>>>=1,c-=1,3&f){case 0:r.mode=Y;break;case 1:if(l(r),r.mode=$,e===C){f>>>=2,c-=2;break t}break;case 2:r.mode=G;break;case 3:t.msg="invalid block type",r.mode=ht}f>>>=2,c-=2;break;case Y:f>>>=7&c,c-=7&c;while(c<32){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if((65535&f)!=(f>>>16^65535)){t.msg="invalid stored block lengths",r.mode=ht;break}if(r.length=65535&f,f=0,c=0,r.mode=W,e===C)break t;case W:r.mode=q;case q:if(ct=r.length){if(ct>d&&(ct=d),ct>h&&(ct=h),0===ct)break t;_.arraySet(a,i,s,ct,o),d-=ct,s+=ct,h-=ct,o+=ct,r.length-=ct;break}r.mode=K;break;case G:while(c<14){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(r.nlen=(31&f)+257,f>>>=5,c-=5,r.ndist=(31&f)+1,f>>>=5,c-=5,r.ncode=(15&f)+4,f>>>=4,c-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=ht;break}r.have=0,r.mode=J;case J:while(r.have<r.ncode){while(c<3){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}r.lens[St[r.have++]]=7&f,f>>>=3,c-=3}while(r.have<19)r.lens[St[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,At={bits:r.lenbits},zt=w(v,r.lens,0,19,r.lencode,0,r.work,At),r.lenbits=At.bits,zt){t.msg="invalid code lengths set",r.mode=ht;break}r.have=0,r.mode=Q;case Q:while(r.have<r.nlen+r.ndist){for(;;){if(mt=r.lencode[f&(1<<r.lenbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,gt<=c)break;if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(wt<16)f>>>=gt,c-=gt,r.lens[r.have++]=wt;else{if(16===wt){Et=gt+2;while(c<Et){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(f>>>=gt,c-=gt,0===r.have){t.msg="invalid bit length repeat",r.mode=ht;break}xt=r.lens[r.have-1],ct=3+(3&f),f>>>=2,c-=2}else if(17===wt){Et=gt+3;while(c<Et){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}f>>>=gt,c-=gt,xt=0,ct=3+(7&f),f>>>=3,c-=3}else{Et=gt+7;while(c<Et){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}f>>>=gt,c-=gt,xt=0,ct=11+(127&f),f>>>=7,c-=7}if(r.have+ct>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=ht;break}while(ct--)r.lens[r.have++]=xt}}if(r.mode===ht)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=ht;break}if(r.lenbits=9,At={bits:r.lenbits},zt=w(y,r.lens,0,r.nlen,r.lencode,0,r.work,At),r.lenbits=At.bits,zt){t.msg="invalid literal/lengths set",r.mode=ht;break}if(r.distbits=6,r.distcode=r.distdyn,At={bits:r.distbits},zt=w(k,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,At),r.distbits=At.bits,zt){t.msg="invalid distances set",r.mode=ht;break}if(r.mode=$,e===C)break t;case $:r.mode=tt;case tt:if(d>=6&&h>=258){t.next_out=o,t.avail_out=h,t.next_in=s,t.avail_in=d,r.hold=f,r.bits=c,b(t,ft),o=t.next_out,a=t.output,h=t.avail_out,s=t.next_in,i=t.input,d=t.avail_in,f=r.hold,c=r.bits,r.mode===K&&(r.back=-1);break}for(r.back=0;;){if(mt=r.lencode[f&(1<<r.lenbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,gt<=c)break;if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(bt&&0==(240&bt)){for(vt=gt,yt=bt,kt=wt;;){if(mt=r.lencode[kt+((f&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,vt+gt<=c)break;if(0===d)break t;d--,f+=i[s++]<<c,c+=8}f>>>=vt,c-=vt,r.back+=vt}if(f>>>=gt,c-=gt,r.back+=gt,r.length=wt,0===bt){r.mode=at;break}if(32&bt){r.back=-1,r.mode=K;break}if(64&bt){t.msg="invalid literal/length code",r.mode=ht;break}r.extra=15&bt,r.mode=et;case et:if(r.extra){Et=r.extra;while(c<Et){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=rt;case rt:for(;;){if(mt=r.distcode[f&(1<<r.distbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,gt<=c)break;if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(0==(240&bt)){for(vt=gt,yt=bt,kt=wt;;){if(mt=r.distcode[kt+((f&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,vt+gt<=c)break;if(0===d)break t;d--,f+=i[s++]<<c,c+=8}f>>>=vt,c-=vt,r.back+=vt}if(f>>>=gt,c-=gt,r.back+=gt,64&bt){t.msg="invalid distance code",r.mode=ht;break}r.offset=wt,r.extra=15&bt,r.mode=nt;case nt:if(r.extra){Et=r.extra;while(c<Et){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=ht;break}r.mode=it;case it:if(0===h)break t;if(ct=ft-h,r.offset>ct){if((ct=r.offset-ct)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=ht;break}ct>r.wnext?(ct-=r.wnext,pt=r.wsize-ct):pt=r.wnext-ct,ct>r.length&&(ct=r.length),_t=r.window}else _t=a,pt=o-r.offset,ct=r.length;ct>h&&(ct=h),h-=ct,r.length-=ct;do{a[o++]=_t[pt++]}while(--ct);0===r.length&&(r.mode=tt);break;case at:if(0===h)break t;a[o++]=r.length,h--,r.mode=tt;break;case st:if(r.wrap){while(c<32){if(0===d)break t;d--,f|=i[s++]<<c,c+=8}if(ft-=h,t.total_out+=ft,r.total+=ft,ft&&(t.adler=r.check=r.flags?g(r.check,a,ft,o-ft):m(r.check,a,ft,o-ft)),ft=h,(r.flags?f:n(f))!==r.check){t.msg="incorrect data check",r.mode=ht;break}f=0,c=0}r.mode=ot;case ot:if(r.wrap&&r.flags){while(c<32){if(0===d)break t;d--,f+=i[s++]<<c,c+=8}if(f!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=ht;break}f=0,c=0}r.mode=dt;case dt:zt=E;break t;case ht:zt=I;break t;case lt:return T;case ut:default:return B}if(t.next_out=o,t.avail_out=h,t.next_in=s,t.avail_in=d,r.hold=f,r.bits=c,(r.wsize||ft!==t.avail_out&&r.mode<ht&&(r.mode<st||e!==x))&&u(t,t.output,t.next_out,ft-t.avail_out))return r.mode=lt,T;return p-=t.avail_in,ft-=t.avail_out,t.total_in+=p,t.total_out+=ft,r.total+=ft,r.wrap&&ft&&(t.adler=r.check=r.flags?g(r.check,a,ft,t.next_out-ft):m(r.check,a,ft,t.next_out-ft)),t.data_type=r.bits+(r.last?64:0)+(r.mode===K?128:0)+(r.mode===$||r.mode===W?256:0),(0===p&&0===ft||e===x)&&zt===A&&(zt=O),zt}function c(t){if(!t||!t.state)return B;var e=t.state;return e.window&&(e.window=null),t.state=null,A}function p(t,e){var r;if(!t||!t.state)return B;if(r=t.state,0==(2&r.wrap))return B;return r.head=e,e.done=!1,A}var _=t("../utils/common"),m=t("./adler32"),g=t("./crc32"),b=t("./inffast"),w=t("./inftrees"),v=0,y=1,k=2,x=4,z=5,C=6,A=0,E=1,S=2,B=-2,I=-3,T=-4,O=-5,R=8,L=1,D=2,N=3,U=4,F=5,Z=6,P=7,M=8,j=9,H=10,X=11,K=12,V=13,Y=14,W=15,q=16,G=17,J=18,Q=19,$=20,tt=21,et=22,rt=23,nt=24,it=25,at=26,st=27,ot=28,dt=29,ht=30,lt=31,ut=32,ft=852,ct=592,pt=15,_t=pt,mt=!0,gt,bt;r.inflateReset=s,r.inflateReset2=o,r.inflateResetKeep=a,r.inflateInit=h,r.inflateInit2=d,r.inflate=f,r.inflateEnd=c,r.inflateGetHeader=p,r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(t,e,r){"use strict";var n=t("../utils/common"),i=15,a=852,s=592,o=0,d=1,h=2,l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function t(e,r,p,_,m,g,b,w){var v=w.bits,y=0,k=0,x=0,z=0,C=0,A=0,E=0,S=0,B=0,I=0,T,O,R,L,D,N=null,U=0,F,Z=new n.Buf16(i+1),P=new n.Buf16(i+1),M=null,j=0,H,X,K;for(y=0;y<=i;y++)Z[y]=0;for(k=0;k<_;k++)Z[r[p+k]]++;for(C=v,z=i;z>=1;z--)if(0!==Z[z])break;if(C>z&&(C=z),0===z)return m[g++]=1<<24|64<<16|0,m[g++]=1<<24|64<<16|0,w.bits=1,0;for(x=1;x<z;x++)if(0!==Z[x])break;for(C<x&&(C=x),S=1,y=1;y<=i;y++)if(S<<=1,(S-=Z[y])<0)return-1;if(S>0&&(e===o||1!==z))return-1;for(P[1]=0,y=1;y<i;y++)P[y+1]=P[y]+Z[y];for(k=0;k<_;k++)0!==r[p+k]&&(b[P[r[p+k]]++]=k);if(e===o?(N=M=b,F=19):e===d?(N=l,U-=257,M=u,j-=257,F=256):(N=f,M=c,F=-1),I=0,k=0,y=x,D=g,A=C,E=0,R=-1,B=1<<C,L=B-1,e===d&&B>a||e===h&&B>s)return 1;for(var V=0;;){V++,H=y-E,b[k]<F?(X=0,K=b[k]):b[k]>F?(X=M[j+b[k]],K=N[U+b[k]]):(X=32+64,K=0),T=1<<y-E,O=1<<A,x=O;do{O-=T,m[D+(I>>E)+O]=H<<24|X<<16|K|0}while(0!==O);T=1<<y-1;while(I&T)T>>=1;if(0!==T?(I&=T-1,I+=T):I=0,k++,0==--Z[y]){if(y===z)break;y=r[p+b[k]]}if(y>C&&(I&L)!==R){0===E&&(E=C),D+=x,A=y-E,S=1<<A;while(A+E<z){if((S-=Z[A+E])<=0)break;A++,S<<=1}if(B+=1<<A,e===d&&B>a||e===h&&B>s)return 1;R=I&L,m[R]=C<<24|A<<16|D-g|0}}return 0!==I&&(m[D+I]=y-E<<24|64<<16|0),w.bits=C,0}},{"../utils/common":27}],37:[function(t,e,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(t,e,r){"use strict";function n(t){var e=t.length;while(--e>=0)t[e]=0}function i(t){return t<256?st[t]:st[256+(t>>>7)]}function a(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function s(t,e,r){t.bi_valid>Y-r?(t.bi_buf|=e<<t.bi_valid&65535,a(t,t.bi_buf),t.bi_buf=e>>Y-t.bi_valid,t.bi_valid+=r-Y):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function o(t,e,r){s(t,r[2*e],r[2*e+1])}function d(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function h(t){16===t.bi_valid?(a(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function l(t,e){var r=e.dyn_tree,n=e.max_code,i=e.stat_desc.static_tree,a=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,d=e.stat_desc.max_length,h,l,u,f,c,p,_=0;for(f=0;f<=V;f++)t.bl_count[f]=0;for(r[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<K;h++){if(l=t.heap[h],f=r[2*r[2*l+1]+1]+1,f>d&&(f=d,_++),r[2*l+1]=f,l>n)continue;t.bl_count[f]++,c=0,l>=o&&(c=s[l-o]),p=r[2*l],t.opt_len+=p*(f+c),a&&(t.static_len+=p*(i[2*l+1]+c))}if(0===_)return;do{f=d-1;while(0===t.bl_count[f])f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[d]--,_-=2}while(_>0);for(f=d;0!==f;f--){l=t.bl_count[f];while(0!==l){if((u=t.heap[--h])>n)continue;r[2*u+1]!==f&&(t.opt_len+=(f-r[2*u+1])*r[2*u],r[2*u+1]=f),l--}}}function u(t,e,r){var n=new Array(V+1),i=0,a,s;for(a=1;a<=V;a++)n[a]=i=i+r[a-1]<<1;for(s=0;s<=e;s++){var o=t[2*s+1];if(0===o)continue;t[2*s]=d(n[o]++,o)}}function f(){var t,e,r,n,i,a=new Array(V+1);for(r=0,n=0;n<P-1;n++)for(dt[n]=r,t=0;t<1<<$[n];t++)ot[r++]=n;for(ot[r-1]=n,i=0,n=0;n<16;n++)for(ht[n]=i,t=0;t<1<<tt[n];t++)st[i++]=n;for(i>>=7;n<H;n++)for(ht[n]=i<<7,t=0;t<1<<tt[n]-7;t++)st[256+i++]=n;for(e=0;e<=V;e++)a[e]=0;t=0;while(t<=143)it[2*t+1]=8,t++,a[8]++;while(t<=255)it[2*t+1]=9,t++,a[9]++;while(t<=279)it[2*t+1]=7,t++,a[7]++;while(t<=287)it[2*t+1]=8,t++,a[8]++;for(u(it,j+1,a),t=0;t<H;t++)at[2*t+1]=5,at[2*t]=d(t,5);ut=new lt(it,$,M+1,j,V),ft=new lt(at,tt,0,H,V),ct=new lt(new Array(0),et,0,X,W)}function c(t){var e;for(e=0;e<j;e++)t.dyn_ltree[2*e]=0;for(e=0;e<H;e++)t.dyn_dtree[2*e]=0;for(e=0;e<X;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*q]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function p(t){t.bi_valid>8?a(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function _(t,e,r,n){p(t),n&&(a(t,r),a(t,~r)),I.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}function m(t,e,r,n){var i=2*e,a=2*r;return t[i]<t[a]||t[i]===t[a]&&n[e]<=n[r]}function g(t,e,r){var n=t.heap[r],i=r<<1;while(i<=t.heap_len){if(i<t.heap_len&&m(e,t.heap[i+1],t.heap[i],t.depth)&&i++,m(e,n,t.heap[i],t.depth))break;t.heap[r]=t.heap[i],r=i,i<<=1}t.heap[r]=n}function b(t,e,r){var n,a,d=0,h,l;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],a=t.pending_buf[t.l_buf+d],d++,0===n?o(t,a,e):(h=ot[a],o(t,h+M+1,e),l=$[h],0!==l&&(a-=dt[h],s(t,a,l)),n--,h=i(n),o(t,h,r),0!==(l=tt[h])&&(n-=ht[h],s(t,n,l)))}while(d<t.last_lit);o(t,q,e)}function w(t,e){var r=e.dyn_tree,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.elems,s,o,d=-1,h;for(t.heap_len=0,t.heap_max=K,s=0;s<a;s++)0!==r[2*s]?(t.heap[++t.heap_len]=d=s,t.depth[s]=0):r[2*s+1]=0;while(t.heap_len<2)h=t.heap[++t.heap_len]=d<2?++d:0,r[2*h]=1,t.depth[h]=0,t.opt_len--,i&&(t.static_len-=n[2*h+1]);for(e.max_code=d,s=t.heap_len>>1;s>=1;s--)g(t,r,s);h=a;do{s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],g(t,r,1),o=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=o,r[2*h]=r[2*s]+r[2*o],t.depth[h]=(t.depth[s]>=t.depth[o]?t.depth[s]:t.depth[o])+1,r[2*s+1]=r[2*o+1]=h,t.heap[1]=h++,g(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],l(t,e),u(r,d,t.bl_count)}function v(t,e,r){var n,i=-1,a,s=e[0*2+1],o=0,d=7,h=4;for(0===s&&(d=138,h=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++){if(a=s,s=e[2*(n+1)+1],++o<d&&a===s)continue;o<h?t.bl_tree[2*a]+=o:0!==a?(a!==i&&t.bl_tree[2*a]++,t.bl_tree[2*G]++):o<=10?t.bl_tree[2*J]++:t.bl_tree[2*Q]++,o=0,i=a,0===s?(d=138,h=3):a===s?(d=6,h=3):(d=7,h=4)}}function y(t,e,r){var n,i=-1,a,d=e[0*2+1],h=0,l=7,u=4;for(0===d&&(l=138,u=3),n=0;n<=r;n++){if(a=d,d=e[2*(n+1)+1],++h<l&&a===d)continue;if(h<u)do{o(t,a,t.bl_tree)}while(0!=--h);else 0!==a?(a!==i&&(o(t,a,t.bl_tree),h--),o(t,G,t.bl_tree),s(t,h-3,2)):h<=10?(o(t,J,t.bl_tree),s(t,h-3,3)):(o(t,Q,t.bl_tree),s(t,h-11,7));h=0,i=a,0===d?(l=138,u=3):a===d?(l=6,u=3):(l=7,u=4)}}function k(t){var e;for(v(t,t.dyn_ltree,t.l_desc.max_code),v(t,t.dyn_dtree,t.d_desc.max_code),w(t,t.bl_desc),e=X-1;e>=3;e--)if(0!==t.bl_tree[2*rt[e]+1])break;return t.opt_len+=3*(e+1)+5+5+4,e}function x(t,e,r,n){var i;for(s(t,e-257,5),s(t,r-1,5),s(t,n-4,4),i=0;i<n;i++)s(t,t.bl_tree[2*rt[i]+1],3);y(t,t.dyn_ltree,e-1),y(t,t.dyn_dtree,r-1)}function z(t){var e=4093624447,r;for(r=0;r<=31;r++,e>>>=1)if(1&e&&0!==t.dyn_ltree[2*r])return O;if(0!==t.dyn_ltree[9*2]||0!==t.dyn_ltree[10*2]||0!==t.dyn_ltree[13*2])return R;for(r=32;r<M;r++)if(0!==t.dyn_ltree[2*r])return R;return O}function C(t){_t||(f(),_t=!0),t.l_desc=new pt(t.dyn_ltree,ut),t.d_desc=new pt(t.dyn_dtree,ft),t.bl_desc=new pt(t.bl_tree,ct),t.bi_buf=0,t.bi_valid=0,c(t)}function A(t,e,r,n){s(t,(D<<1)+(n?1:0),3),_(t,e,r,!0)}function E(t){s(t,N<<1,3),o(t,q,it),h(t)}function S(t,e,r,n){var i,a,o=0;t.level>0?(t.strm.data_type===L&&(t.strm.data_type=z(t)),w(t,t.l_desc),w(t,t.d_desc),o=k(t),i=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==e?A(t,e,r,n):t.strategy===T||a===i?(s(t,(N<<1)+(n?1:0),3),b(t,it,at)):(s(t,(U<<1)+(n?1:0),3),x(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),b(t,t.dyn_ltree,t.dyn_dtree)),c(t),n&&p(t)}function B(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(ot[r]+M+1)]++,t.dyn_dtree[2*i(e)]++),t.last_lit===t.lit_bufsize-1}var I=t("../utils/common"),T=4,O=0,R=1,L=2,D=0,N=1,U=2,F=3,Z=258,P=29,M=256,j=M+1+P,H=30,X=19,K=2*j+1,V=15,Y=16,W=7,q=256,G=16,J=17,Q=18,$=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],tt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],et=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],nt=512,it=new Array(2*(j+2));n(it);var at=new Array(2*H);n(at);var st=new Array(nt);n(st);var ot=new Array(Z-F+1);n(ot);var dt=new Array(P);n(dt);var ht=new Array(H);n(ht);var lt=function(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length},ut,ft,ct,pt=function(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e},_t=!1;r._tr_init=C,r._tr_stored_block=A,r._tr_flush_block=S,r._tr_tally=B,r._tr_align=E},{"../utils/common":27}],39:[function(t,e,r){"use strict";function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=n},{}]},{},[9])(9)});;
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;var XLSX={};(function e(r){r.version="0.11.16";var t=1200,a=1252;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=undefined}var n=[874,932,936,949,950];for(var i=0;i<=8;++i)n.push(1250+i);var s={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var l=function(e){if(n.indexOf(e)==-1)return;a=s[0]=e};function f(){l(1252)}var c=function(e){t=e;l(e)};function o(){c(1200);f()}function u(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function h(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function d(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var v=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return h(e.substr(2));if(r==254&&t==255)return d(e.substr(2));if(r==65279)return e.substr(1);return e};var b=function Rp(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){c=function(e){t=e};v=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,u(e.substr(2)))}return e};b=function _p(e){if(t===1200)return String.fromCharCode(e);return cptable.utils.decode(t,[e&255,e>>8])[0]}}var p=null;var m=true;var g=function Dp(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a=0,n=0,i=0,s=0,l=0,f=0,c=0;for(var o=0;o<r.length;){a=r.charCodeAt(o++);n=r.charCodeAt(o++);i=r.charCodeAt(o++);s=a>>2;l=(a&3)<<4|n>>4;f=(n&15)<<2|i>>6;c=i&63;if(isNaN(n)){f=c=64}else if(isNaN(i)){c=64}t+=e.charAt(s)+e.charAt(l)+e.charAt(f)+e.charAt(c)}return t},decode:function r(t){var a="";var n=0,i=0,s=0;var l=0,f=0,c=0,o=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){l=e.indexOf(t.charAt(u++));f=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=l<<2|f>>4;i=(f&15)<<4|c>>2;s=(c&3)<<6|o;a+=String.fromCharCode(n);if(c!==64){a+=String.fromCharCode(i)}if(o!==64){a+=String.fromCharCode(s)}}return a}}}();var E=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&process.versions.node;function S(e){return new(E?Buffer:Array)(e)}function k(e){if(E)return new Buffer(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})}function w(e){if(typeof ArrayBuffer==="undefined")return k(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function B(e){if(Array.isArray(e))return e.map(Dv).join("");var r=[];for(var t=0;t<e.length;++t)r[t]=Dv(e[t]);return r.join("")}var C=function(e){return[].concat.apply([],e)};var T=/\u0000/g,I=/[\u0001-\u0006]/g;var x={};var A=function Fp(e){e.version="0.10.0";function r(e){var r="",t=e.length-1;while(t>=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length<r)t+=e;return t}function a(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function i(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function s(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function l(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var f=Math.pow(2,32);function c(e,r){if(e>f||e<-f)return s(e,r);var t=Math.round(e);return l(t,r)}function o(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function d(e){e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49]="@";e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "';e[65535]="General"}var v={};d(v);function b(e,r,t){var a=e<0?-1:1;var n=e*a;var i=0,s=1,l=0;var f=1,c=0,o=0;var u=Math.floor(n);while(c<r){u=Math.floor(n);l=u*s+i;o=u*c+f;if(n-u<5e-8)break;n=1/(n-u);i=s;s=l;f=c;c=o}if(o>r){if(c>r){o=f;l=i}else{o=c;l=s}}if(!t)return[0,a*l,o];var h=Math.floor(a*l/o);return[h,a*l-h*o,o]}function p(e,r,t){if(e>2958465||e<0)return null;var a=e|0,n=Math.floor(86400*(e-a)),i=0;var s=[];var l={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(l.u)<1e-6)l.u=0;if(r&&r.date1904)a+=1462;if(l.u>.9999){l.u=0;if(++n==86400){l.T=n=0;++a;++l.D}}if(a===60){s=t?[1317,10,29]:[1900,2,29];i=3}else if(a===0){s=t?[1317,8,29]:[1900,1,0];i=6}else{if(a>60)--a;var f=new Date(1900,0,1);f.setDate(f.getDate()+a-1);s=[f.getFullYear(),f.getMonth()+1,f.getDate()];i=f.getDay();if(a<60)i=(i+6)%7;if(t)i=C(f,s)}l.y=s[0];l.m=s[1];l.d=s[2];l.S=n%60;n=Math.floor(n/60);l.M=n%60;n=Math.floor(n/60);l.H=n;l.q=i;return l}e.parse_date_code=p;var m=new Date(1899,11,31,0,0,0);var g=m.getTime();var E=new Date(1900,2,1,0,0,0);function S(e,r){var t=e.getTime();if(r)t-=1461*24*60*60*1e3;else if(e>=E)t+=24*60*60*1e3;return(t-(g+(e.getTimezoneOffset()-m.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function k(e){return e.toString(10)}e._general_int=k;var w=function M(){var e=/\.(\d*[1-9])0+$/,r=/\.0*$/,t=/\.(\d*[1-9])0+/,a=/\.0*[Ee]/,n=/(E[+-])(\d)$/;function i(e){var r=e<0?12:11;var t=f(e.toFixed(12));if(t.length<=r)return t;t=e.toPrecision(10);if(t.length<=r)return t;return e.toExponential(5)}function s(r){var t=r.toFixed(11).replace(e,".$1");if(t.length>(r<0?12:11))t=r.toPrecision(6);return t}function l(e){for(var r=0;r!=e.length;++r)if((e.charCodeAt(r)|32)===101)return e.replace(t,".$1").replace(a,"E").replace("e","E").replace(n,"$10$2");return e}function f(t){return t.indexOf(".")>-1?t.replace(r,"").replace(e,".$1"):t}return function c(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;if(r>=-4&&r<=-1)t=e.toPrecision(10+r);else if(Math.abs(r)<=9)t=i(e);else if(r===10)t=e.toFixed(10).substr(0,12);else t=s(e);return f(l(t))}}();e._general_num=w;function B(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?k(e):w(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return N(14,S(e,r&&r.date1904),r);}throw new Error("unsupported value in General format: "+e)}e._general=B;function C(){return 0}function T(e,r,t,n){var i="",s=0,l=0,f=t.y,c,o=0;switch(e){case 98:f=t.y+543;case 121:switch(r.length){case 1:;case 2:c=f%100;o=2;break;default:c=f%1e4;o=4;break;}break;case 109:switch(r.length){case 1:;case 2:c=t.m;o=r.length;break;case 3:return h[t.m-1][1];case 5:return h[t.m-1][0];default:return h[t.m-1][2];}break;case 100:switch(r.length){case 1:;case 2:c=t.d;o=r.length;break;case 3:return u[t.q][0];default:return u[t.q][1];}break;case 104:switch(r.length){case 1:;case 2:c=1+(t.H+11)%12;o=r.length;break;default:throw"bad hour format: "+r;}break;case 72:switch(r.length){case 1:;case 2:c=t.H;o=r.length;break;default:throw"bad hour format: "+r;}break;case 77:switch(r.length){case 1:;case 2:c=t.M;o=r.length;break;default:throw"bad minute format: "+r;}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;if(t.u===0&&(r=="s"||r=="ss"))return a(t.S,r.length);if(n>=2)l=n===3?1e3:100;else l=n===1?10:1;s=Math.round(l*(t.S+t.u));if(s>=60*l)s=0;if(r==="s")return s===0?"0":""+s/l;i=a(s,2+n);if(r==="ss")return i.substr(0,2);return"."+i.substr(2,r.length-1);case 90:switch(r){case"[h]":;case"[hh]":c=t.D*24+t.H;break;case"[m]":;case"[mm]":c=(t.D*24+t.H)*60+t.M;break;case"[s]":;case"[ss]":c=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r;}o=r.length===3?1:2;break;case 101:c=f;o=1;}if(o>0)return a(c,o);else return""}function I(e){var r=3;if(e.length<=r)return e;var t=e.length%r,a=e.substr(0,t);for(;t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);return a}var x=function U(){var e=/%/g;function s(r,a,n){var i=a.replace(e,""),s=a.length-i.length;return x(r,i,n*Math.pow(10,2*s))+t("%",s)}function l(e,r,t){var a=r.length-1;while(r.charCodeAt(a-1)===44)--a;return x(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function f(e,r){var t;var a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";else if(r<0)return"-"+f(e,-r);var n=e.indexOf(".");if(n===-1)n=e.indexOf("E");var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);else t+="E+"+(s-i);while(t.substr(0,2)==="0."){t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n);t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.")}t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){return r+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}else t=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");return t.replace("e","E")}var o=/# (\?+)( ?)\/( ?)(\d+)/;function u(e,r,i){var s=parseInt(e[4],10),l=Math.round(r*s),f=Math.floor(l/s);var c=l-f*s,o=s;return i+(f===0?"":""+f)+" "+(c===0?t(" ",e[1].length+1+e[4].length):n(c,e[1].length)+e[2]+"/"+e[3]+a(o,e[4].length))}function h(e,r,a){return a+(r===0?"":""+r)+t(" ",e[1].length+2+e[4].length)}var d=/^#*0*\.([0#]+)/;var v=/\).*[0#]/;var p=/\(###\) ###\\?-####/;function m(e){var r="",t;for(var a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t);}return r}function g(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function E(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return 0}return Math.round((e-Math.floor(e))*Math.pow(10,r))}function S(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return 1}return 0}function k(e){if(e<2147483647&&e>-2147483648)return""+(e>=0?e|0:e-1|0);return""+Math.floor(e)}function w(e,h,B){if(e.charCodeAt(0)===40&&!h.match(v)){var C=h.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");if(B>=0)return w("n",C,B);return"("+w("n",C,-B)+")"}if(h.charCodeAt(h.length-1)===44)return l(e,h,B);if(h.indexOf("%")!==-1)return s(e,h,B);if(h.indexOf("E")!==-1)return f(h,B);if(h.charCodeAt(0)===36)return"$"+w(e,h.substr(h.charAt(1)==" "?2:1),B);var T;var A,R,_,D=Math.abs(B),F=B<0?"-":"";if(h.match(/^00+$/))return F+c(D,h.length);if(h.match(/^[#?]+$/)){T=c(B,0);if(T==="0")T="";return T.length>h.length?T:m(h.substr(0,h.length-T.length))+T}if(A=h.match(o))return u(A,D,F);if(h.match(/^#+0+$/))return F+c(D,h.length-h.indexOf("0"));if(A=h.match(d)){T=g(B,A[1].length).replace(/^([^\.]+)$/,"$1."+m(A[1])).replace(/\.$/,"."+m(A[1])).replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",m(A[1]).length-r.length)});return h.indexOf("0.")!==-1?T:T.replace(/^0\./,".")}h=h.replace(/^#+([0.])/,"$1");if(A=h.match(/^(0*)\.(#*)$/)){return F+g(D,A[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,A[1].length?"0.":".")}if(A=h.match(/^#{1,3},##0(\.?)$/))return F+I(c(D,0));if(A=h.match(/^#,##0\.([#0]*0)$/)){return B<0?"-"+w(e,h,-B):I(""+(Math.floor(B)+S(B,A[1].length)))+"."+a(E(B,A[1].length),A[1].length)}if(A=h.match(/^#,#*,#0/))return w(e,h.replace(/^#,#*,/,""),B);if(A=h.match(/^([0#]+)(\\?-([0#]+))+$/)){T=r(w(e,h.replace(/[\\-]/g,""),B));R=0;return r(r(h.replace(/\\/g,"")).replace(/[0#]/g,function(e){return R<T.length?T.charAt(R++):e==="0"?"0":""}))}if(h.match(p)){T=w(e,"##########",B);return"("+T.substr(0,3)+") "+T.substr(3,3)+"-"+T.substr(6)}var O="";if(A=h.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)){R=Math.min(A[4].length,7);_=b(D,Math.pow(10,R)-1,false);T=""+F;O=x("n",A[1],_[1]);if(O.charAt(O.length-1)==" ")O=O.substr(0,O.length-1)+"0";T+=O+A[2]+"/"+A[3];O=i(_[2],R);if(O.length<A[4].length)O=m(A[4].substr(A[4].length-O.length))+O;T+=O;return T}if(A=h.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)){R=Math.min(Math.max(A[1].length,A[4].length),7);_=b(D,Math.pow(10,R)-1,true);return F+(_[0]||(_[1]?"":"0"))+" "+(_[1]?n(_[1],R)+A[2]+"/"+A[3]+i(_[2],R):t(" ",2*R+1+A[2].length+A[3].length))}if(A=h.match(/^[#0?]+$/)){T=c(B,0);if(h.length<=T.length)return T;return m(h.substr(0,h.length-T.length))+T}if(A=h.match(/^([#0?]+)\.([#0]+)$/)){T=""+B.toFixed(Math.min(A[2].length,10)).replace(/([^0])0+$/,"$1");R=T.indexOf(".");var P=h.indexOf(".")-R,y=h.length-T.length-P;return m(h.substr(0,P)+T+h.substr(h.length-y))}if(A=h.match(/^00,000\.([#0]*0)$/)){R=E(B,A[1].length);return B<0?"-"+w(e,h,-B):I(k(B)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?a(0,3-e.length):"")+e})+"."+a(R,A[1].length)}switch(h){case"###,##0.00":return w(e,"#,##0.00",B);case"###,###":;case"##,###":;case"#,###":var N=I(c(D,0));return N!=="0"?F+N:"";case"###,###.00":return w(e,"###,##0.00",B).replace(/^0\./,".");case"#,###.00":return w(e,"#,##0.00",B).replace(/^0\./,".");default:;}throw new Error("unsupported format |"+h+"|")}function B(e,r,t){var a=r.length-1;while(r.charCodeAt(a-1)===44)--a;return x(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function C(r,a,n){var i=a.replace(e,""),s=a.length-i.length;return x(r,i,n*Math.pow(10,2*s))+t("%",s)}function T(e,r){var t;var a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";else if(r<0)return"-"+T(e,-r);var n=e.indexOf(".");if(n===-1)n=e.indexOf("E");var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(!t.match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);else t+="E+"+(s-i);t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){return r+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}else t=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");return t.replace("e","E")}function A(e,s,l){if(e.charCodeAt(0)===40&&!s.match(v)){var f=s.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");if(l>=0)return A("n",f,l);return"("+A("n",f,-l)+")"}if(s.charCodeAt(s.length-1)===44)return B(e,s,l);if(s.indexOf("%")!==-1)return C(e,s,l);if(s.indexOf("E")!==-1)return T(s,l);if(s.charCodeAt(0)===36)return"$"+A(e,s.substr(s.charAt(1)==" "?2:1),l);var c;var u,g,E,S=Math.abs(l),k=l<0?"-":"";if(s.match(/^00+$/))return k+a(S,s.length);if(s.match(/^[#?]+$/)){c=""+l;if(l===0)c="";return c.length>s.length?c:m(s.substr(0,s.length-c.length))+c}if(u=s.match(o))return h(u,S,k);if(s.match(/^#+0+$/))return k+a(S,s.length-s.indexOf("0"));if(u=s.match(d)){c=(""+l).replace(/^([^\.]+)$/,"$1."+m(u[1])).replace(/\.$/,"."+m(u[1]));c=c.replace(/\.(\d*)$/,function(e,r){return"."+r+t("0",m(u[1]).length-r.length)});return s.indexOf("0.")!==-1?c:c.replace(/^0\./,".")}s=s.replace(/^#+([0.])/,"$1");if(u=s.match(/^(0*)\.(#*)$/)){return k+(""+S).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,u[1].length?"0.":".")}if(u=s.match(/^#{1,3},##0(\.?)$/))return k+I(""+S);if(u=s.match(/^#,##0\.([#0]*0)$/)){return l<0?"-"+A(e,s,-l):I(""+l)+"."+t("0",u[1].length)}if(u=s.match(/^#,#*,#0/))return A(e,s.replace(/^#,#*,/,""),l);if(u=s.match(/^([0#]+)(\\?-([0#]+))+$/)){c=r(A(e,s.replace(/[\\-]/g,""),l));g=0;return r(r(s.replace(/\\/g,"")).replace(/[0#]/g,function(e){return g<c.length?c.charAt(g++):e==="0"?"0":""}))}if(s.match(p)){c=A(e,"##########",l);return"("+c.substr(0,3)+") "+c.substr(3,3)+"-"+c.substr(6)}var w="";if(u=s.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)){g=Math.min(u[4].length,7);E=b(S,Math.pow(10,g)-1,false);c=""+k;w=x("n",u[1],E[1]);if(w.charAt(w.length-1)==" ")w=w.substr(0,w.length-1)+"0";c+=w+u[2]+"/"+u[3];w=i(E[2],g);if(w.length<u[4].length)w=m(u[4].substr(u[4].length-w.length))+w;c+=w;return c}if(u=s.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)){g=Math.min(Math.max(u[1].length,u[4].length),7);E=b(S,Math.pow(10,g)-1,true);return k+(E[0]||(E[1]?"":"0"))+" "+(E[1]?n(E[1],g)+u[2]+"/"+u[3]+i(E[2],g):t(" ",2*g+1+u[2].length+u[3].length))}if(u=s.match(/^[#0?]+$/)){c=""+l;if(s.length<=c.length)return c;return m(s.substr(0,s.length-c.length))+c}if(u=s.match(/^([#0]+)\.([#0]+)$/)){c=""+l.toFixed(Math.min(u[2].length,10)).replace(/([^0])0+$/,"$1");g=c.indexOf(".");var R=s.indexOf(".")-g,_=s.length-c.length-R;return m(s.substr(0,R)+c+s.substr(s.length-_))}if(u=s.match(/^00,000\.([#0]*0)$/)){return l<0?"-"+A(e,s,-l):I(""+l).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?a(0,3-e.length):"")+e})+"."+a(0,u[1].length)}switch(s){case"###,###":;case"##,###":;case"#,###":var D=I(""+S);return D!=="0"?k+D:"";default:if(s.match(/\.[0#?]*$/))return A(e,s.slice(0,s.lastIndexOf(".")),l)+m(s.slice(s.lastIndexOf(".")));}throw new Error("unsupported format |"+s+"|")}return function R(e,r,t){return(t|0)===t?A(e,r,t):w(e,r,t)}}();function A(e){var r=[];var t=false;for(var a=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:t=!t;break;case 95:;case 42:;case 92:++a;break;case 59:r[r.length]=e.substr(n,a-n);n=a+1;}r[r.length]=e.substr(n);if(t===true)throw new Error("Format |"+e+"| unterminated string ");return r}e._split=A;var R=/\[[HhMmSs]*\]/;function _(e){var r=0,t="",a="";while(r<e.length){switch(t=e.charAt(r)){case"G":if(o(e,r))r+=6;r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;)++r;++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":;case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return true;case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":;case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":return true;case"A":;case"a":if(e.substr(r,3).toUpperCase()==="A/P")return true;if(e.substr(r,5).toUpperCase()==="AM/PM")return true;++r;break;case"[":a=t;while(e.charAt(r++)!=="]"&&r<e.length)a+=e.charAt(r);if(a.match(R))return true;break;case".":;case"0":;case"#":while(r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1){}break;case" ":++r;break;default:++r;break;}}return false}e.is_date=_;function D(e,r,t,a){var n=[],i="",s=0,l="",f="t",c,u,h;var d="H";while(s<e.length){switch(l=e.charAt(s)){case"G":if(!o(e,s))throw new Error("unrecognized character "+l+" in "+e);n[n.length]={t:"G",v:"General"};s+=7;break;case'"':for(i="";(h=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(h);n[n.length]={t:"t",v:i};++s;break;case"\\":var v=e.charAt(++s),b=v==="("||v===")"?v:"t";n[n.length]={t:b,v:v};++s;break;case"_":n[n.length]={t:"t",v:" "};s+=2;break;case"@":n[n.length]={t:"T",v:r};++s;break;case"B":;case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(c==null){c=p(r,t,e.charAt(s+1)==="2");if(c==null)return""}n[n.length]={t:"X",v:e.substr(s,2)};f=l;s+=2;break};case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":l=l.toLowerCase();case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":if(r<0)return"";if(c==null){c=p(r,t);if(c==null)return""}i=l;while(++s<e.length&&e.charAt(s).toLowerCase()===l)i+=l;if(l==="m"&&f.toLowerCase()==="h")l="M";if(l==="h")l=d;n[n.length]={t:l,v:i};f=l;break;case"A":;case"a":var m={t:l,v:l};if(c==null)c=p(r,t);if(e.substr(s,3).toUpperCase()==="A/P"){if(c!=null)m.v=c.H>=12?"P":"A";m.t="T";d="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if(c!=null)m.v=c.H>=12?"PM":"AM";m.t="T";s+=5;d="h"}else{m.t="t";++s}if(c==null&&m.t==="T")return"";n[n.length]=m;f=l;break;case"[":i=l;while(e.charAt(s++)!=="]"&&s<e.length)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(R)){if(c==null){c=p(r,t);if(c==null)return""}n[n.length]={t:"Z",v:i.toLowerCase()};f=i.charAt(1)}else if(i.indexOf("$")>-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!_(e))n[n.length]={t:"t",v:i}}break;case".":if(c!=null){i=l;while(++s<e.length&&(l=e.charAt(s))==="0")i+=l;n[n.length]={t:"s",v:i};break};case"0":;case"#":i=l;while(++s<e.length&&"0#?.,E+-%".indexOf(l=e.charAt(s))>-1||l=="\\"&&e.charAt(s+1)=="-"&&s<e.length-2&&"0#".indexOf(e.charAt(s+2))>-1)i+=l;n[n.length]={t:"n",v:i};break;case"?":i=l;while(e.charAt(++s)===l)i+=l;n[n.length]={t:l,v:i};f=l;break;case"*":++s;if(e.charAt(s)==" "||e.charAt(s)=="*")++s;break;case"(":;case")":n[n.length]={t:a===1?"t":l,v:l};++s;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":i=l;while(s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:l,v:l};++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(l)===-1)throw new Error("unrecognized character "+l+" in "+e);n[n.length]={t:"t",v:l};++s;break;}}var g=0,E=0,S;for(s=n.length-1,f="t";s>=0;--s){switch(n[s].t){case"h":;case"H":n[s].t=d;f="h";if(g<1)g=1;break;case"s":if(S=n[s].v.match(/\.0+$/))E=Math.max(E,S[0].length-1);if(g<3)g=3;case"d":;case"y":;case"M":;case"e":f=n[s].t;break;case"m":if(f==="s"){n[s].t="M";if(g<2)g=2}break;case"X":break;case"Z":if(g<1&&n[s].v.match(/[Hh]/))g=1;if(g<2&&n[s].v.match(/[Mm]/))g=2;if(g<3&&n[s].v.match(/[Ss]/))g=3;}}switch(g){case 0:break;case 1:if(c.u>=.5){c.u=0;++c.S}if(c.S>=60){c.S=0;++c.M}if(c.M>=60){c.M=0;++c.H}break;case 2:if(c.u>=.5){c.u=0;++c.S}if(c.S>=60){c.S=0;++c.M}break;}var k="",w;for(s=0;s<n.length;++s){switch(n[s].t){case"t":;case"T":;case" ":;case"D":break;case"X":n[s].v="";n[s].t=";";break;case"d":;case"m":;case"y":;case"h":;case"H":;case"M":;case"s":;case"e":;case"b":;case"Z":n[s].v=T(n[s].t.charCodeAt(0),n[s].v,c,E);n[s].t="t";break;case"n":;case"(":;case"?":w=s+1;while(n[w]!=null&&((l=n[w].t)==="?"||l==="D"||(l===" "||l==="t")&&n[w+1]!=null&&(n[w+1].t==="?"||n[w+1].t==="t"&&n[w+1].v==="/")||n[s].t==="("&&(l===" "||l==="n"||l===")")||l==="t"&&(n[w].v==="/"||n[w].v===" "&&n[w+1]!=null&&n[w+1].t=="?"))){n[s].v+=n[w].v;n[w]={v:"",t:";"};++w}k+=n[s].v;s=w-1;break;case"G":n[s].t="t";n[s].v=B(r,t);break;}}var C="",I,A;if(k.length>0){if(k.charCodeAt(0)==40){I=r<0&&k.charCodeAt(0)===45?-r:r;A=x("(",k,I)}else{I=r<0&&a>1?-r:r;A=x("n",k,I);if(I<0&&n[0]&&n[0].t=="t"){A=A.substr(1);n[0].v="-"+n[0].v}}w=A.length-1;var D=n.length;for(s=0;s<n.length;++s)if(n[s]!=null&&n[s].t!="t"&&n[s].v.indexOf(".")>-1){D=s;break}var F=n.length;if(D===n.length&&A.indexOf("E")===-1){for(s=n.length-1;s>=0;--s){if(n[s]==null||"n?(".indexOf(n[s].t)===-1)continue;if(w>=n[s].v.length-1){w-=n[s].v.length;n[s].v=A.substr(w+1,n[s].v.length)}else if(w<0)n[s].v="";else{n[s].v=A.substr(0,w+1);w=-1}n[s].t="t";F=s}if(w>=0&&F<n.length)n[F].v=A.substr(0,w+1)+n[F].v}else if(D!==n.length&&A.indexOf("E")===-1){w=A.indexOf(".")-1;for(s=D;s>=0;--s){if(n[s]==null||"n?(".indexOf(n[s].t)===-1)continue;u=n[s].v.indexOf(".")>-1&&s===D?n[s].v.indexOf(".")-1:n[s].v.length-1;C=n[s].v.substr(u+1);for(;u>=0;--u){if(w>=0&&(n[s].v.charAt(u)==="0"||n[s].v.charAt(u)==="#"))C=A.charAt(w--)+C}n[s].v=C;n[s].t="t";F=s}if(w>=0&&F<n.length)n[F].v=A.substr(0,w+1)+n[F].v;w=A.indexOf(".")+1;for(s=D;s<n.length;++s){if(n[s]==null||"n?(".indexOf(n[s].t)===-1&&s!==D)continue;u=n[s].v.indexOf(".")>-1&&s===D?n[s].v.indexOf(".")+1:0;C=n[s].v.substr(0,u);for(;u<n[s].v.length;++u){if(w<A.length)C+=A.charAt(w++)}n[s].v=C;n[s].t="t";F=s}}}for(s=0;s<n.length;++s)if(n[s]!=null&&"n(?".indexOf(n[s].t)>-1){I=a>1&&r<0&&s>0&&n[s-1].v==="-"?-r:r;n[s].v=x(n[s].t,n[s].v,I);n[s].t="t"}var O="";for(s=0;s!==n.length;++s)if(n[s]!=null)O+=n[s].v;return O}e._eval=D;var F=/\[[=<>]/;var O=/\[([=<>]*)(-?\d+\.?\d*)\]/;function P(e,r){if(r==null)return false;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return true;break;case">":if(e>t)return true;break;case"<":if(e<t)return true;break;case"<>":if(e!=t)return true;break;case">=":if(e>=t)return true;break;case"<=":if(e<=t)return true;break;}return false}function y(e,r){var t=A(e);var a=t.length,n=t[a-1].indexOf("@");if(a<4&&n>-1)--a;if(t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!=="number")return[4,t.length===4||n>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break;case 4:break;}var i=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[a,i];if(t[0].match(F)!=null||t[1].match(F)!=null){var s=t[0].match(O);var l=t[1].match(O);return P(r,s)?[a,t[0]]:P(r,l)?[a,t[1]]:[a,t[s!=null&&l!=null?2:1]]}return[a,i]}function N(e,r,t){if(t==null)t={};var a="";switch(typeof e){case"string":if(e=="m/d/yy"&&t.dateNF)a=t.dateNF;else a=e;break;case"number":if(e==14&&t.dateNF)a=t.dateNF;else a=(t.table!=null?t.table:v)[e];break;}if(o(a,0))return B(r,t);if(r instanceof Date)r=S(r,t.date1904);var n=y(a,r);if(o(n[1]))return B(r,t);if(r===true)r="TRUE";else if(r===false)r="FALSE";else if(r===""||r==null)return"";return D(n[1],r,t,n[0])}function L(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(v[t]==undefined){if(r<0)r=t;continue}if(v[t]==e){r=t;break}}if(r<0)r=391}v[r]=e;return r}e.load=L;e._table=v;e.get_table=function W(){return v};e.load_table=function V(e){for(var r=0;r!=392;++r)if(e[r]!==undefined)L(e[r],r)};e.init_table=d;e.format=N};A(x);var R={"General Number":"General","General Date":x._table[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":x._table[15],"Short Date":x._table[14],"Long Time":x._table[19],"Medium Time":x._table[18],"Short Time":x._table[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:x._table[2],Standard:x._table[4],Percent:x._table[10],Scientific:x._table[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var _=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function D(e){var r=typeof e=="number"?x._table[e]:e;r=r.replace(_,"(\\d+)");return new RegExp("^"+r+"$")}function F(e,r,t){var a=-1,n=-1,i=-1,s=-1,l=-1,f=-1;(r.match(_)||[]).forEach(function(e,r){var c=parseInt(t[r+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=c;break;case"d":i=c;break;case"h":s=c;break;case"s":f=c;break;case"m":if(s>=0)l=c;else n=c;break;}});if(f>=0&&l==-1&&n>=0){l=n;n=-1}var c=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);if(c.length==7)c="0"+c;if(c.length==8)c="20"+c;var o=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);if(s==-1&&l==-1&&f==-1)return c;if(a==-1&&n==-1&&i==-1)return o;return c+"T"+o}var O=true;var P=function Op(){var e={};e.version="1.0.1";function r(e,r){var t=e.split("/"),a=r.split("/");for(var n=0,i=0,s=Math.min(t.length,a.length);n<s;++n){if(i=t[n].length-a[n].length)return i;if(t[n]!=a[n])return t[n]<a[n]?-1:1}return t.length-a.length}function t(e){if(e.charAt(e.length-1)=="/")return e.slice(0,-1).indexOf("/")===-1?e:t(e.slice(0,-1));var r=e.lastIndexOf("/");return r===-1?e:e.slice(0,r+1)}function a(e){if(e.charAt(e.length-1)=="/")return a(e.slice(0,-1));var r=e.lastIndexOf("/");return r===-1?e:e.slice(r+1)}var n;function i(){return n||(n=require("fs"))}function s(e,r){var t=3;var a=512;var n=0;var i=0;var s=0;var u=0;var d=0;var p=[];var m=e.slice(0,512);Or(m,0);var g=l(m);t=g[0];switch(t){case 3:a=512;break;case 4:a=4096;break;default:throw new Error("Major Version: Expected 3 or 4 saw "+t);}if(a!==512){m=e.slice(0,a);Or(m,28)}var E=e.slice(0,a);f(m,t);var S=m._R(4,"i");if(t===3&&S!==0)throw new Error("# Directory Sectors: Expected 0 saw "+S);m.l+=4;s=m._R(4,"i");m.l+=4;m.chk("00100000","Mini Stream Cutoff Size: ");u=m._R(4,"i");n=m._R(4,"i");d=m._R(4,"i");i=m._R(4,"i");for(var k=-1,w=0;w<109;++w){k=m._R(4,"i");if(k<0)break;p[w]=k}var B=c(e,a);h(d,i,B,a,p);var C=v(B,s,p,a);C[s].name="!Directory";if(n>0&&u!==_)C[u].name="!MiniFAT";C[p[0]].name="!FAT";C.fat_addrs=p;C.ssz=a;var T={},I=[],x=[],A=[];b(s,C,B,I,n,T,x,u);o(x,A,I);I.shift();var R={FileIndex:x,FullPaths:A};if(r&&r.raw)R.raw={header:E,sectors:B};return R}function l(e){e.chk(D,"Header Signature: ");e.chk(O,"CLSID: ");var r=e._R(2,"u");return[e._R(2,"u"),r]}function f(e,r){var t=9;e.l+=2;switch(t=e._R(2)){case 9:if(r!=3)throw new Error("Sector Shift: Expected 9 saw "+t);break;case 12:if(r!=4)throw new Error("Sector Shift: Expected 12 saw "+t);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+t);}e.chk("0600","Mini Sector Shift: ");e.chk("000000000000","Reserved: ")}function c(e,r){var t=Math.ceil(e.length/r)-1;var a=[];for(var n=1;n<t;++n)a[n-1]=e.slice(n*r,(n+1)*r);a[t-1]=e.slice(t*r);return a}function o(e,r,t){var a=0,n=0,i=0,s=0,l=0,f=t.length;var c=[],o=[];for(;a<f;++a){c[a]=o[a]=a;r[a]=t[a]}for(;l<o.length;++l){a=o[l];n=e[a].L;i=e[a].R;s=e[a].C;if(c[a]===a){if(n!==-1&&c[n]!==n)c[a]=c[n];if(i!==-1&&c[i]!==i)c[a]=c[i]}if(s!==-1)c[s]=a;if(n!==-1){c[n]=c[a];o.push(n)}if(i!==-1){c[i]=c[a];o.push(i)}}for(a=1;a!==f;++a)if(c[a]===a){if(i!==-1&&c[i]!==i)c[a]=c[i];else if(n!==-1&&c[n]!==n)c[a]=c[n]}for(a=1;a<f;++a){if(e[a].type===0)continue;l=c[a];if(l===0)r[a]=r[0]+"/"+r[a];else while(l!==0&&l!==c[l]){r[a]=r[l]+"/"+r[a];l=c[l]}c[a]=0}r[0]+="/";for(a=1;a<f;++a){if(e[a].type!==2)r[a]+="/"}}function u(e,r,t){var a=e.start,n=e.size;var i=[];var s=a;while(t&&n>0&&s>=0){i.push(r.slice(s*R,s*R+R));n-=R;s=Br(t,s*4)}if(i.length===0)return yr(0);return C(i).slice(0,e.size)}function h(e,r,t,a,n){var i=_;if(e===_){if(r!==0)throw new Error("DIFAT chain shorter than expected")}else if(e!==-1){var s=t[e],l=(a>>>2)-1;if(!s)return;for(var f=0;f<l;++f){if((i=Br(s,f*4))===_)break;n.push(i)}h(Br(s,a-4),r-1,t,a,n)}}function d(e,r,t,a,n){var i=[],s=[];if(!n)n=[];var l=a-1,f=0,c=0;for(f=r;f>=0;){n[f]=true;i[i.length]=f;s.push(e[f]);var o=t[Math.floor(f*4/a)];c=f*4&l;if(a<4+c)throw new Error("FAT boundary crossed: "+f+" 4 "+a);if(!e[o])break;f=Br(e[o],c)}return{nodes:i,data:Ze([s])}}function v(e,r,t,a){var n=e.length,i=[];var s=[],l=[],f=[];var c=a-1,o=0,u=0,h=0,d=0;for(o=0;o<n;++o){l=[];h=o+r;if(h>=n)h-=n;if(s[h])continue;f=[];for(u=h;u>=0;){s[u]=true;l[l.length]=u;f.push(e[u]);var v=t[Math.floor(u*4/a)];d=u*4&c;if(a<4+d)throw new Error("FAT boundary crossed: "+u+" 4 "+a);if(!e[v])break;u=Br(e[v],d)}i[h]={nodes:l,data:Ze([f])}}return i}function b(e,r,t,a,n,i,s,l){var f=0,c=a.length?2:0;var o=r[e].data;var h=0,v=0,b;for(;h<o.length;h+=128){var m=o.slice(h,h+128);Or(m,64);v=m._R(2);b=er(m,0,v-c);a.push(b);var g={name:b,type:m._R(1),color:m._R(1),L:m._R(4,"i"),R:m._R(4,"i"),C:m._R(4,"i"),clsid:m._R(16),state:m._R(4,"i"),start:0,size:0};var E=m._R(2)+m._R(2)+m._R(2)+m._R(2);if(E!==0)g.ct=p(m,m.l-8);var S=m._R(2)+m._R(2)+m._R(2)+m._R(2);if(S!==0)g.mt=p(m,m.l-8);g.start=m._R(4,"i");g.size=m._R(4,"i");if(g.size<0&&g.start<0){g.size=g.type=0;g.start=_;g.name=""}if(g.type===5){f=g.start;if(n>0&&f!==_)r[f].name="!StreamData";
}else if(g.size>=4096){g.storage="fat";if(r[g.start]===undefined)r[g.start]=d(t,g.start,r.fat_addrs,r.ssz);r[g.start].name=g.name;g.content=r[g.start].data.slice(0,g.size);Or(g.content,0)}else{g.storage="minifat";if(f!==_&&g.start!==_&&r[f]){g.content=u(g,r[f].data,(r[l]||{}).data);Or(g.content,0)}}i[b]=g;s.push(g)}}function p(e,r){return new Date((wr(e,r+4)/1e7*Math.pow(2,32)+wr(e,r)/1e7-11644473600)*1e3)}function m(e,r){i();return s(n.readFileSync(e),r)}function E(e,r){switch(r&&r.type||"base64"){case"file":return m(e,r);case"base64":return s(k(g.decode(e)),r);case"binary":return s(k(e),r);}return s(e,r)}function S(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;w(e)}function w(e){var r="Sh33tJ5";if(P.find(e,"/"+r))return;var t=yr(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);B(e)}function B(e,n){S(e);var i=false,s=false;for(var l=e.FullPaths.length-1;l>=0;--l){var f=e.FileIndex[l];switch(f.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(f.R*f.L*f.C))i=true;if(f.R>-1&&f.L>-1&&f.R==f.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var c=new Date(1987,1,19),o=0;var u=[];for(l=0;l<e.FullPaths.length;++l){if(e.FileIndex[l].type===0)continue;u.push([e.FullPaths[l],e.FileIndex[l]])}for(l=0;l<u.length;++l){var h=t(u[l][0]);s=false;for(o=0;o<u.length;++o)if(u[o][0]===h)s=true;if(!s)u.push([h,{name:a(h).replace("/",""),type:1,clsid:O,ct:c,mt:c,content:null}])}u.sort(function(e,t){return r(e[0],t[0])});e.FullPaths=[];e.FileIndex=[];for(l=0;l<u.length;++l){e.FullPaths[l]=u[l][0];e.FileIndex[l]=u[l][1]}for(l=0;l<u.length;++l){var d=e.FileIndex[l];var v=e.FullPaths[l];d.name=a(v).replace("/","");d.L=d.R=d.C=-(d.color=1);d.size=d.content?d.content.length:0;d.start=0;d.clsid=d.clsid||O;if(l===0){d.C=u.length>1?1:-1;d.size=0;d.type=5}else if(v.slice(-1)=="/"){for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==v)break;d.C=o>=u.length?-1:o;for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==t(v))break;d.R=o>=u.length?-1:o;d.type=1}else{if(t(e.FullPaths[l+1]||"")==t(v))d.R=l+1;d.type=2}}}function x(e,r){B(e);var t=function(e){var r=0,t=0;for(var a=0;a<e.FileIndex.length;++a){var n=e.FileIndex[a];if(!n.content)continue;var i=n.content.length;if(i===0){}else if(i<4096)r+=i+63>>6;else t+=i+511>>9}var s=e.FullPaths.length+3>>2;var l=r+7>>3;var f=r+127>>7;var c=l+t+s+f;var o=c+127>>7;var u=o<=109?0:Math.ceil((o-109)/127);while(c+o+u+127>>7>o)u=++o<=109?0:Math.ceil((o-109)/127);var h=[1,u,o,f,s,t,r,0];e.FileIndex[0].size=r<<6;h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3);return h}(e);var a=yr(t[7]<<9);var n=0,i=0;{for(n=0;n<8;++n)a._W(1,F[n]);for(n=0;n<8;++n)a._W(2,0);a._W(2,62);a._W(2,3);a._W(2,65534);a._W(2,9);a._W(2,6);for(n=0;n<3;++n)a._W(2,0);a._W(4,0);a._W(4,t[2]);a._W(4,t[0]+t[1]+t[2]+t[3]-1);a._W(4,0);a._W(4,1<<12);a._W(4,t[3]?t[0]+t[1]+t[2]-1:_);a._W(4,t[3]);a._W(-4,t[1]?t[0]-1:_);a._W(4,t[1]);for(n=0;n<109;++n)a._W(-4,n<t[2]?t[1]+n:-1)}if(t[1]){for(i=0;i<t[1];++i){for(;n<236+i*127;++n)a._W(-4,n<t[2]?t[1]+n:-1);a._W(-4,i===t[1]-1?_:i+1)}}var s=function(e){for(i+=e;n<i-1;++n)a._W(-4,n+1);if(e){++n;a._W(-4,_)}};i=n=0;for(i+=t[1];n<i;++n)a._W(-4,y.DIFSECT);for(i+=t[2];n<i;++n)a._W(-4,y.FATSECT);s(t[3]);s(t[4]);var l=0,f=0;var c=e.FileIndex[0];for(;l<e.FileIndex.length;++l){c=e.FileIndex[l];if(!c.content)continue;f=c.content.length;if(f<4096)continue;c.start=i;s(f+511>>9)}s(t[6]+7>>3);while(a.l&511)a._W(-4,y.ENDOFCHAIN);i=n=0;for(l=0;l<e.FileIndex.length;++l){c=e.FileIndex[l];if(!c.content)continue;f=c.content.length;if(!f||f>=4096)continue;c.start=i;s(f+63>>6)}while(a.l&511)a._W(-4,y.ENDOFCHAIN);for(n=0;n<t[4]<<2;++n){var o=e.FullPaths[n];if(!o||o.length===0){for(l=0;l<17;++l)a._W(4,0);for(l=0;l<3;++l)a._W(4,-1);for(l=0;l<12;++l)a._W(4,0);continue}c=e.FileIndex[n];if(n===0)c.start=c.size?c.start-1:_;f=2*(c.name.length+1);a._W(64,c.name,"utf16le");a._W(2,f);a._W(1,c.type);a._W(1,c.color);a._W(-4,c.L);a._W(-4,c.R);a._W(-4,c.C);if(!c.clsid)for(l=0;l<4;++l)a._W(4,0);else a._W(16,c.clsid,"hex");a._W(4,c.state||0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,c.start);a._W(4,c.size);a._W(4,0)}for(n=1;n<e.FileIndex.length;++n){c=e.FileIndex[n];if(c.size>=4096){a.l=c.start+1<<9;for(l=0;l<c.size;++l)a._W(1,c.content[l]);for(;l&511;++l)a._W(1,0)}}for(n=1;n<e.FileIndex.length;++n){c=e.FileIndex[n];if(c.size>0&&c.size<4096){for(l=0;l<c.size;++l)a._W(1,c.content[l]);for(;l&63;++l)a._W(1,0)}}while(a.l<a.length)a._W(1,0);return a}function A(e,r){var t=e.FullPaths.map(function(e){return e.toUpperCase()});var a=t.map(function(e){var r=e.split("/");return r[r.length-(e.slice(-1)=="/"?2:1)]});var n=false;if(r.charCodeAt(0)===47){n=true;r=t[0].slice(0,-1)+r}else n=r.indexOf("/")!==-1;var i=r.toUpperCase();var s=n===true?t.indexOf(i):a.indexOf(i);if(s!==-1)return e.FileIndex[s];i=i.replace(T,"").replace(I,"!");for(s=0;s<t.length;++s){if(t[s].replace(T,"").replace(I,"!")==i)return e.FileIndex[s];if(a[s].replace(T,"").replace(I,"!")==i)return e.FileIndex[s]}return null}var R=64;var _=-2;var D="d0cf11e0a1b11ae1";var F=[208,207,17,224,161,177,26,225];var O="00000000000000000000000000000000";var y={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:_,FREESECT:-1,HEADER_SIGNATURE:D,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:O,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function N(e,r,t){i();var a=x(e,t);n.writeFileSync(r,a)}function L(e){var r=new Array(e.length);for(var t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function M(e,r){var t=x(e,r);switch(r&&r.type){case"file":i();n.writeFileSync(r.filename,t);return t;case"binary":return L(t);case"base64":return g.encode(L(t));}return t}function U(e){var r={};S(r,e);return r}function W(e,r,t,n){S(e);var i=P.find(e,r);if(!i){var s=e.FullPaths[0];if(r.slice(0,s.length)==s)s=r;else{if(s.slice(-1)!="/")s+="/";s=(s+r).replace("//","/")}i={name:a(r),type:2};e.FileIndex.push(i);e.FullPaths.push(s);P.utils.cfb_gc(e)}i.content=t;i.size=t?t.length:0;if(n){if(n.CLSID)i.clsid=n.CLSID}return i}function V(e,r){S(e);var t=P.find(e,r);if(t)for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==t){e.FileIndex.splice(a,1);e.FullPaths.splice(a,1);return true}return false}function H(e,r,t){S(e);var n=P.find(e,r);if(n)for(var i=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==n){e.FileIndex[i].name=a(t);e.FullPaths[i]=t;return true}return false}function X(e){B(e,true)}e.find=A;e.read=E;e.parse=s;e.write=M;e.writeFile=N;e.utils={cfb_new:U,cfb_add:W,cfb_del:V,cfb_mov:H,cfb_gc:X,ReadShift:xr,CheckField:Fr,prep_blob:Or,bconcat:C,consts:y};return e}();if(typeof require!=="undefined"&&typeof module!=="undefined"&&typeof O==="undefined"){module.exports=P}function y(e){return Object.keys(e)}function N(e,r){var t=[],a=y(e);for(var n=0;n!==a.length;++n)t[e[a[n]][r]]=a[n];return t}function L(e){var r=[],t=y(e);for(var a=0;a!==t.length;++a)r[e[t[a]]]=t[a];return r}function M(e){var r=[],t=y(e);for(var a=0;a!==t.length;++a)r[e[t[a]]]=parseInt(t[a],10);return r}function U(e){var r=[],t=y(e);for(var a=0;a!==t.length;++a){if(r[e[t[a]]]==null)r[e[t[a]]]=[];r[e[t[a]]].push(t[a])}return r}var W=new Date(1899,11,30,0,0,0);var V=W.getTime()+((new Date).getTimezoneOffset()-W.getTimezoneOffset())*6e4;function H(e,r){var t=e.getTime();if(r)t-=1462*24*60*60*1e3;return(t-V)/(24*60*60*1e3)}function X(e){var r=new Date;r.setTime(e*24*60*60*1e3+V);return r}function G(e){var r=0,t=0,a=false;var n=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=n.length;++i){if(!n[i])continue;t=1;if(i>3)a=true;switch(n[i].substr(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].substr(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");else t*=60;case"S":break;}r+=t*parseInt(n[i],10)}return r}var z=new Date("2017-02-19T19:06:09.000Z");if(isNaN(z.getFullYear()))z=new Date("2/19/17");var j=z.getFullYear()==2017;function K(e,r){var t=new Date(e);if(j){if(r>0)t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3);else if(r<0)t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3);return t}if(e instanceof Date)return e;if(z.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();if(e.indexOf(""+a)>-1)return t;t.setFullYear(t.getFullYear()+100);return t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"];var i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3);return i}function Y(e){var r="";for(var t=0;t!=e.length;++t)r+=String.fromCharCode(e[t]);return r}function $(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;var r={};for(var t in e)if(e.hasOwnProperty(t))r[t]=$(e[t]);return r}function Q(e,r){var t="";while(t.length<r)t+=e;return t}function J(e){var r=Number(e);if(!isNaN(r))return r;var t=1;var a=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){t*=100;return""});if(!isNaN(r=Number(a)))return r/t;a=a.replace(/[(](.*)[)]/,function(e,r){t=-t;return r});if(!isNaN(r=Number(a)))return r/t;return r}function Z(e){var r=new Date(e),t=new Date(NaN);var a=r.getYear(),n=r.getMonth(),i=r.getDate();if(isNaN(i))return t;if(a<0||a>8099)return t;if((n>0||i>1)&&a!=101)return r;if(e.toLowerCase().match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/))return r;if(e.match(/[^-0-9:,\/\\]/))return t;return r}var q="abacaba".split(/(:?b)/i).length==5;function ee(e,r,t){if(q||typeof r=="string")return e.split(r);var a=e.split(r),n=[a[0]];for(var i=1;i<a.length;++i){n.push(t);n.push(a[i])}return n}function re(e){if(!e)return null;if(e.data)return v(e.data);if(e.asNodeBuffer&&E)return v(e.asNodeBuffer().toString("binary"));if(e.asBinary)return v(e.asBinary());if(e._data&&e._data.getContent)return v(Y(Array.prototype.slice.call(e._data.getContent(),0)));return null}function te(e){if(!e)return null;if(e.data)return u(e.data);if(e.asNodeBuffer&&E)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();if(typeof r=="string")return u(r);return Array.prototype.slice.call(r)}return null}function ae(e){return e&&e.name.slice(-4)===".bin"?te(e):re(e)}function ne(e,r){var t=y(e.files);var a=r.toLowerCase(),n=a.replace(/\//g,"\\");for(var i=0;i<t.length;++i){var s=t[i].toLowerCase();if(a==s||n==s)return e.files[t[i]]}return null}function ie(e,r){var t=ne(e,r);if(t==null)throw new Error("Cannot find file "+r+" in zip");return t}function se(e,r,t){if(!t)return ae(ie(e,r));if(!r)return null;try{return se(e,r)}catch(a){return null}}function le(e,r,t){if(!t)return re(ie(e,r));if(!r)return null;try{return le(e,r)}catch(a){return null}}var fe,ce;if(typeof JSZip!=="undefined")ce=JSZip;if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){if(typeof ce==="undefined")ce=undefined;try{fe=require("fs")}catch(oe){}}}function ue(e,r){var t=r.split("/");if(r.slice(-1)!="/")t.pop();var a=e.split("/");while(a.length!==0){var n=a.shift();if(n==="..")t.pop();else if(n!==".")t.push(n)}return t.join("/")}var he='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var de=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g;var ve=/<[\/\?]?[a-zA-Z0-9:]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s]+))*\s?[\/\?]?>/g;if(!he.match(ve))ve=/<[^>]*>/g;var be=/<\w*:/,pe=/<(\/?)\w+:/;function me(e,r){var t={};var a=0,n=0;for(;a!==e.length;++a)if((n=e.charCodeAt(a))===32||n===10||n===13)break;if(!r)t[0]=e.substr(0,a);if(a===e.length)return t;var i=e.match(de),s=0,l="",f=0,c="",o="",u=1;if(i)for(f=0;f!=i.length;++f){o=i[f];for(n=0;n!=o.length;++n)if(o.charCodeAt(n)===61)break;c=o.substr(0,n).trim();while(o.charCodeAt(n+1)==32)++n;u=(a=o.charCodeAt(n+1))==34||a==39?1:0;l=o.substring(n+1+u,o.length-u);for(s=0;s!=c.length;++s)if(c.charCodeAt(s)===58)break;if(s===c.length){if(c.indexOf("_")>0)c=c.substr(0,c.indexOf("_"));t[c]=l}else{var h=(s===5&&c.substr(0,5)==="xmlns"?"xmlns":"")+c.substr(s+1);if(t[h]&&c.substr(s-3,3)=="ext")continue;t[h]=l}}return t}function ge(e){return e.replace(pe,"<$1")}var Ee={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"};var Se=L(Ee);var ke=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/g,r=/_x([\da-fA-F]{4})_/g;return function t(a){var n=a+"",i=n.indexOf("<![CDATA[");if(i==-1)return n.replace(e,function(e,r){return Ee[e]||String.fromCharCode(parseInt(r,e.indexOf("x")>-1?16:10))||e}).replace(r,function(e,r){return String.fromCharCode(parseInt(r,16))});var s=n.indexOf("]]>");return t(n.slice(0,i))+n.slice(i+9,s)+t(n.slice(s+3))}}();var we=/[&<>'"]/g,Be=/[\u0000-\u0008\u000b-\u001f]/g;function Ce(e,r){var t=e+"";return t.replace(we,function(e){return Se[e]}).replace(Be,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Te(e){return Ce(e).replace(/ /g,"_x0020_")}var Ie=/[\u0000-\u001f]/g;function xe(e){var r=e+"";return r.replace(we,function(e){return Se[e]}).replace(Ie,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}var Ae=function(){var e=/&#(\d+);/g;function r(e,r){return String.fromCharCode(parseInt(r,10))}return function t(a){return a.replace(e,r)}}();var Re=function(){return function e(r){return r.replace(/(\r\n|[\r\n])/g,"&#10;")}}();function _e(e,r){switch(e){case 1:;case true:;case"1":;case"true":;case"TRUE":return true;default:return false;}}var De=function Pp(e){var r="",t=0,a=0,n=0,i=0,s=0,l=0;while(t<e.length){a=e.charCodeAt(t++);if(a<128){r+=String.fromCharCode(a);continue}n=e.charCodeAt(t++);if(a>191&&a<224){s=(a&31)<<6;s|=n&63;r+=String.fromCharCode(s);continue}i=e.charCodeAt(t++);if(a<240){r+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(t++);l=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536;r+=String.fromCharCode(55296+(l>>>10&1023));r+=String.fromCharCode(56320+(l&1023))}return r};var Fe=function(e){var r=[],t=0,a=0,n=0;while(t<e.length){a=e.charCodeAt(t++);switch(true){case a<128:r.push(String.fromCharCode(a));break;case a<2048:r.push(String.fromCharCode(192+(a>>6)));r.push(String.fromCharCode(128+(a&63)));break;case a>=55296&&a<57344:a-=55296;n=e.charCodeAt(t++)-56320+(a<<10);r.push(String.fromCharCode(240+(n>>18&7)));r.push(String.fromCharCode(144+(n>>12&63)));r.push(String.fromCharCode(128+(n>>6&63)));r.push(String.fromCharCode(128+(n&63)));break;default:r.push(String.fromCharCode(224+(a>>12)));r.push(String.fromCharCode(128+(a>>6&63)));r.push(String.fromCharCode(128+(a&63)));}}return r.join("")};if(E){var Oe=function yp(e){var r=new Buffer(2*e.length),t,a,n=1,i=0,s=0,l;for(a=0;a<e.length;a+=n){n=1;if((l=e.charCodeAt(a))<128)t=l;else if(l<224){t=(l&31)*64+(e.charCodeAt(a+1)&63);n=2}else if(l<240){t=(l&15)*4096+(e.charCodeAt(a+1)&63)*64+(e.charCodeAt(a+2)&63);n=3}else{n=4;t=(l&7)*262144+(e.charCodeAt(a+1)&63)*4096+(e.charCodeAt(a+2)&63)*64+(e.charCodeAt(a+3)&63);t-=65536;s=55296+(t>>>10&1023);t=56320+(t&1023)}if(s!==0){r[i++]=s&255;r[i++]=s>>>8;s=0}r[i++]=t%256;r[i++]=t>>>8}return r.slice(0,i).toString("ucs2")};var Pe="foo bar bazâð£";if(De(Pe)==Oe(Pe))De=Oe;var ye=function Np(e){return Buffer(e,"binary").toString("utf8")};if(De(Pe)==ye(Pe))De=ye;Fe=function(e){return new Buffer(e,"utf8").toString("binary")}}var Ne=function(){var e={};return function r(t,a){var n=t+"|"+(a||"");if(e[n])return e[n];return e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",a||"")}}();var Le=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","g"),e[1]]});return function r(t){var a=t.trim().replace(/\s+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,"");for(var n=0;n<e.length;++n)a=a.replace(e[n][0],e[n][1]);return a}}();var Me=function(){var e={};return function r(t){if(e[t]!==undefined)return e[t];return e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}();var Ue=/<\/?(?:vt:)?variant>/g,We=/<(?:vt:)([^>]*)>([\s\S]*)</;function Ve(e,r){var t=me(e);var a=e.match(Me(t.baseType))||[];var n=[];if(a.length!=t.size){if(r.WTF)throw new Error("unexpected vector length "+a.length+" != "+t.size);return n}a.forEach(function(e){var r=e.replace(Ue,"").match(We);if(r)n.push({v:De(r[2]),t:r[1]})});return n}var He=/(^\s|\s$|\n)/;function Xe(e,r){return"<"+e+(r.match(He)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function Ge(e){return y(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function ze(e,r,t){return"<"+e+(t!=null?Ge(t):"")+(r!=null?(r.match(He)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function je(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function Ke(e){switch(typeof e){case"string":return ze("vt:lpwstr",e);case"number":return ze((e|0)==e?"vt:i4":"vt:r8",String(e));case"boolean":return ze("vt:bool",e?"true":"false");}if(e instanceof Date)return ze("vt:filetime",je(e));throw new Error("Unable to serialize "+e)}var Ye={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};Ye.main=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];var $e={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Qe(e,r){var t=1-2*(e[r+7]>>>7);var a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);var n=e[r+6]&15;for(var i=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)return n==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}return t*Math.pow(2,a-52)*n}function Je(e,r,t){var a=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;var s=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}else if(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))){n=-1022}else{i-=Math.pow(2,52);n+=1023}}for(var l=0;l<=5;++l,i/=256)e[t+l]=i&255;e[t+6]=(n&15)<<4|i&15;e[t+7]=n>>4|a}var Ze=function(e){var r=[];for(var t=0;t<e[0].length;++t){r.push.apply(r,e[0][t])}return r};var qe=Ze;var er=function(e,r,t){var a=[];for(var n=r;n<t;n+=2)a.push(String.fromCharCode(Sr(e,n)));return a.join("").replace(T,"")};var rr=er;var tr=function(e,r,t){var a=[];for(var n=r;n<r+t;++n)a.push(("0"+e[n].toString(16)).slice(-2));return a.join("")};var ar=tr;var nr=function(e,r,t){var a=[];for(var n=r;n<t;n++)a.push(String.fromCharCode(Er(e,n)));return a.join("")};var ir=nr;var sr=function(e,r){var t=wr(e,r);return t>0?nr(e,r+4,r+4+t-1):""};var lr=sr;var fr=function(e,r){var t=wr(e,r);return t>0?nr(e,r+4,r+4+t-1):""};var cr=fr;var or=function(e,r){var t=2*wr(e,r);return t>0?nr(e,r+4,r+4+t-1):""};var ur=or;var hr,dr;hr=dr=function Lp(e,r){var t=wr(e,r);return t>0?er(e,r+4,r+4+t):""};var vr=function(e,r){var t=wr(e,r);return t>0?nr(e,r+4,r+4+t):""};var br=vr;var pr,mr;pr=mr=function(e,r){return Qe(e,r)};var gr=function Mp(e){return Array.isArray(e)};if(E){er=function(e,r,t){if(!Buffer.isBuffer(e))return rr(e,r,t);return e.toString("utf16le",r,t).replace(T,"")};tr=function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):ar(e,r,t)};sr=function Up(e,r){if(!Buffer.isBuffer(e))return lr(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};fr=function Wp(e,r){if(!Buffer.isBuffer(e))return cr(e,r);var t=e.readUInt32LE(r);return t>0?e.toString("utf8",r+4,r+4+t-1):""};or=function Vp(e,r){if(!Buffer.isBuffer(e))return ur(e,r);var t=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t-1)};hr=function Hp(e,r){if(!Buffer.isBuffer(e))return dr(e,r);var t=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+t)};vr=function Xp(e,r){if(!Buffer.isBuffer(e))return br(e,r);var t=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+t)};nr=function Gp(e,r,t){return Buffer.isBuffer(e)?e.toString("utf8",r,t):nr(e,r,t)};Ze=function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0]):qe(e)};C=function(e){return Buffer.isBuffer(e[0])?Buffer.concat(e):[].concat.apply([],e)};pr=function zp(e,r){if(Buffer.isBuffer(e))return e.readDoubleLE(r);return mr(e,r)};gr=function jp(e){return Buffer.isBuffer(e)||Array.isArray(e)}}if(typeof cptable!=="undefined"){er=function(e,r,t){return cptable.utils.decode(1200,e.slice(r,t)).replace(T,"")};nr=function(e,r,t){return cptable.utils.decode(65001,e.slice(r,t))};sr=function(e,r){var t=wr(e,r);return t>0?cptable.utils.decode(a,e.slice(r+4,r+4+t-1)):""};fr=function(e,r){var a=wr(e,r);return a>0?cptable.utils.decode(t,e.slice(r+4,r+4+a-1)):""};or=function(e,r){var t=2*wr(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t-1)):""};hr=function(e,r){var t=wr(e,r);return t>0?cptable.utils.decode(1200,e.slice(r+4,r+4+t)):""};vr=function(e,r){var t=wr(e,r);return t>0?cptable.utils.decode(65001,e.slice(r+4,r+4+t)):""}}var Er=function(e,r){return e[r]};var Sr=function(e,r){return e[r+1]*(1<<8)+e[r]};var kr=function(e,r){var t=e[r+1]*(1<<8)+e[r];return t<32768?t:(65535-t+1)*-1};var wr=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]};var Br=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]};var Cr=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};var Tr=function(e){return(e.match(/../g)||[]).map(function(e){return parseInt(e,16)})};var Ir=typeof Buffer!=="undefined"?function(e){return Buffer.isBuffer(e)?new Buffer(e,"hex"):Tr(e)}:Tr;function xr(e,r){var a="",n,i,s=[],l,f,c,o;switch(r){case"dbcs":o=this.l;if(E&&Buffer.isBuffer(this))a=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c!=e;++c){a+=String.fromCharCode(Sr(this,o));o+=2}e*=2;break;case"utf8":a=nr(this,this.l,this.l+e);break;case"utf16le":e*=2;a=er(this,this.l,this.l+e);break;case"wstr":if(typeof cptable!=="undefined")a=cptable.utils.decode(t,this.slice(this.l,this.l+2*e));else return xr.call(this,e,"dbcs");e=2*e;break;case"lpstr-ansi":a=sr(this,this.l);e=4+wr(this,this.l);break;case"lpstr-cp":a=fr(this,this.l);e=4+wr(this,this.l);break;case"lpwstr":a=or(this,this.l);e=4+2*wr(this,this.l);break;case"lpp4":e=4+wr(this,this.l);a=hr(this,this.l);if(e&2)e+=2;break;case"8lpp4":e=4+wr(this,this.l);a=vr(this,this.l);if(e&3)e+=4-(e&3);break;case"cstr":e=0;a="";while((l=Er(this,this.l+e++))!==0)s.push(b(l));a=s.join("");break;case"_wstr":e=0;a="";while((l=Sr(this,this.l+e))!==0){s.push(b(l));e+=2}e+=2;a=s.join("");break;case"dbcs-cont":a="";o=this.l;for(c=0;c!=e;++c){if(this.lens&&this.lens.indexOf(o)!==-1){l=Er(this,o);this.l=o+1;f=xr.call(this,e-c,l?"dbcs-cont":"sbcs-cont");return s.join("")+f}s.push(b(Sr(this,o)));o+=2}a=s.join("");e*=2;break;case"cpstr":if(typeof cptable!=="undefined"){a=cptable.utils.decode(t,this.slice(this.l,this.l+e));break};case"sbcs-cont":a="";o=this.l;for(c=0;c!=e;++c){if(this.lens&&this.lens.indexOf(o)!==-1){l=Er(this,o);this.l=o+1;f=xr.call(this,e-c,l?"dbcs-cont":"sbcs-cont");return s.join("")+f}s.push(b(Er(this,o)));o+=1}a=s.join("");break;default:switch(e){case 1:n=Er(this,this.l);this.l++;return n;case 2:n=(r==="i"?kr:Sr)(this,this.l);this.l+=2;return n;case 4:;case-4:if(r==="i"||(this[this.l+3]&128)===0){n=(e>0?Br:Cr)(this,this.l);this.l+=4;return n}else{i=wr(this,this.l);this.l+=4}return i;case 8:;case-8:if(r==="f"){if(e==8)i=pr(this,this.l);else i=pr([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0);this.l+=8;return i}else e=8;case 16:a=tr(this,this.l,e);break;};}this.l+=e;return a}var Ar=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255;e[t+2]=r>>>16&255;e[t+3]=r>>>24&255};var Rr=function(e,r,t){e[t]=r&255;e[t+1]=r>>8&255;e[t+2]=r>>16&255;e[t+3]=r>>24&255};var _r=function(e,r,t){e[t]=r&255;e[t+1]=r>>>8&255};function Dr(e,r,t){var a=0,n=0;if(t==="dbcs"){for(n=0;n!=r.length;++n)_r(this,r.charCodeAt(n),this.l+2*n);a=2*r.length}else if(t==="sbcs"){r=r.replace(/[^\x00-\x7F]/g,"_");for(n=0;n!=r.length;++n)this[this.l+n]=r.charCodeAt(n)&255;a=r.length}else if(t==="hex"){for(;n<e;++n){this[this.l++]=parseInt(r.slice(2*n,2*n+2),16)||0}return this}else if(t==="utf16le"){var i=this.l+e;for(n=0;n<Math.min(r.length,e);++n){var s=r.charCodeAt(n);this[this.l++]=s&255;this[this.l++]=s>>8}while(this.l<i)this[this.l++]=0;return this}else switch(e){case 1:a=1;this[this.l]=r&255;break;case 2:a=2;this[this.l]=r&255;r>>>=8;this[this.l+1]=r&255;break;case 3:a=3;this[this.l]=r&255;r>>>=8;this[this.l+1]=r&255;r>>>=8;this[this.l+2]=r&255;break;case 4:a=4;Ar(this,r,this.l);break;case 8:a=8;if(t==="f"){Je(this,r,this.l);break};case 16:break;case-4:a=4;Rr(this,r,this.l);break;}this.l+=a;return this}function Fr(e,r){var t=tr(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Or(e,r){e.l=r;e._R=xr;e.chk=Fr;e._W=Dr}function Pr(e,r){e.l+=r}function yr(e){var r=S(e);Or(r,0);return r}function Nr(e,r,t){if(!e)return;var a,n,i;Or(e,e.l||0);var s=e.length,l=0,f=0;while(e.l<s){l=e._R(1);if(l&128)l=(l&127)+((e._R(1)&127)<<7);var c=fb[l]||fb[65535];a=e._R(1);i=a&127;for(n=1;n<4&&a&128;++n)i+=((a=e._R(1))&127)<<7*n;f=e.l+i;var o=(c.f||Pr)(e,i,t);e.l=f;if(r(o,c.n,l))return}}function Lr(){var e=[],r=E?256:2048;var t=function f(e){var r=yr(e);Or(r,0);return r};var a=t(r);var n=function c(){if(!a)return;if(a.length>a.l)a=a.slice(0,a.l);if(a.length>0)e.push(a);a=null};var i=function o(e){if(a&&e<a.length-a.l)return a;n();return a=t(Math.max(e+1,r))};var s=function u(){n();return Ze([e])};var l=function h(e){n();a=e;i(r)};return{next:i,push:l,end:s,_bufs:e}}function Mr(e,r,t,a){var n=+cb[r],i;if(isNaN(n))return;if(!a)a=fb[n].p||(t||[]).length||0;i=1+(n>=128?1:0)+1;if(a>=128)++i;if(a>=16384)++i;if(a>=2097152)++i;var s=e.next(i);if(n<=127)s._W(1,n);else{s._W(1,(n&127)+128);s._W(1,n>>7)}for(var l=0;l!=4;++l){if(a>=128){s._W(1,(a&127)+128);a>>=7}else{s._W(1,a);break}}if(a>0&&gr(t))e.push(t)}function Ur(e,r,t){var a=$(e);if(r.s){if(a.cRel)a.c+=r.s.c;if(a.rRel)a.r+=r.s.r}else{a.c+=r.c;a.r+=r.r}if(!t||t.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function Wr(e,r,t){var a=$(e);a.s=Ur(a.s,r.s,t);a.e=Ur(a.e,r.s,t);return a}function Vr(e){var r=rt(e);if(e.cRel===0)r=Jr(r);if(e.rRel===0)r=Kr(r);return r}function Hr(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:65535)&&!e.e.rRel){return(e.s.cRel?"":"$")+Qr(e.s.c)+":"+(e.e.cRel?"":"$")+Qr(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?65535:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+jr(e.s.r)+":"+(e.e.rRel?"":"$")+jr(e.e.r)}}return Vr(e.s)+":"+Vr(e.e)}var Xr={};var Gr=function(e,r){var t;if(typeof r!=="undefined")t=r;else if(typeof require!=="undefined"){try{t=undefined}catch(a){t=null}}e.rc4=function(e,r){var t=new Array(256);var a=0,n=0,i=0,s=0;for(n=0;n!=256;++n)t[n]=n;for(n=0;n!=256;++n){i=i+t[n]+e[n%e.length].charCodeAt(0)&255;s=t[n];t[n]=t[i];t[i]=s}n=i=0;var l=Buffer(r.length);for(a=0;a!=r.length;++a){n=n+1&255;i=(i+t[n])%256;s=t[n];t[n]=t[i];t[i]=s;l[a]=r[a]^t[t[n]+t[i]&255]}return l};e.md5=function(e){if(!t)throw new Error("Unsupported crypto");return t.createHash("md5").update(e).digest("hex")}};Gr(Xr,typeof crypto!=="undefined"?crypto:undefined);function zr(e){return parseInt(Yr(e),10)-1}function jr(e){return""+(e+1)}function Kr(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Yr(e){return e.replace(/\$(\d+)$/,"$1")}function $r(e){var r=Zr(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function Qr(e){var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Jr(e){return e.replace(/^([A-Z])/,"$$$1")}function Zr(e){return e.replace(/^\$([A-Z])/,"$1")}function qr(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function et(e){var r=qr(e);return{c:$r(r[0]),r:zr(r[1])}}function rt(e){return Qr(e.c)+jr(e.r)}function tt(e){return Jr(Kr(e))}function at(e){return Zr(Yr(e))}function nt(e){var r=e.split(":").map(et);return{s:r[0],e:r[r.length-1]}}function it(e,r){if(typeof r==="undefined"||typeof r==="number"){return it(e.s,e.e)}if(typeof e!=="string")e=rt(e);if(typeof r!=="string")r=rt(r);return e==r?e:e+":"+r}function st(e){var r={s:{c:0,r:0},e:{c:0,r:0}};var t=0,a=0,n=0;var i=e.length;for(t=0;a<i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.s.c=--t;for(t=0;a<i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.s.r=--t;if(a===i||e.charCodeAt(++a)===58){r.e.c=r.s.c;r.e.r=r.s.r;return r}for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.e.c=--t;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.e.r=--t;return r}function lt(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=x.format(e.z,t?H(r):r)}catch(a){}try{return e.w=x.format((e.XF||{}).numFmtId||(t?14:0),t?H(r):r)}catch(a){return""+r}}function ft(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)return e.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(r==undefined)return lt(e,e.v);return lt(e,r)}function ct(e,r){var t=r&&r.sheet?r.sheet:"Sheet1";var a={};a[t]=e;return{SheetNames:[t],Sheets:a}}function ot(e,r){var t=r||{};if(p!=null&&t.dense==null)t.dense=p;var a=t.dense?[]:{};var n={s:{c:1e7,r:1e7},e:{c:0,r:0}};for(var i=0;i!=e.length;++i){for(var s=0;s!=e[i].length;++s){if(typeof e[i][s]==="undefined")continue;var l={v:e[i][s]};if(Array.isArray(l.v)){l.f=e[i][s][1];l.v=l.v[0]}if(n.s.r>i)n.s.r=i;if(n.s.c>s)n.s.c=s;if(n.e.r<i)n.e.r=i;if(n.e.c<s)n.e.c=s;if(l.v===null){if(l.f)l.t="n";else if(!t.cellStubs)continue;else l.t="z"}else if(typeof l.v==="number")l.t="n";else if(typeof l.v==="boolean")l.t="b";else if(l.v instanceof Date){l.z=t.dateNF||x._table[14];if(t.cellDates){l.t="d";l.w=x.format(l.z,H(l.v))}else{l.t="n";l.v=H(l.v);l.w=x.format(l.z,l.v)}}else l.t="s";if(t.dense){if(!a[i])a[i]=[];a[i][s]=l}else{var f=rt({c:s,r:i});a[f]=l}}}if(n.s.c<1e7)a["!ref"]=it(n);return a}function ut(e,r){if(!r)r=yr(4);r._W(4,e);return r}function ht(e){var r=e._R(4);return r===0?"":e._R(r,"dbcs")}function dt(e,r){var t=false;if(r==null){t=true;r=yr(4+2*e.length)}r._W(4,e.length);if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}function vt(e,r){return{ich:e._R(2),ifnt:e._R(2)}}function bt(e,r){if(!r)r=yr(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);return r}function pt(e,r){var t=e.l;var a=e._R(1);var n=ht(e);var i=[];var s={t:n,h:n};if((a&1)!==0){var l=e._R(4);for(var f=0;f!=l;++f)i.push(vt(e));s.r=i}else s.r=[{
ich:0,ifnt:0}];e.l=t+r;return s}function mt(e,r){var t=false;if(r==null){t=true;r=yr(15+4*e.t.length)}r._W(1,0);dt(e.t,r);return t?r.slice(0,r.l):r}var gt=pt;function Et(e,r){var t=false;if(r==null){t=true;r=yr(23+4*e.t.length)}r._W(1,1);dt(e.t,r);r._W(4,1);bt({ich:0,ifnt:0},r);return t?r.slice(0,r.l):r}function St(e){var r=e._R(4);var t=e._R(2);t+=e._R(1)<<16;var a=e._R(1);return{c:r,iStyleRef:t}}function kt(e,r){if(r==null)r=yr(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}var wt=ht;var Bt=dt;function Ct(e){var r=e._R(4);return r===0||r===4294967295?"":e._R(r,"dbcs")}function Tt(e,r){var t=false;if(r==null){t=true;r=yr(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}var It=ht;var xt=dt;var At=Ct;var Rt=Tt;function _t(e){var r=e.slice(e.l,e.l+4);var t=r[0]&1,a=r[0]&2;e.l+=4;r[0]&=252;var n=a===0?pr([0,0,0,0,r[0],r[1],r[2],r[3]],0):Br(r,0)>>2;return t?n/100:n}function Dt(e,r){if(r==null)r=yr(4);var t=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}else if(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function Ft(e){var r={s:{},e:{}};r.s.r=e._R(4);r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);return r}function Ot(e,r){if(!r)r=yr(16);r._W(4,e.s.r);r._W(4,e.e.r);r._W(4,e.s.c);r._W(4,e.e.c);return r}var Pt=Ft;var yt=Ot;function Nt(e,r){return e._R(8,"f")}function Lt(e,r){return(r||yr(8))._W(8,e,"f")}var Mt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Ut=M(Mt);function Wt(e,r){var t={};var a=e._R(1);var n=a&1;var i=a>>>1;var s=e._R(1);var l=e._R(2,"i");var f=e._R(1);var c=e._R(1);var o=e._R(1);var u=e._R(1);switch(i){case 0:t.auto=1;break;case 1:t.index=s;var h=ha[s];if(h)t.rgb=_l(h);break;case 2:t.rgb=_l([f,c,o]);break;case 3:t.theme=s;break;}if(l!=0)t.tint=l>0?l/32767:l/32768;return t}function Vt(e,r){if(!r)r=yr(8);if(!e||e.auto){r._W(4,0);r._W(4,0);return r}if(e.index){r._W(1,2);r._W(1,e.index)}else if(e.theme){r._W(1,6);r._W(1,e.theme)}else{r._W(1,5);r._W(1,0)}var t=e.tint||0;if(t>0)t*=32767;else if(t<0)t*=32768;r._W(2,t);if(!e.rgb){r._W(2,0);r._W(1,0);r._W(1,0)}else{var a=e.rgb||"FFFFFF";r._W(1,parseInt(a.substr(0,2),16));r._W(1,parseInt(a.substr(2,2),16));r._W(1,parseInt(a.substr(4,2),16));r._W(1,255)}return r}function Ht(e,r,t){var a=e._R(1);e.l++;var n={fItalic:a&2,fStrikeout:a&8,fOutline:a&16,fShadow:a&32,fCondense:a&64,fExtend:a&128};return n}function Xt(e,r){if(!r)r=yr(2);var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);r._W(1,t);r._W(1,0);return r}function Gt(e,r){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"};var a=e._R(4);switch(a){case 0:return"";case 4294967295:;case 4294967294:return t[e._R(4)]||"";}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));e.l-=4;return e._R(0,r==1?"lpstr":"lpwstr")}function zt(e){return Gt(e,1)}function jt(e){return Gt(e,2)}var Kt=2;var Yt=3;var $t=11;var Qt=12;var Jt=19;var Zt=21;var qt=30;var ea=64;var ra=71;var ta=4096;var aa=80;var na=81;var ia=[aa,na];var sa={1:{n:"CodePage",t:Kt},2:{n:"Category",t:aa},3:{n:"PresentationFormat",t:aa},4:{n:"ByteCount",t:Yt},5:{n:"LineCount",t:Yt},6:{n:"ParagraphCount",t:Yt},7:{n:"SlideCount",t:Yt},8:{n:"NoteCount",t:Yt},9:{n:"HiddenCount",t:Yt},10:{n:"MultimediaClipCount",t:Yt},11:{n:"Scale",t:$t},12:{n:"HeadingPair",t:ta|Qt},13:{n:"DocParts",t:ta|qt},14:{n:"Manager",t:aa},15:{n:"Company",t:aa},16:{n:"LinksDirty",t:$t},17:{n:"CharacterCount",t:Yt},19:{n:"SharedDoc",t:$t},22:{n:"HLinksChanged",t:$t},23:{n:"AppVersion",t:Yt,p:"version"},26:{n:"ContentType",t:aa},27:{n:"ContentStatus",t:aa},28:{n:"Language",t:aa},29:{n:"Version",t:aa},255:{}};var la={1:{n:"CodePage",t:Kt},2:{n:"Title",t:aa},3:{n:"Subject",t:aa},4:{n:"Author",t:aa},5:{n:"Keywords",t:aa},6:{n:"Comments",t:aa},7:{n:"Template",t:aa},8:{n:"LastAuthor",t:aa},9:{n:"RevNumber",t:aa},10:{n:"EditTime",t:ea},11:{n:"LastPrinted",t:ea},12:{n:"CreatedDate",t:ea},13:{n:"ModifiedDate",t:ea},14:{n:"PageCount",t:Yt},15:{n:"WordCount",t:Yt},16:{n:"CharCount",t:Yt},17:{n:"Thumbnail",t:ra},18:{n:"ApplicationName",t:aa},19:{n:"DocumentSecurity",t:Yt},255:{}};var fa={2147483648:{n:"Locale",t:Jt},2147483651:{n:"Behavior",t:Jt},1919054434:{}};(function(){for(var e in fa)if(fa.hasOwnProperty(e))sa[e]=la[e]=fa[e]})();var ca={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};var oa=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ua(e){return e.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var ha=ua([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);var da={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.sheetMetadata":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"TODO","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"vba","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};var va=function(){var e={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};y(e).forEach(function(r){["xlsm","xlam"].forEach(function(t){if(!e[r][t])e[r][t]=e[r].xlsx})});y(e).forEach(function(r){y(e[r]).forEach(function(t){da[e[r][t]]=r})});return e}();var ba=U(da);Ye.CT="http://schemas.openxmlformats.org/package/2006/content-types";function pa(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function ma(e,r){var t=pa();if(!e||!e.match)return t;var a={};(e.match(ve)||[]).forEach(function(e){var r=me(e);switch(r[0].replace(be,"<")){case"<?xml":break;case"<Types":t.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":a[r.Extension]=r.ContentType;break;case"<Override":if(t[da[r.ContentType]]!==undefined)t[da[r.ContentType]].push(r.PartName);break;}});if(t.xmlns!==Ye.CT)throw new Error("Unknown Namespace: "+t.xmlns);t.calcchain=t.calcchains.length>0?t.calcchains[0]:"";t.sst=t.strs.length>0?t.strs[0]:"";t.style=t.styles.length>0?t.styles[0]:"";t.defaults=a;delete t.calcchains;return t}var ga=ze("Types",null,{xmlns:Ye.CT,"xmlns:xsd":Ye.xsd,"xmlns:xsi":Ye.xsi});var Ea=[["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels",ba.rels[0]]].map(function(e){return ze("Default",null,{Extension:e[0],ContentType:e[1]})});function Sa(e,r){var t=[],a;t[t.length]=he;t[t.length]=ga;t=t.concat(Ea);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=ze("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:va[n][r.bookType||"xlsx"]})}};var i=function(a){(e[a]||[]).forEach(function(e){t[t.length]=ze("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:va[a][r.bookType||"xlsx"]})})};var s=function(r){(e[r]||[]).forEach(function(e){t[t.length]=ze("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:ba[r][0]})})};n("workbooks");i("sheets");i("charts");s("themes");["strs","styles"].forEach(n);["coreprops","extprops","custprops"].forEach(s);s("vba");s("comments");s("drawings");if(t.length>2){t[t.length]="</Types>";t[1]=t[1].replace("/>",">")}return t.join("")}var ka={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function wa(e){var r=e.lastIndexOf("/");return e.substr(0,r+1)+"_rels/"+e.substr(r+1)+".rels"}function Ba(e,r){if(!e)return e;if(r.charAt(0)!=="/"){r="/"+r}var t={};var a={};(e.match(ve)||[]).forEach(function(e){var n=me(e);if(n[0]==="<Relationship"){var i={};i.Type=n.Type;i.Target=n.Target;i.Id=n.Id;i.TargetMode=n.TargetMode;var s=n.TargetMode==="External"?n.Target:ue(n.Target,r);t[s]=i;a[n.Id]=i}});t["!id"]=a;return t}Ye.RELS="http://schemas.openxmlformats.org/package/2006/relationships";var Ca=ze("Relationships",null,{xmlns:Ye.RELS});function Ta(e){var r=[he,Ca];y(e["!id"]).forEach(function(t){r[r.length]=ze("Relationship",null,e["!id"][t])});if(r.length>2){r[r.length]="</Relationships>";r[1]=r[1].replace("/>",">")}return r.join("")}function Ia(e,r,t,a,n){if(!n)n={};if(!e["!id"])e["!id"]={};if(r<0)for(r=1;e["!id"]["rId"+r];++r){}n.Id="rId"+r;n.Type=a;n.Target=t;if(n.Type==ka.HLINK)n.TargetMode="External";if(e["!id"][n.Id])throw new Error("Cannot rewrite rId "+r);e["!id"][n.Id]=n;e[("/"+n.Target).replace("//","/")]=n;return r}var xa="application/vnd.oasis.opendocument.spreadsheet";function Aa(e,r){var t=Wv(e);var a;var n;while(a=Vv.exec(t))switch(a[3]){case"manifest":break;case"file-entry":n=me(a[0],false);if(n.path=="/"&&n.type!==xa)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":;case"algorithm":;case"start-key-generation":;case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw a;}}function Ra(e,r){var t=[he];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n');t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var a=0;a<e.length;++a)t.push('  <manifest:file-entry manifest:full-path="'+e[a][0]+'" manifest:media-type="'+e[a][1]+'"/>\n');t.push("</manifest:manifest>");return t.join("")}function _a(e,r,t){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+'"/>\n',"  </rdf:Description>\n"].join("")}function Da(e,r){return['  <rdf:Description rdf:about="'+e+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+'"/>\n',"  </rdf:Description>\n"].join("")}function Fa(e,r){var t=[he];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var a=0;a!=e.length;++a){t.push(_a(e[a][0],e[a][1]));t.push(Da("",e[a][0]))}t.push(_a("","Document","pkg"));t.push("</rdf:RDF>");return t.join("")}var Oa=function(){var e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>Sheet'+"JS "+r.version+"</meta:generator></office:meta></office:document-meta>";return function t(r,a){return e}}();var Pa=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];Ye.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";ka.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";var ya=function(){var e=new Array(Pa.length);for(var r=0;r<Pa.length;++r){var t=Pa[r];var a="(?:"+t[0].substr(0,t[0].indexOf(":"))+":)"+t[0].substr(t[0].indexOf(":")+1);e[r]=new RegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}return e}();function Na(e){var r={};e=De(e);for(var t=0;t<Pa.length;++t){var a=Pa[t],n=e.match(ya[t]);if(n!=null&&n.length>0)r[a[1]]=n[1];if(a[2]==="date"&&r[a[1]])r[a[1]]=K(r[a[1]])}return r}var La=ze("cp:coreProperties",null,{"xmlns:cp":Ye.CORE_PROPS,"xmlns:dc":Ye.dc,"xmlns:dcterms":Ye.dcterms,"xmlns:dcmitype":Ye.dcmitype,"xmlns:xsi":Ye.xsi});function Ma(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;a[a.length]=t?ze(e,r,t):Xe(e,r)}function Ua(e,r){var t=r||{};var a=[he,La],n={};if(!e&&!t.Props)return a.join("");if(e){if(e.CreatedDate!=null)Ma("dcterms:created",typeof e.CreatedDate==="string"?e.CreatedDate:je(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)Ma("dcterms:modified",typeof e.ModifiedDate==="string"?e.ModifiedDate:je(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(var i=0;i!=Pa.length;++i){var s=Pa[i];var l=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(l===true)l="1";else if(l===false)l="0";else if(typeof l=="number")l=String(l);if(l!=null)Ma(s[0],l,null,a,n)}if(a.length>2){a[a.length]="</cp:coreProperties>";a[1]=a[1].replace("/>",">")}return a.join("")}var Wa=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];Ye.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";ka.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";function Va(e,r,t){var a={};if(!r)r={};e=De(e);Wa.forEach(function(t){switch(t[2]){case"string":r[t[1]]=(e.match(Ne(t[0]))||[])[1];break;case"bool":r[t[1]]=(e.match(Ne(t[0]))||[])[1]==="true";break;case"raw":var n=e.match(new RegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)</"+t[0]+">"));if(n&&n.length>0)a[t[1]]=n[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts){var n=Ve(a.HeadingPairs,t);var i=Ve(a.TitlesOfParts,t).map(function(e){return e.v});var s=0,l=0;if(i.length>0)for(var f=0;f!==n.length;f+=2){l=+n[f+1].v;switch(n[f].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Werkbladen":r.Worksheets=l;r.SheetNames=i.slice(s,s+l);break;case"Named Ranges":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":r.NamedRanges=l;r.DefinedNames=i.slice(s,s+l);break;case"Charts":;case"Diagramme":r.Chartsheets=l;r.ChartNames=i.slice(s,s+l);break;}s+=l}}return r}var Ha=ze("Properties",null,{xmlns:Ye.EXT_PROPS,"xmlns:vt":Ye.vt});function Xa(e,r){var t=[],a={},n=ze;if(!e)e={};e.Application="SheetJS";t[t.length]=he;t[t.length]=Ha;Wa.forEach(function(r){if(e[r[1]]===undefined)return;var a;switch(r[2]){case"string":a=String(e[r[1]]);break;case"bool":a=e[r[1]]?"true":"false";break;}if(a!==undefined)t[t.length]=n(r[0],a)});t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+Ce(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(t.length>2){t[t.length]="</Properties>";t[1]=t[1].replace("/>",">")}return t.join("")}Ye.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";ka.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";var Ga=/<[^>]+>[^<]*/g;function za(e,r){var t={},a="";var n=e.match(Ga);if(n)for(var i=0;i!=n.length;++i){var s=n[i],l=me(s);switch(l[0]){case"<?xml":break;case"<Properties":break;case"<property":a=l.name;break;case"</property>":a=null;break;default:if(s.indexOf("<vt:")===0){var f=s.split(">");var c=f[0].substring(4),o=f[1];switch(c){case"lpstr":;case"bstr":;case"lpwstr":t[a]=ke(o);break;case"bool":t[a]=_e(o,"<vt:bool>");break;case"i1":;case"i2":;case"i4":;case"i8":;case"int":;case"uint":t[a]=parseInt(o,10);break;case"r4":;case"r8":;case"decimal":t[a]=parseFloat(o);break;case"filetime":;case"date":t[a]=K(o);break;case"cy":;case"error":t[a]=ke(o);break;default:if(c.slice(-1)=="/")break;if(r.WTF&&typeof console!=="undefined")console.warn("Unexpected",s,c,f);}}else if(s.substr(0,2)==="</"){}else if(r.WTF)throw new Error(s);}}return t}var ja=ze("Properties",null,{xmlns:Ye.CUST_PROPS,"xmlns:vt":Ye.vt});function Ka(e,r){var t=[he,ja];if(!e)return t.join("");var a=1;y(e).forEach(function n(r){++a;t[t.length]=ze("property",Ke(e[r]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:a,name:r})});if(t.length>2){t[t.length]="</Properties>";t[1]=t[1].replace("/>",">")}return t.join("")}var Ya={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};var $a=L(Ya);function Qa(e,r,t){r=$a[r]||r;e[r]=t}function Ja(e,r){var t=[];y(Ya).map(function(e){for(var r=0;r<Pa.length;++r)if(Pa[r][1]==e)return Pa[r];for(r=0;r<Wa.length;++r)if(Wa[r][1]==e)return Wa[r];throw e}).forEach(function(a){if(e[a[1]]==null)return;var n=r&&r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:e[a[1]];switch(a[2]){case"date":n=new Date(n).toISOString().replace(/\.\d*Z/,"Z");break;}if(typeof n=="number")n=String(n);else if(n===true||n===false){n=n?"1":"0"}else if(n instanceof Date)n=new Date(n).toISOString().replace(/\.\d*Z/,"");t.push(Xe(Ya[a[1]]||a[1],n))});return ze("DocumentProperties",t.join(""),{xmlns:$e.o})}function Za(e,r,t){var a=["Worksheets","SheetNames"];var n="CustomDocumentProperties";var i=[];if(e)y(e).forEach(function(r){if(!e.hasOwnProperty(r))return;for(var t=0;t<Pa.length;++t)if(r==Pa[t][1])return;for(t=0;t<Wa.length;++t)if(r==Wa[t][1])return;for(t=0;t<a.length;++t)if(r==a[t])return;var n=e[r];var s="string";if(typeof n=="number"){s="float";n=String(n)}else if(n===true||n===false){s="boolean";n=n?"1":"0"}else n=String(n);i.push(ze(Te(r),n,{"dt:dt":s}))});if(r)y(r).forEach(function(e){if(!r.hasOwnProperty(e))return;var t=r[e];var a="string";if(typeof t=="number"){a="float";t=String(t)}else if(t===true||t===false){a="boolean";t=t?"1":"0"}else if(t instanceof Date){a="dateTime.tz";t=t.toISOString()}else t=String(t);i.push(ze(Te(e),t,{"dt:dt":a}))});return"<"+n+' xmlns="'+$e.o+'">'+i.join("")+"</"+n+">"}function qa(e){var r=e._R(4),t=e._R(4);return new Date((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function en(e,r,t){var a=e.l;var n=e._R(0,"lpstr-cp");if(t)while(e.l-a&3)++e.l;return n}function rn(e,r,t){var a=e._R(0,"lpwstr");if(t)e.l+=4-(a.length+1&3)&3;return a}function tn(e,r,t){if(r===31)return rn(e);return en(e,r,t)}function an(e,r,t){return tn(e,r,t===false?0:4)}function nn(e,r){if(!r)throw new Error("VtUnalignedString must have positive length");return tn(e,r,0)}function sn(e){var r=e._R(4);var t=[];for(var a=0;a!=r;++a)t[a]=e._R(0,"lpstr-cp").replace(T,"");return t}function ln(e){return sn(e)}function fn(e){var r=bn(e,na);var t=bn(e,Yt);return[r,t]}function cn(e){var r=e._R(4);var t=[];for(var a=0;a!=r/2;++a)t.push(fn(e));return t}function on(e){return cn(e)}function un(e,r){var t=e._R(4);var a={};for(var n=0;n!=t;++n){var i=e._R(4);var s=e._R(4);a[i]=e._R(s,r===1200?"utf16le":"utf8").replace(T,"").replace(I,"!")}if(e.l&3)e.l=e.l>>2+1<<2;return a}function hn(e){var r=e._R(4);var t=e.slice(e.l,e.l+r);if((r&3)>0)e.l+=4-(r&3)&3;return t}function dn(e){var r={};r.Size=e._R(4);e.l+=r.Size;return r}function vn(e,r){}function bn(e,r,t){var a=e._R(2),n,i=t||{};e.l+=2;if(r!==Qt)if(a!==r&&ia.indexOf(r)===-1)throw new Error("Expected type "+r+" saw "+a);switch(r===Qt?a:r){case 2:n=e._R(2,"i");if(!i.raw)e.l+=2;return n;case 3:n=e._R(4,"i");return n;case 11:return e._R(4)!==0;case 19:n=e._R(4);return n;case 30:return en(e,a,4).replace(T,"");case 31:return rn(e);case 64:return qa(e);case 65:return hn(e);case 71:return dn(e);case 80:return an(e,a,!i.raw).replace(T,"");case 81:return nn(e,a).replace(T,"");case 4108:return on(e);case 4126:return ln(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a);}}function pn(e,r){var t=e.l;var a=e._R(4);var n=e._R(4);var i=[],s=0;var l=0;var f=-1,o={};for(s=0;s!=n;++s){var u=e._R(4);var h=e._R(4);i[s]=[u,h+t]}i.sort(function(e,r){return e[1]-r[1]});var d={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){var v=true;if(s>0&&r)switch(r[i[s-1][0]].t){case 2:if(e.l+2===i[s][1]){e.l+=2;v=false}break;case 80:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;case 4108:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;}if((!r||s==0)&&e.l<=i[s][1]){v=false;e.l=i[s][1]}if(v)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(r){var b=r[i[s][0]];d[b.n]=bn(e,b.t,{raw:true});if(b.p==="version")d[b.n]=String(d[b.n]>>16)+"."+String(d[b.n]&65535);if(b.n=="CodePage")switch(d[b.n]){case 0:d[b.n]=1252;case 874:;case 932:;case 936:;case 949:;case 950:;case 1250:;case 1251:;case 1253:;case 1254:;case 1255:;case 1256:;case 1257:;case 1258:;case 1e4:;case 1200:;case 1201:;case 1252:;case 65e3:;case-536:;case 65001:;case-535:c(l=d[b.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[b.n]);}}else{if(i[s][0]===1){l=d.CodePage=bn(e,Kt);c(l);if(f!==-1){var p=e.l;e.l=i[f][1];o=un(e,l);e.l=p}}else if(i[s][0]===0){if(l===0){f=s;e.l=i[s+1][1];continue}o=un(e,l)}else{var m=o[i[s][0]];var g;switch(e[e.l]){case 65:e.l+=4;g=hn(e);break;case 30:e.l+=4;g=an(e,e[e.l-4]);break;case 31:e.l+=4;g=an(e,e[e.l-4]);break;case 3:e.l+=4;g=e._R(4,"i");break;case 19:e.l+=4;g=e._R(4);break;case 5:e.l+=4;g=e._R(8,"f");break;case 11:e.l+=4;g=kn(e,4);break;case 64:e.l+=4;g=K(qa(e));break;default:throw new Error("unparsed value: "+e[e.l]);}d[m]=g}}}e.l=t+a;return d}function mn(e,r){var t=e.content;if(!t)return{};Or(t,0);var a,n,i,s,l=0;t.chk("feff","Byte Order: ");var f=t._R(2);var c=t._R(4);t.chk(P.utils.consts.HEADER_CLSID,"CLSID: ");a=t._R(4);if(a!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);n=t._R(16);s=t._R(4);if(a===1&&s!==t.l)throw new Error("Length mismatch: "+s+" !== "+t.l);else if(a===2){i=t._R(16);l=t._R(4)}var o=pn(t,r);var u={SystemIdentifier:c};for(var h in o)u[h]=o[h];u.FMTID=n;if(a===1)return u;if(t.l!==l)throw new Error("Length mismatch 2: "+t.l+" !== "+l);var d;try{d=pn(t,null)}catch(v){}for(h in d)u[h]=d[h];u.FMTID=[n,i];return u}function gn(e,r){e._R(r);return null}function En(e,r){if(!r)r=yr(e);for(var t=0;t<e;++t)r._W(1,0);return r}function Sn(e,r,t){var a=[],n=e.l+r;while(e.l<n)a.push(t(e,n-e.l));if(n!==e.l)throw new Error("Slurp error");return a}function kn(e,r){return e._R(r)===1}function wn(e,r){if(!r)r=yr(2);r._W(2,+!!e);return r}function Bn(e){return e._R(2,"u")}function Cn(e,r){if(!r)r=yr(2);r._W(2,e);return r}function Tn(e,r){return Sn(e,r,Bn)}function In(e){var r=e._R(1),t=e._R(1);return t===1?r:r===1}function xn(e,r,t){if(!t)t=yr(2);t._W(1,+e);t._W(1,r=="e"?1:0);return t}function An(e,r,a){var n=e._R(a&&a.biff>=12?2:1);var i=1,s="sbcs-cont";var l=t;if(a&&a.biff>=8)t=1200;if(!a||a.biff==8){var f=e._R(1);if(f){i=2;s="dbcs-cont"}}else if(a.biff==12){i=2;s="wstr"}var c=n?e._R(n,s):"";t=l;return c}function Rn(e){var r=t;t=1200;var a=e._R(2),n=e._R(1);var i=n&1,s=n&4,l=n&8;var f=1+(n&1);var c=0,o;var u={};if(l)c=e._R(2);if(s)o=e._R(4);var h=f==2?"dbcs-cont":"sbcs-cont";var d=a===0?"":e._R(a,h);if(l)e.l+=4*c;if(s)e.l+=o;u.t=d;if(!l){u.raw="<t>"+u.t+"</t>";u.r=u.t}t=r;return u}function _n(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e._R(r,"sbcs-cont");if(t.biff>=12)return e._R(r,"dbcs-cont")}var n=e._R(1);if(n===0){a=e._R(r,"sbcs-cont")}else{a=e._R(r,"dbcs-cont")}return a}function Dn(e,r,t){var a=e._R(t&&t.biff==2?1:2);if(a===0){e.l++;return""}return _n(e,a,t)}function Fn(e,r,t){if(t.biff>5)return Dn(e,r,t);var a=e._R(1);if(a===0){e.l++;return""}return e._R(a,t.biff==4?"cpstr":"sbcs-cont")}function On(e,r,t){if(!t)t=yr(3+2*e.length);t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");return t}function Pn(e,r,t){var a=e._R(1);e.l++;var n=e._R(2);e.l+=2;return[a,n]}function yn(e){var r=e._R(4),t=e.l;var a=false;if(r>24){e.l+=r-24;if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}var n=e._R((a?r-24:r)>>1,"utf16le").replace(T,"");if(a)e.l+=24;return n}function Nn(e,r){var t=e._R(2);var a=e._R(0,"lpstr-ansi");var n=e._R(2);
if(e._R(2)!=57005)throw new Error("Bad FileMoniker");var i=e._R(4);if(i===0)return a.replace(/\\/g,"/");var s=e._R(4);if(e._R(2)!=3)throw new Error("Bad FileMoniker");var l=e._R(s>>1,"utf16le").replace(T,"");return l}function Ln(e,r){var t=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return yn(e,r);case"0303000000000000c000000000000046":return Nn(e,r);default:throw new Error("Unsupported Moniker "+t);}}function Mn(e,r){var t=e._R(4);var a=t>0?e._R(t,"utf16le").replace(T,""):"";return a}function Un(e,r){var t=e.l+r;var a=e._R(4);if(a!==2)throw new Error("Unrecognized streamVersion: "+a);var n=e._R(2);e.l+=2;var i,s,l,f,c="",o,u;if(n&16)i=Mn(e,t-e.l);if(n&128)s=Mn(e,t-e.l);if((n&257)===257)l=Mn(e,t-e.l);if((n&257)===1)f=Ln(e,t-e.l);if(n&8)c=Mn(e,t-e.l);if(n&32)o=e._R(16);if(n&64)u=qa(e);e.l=t;var h=s||l||f||"";if(h&&c)h+="#"+c;if(!h)h="#"+c;return{Target:h}}function Wn(e){var r=yr(512),t=0;var a=e.Target;var n=a.indexOf("#")>-1?31:23;switch(a.charAt(0)){case"#":n=28;break;case".":n&=~2;break;}r._W(4,2);r._W(4,n);var i=[8,6815827,6619237,4849780,83];for(t=0;t<i.length;++t)r._W(4,i[t]);if(n==28){a=a.slice(1);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else if(n&2){i="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));r._W(4,2*(a.length+1));for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else{i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));var s=0;while(a.slice(s*3,s*3+3)=="../"||a.slice(s*3,s*3+3)=="..\\")++s;r._W(2,s);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(1,a.charCodeAt(t)&255);r._W(1,0);r._W(2,65535);r._W(2,57005);for(t=0;t<6;++t)r._W(4,0)}return r.slice(0,r.l)}function Vn(e,r){var t=e._R(1),a=e._R(1),n=e._R(1),i=e._R(1);return[t,a,n,i]}function Hn(e,r){var t=Vn(e,r);t[3]=0;return t}function Xn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(2);return{r:t,c:a,ixfe:n}}function Gn(e,r,t,a){if(!a)a=yr(6);a._W(2,e);a._W(2,r);a._W(2,t||0);return a}function zn(e){var r=e._R(2);var t=e._R(2);e.l+=8;return{type:r,flags:t}}function jn(e,r,t){return r===0?"":Fn(e,r,t)}function Kn(e,r,t){var a=t.biff>8?4:2;var n=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}function Yn(e,r){var t=e._R(2);var a=_t(e);return[t,a]}function $n(e,r,t){e.l+=4;r-=4;var a=e.l+r;var n=An(e,r,t);var i=e._R(2);a-=e.l;if(i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;return n}function Qn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(2);var i=e._R(2);return{s:{c:n,r:t},e:{c:i,r:a}}}function Jn(e,r){if(!r)r=yr(8);r._W(2,e.s.r);r._W(2,e.e.r);r._W(2,e.s.c);r._W(2,e.e.c);return r}function Zn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(1);var i=e._R(1);return{s:{c:n,r:t},e:{c:i,r:a}}}var qn=Zn;function ei(e,r){e.l+=4;var t=e._R(2);var a=e._R(2);var n=e._R(2);e.l+=12;return[a,t,n]}function ri(e,r){var t={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;return t}function ti(e,r){var t={};e.l+=4;e.cf=e._R(2);return t}function ai(e,r){e.l+=2;e.l+=e._R(2)}var ni={0:ai,4:ai,5:ai,6:ai,7:ti,8:ai,9:ai,10:ai,11:ai,12:ai,13:ri,14:ai,15:ai,16:ai,17:ai,18:ai,19:ai,20:ai,21:ei};function ii(e,r,t){var a=e.l+r;var n=[];while(e.l<a){var i=e._R(2);e.l-=2;try{n.push(ni[i](e,a-e.l))}catch(s){e.l=a;return n}}if(e.l!=a)e.l=a;return n}function si(e,r){var t={BIFFVer:0,dt:0};t.BIFFVer=e._R(2);r-=2;if(r>=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case 1536:;case 1280:;case 2:;case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);return t}function li(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version");}var i=yr(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}return i}function fi(e,r){if(r===0)return 1200;var t;if((t=e._R(2))!==1200){}return 1200}function ci(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var n=Dn(e,0,t);e._R(r+a-e.l);return n}function oi(e,r){var t=!r||r.biff==8;var a=yr(t?112:54);a._W(r.biff==8?2:1,7);a._W(1,0);a._W(4,859007059);a._W(4,5458548);while(a.l<a.length)a._W(1,0);return a}function ui(e,r,t){var a=t&&t.biff==8||r==2?e._R(2):(e.l+=r,0);return{fDialog:a&16}}function hi(e,r,t){var a=e._R(4);var n=e._R(1)&3;var i=e._R(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break;}var s=An(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}function di(e,r){var t=!r||r.biff>=8?2:1;var a=yr(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");return a.slice(0,a.l)}function vi(e,r){var t=e.l+r;var a=e._R(4);var n=e._R(4);var i=[];for(var s=0;s!=n&&e.l<t;++s){i.push(Rn(e))}i.Count=a;i.Unique=n;return i}function bi(e,r){var t={};t.dsst=e._R(2);e.l+=r-2;return t}function pi(e,r){var t={};t.r=e._R(2);t.c=e._R(2);t.cnt=e._R(2)-t.c;var a=e._R(2);e.l+=4;var n=e._R(1);e.l+=3;if(n&7)t.level=n&7;if(n&32)t.hidden=true;if(n&64)t.hpt=a/20;return t}function mi(e,r){var t=zn(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var a=e._R(4);return a!==0}function gi(e,r){e._R(2);return e._R(4)}function Ei(e,r,t){var a=0;if(!(t&&t.biff==2)){a=e._R(2)}var n=e._R(2);if(t&&t.biff==2){a=1-(n>>15);n&=32767}var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function Si(e,r){var t=e._R(2),a=e._R(2),n=e._R(2),i=e._R(2);var s=e._R(2),l=e._R(2),f=e._R(2);var c=e._R(2),o=e._R(2);return{Pos:[t,a],Dim:[n,i],Flags:s,CurTab:l,FirstTab:f,Selected:c,TabRatio:o}}function ki(e){var r=yr(18);r._W(2,0);r._W(2,0);r._W(2,29280);r._W(2,17600);r._W(2,56);r._W(2,0);r._W(2,0);r._W(2,1);r._W(2,500);return r}function wi(e,r,t){if(t&&t.biff>=2&&t.biff<8)return{};var a=e._R(2);return{RTL:a&64}}function Bi(e){var r=yr(18),t=1718;if(e&&e.RTL)t|=64;r._W(2,t);r._W(4,0);r._W(4,64);r._W(4,0);r._W(4,0);return r}function Ci(e,r,t){var a={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case 2:break;case 3:;case 4:e.l+=2;break;default:e.l+=10;break;}a.name=An(e,0,t);return a}function Ti(e,r){var t=Xn(e);t.isst=e._R(4);return t}function Ii(e,r,t){var a=e.l+r;var n=Xn(e,6);if(t.biff==2)e.l++;var i=Dn(e,a-e.l,t);n.val=i;return n}function xi(e,r,t,a){var n=!a||a.biff==8;var i=yr(6+2+ +n+(1+n)*t.length);Gn(e,r,0,i);i._W(2,t.length);if(n)i._W(1,1);i._W((1+n)*t.length,t,n?"utf16le":"sbcs");return i}function Ai(e,r,t){var a=e._R(2);var n=Fn(e,0,t);return[a,n]}var Ri=Fn;function _i(e,r,t){var a=e.l+r;var n=t.biff==8||!t.biff?4:2;var i=e._R(n),s=e._R(n);var l=e._R(2),f=e._R(2);e.l=a;return{s:{r:i,c:l},e:{r:s,c:f}}}function Di(e,r){var t=r.biff==8||!r.biff?4:2;var a=yr(2*t+6);a._W(t,e.s.r);a._W(t,e.e.r+1);a._W(2,e.s.c);a._W(2,e.e.c+1);a._W(2,0);return a}function Fi(e,r){var t=e._R(2),a=e._R(2);var n=Yn(e);return{r:t,c:a,ixfe:n[0],rknum:n[1]}}function Oi(e,r){var t=e.l+r-2;var a=e._R(2),n=e._R(2);var i=[];while(e.l<t)i.push(Yn(e));if(e.l!==t)throw new Error("MulRK read error");var s=e._R(2);if(i.length!=s-n+1)throw new Error("MulRK length mismatch");return{r:a,c:n,C:s,rkrec:i}}function Pi(e,r){var t=e.l+r-2;var a=e._R(2),n=e._R(2);var i=[];while(e.l<t)i.push(e._R(2));if(e.l!==t)throw new Error("MulBlank read error");var s=e._R(2);if(i.length!=s-n+1)throw new Error("MulBlank length mismatch");return{r:a,c:n,C:s,ixfe:i}}function yi(e,r,t,a){var n={};var i=e._R(4),s=e._R(4);var l=e._R(4),f=e._R(2);n.patternType=oa[l>>26];if(!a.cellStyles)return n;n.alc=i&7;n.fWrap=i>>3&1;n.alcV=i>>4&7;n.fJustLast=i>>7&1;n.trot=i>>8&255;n.cIndent=i>>16&15;n.fShrinkToFit=i>>20&1;n.iReadOrder=i>>22&2;n.fAtrNum=i>>26&1;n.fAtrFnt=i>>27&1;n.fAtrAlc=i>>28&1;n.fAtrBdr=i>>29&1;n.fAtrPat=i>>30&1;n.fAtrProt=i>>31&1;n.dgLeft=s&15;n.dgRight=s>>4&15;n.dgTop=s>>8&15;n.dgBottom=s>>12&15;n.icvLeft=s>>16&127;n.icvRight=s>>23&127;n.grbitDiag=s>>30&3;n.icvTop=l&127;n.icvBottom=l>>7&127;n.icvDiag=l>>14&127;n.dgDiag=l>>21&15;n.icvFore=f&127;n.icvBack=f>>7&127;n.fsxButton=f>>14&1;return n}function Ni(e,r,t){return yi(e,r,0,t)}function Li(e,r,t){return yi(e,r,1,t)}function Mi(e,r,t){var a={};a.ifnt=e._R(2);a.numFmtId=e._R(2);a.flags=e._R(2);a.fStyle=a.flags>>2&1;r-=6;a.data=yi(e,r,a.fStyle,t);return a}function Ui(e,r){e.l+=4;var t=[e._R(2),e._R(2)];if(t[0]!==0)t[0]--;if(t[1]!==0)t[1]--;if(t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function Wi(e){var r=yr(8);r._W(4,0);r._W(2,e[0]?e[0]+1:0);r._W(2,e[1]?e[1]+1:0);return r}function Vi(e,r,t){var a=Xn(e,6);if(t.biff==2)++e.l;var n=In(e,2);a.val=n;a.t=n===true||n===false?"b":"e";return a}function Hi(e,r,t,a,n){var i=yr(8);Gn(e,r,0,i);xn(t,n,i);return i}function Xi(e,r){var t=Xn(e,6);var a=Nt(e,8);t.val=a;return t}function Gi(e,r,t,a){var n=yr(14);Gn(e,r,0,n);Lt(t,n);return n}var zi=jn;function ji(e,r,t){var a=e.l+r;var n=e._R(2);var i=e._R(2);t.sbcch=i;if(i==1025||i==14849)return[i,n];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);var s=_n(e,i);var l=[];while(a>e.l)l.push(Dn(e));return[i,n,s,l]}function Ki(e,r,t){var a=e._R(2);var n;var i={fBuiltIn:a&1,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};if(t.sbcch===14849)n=$n(e,r-2,t);i.body=n||e._R(r-2);if(typeof n==="string")i.Name=n;return i}var Yi=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function $i(e,r,t){var a=e.l+r;var n=e._R(2);var i=e._R(1);var s=e._R(1);var l=e._R(t&&t.biff==2?1:2);var f=0;if(!t||t.biff>=5){if(t.biff!=5)e.l+=2;f=e._R(2);if(t.biff==5)e.l+=2;e.l+=4}var c=_n(e,s,t);if(n&32)c=Yi[c.charCodeAt(0)];var o=a-e.l;if(t&&t.biff==2)--o;var u=a==e.l||l===0?[]:_u(e,o,t,l);return{chKey:i,Name:c,itab:f,rgce:u}}function Qi(e,r,t){if(t.biff<8)return Ji(e,r,t);var a=[],n=e.l+r,i=e._R(t.biff>8?4:2);while(i--!==0)a.push(Kn(e,t.biff>8?12:6,t));return a}function Ji(e,r,t){if(e[e.l+1]==3)e[e.l]++;var a=An(e,r,t);return a.charCodeAt(0)==3?a.slice(1):a}function Zi(e,r,t){if(t.biff<8){e.l+=r;return}var a=e._R(2);var n=e._R(2);var i=_n(e,a,t);var s=_n(e,n,t);return[i,s]}function qi(e,r,t){var a=Zn(e,6);e.l++;var n=e._R(1);r-=8;return[Du(e,r,t),n]}function es(e,r,t){var a=qn(e,6);switch(t.biff){case 2:e.l++;r-=7;break;case 3:;case 4:e.l+=2;r-=8;break;default:e.l+=6;r-=12;}return[a,Au(e,r,t,a)]}function rs(e,r){var t=e._R(4)!==0;var a=e._R(4)!==0;var n=e._R(4);return[t,a,n]}function ts(e,r,t){if(t.biff<8)return;var a=e._R(2),n=e._R(2);var i=e._R(2),s=e._R(2);var l=Fn(e,0,t);if(t.biff<8)e._R(1);return[{r:a,c:n},l,s,i]}function as(e,r,t){return ts(e,r,t)}function ns(e,r){var t=[];var a=e._R(2);while(a--)t.push(Qn(e,r));return t}function is(e){var r=yr(2+e.length*8);r._W(2,e.length);for(var t=0;t<e.length;++t)Jn(e[t],r);return r}function ss(e,r,t){if(t&&t.biff<8)return fs(e,r,t);var a=ei(e,22);var n=ii(e,r-22,a[1]);return{cmo:a,ft:n}}var ls=[];ls[8]=function(e,r,t){var a=e.l+r;e.l+=10;var n=e._R(2);e.l+=4;var i=e._R(2);e.l+=2;var s=e._R(2);e.l+=4;var l=e._R(1);e.l+=l;e.l=a;return{fmt:n}};function fs(e,r,t){var a=e._R(4);var n=e._R(2);var i=e._R(2);var s=e._R(2);var l=e._R(2);var f=e._R(2);var c=e._R(2);var o=e._R(2);var u=e._R(2);var h=e._R(2);var d=e._R(2);var v=e._R(2);var b=e._R(2);e.l+=6;r-=36;var p=[];p.push((ls[n]||Pr)(e,r,t));return{cmo:[i,n,s],ft:p}}function cs(e,r,t){var a=e.l;var n="";try{e.l+=4;var i=(t.lastobj||{cmo:[0,0]}).cmo[1];var s;if([0,5,7,11,12,14].indexOf(i)==-1)e.l+=6;else s=Pn(e,6,t);var l=e._R(2);var f=e._R(2);var c=Bn(e,2);var o=e._R(2);e.l+=o;for(var u=1;u<e.lens.length-1;++u){if(e.l-a!=e.lens[u])throw new Error("TxO: bad continue record");var h=e[e.l];var d=_n(e,e.lens[u+1]-e.lens[u]-1);n+=d;if(n.length>=(h?l:2*l))break}if(n.length!==l&&n.length!==l*2){throw new Error("cchText: "+l+" != "+n.length)}e.l=a+r;return{t:n}}catch(v){e.l=a+r;return{t:n}}}function os(e,r){var t=Qn(e,8);e.l+=16;var a=Un(e,r-24);return[t,a]}function us(e){var r=yr(24);var t=et(e[0]);r._W(2,t.r);r._W(2,t.r);r._W(2,t.c);r._W(2,t.c);var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(var n=0;n<16;++n)r._W(1,parseInt(a[n],16));return C([r,Wn(e[1])])}function hs(e,r){var t=e.l+r;e._R(2);var a=Qn(e,8);var n=e._R((r-10)/2,"dbcs-cont");n=n.replace(T,"");return[a,n]}function ds(e){var r=e[1].Tooltip;var t=yr(10+2*(r.length+1));t._W(2,2048);var a=et(e[0]);t._W(2,a.r);t._W(2,a.r);t._W(2,a.c);t._W(2,a.c);for(var n=0;n<r.length;++n)t._W(2,r.charCodeAt(n));t._W(2,0);return t}function vs(e,r){var t=[0,0],a;a=e._R(2);t[0]=ca[a]||a;a=e._R(2);t[1]=ca[a]||a;return t}function bs(e){if(!e)e=yr(4);e._W(2,1);e._W(2,1);return e}function ps(e,r){var t=e._R(2);var a=[];while(t-- >0)a.push(Hn(e,8));return a}function ms(e,r){var t=e._R(2);var a=[];while(t-- >0)a.push(Hn(e,8));return a}function gs(e,r){e.l+=2;var t={cxfs:0,crc:0};t.cxfs=e._R(2);t.crc=e._R(4);return t}function Es(e,r,t){if(!t.cellStyles)return Pr(e,r);var a=t&&t.biff>=12?4:2;var n=e._R(a);var i=e._R(a);var s=e._R(a);var l=e._R(a);var f=e._R(2);if(a==2)e.l+=2;return{s:n,e:i,w:s,ixfe:l,flags:f}}function Ss(e,r,t){var a={};e.l+=16;a.header=Nt(e,8);a.footer=Nt(e,8);e.l+=2;return a}function ks(e,r,t){var a={area:false};if(t.biff!=5){e.l+=r;return a}var n=e._R(1);e.l+=3;if(n&16)a.area=true;return a}function ws(e){var r=yr(2*e);for(var t=0;t<e;++t)r._W(2,t+1);return r}var Bs=Xn;var Cs=Tn;var Ts=Dn;function Is(e,r,t){var a=e.l+r;var n=e._R(2);var i=e._R(2);var s=e._R(4);var l={fmt:n,env:i,len:s,data:e.slice(e.l,e.l+s)};e.l+=s;return l}function xs(e){var r=e._R(1);return e._R(r,"sbcs-cont")}function As(e,r,t){var a=Xn(e,6);++e.l;var n=Fn(e,r-7,t);a.t="str";a.val=n;return a}function Rs(e,r,t){var a=Xn(e,6);++e.l;var n=Nt(e,8);a.t="n";a.val=n;return a}function _s(e,r,t){var a=yr(15);db(a,e,r);a._W(8,t,"f");return a}function Ds(e,r){var t=Xn(e,6);++e.l;var a=e._R(2);t.t="n";t.val=a;return t}function Fs(e,r,t){var a=yr(9);db(a,e,r);a._W(2,t);return a}function Os(e,r){var t=e._R(1);if(t===0){e.l++;return""}return e._R(t,"sbcs-cont")}function Ps(e,r){e.l+=6;e.l+=2;e.l+=1;e.l+=3;e.l+=1;e.l+=r-13}function ys(e,r,t){var a=e.l+r;var n=Xn(e,6);var i=e._R(2);var s=_n(e,i,t);e.l=a;n.t="str";n.val=s;return n}var Ns=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,255:16969};function r(r,t){var a=[];var n=S(1);switch(t.type){case"base64":n=k(g.decode(r));break;case"binary":n=k(r);break;case"buffer":;case"array":n=r;break;}Or(n,0);var i=n._R(1);var s=false;var l=false,f=false;switch(i){case 2:;case 3:break;case 48:l=true;s=true;break;case 49:l=true;break;case 131:s=true;break;case 139:s=true;break;case 140:s=true;f=true;break;case 245:s=true;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16));}var c=new Date,o=0,u=0;if(i==2)o=n._R(2);c=new Date(n._R(1)+1900,n._R(1)-1,n._R(1));if(i!=2)o=n._R(4);if(i!=2)u=n._R(2);var h=n._R(2);var d=0,v=1252;if(i!=2){n.l+=16;d=n._R(1);if(n[n.l]!==0)v=e[n[n.l]];n.l+=1;n.l+=2}if(f)n.l+=36;var b=[],p={};var m=u-10-(l?264:0),E=f?32:11;while(i==2?n.l<n.length&&n[n.l]!=13:n.l<m){p={};p.name=cptable.utils.decode(v,n.slice(n.l,n.l+E)).replace(/[\u0000\r\n].*$/g,"");n.l+=E;p.type=String.fromCharCode(n._R(1));if(i!=2&&!f)p.offset=n._R(4);p.len=n._R(1);if(i==2)p.offset=n._R(2);p.dec=n._R(1);if(p.name.length)b.push(p);if(i!=2)n.l+=f?13:14;switch(p.type){case"B":if((!l||p.len!=8)&&t.WTF)console.log("Skipping "+p.name+":"+p.type);break;case"G":;case"P":if(t.WTF)console.log("Skipping "+p.name+":"+p.type);break;case"C":;case"D":;case"F":;case"I":;case"L":;case"M":;case"N":;case"O":;case"T":;case"Y":;case"0":;case"@":;case"+":break;default:throw new Error("Unknown Field Type: "+p.type);}}if(n[n.l]!==13)n.l=u-1;else if(i==2)n.l=521;if(i!=2){if(n._R(1)!==13)throw new Error("DBF Terminator not found "+n.l+" "+n[n.l]);n.l=u}var w=0,B=0;a[0]=[];for(B=0;B!=b.length;++B)a[0][B]=b[B].name;while(o-- >0){if(n[n.l]===42){n.l+=h;continue}++n.l;a[++w]=[];B=0;for(B=0;B!=b.length;++B){var C=n.slice(n.l,n.l+b[B].len);n.l+=b[B].len;Or(C,0);var T=cptable.utils.decode(v,C);switch(b[B].type){case"C":a[w][B]=cptable.utils.decode(v,C);a[w][B]=a[w][B].trim();break;case"D":if(T.length===8)a[w][B]=new Date(+T.substr(0,4),+T.substr(4,2)-1,+T.substr(6,2));else a[w][B]=T;break;case"F":a[w][B]=parseFloat(T.trim());break;case"+":;case"I":a[w][B]=f?C._R(-4,"i")^2147483648:C._R(4,"i");break;case"L":switch(T.toUpperCase()){case"Y":;case"T":a[w][B]=true;break;case"N":;case"F":a[w][B]=false;break;case" ":;case"?":a[w][B]=false;break;default:throw new Error("DBF Unrecognized L:|"+T+"|");}break;case"M":if(!s)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));a[w][B]="##MEMO##"+(f?parseInt(T.trim(),10):C._R(4));break;case"N":a[w][B]=+T.replace(/\u0000/g,"").trim();break;case"@":a[w][B]=new Date(C._R(-8,"f")-621356832e5);break;case"T":a[w][B]=new Date((C._R(4)-2440588)*864e5+C._R(4));break;case"Y":a[w][B]=C._R(4,"i")/1e4;break;case"O":a[w][B]=-C._R(-8,"f");break;case"B":if(l&&b[B].len==8){a[w][B]=C._R(8,"f");break};case"G":;case"P":C.l+=b[B].len;break;case"0":if(b[B].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[B].type);}}}if(i!=2)if(n.l<n.length&&n[n.l++]!=26)throw new Error("DBF EOF Marker missing "+(n.l-1)+" of "+n.length+" "+n[n.l-1].toString(16));return a}function t(e,t){var a=t||{};if(!a.dateNF)a.dateNF="yyyymmdd";return ot(r(e,a),a)}function a(e,r){try{return ct(t(e,r),r)}catch(a){if(r&&r.WTF)throw a}return{SheetNames:[],Sheets:{}}}var n={B:8,C:250,L:1,D:8,"?":0,"":0};function i(e,r){var t=r||{};if(t.type=="string")throw new Error("Cannot write DBF to JS string");var a=Lr();var i=kp(e,{header:1,raw:true,cellDates:true});var s=i[0],l=i.slice(1);var f=0,c=0,o=0,u=1;for(f=0;f<s.length;++f){if(f==null)continue;++o;if(typeof s[f]!=="string")throw new Error("DBF Invalid column name");if(s.indexOf(s[f])!==f)for(c=0;c<1024;++c)if(s.indexOf(s[f]+"_"+c)==-1){s[f]+="_"+c;break}}var h=st(e["!ref"]);var d=[];for(f=0;f<=h.e.c-h.s.c;++f){var v=[];for(c=0;c<l.length;++c){if(l[c][f]!=null)v.push(l[c][f])}if(v.length==0||s[f]==null){d[f]="?";continue}var b="",p="";for(c=0;c<v.length;++c){switch(typeof v[c]){case"number":p="B";break;case"string":p="C";break;case"boolean":p="L";break;case"object":p=v[c]instanceof Date?"D":"C";break;default:p="C";}b=b&&b!=p?"C":p;if(b=="C")break}u+=n[b]||0;d[f]=b}var m=a.next(32);m._W(4,318902576);m._W(4,l.length);m._W(2,296+32*o);m._W(2,u);for(f=0;f<4;++f)m._W(4,0);m._W(4,768);for(f=0,c=0;f<s.length;++f){if(s[f]==null)continue;var g=a.next(32);var E=(s[f].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);g._W(1,E,"sbcs");g._W(1,d[f]=="?"?"C":d[f],"sbcs");g._W(4,c);g._W(1,n[d[f]]||0);g._W(1,0);g._W(1,2);g._W(4,0);g._W(1,0);g._W(4,0);g._W(4,0);c+=n[d[f]]||0}var S=a.next(264);S._W(4,13);for(f=0;f<65;++f)S._W(4,0);for(f=0;f<l.length;++f){var k=a.next(u);k._W(1,0);for(c=0;c<s.length;++c){if(s[c]==null)continue;switch(d[c]){case"L":k._W(1,l[f][c]==null?63:l[f][c]?84:70);break;case"B":k._W(8,l[f][c]||0,"f");break;case"D":if(!l[f][c])k._W(8,"00000000","sbcs");else{k._W(4,("0000"+l[f][c].getFullYear()).slice(-4),"sbcs");k._W(2,("00"+(l[f][c].getMonth()+1)).slice(-2),"sbcs");k._W(2,("00"+l[f][c].getDate()).slice(-2),"sbcs")}break;case"C":var w=String(l[f][c]||"");k._W(1,w,"sbcs");for(o=0;o<250-w.length;++o)k._W(1,32);break;}}}a.next(1)._W(1,26);return a.end()}return{to_workbook:a,to_sheet:t,from_sheet:i}}();var Ls=function(){function e(e,t){switch(t.type){case"base64":return r(g.decode(e),t);case"binary":return r(e,t);case"buffer":return r(e.toString("binary"),t);case"array":return r(Y(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=e.split(/[\n\r]+/),a=-1,n=-1,i=0,s=0,l=[];var f=[];var c=null;var o={},u=[],h=[],d=[];var v=0,b;for(;i!==t.length;++i){v=0;var p=t[i].trim();var m=p.replace(/;;/g,"").split(";").map(function(e){return e.replace(/\u0001/g,";")});var g=m[0],E;if(p.length>0)switch(g){case"ID":break;case"E":break;case"B":break;case"O":break;case"P":if(m[1].charAt(0)=="P")f.push(p.substr(3).replace(/;;/g,";"));break;case"C":for(s=1;s<m.length;++s)switch(m[s].charAt(0)){case"X":n=parseInt(m[s].substr(1))-1;break;case"Y":a=parseInt(m[s].substr(1))-1;n=0;for(b=l.length;b<=a;++b)l[b]=[];break;case"K":E=m[s].substr(1);if(E.charAt(0)==='"')E=E.substr(1,E.length-2);else if(E==="TRUE")E=true;else if(E==="FALSE")E=false;else if(!isNaN(J(E))){E=J(E);if(c!==null&&x.is_date(c))E=X(E)}else if(!isNaN(Z(E).getDate())){E=K(E)}l[a][n]=E;c=null;break;case"E":var S=_c(m[s].substr(1),{r:a,c:n});l[a][n]=[l[a][n],S];break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+p);}break;case"F":var k=0;for(s=1;s<m.length;++s)switch(m[s].charAt(0)){case"X":n=parseInt(m[s].substr(1))-1;++k;break;case"Y":a=parseInt(m[s].substr(1))-1;for(b=l.length;b<=a;++b)l[b]=[];break;case"M":v=parseInt(m[s].substr(1))/20;break;case"F":break;case"P":c=f[parseInt(m[s].substr(1))];break;case"S":break;case"D":break;case"N":break;case"W":d=m[s].substr(1).split(" ");for(b=parseInt(d[0],10);b<=parseInt(d[1],10);++b){v=parseInt(d[2],10);h[b-1]=v===0?{hidden:true}:{wch:v};jl(h[b-1])}break;case"C":n=parseInt(m[s].substr(1))-1;if(!h[n])h[n]={};break;case"R":a=parseInt(m[s].substr(1))-1;if(!u[a])u[a]={};if(v>0){u[a].hpt=v;u[a].hpx=Ql(v)}else if(v===0)u[a].hidden=true;break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+p);}if(k<1)c=null;break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+p);}}if(u.length>0)o["!rows"]=u;if(h.length>0)o["!cols"]=h;return[l,o]}function t(r,t){var a=e(r,t);var n=a[0],i=a[1];var s=ot(n,t);y(i).forEach(function(e){s[e]=i[e]});return s}function a(e,r){return ct(t(e,r),r)}function n(e,r,t,a,n){var i="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":i+=e.v||0;if(e.f&&!e.F)i+=";E"+Fc(e.f,{r:t,c:a});break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"")+'"';break;}return i}function i(e,r){r.forEach(function(r,t){var a="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeof r.width=="number")r.wpx=Ml(r.width);if(typeof r.wpx=="number")r.wch=Ul(r.wpx);if(typeof r.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}function s(e,r){r.forEach(function(r,t){var a="F;";if(r.hidden)a+="M0;";else if(r.hpt)a+="M"+20*r.hpt+";";else if(r.hpx)a+="M"+20*$l(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}function l(e,r){var t=["ID;PWXL;N;E"],a=[];var l=st(e["!ref"]),f;var c=Array.isArray(e);var o="\r\n";t.push("P;PGeneral");t.push("F;P0;DG0G8;M255");if(e["!cols"])i(t,e["!cols"]);if(e["!rows"])s(t,e["!rows"]);t.push("B;Y"+(l.e.r-l.s.r+1)+";X"+(l.e.c-l.s.c+1)+";D"+[l.s.c,l.s.r,l.e.c,l.e.r].join(" "));for(var u=l.s.r;u<=l.e.r;++u){for(var h=l.s.c;h<=l.e.c;++h){var d=rt({r:u,c:h});f=c?(e[u]||[])[h]:e[d];if(!f||f.v==null&&(!f.f||f.F))continue;a.push(n(f,e,u,h,r))}}return t.join(o)+o+a.join(o)+o+"E"+o}return{to_workbook:a,to_sheet:t,from_sheet:l}}();var Ms=function(){function e(e,t){switch(t.type){case"base64":return r(g.decode(e),t);case"binary":return r(e,t);case"buffer":return r(e.toString("binary"),t);case"array":return r(Y(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;var l=t[i].trim().split(",");var f=l[0],c=l[1];++i;var o=t[i].trim();switch(+f){case-1:if(o==="BOT"){s[++a]=[];n=0;continue}else if(o!=="EOD")throw new Error("Unrecognized DIF special command "+o);break;case 0:if(o==="TRUE")s[a][n]=true;else if(o==="FALSE")s[a][n]=false;else if(!isNaN(J(c)))s[a][n]=J(c);else if(!isNaN(Z(c).getDate()))s[a][n]=K(c);else s[a][n]=c;++n;break;case 1:o=o.substr(1,o.length-2);s[a][n++]=o!==""?o:null;break;}if(o==="EOD")break}return s}function t(r,t){return ot(e(r,t),t)}function a(e,r){return ct(t(e,r),r)}var n=function(){var e=function t(e,r,a,n,i){e.push(r);e.push(a+","+n);e.push('"'+i.replace(/"/g,'""')+'"')};var r=function a(e,r,t,n){e.push(r+","+t);e.push(r==1?'"'+n.replace(/"/g,'""')+'"':n)};return function n(t,a){var n=[];var i=st(t["!ref"]),s;var l=Array.isArray(t);e(n,"TABLE",0,1,"sheetjs");e(n,"VECTORS",0,i.e.r-i.s.r+1,"");e(n,"TUPLES",0,i.e.c-i.s.c+1,"");e(n,"DATA",0,0,"");for(var f=i.s.r;f<=i.e.r;++f){r(n,-1,0,"BOT");for(var c=i.s.c;c<=i.e.c;++c){var o=rt({r:f,c:c});s=l?(t[f]||[])[c]:t[o];if(!s){r(n,1,0,"");continue}switch(s.t){case"n":var u=m?s.w:s.v;if(!u&&s.v!=null)u=s.v;if(u==null){if(m&&s.f&&!s.F)r(n,1,0,"="+s.f);else r(n,1,0,"")}else r(n,0,u,"V");break;case"b":r(n,0,s.v?1:0,s.v?"TRUE":"FALSE");break;case"s":r(n,1,0,!m||isNaN(s.v)?s.v:'="'+s.v+'"');break;case"d":if(!s.w)s.w=x.format(s.z||x._table[14],H(K(s.v)));if(m)r(n,0,s.w,"V");else r(n,1,0,s.w);break;default:r(n,1,0,"");}}}r(n,-1,0,"EOD");var h="\r\n";var d=n.join(h);return d}}();return{to_workbook:a,to_sheet:t,from_sheet:n}}();var Us=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function r(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(r,t){var a=r.split("\n"),n=-1,i=-1,s=0,l=[];for(;s!==a.length;++s){var f=a[s].trim().split(":");if(f[0]!=="cell")continue;var c=et(f[1]);if(l.length<=c.r)for(n=l.length;n<=c.r;++n)if(!l[n])l[n]=[];n=c.r;i=c.c;switch(f[2]){case"t":l[n][i]=e(f[3]);break;case"v":l[n][i]=+f[3];break;case"vtf":var o=f[f.length-1];case"vtc":switch(f[3]){case"nl":l[n][i]=+f[4]?true:false;break;default:l[n][i]=+f[4];break;}if(f[2]=="vtf")l[n][i]=[l[n][i],o];}}return l}function a(e,r){return ot(t(e,r),r)}function n(e,r){return ct(a(e,r),r)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n");var s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n";var l=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n");var f="--SocialCalcSpreadsheetControlSave--";function c(e){if(!e||!e["!ref"])return"";var t=[],a=[],n,i="";var s=nt(e["!ref"]);var l=Array.isArray(e);for(var f=s.s.r;f<=s.e.r;++f){for(var c=s.s.c;c<=s.e.c;++c){i=rt({r:f,c:c});n=l?(e[f]||[])[c]:e[i];if(!n||n.v==null||n.t==="z")continue;a=["cell",i,"t"];switch(n.t){case"s":;case"str":a.push(r(n.v));break;case"n":if(!n.f){a[2]="v";a[3]=n.v}else{a[2]="vtf";a[3]="n";a[4]=n.v;a[5]=r(n.f)}break;case"b":a[2]="vt"+(n.f?"f":"c");a[3]="nl";a[4]=n.v?"1":"0";a[5]=r(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var o=H(K(n.v));a[2]="vtc";a[3]="nd";a[4]=""+o;a[5]=n.w||x.format(n.z||x._table[14],o);break;case"e":continue;}t.push(a.join(":"))}}t.push("sheet:c:"+(s.e.c-s.s.c+1)+":r:"+(s.e.r-s.s.r+1)+":tvf:1");t.push("valueformat:1:text-wiki");return t.join("\n")}function o(e,r){return[i,s,l,s,c(e),f].join("\n")}return{to_workbook:n,to_sheet:a,from_sheet:o}}();var Ws=function(){function e(e,r,t,a,n){if(n.raw)r[t][a]=e;else if(e==="TRUE")r[t][a]=true;else if(e==="FALSE")r[t][a]=false;else if(e===""){}else if(!isNaN(J(e)))r[t][a]=J(e);else if(!isNaN(Z(e).getDate()))r[t][a]=K(e);else r[t][a]=e}function r(r,t){var a=t||{};var n=[];if(!r||r.length===0)return n;var i=r.split(/[\r\n]/);var s=i.length-1;while(s>=0&&i[s].length===0)--s;var l=10,f=0;var c=0;for(;c<=s;++c){f=i[c].indexOf(" ");if(f==-1)f=i[c].length;else f++;l=Math.max(l,f)}for(c=0;c<=s;++c){n[c]=[];var o=0;e(i[c].slice(0,l).trim(),n,c,o,a);for(o=1;o<=(i[c].length-l)/10+1;++o)e(i[c].slice(l+(o-1)*10,l+o*10).trim(),n,c,o,a)}return n}var t={44:",",9:"\t",59:";"};var a={44:3,9:2,59:1};function n(e){var r={},n=false,i=0,s=0;for(;i<e.length;++i){if((s=e.charCodeAt(i))==34)n=!n;else if(!n&&s in t)r[s]=(r[s]||0)+1}s=[];for(i in r)if(r.hasOwnProperty(i)){s.push([r[i],i])}if(!s.length){r=a;for(i in r)if(r.hasOwnProperty(i)){s.push([r[i],i])}}s.sort(function(e,r){return e[0]-r[0]||a[e[1]]-a[r[1]]});return t[s.pop()[1]]}function i(e,r){var t=r||{};var a="";if(p!=null&&t.dense==null)t.dense=p;var i=t.dense?[]:{};var s={s:{c:0,r:0},e:{c:0,r:0}};if(e.substr(0,4)=="sep="&&e.charCodeAt(5)==10){a=e.charAt(4);e=e.substr(6)}else a=n(e.substr(0,1024));var l=0,f=0,c=0;var o=0,u=0,h=a.charCodeAt(0),d=false,v=0;e=e.replace(/\r\n/gm,"\n");var b=t.dateNF!=null?D(t.dateNF):null;function m(){var r=e.slice(o,u);var a={};if(r.charAt(0)=='"'&&r.charAt(r.length-1)=='"')r=r.slice(1,-1).replace(/""/g,'"');if(r.length===0)a.t="z";else if(t.raw){a.t="s";a.v=r}else if(r.trim().length===0){a.t="s";a.v=r}else if(r.charCodeAt(0)==61){if(r.charCodeAt(1)==34&&r.charCodeAt(r.length-1)==34){a.t="s";a.v=r.slice(2,-1).replace(/""/g,'"')}else if(yc(r)){a.t="n";a.f=r.substr(1)}else{a.t="s";a.v=r}}else if(r=="TRUE"){a.t="b";a.v=true}else if(r=="FALSE"){a.t="b";a.v=false}else if(!isNaN(c=J(r))){a.t="n";if(t.cellText!==false)a.w=r;a.v=c}else if(!isNaN(Z(r).getDate())||b&&r.match(b)){a.z=t.dateNF||x._table[14];var n=0;if(b&&r.match(b)){r=F(r,t.dateNF,r.match(b)||[]);
n=1}if(t.cellDates){a.t="d";a.v=K(r,n)}else{a.t="n";a.v=H(K(r,n))}if(t.cellText!==false)a.w=x.format(a.z,a.v instanceof Date?H(a.v):a.v);if(!t.cellNF)delete a.z}else{a.t="s";a.v=r}if(a.t=="z"){}else if(t.dense){if(!i[l])i[l]=[];i[l][f]=a}else i[rt({c:f,r:l})]=a;o=u+1;if(s.e.c<f)s.e.c=f;if(s.e.r<l)s.e.r=l;if(v==h)++f;else{f=0;++l}}for(;u<e.length;++u)switch(v=e.charCodeAt(u)){case 34:d=!d;break;case h:;case 10:;case 13:if(!d)m();break;default:break;}if(u-o>0)m();i["!ref"]=it(s);return i}function s(e,t){if(e.slice(0,4)=="sep=")return i(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)return i(e,t);return ot(r(e,t),t)}function l(e,r){var t="",a=r.type=="string"?[0,0,0,0]:tp(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=Y(e);break;case"string":t=e;break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=De(t.slice(3));else if((r.type=="binary"||r.type=="buffer")&&typeof cptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(1252,t));if(t.slice(0,19)=="socialcalc:version:")return Us.to_sheet(r.type=="string"?t:De(t),r);return s(t,r)}function f(e,r){return ct(l(e,r),r)}function c(e,r){var t=[];var a=st(e["!ref"]),n;var i=Array.isArray(e);for(var s=a.s.r;s<=a.e.r;++s){var l=[];for(var f=a.s.c;f<=a.e.c;++f){var c=rt({r:s,c:f});n=i?(e[s]||[])[f]:e[c];if(!n||n.v==null){l.push("          ");continue}var o=(n.w||(ft(n),n.w)||"").substr(0,10);while(o.length<10)o+=" ";l.push(o+(f===0?" ":""))}t.push(l.join(""))}return t.join("\n")}return{to_workbook:f,to_sheet:l,from_sheet:c}}();function Vs(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Ls.to_workbook(e,t);t.WTF=a;return n}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throw i;return Ws.to_workbook(e,r)}}var Hs=function(){function e(e,r,t){if(!e)return;Or(e,e.l||0);var a=t.Enum||E;while(e.l<e.length){var n=e._R(2);var i=a[n]||a[255];var s=e._R(2);var l=e.l+s;var f=(i.f||Pr)(e,s,t);e.l=l;if(r(f,i.n,n))return}}function r(e,r){switch(r.type){case"base64":return t(k(g.decode(e)),r);case"binary":return t(k(e),r);case"buffer":;case"array":return t(e,r);}throw"Unsupported type "+r.type}function t(r,t){if(!r)return r;var a=t||{};if(p!=null&&a.dense==null)a.dense=p;var n=a.dense?[]:{},i="Sheet1",s=0;var l={},f=[i];var c={s:{r:0,c:0},e:{r:0,c:0}};if(r[2]==2)a.Enum=E;else if(r[2]==26)a.Enum=S;else if(r[2]==14){a.Enum=S;a.qpro=true;r.l=0}else throw new Error("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,o){if(r[2]==2)switch(o){case 0:a.vers=e;if(e>=4096)a.qpro=true;break;case 6:c=e;break;case 15:if(!a.qpro)e[1].v=e[1].v.substr(1);case 13:;case 14:;case 16:;case 51:if(o==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||x._table[14];if(a.cellDates){e[1].t="d";e[1].v=X(e[1].v)}}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[rt(e[0])]=e[1];break;}else switch(o){case 22:e[1].v=e[1].v.substr(1);case 23:;case 24:;case 25:;case 37:;case 39:;case 40:if(e[3]>s){n["!ref"]=it(c);l[i]=n;n=a.dense?[]:{};c={s:{r:0,c:0},e:{r:0,c:0}};s=e[3];i="Sheet"+(s+1);f.push(i)}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[rt(e[0])]=e[1];if(c.e.c<e[0].c)c.e.c=e[0].c;if(c.e.r<e[0].r)c.e.r=e[0].r;break;default:break;}},a);n["!ref"]=it(c);l[i]=n;return{SheetNames:f,Sheets:l}}function a(e,r){var t={s:{c:0,r:0},e:{c:0,r:0}};t.s.c=e._R(2);t.s.r=e._R(2);t.e.c=e._R(2);t.e.r=e._R(2);if(t.s.c==65535)t.s.c=t.e.c=t.s.r=t.e.r=0;return t}function n(e,r,t){var a=[{c:0,r:0},{t:"n",v:0},0];if(t.qpro&&t.vers!=20768){a[0].c=e._R(1);e.l++;a[0].r=e._R(2);e.l+=2}else{a[2]=e._R(1);a[0].c=e._R(2);a[0].r=e._R(2)}return a}function i(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].t="s";if(t.vers==20768){e.l++;var s=e._R(1);i[1].v=e._R(s,"utf8");return i}if(t.qpro)e.l++;i[1].v=e._R(a-e.l,"cstr");return i}function s(e,r,t){var a=n(e,r,t);a[1].v=e._R(2,"i");return a}function l(e,r,t){var a=n(e,r,t);a[1].v=e._R(8,"f");return a}function f(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].v=e._R(8,"f");if(t.qpro)e.l=a;else{var s=e._R(2);e.l+=s}return i}function c(e,r){var t=[{c:0,r:0},{t:"n",v:0},0];t[0].r=e._R(2);t[3]=e[e.l++];t[0].c=e[e.l++];return t}function o(e,r){var t=c(e,r);t[1].t="s";t[1].v=e._R(r-4,"cstr");return t}function u(e,r){var t=c(e,r);t[1].v=e._R(2);var a=t[1].v>>1;if(t[1].v&1){switch(a&7){case 1:a=(a>>3)*500;break;case 2:a=(a>>3)/20;break;case 4:a=(a>>3)/2e3;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break;default:throw"unknown NUMBER_18 encoding "+(a&7);}}t[1].v=a;return t}function h(e,r){var t=c(e,r);var a=e._R(4);var n=e._R(4);var i=e._R(2);if(i==65535){t[1].v=0;return t}var s=i&32768;i=(i&32767)-16446;t[1].v=(i>0?n<<i:n>>>-i)+(i>-32?a<<i+32:a>>>-(i+32));return t}function d(e,r){var t=h(e,14);e.l+=r-14;return t}function v(e,r){var t=c(e,r);var a=e._R(4);t[1].v=a>>6;return t}function b(e,r){var t=c(e,r);var a=e._R(8,"f");t[1].v=a;return t}function m(e,r){var t=b(e,14);e.l+=r-10;return t}var E={0:{n:"BOF",f:Bn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:a},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:s},14:{n:"NUMBER",f:l},15:{n:"LABEL",f:i},16:{n:"FORMULA",f:f},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:i},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},255:{n:"",f:Pr}};var S={0:{n:"BOF"},1:{n:"EOF"},3:{n:"??"},4:{n:"??"},5:{n:"??"},6:{n:"??"},7:{n:"??"},9:{n:"??"},10:{n:"??"},11:{n:"??"},12:{n:"??"},14:{n:"??"},15:{n:"??"},16:{n:"??"},17:{n:"??"},18:{n:"??"},19:{n:"??"},21:{n:"??"},22:{n:"LABEL16",f:o},23:{n:"NUMBER17",f:h},24:{n:"NUMBER18",f:u},25:{n:"FORMULA19",f:d},26:{n:"??"},27:{n:"??"},28:{n:"??"},29:{n:"??"},30:{n:"??"},31:{n:"??"},33:{n:"??"},37:{n:"NUMBER25",f:v},39:{n:"NUMBER27",f:b},40:{n:"FORMULA28",f:m},255:{n:"",f:Pr}};return{to_workbook:r}}();var Xs=function Kp(){var e=Ne("t"),r=Ne("rPr"),t=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/,n=/\r\n/g;var i=function f(e,r,t){var a={},n=65001,i="";var l=e.match(ve),f=0;if(l)for(;f!=l.length;++f){var c=me(l[f]);switch(c[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!c.val)break;case"<shadow>":;case"<shadow/>":a.shadow=1;break;case"</shadow>":break;case"<charset":if(c.val=="1")break;n=s[parseInt(c.val,10)];break;case"<outline":if(!c.val)break;case"<outline>":;case"<outline/>":a.outline=1;break;case"</outline>":break;case"<rFont":a.name=c.val;break;case"<sz":a.sz=c.val;break;case"<strike":if(!c.val)break;case"<strike>":;case"<strike/>":a.strike=1;break;case"</strike>":break;case"<u":if(!c.val)break;switch(c.val){case"double":a.uval="double";break;case"singleAccounting":a.uval="single-accounting";break;case"doubleAccounting":a.uval="double-accounting";break;};case"<u>":;case"<u/>":a.u=1;break;case"</u>":break;case"<b":if(c.val=="0")break;case"<b>":;case"<b/>":a.b=1;break;case"</b>":break;case"<i":if(c.val=="0")break;case"<i>":;case"<i/>":a.i=1;break;case"</i>":break;case"<color":if(c.rgb)a.color=c.rgb.substr(2,6);break;case"<family":a.family=c.val;break;case"<vertAlign":i=c.val;break;case"<scheme":break;default:if(c[0].charCodeAt(1)!==47)throw"Unrecognized rich format "+c[0];}}var o=[];if(a.u)o.push("text-decoration: underline;");if(a.uval)o.push("text-underline-style:"+a.uval+";");if(a.sz)o.push("font-size:"+a.sz+";");if(a.outline)o.push("text-effect: outline;");if(a.shadow)o.push("text-shadow: auto;");r.push('<span style="'+o.join("")+'">');if(a.b){r.push("<b>");t.push("</b>")}if(a.i){r.push("<i>");t.push("</i>")}if(a.strike){r.push("<s>");t.push("</s>")}if(i=="superscript")i="sup";else if(i=="subscript")i="sub";if(i!=""){r.push("<"+i+">");t.push("</"+i+">")}t.push("</span>");return n};function l(t){var a=[[],"",[]];var s=t.match(e),l=65001;if(!s)return"";a[1]=s[1];var f=t.match(r);if(f)l=i(f[1],a[0],a[2]);return a[0].join("")+a[1].replace(n,"<br/>")+a[2].join("")}return function c(e){return e.replace(t,"").split(a).map(l).join("")}}();var Gs=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,zs=/<(?:\w+:)?r>/;var js=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Ks(e,r){var t=r?r.cellHTML:true;var a={};if(!e)return null;var n;if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=ke(De(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=De(e);if(t)a.h=xe(a.t)}else if(n=e.match(zs)){a.r=De(e);a.t=ke(De((e.replace(js,"").match(Gs)||[]).join("").replace(ve,"")));if(t)a.h=Xs(a.r)}return a}var Ys=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;var $s=/<(?:\w+:)?(?:si|sstItem)>/g;var Qs=/<\/(?:\w+:)?(?:si|sstItem)>/;function Js(e,r){var t=[],a="";if(!e)return t;var n=e.match(Ys);if(n){a=n[2].replace($s,"").split(Qs);for(var i=0;i!=a.length;++i){var s=Ks(a[i].trim(),r);if(s!=null)t[t.length]=s}n=me(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}return t}ka.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var Zs=/^\s|\s$|[\t\n\r]/;function qs(e,r){if(!r.bookSST)return"";var t=[he];t[t.length]=ze("sst",null,{xmlns:Ye.main[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a){if(e[a]==null)continue;var n=e[a];var i="<si>";if(n.r)i+=n.r;else{i+="<t";if(!n.t)n.t="";if(n.t.match(Zs))i+=' xml:space="preserve"';i+=">"+Ce(n.t)+"</t>"}i+="</si>";t[t.length]=i}if(t.length>2){t[t.length]="</sst>";t[1]=t[1].replace("/>",">")}return t.join("")}function el(e,r){return[e._R(4),e._R(4)]}function rl(e,r){var t=[];var a=false;Nr(e,function n(e,i,s){switch(s){case 159:t.Count=e[0];t.Unique=e[1];break;case 19:t.push(e);break;case 160:return true;case 35:a=true;break;case 36:a=false;break;default:if(i.indexOf("Begin")>0){}else if(i.indexOf("End")>0){}if(!a||r.WTF)throw new Error("Unexpected record "+s+" "+i);}});return t}function tl(e,r){if(!r)r=yr(8);r._W(4,e.Count);r._W(4,e.Unique);return r}var al=mt;function nl(e,r){var t=Lr();Mr(t,"BrtBeginSst",tl(e));for(var a=0;a<e.length;++a)Mr(t,"BrtSSTItem",al(e[a]));Mr(t,"BrtEndSst");return t.end()}function il(e){if(typeof cptable!=="undefined")return cptable.utils.encode(a,e);var r=[],t=e.split("");for(var n=0;n<t.length;++n)r[n]=t[n].charCodeAt(0);return r}function sl(e,r){var t={};t.Major=e._R(2);t.Minor=e._R(2);if(r>=4)e.l+=r-4;return t}function ll(e,r){var t={};t.id=e._R(0,"lpp4");t.R=sl(e,4);t.U=sl(e,4);t.W=sl(e,4);return t}function fl(e){var r=e._R(4);var t=e.l+r-4;var a={};var n=e._R(4);var i=[];while(n-- >0)i.push({t:e._R(4),v:e._R(0,"lpp4")});a.name=e._R(0,"lpp4");a.comps=i;if(e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return a}function cl(e,r){var t=[];e.l+=4;var a=e._R(4);while(a-- >0)t.push(fl(e));return t}function ol(e,r){var t=[];e.l+=4;var a=e._R(4);while(a-- >0)t.push(e._R(0,"lpp4"));return t}function ul(e,r){var t={};var a=e._R(4);var n=e.l+a-4;e.l+=4;t.id=e._R(0,"lpp4");if(n!=e.l)throw new Error("Bad TransformInfoHeader record: "+e.l+" != "+n);t.name=e._R(0,"lpp4");t.R=sl(e,4);t.U=sl(e,4);t.W=sl(e,4);return t}function hl(e,r){var t=ul(e);t.ename=e._R(0,"8lpp4");t.blksz=e._R(4);t.cmode=e._R(4);if(e._R(4)!=4)throw new Error("Bad !Primary record");return t}function dl(e,r){var t=e.l+r;var a={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);var n=false;switch(a.AlgID){case 26126:;case 26127:;case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)throw new Error("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le");e.l=t;return a}function vl(e,r){var t={},a=e.l+r;e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;var n=e._R(4);t.VerifierHash=e.slice(e.l,a);e.l=a;return t}function bl(e,r){var t=sl(e);switch(t.Minor){case 2:return[t.Minor,pl(e,t)];case 3:return[t.Minor,ml(e,t)];case 4:return[t.Minor,gl(e,t)];}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function pl(e,r){var t=e._R(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var a=e._R(4);var n=e.l+a;var i=dl(e,a);var s=vl(e,e.length-e.l);return{t:"Std",h:i,v:s}}function ml(e,r){throw new Error("File is password-protected: ECMA-376 Extensible")}function gl(e,r){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var a=e._R(e.length-e.l,"utf8");var n={};a.replace(ve,function i(e,r){var a=me(e);switch(ge(a[0])){case"<?xml":break;case"<encryption":;case"</encryption>":break;case"<keyData":t.forEach(function(e){n[e]=a[e]});break;case"<dataIntegrity":n.encryptedHmacKey=a.encryptedHmacKey;n.encryptedHmacValue=a.encryptedHmacValue;break;case"<keyEncryptors>":;case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=a.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(a);break;default:throw a[0];}});return n}function El(e,r){var t={};var a=t.EncryptionVersionInfo=sl(e,4);r-=4;if(a.Minor!=2)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;var n=e._R(4);r-=4;t.EncryptionHeader=dl(e,n);r-=n;t.EncryptionVerifier=vl(e,r);return t}function Sl(e,r){var t={};var a=t.EncryptionVersionInfo=sl(e,4);r-=4;if(a.Major!=1||a.Minor!=1)throw"unrecognized version code "+a.Major+" : "+a.Minor;t.Salt=e._R(16);t.EncryptedVerifier=e._R(16);t.EncryptedVerifierHash=e._R(16);return t}function kl(e){var r=0,t;var a=il(e);var n=a.length+1,i,s;var l,f,c;t=S(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];l=(r&16384)===0?0:1;f=r<<1&32767;c=l|f;r=c^s}return r^52811}var wl=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];var r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];var t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628];var a=function(e){return(e/2|e*128)&255};var n=function(e,r){return a(e^r)};var i=function(e){var a=r[e.length-1];var n=104;for(var i=e.length-1;i>=0;--i){var s=e[i];for(var l=0;l!=7;++l){if(s&64)a^=t[n];s*=2;--n}}return a};return function(r){var t=il(r);var a=i(t);var s=t.length;var l=S(16);for(var f=0;f!=16;++f)l[f]=0;var c,o,u;if((s&1)===1){c=a>>8;l[s]=n(e[0],c);--s;c=a&255;o=t[t.length-1];l[s]=n(o,c)}while(s>0){--s;c=a>>8;l[s]=n(t[s],c);--s;c=a&255;l[s]=n(t[s],c)}s=15;u=15-t.length;while(u>0){c=a>>8;l[s]=n(e[u],c);--s;--u;c=a&255;l[s]=n(t[s],c);--s;--u}return l}}();var Bl=function(e,r,t,a,n){if(!n)n=r;if(!a)a=wl(e);var i,s;for(i=0;i!=r.length;++i){s=r[i];s^=a[t];s=(s>>5|s<<3)&255;n[i]=s;++t}return[n,t,a]};var Cl=function(e){var r=0,t=wl(e);return function(e){var a=Bl("",e,r,t);r=a[1];return a[0]}};function Tl(e,r,t,a){var n={key:Bn(e),verificationBytes:Bn(e)};if(t.password)n.verifier=kl(t.password);a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=Cl(t.password);return n}function Il(e,r,t){var a=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=Sl(e,r);else a.Data=El(e,r);return a}function xl(e,r,t){var a={Type:t.biff>=8?e._R(2):0};if(a.Type)Il(e,r-2,a);else Tl(e,r-2,t,a);return a}var Al=function(){function e(e,t){switch(t.type){case"base64":return r(g.decode(e),t);case"binary":return r(e,t);case"buffer":return r(e.toString("binary"),t);case"array":return r(Y(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=r||{};var a=t.dense?[]:{};var n={s:{c:0,r:0},e:{c:0,r:0}};if(!e.match(/\\trowd/))throw new Error("RTF missing table");a["!ref"]=it(n);return a}function t(r,t){return ct(e(r,t),t)}function a(e,r){var t=["{\\rtf1\\ansi"];var a=st(e["!ref"]),n;var i=Array.isArray(e);for(var s=a.s.r;s<=a.e.r;++s){t.push("\\trowd\\trautofit1");for(var l=a.s.c;l<=a.e.c;++l)t.push("\\cellx"+(l+1));t.push("\\pard\\intbl");for(l=a.s.c;l<=a.e.c;++l){var f=rt({r:s,c:l});n=i?(e[s]||[])[l]:e[f];if(!n||n.v==null&&(!n.f||n.F))continue;t.push(" "+(n.w||(ft(n),n.w)));t.push("\\cell")}t.push("\\pard\\intbl\\row")}return t.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();function Rl(e){var r=e.substr(e[0]==="#"?1:0,6);return[parseInt(r.substr(0,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(4,2),16)]}function _l(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().substr(1)}function Dl(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];var l=0,f=0,c=n+i;f=s/(c>1?2-c:c);switch(n){case r:l=((t-a)/s+6)%6;break;case t:l=(a-r)/s+2;break;case a:l=(r-t)/s+4;break;}return[l/6,f,c/2]}function Fl(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),i=a-n/2;var s=[i,i,i],l=6*r;var f;if(t!==0)switch(l|0){case 0:;case 6:f=n*l;s[0]+=n;s[1]+=f;break;case 1:f=n*(2-l);s[0]+=f;s[1]+=n;break;case 2:f=n*(l-2);s[1]+=n;s[2]+=f;break;case 3:f=n*(4-l);s[1]+=f;s[2]+=n;break;case 4:f=n*(l-4);s[2]+=n;s[0]+=f;break;case 5:f=n*(6-l);s[2]+=f;s[0]+=n;break;}for(var c=0;c!=3;++c)s[c]=Math.round(s[c]*255);return s}function Ol(e,r){if(r===0)return e;var t=Dl(Rl(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return _l(Fl(t))}var Pl=6,yl=15,Nl=1,Ll=Pl;function Ml(e){return Math.floor((e+Math.round(128/Ll)/256)*Ll)}function Ul(e){return Math.floor((e-5)/Ll*100+.5)/100}function Wl(e){return Math.round((e*Ll+5)/Ll*256)/256}function Vl(e){return((e-5)/Ll*100+.5)/100}function Hl(e){return(e*Ll+5)/Ll*256/256}function Xl(e){return Wl(Ul(Ml(e)))}function Gl(e){var r=Math.abs(e-Xl(e)),t=Ll;if(r>.005)for(Ll=Nl;Ll<yl;++Ll)if(Math.abs(e-Xl(e))<=r){r=Math.abs(e-Xl(e));t=Ll}Ll=t}function zl(e){var r=Infinity,t=0,a=Nl;for(Ll=Nl;Ll<yl;++Ll){t=Hl(Vl(e))*256;t=t%1;if(t>.5)t--;if(Math.abs(t)<r){r=Math.abs(t);a=Ll}}Ll=a}function jl(e){if(e.width){e.wpx=Ml(e.width);e.wch=Ul(e.wpx);e.MDW=Ll}else if(e.wpx){e.wch=Ul(e.wpx);e.width=Wl(e.wch);e.MDW=Ll}else if(typeof e.wch=="number"){e.width=Wl(e.wch);e.wpx=Ml(e.width);e.MDW=Ll}if(e.customWidth)delete e.customWidth}var Kl=96,Yl=Kl;function $l(e){return e*96/Yl}function Ql(e){return e*Yl/96}var Jl={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Zl(e,r,t,a){r.Borders=[];var n={},i={};e[0].match(ve).forEach(function(e){var t=me(e);switch(t[0]){case"<borders":;case"<borders>":;case"</borders>":break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp){n.diagonalUp=t.diagonalUp}if(t.diagonalDown){n.diagonalDown=t.diagonalDown}r.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":;case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":;case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":;case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":;case"<bottom>":break;case"</bottom>":break;case"<diagonal":;case"<diagonal>":;case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":;case"<horizontal>":;case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":;case"<vertical>":;case"<vertical/>":break;case"</vertical>":break;case"<start":;case"<start>":;case"<start/>":break;case"</start>":break;case"<end":;case"<end>":;case"<end/>":break;case"</end>":break;case"<color":;case"<color>":break;case"<color/>":;case"</color>":break;default:if(a&&a.WTF)throw new Error("unrecognized "+t[0]+" in borders");}})}function ql(e,r,t,a){r.Fills=[];var n={};e[0].match(ve).forEach(function(e){var t=me(e);switch(t[0]){case"<fills":;case"<fills>":;case"</fills>":break;case"<fill>":;case"<fill":;case"<fill/>":n={};r.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":;case"</gradientFill>":r.Fills.push(n);n={};break;case"<patternFill":;case"<patternFill>":if(t.patternType)n.patternType=t.patternType;break;case"<patternFill/>":;case"</patternFill>":break;case"<bgColor":if(!n.bgColor)n.bgColor={};if(t.indexed)n.bgColor.indexed=parseInt(t.indexed,10);if(t.theme)n.bgColor.theme=parseInt(t.theme,10);if(t.tint)n.bgColor.tint=parseFloat(t.tint);if(t.rgb)n.bgColor.rgb=t.rgb.slice(-6);break;case"<bgColor/>":;case"</bgColor>":break;case"<fgColor":if(!n.fgColor)n.fgColor={};if(t.theme)n.fgColor.theme=parseInt(t.theme,10);if(t.tint)n.fgColor.tint=parseFloat(t.tint);if(t.rgb)n.fgColor.rgb=t.rgb.slice(-6);break;case"<fgColor/>":;case"</fgColor>":break;case"<stop":;case"<stop/>":break;case"</stop>":break;case"<color":;case"<color/>":break;case"</color>":break;default:if(a&&a.WTF)throw new Error("unrecognized "+t[0]+" in fills");}})}function ef(e,r,t,a){r.Fonts=[];var n={};e[0].match(ve).forEach(function(e){var i=me(e);switch(i[0]){case"<fonts":;case"<fonts>":;case"</fonts>":break;case"<font":;case"<font>":break;case"</font>":;case"<font/>":r.Fonts.push(n);n={};break;case"<name":if(i.val)n.name=i.val;break;case"<name/>":;case"</name>":break;case"<b":n.bold=i.val?_e(i.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=i.val?_e(i.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(i.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34;break;}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=i.val?_e(i.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=i.val?_e(i.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=i.val?_e(i.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=i.val?_e(i.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=i.val?_e(i.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":if(i.val)n.sz=+i.val;break;case"<sz/>":;case"</sz>":break;case"<vertAlign":if(i.val)n.vertAlign=i.val;break;case"<vertAlign/>":;case"</vertAlign>":break;case"<family":if(i.val)n.family=parseInt(i.val,10);break;case"<family/>":;case"</family>":break;case"<scheme":if(i.val)n.scheme=i.val;break;case"<scheme/>":;case"</scheme>":break;case"<charset":if(i.val=="1")break;i.codepage=s[parseInt(i.val,10)];break;case"<color":if(!n.color)n.color={};if(i.auto)n.color.auto=_e(i.auto);if(i.rgb)n.color.rgb=i.rgb.slice(-6);else if(i.indexed){n.color.index=parseInt(i.indexed,10);var l=ha[n.color.index];if(n.color.index==81)l=ha[1];if(!l)throw new Error(e);n.color.rgb=l[0].toString(16)+l[1].toString(16)+l[2].toString(16)}else if(i.theme){n.color.theme=parseInt(i.theme,10);if(i.tint)n.color.tint=parseFloat(i.tint);if(i.theme&&t.themeElements&&t.themeElements.clrScheme){n.color.rgb=Ol(t.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)}}break;case"<color/>":;case"</color>":break;default:if(a&&a.WTF)throw new Error("unrecognized "+i[0]+" in fonts");}})}function rf(e,r,t){r.NumberFmt=[];var a=y(x._table);for(var n=0;n<a.length;++n)r.NumberFmt[a[n]]=x._table[a[n]];var i=e[0].match(ve);if(!i)return;for(n=0;n<i.length;++n){var s=me(i[n]);switch(s[0]){case"<numFmts":;case"</numFmts>":;case"<numFmts/>":;case"<numFmts>":break;case"<numFmt":{var l=ke(De(s.formatCode)),f=parseInt(s.numFmtId,10);r.NumberFmt[f]=l;if(f>0){if(f>392){for(f=392;f>60;--f)if(r.NumberFmt[f]==null)break;r.NumberFmt[f]=l}x.load(l,f)}}break;case"</numFmt>":break;default:if(t.WTF)throw new Error("unrecognized "+s[0]+" in numFmts");}}}function tf(e,r){var t=["<numFmts>"];[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var a=r[0];a<=r[1];++a)if(e[a]!=null)t[t.length]=ze("numFmt",null,{numFmtId:a,formatCode:Ce(e[a])})});if(t.length===1)return"";t[t.length]="</numFmts>";t[0]=ze("numFmts",null,{count:t.length-2}).replace("/>",">");return t.join("")}var af=["numFmtId","fillId","fontId","borderId","xfId"];var nf=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function sf(e,r,t){r.CellXf=[];var a;e[0].match(ve).forEach(function(e){var n=me(e),i=0;switch(n[0]){case"<cellXfs":;case"<cellXfs>":;case"<cellXfs/>":;case"</cellXfs>":break;case"<xf":;case"<xf/>":a=n;delete a[0];for(i=0;i<af.length;++i)if(a[af[i]])a[af[i]]=parseInt(a[af[i]],10);for(i=0;i<nf.length;++i)if(a[nf[i]])a[nf[i]]=_e(a[nf[i]],"");if(a.numFmtId>392){for(i=392;i>60;--i)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[i]){a.numFmtId=i;break}}r.CellXf.push(a);break;case"</xf>":break;case"<alignment":;case"<alignment/>":var s={};if(n.vertical)s.vertical=n.vertical;if(n.horizontal)s.horizontal=n.horizontal;if(n.textRotation!=null)s.textRotation=n.textRotation;if(n.indent)s.indent=n.indent;if(n.wrapText)s.wrapText=n.wrapText;a.alignment=s;break;case"</alignment>":break;case"<protection":;case"</protection>":;case"<protection/>":break;case"<extLst":;case"</extLst>":break;case"<ext":break;default:if(t.WTF)throw new Error("unrecognized "+n[0]+" in cellXfs");}})}function lf(e){var r=[];r[r.length]=ze("cellXfs",null);e.forEach(function(e){r[r.length]=ze("xf",null,e)});r[r.length]="</cellXfs>";if(r.length===2)return"";r[0]=ze("cellXfs",null,{count:r.length-2}).replace("/>",">");return r.join("")}var ff=function Yp(){var e=/<numFmts([^>]*)>[\S\s]*?<\/numFmts>/;var r=/<cellXfs([^>]*)>[\S\s]*?<\/cellXfs>/;var t=/<fills([^>]*)>[\S\s]*?<\/fills>/;var a=/<fonts([^>]*)>[\S\s]*?<\/fonts>/;var n=/<borders([^>]*)>[\S\s]*?<\/borders>/;return function i(s,l,f){var c={};if(!s)return c;s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var o;if(o=s.match(e))rf(o,c,f);if(o=s.match(a))ef(o,c,l,f);if(o=s.match(t))ql(o,c,l,f);if(o=s.match(n))Zl(o,c,l,f);if(o=s.match(r))sf(o,c,f);return c}}();var cf=ze("styleSheet",null,{xmlns:Ye.main[0],"xmlns:vt":Ye.vt});ka.STY="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";function of(e,r){var t=[he,cf],a;if(e.SSF&&(a=tf(e.SSF))!=null)t[t.length]=a;t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>';t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>';t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>';t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>';if(a=lf(r.cellXfs))t[t.length]=a;t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>';t[t.length]='<dxfs count="0"/>';t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>';if(t.length>2){t[t.length]="</styleSheet>";t[1]=t[1].replace("/>",">")}return t.join("")}function uf(e,r){var t=e._R(2);var a=ht(e,r-2);return[t,a]}function hf(e,r,t){if(!t)t=yr(6+4*r.length);t._W(2,e);dt(r,t);return t.length>t.l?t.slice(0,t.l):t}function df(e,r,t){var a={};a.sz=e._R(2)/20;var n=Ht(e,2,t);if(n.fCondense)a.condense=1;if(n.fExtend)a.extend=1;if(n.fShadow)a.shadow=1;if(n.fOutline)a.outline=1;if(n.fStrikeout)a.strike=1;if(n.fItalic)a.italic=1;var i=e._R(2);if(i===700)a.bold=1;switch(e._R(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break;}var s=e._R(1);if(s!=0)a.underline=s;var l=e._R(1);if(l>0)a.family=l;var f=e._R(1);if(f>0)a.charset=f;e.l++;a.color=Wt(e,8);switch(e._R(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break;}a.name=ht(e,r-21);return a}function vf(e,r){if(!r)r=yr(25+4*32);r._W(2,e.sz*20);Xt(e,r);r._W(2,e.bold?700:400);var t=0;if(e.vertAlign=="superscript")t=1;else if(e.vertAlign=="subscript")t=2;r._W(2,t);r._W(1,e.underline||0);r._W(1,e.family||0);r._W(1,e.charset||0);r._W(1,0);Vt(e.color,r);var a=0;if(e.scheme=="major")a=1;if(e.scheme=="minor")a=2;r._W(1,a);dt(e.name,r);return r.length>r.l?r.slice(0,r.l):r}var bf=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];var pf=L(bf);var mf=Pr;function gf(e,r){if(!r)r=yr(4*3+8*7+16*1);var t=pf[e.patternType];if(t==null)t=40;r._W(4,t);var a=0;if(t!=40){Vt({auto:1},r);Vt({auto:1},r);for(;a<12;++a)r._W(4,0)}else{for(;a<4;++a)r._W(4,0);for(;a<12;++a)r._W(4,0)}return r.length>r.l?r.slice(0,r.l):r}function Ef(e,r){var t=e.l+r;var a=e._R(2);var n=e._R(2);e.l=t;return{ixfe:a,numFmtId:n}}function Sf(e,r,t){if(!t)t=yr(16);t._W(2,r||0);t._W(2,e.numFmtId||0);t._W(2,0);t._W(2,0);t._W(2,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);return t}function kf(e,r){if(!r)r=yr(10);r._W(1,0);r._W(1,0);r._W(4,0);r._W(4,0);return r}var wf=Pr;function Bf(e,r){if(!r)r=yr(51);r._W(1,0);kf(null,r);kf(null,r);kf(null,r);kf(null,r);kf(null,r);return r.length>r.l?r.slice(0,r.l):r}function Cf(e,r){if(!r)r=yr(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);Tt(e.name||"",r);return r.length>r.l?r.slice(0,r.l):r}function Tf(e,r,t){var a=yr(4+256*2*4);a._W(4,e);Tt(r,a);Tt(t,a);return a.length>a.l?a.slice(0,a.l):a}function If(e,r,t){var a={};a.NumberFmt=[];for(var n in x._table)a.NumberFmt[n]=x._table[n];a.CellXf=[];a.Fonts=[];var i=[];var s=false;Nr(e,function l(e,n,f){switch(f){case 44:a.NumberFmt[e[0]]=e[1];x.load(e[1],e[0]);break;case 43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=Ol(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case 1025:break;case 45:break;case 46:break;case 47:if(i[i.length-1]=="BrtBeginCellXFs"){a.CellXf.push(e)}break;case 48:;case 507:;case 572:;case 475:break;case 1171:;case 2102:;case 1130:;case 512:;case 2095:break;case 35:s=true;break;case 36:s=false;break;case 37:i.push(n);break;case 38:i.pop();break;default:if((n||"").indexOf("Begin")>0)i.push(n);else if((n||"").indexOf("End")>0)i.pop();else if(!s||t.WTF)throw new Error("Unexpected record "+f+" "+n);}});return a;
}function xf(e,r){if(!r)return;var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var a=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;Mr(e,"BrtBeginFmts",ut(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(r[a]!=null)Mr(e,"BrtFmt",hf(a,r[a]))});Mr(e,"BrtEndFmts")}function Af(e,r){var t=1;if(t==0)return;Mr(e,"BrtBeginFonts",ut(t));Mr(e,"BrtFont",vf({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Mr(e,"BrtEndFonts")}function Rf(e,r){var t=2;if(t==0)return;Mr(e,"BrtBeginFills",ut(t));Mr(e,"BrtFill",gf({patternType:"none"}));Mr(e,"BrtFill",gf({patternType:"gray125"}));Mr(e,"BrtEndFills")}function _f(e,r){var t=1;if(t==0)return;Mr(e,"BrtBeginBorders",ut(t));Mr(e,"BrtBorder",Bf({}));Mr(e,"BrtEndBorders")}function Df(e,r){var t=1;Mr(e,"BrtBeginCellStyleXFs",ut(t));Mr(e,"BrtXF",Sf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Mr(e,"BrtEndCellStyleXFs")}function Ff(e,r){Mr(e,"BrtBeginCellXFs",ut(r.length));r.forEach(function(r){Mr(e,"BrtXF",Sf(r,0))});Mr(e,"BrtEndCellXFs")}function Of(e,r){var t=1;Mr(e,"BrtBeginStyles",ut(1));Mr(e,"BrtStyle",Cf({xfId:0,builtinId:0,name:"Normal"}));Mr(e,"BrtEndStyles")}function Pf(e,r){var t=0;Mr(e,"BrtBeginDXFs",ut(t));Mr(e,"BrtEndDXFs")}function yf(e,r){var t=0;Mr(e,"BrtBeginTableStyles",Tf(t,"TableStyleMedium9","PivotStyleMedium4"));Mr(e,"BrtEndTableStyles")}function Nf(e,r){return}function Lf(e,r){var t=Lr();Mr(t,"BrtBeginStyleSheet");xf(t,e.SSF);Af(t,e);Rf(t,e);_f(t,e);Df(t,e);Ff(t,r.cellXfs);Of(t,e);Pf(t,e);yf(t,e);Nf(t,e);Mr(t,"BrtEndStyleSheet");return t.end()}ka.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";function Mf(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(ve)||[]).forEach(function(e){var n=me(e);switch(n[0]){case"<a:clrScheme":;case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=n.val;break;case"<a:sysClr":a.rgb=n.lastClr;break;case"<a:dk1>":;case"</a:dk1>":;case"<a:lt1>":;case"</a:lt1>":;case"<a:dk2>":;case"</a:dk2>":;case"<a:lt2>":;case"</a:lt2>":;case"<a:accent1>":;case"</a:accent1>":;case"<a:accent2>":;case"</a:accent2>":;case"<a:accent3>":;case"</a:accent3>":;case"<a:accent4>":;case"</a:accent4>":;case"<a:accent5>":;case"</a:accent5>":;case"<a:accent6>":;case"</a:accent6>":;case"<a:hlink>":;case"</a:hlink>":;case"<a:folHlink>":;case"</a:folHlink>":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme.push(a);a={}}else{a.name=n[0].substring(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function Uf(e,r,t){}function Wf(e,r,t){}var Vf=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/;var Hf=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/;var Xf=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function Gf(e,r,t){r.themeElements={};var a;[["clrScheme",Vf,Mf],["fontScheme",Hf,Uf],["fmtScheme",Xf,Wf]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var zf=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function jf(e,r){if(!e||e.length===0)return jf(Kf());var t;var a={};if(!(t=e.match(zf)))throw new Error("themeElements not found in theme");Gf(t[0],a,r);return a}function Kf(e,r){if(r&&r.themeXLSX)return r.themeXLSX;var t=[he];t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">';t[t.length]="<a:themeElements>";t[t.length]='<a:clrScheme name="Office">';t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>';t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>';t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>';t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>';t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>';t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>';t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>';t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>';t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>';t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>';t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>';t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>';t[t.length]="</a:clrScheme>";t[t.length]='<a:fontScheme name="Office">';t[t.length]="<a:majorFont>";t[t.length]='<a:latin typeface="Cambria"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>';t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>';t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>';t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>';t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>';t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>';t[t.length]='<a:font script="Deva" typeface="Mangal"/>';t[t.length]='<a:font script="Telu" typeface="Gautami"/>';t[t.length]='<a:font script="Taml" typeface="Latha"/>';t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>';t[t.length]='<a:font script="Orya" typeface="Kalinga"/>';t[t.length]='<a:font script="Mlym" typeface="Kartika"/>';t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>';t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>';t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>';t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>';t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>';t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>';t[t.length]="</a:majorFont>";t[t.length]="<a:minorFont>";t[t.length]='<a:latin typeface="Calibri"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Arial"/>';t[t.length]='<a:font script="Hebr" typeface="Arial"/>';t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>';t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>';t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>';t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>';t[t.length]='<a:font script="Deva" typeface="Mangal"/>';t[t.length]='<a:font script="Telu" typeface="Gautami"/>';t[t.length]='<a:font script="Taml" typeface="Latha"/>';t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>';t[t.length]='<a:font script="Orya" typeface="Kalinga"/>';t[t.length]='<a:font script="Mlym" typeface="Kartika"/>';t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>';t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>';t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>';t[t.length]='<a:font script="Viet" typeface="Arial"/>';t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>';t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>';t[t.length]="</a:minorFont>";t[t.length]="</a:fontScheme>";t[t.length]='<a:fmtScheme name="Office">';t[t.length]="<a:fillStyleLst>";t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>';t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:lin ang="16200000" scaled="1"/>';t[t.length]="</a:gradFill>";t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:lin ang="16200000" scaled="0"/>';t[t.length]="</a:gradFill>";t[t.length]="</a:fillStyleLst>";t[t.length]="<a:lnStyleLst>";t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]="</a:lnStyleLst>";t[t.length]="<a:effectStyleLst>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]="</a:effectStyle>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]="</a:effectStyle>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>';t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>';t[t.length]="</a:effectStyle>";t[t.length]="</a:effectStyleLst>";t[t.length]="<a:bgFillStyleLst>";t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>';t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]="</a:bgFillStyleLst>";t[t.length]="</a:fmtScheme>";t[t.length]="</a:themeElements>";t[t.length]="<a:objectDefaults>";t[t.length]="<a:spDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>';t[t.length]="</a:spDef>";t[t.length]="<a:lnDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>';t[t.length]="</a:lnDef>";t[t.length]="</a:objectDefaults>";t[t.length]="<a:extraClrSchemeLst/>";t[t.length]="</a:theme>";return t.join("")}function Yf(e,r,t){var a=e.l+r;var n=e._R(4);if(n===124226)return;if(!t.cellStyles||!ce){e.l=a;return}var i=e.slice(e.l);e.l=a;var s;try{s=new ce(i)}catch(l){return}var f=le(s,"theme/theme/theme1.xml",true);if(!f)return;return jf(f,t)}function $f(e,r){return e._R(4)}function Qf(e,r){var t={};t.xclrType=e._R(2);t.nTintShade=e._R(2);switch(t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Jf(e,4);break;case 2:t.xclrValue=Vn(e,4);break;case 3:t.xclrValue=$f(e,4);break;case 4:e.l+=4;break;}e.l+=8;return t}function Jf(e,r){return Pr(e,r)}function Zf(e,r){return Pr(e,r)}function qf(e,r){var t=e._R(2);var a=e._R(2);var n=[t];switch(t){case 4:;case 5:;case 7:;case 8:;case 9:;case 10:;case 11:;case 13:n[1]=Qf(e,a);break;case 6:n[1]=Zf(e,a);break;case 14:;case 15:n[1]=e._R(a===5?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+a);}return n}function ec(e,r){var t=e.l+r;e.l+=2;var a=e._R(2);e.l+=2;var n=e._R(2);var i=[];while(n-- >0)i.push(qf(e,t-e.l));return{ixfe:a,ext:i}}function rc(e,r){r.forEach(function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break;}})}function tc(e,r,t){var a=[];if(!e)return a;var n=0,i=1;(e.match(ve)||[]).forEach(function(e){var r=me(e);switch(r[0]){case"<?xml":break;case"<calcChain":;case"<calcChain>":;case"</calcChain>":break;case"<c":delete r[0];if(r.i)i=r.i;else r.i=i;a.push(r);break;}});return a}function ac(e,r){}function nc(e,r){var t={};t.i=e._R(4);var a={};a.r=e._R(4);a.c=e._R(4);t.r=rt(a);var n=e._R(1);if(n&2)t.l="1";if(n&8)t.a="1";return t}function ic(e,r,t){var a=[];var n=false;Nr(e,function i(e,r,s){switch(s){case 63:a.push(e);break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!n||t.WTF)throw new Error("Unexpected record "+s+" "+r);}});return a}function sc(e,r){}function lc(e,r,t){var a=t||{}}function fc(e,r,t){if(!e)return e;var a=t||{};var n=false,i=false;Nr(e,function s(e,r,t){if(i)return;switch(t){case 359:;case 363:;case 364:;case 366:;case 367:;case 368:;case 369:;case 370:;case 371:;case 472:;case 577:;case 578:;case 579:;case 580:;case 581:;case 582:;case 583:;case 584:;case 585:;case 586:;case 587:break;case 35:n=true;break;case 36:n=false;break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!n||a.WTF)throw new Error("Unexpected record "+t.toString(16)+" "+r);}},a)}ka.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";ka.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";function cc(e,r){if(!e)return"??";var t=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}var oc=1024;function uc(e,r){var t=[21600,21600];var a=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(",");var n=[ze("xml",null,{"xmlns:v":$e.v,"xmlns:o":$e.o,"xmlns:x":$e.x,"xmlns:mv":$e.mv}).replace(/\/>/,">"),ze("o:shapelayout",ze("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ze("v:shapetype",[ze("v:stroke",null,{joinstyle:"miter"}),ze("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while(oc<e*1e3)oc+=1e3;r.map(function(e){return et(e[0])}).forEach(function(e,r){n=n.concat(["<v:shape"+Ge({id:"_x0000_s"+ ++oc,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10;visibility:hidden",fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",ze("v:fill",ze("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}),{color2:"#BEFF82",angle:"-180",type:"gradient"}),ze("v:shadow",null,{on:"t",obscured:"t"}),ze("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Xe("x:Anchor",[e.c,0,e.r,0,e.c+3,100,e.r+5,100].join(",")),Xe("x:AutoFill","False"),Xe("x:Row",String(e.r)),Xe("x:Column",String(e.c)),"<x:Visible/>","</x:ClientData>","</v:shape>"])});n.push("</xml>");return n.join("")}ka.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";function hc(e,r,t,a,n){for(var i=0;i!=r.length;++i){var s=r[i];var l=Sv(se(e,s.replace(/^\//,""),true),s,n);if(!l||!l.length)continue;var f=y(t);for(var c=0;c!=f.length;++c){var o=f[c];var u=a[o];if(u){var h=u[s];if(h)dc(o,t[o],l)}}}}function dc(e,r,t){var a=Array.isArray(r);var n,i;t.forEach(function(e){if(a){i=et(e.ref);if(!r[i.r])r[i.r]=[];n=r[i.r][i.c]}else n=r[e.ref];if(!n){n={};if(a)r[i.r][i.c]=n;else r[e.ref]=n;var t=st(r["!ref"]||"BDWGO1000001:A1");var s=et(e.ref);if(t.s.r>s.r)t.s.r=s.r;if(t.e.r<s.r)t.e.r=s.r;if(t.s.c>s.c)t.s.c=s.c;if(t.e.c<s.c)t.e.c=s.c;var l=it(t);if(l!==r["!ref"])r["!ref"]=l}if(!n.c)n.c=[];var f={a:e.author,t:e.t,r:e.r};if(e.h)f.h=e.h;n.c.push(f)})}function vc(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var t=[];var a=[];var n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;var r=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e,n){if(e===""||e.trim()==="")return;var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(!i)return;var s=me(i[0]);var l={author:s.authorId&&t[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid};var f=et(s.ref);if(r.sheetRows&&r.sheetRows<=f.r)return;var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);var o=!!c&&!!c[1]&&Ks(c[1])||{r:"",t:"",h:""};l.r=o.r;if(o.r=="<t></t>")o.t=o.h="";l.t=o.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)l.h=o.h;a.push(l)});return a}var bc=ze("comments",null,{xmlns:Ye.main[0]});function pc(e,r){var t=[he,bc];var a=[];t.push("<authors>");e.map(function(e){return e[1]}).forEach(function(e){e.map(function(e){return Ce(e.a)}).forEach(function(e){if(a.indexOf(e)>-1)return;a.push(e);t.push("<author>"+e+"</author>")})});t.push("</authors>");t.push("<commentList>");e.forEach(function(e){e[1].forEach(function(r){t.push('<comment ref="'+e[0]+'" authorId="'+a.indexOf(Ce(r.a))+'"><text>');t.push(Xe("t",r.t==null?"":r.t));t.push("</text></comment>")})});t.push("</commentList>");if(t.length>2){t[t.length]="</comments>";t[1]=t[1].replace("/>",">")}return t.join("")}function mc(e,r){var t={};t.iauthor=e._R(4);var a=Pt(e,16);t.rfx=a.s;t.ref=rt(a.s);e.l+=16;return t}function gc(e,r){if(r==null)r=yr(36);r._W(4,e[1].iauthor);yt(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);return r}var Ec=ht;function Sc(e){return dt(e.slice(0,54))}function kc(e,r){var t=[];var a=[];var n={};var i=false;Nr(e,function s(e,l,f){switch(f){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t;n.h=e.h;n.r=e.r;break;case 636:n.author=a[n.iauthor];delete n.iauthor;if(r.sheetRows&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";delete n.rfx;t.push(n);break;case 35:i=true;break;case 36:i=false;break;case 37:break;case 38:break;default:if((l||"").indexOf("Begin")>0){}else if((l||"").indexOf("End")>0){}else if(!i||r.WTF)throw new Error("Unexpected record "+f+" "+l);}});return t}function wc(e,r){var t=Lr();var a=[];Mr(t,"BrtBeginComments");Mr(t,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(a.indexOf(e.a)>-1)return;a.push(e.a.slice(0,54));Mr(t,"BrtCommentAuthor",Sc(e.a))})});Mr(t,"BrtEndCommentAuthors");Mr(t,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(r){r.iauthor=a.indexOf(r.a);var n={s:et(e[0]),e:et(e[0])};Mr(t,"BrtBeginComment",gc([n,r]));if(r.t&&r.t.length>0)Mr(t,"BrtCommentText",Et(r));Mr(t,"BrtEndComment");delete r.iauthor})});Mr(t,"BrtEndCommentList");Mr(t,"BrtEndComments");return t.end()}function Bc(e){var r=P.utils.cfb_new({root:"R"});e.FullPaths.forEach(function(t,a){if(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))return;var n=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");P.utils.cfb_add(r,n,e.FileIndex[a].content)});return P.write(r)}function Cc(e,r){r.FullPaths.forEach(function(t,a){if(a==0)return;var n=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");if(n.slice(-1)!=="/")P.utils.cfb_add(e,n,r.FileIndex[a].content)})}var Tc=["xlsb","xlsm","xlam","biff8","xla"];ka.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";ka.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function Ic(e,r,t,a,n,i,s){return{"!type":"dialog"}}function xc(e,r,t,a,n,i,s){return{"!type":"dialog"}}function Ac(e,r,t,a,n,i,s){return{"!type":"macro"}}function Rc(e,r,t,a,n,i,s){return{"!type":"macro"}}var _c=function(){var e=/(^|[^A-Za-z])R(\[?)(-?\d+|)\]?C(\[?)(-?\d+|)\]?/g;var r={r:0,c:0};function t(e,t,a,n,i,s){var l=n.length>0?parseInt(n,10)|0:0,f=s.length>0?parseInt(s,10)|0:0;if(f<0&&i.length===0)f=0;var c=false,o=false;if(i.length>0||s.length==0)c=true;if(c)f+=r.c;else--f;if(a.length>0||n.length==0)o=true;if(o)l+=r.r;else--l;return t+(c?"":"$")+Qr(f)+(o?"":"$")+jr(l)}return function a(n,i){r=i;return n.replace(e,t)}}();var Dc=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)([1-9]\d{0,5}|10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6])(?![_.\(A-Za-z0-9])/g;var Fc=function(){return function e(r,t){return r.replace(Dc,function(e,r,a,n,i,s,l,f){var c=$r(n)-t.c;var o=zr(s)-t.r;return r+"R"+(o==0?"":"["+o+"]")+"C"+(c==0?"":"["+c+"]")})}}();function Oc(e,r){return e.replace(Dc,function(e,t,a,n,i,s,l,f){return t+(a=="$"?a+n:Qr($r(n)+r.c))+(i=="$"?i+s:jr(zr(s)+r.r))})}function Pc(e,r,t){var a=nt(r),n=a.s,i=et(t);var s={r:i.r-n.r,c:i.c-n.c};return Oc(e,s)}function yc(e){if(e.length==1)return false;return true}function Nc(e){return e.replace(/_xlfn\./g,"")}function Lc(e){return function(r,t){r.l+=e;return}}function Mc(e){e.l+=1;return}function Uc(e,r){var t=e._R(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function Wc(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return Vc(e,r,t);else if(t.biff==12)a=4}var n=e._R(a),i=e._R(a);var s=Uc(e,2);var l=Uc(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:l[0],cRel:l[1],rRel:l[2]}}}function Vc(e){var r=Uc(e,2),t=Uc(e,2);var a=e._R(1);var n=e._R(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function Hc(e,r){var t=e._R(r==12?4:2),a=e._R(r==12?4:2);var n=Uc(e,2);var i=Uc(e,2);return{s:{r:t,c:n[0],cRel:n[1],rRel:n[2]},e:{r:a,c:i[0],cRel:i[1],rRel:i[2]}}}function Xc(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Gc(e,r,t);var a=e._R(t&&t.biff==12?4:2);var n=Uc(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Gc(e,r,t){var a=Uc(e,2);var n=e._R(1);return{r:a[0],c:n,cRel:a[1],rRel:a[2]}}function zc(e,r,t){var a=e._R(2);var n=e._R(2);return{r:a,c:n&255,fQuoted:!!(n&16384),cRel:n>>15,rRel:n>>15}}function jc(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return Kc(e,r,t);var n=e._R(a>=12?4:2);var i=e._R(2);var s=(i&32768)>>15,l=(i&16384)>>14;i&=16383;if(l==1)while(n>524287)n-=1048576;if(s==1)while(i>8191)i=i-16384;return{r:n,c:i,cRel:s,rRel:l}}function Kc(e,r){var t=e._R(2);var a=e._R(1);var n=(t&32768)>>15,i=(t&16384)>>14;t&=16383;if(n==1&&t>=8192)t=t-16384;if(i==1&&a>=128)a=a-256;return{r:t,c:a,cRel:i,rRel:n}}function Yc(e,r,t){var a=(e[e.l++]&96)>>5;var n=Wc(e,t.biff>=2&&t.biff<=5?6:8,t);return[a,n]}function $c(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2,"i");var i=8;if(t)switch(t.biff){case 5:e.l+=12;i=6;break;case 12:i=12;break;}var s=Wc(e,i,t);return[a,n,s]}function Qc(e,r,t){var a=(e[e.l++]&96)>>5;e.l+=t&&t.biff>8?12:8;return[a]}function Jc(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2);var i=8;if(t)switch(t.biff){case 5:e.l+=12;i=6;break;case 12:i=12;break;}e.l+=i;return[a,n]}function Zc(e,r,t){var a=(e[e.l++]&96)>>5;var n=Hc(e,t&&t.biff>8?12:8,t);return[a,n]}function qc(e,r,t){var a=(e[e.l++]&96)>>5;e.l+=t.biff==2?6:t.biff==12?14:7;return[a]}function eo(e,r){var t=e[e.l+1]&1;var a=1;e.l+=4;return[t,a]}function ro(e,r,t){e.l+=2;var a=e._R(t&&t.biff==2?1:2);var n=[];for(var i=0;i<=a;++i)n.push(e._R(t&&t.biff==2?1:2));return n}function to(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=2;return[a,e._R(t&&t.biff==2?1:2)]}function ao(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=2;return[a,e._R(t&&t.biff==2?1:2)]}function no(e,r){var t=e[e.l+1]&255?1:0;e.l+=2;return[t,e._R(2)]}function io(e,r,t){var a=e[e.l+1]&255?1:0;e.l+=t&&t.biff==2?3:4;return[a]}function so(e,r){var t=e._R(1),a=e._R(1);return[t,a]}function lo(e,r){e._R(2);return so(e,2)}function fo(e,r){e._R(2);return so(e,2)}function co(e,r,t){var a=e[e.l]&31;var n=(e[e.l]&96)>>5;e.l+=1;var i=Xc(e,0,t);return[n,i]}function oo(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=jc(e,0,t);return[a,n]}function uo(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=e._R(2);var i=Xc(e,0,t);return[a,n,i]}function ho(e,r,t){var a=e[e.l]&31;var n=(e[e.l]&96)>>5;e.l+=1;var i=e._R(t&&t.biff<=3?1:2);return[Hu[i],Vu[i],n]}function vo(e,r,t){e.l++;var a=e._R(1),n=t&&t.biff<=3?[0,e._R(1)]:bo(e);return[a,(n[0]===0?Vu:Wu)[n[1]]]}function bo(e,r){return[e[e.l+1]>>7,e._R(2)&32767]}function po(e,r,t){e.l+=t&&t.biff==2?3:4;return}var mo=Mc;function go(e,r,t){e.l++;if(t&&t.biff==12)return[e._R(4,"i"),0];var a=e._R(2);var n=e._R(t&&t.biff==2?1:2);return[a,n]}function Eo(e,r){e.l++;return Mt[e._R(1)]}function So(e,r){e.l++;return e._R(2)}function ko(e,r){e.l++;return e._R(1)!==0}function wo(e,r){e.l++;return Nt(e,8)}function Bo(e,r,t){e.l++;return An(e,r-1,t)}function Co(e,r){var t=[e._R(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break;}switch(t[0]){case 4:t[1]=kn(e,1)?"TRUE":"FALSE";e.l+=7;break;case 16:t[1]=Mt[e[e.l]];e.l+=8;break;case 0:e.l+=8;break;case 1:t[1]=Nt(e,8);break;case 2:t[1]=Fn(e,0,{biff:r>0&&r<8?2:r});break;}return t}function To(e,r){var t=e._R(2);var a=[];for(var n=0;n!=t;++n)a.push(Qn(e,8));return a}function Io(e,r,t){var a=0,n=0;if(t.biff==12){a=e._R(4);n=e._R(4)}else{n=1+e._R(1);a=1+e._R(2)}if(t.biff>=2&&t.biff<8){--a;if(--n==0)n=256}for(var i=0,s=[];i!=a&&(s[i]=[]);++i)for(var l=0;l!=n;++l)s[i][l]=Co(e,t.biff);return s}function xo(e,r,t){var a=e._R(1)>>>5&3;var n=!t||t.biff>=8?4:2;var i=e._R(n);switch(t.biff){case 2:e.l+=5;break;case 3:;case 4:e.l+=8;break;case 5:e.l+=12;break;}return[a,0,i]}function Ao(e,r,t){if(t.biff==5)return Ro(e,r,t);var a=e._R(1)>>>5&3;var n=e._R(2);var i=e._R(4);return[a,n,i]}function Ro(e,r,t){var a=e._R(1)>>>5&3;var n=e._R(2,"i");e.l+=8;var i=e._R(2);e.l+=12;return[a,n,i]}function _o(e,r,t){var a=e._R(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var n=e._R(t&&t.biff==2?1:2);return[a,n]}function Do(e,r,t){var a=e._R(1)>>>5&3;var n=e._R(t&&t.biff==2?1:2);return[a,n]}function Fo(e,r,t){var a=e._R(1)>>>5&3;e.l+=4;if(t.biff==12)e.l+=2;return[a]}function Oo(e,r,t){var a=(e[e.l++]&96)>>5;var n=e._R(2);var i=4;if(t)switch(t.biff){case 5:throw new Error("PtgRefErr3d -- 5");case 12:i=6;break;}e.l+=i;return[a,n]}var Po=Mc;var yo=Mc;var No=Mc;var Lo=Mc;var Mo=Mc;var Uo=Mc;var Wo=Mc;var Vo=Mc;var Ho=Mc;var Xo=Mc;var Go=Mc;var zo=Mc;var jo=Mc;var Ko=Mc;var Yo=Mc;var $o=Mc;var Qo=Mc;var Jo=Mc;var Zo=Mc;var qo=Pr;var eu=Pr;var ru=Pr;function tu(e,r,t){e.l+=2;return[zc(e,4,t)]}function au(e,r,t){e.l+=6;return[]}var nu=tu;var iu=au;var su=au;var lu=tu;function fu(e,r,t){e.l+=2;return[Bn(e),e._R(2)&1]}var cu=tu;var ou=fu;var uu=au;var hu=tu;var du=tu;function vu(e,r,t){e.l+=2;var a=e._R(2);e.l+=10;return{}}function bu(e,r,t){e.l+=2;return[e._R(4)]}var pu={1:{n:"PtgExp",f:go},2:{n:"PtgTbl",f:ru},3:{n:"PtgAdd",f:Po},4:{n:"PtgSub",f:$o},5:{n:"PtgMul",f:Xo},6:{n:"PtgDiv",f:yo},7:{n:"PtgPower",f:Ko},8:{n:"PtgConcat",f:mo},9:{n:"PtgLt",f:Vo},10:{n:"PtgLe",f:Wo},11:{n:"PtgEq",f:No},12:{n:"PtgGe",f:Lo},13:{n:"PtgGt",f:Mo},14:{n:"PtgNe",f:Go},15:{n:"PtgIsect",f:Uo},16:{n:"PtgUnion",f:Jo},17:{n:"PtgRange",f:Yo},18:{n:"PtgUplus",f:Zo},19:{n:"PtgUminus",f:Qo},20:{n:"PtgPercent",f:jo},21:{n:"PtgParen",f:zo},22:{n:"PtgMissArg",f:Ho},23:{n:"PtgStr",f:Bo},28:{n:"PtgErr",f:Eo},29:{n:"PtgBool",f:ko},30:{n:"PtgInt",f:So},31:{n:"PtgNum",f:wo},32:{n:"PtgArray",f:qc},33:{n:"PtgFunc",f:ho},34:{n:"PtgFuncVar",f:vo},35:{n:"PtgName",f:xo},36:{n:"PtgRef",f:co},37:{n:"PtgArea",f:Yc},38:{n:"PtgMemArea",f:_o},39:{n:"PtgMemErr",f:qo},40:{n:"PtgMemNoMem",f:eu},41:{n:"PtgMemFunc",f:Do},42:{n:"PtgRefErr",f:Fo},43:{n:"PtgAreaErr",f:Qc},44:{n:"PtgRefN",f:oo},45:{n:"PtgAreaN",f:Zc},57:{n:"PtgNameX",f:Ao},58:{n:"PtgRef3d",f:uo},59:{n:"PtgArea3d",f:$c},60:{n:"PtgRefErr3d",f:Oo},61:{n:"PtgAreaErr3d",f:Jc},255:{}};var mu={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61};(function(){for(var e in mu)pu[e]=pu[mu[e]]})();var gu={1:{n:"PtgElfLel",f:fu},2:{n:"PtgElfRw",f:hu},3:{n:"PtgElfCol",f:nu},6:{n:"PtgElfRwV",f:du},7:{n:"PtgElfColV",f:lu},10:{n:"PtgElfRadical",f:cu},11:{n:"PtgElfRadicalS",f:uu},13:{n:"PtgElfColS",f:iu},15:{n:"PtgElfColSV",f:su},16:{n:"PtgElfRadicalLel",f:ou},25:{n:"PtgList",f:vu},29:{n:"PtgSxName",f:bu},255:{}};var Eu={1:{n:"PtgAttrSemi",f:io},2:{n:"PtgAttrIf",f:ao},4:{n:"PtgAttrChoose",f:ro},8:{n:"PtgAttrGoto",f:to},16:{n:"PtgAttrSum",f:po},32:{n:"PtgAttrBaxcel",f:eo},64:{n:"PtgAttrSpace",f:lo},65:{n:"PtgAttrSpaceSemi",f:fo},128:{n:"PtgAttrIfError",f:no},255:{}};Eu[33]=Eu[32];function Su(e,r,t,a){if(a.biff<8)return Pr(e,r);var n=e.l+r;var i=[];for(var s=0;s!==t.length;++s){switch(t[s][0]){case"PtgArray":t[s][1]=Io(e,0,a);i.push(t[s][1]);break;case"PtgMemArea":t[s][2]=To(e,t[s][1]);i.push(t[s][2]);break;case"PtgExp":if(a&&a.biff==12){t[s][1][1]=e._R(4);i.push(t[s][1])}break;case"PtgList":;case"PtgElfRadicalS":;case"PtgElfColS":;case"PtgElfColSV":throw"Unsupported "+t[s][0];default:break;}}r=n-e.l;if(r!==0)i.push(Pr(e,r));return i}function ku(e,r,t){var a=e.l+r;var n,i,s=[];while(a!=e.l){r=a-e.l;i=e[e.l];n=pu[i];if(i===24||i===25){i=e[e.l+1];n=(i===24?gu:Eu)[i]}if(!n||!n.f){Pr(e,r)}else{s.push([n.n,n.f(e,r,t)])}}return s}function wu(e){var r=[];for(var t=0;t<e.length;++t){var a=e[t],n=[];for(var i=0;i<a.length;++i){var s=a[i];if(s)switch(s[0]){case 2:n.push('"'+s[1].replace(/"/g,'""')+'"');
break;default:n.push(s[1]);}else n.push("")}r.push(n.join(","))}return r.join(";")}var Bu={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Cu(e){if(!e)throw new Error("empty sheet name");if(e.indexOf(" ")>-1)return"'"+e+"'";return e}function Tu(e,r,t){if(!e)return"SH33TJSERR0";if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff>8&&!e.XTI[r])return e.SheetNames[r];if(t.biff<8){if(r>1e4)r-=65536;if(r<0)r=-r;return r==0?"":e.XTI[r-1]}if(!a)return"SH33TJSERR1";var n="";if(t.biff>8)switch(e[a[0]][0]){case 357:n=a[1]==-1?"#REF":e.SheetNames[a[1]];return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:if(t.SID!=null)return e.SheetNames[t.SID];return"SH33TJSSAME"+e[a[0]][0];case 355:;default:return"SH33TJSSRC"+e[a[0]][0];}switch(e[a[0]][0][0]){case 1025:n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3";return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return"SH33TJSERR8";default:if(!e[a[0]][0][3])return"SH33TJSERR2";n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4";return a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]];}}function Iu(e,r,t){return Cu(Tu(e,r,t))}function xu(e,r,t,a,n){var i={s:{c:0,r:0},e:{c:0,r:0}};var s=[],l,f,c,o,u=0,h=0,d,v="";if(!e[0]||!e[0][0])return"";var b=-1,p="";for(var m=0,g=e[0].length;m<g;++m){var E=e[0][m];switch(E[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":;case"PtgConcat":;case"PtgDiv":;case"PtgEq":;case"PtgGe":;case"PtgGt":;case"PtgLe":;case"PtgLt":;case"PtgMul":;case"PtgNe":;case"PtgPower":;case"PtgSub":l=s.pop();f=s.pop();if(b>=0){switch(e[0][b][1][0]){case 0:p=Q(" ",e[0][b][1][1]);break;case 1:p=Q("\r",e[0][b][1][1]);break;default:p="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][b][1][0]);}f=f+p;b=-1}s.push(f+Bu[E[0]]+l);break;case"PtgIsect":l=s.pop();f=s.pop();s.push(f+" "+l);break;case"PtgUnion":l=s.pop();f=s.pop();s.push(f+","+l);break;case"PtgRange":l=s.pop();f=s.pop();s.push(f+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=E[1][0];o=Ur(E[1][1],i,n);s.push(Vr(o));break;case"PtgRefN":c=E[1][0];o=t?Ur(E[1][1],t,n):E[1][1];s.push(Vr(o));break;case"PtgRef3d":c=E[1][0];u=E[1][1];o=Ur(E[1][2],i,n);v=Iu(a,u,n);var S=v;s.push(v+"!"+Vr(o));break;case"PtgFunc":;case"PtgFuncVar":var k=E[1][0],w=E[1][1];if(!k)k=0;var B=k==0?[]:s.slice(-k);s.length-=k;if(w==="User")w=B.shift();s.push(w+"("+B.join(",")+")");break;case"PtgBool":s.push(E[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(E[1]);break;case"PtgNum":s.push(String(E[1]));break;case"PtgStr":s.push('"'+E[1]+'"');break;case"PtgErr":s.push(E[1]);break;case"PtgAreaN":c=E[1][0];d=Wr(E[1][1],i,n);s.push(Hr(d,n));break;case"PtgArea":c=E[1][0];d=Wr(E[1][1],i,n);s.push(Hr(d,n));break;case"PtgArea3d":c=E[1][0];u=E[1][1];d=E[1][2];v=Iu(a,u,n);s.push(v+"!"+Hr(d,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrSemi":break;case"PtgName":h=E[1][2];var C=(a.names||[])[h-1]||(a[0]||[])[h];var T=C?C.Name:"SH33TJSNAME"+String(h);if(T in Xu)T=Xu[T];s.push(T);break;case"PtgNameX":var I=E[1][1];h=E[1][2];var x;if(n.biff<=5){if(I<0)I=-I;if(a[I])x=a[I][h]}else{var A="";if(((a[I]||[])[0]||[])[0]==14849){}else if(((a[I]||[])[0]||[])[0]==1025){if(a[I][h]&&a[I][h].itab>0){A=a.SheetNames[a[I][h].itab-1]+"!"}}else A=a.SheetNames[h-1]+"!";if(a[I]&&a[I][h])A+=a[I][h].Name;else if(a[0]&&a[0][h])A+=a[0][h].Name;else A+="SH33TJSERRX";s.push(A);break}if(!x)x={Name:"SH33TJSERRY"};s.push(x.Name);break;case"PtgParen":var R="(",_=")";if(b>=0){p="";switch(e[0][b][1][0]){case 2:R=Q(" ",e[0][b][1][1])+R;break;case 3:R=Q("\r",e[0][b][1][1])+R;break;case 4:_=Q(" ",e[0][b][1][1])+_;break;case 5:_=Q("\r",e[0][b][1][1])+_;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][b][1][0]);}b=-1}s.push(R+s.pop()+_);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":o={c:E[1][1],r:E[1][0]};var D={c:t.c,r:t.r};if(a.sharedf[rt(o)]){var F=a.sharedf[rt(o)];s.push(xu(F,i,D,a,n))}else{var O=false;for(l=0;l!=a.arrayf.length;++l){f=a.arrayf[l];if(o.c<f[0].s.c||o.c>f[0].e.c)continue;if(o.r<f[0].s.r||o.r>f[0].e.r)continue;s.push(xu(f[1],i,D,a,n));O=true;break}if(!O)s.push(E[1])}break;case"PtgArray":s.push("{"+wu(E[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":b=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgMemFunc":break;case"PtgMemNoMem":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgAttrBaxcel":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(E));case"PtgList":throw new Error("Unrecognized Formula Token: "+String(E));default:throw new Error("Unrecognized Formula Token: "+String(E));}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(b>=0&&P.indexOf(e[0][m][0])==-1){E=e[0][b];var y=true;switch(E[1][0]){case 4:y=false;case 0:p=Q(" ",E[1][1]);break;case 5:y=false;case 1:p=Q("\r",E[1][1]);break;default:p="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+E[1][0]);}s.push((y?p:"")+s.pop()+(y?"":p));b=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function Au(e,r,t,a){var n=e.l+r,i=t.biff==2?1:2;var s,l=e._R(i);if(l==65535)return[[],Pr(e,r-2)];var f=ku(e,l,t);if(r!==l+i)s=Su(e,r-l-i,f,t);return[f,s]}function Ru(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],Pr(e,r-2)];var l=ku(e,s,t);if(r!==s+n)i=Su(e,r-s-n,l,t);return[l,i]}function _u(e,r,t,a){var n=e.l+r;var i=ku(e,a,t);var s;if(n!==e.l)s=Su(e,n-e.l,i,t);return[i,s]}function Du(e,r,t){var a=e.l+r;var n,i=e._R(2);var s=ku(e,i,t);if(i==65535)return[[],Pr(e,r-2)];if(r!==i+2)n=Su(e,a-i-2,s,t);return[s,n]}function Fu(e){var r;if(Sr(e,e.l+6)!==65535)return[Nt(e),"n"];switch(e[e.l]){case 0:e.l+=8;return["String","s"];case 1:r=e[e.l+2]===1;e.l+=8;return[r,"b"];case 2:r=e[e.l+2];e.l+=8;return[r,"e"];case 3:e.l+=8;return["","s"];}return[]}function Ou(e,r,t){var a=e.l+r;var n=Xn(e,6);if(t.biff==2)++e.l;var i=Fu(e,8);var s=e._R(1);if(t.biff!=2){e._R(1);if(t.biff>=5){var l=e._R(4)}}var f=Ru(e,a-e.l,t);return{cell:n,val:i[0],formula:f,shared:s>>3&1,tt:i[1]}}function Pu(e,r,t){var a=e.l+r;var n=e._R(4);var i=ku(e,n,t);var s=e._R(4);var l=s>0?Su(e,s,i,t):null;return[i,l]}var yu=Pu;var Nu=Pu;var Lu=Pu;var Mu=Pu;var Uu={1:"REFERENCE",2:"VALUE",3:"ARRAY"};var Wu={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"};var Vu={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"};var Hu={2:1,3:1,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,90:1,97:2,98:1,99:1,101:3,102:3,105:1,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};var Xu={"_xlfn.ACOT":"ACOT","_xlfn.ACOTH":"ACOTH","_xlfn.AGGREGATE":"AGGREGATE","_xlfn.ARABIC":"ARABIC","_xlfn.AVERAGEIF":"AVERAGEIF","_xlfn.AVERAGEIFS":"AVERAGEIFS","_xlfn.BASE":"BASE","_xlfn.BETA.DIST":"BETA.DIST","_xlfn.BETA.INV":"BETA.INV","_xlfn.BINOM.DIST":"BINOM.DIST","_xlfn.BINOM.DIST.RANGE":"BINOM.DIST.RANGE","_xlfn.BINOM.INV":"BINOM.INV","_xlfn.BITAND":"BITAND","_xlfn.BITLSHIFT":"BITLSHIFT","_xlfn.BITOR":"BITOR","_xlfn.BITRSHIFT":"BITRSHIFT","_xlfn.BITXOR":"BITXOR","_xlfn.CEILING.MATH":"CEILING.MATH","_xlfn.CEILING.PRECISE":"CEILING.PRECISE","_xlfn.CHISQ.DIST":"CHISQ.DIST","_xlfn.CHISQ.DIST.RT":"CHISQ.DIST.RT","_xlfn.CHISQ.INV":"CHISQ.INV","_xlfn.CHISQ.INV.RT":"CHISQ.INV.RT","_xlfn.CHISQ.TEST":"CHISQ.TEST","_xlfn.COMBINA":"COMBINA","_xlfn.CONCAT":"CONCAT","_xlfn.CONFIDENCE.NORM":"CONFIDENCE.NORM","_xlfn.CONFIDENCE.T":"CONFIDENCE.T","_xlfn.COT":"COT","_xlfn.COTH":"COTH","_xlfn.COUNTIFS":"COUNTIFS","_xlfn.COVARIANCE.P":"COVARIANCE.P","_xlfn.COVARIANCE.S":"COVARIANCE.S","_xlfn.CSC":"CSC","_xlfn.CSCH":"CSCH","_xlfn.DAYS":"DAYS","_xlfn.DECIMAL":"DECIMAL","_xlfn.ECMA.CEILING":"ECMA.CEILING","_xlfn.ERF.PRECISE":"ERF.PRECISE","_xlfn.ERFC.PRECISE":"ERFC.PRECISE","_xlfn.EXPON.DIST":"EXPON.DIST","_xlfn.F.DIST":"F.DIST","_xlfn.F.DIST.RT":"F.DIST.RT","_xlfn.F.INV":"F.INV","_xlfn.F.INV.RT":"F.INV.RT","_xlfn.F.TEST":"F.TEST","_xlfn.FILTERXML":"FILTERXML","_xlfn.FLOOR.MATH":"FLOOR.MATH","_xlfn.FLOOR.PRECISE":"FLOOR.PRECISE","_xlfn.FORECAST.ETS":"FORECAST.ETS","_xlfn.FORECAST.ETS.CONFINT":"FORECAST.ETS.CONFINT","_xlfn.FORECAST.ETS.SEASONALITY":"FORECAST.ETS.SEASONALITY","_xlfn.FORECAST.ETS.STAT":"FORECAST.ETS.STAT","_xlfn.FORECAST.LINEAR":"FORECAST.LINEAR","_xlfn.FORMULATEXT":"FORMULATEXT","_xlfn.GAMMA":"GAMMA","_xlfn.GAMMA.DIST":"GAMMA.DIST","_xlfn.GAMMA.INV":"GAMMA.INV","_xlfn.GAMMALN.PRECISE":"GAMMALN.PRECISE","_xlfn.GAUSS":"GAUSS","_xlfn.HYPGEOM.DIST":"HYPGEOM.DIST","_xlfn.IFERROR":"IFERROR","_xlfn.IFNA":"IFNA","_xlfn.IMCOSH":"IMCOSH","_xlfn.IMCOT":"IMCOT","_xlfn.IMCSC":"IMCSC","_xlfn.IMCSCH":"IMCSCH","_xlfn.IMSEC":"IMSEC","_xlfn.IMSECH":"IMSECH","_xlfn.IMSINH":"IMSINH","_xlfn.IMTAN":"IMTAN","_xlfn.ISFORMULA":"ISFORMULA","_xlfn.ISO.CEILING":"ISO.CEILING","_xlfn.ISOWEEKNUM":"ISOWEEKNUM","_xlfn.LOGNORM.DIST":"LOGNORM.DIST","_xlfn.LOGNORM.INV":"LOGNORM.INV","_xlfn.MAXIFS":"MAXIFS","_xlfn.MINIFS":"MINIFS","_xlfn.MODE.MULT":"MODE.MULT","_xlfn.MODE.SNGL":"MODE.SNGL","_xlfn.MUNIT":"MUNIT","_xlfn.NEGBINOM.DIST":"NEGBINOM.DIST","_xlfn.NETWORKDAYS.INTL":"NETWORKDAYS.INTL","_xlfn.NIGBINOM":"NIGBINOM","_xlfn.NORM.DIST":"NORM.DIST","_xlfn.NORM.INV":"NORM.INV","_xlfn.NORM.S.DIST":"NORM.S.DIST","_xlfn.NORM.S.INV":"NORM.S.INV","_xlfn.NUMBERVALUE":"NUMBERVALUE","_xlfn.PDURATION":"PDURATION","_xlfn.PERCENTILE.EXC":"PERCENTILE.EXC","_xlfn.PERCENTILE.INC":"PERCENTILE.INC","_xlfn.PERCENTRANK.EXC":"PERCENTRANK.EXC","_xlfn.PERCENTRANK.INC":"PERCENTRANK.INC","_xlfn.PERMUTATIONA":"PERMUTATIONA","_xlfn.PHI":"PHI","_xlfn.POISSON.DIST":"POISSON.DIST","_xlfn.QUARTILE.EXC":"QUARTILE.EXC","_xlfn.QUARTILE.INC":"QUARTILE.INC","_xlfn.QUERYSTRING":"QUERYSTRING","_xlfn.RANK.AVG":"RANK.AVG","_xlfn.RANK.EQ":"RANK.EQ","_xlfn.RRI":"RRI","_xlfn.SEC":"SEC","_xlfn.SECH":"SECH","_xlfn.SHEET":"SHEET","_xlfn.SHEETS":"SHEETS","_xlfn.SKEW.P":"SKEW.P","_xlfn.STDEV.P":"STDEV.P","_xlfn.STDEV.S":"STDEV.S","_xlfn.SUMIFS":"SUMIFS","_xlfn.T.DIST":"T.DIST","_xlfn.T.DIST.2T":"T.DIST.2T","_xlfn.T.DIST.RT":"T.DIST.RT","_xlfn.T.INV":"T.INV","_xlfn.T.INV.2T":"T.INV.2T","_xlfn.T.TEST":"T.TEST","_xlfn.TEXTJOIN":"TEXTJOIN","_xlfn.UNICHAR":"UNICHAR","_xlfn.UNICODE":"UNICODE","_xlfn.VAR.P":"VAR.P","_xlfn.VAR.S":"VAR.S","_xlfn.WEBSERVICE":"WEBSERVICE","_xlfn.WEIBULL.DIST":"WEIBULL.DIST","_xlfn.WORKDAY.INTL":"WORKDAY.INTL","_xlfn.XOR":"XOR","_xlfn.Z.TEST":"Z.TEST"};function Gu(e){if(e.substr(0,3)=="of:")e=e.substr(3);if(e.charCodeAt(0)==61){e=e.substr(1);if(e.charCodeAt(0)==61)e=e.substr(1)}e=e.replace(/COM\.MICROSOFT\./g,"");e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,r){return r.replace(/\./g,"")});e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1");return e.replace(/[;~]/g,",").replace(/\|/g,";")}function zu(e){var r="of:="+e.replace(Dc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function ju(e){var r=e.split(":");var t=r[0].split(".")[0];return[t,r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}function Ku(e){return e.replace(/\./,"!")}var Yu={};var $u={};ka.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];function Qu(e,r){for(var t=0,a=e.length;t<a;++t)if(e[t].t===r){e.Count++;return t}e[a]={t:r};e.Count++;e.Unique++;return a}function Ju(e,r){var t={min:e+1,max:e+1};var a=-1;if(r.MDW)Ll=r.MDW;if(r.width!=null)t.customWidth=1;else if(r.wpx!=null)a=Ul(r.wpx);else if(r.wch!=null)a=r.wch;if(a>-1){t.width=Wl(a);t.customWidth=1}else if(r.width!=null)t.width=r.width;if(r.hidden)t.hidden=true;return t}function Zu(e,r){if(!e)return;var t=[.7,.7,.75,.75,.3,.3];if(r=="xlml")t=[1,1,1,1,.5,.5];if(e.left==null)e.left=t[0];if(e.right==null)e.right=t[1];if(e.top==null)e.top=t[2];if(e.bottom==null)e.bottom=t[3];if(e.header==null)e.header=t[4];if(e.footer==null)e.footer=t[5]}function qu(e,r,t){var a=t.revssf[r.z!=null?r.z:"General"];var n=60,i=e.length;if(a==null&&t.ssf){for(;n<392;++n)if(t.ssf[n]==null){x.load(r.z,n);t.ssf[n]=r.z;t.revssf[r.z]=a=n;break}}for(n=0;n!=i;++n)if(e[n].numFmtId===a)return n;e[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1};return i}function eh(e,r,t,a,n,i){if(e.t==="z")return;if(e.t==="d"&&typeof e.v==="string")e.v=K(e.v);try{if(a.cellNF)e.z=x._table[r]}catch(s){if(a.WTF)throw s}if(!a||a.cellText!==false)try{if(e.t==="e")e.w=e.w||Mt[e.v];else if(r===0){if(e.t==="n"){if((e.v|0)===e.v)e.w=x._general_int(e.v);else e.w=x._general_num(e.v)}else if(e.t==="d"){var l=H(e.v);if((l|0)===l)e.w=x._general_int(l);else e.w=x._general_num(l)}else if(e.v===undefined)return"";else e.w=x._general(e.v,$u)}else if(e.t==="d")e.w=x.format(r,H(e.v),$u);else e.w=x.format(r,e.v,$u)}catch(s){if(a.WTF)throw s}if(!a.cellStyles)return;if(t!=null)try{e.s=i.Fills[t];if(e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb){e.s.fgColor.rgb=Ol(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0);if(a.WTF)e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb}if(e.s.bgColor&&e.s.bgColor.theme){e.s.bgColor.rgb=Ol(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0);if(a.WTF)e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb}}catch(s){if(a.WTF&&i.Fills)throw s}}function rh(e,r){var t=st(r);if(t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0)e["!ref"]=it(t)}var th=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g;var ah=/<(?:\w+:)?sheetData>([\s\S]*)<\/(?:\w+:)?sheetData>/;var nh=/<(?:\w:)?hyperlink [^>]*>/gm;var ih=/"(\w*:\w*)"/;var sh=/<(?:\w:)?col[^>]*[\/]?>/g;var lh=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g;var fh=/<(?:\w:)?pageMargins[^>]*\/>/g;var ch=/<(?:\w:)?sheetPr(?:[^>a-z][^>]*)?\/>/;var oh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function uh(e,r,t,a,n,i,s){if(!e)return e;if(p!=null&&r.dense==null)r.dense=p;var l=r.dense?[]:{};var f={s:{r:2e6,c:2e6},e:{r:0,c:0}};var c="",o="";var u=e.match(ah);if(u){c=e.substr(0,u.index);o=e.substr(u.index+u[0].length)}else c=o=e;var h=c.match(ch);if(h)dh(h[0],l,n,t);var d=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var v=c.substr(d,50).match(ih);if(v)rh(l,v[1])}var b=c.match(oh);if(b&&b[1])Bh(b[1],n);var m=[];if(r.cellStyles){var g=c.match(sh);if(g)gh(m,g)}if(u)Ih(u[1],l,r,f,i,s);var E=o.match(lh);if(E)l["!autofilter"]=Sh(E[0]);var S=[];var k=o.match(th);if(k)for(d=0;d!=k.length;++d)S[d]=st(k[d].substr(k[d].indexOf('"')+1));var w=o.match(nh);if(w)bh(l,w,a);var B=o.match(fh);if(B)l["!margins"]=ph(me(B[0]));if(!l["!ref"]&&f.e.c>=f.s.c&&f.e.r>=f.s.r)l["!ref"]=it(f);if(r.sheetRows>0&&l["!ref"]){var C=st(l["!ref"]);if(r.sheetRows<+C.e.r){C.e.r=r.sheetRows-1;if(C.e.r>f.e.r)C.e.r=f.e.r;if(C.e.r<C.s.r)C.s.r=C.e.r;if(C.e.c>f.e.c)C.e.c=f.e.c;if(C.e.c<C.s.c)C.s.c=C.e.c;l["!fullref"]=l["!ref"];l["!ref"]=it(C)}}if(m.length>0)l["!cols"]=m;if(S.length>0)l["!merges"]=S;return l}function hh(e){if(e.length===0)return"";var r='<mergeCells count="'+e.length+'">';for(var t=0;t!=e.length;++t)r+='<mergeCell ref="'+it(e[t])+'"/>';return r+"</mergeCells>"}function dh(e,r,t,a){var n=me(e);if(!t.Sheets[a])t.Sheets[a]={};if(n.codeName)t.Sheets[a].CodeName=n.codeName}function vh(e){var r={sheet:1};var t=["objects","scenarios","selectLockedCells","selectUnlockedCells"];var a=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];t.forEach(function(t){if(e[t]!=null&&e[t])r[t]="1"});a.forEach(function(t){if(e[t]!=null&&!e[t])r[t]="0"});if(e.password)r.password=kl(e.password).toString(16).toUpperCase();return ze("sheetProtection",null,r)}function bh(e,r,t){var a=Array.isArray(e);for(var n=0;n!=r.length;++n){var i=me(De(r[n]),true);if(!i.ref)return;var s=((t||{})["!id"]||[])[i.id];if(s){i.Target=s.Target;if(i.location)i.Target+="#"+i.location}else{i.Target="#"+i.location;s={Target:i.Target,TargetMode:"Internal"}}i.Rel=s;if(i.tooltip){i.Tooltip=i.tooltip;delete i.tooltip}var l=st(i.ref);for(var f=l.s.r;f<=l.e.r;++f)for(var c=l.s.c;c<=l.e.c;++c){var o=rt({c:c,r:f});if(a){if(!e[f])e[f]=[];if(!e[f][c])e[f][c]={t:"z",v:undefined};e[f][c].l=i}else{if(!e[o])e[o]={t:"z",v:undefined};e[o].l=i}}}}function ph(e){var r={};["left","right","top","bottom","header","footer"].forEach(function(t){if(e[t])r[t]=parseFloat(e[t])});return r}function mh(e){Zu(e);return ze("pageMargins",null,e);
}function gh(e,r){var t=false;for(var a=0;a!=r.length;++a){var n=me(r[a],true);if(n.hidden)n.hidden=_e(n.hidden);var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;delete n.min;delete n.max;n.width=+n.width;if(!t&&n.width){t=true;Gl(n.width)}jl(n);while(i<=s)e[i++]=$(n)}}function Eh(e,r){var t=["<cols>"],a,n;for(var i=0;i!=r.length;++i){if(!(a=r[i]))continue;t[t.length]=ze("col",null,Ju(i,a))}t[t.length]="</cols>";return t.join("")}function Sh(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function kh(e){return ze("autoFilter",null,{ref:e.ref})}var wh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/>/;function Bh(e,r){(e.match(wh)||[]).forEach(function(e){var t=me(e);if(_e(t.rightToLeft)){if(!r.Views)r.Views=[{}];if(!r.Views[0])r.Views[0]={};r.Views[0].RTL=true}})}function Ch(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return ze("sheetViews",ze("sheetView",null,n),{})}function Th(e,r,t,a,n,i){if(e.v===undefined&&e.f===undefined||e.t==="z")return"";var s="";var l=e.t,f=e.v;switch(e.t){case"b":s=e.v?"1":"0";break;case"n":s=""+e.v;break;case"e":s=Mt[e.v];break;case"d":if(a.cellDates)s=K(e.v,-1).toISOString();else{e=$(e);e.t="n";s=""+(e.v=H(K(e.v)))}if(typeof e.z==="undefined")e.z=x._table[14];break;default:s=e.v;break;}var c=Xe("v",Ce(s)),o={r:r};var u=qu(a.cellXfs,e,a);if(u!==0)o.s=u;switch(e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;default:if(e.v==null){delete e.t;break}if(a.bookSST){c=Xe("v",""+Qu(a.Strings,e.v));o.t="s";break}o.t="str";break;}if(e.t!=l){e.t=l;e.v=f}if(e.f){var h=e.F&&e.F.substr(0,r.length)==r?{t:"array",ref:e.F}:null;c=ze("f",Ce(e.f),h)+(e.v!=null?c:"")}if(e.l)t["!links"].push([r,e.l]);if(e.c)t["!comments"].push([r,e.c]);return ze("c",c,o)}var Ih=function(){var e=/<(?:\w+:)?c[ >]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=Ne("v"),s=Ne("f");return function l(f,c,o,u,h,d){var v=0,b="",p=[],m=[],g=0,E=0,S=0,k="",w;var B,C=0,T=0;var I,A;var R=0,_=0;var D=Array.isArray(d.CellXf),F;var O=[];var P=[];var y=Array.isArray(c);var N=[],L={},M=false;for(var U=f.split(r),W=0,V=U.length;W!=V;++W){b=U[W].trim();var G=b.length;if(G===0)continue;for(v=0;v<G;++v)if(b.charCodeAt(v)===62)break;++v;B=me(b.substr(0,v),true);C=B.r!=null?parseInt(B.r,10):C+1;T=-1;if(o.sheetRows&&o.sheetRows<C)continue;if(u.s.r>C-1)u.s.r=C-1;if(u.e.r<C-1)u.e.r=C-1;if(o&&o.cellStyles){L={};M=false;if(B.ht){M=true;L.hpt=parseFloat(B.ht);L.hpx=Ql(L.hpt)}if(B.hidden=="1"){M=true;L.hidden=true}if(B.outlineLevel!=null){M=true;L.level=+B.outlineLevel}if(M)N[C-1]=L}p=b.substr(v).split(e);for(v=0;v!=p.length;++v){b=p[v].trim();if(b.length===0)continue;m=b.match(t);g=v;E=0;S=0;b="<c "+(b.substr(0,1)=="<"?">":"")+b;if(m!=null&&m.length===2){g=0;k=m[1];for(E=0;E!=k.length;++E){if((S=k.charCodeAt(E)-64)<1||S>26)break;g=26*g+S}--g;T=g}else++T;for(E=0;E!=b.length;++E)if(b.charCodeAt(E)===62)break;++E;B=me(b.substr(0,E),true);if(!B.r)B.r=rt({r:C-1,c:T});k=b.substr(E);w={t:""};if((m=k.match(i))!=null&&m[1]!=="")w.v=ke(m[1]);if(o.cellFormula){if((m=k.match(s))!=null&&m[1]!==""){w.f=Nc(ke(De(m[1])));if(m[0].indexOf('t="array"')>-1){w.F=(k.match(n)||[])[1];if(w.F.indexOf(":")>-1)O.push([st(w.F),w.F])}else if(m[0].indexOf('t="shared"')>-1){A=me(m[0]);P[parseInt(A.si,10)]=[A,Nc(ke(De(m[1])))]}}else if(m=k.match(/<f[^>]*\/>/)){A=me(m[0]);if(P[A.si])w.f=Pc(P[A.si][1],P[A.si][0].ref,B.r)}var z=et(B.r);for(E=0;E<O.length;++E)if(z.r>=O[E][0].s.r&&z.r<=O[E][0].e.r)if(z.c>=O[E][0].s.c&&z.c<=O[E][0].e.c)w.F=O[E][1]}if(B.t==null&&w.v===undefined){if(w.f||w.F){w.v=0;w.t="n"}else if(!o.sheetStubs)continue;else w.t="z"}else w.t=B.t||"n";if(u.s.c>g)u.s.c=g;if(u.e.c<g)u.e.c=g;switch(w.t){case"n":if(w.v==""||w.v==null){if(!o.sheetStubs)continue;w.t="z"}else w.v=parseFloat(w.v);break;case"s":if(typeof w.v=="undefined"){if(!o.sheetStubs)continue;w.t="z"}else{I=Yu[parseInt(w.v,10)];w.v=I.t;w.r=I.r;if(o.cellHTML)w.h=I.h}break;case"str":w.t="s";w.v=w.v!=null?De(w.v):"";if(o.cellHTML)w.h=xe(w.v);break;case"inlineStr":m=k.match(a);w.t="s";if(m!=null&&(I=Ks(m[1])))w.v=I.t;else w.v="";break;case"b":w.v=_e(w.v);break;case"d":if(o.cellDates)w.v=K(w.v,1);else{w.v=H(K(w.v,1));w.t="n"}break;case"e":if(!o||o.cellText!==false)w.w=w.v;w.v=Ut[w.v];break;}R=_=0;if(D&&B.s!==undefined){F=d.CellXf[B.s];if(F!=null){if(F.numFmtId!=null)R=F.numFmtId;if(o.cellStyles){if(F.fillId!=null)_=F.fillId}}}eh(w,R,_,o,h,d);if(o.cellDates&&D&&w.t=="n"&&x.is_date(x._table[R])){w.t="d";w.v=X(w.v)}if(y){var j=et(B.r);if(!c[j.r])c[j.r]=[];c[j.r][j.c]=w}else c[B.r]=w}}if(N.length>0)c["!rows"]=N}}();function xh(e,r,t,a,n){var i=[],s=[],l=st(e["!ref"]),f="",c,o="",u=[],h=0,d=0,v=e["!rows"];var b=Array.isArray(e);var p={r:o},m,g=-1;for(d=l.s.c;d<=l.e.c;++d)u[d]=Qr(d);for(h=l.s.r;h<=l.e.r;++h){s=[];o=jr(h);for(d=l.s.c;d<=l.e.c;++d){c=u[d]+o;var E=b?(e[h]||[])[d]:e[c];if(E===undefined)continue;if((f=Th(E,c,e,r,t,a))!=null)s.push(f)}if(s.length>0||v&&v[h]){p={r:o};if(v&&v[h]){m=v[h];if(m.hidden)p.hidden=1;g=-1;if(m.hpx)g=$l(m.hpx);else if(m.hpt)g=m.hpt;if(g>-1){p.ht=g;p.customHeight=1}if(m.level){p.outlineLevel=m.level}}i[i.length]=ze("row",s.join(""),p)}}if(v)for(;h<v.length;++h){if(v&&v[h]){p={r:h+1};m=v[h];if(m.hidden)p.hidden=1;g=-1;if(m.hpx)g=$l(m.hpx);else if(m.hpt)g=m.hpt;if(g>-1){p.ht=g;p.customHeight=1}if(m.level){p.outlineLevel=m.level}i[i.length]=ze("row","",p)}}return i.join("")}var Ah=ze("worksheet",null,{xmlns:Ye.main[0],"xmlns:r":Ye.r});function Rh(e,r,t,a){var n=[he,Ah];var i=t.SheetNames[e],s=0,l="";var f=t.Sheets[i];if(f==null)f={};var c=f["!ref"];if(c==null)c="A1";if(!a)a={};f["!comments"]=[];f["!drawing"]=[];var o=t.SheetNames[e];try{if(t.Workbook)o=t.Workbook.Sheets[e].CodeName||o}catch(u){}n[n.length]=ze("sheetPr",null,{codeName:Ce(o)});n[n.length]=ze("dimension",null,{ref:c});n[n.length]=Ch(f,r,e,t);if(r.sheetFormat)n[n.length]=ze("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"});if(f["!cols"]!=null&&f["!cols"].length>0)n[n.length]=Eh(f,f["!cols"]);n[s=n.length]="<sheetData/>";f["!links"]=[];if(f["!ref"]!=null){l=xh(f,r,e,t,a);if(l.length>0)n[n.length]=l}if(n.length>s+1){n[n.length]="</sheetData>";n[s]=n[s].replace("/>",">")}if(f["!protect"]!=null)n[n.length]=vh(f["!protect"]);if(f["!autofilter"]!=null)n[n.length]=kh(f["!autofilter"]);if(f["!merges"]!=null&&f["!merges"].length>0)n[n.length]=hh(f["!merges"]);var h=-1,d,v=-1;if(f["!links"].length>0){n[n.length]="<hyperlinks>";f["!links"].forEach(function(e){if(!e[1].Target)return;d={ref:e[0]};if(e[1].Target.charAt(0)!="#"){v=Ia(a,-1,Ce(e[1].Target).replace(/#.*$/,""),ka.HLINK);d["r:id"]="rId"+v}if((h=e[1].Target.indexOf("#"))>-1)d.location=Ce(e[1].Target.substr(h+1));if(e[1].Tooltip)d.tooltip=Ce(e[1].Tooltip);n[n.length]=ze("hyperlink",null,d)});n[n.length]="</hyperlinks>"}delete f["!links"];if(f["!margins"]!=null)n[n.length]=mh(f["!margins"]);var b=n.length;n[n.length]="";if(f["!drawing"].length>0){v=Ia(a,-1,"../drawings/drawing"+(e+1)+".xml",ka.DRAW);n[n.length]=ze("drawing",null,{"r:id":"rId"+v})}else delete f["!drawing"];if(f["!comments"].length>0){v=Ia(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ka.VML);n[n.length]=ze("legacyDrawing",null,{"r:id":"rId"+v});f["!legacy"]=v}if(n.length>2){n[n.length]="</worksheet>";n[1]=n[1].replace("/>",">")}return n.join("")}function _h(e,r){var t={};var a=e.l+r;t.r=e._R(4);e.l+=4;var n=e._R(2);e.l+=1;var i=e._R(1);e.l=a;if(i&7)t.level=i&7;if(i&16)t.hidden=true;if(i&32)t.hpt=n/20;return t}function Dh(e,r,t){var a=yr(17+8*16);var n=(t["!rows"]||[])[e]||{};a._W(4,e);a._W(4,0);var i=320;if(n.hpx)i=$l(n.hpx)*20;else if(n.hpt)i=n.hpt*20;a._W(2,i);a._W(1,0);var s=0;if(n.level)s|=n.level;if(n.hidden)s|=16;if(n.hpx||n.hpt)s|=32;a._W(1,s);a._W(1,0);var l=0,f=a.l;a.l+=4;var c={r:e,c:0};for(var o=0;o<16;++o){if(r.s.c>o+1<<10||r.e.c<o<<10)continue;var u=-1,h=-1;for(var d=o<<10;d<o+1<<10;++d){c.c=d;var v=Array.isArray(t)?(t[c.r]||[])[c.c]:t[rt(c)];if(v){if(u<0)u=d;h=d}}if(u<0)continue;++l;a._W(4,u);a._W(4,h)}var b=a.l;a.l=f;a._W(4,l);a.l=b;return a.length>a.l?a.slice(0,a.l):a}function Fh(e,r,t,a){var n=Dh(a,t,r);if(n.length>17||(r["!rows"]||[])[a])Mr(e,"BrtRowHdr",n)}var Oh=Pt;var Ph=yt;function yh(e,r){}function Nh(e,r){var t={};e.l+=19;t.name=wt(e,r-19);return t}function Lh(e,r){if(r==null)r=yr(84+4*e.length);for(var t=0;t<3;++t)r._W(1,0);Vt({auto:1},r);r._W(-4,-1);r._W(-4,-1);Bt(e,r);return r.slice(0,r.l)}function Mh(e,r){var t=St(e);return[t]}function Uh(e,r,t){if(t==null)t=yr(8);return kt(r,t)}function Wh(e,r){var t=St(e);var a=e._R(1);return[t,a,"b"]}function Vh(e,r,t){if(t==null)t=yr(9);kt(r,t);t._W(1,e.v?1:0);return t}function Hh(e,r){var t=St(e);var a=e._R(1);return[t,a,"e"]}function Xh(e,r){var t=St(e);var a=e._R(4);return[t,a,"s"]}function Gh(e,r,t){if(t==null)t=yr(12);kt(r,t);t._W(4,r.v);return t}function zh(e,r){var t=St(e);var a=Nt(e);return[t,a,"n"]}function jh(e,r,t){if(t==null)t=yr(16);kt(r,t);Lt(e.v,t);return t}function Kh(e,r){var t=St(e);var a=_t(e);return[t,a,"n"]}function Yh(e,r,t){if(t==null)t=yr(12);kt(r,t);Dt(e.v,t);return t}function $h(e,r){var t=St(e);var a=ht(e);return[t,a,"str"]}function Qh(e,r,t){if(t==null)t=yr(12+4*e.v.length);kt(r,t);dt(e.v,t);return t.length>t.l?t.slice(0,t.l):t}function Jh(e,r,t){var a=e.l+r;var n=St(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"b"];if(t.cellFormula){e.l+=2;var l=Nu(e,a-e.l,t);s[3]=xu(l,null,n,t.supbooks,t)}else e.l=a;return s}function Zh(e,r,t){var a=e.l+r;var n=St(e);n.r=t["!row"];var i=e._R(1);var s=[n,i,"e"];if(t.cellFormula){e.l+=2;var l=Nu(e,a-e.l,t);s[3]=xu(l,null,n,t.supbooks,t)}else e.l=a;return s}function qh(e,r,t){var a=e.l+r;var n=St(e);n.r=t["!row"];var i=Nt(e);var s=[n,i,"n"];if(t.cellFormula){e.l+=2;var l=Nu(e,a-e.l,t);s[3]=xu(l,null,n,t.supbooks,t)}else e.l=a;return s}function ed(e,r,t){var a=e.l+r;var n=St(e);n.r=t["!row"];var i=ht(e);var s=[n,i,"str"];if(t.cellFormula){e.l+=2;var l=Nu(e,a-e.l,t);s[3]=xu(l,null,n,t.supbooks,t)}else e.l=a;return s}var rd=Pt;var td=yt;function ad(e,r){if(r==null)r=yr(4);r._W(4,e);return r}function nd(e,r,t){var a=e.l+r;var n=Pt(e,16);var i=Ct(e);var s=ht(e);var l=ht(e);var f=ht(e);e.l=a;var c={rfx:n,relId:i,loc:s,display:f};if(l)c.Tooltip=l;return c}function id(e,r){var t=yr(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));yt({s:et(e[0]),e:et(e[0])},t);Rt("rId"+r,t);var a=e[1].Target.indexOf("#");var n=a==-1?"":e[1].Target.substr(a+1);dt(n||"",t);dt(e[1].Tooltip||"",t);dt("",t);return t.slice(0,t.l)}function sd(e,r,t){var a=e.l+r;var n=Ft(e,16);var i=e._R(1);var s=[n];s[2]=i;if(t.cellFormula){var l=yu(e,a-e.l,t);s[1]=l}else e.l=a;return s}function ld(e,r,t){var a=e.l+r;var n=Pt(e,16);var i=[n];if(t.cellFormula){var s=Mu(e,a-e.l,t);i[1]=s;e.l=a}else e.l=a;return i}function fd(e,r,t){if(t==null)t=yr(18);var a=Ju(e,r);t._W(-4,e);t._W(-4,e);t._W(4,(a.width||10)*256);t._W(4,0);var n=0;if(r.hidden)n|=1;if(typeof a.width=="number")n|=2;t._W(1,n);t._W(1,0);return t}var cd=["left","right","top","bottom","header","footer"];function od(e,r,t){var a={};cd.forEach(function(r){a[r]=Nt(e,8)});return a}function ud(e,r){if(r==null)r=yr(6*8);Zu(e);cd.forEach(function(t){Lt(e[t],r)});return r}function hd(e,r,t){var a=e._R(2);e.l+=28;return{RTL:a&32}}function dd(e,r,t){if(t==null)t=yr(30);var a=924;if((((r||{}).Views||[])[0]||{}).RTL)a|=32;t._W(2,a);t._W(4,0);t._W(4,0);t._W(4,0);t._W(1,0);t._W(1,0);t._W(2,0);t._W(2,100);t._W(2,0);t._W(2,0);t._W(2,0);t._W(4,0);return t}function vd(e,r){if(r==null)r=yr(16*4+2);r._W(2,e.password?kl(e.password):0);r._W(4,1);[["objects",false],["scenarios",false],["formatCells",true],["formatColumns",true],["formatRows",true],["insertColumns",true],["insertRows",true],["insertHyperlinks",true],["deleteColumns",true],["deleteRows",true],["selectLockedCells",false],["sort",true],["autoFilter",true],["pivotTables",true],["selectUnlockedCells",false]].forEach(function(t){if(t[1])r._W(4,e[t[0]]!=null&&!e[t[0]]?1:0);else r._W(4,e[t[0]]!=null&&e[t[0]]?0:1)});return r}function bd(e,r,t,a,n,i,s){if(!e)return e;var l=r||{};if(!a)a={"!id":{}};if(p!=null&&l.dense==null)l.dense=p;var f=l.dense?[]:{};var c;var o={s:{r:2e6,c:2e6},e:{r:0,c:0}};var u=false,h=false;var d,v,b,m,g,E,S,k,w;var B=[];l.biff=12;l["!row"]=0;var C=0,T=false;var I=[];var A={};var R=l.supbooks||[[]];R.sharedf=A;R.arrayf=I;R.SheetNames=n.SheetNames||n.Sheets.map(function(e){return e.name});if(!l.supbooks){l.supbooks=R;if(n.Names)for(var _=0;_<n.Names.length;++_)R[0][_+1]=n.Names[_]}var D=[],F=[];var O=false;Nr(e,function y(e,r,p){if(h)return;switch(p){case 148:c=e;break;case 0:d=e;if(l.sheetRows&&l.sheetRows<=d.r)h=true;k=jr(m=d.r);l["!row"]=d.r;if(e.hidden||e.hpt||e.level!=null){if(e.hpt)e.hpx=Ql(e.hpt);F[e.r]=e}break;case 2:;case 3:;case 4:;case 5:;case 6:;case 7:;case 8:;case 9:;case 10:;case 11:v={t:e[2]};switch(e[2]){case"n":v.v=e[1];break;case"s":S=Yu[e[1]];v.v=S.t;v.r=S.r;break;case"b":v.v=e[1]?true:false;break;case"e":v.v=e[1];if(l.cellText!==false)v.w=Mt[v.v];break;case"str":v.t="s";v.v=e[1];break;}if(b=s.CellXf[e[0].iStyleRef])eh(v,b.numFmtId,null,l,i,s);g=e[0].c;if(l.dense){if(!f[m])f[m]=[];f[m][g]=v}else f[Qr(g)+k]=v;if(l.cellFormula){T=false;for(C=0;C<I.length;++C){var _=I[C];if(d.r>=_[0].s.r&&d.r<=_[0].e.r)if(g>=_[0].s.c&&g<=_[0].e.c){v.F=it(_[0]);T=true}}if(!T&&e.length>3)v.f=e[3]}if(o.s.r>d.r)o.s.r=d.r;if(o.s.c>g)o.s.c=g;if(o.e.r<d.r)o.e.r=d.r;if(o.e.c<g)o.e.c=g;if(l.cellDates&&b&&v.t=="n"&&x.is_date(x._table[b.numFmtId])){var P=x.parse_date_code(v.v);if(P){v.t="d";v.v=new Date(P.y,P.m-1,P.d,P.H,P.M,P.S,P.u)}}break;case 1:if(!l.sheetStubs||u)break;v={t:"z",v:undefined};g=e[0].c;if(l.dense){if(!f[m])f[m]=[];f[m][g]=v}else f[Qr(g)+k]=v;if(o.s.r>d.r)o.s.r=d.r;if(o.s.c>g)o.s.c=g;if(o.e.r<d.r)o.e.r=d.r;if(o.e.c<g)o.e.c=g;break;case 176:B.push(e);break;case 494:var y=a["!id"][e.relId];if(y){e.Target=y.Target;if(e.loc)e.Target+="#"+e.loc;e.Rel=y}else if(e.relId==""){e.Target="#"+e.loc}for(m=e.rfx.s.r;m<=e.rfx.e.r;++m)for(g=e.rfx.s.c;g<=e.rfx.e.c;++g){if(l.dense){if(!f[m])f[m]=[];if(!f[m][g])f[m][g]={t:"z",v:undefined};f[m][g].l=e}else{E=rt({c:g,r:m});if(!f[E])f[E]={t:"z",v:undefined};f[E].l=e}}break;case 426:if(!l.cellFormula)break;I.push(e);w=l.dense?f[m][g]:f[Qr(g)+k];w.f=xu(e[1],o,{r:d.r,c:g},R,l);w.F=it(e[0]);break;case 427:if(!l.cellFormula)break;A[rt(e[0].s)]=e[1];w=l.dense?f[m][g]:f[Qr(g)+k];w.f=xu(e[1],o,{r:d.r,c:g},R,l);break;case 60:if(!l.cellStyles)break;while(e.e>=e.s){D[e.e--]={width:e.w/256,hidden:!!(e.flags&1)};if(!O){O=true;Gl(e.w/256)}jl(D[e.e+1])}break;case 161:f["!autofilter"]={ref:it(e)};break;case 476:f["!margins"]=e;break;case 147:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;break;case 137:if(!n.Views)n.Views=[{}];if(!n.Views[0])n.Views[0]={};if(e.RTL)n.Views[0].RTL=true;break;case 485:;case 175:;case 644:;case 625:;case 562:;case 396:;case 1112:;case 1146:;case 471:;case 1050:;case 649:;case 1105:;case 49:;case 589:;case 607:;case 564:;case 1055:;case 168:;case 174:;case 1180:;case 499:;case 64:;case 1053:;case 550:;case 171:;case 167:;case 1177:;case 169:;case 1181:;case 551:;case 552:;case 661:;case 639:;case 478:;case 151:;case 537:;case 477:;case 536:;case 1103:;case 680:;case 1104:;case 1024:;case 152:;case 663:;case 535:;case 678:;case 504:;case 1043:;case 428:;case 170:;case 50:;case 2070:;case 1045:break;case 35:u=true;break;case 36:u=false;break;case 37:break;case 38:break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!u||l.WTF)throw new Error("Unexpected record "+p+" "+r);}},l);delete l.supbooks;delete l["!row"];if(!f["!ref"]&&(o.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0)))f["!ref"]=it(c||o);if(l.sheetRows&&f["!ref"]){var P=st(f["!ref"]);if(l.sheetRows<+P.e.r){P.e.r=l.sheetRows-1;if(P.e.r>o.e.r)P.e.r=o.e.r;if(P.e.r<P.s.r)P.s.r=P.e.r;if(P.e.c>o.e.c)P.e.c=o.e.c;if(P.e.c<P.s.c)P.s.c=P.e.c;f["!fullref"]=f["!ref"];f["!ref"]=it(P)}}if(B.length>0)f["!merges"]=B;if(D.length>0)f["!cols"]=D;if(F.length>0)f["!rows"]=F;return f}function pd(e,r,t,a,n,i){if(r.v===undefined)return"";var s="";switch(r.t){case"b":s=r.v?"1":"0";break;case"d":r=$(r);r.z=r.z||x._table[14];r.v=H(K(r.v));r.t="n";break;case"n":;case"e":s=""+r.v;break;default:s=r.v;break;}var l={r:t,c:a};l.s=qu(n.cellXfs,r,n);if(r.l)i["!links"].push([rt(l),r.l]);if(r.c)i["!comments"].push([rt(l),r.c]);switch(r.t){case"s":;case"str":if(n.bookSST){s=Qu(n.Strings,r.v);l.t="s";l.v=s;Mr(e,"BrtCellIsst",Gh(r,l))}else{l.t="str";Mr(e,"BrtCellSt",Qh(r,l))}return;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3)Mr(e,"BrtCellRk",Yh(r,l));else Mr(e,"BrtCellReal",jh(r,l));return;case"b":l.t="b";Mr(e,"BrtCellBool",Vh(r,l));return;case"e":l.t="e";break;}Mr(e,"BrtCellBlank",Uh(r,l))}function md(e,r,t,a,n){var i=st(r["!ref"]||"A1"),s,l="",f=[];Mr(e,"BrtBeginSheetData");var c=Array.isArray(r);var o=i.e.r;if(r["!rows"])o=Math.max(i.e.r,r["!rows"].length-1);for(var u=i.s.r;u<=o;++u){l=jr(u);Fh(e,r,i,u);if(u<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){if(u===i.s.r)f[h]=Qr(h);s=f[h]+l;var d=c?(r[u]||[])[h]:r[s];if(!d)continue;pd(e,d,u,h,a,r)}}Mr(e,"BrtEndSheetData")}function gd(e,r){if(!r||!r["!merges"])return;Mr(e,"BrtBeginMergeCells",ad(r["!merges"].length));r["!merges"].forEach(function(r){Mr(e,"BrtMergeCell",td(r))});Mr(e,"BrtEndMergeCells")}function Ed(e,r,t,a,n){if(!r||!r["!cols"])return;Mr(e,"BrtBeginColInfos");r["!cols"].forEach(function(r,t){if(r)Mr(e,"BrtColInfo",fd(t,r))});Mr(e,"BrtEndColInfos")}function Sd(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;var a=Ia(t,-1,r[1].Target.replace(/#.*$/,""),ka.HLINK);Mr(e,"BrtHLink",id(r,a))});delete r["!links"]}function kd(e,r,t,a){if(r["!comments"].length>0){var n=Ia(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",ka.VML);Mr(e,"BrtLegacyDrawing",Rt("rId"+n));r["!legacy"]=n}}function wd(e,r){if(!r["!autofilter"])return;Mr(e,"BrtBeginAFilter",yt(nt(r["!autofilter"].ref)));Mr(e,"BrtEndAFilter")}function Bd(e,r,t){Mr(e,"BrtBeginWsViews");{Mr(e,"BrtBeginWsView",dd(r,t));Mr(e,"BrtEndWsView")}Mr(e,"BrtEndWsViews")}function Cd(e,r){}function Td(e,r){if(!r["!protect"])return;Mr(e,"BrtSheetProtection",vd(r["!protect"]))}function Id(e,r,t,a){var n=Lr();var i=t.SheetNames[e],s=t.Sheets[i]||{};var l=i;try{if(t&&t.Workbook)l=t.Workbook.Sheets[e].CodeName||l}catch(f){}var c=st(s["!ref"]||"A1");s["!links"]=[];s["!comments"]=[];Mr(n,"BrtBeginSheet");Mr(n,"BrtWsProp",Lh(l));Mr(n,"BrtWsDim",Ph(c));Bd(n,s,t.Workbook);Cd(n,s);Ed(n,s,e,r,t);md(n,s,e,r,t);Td(n,s);wd(n,s);gd(n,s);Sd(n,s,a);if(s["!margins"])Mr(n,"BrtMargins",ud(s["!margins"]));kd(n,s,e,a);Mr(n,"BrtEndSheet");return n.end()}function xd(e){var r=[];(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var t=e.match(/<c:pt idx="(.*?)"><c:v>(.*)<\/c:v><\/c:pt>/);if(!t)return;r[+t[1]]=+t[2]});var t=ke((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return[r,t]}function Ad(e,r,t,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var l=0,f=0,c="A";var o={s:{r:2e6,c:2e6},e:{r:0,c:0}};(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(e){var r=xd(e);o.s.r=o.s.c=0;o.e.c=l;c=Qr(l);r[0].forEach(function(e,t){s[c+jr(t)]={t:"n",v:e,z:r[1]};f=t});if(o.e.r<f)o.e.r=f;++l});if(l>0)s["!ref"]=it(o);return s}ka.CS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet";var Rd=ze("chartsheet",null,{xmlns:Ye.main[0],"xmlns:r":Ye.r});function _d(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};var l={"!type":"chart","!chart":null,"!rel":""};var f;var c=e.match(ch);if(c)dh(c[0],l,n,t);if(f=e.match(/drawing r:id="(.*?)"/))l["!rel"]=f[1];if(a["!id"][l["!rel"]])l["!chart"]=a["!id"][l["!rel"]];return l}function Dd(e,r,t,a){var n=[he,Rd];n[n.length]=ze("drawing",null,{"r:id":"rId1"});Ia(a,-1,"../drawings/drawing"+(e+1)+".xml",ka.DRAW);if(n.length>2){n[n.length]="</chartsheet>";n[1]=n[1].replace("/>",">")}return n.join("")}function Fd(e,r){e.l+=10;var t=ht(e,r-10);return{name:t}}function Od(e,r,t,a,n,i,s){if(!e)return e;if(!a)a={"!id":{}};var l={"!type":"chart","!chart":null,"!rel":""};var f=[];var c=false;Nr(e,function o(e,a,i){switch(i){case 550:l["!rel"]=e;break;case 651:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;break;case 562:;case 652:;case 669:;case 679:;case 551:;case 552:;case 476:break;case 35:c=true;break;case 36:c=false;break;case 37:f.push(a);break;case 38:f.pop();break;default:if((a||"").indexOf("Begin")>0)f.push(a);else if((a||"").indexOf("End")>0)f.pop();else if(!c||r.WTF)throw new Error("Unexpected record "+i+" "+a);}},r);if(a["!id"][l["!rel"]])l["!chart"]=a["!id"][l["!rel"]];return l}function Pd(e,r,t,a){var n=Lr();Mr(n,"BrtBeginSheet");Mr(n,"BrtEndSheet");return n.end()}var yd=[["allowRefreshQuery",false,"bool"],["autoCompressPictures",true,"bool"],["backupFile",false,"bool"],["checkCompatibility",false,"bool"],["CodeName",""],["date1904",false,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",false,"bool"],["hidePivotFieldList",false,"bool"],["promptedSolutions",false,"bool"],["publishItems",false,"bool"],["refreshAllConnections",false,"bool"],["saveExternalLinkValues",true,"bool"],["showBorderUnselectedTables",true,"bool"],["showInkAnnotation",true,"bool"],["showObjects","all"],["showPivotChartFilter",false,"bool"],["updateLinks","userSet"]];var Nd=[["activeTab",0,"int"],["autoFilterDateGrouping",true,"bool"],["firstSheet",0,"int"],["minimized",false,"bool"],["showHorizontalScroll",true,"bool"],["showSheetTabs",true,"bool"],["showVerticalScroll",true,"bool"],["tabRatio",600,"int"],["visibility","visible"]];var Ld=[];var Md=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];var Ud=[["autoUpdate","false"],["changesSavedWin","false"],["includeHiddenRowCol","true"],["includePrintSettings","true"],["maximized","false"],["minimized","false"],["onlySync","false"],["personalView","false"],["showComments","commIndicator"],["showFormulaBar","true"],["showHorizontalScroll","true"],["showObjects","all"],["showSheetTabs","true"],["showStatusbar","true"],["showVerticalScroll","true"],["tabRatio","600"],["xWindow","0"],["yWindow","0"]];function Wd(e,r){for(var t=0;t!=e.length;++t){var a=e[t];for(var n=0;n!=r.length;++n){var i=r[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":if(typeof a[i[0]]=="string")a[i[0]]=_e(a[i[0]],i[0]);break;case"int":if(typeof a[i[0]]=="string")a[i[0]]=parseInt(a[i[0]],10);break;}}}}function Vd(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":if(typeof e[a[0]]=="string")e[a[0]]=_e(e[a[0]],a[0]);break;case"int":if(typeof e[a[0]]=="string")e[a[0]]=parseInt(e[a[0]],10);break;}}}function Hd(e){Vd(e.WBProps,yd);Vd(e.CalcPr,Md);Wd(e.WBView,Nd);Wd(e.Sheets,Ld);$u.date1904=_e(e.WBProps.date1904,"date1904")}function Xd(e){if(!e.Workbook)return"false";if(!e.Workbook.WBProps)return"false";return _e(e.Workbook.WBProps.date1904)?"true":"false"}var Gd="][*?/\\".split("");function zd(e,r){if(e.length>31){if(r)return false;throw new Error("Sheet names cannot exceed 31 chars")}var t=true;Gd.forEach(function(a){if(e.indexOf(a)==-1)return;if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=false});return t}function jd(e){e.forEach(function(r,t){zd(r);for(var a=0;a<t;++a)if(r==e[a])throw new Error("Duplicate Sheet Name: "+r)})}function Kd(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");jd(e.SheetNames)}var Yd=/<\w+:workbook/;function $d(e,r){if(!e)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""};var a=false,n="xmlns";var i={},s=0;e.replace(ve,function l(f,c){var o=me(f);switch(ge(o[0])){case"<?xml":break;case"<workbook":if(f.match(Yd))n="xmlns"+f.match(/<(\w+):/)[1];t.xmlns=o[n];break;case"</workbook>":break;case"<fileVersion":delete o[0];t.AppVersion=o;break;case"<fileVersion/>":;case"</fileVersion>":break;case"<fileSharing":;case"<fileSharing/>":break;case"<workbookPr":;case"<workbookPr/>":yd.forEach(function(e){if(o[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=_e(o[e[0]],e[0]);break;case"int":t.WBProps[e[0]]=parseInt(o[e[0]],10);break;default:t.WBProps[e[0]]=o[e[0]];}});if(o.codeName)t.WBProps.CodeName=o.codeName;break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":;case"<bookViews>":;case"</bookViews>":break;case"<workbookView":delete o[0];t.WBView.push(o);break;case"</workbookView>":break;case"<sheets":;case"<sheets>":;case"</sheets>":break;case"<sheet":switch(o.state){case"hidden":o.Hidden=1;break;case"veryHidden":o.Hidden=2;break;default:o.Hidden=0;}delete o.state;o.name=ke(De(o.name));delete o[0];t.Sheets.push(o);break;case"</sheet>":break;case"<functionGroups":;case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":;case"</externalReferences>":;case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":;case"<definedNames":a=true;break;case"</definedNames>":a=false;break;case"<definedName":{i={};i.Name=o.name;if(o.comment)i.Comment=o.comment;if(o.localSheetId)i.Sheet=+o.localSheetId;s=c+f.length}break;case"</definedName>":{i.Ref=e.slice(s,c);t.Names.push(i)}break;case"<definedName/>":break;case"<calcPr":delete o[0];t.CalcPr=o;break;case"<calcPr/>":delete o[0];t.CalcPr=o;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":;case"</customWorkbookViews>":;case"<customWorkbookViews":break;case"<customWorkbookView":;case"</customWorkbookView>":break;case"<pivotCaches>":;case"</pivotCaches>":;case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":;case"<smartTagPr/>":break;case"<smartTagTypes":;case"<smartTagTypes>":;case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":;case"<webPublishing/>":break;case"<fileRecoveryPr":;case"<fileRecoveryPr/>":break;case"<webPublishObjects>":;case"<webPublishObjects":;case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":;case"<extLst>":;case"</extLst>":;case"<extLst/>":break;case"<ext":a=true;break;case"</ext>":a=false;break;case"<ArchID":break;case"<AlternateContent":;case"<AlternateContent>":a=true;break;case"</AlternateContent>":a=false;break;case"<revisionPtr":break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in workbook");}return f});if(Ye.main.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);Hd(t);return t}var Qd=ze("workbook",null,{xmlns:Ye.main[0],"xmlns:r":Ye.r});function Jd(e,r){var t=[he];t[t.length]=Qd;var a=e.Workbook&&(e.Workbook.Names||[]).length>0;var n={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){yd.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;n[r[0]]=e.Workbook.WBProps[r[0]]});if(e.Workbook.WBProps.CodeName){n.codeName=e.Workbook.WBProps.CodeName;delete n.CodeName}}t[t.length]=ze("workbookPr",null,n);t[t.length]="<sheets>";var i=e.Workbook&&e.Workbook.Sheets||[];for(var s=0;s!=e.SheetNames.length;++s){var l={name:Ce(e.SheetNames[s].substr(0,31))};l.sheetId=""+(s+1);l["r:id"]="rId"+(s+1);if(i[s])switch(i[s].Hidden){case 1:l.state="hidden";break;case 2:l.state="veryHidden";break;}t[t.length]=ze("sheet",null,l)}t[t.length]="</sheets>";if(a){t[t.length]="<definedNames>";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){var r={name:e.Name};if(e.Comment)r.comment=e.Comment;if(e.Sheet!=null)r.localSheetId=""+e.Sheet;if(!e.Ref)return;t[t.length]=ze("definedName",String(e.Ref),r)});t[t.length]="</definedNames>"}if(t.length>2){t[t.length]="</workbook>";t[1]=t[1].replace("/>",">")}return t.join("")}function Zd(e,r){var t={};t.Hidden=e._R(4);t.iTabID=e._R(4);t.strRelID=At(e,r-8);t.name=ht(e);return t}function qd(e,r){if(!r)r=yr(127);r._W(4,e.Hidden);r._W(4,e.iTabID);Rt(e.strRelID,r);dt(e.name.substr(0,31),r);return r.length>r.l?r.slice(0,r.l):r}function ev(e,r){var t={};var a=e._R(4);t.defaultThemeVersion=e._R(4);var n=r>8?ht(e):"";if(n.length>0)t.CodeName=n;t.autoCompressPictures=!!(a&65536);t.backupFile=!!(a&64);t.checkCompatibility=!!(a&4096);t.date1904=!!(a&1);t.filterPrivacy=!!(a&8);t.hidePivotFieldList=!!(a&1024);t.promptedSolutions=!!(a&16);t.publishItems=!!(a&2048);t.refreshAllConnections=!!(a&262144);t.saveExternalLinkValues=!!(a&128);t.showBorderUnselectedTables=!!(a&4);t.showInkAnnotation=!!(a&32);t.showObjects=["all","placeholders","none"][a>>13&3];t.showPivotChartFilter=!!(a&32768);t.updateLinks=["userSet","never","always"][a>>8&3];return t}function rv(e,r){if(!r)r=yr(72);var t=0;if(e){if(e.filterPrivacy)t|=8}r._W(4,t);r._W(4,0);Bt(e&&e.CodeName||"ThisWorkbook",r);return r.slice(0,r.l)}function tv(e,r){var t={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;return t}function av(e,r,t){var a=e.l+r;var n=e._R(4);var i=e._R(1);var s=e._R(4);var l=It(e);var f=Lu(e,0,t);var c=Ct(e);e.l=a;var o={Name:l,Ptg:f};if(s<268435455)o.Sheet=s;if(c)o.Comment=c;return o}function nv(e,r){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};var a=false,n;if(!r)r={};r.biff=12;var i=[];var s=[[]];s.SheetNames=[];s.XTI=[];Nr(e,function l(e,n,f){switch(f){case 156:s.SheetNames.push(e.name);t.Sheets.push(e);break;case 153:t.WBProps=e;break;case 39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=xu(e.Ptg,null,null,s,r);delete r.SID;delete e.Ptg;i.push(e);break;case 1036:break;case 357:;case 358:;case 355:;case 667:if(!s[0].length)s[0]=[f,e];else s.push([f,e]);s[s.length-1].XTI=[];break;case 362:if(s.length===0){s[0]=[];s[0].XTI=[]}s[s.length-1].XTI=s[s.length-1].XTI.concat(e);s.XTI=s.XTI.concat(e);break;case 361:break;case 2071:;case 534:;case 677:;case 158:;case 157:;case 610:;case 2050:;case 155:;case 548:;case 676:;case 128:;case 665:;case 2128:;case 2125:;case 549:;case 2053:;case 596:;case 2076:;case 2075:;case 2082:;case 397:;case 154:;case 1117:;case 553:;case 2091:break;case 35:a=true;break;case 36:a=false;break;case 37:break;case 38:break;case 16:break;default:if((n||"").indexOf("Begin")>0){}else if((n||"").indexOf("End")>0){}else if(!a||r.WTF)throw new Error("Unexpected record "+f+" "+n);}},r);Hd(t);t.Names=i;t.supbooks=s;return t}function iv(e,r,t){Mr(e,"BrtBeginBundleShs");for(var a=0;a!=r.SheetNames.length;++a){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[a]&&r.Workbook.Sheets[a].Hidden||0;var i={Hidden:n,iTabID:a+1,strRelID:"rId"+(a+1),name:r.SheetNames[a]};Mr(e,"BrtBundleSh",qd(i))}Mr(e,"BrtEndBundleShs")}function sv(e,t){if(!t)t=yr(127);for(var a=0;a!=4;++a)t._W(4,0);dt("SheetJS",t);dt(r.version,t);dt(r.version,t);dt("7262",t);t.length=t.l;return t.length>t.l?t.slice(0,t.l):t}function lv(e,r){if(!r)r=yr(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);var t=120;r._W(1,t);return r.length>r.l?r.slice(0,r.l):r}function fv(e,r,t){if(!r.Workbook||!r.Workbook.Sheets)return;var a=r.Workbook.Sheets;var n=0,i=-1,s=-1;for(;n<a.length;++n){if(!a[n]||!a[n].Hidden&&i==-1)i=n;else if(a[n].Hidden==1&&s==-1)s=n}if(s>i)return;Mr(e,"BrtBeginBookViews");Mr(e,"BrtBookView",lv(i));Mr(e,"BrtEndBookViews")}function cv(e,r){if(!r)r=yr(26);r._W(4,0);r._W(4,1);r._W(4,0);Lt(0,r);
r._W(-4,1023);r._W(1,51);r._W(1,0);return r}function ov(e,r){if(!r)r=yr(1);r._W(1,0);return r}function uv(e,r){var t=Lr();Mr(t,"BrtBeginBook");Mr(t,"BrtFileVersion",sv());Mr(t,"BrtWbProp",rv(e.Workbook&&e.Workbook.WBProps||null));fv(t,e,r);iv(t,e,r);Mr(t,"BrtEndBook");return t.end()}function hv(e,r,t){if(r.slice(-4)===".bin")return nv(e,t);return $d(e,t)}function dv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return bd(e,a,t,n,i,s,l);return uh(e,a,t,n,i,s,l)}function vv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Od(e,a,t,n,i,s,l);return _d(e,a,t,n,i,s,l)}function bv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Ac(e,a,t,n,i,s,l);return Rc(e,a,t,n,i,s,l)}function pv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Ic(e,a,t,n,i,s,l);return xc(e,a,t,n,i,s,l)}function mv(e,r,t,a){if(r.slice(-4)===".bin")return If(e,t,a);return ff(e,t,a)}function gv(e,r,t){return jf(e,t)}function Ev(e,r,t){if(r.slice(-4)===".bin")return rl(e,t);return Js(e,t)}function Sv(e,r,t){if(r.slice(-4)===".bin")return kc(e,t);return vc(e,t)}function kv(e,r,t){if(r.slice(-4)===".bin")return ic(e,r,t);return tc(e,r,t)}function wv(e,r,t){if(r.slice(-4)===".bin")return fc(e,r,t);return lc(e,r,t)}function Bv(e,r,t){return(r.slice(-4)===".bin"?uv:Jd)(e,t)}function Cv(e,r,t,a,n){return(r.slice(-4)===".bin"?Id:Rh)(e,t,a,n)}function Tv(e,r,t,a,n){return(r.slice(-4)===".bin"?Pd:Dd)(e,t,a,n)}function Iv(e,r,t){return(r.slice(-4)===".bin"?Lf:of)(e,t)}function xv(e,r,t){return(r.slice(-4)===".bin"?nl:qs)(e,t)}function Av(e,r,t){return(r.slice(-4)===".bin"?wc:pc)(e,t)}var Rv=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g;var _v=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;var Dv=function(e){return String.fromCharCode(e)};function Fv(e,r){var t=e.split(/\s+/);var a=[];if(!r)a[0]=t[0];if(t.length===1)return a;var n=e.match(Rv),i,s,l,f;if(n)for(f=0;f!=n.length;++f){i=n[f].match(_v);if((s=i[1].indexOf(":"))===-1)a[i[1]]=i[2].substr(1,i[2].length-2);else{if(i[1].substr(0,6)==="xmlns:")l="xmlns"+i[1].substr(6);else l=i[1].substr(s+1);a[l]=i[2].substr(1,i[2].length-2)}}return a}function Ov(e){var r=e.split(/\s+/);var t={};if(r.length===1)return t;var a=e.match(Rv),n,i,s,l;if(a)for(l=0;l!=a.length;++l){n=a[l].match(_v);if((i=n[1].indexOf(":"))===-1)t[n[1]]=n[2].substr(1,n[2].length-2);else{if(n[1].substr(0,6)==="xmlns:")s="xmlns"+n[1].substr(6);else s=n[1].substr(i+1);t[s]=n[2].substr(1,n[2].length-2)}}return t}function Pv(e,r){var t=R[e]||ke(e);if(t==="General")return x._general(r);return x.format(t,r)}function yv(e,r,t,a){var n=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=_e(a);break;case"i2":;case"int":n=parseInt(a,10);break;case"r4":;case"float":n=parseFloat(a);break;case"date":;case"dateTime.tz":n=K(a);break;case"i8":;case"string":;case"fixed":;case"uuid":;case"bin.base64":break;default:throw new Error("bad custprop:"+t[0]);}e[ke(r)]=n}function Nv(e,r,t){if(e.t==="z")return;if(!t||t.cellText!==false)try{if(e.t==="e"){e.w=e.w||Mt[e.v]}else if(r==="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=x._general_int(e.v);else e.w=x._general_num(e.v)}else e.w=x._general(e.v)}else e.w=Pv(r||"General",e.v)}catch(a){if(t.WTF)throw a}try{var n=R[r]||r||"General";if(t.cellNF)e.z=n;if(t.cellDates&&e.t=="n"&&x.is_date(n)){var i=x.parse_date_code(e.v);if(i){e.t="d";e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u)}}}catch(a){if(t.WTF)throw a}}function Lv(e,r,t){if(t.cellStyles){if(r.Interior){var a=r.Interior;if(a.Pattern)a.patternType=Jl[a.Pattern]||a.Pattern}}e[r.ID]=r}function Mv(e,r,t,a,n,i,s,l,f,c){var o="General",u=a.StyleID,h={};c=c||{};var d=[];var v=0;if(u===undefined&&l)u=l.StyleID;if(u===undefined&&s)u=s.StyleID;while(i[u]!==undefined){if(i[u].nf)o=i[u].nf;if(i[u].Interior)d.push(i[u].Interior);if(!i[u].Parent)break;u=i[u].Parent}switch(t.Type){case"Boolean":a.t="b";a.v=_e(e);break;case"String":a.t="s";a.r=Ae(ke(e));a.v=e.indexOf("<")>-1?ke(r):a.r;break;case"DateTime":if(e.slice(-1)!="Z")e+="Z";a.v=(K(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3);if(a.v!==a.v)a.v=ke(e);else if(a.v<60)a.v=a.v-1;if(!o||o=="General")o="yyyy-mm-dd";case"Number":if(a.v===undefined)a.v=+e;if(!a.t)a.t="n";break;case"Error":a.t="e";a.v=Ut[e];if(c.cellText!==false)a.w=e;break;default:a.t="s";a.v=Ae(r||e);break;}Nv(a,o,c);if(c.cellFormula!==false){if(a.Formula){var b=ke(a.Formula);if(b.charCodeAt(0)==61)b=b.substr(1);a.f=_c(b,n);delete a.Formula;if(a.ArrayRange=="RC")a.F=_c("RC:RC",n);else if(a.ArrayRange){a.F=_c(a.ArrayRange,n);f.push([st(a.F),a.F])}}else{for(v=0;v<f.length;++v)if(n.r>=f[v][0].s.r&&n.r<=f[v][0].e.r)if(n.c>=f[v][0].s.c&&n.c<=f[v][0].e.c)a.F=f[v][1]}}if(c.cellStyles){d.forEach(function(e){if(!h.patternType&&e.patternType)h.patternType=e.patternType});a.s=h}if(a.StyleID!==undefined)a.ixfe=a.StyleID}function Uv(e){e.t=e.v||"";e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");e.v=e.w=e.ixfe=undefined}function Wv(e){if(E&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e==="string")return e;throw new Error("Bad input format: expected Buffer or string")}var Vv=/<(\/?)([^\s?>!\/:]*:|)([^\s?>]*[^\s?>\/])[^>]*>/gm;function Hv(e,r){var t=r||{};A(x);var a=v(Wv(e));if(t.type=="binary"||t.type=="array"||t.type=="base64"){if(typeof cptable!=="undefined")a=cptable.utils.decode(65001,u(a));else a=De(a)}var n=a.slice(0,1024).toLowerCase(),i=false;if(n.indexOf("<?xml")==-1)["html","table","head","meta","script","style","div"].forEach(function(e){if(n.indexOf("<"+e)>=0)i=true});if(i)return Tb.to_workbook(a,t);var s;var l=[],f;if(p!=null&&t.dense==null)t.dense=p;var c={},o=[],h=t.dense?[]:{},d="";var b={},m={},g={};var E=Fv('<Data ss:Type="String">'),S=0;var k=0,w=0;var B={s:{r:2e6,c:2e6},e:{r:0,c:0}};var C={},T={};var I="",_=0;var D=[];var F={},O={},P=0,y=[];var N=[],L={};var M=[],U,W=false;var V=[];var H=[],X={},G=0,z=0;var j={Sheets:[],WBProps:{date1904:false}},K={};Vv.lastIndex=0;a=a.replace(/<!--([\s\S]*?)-->/gm,"");while(s=Vv.exec(a))switch(s[3]){case"Data":if(l[l.length-1][1])break;if(s[1]==="/")Mv(a.slice(S,s.index),I,E,l[l.length-1][0]=="Comment"?L:m,{c:k,r:w},C,M[k],g,V,t);else{I="";E=Fv(s[0]);S=s.index+s[0].length}break;case"Cell":if(s[1]==="/"){if(N.length>0)m.c=N;if((!t.sheetRows||t.sheetRows>w)&&m.v!==undefined){if(t.dense){if(!h[w])h[w]=[];h[w][k]=m}else h[Qr(k)+jr(w)]=m}if(m.HRef){m.l={Target:m.HRef};if(m.HRefScreenTip)m.l.Tooltip=m.HRefScreenTip;delete m.HRef;delete m.HRefScreenTip}if(m.MergeAcross||m.MergeDown){G=k+(parseInt(m.MergeAcross,10)|0);z=w+(parseInt(m.MergeDown,10)|0);D.push({s:{c:k,r:w},e:{c:G,r:z}})}if(!t.sheetStubs){if(m.MergeAcross)k=G+1;else++k}else if(m.MergeAcross||m.MergeDown){for(var Y=k;Y<=G;++Y){for(var Q=w;Q<=z;++Q){if(Y>k||Q>w){if(t.dense){if(!h[Q])h[Q]=[];h[Q][Y]={t:"z"}}else h[Qr(Y)+jr(Q)]={t:"z"}}}}k=G+1}else++k}else{m=Ov(s[0]);if(m.Index)k=+m.Index-1;if(k<B.s.c)B.s.c=k;if(k>B.e.c)B.e.c=k;if(s[0].slice(-2)==="/>")++k;N=[]}break;case"Row":if(s[1]==="/"||s[0].slice(-2)==="/>"){if(w<B.s.r)B.s.r=w;if(w>B.e.r)B.e.r=w;if(s[0].slice(-2)==="/>"){g=Fv(s[0]);if(g.Index)w=+g.Index-1}k=0;++w}else{g=Fv(s[0]);if(g.Index)w=+g.Index-1;X={};if(g.AutoFitHeight=="0"||g.Height){X.hpx=parseInt(g.Height,10);X.hpt=$l(X.hpx);H[w]=X}if(g.Hidden=="1"){X.hidden=true;H[w]=X}}break;case"Worksheet":if(s[1]==="/"){if((f=l.pop())[0]!==s[3])throw new Error("Bad state: "+f.join("|"));o.push(d);if(B.s.r<=B.e.r&&B.s.c<=B.e.c)h["!ref"]=it(B);if(D.length)h["!merges"]=D;if(M.length>0)h["!cols"]=M;if(H.length>0)h["!rows"]=H;c[d]=h}else{B={s:{r:2e6,c:2e6},e:{r:0,c:0}};w=k=0;l.push([s[3],false]);f=Fv(s[0]);d=ke(f.Name);h=t.dense?[]:{};D=[];V=[];H=[];K={name:d,Hidden:0};j.Sheets.push(K)}break;case"Table":if(s[1]==="/"){if((f=l.pop())[0]!==s[3])throw new Error("Bad state: "+f.join("|"))}else if(s[0].slice(-2)=="/>")break;else{b=Fv(s[0]);l.push([s[3],false]);M=[];W=false}break;case"Style":if(s[1]==="/")Lv(C,T,t);else T=Fv(s[0]);break;case"NumberFormat":T.nf=ke(Fv(s[0]).Format||"General");if(R[T.nf])T.nf=R[T.nf];for(var J=0;J!=392;++J)if(x._table[J]==T.nf)break;if(J==392)for(J=57;J!=392;++J)if(x._table[J]==null){x.load(T.nf,J);break}break;case"Column":if(l[l.length-1][0]!=="Table")break;U=Fv(s[0]);if(U.Hidden){U.hidden=true;delete U.Hidden}if(U.Width)U.wpx=parseInt(U.Width,10);if(!W&&U.wpx>10){W=true;Ll=Pl;for(var Z=0;Z<M.length;++Z)if(M[Z])jl(M[Z])}if(W)jl(U);M[U.Index-1||M.length]=U;for(var q=0;q<+U.Span;++q)M[M.length]=$(U);break;case"NamedRange":if(!j.Names)j.Names=[];var ee=me(s[0]);var re={Name:ee.Name,Ref:_c(ee.RefersTo.substr(1))};if(j.Sheets.length>0)re.Sheet=j.Sheets.length-1;j.Names.push(re);break;case"NamedCell":break;case"B":break;case"I":break;case"U":break;case"S":break;case"Sub":break;case"Sup":break;case"Span":break;case"Border":break;case"Alignment":break;case"Borders":break;case"Font":if(s[0].slice(-2)==="/>")break;else if(s[1]==="/")I+=a.slice(_,s.index);else _=s.index+s[0].length;break;case"Interior":if(!t.cellStyles)break;T.Interior=Fv(s[0]);break;case"Protection":break;case"Author":;case"Title":;case"Description":;case"Created":;case"Keywords":;case"Subject":;case"Category":;case"Company":;case"LastAuthor":;case"LastSaved":;case"LastPrinted":;case"Version":;case"Revision":;case"TotalTime":;case"HyperlinkBase":;case"Manager":;case"ContentStatus":;case"Identifier":;case"Language":;case"AppName":if(s[0].slice(-2)==="/>")break;else if(s[1]==="/")Qa(F,s[3],a.slice(P,s.index));else P=s.index+s[0].length;break;case"Paragraphs":break;case"Styles":;case"Workbook":if(s[1]==="/"){if((f=l.pop())[0]!==s[3])throw new Error("Bad state: "+f.join("|"))}else l.push([s[3],false]);break;case"Comment":if(s[1]==="/"){if((f=l.pop())[0]!==s[3])throw new Error("Bad state: "+f.join("|"));Uv(L);N.push(L)}else{l.push([s[3],false]);f=Fv(s[0]);L={a:f.Author}}break;case"AutoFilter":if(s[1]==="/"){if((f=l.pop())[0]!==s[3])throw new Error("Bad state: "+f.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/"){var te=Fv(s[0]);h["!autofilter"]={ref:_c(te.Range).replace(/\$/g,"")};l.push([s[3],true])}break;case"Name":break;case"ComponentOptions":;case"DocumentProperties":;case"CustomDocumentProperties":;case"OfficeDocumentSettings":;case"PivotTable":;case"PivotCache":;case"Names":;case"MapInfo":;case"PageBreaks":;case"QueryTable":;case"DataValidation":;case"Sorting":;case"Schema":;case"data":;case"ConditionalFormatting":;case"SmartTagType":;case"SmartTags":;case"ExcelWorkbook":;case"WorkbookOptions":;case"WorksheetOptions":if(s[1]==="/"){if((f=l.pop())[0]!==s[3])throw new Error("Bad state: "+f.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/")l.push([s[3],true]);break;default:if(l.length==0&&s[3]=="document")return _b(a,t);if(l.length==0&&s[3]=="UOF")return _b(a,t);var ae=true;switch(l[l.length-1][0]){case"OfficeDocumentSettings":switch(s[3]){case"AllowPNG":break;case"RemovePersonalInformation":break;case"DownloadComponents":break;case"LocationOfComponents":break;case"Colors":break;case"Color":break;case"Index":break;case"RGB":break;case"PixelsPerInch":break;case"TargetScreenSize":break;case"ReadOnlyRecommended":break;default:ae=false;}break;case"ComponentOptions":switch(s[3]){case"Toolbar":break;case"HideOfficeLogo":break;case"SpreadsheetAutoFit":break;case"Label":break;case"Caption":break;case"MaxHeight":break;case"MaxWidth":break;case"NextSheetNumber":break;default:ae=false;}break;case"ExcelWorkbook":switch(s[3]){case"Date1904":j.WBProps.date1904=true;break;case"WindowHeight":break;case"WindowWidth":break;case"WindowTopX":break;case"WindowTopY":break;case"TabRatio":break;case"ProtectStructure":break;case"ProtectWindows":break;case"ActiveSheet":break;case"DisplayInkNotes":break;case"FirstVisibleSheet":break;case"SupBook":break;case"SheetName":break;case"SheetIndex":break;case"SheetIndexFirst":break;case"SheetIndexLast":break;case"Dll":break;case"AcceptLabelsInFormulas":break;case"DoNotSaveLinkValues":break;case"Iteration":break;case"MaxIterations":break;case"MaxChange":break;case"Path":break;case"Xct":break;case"Count":break;case"SelectedSheets":break;case"Calculation":break;case"Uncalced":break;case"StartupPrompt":break;case"Crn":break;case"ExternName":break;case"Formula":break;case"ColFirst":break;case"ColLast":break;case"WantAdvise":break;case"Boolean":break;case"Error":break;case"Text":break;case"OLE":break;case"NoAutoRecover":break;case"PublishObjects":break;case"DoNotCalculateBeforeSave":break;case"Number":break;case"RefModeR1C1":break;case"EmbedSaveSmartTags":break;default:ae=false;}break;case"WorkbookOptions":switch(s[3]){case"OWCVersion":break;case"Height":break;case"Width":break;default:ae=false;}break;case"WorksheetOptions":switch(s[3]){case"Visible":if(s[0].slice(-2)==="/>"){}else if(s[1]==="/")switch(a.slice(P,s.index)){case"SheetHidden":K.Hidden=1;break;case"SheetVeryHidden":K.Hidden=2;break;}else P=s.index+s[0].length;break;case"Header":if(!h["!margins"])Zu(h["!margins"]={},"xlml");h["!margins"].header=me(s[0]).Margin;break;case"Footer":if(!h["!margins"])Zu(h["!margins"]={},"xlml");h["!margins"].footer=me(s[0]).Margin;break;case"PageMargins":var ne=me(s[0]);if(!h["!margins"])Zu(h["!margins"]={},"xlml");if(ne.Top)h["!margins"].top=ne.Top;if(ne.Left)h["!margins"].left=ne.Left;if(ne.Right)h["!margins"].right=ne.Right;if(ne.Bottom)h["!margins"].bottom=ne.Bottom;break;case"DisplayRightToLeft":if(!j.Views)j.Views=[];if(!j.Views[0])j.Views[0]={};j.Views[0].RTL=true;break;case"Unsynced":break;case"Print":break;case"Panes":break;case"Scale":break;case"Pane":break;case"Number":break;case"Layout":break;case"PageSetup":break;case"Selected":break;case"ProtectObjects":break;case"EnableSelection":break;case"ProtectScenarios":break;case"ValidPrinterInfo":break;case"HorizontalResolution":break;case"VerticalResolution":break;case"NumberofCopies":break;case"ActiveRow":break;case"ActiveCol":break;case"ActivePane":break;case"TopRowVisible":break;case"TopRowBottomPane":break;case"LeftColumnVisible":break;case"LeftColumnRightPane":break;case"FitToPage":break;case"RangeSelection":break;case"PaperSizeIndex":break;case"PageLayoutZoom":break;case"PageBreakZoom":break;case"FilterOn":break;case"DoNotDisplayGridlines":break;case"SplitHorizontal":break;case"SplitVertical":break;case"FreezePanes":break;case"FrozenNoSplit":break;case"FitWidth":break;case"FitHeight":break;case"CommentsLayout":break;case"Zoom":break;case"LeftToRight":break;case"Gridlines":break;case"AllowSort":break;case"AllowFilter":break;case"AllowInsertRows":break;case"AllowDeleteRows":break;case"AllowInsertCols":break;case"AllowDeleteCols":break;case"AllowInsertHyperlinks":break;case"AllowFormatCells":break;case"AllowSizeCols":break;case"AllowSizeRows":break;case"NoSummaryRowsBelowDetail":break;case"TabColorIndex":break;case"DoNotDisplayHeadings":break;case"ShowPageLayoutZoom":break;case"NoSummaryColumnsRightDetail":break;case"BlackAndWhite":break;case"DoNotDisplayZeros":break;case"DisplayPageBreak":break;case"RowColHeadings":break;case"DoNotDisplayOutline":break;case"NoOrientation":break;case"AllowUsePivotTables":break;case"ZeroHeight":break;case"ViewableRange":break;case"Selection":break;case"ProtectContents":break;default:ae=false;}break;case"PivotTable":;case"PivotCache":switch(s[3]){case"ImmediateItemsOnDrop":break;case"ShowPageMultipleItemLabel":break;case"CompactRowIndent":break;case"Location":break;case"PivotField":break;case"Orientation":break;case"LayoutForm":break;case"LayoutSubtotalLocation":break;case"LayoutCompactRow":break;case"Position":break;case"PivotItem":break;case"DataType":break;case"DataField":break;case"SourceName":break;case"ParentField":break;case"PTLineItems":break;case"PTLineItem":break;case"CountOfSameItems":break;case"Item":break;case"ItemType":break;case"PTSource":break;case"CacheIndex":break;case"ConsolidationReference":break;case"FileName":break;case"Reference":break;case"NoColumnGrand":break;case"NoRowGrand":break;case"BlankLineAfterItems":break;case"Hidden":break;case"Subtotal":break;case"BaseField":break;case"MapChildItems":break;case"Function":break;case"RefreshOnFileOpen":break;case"PrintSetTitles":break;case"MergeLabels":break;case"DefaultVersion":break;case"RefreshName":break;case"RefreshDate":break;case"RefreshDateCopy":break;case"VersionLastRefresh":break;case"VersionLastUpdate":break;case"VersionUpdateableMin":break;case"VersionRefreshableMin":break;case"Calculation":break;default:ae=false;}break;case"PageBreaks":switch(s[3]){case"ColBreaks":break;case"ColBreak":break;case"RowBreaks":break;case"RowBreak":break;case"ColStart":break;case"ColEnd":break;case"RowEnd":break;default:ae=false;}break;case"AutoFilter":switch(s[3]){case"AutoFilterColumn":break;case"AutoFilterCondition":break;case"AutoFilterAnd":break;case"AutoFilterOr":break;default:ae=false;}break;case"QueryTable":switch(s[3]){case"Id":break;case"AutoFormatFont":break;case"AutoFormatPattern":break;case"QuerySource":break;case"QueryType":break;case"EnableRedirections":break;case"RefreshedInXl9":break;case"URLString":break;case"HTMLTables":break;case"Connection":break;case"CommandText":break;case"RefreshInfo":break;case"NoTitles":break;case"NextId":break;case"ColumnInfo":break;case"OverwriteCells":break;case"DoNotPromptForFile":break;case"TextWizardSettings":break;case"Source":break;case"Number":break;case"Decimal":break;case"ThousandSeparator":break;case"TrailingMinusNumbers":break;case"FormatSettings":break;case"FieldType":break;case"Delimiters":break;case"Tab":break;case"Comma":break;case"AutoFormatName":break;case"VersionLastEdit":break;case"VersionLastRefresh":break;default:ae=false;}break;case"Sorting":;case"ConditionalFormatting":;case"DataValidation":switch(s[3]){case"Range":break;case"Type":break;case"Min":break;case"Max":break;case"Sort":break;case"Descending":break;case"Order":break;case"CaseSensitive":break;case"Value":break;case"ErrorStyle":break;case"ErrorMessage":break;case"ErrorTitle":break;case"CellRangeList":break;case"InputMessage":break;case"InputTitle":break;case"ComboHide":break;case"InputHide":break;case"Condition":break;case"Qualifier":break;case"UseBlank":break;case"Value1":break;case"Value2":break;case"Format":break;default:ae=false;}break;case"MapInfo":;case"Schema":;case"data":switch(s[3]){case"Map":break;case"Entry":break;case"Range":break;case"XPath":break;case"Field":break;case"XSDType":break;case"FilterOn":break;case"Aggregate":break;case"ElementType":break;case"AttributeType":break;case"schema":;case"element":;case"complexType":;case"datatype":;case"all":;case"attribute":;case"extends":break;case"row":break;default:ae=false;}break;case"SmartTags":break;default:ae=false;break;}if(ae)break;if(!l[l.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+l.join("|");if(l[l.length-1][0]==="CustomDocumentProperties"){if(s[0].slice(-2)==="/>")break;else if(s[1]==="/")yv(O,s[3],y,a.slice(P,s.index));else{y=s;P=s.index+s[0].length}break}if(t.WTF)throw"Unrecognized tag: "+s[3]+"|"+l.join("|");}var ie={};if(!t.bookSheets&&!t.bookProps)ie.Sheets=c;ie.SheetNames=o;ie.Workbook=j;ie.SSF=x.get_table();ie.Props=F;ie.Custprops=O;return ie}function Xv(e,r){jb(r=r||{});switch(r.type||"base64"){case"base64":return Hv(g.decode(e),r);case"binary":;case"buffer":;case"file":return Hv(e,r);case"array":return Hv(B(e),r);}}function Gv(e,r){var t=[];if(e.Props)t.push(Ja(e.Props,r));if(e.Custprops)t.push(Za(e.Props,e.Custprops,r));return t.join("")}function zv(e,r){return""}function jv(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];r.cellXfs.forEach(function(e,r){var a=[];a.push(ze("NumberFormat",null,{"ss:Format":Ce(x._table[e.numFmtId])}));t.push(ze("Style",a.join(""),{"ss:ID":"s"+(21+r)}))});return ze("Styles",t.join(""))}function Kv(e,r,t,a){if(!e)return"";var n=[];if(e["!margins"]){n.push("<PageSetup>");if(e["!margins"].header)n.push(ze("Header",null,{"x:Margin":e["!margins"].header}));if(e["!margins"].footer)n.push(ze("Footer",null,{"x:Margin":e["!margins"].footer}));n.push(ze("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"}));n.push("</PageSetup>")}if(a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t]){if(a.Workbook.Sheets[t].Hidden)n.push(ze("Visible",a.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<t;++i)if(a.Workbook.Sheets[i]&&!a.Workbook.Sheets[i].Hidden)break;if(i==t)n.push("<Selected/>")}}if(((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL)n.push("<DisplayRightToLeft/>");if(e["!protect"]){n.push(Xe("ProtectContents","True"));if(e["!protect"].objects)n.push(Xe("ProtectObjects","True"));if(e["!protect"].scenarios)n.push(Xe("ProtectScenarios","True"));if(e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells)n.push(Xe("EnableSelection","NoSelection"));else if(e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells)n.push(Xe("EnableSelection","UnlockedCells"));[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(r){if(e["!protect"][r[0]])n.push("<"+r[1]+"/>")})}if(n.length==0)return"";return ze("WorksheetOptions",n.join(""),{xmlns:$e.x})}function Yv(e){return e.map(function(e){var r=Re(e.t||"");var t=ze("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return ze("Comment",t,{"ss:Author":e.a})}).join("")}function $v(e,r,t,a,n,i,s){if(!e||e.v==undefined&&e.f==undefined)return"<Cell></Cell>";var l={};if(e.f)l["ss:Formula"]="="+Ce(Fc(e.f,s));if(e.F&&e.F.substr(0,r.length)==r){var f=et(e.F.substr(r.length+1));l["ss:ArrayRange"]="RC:R"+(f.r==s.r?"":"["+(f.r-s.r)+"]")+"C"+(f.c==s.c?"":"["+(f.c-s.c)+"]")}if(e.l&&e.l.Target){l["ss:HRef"]=Ce(e.l.Target);if(e.l.Tooltip)l["x:HRefScreenTip"]=Ce(e.l.Tooltip)}if(t["!merges"]){var c=t["!merges"];for(var o=0;o!=c.length;++o){if(c[o].s.c!=s.c||c[o].s.r!=s.r)continue;if(c[o].e.c>c[o].s.c)l["ss:MergeAcross"]=c[o].e.c-c[o].s.c;if(c[o].e.r>c[o].s.r)l["ss:MergeDown"]=c[o].e.r-c[o].s.r}}var u="",h="";switch(e.t){case"z":return"";case"n":u="Number";h=String(e.v);break;case"b":u="Boolean";h=e.v?"1":"0";break;case"e":u="Error";h=Mt[e.v];break;case"d":u="DateTime";h=new Date(e.v).toISOString();if(e.z==null)e.z=e.z||x._table[14];break;case"s":u="String";h=Ce(e.v||"");break;}var d=qu(a.cellXfs,e,a);l["ss:StyleID"]="s"+(21+d);var v=e.v!=null?h:"";var b='<Data ss:Type="'+u+'">'+v+"</Data>";if((e.c||[]).length>0)b+=Yv(e.c);return ze("Cell",b,l)}function Qv(e,r){var t='<Row ss:Index="'+(e+1)+'"';if(r){if(r.hpt&&!r.hpx)r.hpx=Ql(r.hpt);if(r.hpx)t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"';if(r.hidden)t+=' ss:Hidden="1"'}return t+">"}function Jv(e,r,t,a){if(!e["!ref"])return"";var n=st(e["!ref"]);var i=e["!merges"]||[],s=0;var l=[];if(e["!cols"])e["!cols"].forEach(function(e,r){jl(e);var t=!!e.width;var a=Ju(r,e);var n={"ss:Index":r+1};if(t)n["ss:Width"]=Ml(a.width);if(e.hidden)n["ss:Hidden"]="1";l.push(ze("Column",null,n))});var f=Array.isArray(e);for(var c=n.s.r;c<=n.e.r;++c){var o=[Qv(c,(e["!rows"]||[])[c])];for(var u=n.s.c;u<=n.e.c;++u){var h=false;for(s=0;s!=i.length;++s){if(i[s].s.c>u)continue;if(i[s].s.r>c)continue;if(i[s].e.c<u)continue;if(i[s].e.r<c)continue;if(i[s].s.c!=u||i[s].s.r!=c)h=true;break}if(h)continue;var d={r:c,c:u};var v=rt(d),b=f?(e[c]||[])[u]:e[v];o.push($v(b,v,e,r,t,a,d))}o.push("</Row>");if(o.length>2)l.push(o.join(""))}return l.join("")}function Zv(e,r,t){var a=[];var n=t.SheetNames[e];var i=t.Sheets[n];var s=i?Jv(i,r,e,t):"";if(s.length>0)a.push("<Table>"+s+"</Table>");a.push(Kv(i,r,e,t));return a.join("")}function qv(e,r){if(!r)r={};if(!e.SSF)e.SSF=x.get_table();if(e.SSF){A(x);x.load_table(e.SSF);r.revssf=M(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF;r.cellXfs=[];qu(r.cellXfs,{},{revssf:{General:0}})}var t=[];t.push(Gv(e,r));t.push(zv(e,r));t.push("");for(var a=0;a<e.SheetNames.length;++a)t.push(ze("Worksheet",Zv(a,r,e),{"ss:Name":Ce(e.SheetNames[a])}));t[2]=jv(e,r);return he+ze("Workbook",t.join(""),{xmlns:$e.ss,"xmlns:o":$e.o,"xmlns:x":$e.x,"xmlns:ss":$e.ss,"xmlns:dt":$e.dt,"xmlns:html":$e.html})}function eb(e){var r={};var t=e.content;t.l=28;r.AnsiUserType=t._R(0,"lpstr-ansi");r.AnsiClipboardFormat=zt(t);if(t.length-t.l<=4)return r;var a=t._R(4);if(a==0||a>40)return r;t.l-=4;r.Reserved1=t._R(0,"lpstr-ansi");if(t.length-t.l<=4)return r;a=t._R(4);if(a!==1907505652)return r;r.UnicodeClipboardFormat=jt(t);a=t._R(4);if(a==0||a>40)return r;t.l-=4;r.Reserved2=t._R(0,"lpwstr")}function rb(e,r,t,a){var n=t;var i=[];var s=r.slice(r.l,r.l+n);if(a&&a.enc&&a.enc.insitu)switch(e.n){case"BOF":;case"FilePass":;case"FileLock":;case"InterfaceHdr":;case"RRDInfo":;case"RRDHead":;case"UsrExcl":break;default:if(s.length===0)break;a.enc.insitu(s);}i.push(s);r.l+=n;var l=ob[Sr(r,r.l)];var f=0;while(l!=null&&l.n.slice(0,8)==="Continue"){n=Sr(r,r.l+2);f=r.l+4;if(l.n=="ContinueFrt")f+=4;else if(l.n.slice(0,11)=="ContinueFrt")f+=12;i.push(r.slice(f,r.l+4+n));r.l+=4+n;l=ob[Sr(r,r.l)]}var c=C(i);Or(c,0);var o=0;c.lens=[];for(var u=0;u<i.length;++u){c.lens.push(o);o+=i[u].length}return e.f(c,c.length,a)}function tb(e,r,t){if(e.t==="z")return;if(!e.XF)return;var a=0;try{a=e.z||e.XF.numFmtId||0;if(r.cellNF)e.z=x._table[a]}catch(n){if(r.WTF)throw n}if(!r||r.cellText!==false)try{if(e.t==="e"){e.w=e.w||Mt[e.v]}else if(a===0||a=="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=x._general_int(e.v);else e.w=x._general_num(e.v)}else e.w=x._general(e.v)}else e.w=x.format(a,e.v,{date1904:!!t})}catch(n){if(r.WTF)throw n}if(r.cellDates&&a&&e.t=="n"&&x.is_date(x._table[a]||String(a))){var i=x.parse_date_code(e.v);if(i){e.t="d";e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u)}}}function ab(e,r,t){return{v:e,ixfe:r,t:t}}function nb(e,r){var t={opts:{}};var a={};if(p!=null&&r.dense==null)r.dense=p;var n=r.dense?[]:{};var i={};var s={};var l=null;var f=[];var o="";var u={};var h,d="",v,b,m,g;var E={};var S=[];var k;var w;var B=true;var C=[];var T=[];var I={Sheets:[],WBProps:{date1904:false},Views:[{}]},A={};var R=function Ee(e){if(e<8)return ha[e];if(e<64)return T[e-8]||ha[e];return ha[e]};var _=function Se(e,r,t){var a=r.XF.data;if(!a||!a.patternType||!t||!t.cellStyles)return;r.s={};r.s.patternType=a.patternType;var n;if(n=_l(R(a.icvFore))){r.s.fgColor={rgb:n}}if(n=_l(R(a.icvBack))){r.s.bgColor={rgb:n}}};var D=function ke(e,r,t){if(X>1)return;if(!B)return;if(t.cellStyles&&r.XF&&r.XF.data)_(e,r,t);delete r.ixfe;delete r.XF;h=e;d=rt(e);if(s.s){if(e.r<s.s.r)s.s.r=e.r;if(e.c<s.s.c)s.s.c=e.c}if(s.e){if(e.r+1>s.e.r)s.e.r=e.r+1;if(e.c+1>s.e.c)s.e.c=e.c+1}if(t.cellFormula&&r.f){for(var a=0;a<S.length;++a){if(S[a][0].s.c>e.c)continue;if(S[a][0].s.r>e.r)continue;if(S[a][0].e.c<e.c)continue;if(S[a][0].e.r<e.r)continue;r.F=it(S[a][0]);if(S[a][0].s.c!=e.c)delete r.f;if(S[a][0].s.r!=e.r)delete r.f;if(r.f)r.f=""+xu(S[a][1],s,e,V,F);break}}if(t.sheetRows&&h.r>=t.sheetRows)B=false;else{if(t.dense){if(!n[e.r])n[e.r]=[];n[e.r][e.c]=r}else n[d]=r}};var F={enc:false,sbcch:0,snames:[],sharedf:E,arrayf:S,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};if(r.password)F.password=r.password;var O;var P=[];var y=[];var N=[],L=[];var M=0,U=0;var W=false;var V=[];V.SheetNames=F.snames;V.sharedf=F.sharedf;V.arrayf=F.arrayf;V.names=[];V.XTI=[];var H="";var X=0;var G=0,z=[];var j=[];var K;F.codepage=1200;c(1200);var Y=false;while(e.l<e.length-1){var $=e.l;var Q=e._R(2);if(Q===0&&H==="EOF")break;var J=e.l===e.length?0:e._R(2),Z;var q=ob[Q];if(q&&q.f){if(r.bookSheets){if(H==="BoundSheet8"&&q.n!=="BoundSheet8")break}H=q.n;if(q.r===2||q.r==12){var ee=e._R(2);J-=2;if(!F.enc&&ee!==Q)throw new Error("rt mismatch: "+ee+"!="+Q);if(q.r==12){e.l+=10;J-=10}}var re;if(q.n==="EOF")re=q.f(e,J,F);else re=rb(q,e,J,F);var te=q.n;switch(te){case"Date1904":t.opts.Date1904=I.WBProps.date1904=re;break;case"WriteProtect":t.opts.WriteProtect=true;break;case"FilePass":if(!F.enc)e.l=0;F.enc=re;if(F.WTF)console.error(re);if(!r.password)throw new Error("File is password-protected");if(re.valid==null)throw new Error("Encryption scheme unsupported");if(!re.valid)throw new Error("Password is incorrect");break;case"WriteAccess":F.lastuser=re;break;case"FileSharing":break;case"CodePage":switch(re){case 21010:re=1200;break;case 32768:re=1e4;break;case 32769:re=1252;break;}c(F.codepage=re);Y=true;break;case"RRTabId":F.rrtabid=re;break;case"WinProtect":F.winlocked=re;break;case"Template":break;case"RefreshAll":t.opts.RefreshAll=re;break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":break;case"CalcCount":t.opts.CalcCount=re;break;case"CalcDelta":t.opts.CalcDelta=re;break;case"CalcIter":t.opts.CalcIter=re;break;case"CalcMode":t.opts.CalcMode=re;break;case"CalcPrecision":t.opts.CalcPrecision=re;break;case"CalcSaveRecalc":t.opts.CalcSaveRecalc=re;break;case"CalcRefMode":F.CalcRefMode=re;break;case"Uncalced":break;case"ForceFullCalculation":t.opts.FullCalc=re;break;case"WsBool":if(re.fDialog)n["!type"]="dialog";break;case"XF":C.push(re);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":V.push([re]);V[V.length-1].XTI=[];break;case"ExternName":V[V.length-1].push(re);break;case"Index":break;case"Lbl":K={Name:re.Name,Ref:xu(re.rgce,s,null,V,F)};if(re.itab>0)K.Sheet=re.itab-1;V.names.push(K);if(!V[0]){V[0]=[];V[0].XTI=[]}V[V.length-1].push(re);if(re.Name=="_xlnm._FilterDatabase"&&re.itab>0)if(re.rgce&&re.rgce[0]&&re.rgce[0][0]&&re.rgce[0][0][0]=="PtgArea3d")j[re.itab-1]={ref:it(re.rgce[0][0][1][2])};break;case"ExternCount":F.ExternCount=re;break;case"ExternSheet":if(V.length==0){V[0]=[];V[0].XTI=[]}V[V.length-1].XTI=V[V.length-1].XTI.concat(re);V.XTI=V.XTI.concat(re);break;case"NameCmt":if(F.biff<8)break;if(K!=null)K.Comment=re[1];break;case"Protect":n["!protect"]=re;break;case"Password":if(re!==0&&F.WTF)console.error("Password verifier: "+re);break;case"Prot4Rev":;case"Prot4RevPass":break;case"BoundSheet8":{i[re.pos]=re;F.snames.push(re.name)}break;case"EOF":{if(--X)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=it(s);s.e.r++;s.e.c++}if(P.length>0)n["!merges"]=P;if(y.length>0)n["!objects"]=y;if(N.length>0)n["!cols"]=N;if(L.length>0)n["!rows"]=L;I.Sheets.push(A)}if(o==="")u=n;else a[o]=n;n=r.dense?[]:{}}break;case"BOF":{if(F.biff===8)F.biff={9:2,521:3,1033:4}[Q]||{1280:5,1536:8,2:2,7:2}[re.BIFFVer]||8;if(X++)break;B=true;n=r.dense?[]:{};if(F.biff<8&&!Y){Y=true;c(F.codepage=r.codepage||1252)}if(F.biff<5){if(o==="")o="Sheet1";s={s:{r:0,c:0},e:{r:0,c:0}};var ae={pos:e.l-J,name:o};i[ae.pos]=ae;F.snames.push(o)}else o=(i[$]||{name:""}).name;if(re.dt==32)n["!type"]="chart";if(re.dt==64)n["!type"]="macro";P=[];y=[];F.arrayf=S=[];N=[];L=[];M=U=0;W=false;A={Hidden:(i[$]||{hs:0}).hs,name:o}}break;case"Number":;case"BIFF2NUM":;case"BIFF2INT":{if(n["!type"]=="chart")if(r.dense?(n[re.r]||[])[re.c]:n[rt({c:re.c,r:re.r})])++re.c;k={ixfe:re.ixfe,XF:C[re.ixfe]||{},v:re.val,t:"n"};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r)}break;case"BoolErr":{k={ixfe:re.ixfe,XF:C[re.ixfe],v:re.val,t:re.t};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r)}break;case"RK":{k={ixfe:re.ixfe,XF:C[re.ixfe],v:re.rknum,t:"n"};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r)}break;case"MulRk":{for(var ne=re.c;ne<=re.C;++ne){var ie=re.rkrec[ne-re.c][0];k={ixfe:ie,XF:C[ie],v:re.rkrec[ne-re.c][1],t:"n"};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:ne,r:re.r},k,r)}}break;case"Formula":{if(re.val=="String"){l=re;break}k=ab(re.val,re.cell.ixfe,re.tt);k.XF=C[k.ixfe];if(r.cellFormula){var se=re.formula;if(se&&se[0]&&se[0][0]&&se[0][0][0]=="PtgExp"){var le=se[0][0][1][0],fe=se[0][0][1][1];var ce=rt({r:le,c:fe});if(E[ce])k.f=""+xu(re.formula,s,re.cell,V,F);else k.F=((r.dense?(n[le]||[])[fe]:n[ce])||{}).F}else k.f=""+xu(re.formula,s,re.cell,V,F);
}if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D(re.cell,k,r);l=re}break;case"String":{if(l){l.val=re;k=ab(re,l.cell.ixfe,"s");k.XF=C[k.ixfe];if(r.cellFormula){k.f=""+xu(l.formula,s,l.cell,V,F)}if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D(l.cell,k,r);l=null}else throw new Error("String record expects Formula")}break;case"Array":{S.push(re);var oe=rt(re[0].s);v=r.dense?(n[re[0].s.r]||[])[re[0].s.c]:n[oe];if(r.cellFormula&&v){if(!l)break;if(!oe||!v)break;v.f=""+xu(re[1],s,re[0],V,F);v.F=it(re[0])}}break;case"ShrFmla":{if(!B)break;if(!r.cellFormula)break;if(d){if(!l)break;E[rt(l.cell)]=re[0];v=r.dense?(n[l.cell.r]||[])[l.cell.c]:n[rt(l.cell)];(v||{}).f=""+xu(re[0],s,h,V,F)}}break;case"LabelSst":k=ab(f[re.isst].t,re.ixfe,"s");k.XF=C[k.ixfe];if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r);break;case"Blank":if(r.sheetStubs){k={ixfe:re.ixfe,XF:C[re.ixfe],t:"z"};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r)}break;case"MulBlank":if(r.sheetStubs){for(var ue=re.c;ue<=re.C;++ue){var he=re.ixfe[ue-re.c];k={ixfe:he,XF:C[he],t:"z"};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:ue,r:re.r},k,r)}}break;case"RString":;case"Label":;case"BIFF2STR":k=ab(re.val,re.ixfe,"s");k.XF=C[k.ixfe];if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r);break;case"Dimensions":{if(X===1)s=re}break;case"SST":{f=re}break;case"Format":{if(F.biff==4){z[G++]=re[1];for(var de=0;de<G+163;++de)if(x._table[de]==re[1])break;if(de>=163)x.load(re[1],G+163)}else x.load(re[1],re[0])}break;case"BIFF2FORMAT":{z[G++]=re;for(var ve=0;ve<G+163;++ve)if(x._table[ve]==re)break;if(ve>=163)x.load(re,G+163)}break;case"MergeCells":P=P.concat(re);break;case"Obj":y[re.cmo[0]]=F.lastobj=re;break;case"TxO":F.lastobj.TxO=re;break;case"ImData":F.lastobj.ImData=re;break;case"HLink":{for(g=re[0].s.r;g<=re[0].e.r;++g)for(m=re[0].s.c;m<=re[0].e.c;++m){v=r.dense?(n[g]||[])[m]:n[rt({c:m,r:g})];if(v)v.l=re[1]}}break;case"HLinkTooltip":{for(g=re[0].s.r;g<=re[0].e.r;++g)for(m=re[0].s.c;m<=re[0].e.c;++m){v=r.dense?(n[g]||[])[m]:n[rt({c:m,r:g})];if(v)v.l.Tooltip=re[1]}}break;case"Note":{if(F.biff<=5&&F.biff>=2)break;v=r.dense?(n[re[0].r]||[])[re[0].c]:n[rt(re[0])];var be=y[re[2]];if(!v)break;if(!v.c)v.c=[];b={a:re[1],t:be.TxO.t};v.c.push(b)}break;default:switch(q.n){case"ClrtClient":break;case"XFExt":rc(C[re.ixfe],re.ext);break;case"DefColWidth":M=re;break;case"DefaultRowHeight":U=re[1];break;case"ColInfo":{if(!F.cellStyles)break;while(re.e>=re.s){N[re.e--]={width:re.w/256};if(!W){W=true;Gl(re.w/256)}jl(N[re.e+1])}}break;case"Row":{var pe={};if(re.level!=null){L[re.r]=pe;pe.level=re.level}if(re.hidden){L[re.r]=pe;pe.hidden=true}if(re.hpt){L[re.r]=pe;pe.hpt=re.hpt;pe.hpx=Ql(re.hpt)}}break;case"LeftMargin":;case"RightMargin":;case"TopMargin":;case"BottomMargin":if(!n["!margins"])Zu(n["!margins"]={});n["!margins"][te.slice(0,-6).toLowerCase()]=re;break;case"Setup":if(!n["!margins"])Zu(n["!margins"]={});n["!margins"].header=re.header;n["!margins"].footer=re.footer;break;case"Window2":if(re.RTL)I.Views[0].RTL=true;break;case"Header":break;case"Footer":break;case"HCenter":break;case"VCenter":break;case"Pls":break;case"GCW":break;case"LHRecord":break;case"DBCell":break;case"EntExU2":break;case"SxView":break;case"Sxvd":break;case"SXVI":break;case"SXVDEx":break;case"SxIvd":break;case"SXString":break;case"Sync":break;case"Addin":break;case"SXDI":break;case"SXLI":break;case"SXEx":break;case"QsiSXTag":break;case"Selection":break;case"Feat":break;case"FeatHdr":;case"FeatHdr11":break;case"Feature11":;case"Feature12":;case"List12":break;case"Country":w=re;break;case"RecalcId":break;case"DxGCol":break;case"Fbi":;case"Fbi2":;case"GelFrame":break;case"Font":break;case"XFCRC":break;case"Style":break;case"StyleExt":break;case"Palette":T=re;break;case"Theme":O=re;break;case"ScenarioProtect":break;case"ObjProtect":break;case"CondFmt12":break;case"Table":break;case"TableStyles":break;case"TableStyle":break;case"TableStyleElement":break;case"SXStreamID":break;case"SXVS":break;case"DConRef":break;case"SXAddl":break;case"DConBin":break;case"DConName":break;case"SXPI":break;case"SxFormat":break;case"SxSelect":break;case"SxRule":break;case"SxFilt":break;case"SxItm":break;case"SxDXF":break;case"ScenMan":break;case"DCon":break;case"CellWatch":break;case"PrintRowCol":break;case"PrintGrid":break;case"PrintSize":break;case"XCT":break;case"CRN":break;case"Scl":{}break;case"SheetExt":{}break;case"SheetExtOptional":{}break;case"ObNoMacros":{}break;case"ObProj":{}break;case"CodeName":{if(!o)I.WBProps.CodeName=re||"ThisWorkbook";else A.CodeName=re||A.name}break;case"GUIDTypeLib":{}break;case"WOpt":break;case"PhoneticInfo":break;case"OleObjectSize":break;case"DXF":;case"DXFN":;case"DXFN12":;case"DXFN12List":;case"DXFN12NoCB":break;case"Dv":;case"DVal":break;case"BRAI":;case"Series":;case"SeriesText":break;case"DConn":break;case"DbOrParamQry":break;case"DBQueryExt":break;case"OleDbConn":break;case"ExtString":break;case"IFmtRecord":break;case"CondFmt":;case"CF":;case"CF12":;case"CFEx":break;case"Excel9File":break;case"Units":break;case"InterfaceHdr":;case"Mms":;case"InterfaceEnd":;case"DSF":break;case"BuiltInFnGroupCount":break;case"Window1":;case"HideObj":;case"GridSet":;case"Guts":;case"UserBView":;case"UserSViewBegin":;case"UserSViewEnd":;case"Pane":break;default:switch(q.n){case"Dat":;case"Begin":;case"End":;case"StartBlock":;case"EndBlock":;case"Frame":;case"Area":;case"Axis":;case"AxisLine":;case"Tick":break;case"AxesUsed":;case"CrtLayout12":;case"CrtLayout12A":;case"CrtLink":;case"CrtLine":;case"CrtMlFrt":;case"CrtMlFrtContinue":break;case"LineFormat":;case"AreaFormat":;case"Chart":;case"Chart3d":;case"Chart3DBarShape":;case"ChartFormat":;case"ChartFrtInfo":break;case"PlotArea":;case"PlotGrowth":break;case"SeriesList":;case"SerParent":;case"SerAuxTrend":break;case"DataFormat":;case"SerToCrt":;case"FontX":break;case"CatSerRange":;case"AxcExt":;case"SerFmt":break;case"ShtProps":break;case"DefaultText":;case"Text":;case"CatLab":break;case"DataLabExtContents":break;case"Legend":;case"LegendException":break;case"Pie":;case"Scatter":break;case"PieFormat":;case"MarkerFormat":break;case"StartObject":;case"EndObject":break;case"AlRuns":;case"ObjectLink":break;case"SIIndex":break;case"AttachedLabel":;case"YMult":break;case"Line":;case"Bar":break;case"Surf":break;case"AxisParent":break;case"Pos":break;case"ValueRange":break;case"SXViewEx9":break;case"SXViewLink":break;case"PivotChartBits":break;case"SBaseRef":break;case"TextPropsStream":break;case"LnExt":break;case"MkrExt":break;case"CrtCoopt":break;case"Qsi":;case"Qsif":;case"Qsir":;case"QsiSXTag":break;case"TxtQry":break;case"FilterMode":break;case"AutoFilter":;case"AutoFilterInfo":break;case"AutoFilter12":break;case"DropDownObjIds":break;case"Sort":break;case"SortData":break;case"ShapePropsStream":break;case"MsoDrawing":;case"MsoDrawingGroup":;case"MsoDrawingSelection":break;case"WebPub":;case"AutoWebPub":break;case"HeaderFooter":;case"HFPicture":;case"PLV":;case"HorizontalPageBreaks":;case"VerticalPageBreaks":break;case"Backup":;case"CompressPictures":;case"Compat12":break;case"Continue":;case"ContinueFrt12":break;case"FrtFontList":;case"FrtWrapper":break;default:switch(q.n){case"TabIdConf":;case"Radar":;case"RadarArea":;case"DropBar":;case"Intl":;case"CoordList":;case"SerAuxErrBar":break;case"BIFF2FONTCLR":;case"BIFF2FMTCNT":;case"BIFF2FONTXTRA":break;case"BIFF2XF":;case"BIFF3XF":;case"BIFF4XF":break;case"BIFF4FMTCNT":;case"BIFF2ROW":;case"BIFF2WINDOW2":break;case"SCENARIO":;case"DConBin":;case"PicF":;case"DataLabExt":;case"Lel":;case"BopPop":;case"BopPopCustom":;case"RealTimeData":;case"Name":break;case"LHNGraph":;case"FnGroupName":;case"AddMenu":;case"LPr":break;case"ListObj":;case"ListField":break;case"RRSort":break;case"BigName":break;case"ToolbarHdr":;case"ToolbarEnd":break;case"DDEObjName":break;case"FRTArchId$":break;default:if(r.WTF)throw"Unrecognized Record "+q.n;};};};}}else e.l+=J}var me=Object.keys(i).sort(function(e,r){return Number(e)-Number(r)}).map(function(e){return i[e].name});var ge=me.slice();t.Directory=me;t.SheetNames=me;if(!r.bookSheets)t.Sheets=a;if(t.Sheets)j.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Preamble=u;t.Strings=f;t.SSF=x.get_table();if(F.enc)t.Encryption=F.enc;if(O)t.Themes=O;t.Metadata={};if(w!==undefined)t.Metadata.Country=w;if(V.names.length>0)I.Names=V.names;t.Workbook=I;return t}function ib(e,r,t){var a=P.find(e,"!DocumentSummaryInformation");if(a)try{var n=mn(a,sa);for(var i in n)r[i]=n[i]}catch(s){if(t.WTF)throw s}var l=P.find(e,"!SummaryInformation");if(l)try{var f=mn(l,la);for(var c in f)if(r[c]==null)r[c]=f[c]}catch(s){if(t.WTF)throw s}}function sb(e,r){if(!r)r={};jb(r);o();if(r.codepage)l(r.codepage);var t,a,n;if(e.FullPaths){if(P.find(e,"/encryption"))throw new Error("File is password-protected");t=P.find(e,"!CompObj");a=P.find(e,"!SummaryInformation");n=P.find(e,"/Workbook")||P.find(e,"/Book")}else{switch(r.type){case"base64":e=k(g.decode(e));break;case"binary":e=k(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Or(e,0);n={content:e}}var i,s,f;var c;if(t)i=eb(t);if(r.bookProps&&!r.bookSheets)f={};else{var u=E?"buffer":"array";if(n&&n.content)f=nb(n.content,r);else if((c=P.find(e,"PerfectOffice_MAIN"))&&c.content)f=Hs.to_workbook(c.content,(r.type=u,r));else if((c=P.find(e,"NativeContent_MAIN"))&&c.content)f=Hs.to_workbook(c.content,(r.type=u,r));else throw new Error("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&P.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))f.vbaraw=Bc(e)}var h={};if(e.FullPaths)ib(e,h,r);f.Props=f.Custprops=h;if(r.bookFiles)f.cfb=e;return f}function lb(e,r){var t=r||{};var a=P.utils.cfb_new({root:"R"});var n="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB");}P.utils.cfb_add(a,n,Cb(e,t));if(t.biff==8&&e.vbaraw)Cc(a,P.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"}));return a}var fb={0:{n:"BrtRowHdr",f:_h},1:{n:"BrtCellBlank",f:Mh},2:{n:"BrtCellRk",f:Kh},3:{n:"BrtCellError",f:Hh},4:{n:"BrtCellBool",f:Wh},5:{n:"BrtCellReal",f:zh},6:{n:"BrtCellSt",f:$h},7:{n:"BrtCellIsst",f:Xh},8:{n:"BrtFmlaString",f:ed},9:{n:"BrtFmlaNum",f:qh},10:{n:"BrtFmlaBool",f:Jh},11:{n:"BrtFmlaError",f:Zh},16:{n:"BrtFRTArchID$",f:tv},19:{n:"BrtSSTItem",f:pt},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIString"},25:{n:"BrtPCDIDatetime"},26:{n:"BrtPCDIIndex"},27:{n:"BrtPCDIAMissing"},28:{n:"BrtPCDIANumber"},29:{n:"BrtPCDIABoolean"},30:{n:"BrtPCDIAError"},31:{n:"BrtPCDIAString"},32:{n:"BrtPCDIADatetime"},33:{n:"BrtPCRRecord"},34:{n:"BrtPCRRecordDt"},35:{n:"BrtFRTBegin"},36:{n:"BrtFRTEnd"},37:{n:"BrtACBegin"},38:{n:"BrtACEnd"},39:{n:"BrtName",f:av},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:df},44:{n:"BrtFmt",f:uf},45:{n:"BrtFill",f:mf},46:{n:"BrtBorder",f:wf},47:{n:"BrtXF",f:Ef},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:Es},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:nc},64:{n:"BrtDVal"},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Pr,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView",f:hd},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:Nh},148:{n:"BrtWsDim",f:Oh,p:16},151:{n:"BrtPane"},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:ev},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:Zd},157:{n:"BrtCalcProp"},158:{n:"BrtBookView"},159:{n:"BrtBeginSst",f:el},160:{n:"BrtEndSst"},161:{n:"BrtBeginAFilter",f:Pt},162:{n:"BrtEndAFilter"},163:{n:"BrtBeginFilterColumn"},164:{n:"BrtEndFilterColumn"},165:{n:"BrtBeginFilters"},166:{n:"BrtEndFilters"},167:{n:"BrtFilter"},168:{n:"BrtColorFilter"},169:{n:"BrtIconFilter"},170:{n:"BrtTop10Filter"},171:{n:"BrtDynamicFilter"},172:{n:"BrtBeginCustomFilters"},173:{n:"BrtEndCustomFilters"},174:{n:"BrtCustomFilter"},175:{n:"BrtAFilterDateGroupItem"},176:{n:"BrtMergeCell",f:rd},177:{n:"BrtBeginMergeCells"},178:{n:"BrtEndMergeCells"},179:{n:"BrtBeginPivotCacheDef"},180:{n:"BrtEndPivotCacheDef"},181:{n:"BrtBeginPCDFields"},182:{n:"BrtEndPCDFields"},183:{n:"BrtBeginPCDField"},184:{n:"BrtEndPCDField"},185:{n:"BrtBeginPCDSource"},186:{n:"BrtEndPCDSource"},187:{n:"BrtBeginPCDSRange"},188:{n:"BrtEndPCDSRange"},189:{n:"BrtBeginPCDFAtbl"},190:{n:"BrtEndPCDFAtbl"},191:{n:"BrtBeginPCDIRun"},192:{n:"BrtEndPCDIRun"},193:{n:"BrtBeginPivotCacheRecords"},194:{n:"BrtEndPivotCacheRecords"},195:{n:"BrtBeginPCDHierarchies"},196:{n:"BrtEndPCDHierarchies"},197:{n:"BrtBeginPCDHierarchy"},198:{n:"BrtEndPCDHierarchy"},199:{n:"BrtBeginPCDHFieldsUsage"},200:{n:"BrtEndPCDHFieldsUsage"},201:{n:"BrtBeginExtConnection"},202:{n:"BrtEndExtConnection"},203:{n:"BrtBeginECDbProps"},204:{n:"BrtEndECDbProps"},205:{n:"BrtBeginECOlapProps"},206:{n:"BrtEndECOlapProps"},207:{n:"BrtBeginPCDSConsol"},208:{n:"BrtEndPCDSConsol"},209:{n:"BrtBeginPCDSCPages"},210:{n:"BrtEndPCDSCPages"},211:{n:"BrtBeginPCDSCPage"},212:{n:"BrtEndPCDSCPage"},213:{n:"BrtBeginPCDSCPItem"},214:{n:"BrtEndPCDSCPItem"},215:{n:"BrtBeginPCDSCSets"},216:{n:"BrtEndPCDSCSets"},217:{n:"BrtBeginPCDSCSet"},218:{n:"BrtEndPCDSCSet"},219:{n:"BrtBeginPCDFGroup"},220:{n:"BrtEndPCDFGroup"},221:{n:"BrtBeginPCDFGItems"},222:{n:"BrtEndPCDFGItems"},223:{n:"BrtBeginPCDFGRange"},224:{n:"BrtEndPCDFGRange"},225:{n:"BrtBeginPCDFGDiscrete"},226:{n:"BrtEndPCDFGDiscrete"},227:{n:"BrtBeginPCDSDTupleCache"},228:{n:"BrtEndPCDSDTupleCache"},229:{n:"BrtBeginPCDSDTCEntries"},230:{n:"BrtEndPCDSDTCEntries"},231:{n:"BrtBeginPCDSDTCEMembers"},232:{n:"BrtEndPCDSDTCEMembers"},233:{n:"BrtBeginPCDSDTCEMember"},234:{n:"BrtEndPCDSDTCEMember"},235:{n:"BrtBeginPCDSDTCQueries"},236:{n:"BrtEndPCDSDTCQueries"},237:{n:"BrtBeginPCDSDTCQuery"},238:{n:"BrtEndPCDSDTCQuery"},239:{n:"BrtBeginPCDSDTCSets"},240:{n:"BrtEndPCDSDTCSets"},241:{n:"BrtBeginPCDSDTCSet"},242:{n:"BrtEndPCDSDTCSet"},243:{n:"BrtBeginPCDCalcItems"},244:{n:"BrtEndPCDCalcItems"},245:{n:"BrtBeginPCDCalcItem"},246:{n:"BrtEndPCDCalcItem"},247:{n:"BrtBeginPRule"},248:{n:"BrtEndPRule"},249:{n:"BrtBeginPRFilters"},250:{n:"BrtEndPRFilters"},251:{n:"BrtBeginPRFilter"},252:{n:"BrtEndPRFilter"},253:{n:"BrtBeginPNames"},254:{n:"BrtEndPNames"},255:{n:"BrtBeginPName"},256:{n:"BrtEndPName"},257:{n:"BrtBeginPNPairs"},258:{n:"BrtEndPNPairs"},259:{n:"BrtBeginPNPair"},260:{n:"BrtEndPNPair"},261:{n:"BrtBeginECWebProps"},262:{n:"BrtEndECWebProps"},263:{n:"BrtBeginEcWpTables"},264:{n:"BrtEndECWPTables"},265:{n:"BrtBeginECParams"},266:{n:"BrtEndECParams"},267:{n:"BrtBeginECParam"},268:{n:"BrtEndECParam"},269:{n:"BrtBeginPCDKPIs"},270:{n:"BrtEndPCDKPIs"},271:{n:"BrtBeginPCDKPI"},272:{n:"BrtEndPCDKPI"},273:{n:"BrtBeginDims"},274:{n:"BrtEndDims"},275:{n:"BrtBeginDim"},276:{n:"BrtEndDim"},277:{n:"BrtIndexPartEnd"},278:{n:"BrtBeginStyleSheet"},279:{n:"BrtEndStyleSheet"},280:{n:"BrtBeginSXView"},281:{n:"BrtEndSXVI"},282:{n:"BrtBeginSXVI"},283:{n:"BrtBeginSXVIs"},284:{n:"BrtEndSXVIs"},285:{n:"BrtBeginSXVD"},286:{n:"BrtEndSXVD"},287:{n:"BrtBeginSXVDs"},288:{n:"BrtEndSXVDs"},289:{n:"BrtBeginSXPI"},290:{n:"BrtEndSXPI"},291:{n:"BrtBeginSXPIs"},292:{n:"BrtEndSXPIs"},293:{n:"BrtBeginSXDI"},294:{n:"BrtEndSXDI"},295:{n:"BrtBeginSXDIs"},296:{n:"BrtEndSXDIs"},297:{n:"BrtBeginSXLI"},298:{n:"BrtEndSXLI"},299:{n:"BrtBeginSXLIRws"},300:{n:"BrtEndSXLIRws"},301:{n:"BrtBeginSXLICols"},302:{n:"BrtEndSXLICols"},303:{n:"BrtBeginSXFormat"},304:{n:"BrtEndSXFormat"},305:{n:"BrtBeginSXFormats"},306:{n:"BrtEndSxFormats"},307:{n:"BrtBeginSxSelect"},308:{n:"BrtEndSxSelect"},309:{n:"BrtBeginISXVDRws"},310:{n:"BrtEndISXVDRws"},311:{n:"BrtBeginISXVDCols"},312:{n:"BrtEndISXVDCols"},313:{n:"BrtEndSXLocation"},314:{n:"BrtBeginSXLocation"},315:{n:"BrtEndSXView"},316:{n:"BrtBeginSXTHs"},317:{n:"BrtEndSXTHs"},318:{n:"BrtBeginSXTH"},319:{n:"BrtEndSXTH"},320:{n:"BrtBeginISXTHRws"},321:{n:"BrtEndISXTHRws"},322:{n:"BrtBeginISXTHCols"},323:{n:"BrtEndISXTHCols"},324:{n:"BrtBeginSXTDMPS"},325:{n:"BrtEndSXTDMPs"},326:{n:"BrtBeginSXTDMP"},327:{n:"BrtEndSXTDMP"},328:{n:"BrtBeginSXTHItems"},329:{n:"BrtEndSXTHItems"},330:{n:"BrtBeginSXTHItem"},331:{n:"BrtEndSXTHItem"},332:{n:"BrtBeginMetadata"},333:{n:"BrtEndMetadata"},334:{n:"BrtBeginEsmdtinfo"},335:{n:"BrtMdtinfo"},336:{n:"BrtEndEsmdtinfo"},337:{n:"BrtBeginEsmdb"},338:{n:"BrtEndEsmdb"},339:{n:"BrtBeginEsfmd"},340:{n:"BrtEndEsfmd"},341:{n:"BrtBeginSingleCells"},342:{n:"BrtEndSingleCells"},343:{n:"BrtBeginList"},344:{n:"BrtEndList"},345:{n:"BrtBeginListCols"},346:{n:"BrtEndListCols"},347:{n:"BrtBeginListCol"},348:{n:"BrtEndListCol"},349:{n:"BrtBeginListXmlCPr"},350:{n:"BrtEndListXmlCPr"},351:{n:"BrtListCCFmla"},352:{n:"BrtListTrFmla"},353:{n:"BrtBeginExternals"},354:{n:"BrtEndExternals"},355:{n:"BrtSupBookSrc",f:At},357:{n:"BrtSupSelf"},358:{n:"BrtSupSame"},359:{n:"BrtSupTabs"},360:{n:"BrtBeginSupBook"},361:{n:"BrtPlaceholderName"},362:{n:"BrtExternSheet",f:Qi},363:{n:"BrtExternTableStart"},364:{n:"BrtExternTableEnd"},366:{n:"BrtExternRowHdr"},367:{n:"BrtExternCellBlank"},368:{n:"BrtExternCellReal"},369:{n:"BrtExternCellBool"},370:{n:"BrtExternCellError"},371:{n:"BrtExternCellString"},372:{n:"BrtBeginEsmdx"},373:{n:"BrtEndEsmdx"},374:{n:"BrtBeginMdxSet"},375:{n:"BrtEndMdxSet"},376:{n:"BrtBeginMdxMbrProp"},377:{n:"BrtEndMdxMbrProp"},378:{n:"BrtBeginMdxKPI"},379:{n:"BrtEndMdxKPI"},380:{n:"BrtBeginEsstr"},381:{n:"BrtEndEsstr"},382:{n:"BrtBeginPRFItem"},383:{n:"BrtEndPRFItem"},384:{n:"BrtBeginPivotCacheIDs"},385:{n:"BrtEndPivotCacheIDs"},386:{n:"BrtBeginPivotCacheID"},387:{n:"BrtEndPivotCacheID"},388:{n:"BrtBeginISXVIs"},389:{n:"BrtEndISXVIs"},390:{n:"BrtBeginColInfos"},391:{n:"BrtEndColInfos"},392:{n:"BrtBeginRwBrk"},393:{n:"BrtEndRwBrk"},394:{n:"BrtBeginColBrk"},395:{n:"BrtEndColBrk"},396:{n:"BrtBrk"},397:{n:"BrtUserBookView"},398:{n:"BrtInfo"},399:{n:"BrtCUsr"},400:{n:"BrtUsr"},401:{n:"BrtBeginUsers"},403:{n:"BrtEOF"},404:{n:"BrtUCR"},405:{n:"BrtRRInsDel"},406:{n:"BrtRREndInsDel"},407:{n:"BrtRRMove"},408:{n:"BrtRREndMove"},409:{n:"BrtRRChgCell"},410:{n:"BrtRREndChgCell"},411:{n:"BrtRRHeader"},412:{n:"BrtRRUserView"},413:{n:"BrtRRRenSheet"},414:{n:"BrtRRInsertSh"},415:{n:"BrtRRDefName"},416:{n:"BrtRRNote"},417:{n:"BrtRRConflict"},418:{n:"BrtRRTQSIF"},419:{n:"BrtRRFormat"},420:{n:"BrtRREndFormat"},421:{n:"BrtRRAutoFmt"},422:{n:"BrtBeginUserShViews"},423:{n:"BrtBeginUserShView"},424:{n:"BrtEndUserShView"},425:{n:"BrtEndUserShViews"},426:{n:"BrtArrFmla",f:sd},427:{n:"BrtShrFmla",f:ld},428:{n:"BrtTable"},429:{n:"BrtBeginExtConnections"},430:{n:"BrtEndExtConnections"},431:{n:"BrtBeginPCDCalcMems"},432:{n:"BrtEndPCDCalcMems"},433:{n:"BrtBeginPCDCalcMem"},434:{n:"BrtEndPCDCalcMem"},435:{n:"BrtBeginPCDHGLevels"},436:{n:"BrtEndPCDHGLevels"},437:{n:"BrtBeginPCDHGLevel"},438:{n:"BrtEndPCDHGLevel"},439:{n:"BrtBeginPCDHGLGroups"},440:{n:"BrtEndPCDHGLGroups"},441:{n:"BrtBeginPCDHGLGroup"},442:{n:"BrtEndPCDHGLGroup"},443:{n:"BrtBeginPCDHGLGMembers"},444:{n:"BrtEndPCDHGLGMembers"},445:{n:"BrtBeginPCDHGLGMember"},446:{n:"BrtEndPCDHGLGMember"},447:{n:"BrtBeginQSI"},448:{n:"BrtEndQSI"},449:{n:"BrtBeginQSIR"},450:{n:"BrtEndQSIR"},451:{n:"BrtBeginDeletedNames"},452:{n:"BrtEndDeletedNames"},453:{n:"BrtBeginDeletedName"},454:{n:"BrtEndDeletedName"},455:{n:"BrtBeginQSIFs"},456:{n:"BrtEndQSIFs"},457:{n:"BrtBeginQSIF"},458:{n:"BrtEndQSIF"},459:{n:"BrtBeginAutoSortScope"},460:{n:"BrtEndAutoSortScope"},461:{n:"BrtBeginConditionalFormatting"},462:{n:"BrtEndConditionalFormatting"},463:{n:"BrtBeginCFRule"},464:{n:"BrtEndCFRule"},465:{n:"BrtBeginIconSet"},466:{n:"BrtEndIconSet"},467:{n:"BrtBeginDatabar"},468:{n:"BrtEndDatabar"},469:{n:"BrtBeginColorScale"},470:{n:"BrtEndColorScale"},471:{n:"BrtCFVO"},472:{n:"BrtExternValueMeta"},473:{n:"BrtBeginColorPalette"},474:{n:"BrtEndColorPalette"},475:{n:"BrtIndexedColor"},476:{n:"BrtMargins",f:od},477:{n:"BrtPrintOptions"},478:{n:"BrtPageSetup"},479:{n:"BrtBeginHeaderFooter"},480:{n:"BrtEndHeaderFooter"},481:{n:"BrtBeginSXCrtFormat"},482:{n:"BrtEndSXCrtFormat"},483:{n:"BrtBeginSXCrtFormats"},484:{n:"BrtEndSXCrtFormats"},485:{n:"BrtWsFmtInfo",f:yh},486:{n:"BrtBeginMgs"},487:{n:"BrtEndMGs"},488:{n:"BrtBeginMGMaps"},489:{n:"BrtEndMGMaps"},490:{n:"BrtBeginMG"},491:{n:"BrtEndMG"},492:{n:"BrtBeginMap"},493:{n:"BrtEndMap"},494:{n:"BrtHLink",f:nd},495:{n:"BrtBeginDCon"},496:{n:"BrtEndDCon"},497:{n:"BrtBeginDRefs"},498:{n:"BrtEndDRefs"},499:{n:"BrtDRef"},500:{n:"BrtBeginScenMan"},501:{n:"BrtEndScenMan"},502:{n:"BrtBeginSct"},503:{n:"BrtEndSct"},504:{n:"BrtSlc"},505:{n:"BrtBeginDXFs"},506:{n:"BrtEndDXFs"},507:{n:"BrtDXF"},508:{n:"BrtBeginTableStyles"},509:{n:"BrtEndTableStyles"},510:{n:"BrtBeginTableStyle"},511:{n:"BrtEndTableStyle"},512:{n:"BrtTableStyleElement"},513:{n:"BrtTableStyleClient"},514:{n:"BrtBeginVolDeps"},515:{n:"BrtEndVolDeps"},516:{n:"BrtBeginVolType"},517:{n:"BrtEndVolType"},518:{n:"BrtBeginVolMain"},519:{n:"BrtEndVolMain"},520:{n:"BrtBeginVolTopic"},521:{n:"BrtEndVolTopic"},522:{n:"BrtVolSubtopic"},523:{n:"BrtVolRef"},524:{n:"BrtVolNum"},525:{n:"BrtVolErr"},526:{n:"BrtVolStr"},527:{n:"BrtVolBool"},528:{n:"BrtBeginCalcChain$"},529:{n:"BrtEndCalcChain$"},530:{n:"BrtBeginSortState"},531:{n:"BrtEndSortState"},532:{n:"BrtBeginSortCond"},533:{n:"BrtEndSortCond"},534:{n:"BrtBookProtection"},535:{n:"BrtSheetProtection"},536:{n:"BrtRangeProtection"},537:{n:"BrtPhoneticInfo"},538:{n:"BrtBeginECTxtWiz"},539:{n:"BrtEndECTxtWiz"},540:{n:"BrtBeginECTWFldInfoLst"},541:{n:"BrtEndECTWFldInfoLst"},542:{n:"BrtBeginECTwFldInfo"},548:{n:"BrtFileSharing"},549:{n:"BrtOleSize"},550:{n:"BrtDrawing",f:At},551:{n:"BrtLegacyDrawing"},552:{n:"BrtLegacyDrawingHF"},553:{n:"BrtWebOpt"},554:{n:"BrtBeginWebPubItems"},555:{n:"BrtEndWebPubItems"},556:{n:"BrtBeginWebPubItem"},557:{n:"BrtEndWebPubItem"},558:{n:"BrtBeginSXCondFmt"},559:{n:"BrtEndSXCondFmt"},560:{n:"BrtBeginSXCondFmts"},561:{n:"BrtEndSXCondFmts"},562:{n:"BrtBkHim"},564:{n:"BrtColor"},565:{n:"BrtBeginIndexedColors"},566:{n:"BrtEndIndexedColors"},569:{n:"BrtBeginMRUColors"},570:{n:"BrtEndMRUColors"},572:{n:"BrtMRUColor"},573:{n:"BrtBeginDVals"},574:{n:"BrtEndDVals"},577:{n:"BrtSupNameStart"},578:{n:"BrtSupNameValueStart"},579:{n:"BrtSupNameValueEnd"},580:{n:"BrtSupNameNum"},581:{n:"BrtSupNameErr"},582:{n:"BrtSupNameSt"},583:{n:"BrtSupNameNil"},584:{n:"BrtSupNameBool"},585:{n:"BrtSupNameFmla"},586:{n:"BrtSupNameBits"},587:{n:"BrtSupNameEnd"},588:{n:"BrtEndSupBook"},589:{n:"BrtCellSmartTagProperty"},590:{n:"BrtBeginCellSmartTag"},591:{n:"BrtEndCellSmartTag"},592:{n:"BrtBeginCellSmartTags"},593:{n:"BrtEndCellSmartTags"},594:{n:"BrtBeginSmartTags"},595:{n:"BrtEndSmartTags"},596:{n:"BrtSmartTagType"},597:{n:"BrtBeginSmartTagTypes"},598:{n:"BrtEndSmartTagTypes"},599:{n:"BrtBeginSXFilters"},600:{n:"BrtEndSXFilters"},601:{n:"BrtBeginSXFILTER"},602:{n:"BrtEndSXFilter"},603:{n:"BrtBeginFills"},604:{n:"BrtEndFills"},605:{n:"BrtBeginCellWatches"},606:{n:"BrtEndCellWatches"},607:{n:"BrtCellWatch"},608:{n:"BrtBeginCRErrs"},609:{n:"BrtEndCRErrs"},610:{n:"BrtCrashRecErr"},611:{n:"BrtBeginFonts"},612:{n:"BrtEndFonts"},613:{n:"BrtBeginBorders"},614:{n:"BrtEndBorders"},615:{n:"BrtBeginFmts"},616:{n:"BrtEndFmts"},617:{n:"BrtBeginCellXFs"},618:{n:"BrtEndCellXFs"},619:{n:"BrtBeginStyles"},620:{n:"BrtEndStyles"},625:{n:"BrtBigName"},626:{n:"BrtBeginCellStyleXFs"},627:{n:"BrtEndCellStyleXFs"},628:{n:"BrtBeginComments"},629:{n:"BrtEndComments"},630:{n:"BrtBeginCommentAuthors"},631:{n:"BrtEndCommentAuthors"},632:{n:"BrtCommentAuthor",f:Ec},633:{n:"BrtBeginCommentList"},634:{n:"BrtEndCommentList"},635:{n:"BrtBeginComment",f:mc},636:{n:"BrtEndComment"},637:{n:"BrtCommentText",f:gt},638:{n:"BrtBeginOleObjects"},639:{n:"BrtOleObject"},640:{n:"BrtEndOleObjects"},641:{n:"BrtBeginSxrules"},642:{n:"BrtEndSxRules"},643:{n:"BrtBeginActiveXControls"},644:{n:"BrtActiveX"},645:{n:"BrtEndActiveXControls"},646:{n:"BrtBeginPCDSDTCEMembersSortBy"},648:{n:"BrtBeginCellIgnoreECs"},649:{n:"BrtCellIgnoreEC"},650:{n:"BrtEndCellIgnoreECs"},651:{n:"BrtCsProp",f:Fd},652:{n:"BrtCsPageSetup"},653:{n:"BrtBeginUserCsViews"},654:{n:"BrtEndUserCsViews"},655:{n:"BrtBeginUserCsView"},656:{n:"BrtEndUserCsView"},657:{n:"BrtBeginPcdSFCIEntries"},658:{n:"BrtEndPCDSFCIEntries"},659:{n:"BrtPCDSFCIEntry"},660:{n:"BrtBeginListParts"},661:{n:"BrtListPart"},662:{n:"BrtEndListParts"},663:{n:"BrtSheetCalcProp"},664:{n:"BrtBeginFnGroup"},665:{n:"BrtFnGroup"},666:{n:"BrtEndFnGroup"},667:{n:"BrtSupAddin"},668:{n:"BrtSXTDMPOrder"},669:{n:"BrtCsProtection"},671:{n:"BrtBeginWsSortMap"},672:{n:"BrtEndWsSortMap"},673:{n:"BrtBeginRRSort"},674:{n:"BrtEndRRSort"},675:{n:"BrtRRSortItem"},676:{n:"BrtFileSharingIso"},677:{n:"BrtBookProtectionIso"},678:{n:"BrtSheetProtectionIso"},679:{n:"BrtCsProtectionIso"},680:{n:"BrtRangeProtectionIso"},1024:{n:"BrtRwDescent"},1025:{n:"BrtKnownFonts"},1026:{n:"BrtBeginSXTupleSet"},1027:{n:"BrtEndSXTupleSet"},1028:{n:"BrtBeginSXTupleSetHeader"},1029:{n:"BrtEndSXTupleSetHeader"},1030:{n:"BrtSXTupleSetHeaderItem"},1031:{n:"BrtBeginSXTupleSetData"},1032:{n:"BrtEndSXTupleSetData"},1033:{n:"BrtBeginSXTupleSetRow"},1034:{n:"BrtEndSXTupleSetRow"},1035:{n:"BrtSXTupleSetRowItem"},1036:{n:"BrtNameExt"},1037:{n:"BrtPCDH14"},1038:{n:"BrtBeginPCDCalcMem14"},1039:{n:"BrtEndPCDCalcMem14"},1040:{n:"BrtSXTH14"},1041:{n:"BrtBeginSparklineGroup"},1042:{n:"BrtEndSparklineGroup"},1043:{n:"BrtSparkline"},1044:{n:"BrtSXDI14"},1045:{n:"BrtWsFmtInfoEx14"},1046:{n:"BrtBeginConditionalFormatting14"},1047:{n:"BrtEndConditionalFormatting14"},1048:{n:"BrtBeginCFRule14"},1049:{n:"BrtEndCFRule14"},1050:{n:"BrtCFVO14"},1051:{n:"BrtBeginDatabar14"},1052:{n:"BrtBeginIconSet14"},1053:{n:"BrtDVal14"},1054:{n:"BrtBeginDVals14"},1055:{n:"BrtColor14"},1056:{n:"BrtBeginSparklines"},1057:{n:"BrtEndSparklines"},1058:{n:"BrtBeginSparklineGroups"},1059:{n:"BrtEndSparklineGroups"},1061:{n:"BrtSXVD14"},1062:{n:"BrtBeginSxview14"},1063:{n:"BrtEndSxview14"},1066:{n:"BrtBeginPCD14"},1067:{n:"BrtEndPCD14"},1068:{n:"BrtBeginExtConn14"},1069:{n:"BrtEndExtConn14"},1070:{n:"BrtBeginSlicerCacheIDs"},1071:{n:"BrtEndSlicerCacheIDs"},1072:{n:"BrtBeginSlicerCacheID"},1073:{n:"BrtEndSlicerCacheID"},1075:{n:"BrtBeginSlicerCache"},1076:{n:"BrtEndSlicerCache"},1077:{n:"BrtBeginSlicerCacheDef"},1078:{n:"BrtEndSlicerCacheDef"},1079:{n:"BrtBeginSlicersEx"},1080:{n:"BrtEndSlicersEx"},1081:{n:"BrtBeginSlicerEx"},1082:{n:"BrtEndSlicerEx"},1083:{n:"BrtBeginSlicer"},1084:{n:"BrtEndSlicer"},1085:{n:"BrtSlicerCachePivotTables"},1086:{n:"BrtBeginSlicerCacheOlapImpl"},1087:{n:"BrtEndSlicerCacheOlapImpl"},1088:{n:"BrtBeginSlicerCacheLevelsData"},1089:{n:"BrtEndSlicerCacheLevelsData"},1090:{n:"BrtBeginSlicerCacheLevelData"},1091:{n:"BrtEndSlicerCacheLevelData"},1092:{n:"BrtBeginSlicerCacheSiRanges"},1093:{n:"BrtEndSlicerCacheSiRanges"},1094:{n:"BrtBeginSlicerCacheSiRange"},1095:{n:"BrtEndSlicerCacheSiRange"},1096:{n:"BrtSlicerCacheOlapItem"},1097:{n:"BrtBeginSlicerCacheSelections"},1098:{n:"BrtSlicerCacheSelection"},1099:{n:"BrtEndSlicerCacheSelections"},1100:{n:"BrtBeginSlicerCacheNative"},1101:{n:"BrtEndSlicerCacheNative"},1102:{n:"BrtSlicerCacheNativeItem"},1103:{n:"BrtRangeProtection14"},1104:{n:"BrtRangeProtectionIso14"},1105:{n:"BrtCellIgnoreEC14"},1111:{n:"BrtList14"},1112:{n:"BrtCFIcon"},1113:{n:"BrtBeginSlicerCachesPivotCacheIDs"},1114:{n:"BrtEndSlicerCachesPivotCacheIDs"},1115:{n:"BrtBeginSlicers"},1116:{n:"BrtEndSlicers"},1117:{n:"BrtWbProp14"},1118:{n:"BrtBeginSXEdit"},1119:{n:"BrtEndSXEdit"},1120:{n:"BrtBeginSXEdits"},1121:{n:"BrtEndSXEdits"},1122:{n:"BrtBeginSXChange"},1123:{n:"BrtEndSXChange"},1124:{n:"BrtBeginSXChanges"},1125:{n:"BrtEndSXChanges"},1126:{n:"BrtSXTupleItems"},1128:{n:"BrtBeginSlicerStyle"},1129:{n:"BrtEndSlicerStyle"},1130:{n:"BrtSlicerStyleElement"},1131:{n:"BrtBeginStyleSheetExt14"},1132:{n:"BrtEndStyleSheetExt14"},1133:{n:"BrtBeginSlicerCachesPivotCacheID"},1134:{n:"BrtEndSlicerCachesPivotCacheID"},1135:{n:"BrtBeginConditionalFormattings"},1136:{n:"BrtEndConditionalFormattings"},1137:{n:"BrtBeginPCDCalcMemExt"},1138:{n:"BrtEndPCDCalcMemExt"},1139:{n:"BrtBeginPCDCalcMemsExt"},1140:{n:"BrtEndPCDCalcMemsExt"},1141:{n:"BrtPCDField14"},1142:{n:"BrtBeginSlicerStyles"},1143:{n:"BrtEndSlicerStyles"},1144:{n:"BrtBeginSlicerStyleElements"},1145:{n:"BrtEndSlicerStyleElements"},1146:{n:"BrtCFRuleExt"},1147:{n:"BrtBeginSXCondFmt14"},1148:{n:"BrtEndSXCondFmt14"},1149:{n:"BrtBeginSXCondFmts14"},1150:{n:"BrtEndSXCondFmts14"},1152:{n:"BrtBeginSortCond14"},1153:{n:"BrtEndSortCond14"},1154:{n:"BrtEndDVals14"},1155:{n:"BrtEndIconSet14"},1156:{n:"BrtEndDatabar14"},1157:{n:"BrtBeginColorScale14"},1158:{n:"BrtEndColorScale14"},1159:{n:"BrtBeginSxrules14"},1160:{n:"BrtEndSxrules14"},1161:{n:"BrtBeginPRule14"},1162:{n:"BrtEndPRule14"},1163:{n:"BrtBeginPRFilters14"},1164:{n:"BrtEndPRFilters14"},1165:{n:"BrtBeginPRFilter14"},1166:{n:"BrtEndPRFilter14"},1167:{n:"BrtBeginPRFItem14"},1168:{n:"BrtEndPRFItem14"},1169:{n:"BrtBeginCellIgnoreECs14"},1170:{n:"BrtEndCellIgnoreECs14"},1171:{n:"BrtDxf14"},1172:{n:"BrtBeginDxF14s"},1173:{n:"BrtEndDxf14s"},1177:{n:"BrtFilter14"},1178:{n:"BrtBeginCustomFilters14"},1180:{n:"BrtCustomFilter14"},1181:{n:"BrtIconFilter14"},1182:{n:"BrtPivotCacheConnectionName"},2048:{n:"BrtBeginDecoupledPivotCacheIDs"},2049:{n:"BrtEndDecoupledPivotCacheIDs"},2050:{n:"BrtDecoupledPivotCacheID"},2051:{n:"BrtBeginPivotTableRefs"},2052:{n:"BrtEndPivotTableRefs"},2053:{n:"BrtPivotTableRef"},2054:{n:"BrtSlicerCacheBookPivotTables"},2055:{n:"BrtBeginSxvcells"},2056:{n:"BrtEndSxvcells"},2057:{n:"BrtBeginSxRow"},2058:{n:"BrtEndSxRow"},2060:{n:"BrtPcdCalcMem15"},2067:{n:"BrtQsi15"},2068:{n:"BrtBeginWebExtensions"},2069:{n:"BrtEndWebExtensions"},2070:{n:"BrtWebExtension"},2071:{n:"BrtAbsPath15"},2072:{n:"BrtBeginPivotTableUISettings"},2073:{n:"BrtEndPivotTableUISettings"},2075:{n:"BrtTableSlicerCacheIDs"},2076:{n:"BrtTableSlicerCacheID"},2077:{n:"BrtBeginTableSlicerCache"},2078:{n:"BrtEndTableSlicerCache"},2079:{n:"BrtSxFilter15"},2080:{n:"BrtBeginTimelineCachePivotCacheIDs"},2081:{n:"BrtEndTimelineCachePivotCacheIDs"},2082:{n:"BrtTimelineCachePivotCacheID"},2083:{n:"BrtBeginTimelineCacheIDs"},2084:{n:"BrtEndTimelineCacheIDs"},2085:{n:"BrtBeginTimelineCacheID"},2086:{n:"BrtEndTimelineCacheID"},2087:{n:"BrtBeginTimelinesEx"},2088:{n:"BrtEndTimelinesEx"},2089:{n:"BrtBeginTimelineEx"},2090:{n:"BrtEndTimelineEx"},2091:{n:"BrtWorkBookPr15"},2092:{n:"BrtPCDH15"},2093:{n:"BrtBeginTimelineStyle"},2094:{n:"BrtEndTimelineStyle"},2095:{n:"BrtTimelineStyleElement"},2096:{n:"BrtBeginTimelineStylesheetExt15"},2097:{n:"BrtEndTimelineStylesheetExt15"},2098:{n:"BrtBeginTimelineStyles"},2099:{n:"BrtEndTimelineStyles"},2100:{n:"BrtBeginTimelineStyleElements"},2101:{n:"BrtEndTimelineStyleElements"},2102:{n:"BrtDxf15"},2103:{n:"BrtBeginDxfs15"},2104:{n:"brtEndDxfs15"},2105:{n:"BrtSlicerCacheHideItemsWithNoData"},2106:{n:"BrtBeginItemUniqueNames"},2107:{n:"BrtEndItemUniqueNames"},2108:{n:"BrtItemUniqueName"},2109:{n:"BrtBeginExtConn15"},2110:{n:"BrtEndExtConn15"},2111:{n:"BrtBeginOledbPr15"},2112:{n:"BrtEndOledbPr15"},2113:{n:"BrtBeginDataFeedPr15"},2114:{n:"BrtEndDataFeedPr15"},2115:{n:"BrtTextPr15"},2116:{n:"BrtRangePr15"},2117:{n:"BrtDbCommand15"},2118:{n:"BrtBeginDbTables15"},2119:{n:"BrtEndDbTables15"},2120:{n:"BrtDbTable15"},2121:{n:"BrtBeginDataModel"},2122:{
n:"BrtEndDataModel"},2123:{n:"BrtBeginModelTables"},2124:{n:"BrtEndModelTables"},2125:{n:"BrtModelTable"},2126:{n:"BrtBeginModelRelationships"},2127:{n:"BrtEndModelRelationships"},2128:{n:"BrtModelRelationship"},2129:{n:"BrtBeginECTxtWiz15"},2130:{n:"BrtEndECTxtWiz15"},2131:{n:"BrtBeginECTWFldInfoLst15"},2132:{n:"BrtEndECTWFldInfoLst15"},2133:{n:"BrtBeginECTWFldInfo15"},2134:{n:"BrtFieldListActiveItem"},2135:{n:"BrtPivotCacheIdVersion"},2136:{n:"BrtSXDI15"},65535:{n:""}};var cb=N(fb,"n");var ob={3:{n:"BIFF2NUM",f:Rs},4:{n:"BIFF2STR",f:As},6:{n:"Formula",f:Ou},9:{n:"BOF",f:si},10:{n:"EOF",f:gn},12:{n:"CalcCount",f:Bn},13:{n:"CalcMode",f:Bn},14:{n:"CalcPrecision",f:kn},15:{n:"CalcRefMode",f:kn},16:{n:"CalcDelta",f:Nt},17:{n:"CalcIter",f:kn},18:{n:"Protect",f:kn},19:{n:"Password",f:Bn},20:{n:"Header",f:zi},21:{n:"Footer",f:zi},23:{n:"ExternSheet",f:Qi},24:{n:"Lbl",f:$i},25:{n:"WinProtect",f:kn},26:{n:"VerticalPageBreaks"},27:{n:"HorizontalPageBreaks"},28:{n:"Note",f:as},29:{n:"Selection"},34:{n:"Date1904",f:kn},35:{n:"ExternName",f:Ki},38:{n:"LeftMargin",f:Nt},39:{n:"RightMargin",f:Nt},40:{n:"TopMargin",f:Nt},41:{n:"BottomMargin",f:Nt},42:{n:"PrintRowCol",f:kn},43:{n:"PrintGrid",f:kn},47:{n:"FilePass",f:xl},49:{n:"Font",f:Ci},51:{n:"PrintSize",f:Bn},60:{n:"Continue"},61:{n:"Window1",f:Si},64:{n:"Backup",f:kn},65:{n:"Pane"},66:{n:"CodePage",f:Bn},77:{n:"Pls"},80:{n:"DCon"},81:{n:"DConRef"},82:{n:"DConName"},85:{n:"DefColWidth",f:Bn},89:{n:"XCT"},90:{n:"CRN"},91:{n:"FileSharing"},92:{n:"WriteAccess",f:ci},93:{n:"Obj",f:ss},94:{n:"Uncalced"},95:{n:"CalcSaveRecalc",f:kn},96:{n:"Template"},97:{n:"Intl"},99:{n:"ObjProtect",f:kn},125:{n:"ColInfo",f:Es},128:{n:"Guts",f:Ui},129:{n:"WsBool",f:ui},130:{n:"GridSet",f:Bn},131:{n:"HCenter",f:kn},132:{n:"VCenter",f:kn},133:{n:"BoundSheet8",f:hi},134:{n:"WriteProtect"},140:{n:"Country",f:vs},141:{n:"HideObj",f:Bn},144:{n:"Sort"},146:{n:"Palette",f:ms},151:{n:"Sync"},152:{n:"LPr"},153:{n:"DxGCol"},154:{n:"FnGroupName"},155:{n:"FilterMode"},156:{n:"BuiltInFnGroupCount",f:Bn},157:{n:"AutoFilterInfo"},158:{n:"AutoFilter"},160:{n:"Scl",f:Cs},161:{n:"Setup",f:Ss},174:{n:"ScenMan"},175:{n:"SCENARIO"},176:{n:"SxView"},177:{n:"Sxvd"},178:{n:"SXVI"},180:{n:"SxIvd"},181:{n:"SXLI"},182:{n:"SXPI"},184:{n:"DocRoute"},185:{n:"RecipName"},189:{n:"MulRk",f:Oi},190:{n:"MulBlank",f:Pi},193:{n:"Mms",f:gn},197:{n:"SXDI"},198:{n:"SXDB"},199:{n:"SXFDB"},200:{n:"SXDBB"},201:{n:"SXNum"},202:{n:"SxBool",f:kn},203:{n:"SxErr"},204:{n:"SXInt"},205:{n:"SXString"},206:{n:"SXDtr"},207:{n:"SxNil"},208:{n:"SXTbl"},209:{n:"SXTBRGIITM"},210:{n:"SxTbpg"},211:{n:"ObProj"},213:{n:"SXStreamID"},215:{n:"DBCell"},216:{n:"SXRng"},217:{n:"SxIsxoper"},218:{n:"BookBool",f:Bn},220:{n:"DbOrParamQry"},221:{n:"ScenarioProtect",f:kn},222:{n:"OleObjectSize"},224:{n:"XF",f:Mi},225:{n:"InterfaceHdr",f:fi},226:{n:"InterfaceEnd",f:gn},227:{n:"SXVS"},229:{n:"MergeCells",f:ns},233:{n:"BkHim"},235:{n:"MsoDrawingGroup"},236:{n:"MsoDrawing"},237:{n:"MsoDrawingSelection"},239:{n:"PhoneticInfo"},240:{n:"SxRule"},241:{n:"SXEx"},242:{n:"SxFilt"},244:{n:"SxDXF"},245:{n:"SxItm"},246:{n:"SxName"},247:{n:"SxSelect"},248:{n:"SXPair"},249:{n:"SxFmla"},251:{n:"SxFormat"},252:{n:"SST",f:vi},253:{n:"LabelSst",f:Ti},255:{n:"ExtSST",f:bi},256:{n:"SXVDEx"},259:{n:"SXFormula"},290:{n:"SXDBEx"},311:{n:"RRDInsDel"},312:{n:"RRDHead"},315:{n:"RRDChgCell"},317:{n:"RRTabId",f:Tn},318:{n:"RRDRenSheet"},319:{n:"RRSort"},320:{n:"RRDMove"},330:{n:"RRFormat"},331:{n:"RRAutoFmt"},333:{n:"RRInsertSh"},334:{n:"RRDMoveBegin"},335:{n:"RRDMoveEnd"},336:{n:"RRDInsDelBegin"},337:{n:"RRDInsDelEnd"},338:{n:"RRDConflict"},339:{n:"RRDDefName"},340:{n:"RRDRstEtxp"},351:{n:"LRng"},352:{n:"UsesELFs",f:kn},353:{n:"DSF",f:gn},401:{n:"CUsr"},402:{n:"CbUsr"},403:{n:"UsrInfo"},404:{n:"UsrExcl"},405:{n:"FileLock"},406:{n:"RRDInfo"},407:{n:"BCUsrs"},408:{n:"UsrChk"},425:{n:"UserBView"},426:{n:"UserSViewBegin"},427:{n:"UserSViewEnd"},428:{n:"RRDUserView"},429:{n:"Qsi"},430:{n:"SupBook",f:ji},431:{n:"Prot4Rev",f:kn},432:{n:"CondFmt"},433:{n:"CF"},434:{n:"DVal"},437:{n:"DConBin"},438:{n:"TxO",f:cs},439:{n:"RefreshAll",f:kn},440:{n:"HLink",f:os},441:{n:"Lel"},442:{n:"CodeName",f:Dn},443:{n:"SXFDBType"},444:{n:"Prot4RevPass",f:Bn},445:{n:"ObNoMacros"},446:{n:"Dv"},448:{n:"Excel9File",f:gn},449:{n:"RecalcId",f:gi,r:2},450:{n:"EntExU2",f:gn},512:{n:"Dimensions",f:_i},513:{n:"Blank",f:Bs},515:{n:"Number",f:Xi},516:{n:"Label",f:Ii},517:{n:"BoolErr",f:Vi},518:{n:"Formula",f:Ou},519:{n:"String",f:Ts},520:{n:"Row",f:pi},523:{n:"Index"},545:{n:"Array",f:es},549:{n:"DefaultRowHeight",f:Ei},566:{n:"Table"},574:{n:"Window2",f:wi},638:{n:"RK",f:Fi},659:{n:"Style"},1030:{n:"Formula",f:Ou},1048:{n:"BigName"},1054:{n:"Format",f:Ai},1084:{n:"ContinueBigName"},1212:{n:"ShrFmla",f:qi},2048:{n:"HLinkTooltip",f:hs},2049:{n:"WebPub"},2050:{n:"QsiSXTag"},2051:{n:"DBQueryExt"},2052:{n:"ExtString"},2053:{n:"TxtQry"},2054:{n:"Qsir"},2055:{n:"Qsif"},2056:{n:"RRDTQSIF"},2057:{n:"BOF",f:si},2058:{n:"OleDbConn"},2059:{n:"WOpt"},2060:{n:"SXViewEx"},2061:{n:"SXTH"},2062:{n:"SXPIEx"},2063:{n:"SXVDTEx"},2064:{n:"SXViewEx9"},2066:{n:"ContinueFrt"},2067:{n:"RealTimeData"},2128:{n:"ChartFrtInfo"},2129:{n:"FrtWrapper"},2130:{n:"StartBlock"},2131:{n:"EndBlock"},2132:{n:"StartObject"},2133:{n:"EndObject"},2134:{n:"CatLab"},2135:{n:"YMult"},2136:{n:"SXViewLink"},2137:{n:"PivotChartBits"},2138:{n:"FrtFontList"},2146:{n:"SheetExt"},2147:{n:"BookExt",r:12},2148:{n:"SXAddl"},2149:{n:"CrErr"},2150:{n:"HFPicture"},2151:{n:"FeatHdr",f:gn},2152:{n:"Feat"},2154:{n:"DataLabExt"},2155:{n:"DataLabExtContents"},2156:{n:"CellWatch"},2161:{n:"FeatHdr11"},2162:{n:"Feature11"},2164:{n:"DropDownObjIds"},2165:{n:"ContinueFrt11"},2166:{n:"DConn"},2167:{n:"List12"},2168:{n:"Feature12"},2169:{n:"CondFmt12"},2170:{n:"CF12"},2171:{n:"CFEx"},2172:{n:"XFCRC",f:gs,r:12},2173:{n:"XFExt",f:ec,r:12},2174:{n:"AutoFilter12"},2175:{n:"ContinueFrt12"},2180:{n:"MDTInfo"},2181:{n:"MDXStr"},2182:{n:"MDXTuple"},2183:{n:"MDXSet"},2184:{n:"MDXProp"},2185:{n:"MDXKPI"},2186:{n:"MDB"},2187:{n:"PLV"},2188:{n:"Compat12",f:kn,r:12},2189:{n:"DXF"},2190:{n:"TableStyles",r:12},2191:{n:"TableStyle"},2192:{n:"TableStyleElement"},2194:{n:"StyleExt"},2195:{n:"NamePublish"},2196:{n:"NameCmt",f:Zi,r:12},2197:{n:"SortData"},2198:{n:"Theme",f:Yf,r:12},2199:{n:"GUIDTypeLib"},2200:{n:"FnGrp12"},2201:{n:"NameFnGrp12"},2202:{n:"MTRSettings",f:rs,r:12},2203:{n:"CompressPictures",f:gn},2204:{n:"HeaderFooter"},2205:{n:"CrtLayout12"},2206:{n:"CrtMlFrt"},2207:{n:"CrtMlFrtContinue"},2211:{n:"ForceFullCalculation",f:mi},2212:{n:"ShapePropsStream"},2213:{n:"TextPropsStream"},2214:{n:"RichTextStream"},2215:{n:"CrtLayout12A"},4097:{n:"Units"},4098:{n:"Chart"},4099:{n:"Series"},4102:{n:"DataFormat"},4103:{n:"LineFormat"},4105:{n:"MarkerFormat"},4106:{n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:Bn},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:ks},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},4171:{n:"SerAuxTrend"},4174:{n:"IFmtRecord"},4175:{n:"Pos"},4176:{n:"AlRuns"},4177:{n:"BRAI"},4187:{n:"SerAuxErrBar"},4188:{n:"ClrtClient",f:ps},4189:{n:"SerFmt"},4191:{n:"Chart3DBarShape"},4192:{n:"Fbi"},4193:{n:"BopPop"},4194:{n:"AxcExt"},4195:{n:"Dat"},4196:{n:"PlotGrowth"},4197:{n:"SIIndex"},4198:{n:"GelFrame"},4199:{n:"BopPopCustom"},4200:{n:"Fbi2"},0:{n:"Dimensions",f:_i},2:{n:"BIFF2INT",f:Ds},5:{n:"BoolErr",f:Vi},7:{n:"String",f:Os},8:{n:"BIFF2ROW"},11:{n:"Index"},22:{n:"ExternCount",f:Bn},30:{n:"BIFF2FORMAT",f:Ri},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:es},37:{n:"DefaultRowHeight",f:Ei},50:{n:"BIFF2FONTXTRA",f:Ps},52:{n:"DDEObjName"},62:{n:"BIFF2WINDOW2"},67:{n:"BIFF2XF"},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:Is},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:ys},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:si},536:{n:"Lbl",f:$i},547:{n:"ExternName",f:Ki},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:si},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}};var ub=N(ob,"n");function hb(e,r,t,a){var n=+r||+ub[r];if(isNaN(n))return;var i=a||(t||[]).length||0;var s=e.next(4);s._W(2,n);s._W(2,i);if(i>0&&gr(t))e.push(t)}function db(e,r,t){if(!e)e=yr(7);e._W(2,r);e._W(2,t);e._W(2,0);e._W(1,0);return e}function vb(e,r,t,a){var n=yr(9);db(n,e,r);if(a=="e"){n._W(1,t);n._W(1,1)}else{n._W(1,t?1:0);n._W(1,0)}return n}function bb(e,r,t){var a=yr(8+2*t.length);db(a,e,r);a._W(1,t.length);a._W(t.length,t,"sbcs");return a.l<a.length?a.slice(0,a.l):a}function pb(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":var i=r.t=="d"?H(K(r.v)):r.v;if(i==(i|0)&&i>=0&&i<65536)hb(e,2,Fs(t,a,i));else hb(e,3,_s(t,a,i));return;case"b":;case"e":hb(e,5,vb(t,a,r.v,r.t));return;case"s":;case"str":hb(e,4,bb(t,a,r.v));return;}hb(e,1,db(null,t,a))}function mb(e,r,t,a,n){var i=Array.isArray(r);var s=st(r["!ref"]||"A1"),l,f="",c=[];for(var o=s.s.r;o<=s.e.r;++o){f=jr(o);for(var u=s.s.c;u<=s.e.c;++u){if(o===s.s.r)c[u]=Qr(u);l=c[u]+f;var h=i?(r[o]||[])[u]:r[l];if(!h)continue;pb(e,h,o,u,a)}}}function gb(e,r){var t=r||{};if(p!=null&&t.dense==null)t.dense=p;var a=Lr();var n=0;for(var i=0;i<e.SheetNames.length;++i)if(e.SheetNames[i]==t.sheet)n=i;if(n==0&&!!t.sheet&&e.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);hb(a,9,li(e,16,t));mb(a,e.Sheets[e.SheetNames[n]],n,t,e);hb(a,10);return a.end()}function Eb(e,r){for(var t=0;t<r["!links"].length;++t){var a=r["!links"][t];hb(e,"HLink",us(a));if(a[1].Tooltip)hb(e,"HLinkTooltip",ds(a))}delete r["!links"]}function Sb(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":var i=r.t=="d"?H(K(r.v)):r.v;hb(e,"Number",Gi(t,a,i,n));return;case"b":;case"e":hb(e,"BoolErr",Hi(t,a,r.v,n,r.t));return;case"s":;case"str":hb(e,"Label",xi(t,a,r.v,n));return;}hb(e,"Blank",Gn(t,a))}function kb(e,r,t){var a=Lr();var n=t.SheetNames[e],i=t.Sheets[n]||{};var s=(t||{}).Workbook||{};var l=(s.Sheets||[])[e]||{};var f=Array.isArray(i);var c,o="",u=[];var h=st(i["!ref"]||"A1");var d=r.biff==8,v=r.biff==5;hb(a,2057,li(t,16,r));hb(a,"CalcMode",Cn(1));hb(a,"CalcCount",Cn(100));hb(a,"CalcRefMode",wn(true));hb(a,"CalcIter",wn(false));hb(a,"CalcDelta",Lt(.001));hb(a,"CalcSaveRecalc",wn(true));hb(a,"PrintRowCol",wn(false));hb(a,"PrintGrid",wn(false));hb(a,"GridSet",Cn(1));hb(a,"Guts",Wi([0,0]));hb(a,"HCenter",wn(false));hb(a,"VCenter",wn(false));hb(a,"Dimensions",Di(h,r));if(d)i["!links"]=[];for(var b=h.s.r;b<=h.e.r;++b){o=jr(b);for(var p=h.s.c;p<=h.e.c;++p){if(b===h.s.r)u[p]=Qr(p);c=u[p]+o;var m=f?(i[b]||[])[p]:i[c];if(!m)continue;Sb(a,m,b,p,r);if(d&&m.l)i["!links"].push([c,m.l])}}var g=l.CodeName||l.name||n;if(d&&s.Views)hb(a,"Window2",Bi(s.Views[0]));if(d)hb(a,"MergeCells",is(i["!merges"]||[]));if(d)Eb(a,i);hb(a,"CodeName",On(g,r));hb(a,"EOF");return a.end()}function wb(e,r,t){var a=Lr();var n=(e.Workbook||{}).WBProps||{};var i=t.biff==8,s=t.biff==5;hb(a,2057,li(e,5,t));if(t.bookType=="xla")hb(a,"Addin");hb(a,"InterfaceHdr",i?Cn(1200):null);hb(a,"Mms",En(2));if(s)hb(a,"ToolbarHdr");if(s)hb(a,"ToolbarEnd");hb(a,"InterfaceEnd");hb(a,"WriteAccess",oi("SheetJS",t));hb(a,"CodePage",Cn(i?1200:1252));if(i)hb(a,"DSF",Cn(0));hb(a,"RRTabId",ws(e.SheetNames.length));if(i&&e.vbaraw){hb(a,"ObProj");var l=n.CodeName||"ThisWorkbook";hb(a,"CodeName",On(l,t))}hb(a,"BuiltInFnGroupCount",Cn(17));hb(a,"WinProtect",wn(false));hb(a,"Protect",wn(false));hb(a,"Password",Cn(0));if(i)hb(a,"Prot4Rev",wn(false));if(i)hb(a,"Prot4RevPass",Cn(0));hb(a,"Window1",ki(t));hb(a,"Backup",wn(false));hb(a,"HideObj",Cn(0));hb(a,"Date1904",wn(Xd(e)=="true"));hb(a,"CalcPrecision",wn(true));if(i)hb(a,"RefreshAll",wn(false));hb(a,"BookBool",Cn(0));if(i)hb(a,"UsesELFs",wn(false));var f=a.end();var c=Lr();if(i)hb(c,"Country",bs());hb(c,"EOF");var o=c.end();var u=Lr();var h=0,d=0;for(d=0;d<e.SheetNames.length;++d)h+=(i?12:11)+(i?2:1)*e.SheetNames[d].length;var v=f.length+h+o.length;for(d=0;d<e.SheetNames.length;++d){hb(u,"BoundSheet8",di({pos:v,hs:0,dt:0,name:e.SheetNames[d]},t));v+=r[d].length}var b=u.end();if(h!=b.length)throw new Error("BS8 "+h+" != "+b.length);var p=[];if(f.length)p.push(f);if(b.length)p.push(b);if(o.length)p.push(o);return Ze([p])}function Bb(e,r){var t=r||{};var a=[];for(var n=0;n<e.SheetNames.length;++n)a[a.length]=kb(n,t,e);a.unshift(wb(e,a,t));return Ze([a])}function Cb(e,r){var t=r||{};switch(t.biff||2){case 8:;case 5:return Bb(e,r);case 4:;case 3:;case 2:return gb(e,r);}throw new Error("invalid type "+t.bookType+" for BIFF")}var Tb=function(){function e(e,r){var t=r||{};if(p!=null&&t.dense==null)t.dense=p;var a=t.dense?[]:{};var n=e.match(/<table/i);if(!n)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i);var s=n.index,l=i&&i.index||e.length;var f=ee(e.slice(s,l),/(:?<tr[^>]*>)/i,"<tr>");var c=-1,o=0,u=0,h=0;var d={s:{r:1e7,c:1e7},e:{r:0,c:0}};var v=[],b=0;for(s=0;s<f.length;++s){var m=f[s].trim();var g=m.substr(0,3).toLowerCase();if(g=="<tr"){++c;o=0;continue}if(g!="<td")continue;var E=m.split(/<\/td>/i);for(l=0;l<E.length;++l){var S=E[l].trim();if(S.substr(0,3).toLowerCase()!="<td")continue;var k=S,w=0;while(k.charAt(0)=="<"&&(w=k.indexOf(">"))>-1)k=k.slice(w+1);var B=me(S.slice(0,S.indexOf(">")));h=B.colspan?+B.colspan:1;if((u=+B.rowspan)>0||h>1)v.push({s:{r:c,c:o},e:{r:c+(u||1)-1,c:o+h-1}});var C=B.t||"";if(!k.length){o+=h;continue}k=Le(ke(k));if(d.s.r>c)d.s.r=c;if(d.e.r<c)d.e.r=c;if(d.s.c>o)d.s.c=o;if(d.e.c<o)d.e.c=o;if(!k.length)continue;var T={t:"s",v:k};if(t.raw||!k.trim().length||C=="s"){}else if(k==="TRUE")T={t:"b",v:true};else if(k==="FALSE")T={t:"b",v:false};else if(!isNaN(J(k)))T={t:"n",v:J(k)};else if(!isNaN(Z(k).getDate())){T={t:"d",v:K(k)};if(!t.cellDates)T={t:"n",v:H(T.v)};T.z=t.dateNF||x._table[14]}if(t.dense){if(!a[c])a[c]=[];a[c][o]=T}else a[rt({r:c,c:o})]=T;o+=h}}a["!ref"]=it(d);return a}function r(r,t){return ct(e(r,t),t)}function t(e,r,t,a){var n=e["!merges"]||[];var i=[];var s="<td>"+(a.editable?'<span contenteditable="true"></span>':"")+"</td>";for(var l=r.s.c;l<=r.e.c;++l){var f=0,c=0;for(var o=0;o<n.length;++o){if(n[o].s.r>t||n[o].s.c>l)continue;if(n[o].e.r<t||n[o].e.c<l)continue;if(n[o].s.r<t||n[o].s.c<l){f=-1;break}f=n[o].e.r-n[o].s.r+1;c=n[o].e.c-n[o].s.c+1;break}if(f<0)continue;var u=rt({r:t,c:l});var h=a.dense?(e[t]||[])[l]:e[u];if(!h||h.v==null){i.push(s);continue}var d=h.h||Ce(h.w||(ft(h),h.w)||"");var v={};if(f>1)v.rowspan=f;if(c>1)v.colspan=c;v.t=h.t;if(a.editable)d='<span contenteditable="true">'+d+"</span>";v.id="sjs-"+u;i.push(ze("td",d,v))}var b="<tr>";return b+i.join("")+"</tr>"}function a(e,r,t){var a=[];return a.join("")+"<table>"}var n='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>';var i="</body></html>";function s(e,r,s){var l=r||{};var f=l.header!=null?l.header:n;var c=l.footer!=null?l.footer:i;var o=[f];var u=nt(e["!ref"]);l.dense=Array.isArray(e);o.push(a(e,u,l));for(var h=u.s.r;h<=u.e.r;++h)o.push(t(e,u,h,l));o.push("</table>"+c);return o.join("")}return{to_workbook:r,to_sheet:e,_row:t,BEGIN:n,END:i,_preamble:a,from_sheet:s}}();function Ib(e,r){var t=r||{};if(p!=null)t.dense=p;var a=t.dense?[]:{};var n=e.getElementsByTagName("tr");var i={s:{r:0,c:0},e:{r:n.length-1,c:0}};var s=[],l=0;var f=0,c=0,o=0,u=0,h=0;for(;f<n.length;++f){var d=n[f];var v=d.children;for(c=o=0;c<v.length;++c){var b=v[c],m=Le(v[c].innerHTML);for(l=0;l<s.length;++l){var g=s[l];if(g.s.c==o&&g.s.r<=f&&f<=g.e.r){o=g.e.c+1;l=-1}}h=+b.getAttribute("colspan")||1;if((u=+b.getAttribute("rowspan"))>0||h>1)s.push({s:{r:f,c:o},e:{r:f+(u||1)-1,c:o+h-1}});var E={t:"s",v:m};var S=b.getAttribute("t")||"";if(m!=null){if(m.length==0)E.t=S||"z";else if(t.raw||m.trim().length==0||S=="s"){}else if(m==="TRUE")E={t:"b",v:true};else if(m==="FALSE")E={t:"b",v:false};else if(!isNaN(J(m)))E={t:"n",v:J(m)};else if(!isNaN(Z(m).getDate())){E={t:"d",v:K(m)};if(!t.cellDates)E={t:"n",v:H(E.v)};E.z=t.dateNF||x._table[14]}}if(t.dense){if(!a[f])a[f]=[];a[f][o]=E}else a[rt({c:o,r:f})]=E;if(i.e.c<o)i.e.c=o;o+=h}}a["!merges"]=s;a["!ref"]=it(i);return a}function xb(e,r){return ct(Ib(e,r),r)}var Ab=function(){var e=function(e,r){return ke(e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n").replace(/<[^>]*>/g,""))};var r={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};return function t(a,n){var i=n||{};if(p!=null&&i.dense==null)i.dense=p;var s=Wv(a);var l=[],f;var c;var o={name:""},u="",h=0;var d;var v;var b={},m=[];var g=i.dense?[]:{};var E,S;var k={value:""};var w="",B=0,C;var T=-1,I=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}};var A=0;var R={};var _=[],D={},F=0,O=0;var P=[],y=1,N=1;var L=[];var M={Names:[]};var U={};var W=["",""];var V=[],X={};var z="",j=0;var Y=false,Q=false;var J=0;Vv.lastIndex=0;s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");while(E=Vv.exec(s))switch(E[3]=E[3].replace(/_.*$/,"")){case"table":;case"工作表":if(E[1]==="/"){if(x.e.c>=x.s.c&&x.e.r>=x.s.r)g["!ref"]=it(x);if(_.length)g["!merges"]=_;if(P.length)g["!rows"]=P;d.name=De(d["名称"]||d.name);m.push(d.name);b[d.name]=g;Q=false}else if(E[0].charAt(E[0].length-2)!=="/"){d=me(E[0],false);T=I=-1;x.s.r=x.s.c=1e7;x.e.r=x.e.c=0;g=i.dense?[]:{};_=[];P=[];Q=true}break;case"table-row-group":if(E[1]==="/")--A;else++A;break;case"table-row":;case"行":if(E[1]==="/"){T+=y;y=1;break}v=me(E[0],false);if(v["行号"])T=v["行号"]-1;else if(T==-1)T=0;y=+v["number-rows-repeated"]||1;if(y<10)for(J=0;J<y;++J)if(A>0)P[T+J]={level:A};I=-1;break;case"covered-table-cell":++I;if(i.sheetStubs){if(i.dense){if(!g[T])g[T]=[];g[T][I]={t:"z"}}else g[rt({r:T,c:I})]={t:"z"}}break;case"table-cell":;case"数据":if(E[0].charAt(E[0].length-2)==="/"){++I;k=me(E[0],false);N=parseInt(k["number-columns-repeated"]||"1",10);S={t:"z",v:null};if(k.formula&&i.cellFormula!=false)S.f=Gu(ke(k.formula));if((k["数据类型"]||k["value-type"])=="string"){S.t="s";S.v=ke(k["string-value"]||"");if(i.dense){if(!g[T])g[T]=[];g[T][I]=S}else{g[rt({r:T,c:I})]=S}}I+=N-1}else if(E[1]!=="/"){++I;N=1;if(I>x.e.c)x.e.c=I;if(T>x.e.r)x.e.r=T;if(I<x.s.c)x.s.c=I;if(T<x.s.r)x.s.r=T;k=me(E[0],false);V=[];X={};S={t:k["数据类型"]||k["value-type"],v:null};if(i.cellFormula){if(k.formula)k.formula=ke(k.formula);if(k["number-matrix-columns-spanned"]&&k["number-matrix-rows-spanned"]){F=parseInt(k["number-matrix-rows-spanned"],10)||0;O=parseInt(k["number-matrix-columns-spanned"],10)||0;D={s:{r:T,c:I},e:{r:T+F-1,c:I+O-1}};S.F=it(D);L.push([D,S.F])}if(k.formula)S.f=Gu(k.formula);else for(J=0;J<L.length;++J)if(T>=L[J][0].s.r&&T<=L[J][0].e.r)if(I>=L[J][0].s.c&&I<=L[J][0].e.c)S.F=L[J][1]}if(k["number-columns-spanned"]||k["number-rows-spanned"]){F=parseInt(k["number-rows-spanned"],10)||0;O=parseInt(k["number-columns-spanned"],10)||0;D={s:{r:T,c:I},e:{r:T+F-1,c:I+O-1}};_.push(D)}if(k["number-columns-repeated"])N=parseInt(k["number-columns-repeated"],10);switch(S.t){case"boolean":S.t="b";S.v=_e(k["boolean-value"]);break;case"float":S.t="n";S.v=parseFloat(k.value);break;case"percentage":S.t="n";S.v=parseFloat(k.value);break;case"currency":S.t="n";S.v=parseFloat(k.value);break;case"date":S.t="d";S.v=K(k["date-value"]);if(!i.cellDates){S.t="n";S.v=H(S.v)}S.z="m/d/yy";break;case"time":S.t="n";S.v=G(k["time-value"])/86400;break;case"number":S.t="n";S.v=parseFloat(k["数据数值"]);break;default:if(S.t==="string"||S.t==="text"||!S.t){S.t="s";if(k["string-value"]!=null)w=ke(k["string-value"])}else throw new Error("Unsupported value type "+S.t);}}else{Y=false;if(S.t==="s"){S.v=w||"";Y=B==0}if(U.Target)S.l=U;if(V.length>0){S.c=V;V=[]}if(w&&i.cellText!==false)S.w=w;if(!Y||i.sheetStubs){if(!(i.sheetRows&&i.sheetRows<T)){for(var Z=0;Z<y;++Z){N=parseInt(k["number-columns-repeated"]||"1",10);if(i.dense){if(!g[T+Z])g[T+Z]=[];g[T+Z][I]=Z==0?S:$(S);while(--N>0)g[T+Z][I+N]=$(S)}else{g[rt({r:T+Z,c:I})]=S;while(--N>0)g[rt({r:T+Z,c:I+N})]=$(S)}if(x.e.c<=I)x.e.c=I}}}N=parseInt(k["number-columns-repeated"]||"1",10);I+=N-1;N=0;S={};w=""}U={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":if(E[1]==="/"){if((f=l.pop())[0]!==E[3])throw"Bad state: "+f}else if(E[0].charAt(E[0].length-2)!=="/")l.push([E[3],true]);break;case"annotation":if(E[1]==="/"){if((f=l.pop())[0]!==E[3])throw"Bad state: "+f;X.t=w;X.a=z;V.push(X)}else if(E[0].charAt(E[0].length-2)!=="/"){l.push([E[3],false])}z="";j=0;w="";B=0;break;case"creator":if(E[1]==="/"){z=s.slice(j,E.index)}else j=E.index+E[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":;case"chart":if(E[1]==="/"){if((f=l.pop())[0]!==E[3])throw"Bad state: "+f}else if(E[0].charAt(E[0].length-2)!=="/")l.push([E[3],false]);w="";B=0;break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":;case"percentage-style":;case"date-style":;case"time-style":if(E[1]==="/"){R[o.name]=u;if((f=l.pop())[0]!==E[3])throw"Bad state: "+f}else if(E[0].charAt(E[0].length-2)!=="/"){u="";o=me(E[0],false);l.push([E[3],true])}break;case"script":break;case"libraries":break;case"automatic-styles":break;case"master-styles":break;case"default-style":;case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(l[l.length-1][0]){case"time-style":;case"date-style":c=me(E[0],false);u+=r[E[3]][c.style==="long"?1:0];break;}break;case"fraction":break;case"day":;case"month":;case"year":;case"era":;case"day-of-week":;case"week-of-year":;case"quarter":;case"hours":;case"minutes":;case"seconds":;case"am-pm":switch(l[l.length-1][0]){case"time-style":;case"date-style":c=me(E[0],false);u+=r[E[3]][c.style==="long"?1:0];break;}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(E[0].slice(-2)==="/>")break;else if(E[1]==="/")switch(l[l.length-1][0]){case"number-style":;case"date-style":;case"time-style":u+=s.slice(h,E.index);break;}else h=E.index+E[0].length;break;case"named-range":c=me(E[0],false);W=ju(c["cell-range-address"]);var q={Name:c.name,Ref:W[0]+"!"+W[1]};if(Q)q.Sheet=m.length;M.Names.push(q);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":;case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(E[1]==="/"&&(!k||!k["string-value"]))w=(w.length>0?w+"\n":"")+e(s.slice(B,E.index),C);else{C=me(E[0],false);B=E.index+E[0].length}break;case"s":break;case"database-range":if(E[1]==="/")break;try{W=ju(me(E[0])["target-range-address"]);b[W[0]]["!autofilter"]={ref:W[1]}}catch(ee){}break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"print-date":;case"generator":;case"document-statistic":;case"user-defined":;case"editing-duration":;case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":if(E[1]!=="/"){U=me(E[0],false);if(!U.href)break;U.Target=U.href;delete U.href;if(U.Target.charAt(0)=="#"&&U.Target.indexOf(".")>-1){W=ju(U.Target.slice(1));U.Target="#"+W[0]+"!"+W[1]}}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(E[2]){case"dc:":;case"calcext:":;case"loext:":;case"ooo:":;case"chartooo:":;case"draw:":;case"style:":;case"chart:":;case"form:":;case"uof:":;case"表:":;case"字:":break;default:if(i.WTF)throw new Error(E);};}var re={Sheets:b,SheetNames:m,Workbook:M};if(i.bookSheets)delete re.Sheets;return re}}();function Rb(e,r){r=r||{};var t=!!ne(e,"objectdata");if(t)var a=Aa(se(e,"META-INF/manifest.xml"),r);var n=le(e,"content.xml");if(!n)throw new Error("Missing content.xml in "+(t?"ODS":"UOF")+" file");var i=Ab(t?n:De(n),r);if(ne(e,"meta.xml"))i.Props=Na(se(e,"meta.xml"));return i}function _b(e,r){return Ab(e,r)}var Db=function(){var e="<office:document-styles "+Ge({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+"></office:document-styles>";return function r(t,a){return he+e}}();var Fb=function(){var e=function(e){return Ce(e).replace(/  +/g,function(e){return'<text:s text:c="'+e.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"<text:line-break/>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")};var r="          <table:table-cell />\n";var t="          <table:covered-table-cell/>\n";var a=function(a,n,i,s){var l=[];l.push('      <table:table table:name="'+Ce(n.SheetNames[i])+'">\n');var f=0,c=0,o=nt(a["!ref"]);var u=a["!merges"]||[],h=0;var d=Array.isArray(a);for(f=0;f<o.s.r;++f)l.push("        <table:table-row></table:table-row>\n");for(;f<=o.e.r;++f){l.push("        <table:table-row>\n");for(c=0;c<o.s.c;++c)l.push(r);for(;c<=o.e.c;++c){var v=false,b={},p="";for(h=0;h!=u.length;++h){if(u[h].s.c>c)continue;if(u[h].s.r>f)continue;if(u[h].e.c<c)continue;if(u[h].e.r<f)continue;if(u[h].s.c!=c||u[h].s.r!=f)v=true;b["table:number-columns-spanned"]=u[h].e.c-u[h].s.c+1;b["table:number-rows-spanned"]=u[h].e.r-u[h].s.r+1;break}if(v){l.push(t);continue}var m=rt({r:f,c:c}),g=d?(a[f]||[])[c]:a[m];if(g&&g.f){b["table:formula"]=Ce(zu(g.f));if(g.F){if(g.F.substr(0,m.length)==m){var E=nt(g.F);b["table:number-matrix-columns-spanned"]=E.e.c-E.s.c+1;b["table:number-matrix-rows-spanned"]=E.e.r-E.s.r+1}}}if(!g){l.push(r);continue}switch(g.t){case"b":p=g.v?"TRUE":"FALSE";b["office:value-type"]="boolean";b["office:boolean-value"]=g.v?"true":"false";break;case"n":p=g.w||String(g.v||0);b["office:value-type"]="float";b["office:value"]=g.v||0;break;case"s":;case"str":p=g.v;b["office:value-type"]="string";break;case"d":p=g.w||K(g.v).toISOString();b["office:value-type"]="date";b["office:date-value"]=K(g.v).toISOString();b["table:style-name"]="ce1";break;default:l.push(r);continue;}var S=e(p);if(g.l&&g.l.Target){var k=g.l.Target;k=k.charAt(0)=="#"?"#"+Ku(k.slice(1)):k;S=ze("text:a",S,{"xlink:href":k})}l.push("          "+ze("table:table-cell",ze("text:p",S,{}),b)+"\n")}l.push("        </table:table-row>\n")}l.push("      </table:table>\n");return l.join("")};var n=function(e){e.push(" <office:automatic-styles>\n");e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n');e.push('   <number:month number:style="long"/>\n');e.push("   <number:text>/</number:text>\n");e.push('   <number:day number:style="long"/>\n');e.push("   <number:text>/</number:text>\n");e.push("   <number:year/>\n");e.push("  </number:date-style>\n");e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n');e.push(" </office:automatic-styles>\n")};return function i(e,r){var t=[he];var i=Ge({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0",
"xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=Ge({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods")t.push("<office:document"+i+s+">\n");else t.push("<office:document-content"+i+">\n");n(t);t.push("  <office:body>\n");t.push("    <office:spreadsheet>\n");for(var l=0;l!=e.SheetNames.length;++l)t.push(a(e.Sheets[e.SheetNames[l]],e,l,r));t.push("    </office:spreadsheet>\n");t.push("  </office:body>\n");if(r.bookType=="fods")t.push("</office:document>");else t.push("</office:document-content>");return t.join("")}}();function Ob(e,r){if(r.bookType=="fods")return Fb(e,r);var t=new ce;var a="";var n=[];var i=[];a="mimetype";t.file(a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";t.file(a,Fb(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";t.file(a,Db(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";t.file(a,Oa(e,r));n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";t.file(a,Fa(i,r));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";t.file(a,Ra(n,r));return t}function Pb(e,r){if(!r)return 0;var t=e.SheetNames.indexOf(r);if(t==-1)throw new Error("Sheet not found: "+r);return t}function yb(e){return function r(t,a){var n=Pb(t,a.sheet);return e.from_sheet(t.Sheets[t.SheetNames[n]],a,t)}}var Nb=yb(Tb);var Lb=yb({from_sheet:Cp});var Mb=yb(Ls);var Ub=yb(Ms);var Wb=yb(Ws);var Vb=yb(Al);var Hb=yb({from_sheet:Tp});var Xb=yb(Ns);var Gb=yb(Us);function zb(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}var jb=zb([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]]);var Kb=zb([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]]);function Yb(e){if(ka.WS.indexOf(e)>-1)return"sheet";if(ka.CS&&e==ka.CS)return"chart";if(ka.DS&&e==ka.DS)return"dialog";if(ka.MS&&e==ka.MS)return"macro";return e&&e.length?e:"sheet"}function $b(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Yb(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function Qb(e,r,t,a,n,i,s,l,f,c,o,u){try{i[a]=Ba(le(e,t,true),r);var h=se(e,r);switch(l){case"sheet":s[a]=dv(h,r,n,f,i[a],c,o,u);break;case"chart":var d=vv(h,r,n,f,i[a],c,o,u);s[a]=d;if(!d||!d["!chart"])break;var v=ue(d["!chart"].Target,r);var b=wa(v);var p=cc(le(e,v,true),Ba(le(e,b,true),v));var m=ue(p,v);var g=wa(m);d=Ad(le(e,m,true),m,f,Ba(le(e,g,true),m),c,d);break;case"macro":s[a]=bv(h,r,n,f,i[a],c,o,u);break;case"dialog":s[a]=pv(h,r,n,f,i[a],c,o,u);break;}}catch(E){if(f.WTF)throw E}}var Jb=function $p(e){return e.slice(-1)!="/"};function Zb(e){return e.charAt(0)=="/"?e.slice(1):e}function qb(e,r){A(x);r=r||{};jb(r);if(ne(e,"META-INF/manifest.xml"))return Rb(e,r);if(ne(e,"objectdata.xml"))return Rb(e,r);if(ne(e,"Index/Document.iwa"))throw new Error("Unsupported NUMBERS file");var t=y(e.files).filter(Jb).sort();var a=ma(le(e,"[Content_Types].xml"),r);var n=false;var i,s;if(a.workbooks.length===0){s="xl/workbook.xml";if(se(e,s,true))a.workbooks.push(s)}if(a.workbooks.length===0){s="xl/workbook.bin";if(!se(e,s,true))throw new Error("Could not find workbook");a.workbooks.push(s);n=true}if(a.workbooks[0].slice(-3)=="bin")n=true;var l={};var f={};if(!r.bookSheets&&!r.bookProps){Yu=[];if(a.sst)Yu=Ev(se(e,Zb(a.sst)),a.sst,r);if(r.cellStyles&&a.themes.length)l=gv(le(e,a.themes[0].replace(/^\//,""),true)||"",a.themes[0],r);if(a.style)f=mv(se(e,Zb(a.style)),a.style,l,r)}var c=a.links.map(function(t){return wv(se(e,Zb(t)),t,r)});var o=hv(se(e,Zb(a.workbooks[0])),a.workbooks[0],r);var u={},h="";if(a.coreprops.length){h=se(e,Zb(a.coreprops[0]),true);if(h)u=Na(h);if(a.extprops.length!==0){h=se(e,Zb(a.extprops[0]),true);if(h)Va(h,u,r)}}var d={};if(!r.bookSheets||r.bookProps){if(a.custprops.length!==0){h=le(e,Zb(a.custprops[0]),true);if(h)d=za(h,r)}}var v={};if(r.bookSheets||r.bookProps){if(o.Sheets)i=o.Sheets.map(function R(e){return e.name});else if(u.Worksheets&&u.SheetNames.length>0)i=u.SheetNames;if(r.bookProps){v.Props=u;v.Custprops=d}if(r.bookSheets&&typeof i!=="undefined")v.SheetNames=i;if(r.bookSheets?v.SheetNames:r.bookProps)return v}i={};var b={};if(r.bookDeps&&a.calcchain)b=kv(se(e,Zb(a.calcchain)),a.calcchain,r);var p=0;var m={};var g,E;{var S=o.Sheets;u.Worksheets=S.length;u.SheetNames=[];for(var k=0;k!=S.length;++k){u.SheetNames[k]=S[k].name}}var w=n?"bin":"xml";var B="xl/_rels/workbook."+w+".rels";var C=Ba(le(e,B,true),B);if(C)C=$b(C,o.Sheets);var T=se(e,"xl/worksheets/sheet.xml",true)?1:0;for(p=0;p!=u.Worksheets;++p){var I="sheet";if(C&&C[p]){g="xl/"+C[p][1].replace(/[\/]?xl\//,"");I=C[p][2]}else{g="xl/worksheets/sheet"+(p+1-T)+"."+w;g=g.replace(/sheet0\./,"sheet.")}E=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");Qb(e,g,E,u.SheetNames[p],p,m,i,I,r,o,l,f)}if(a.comments)hc(e,a.comments,i,m,r);v={Directory:a,Workbook:o,Props:u,Custprops:d,Deps:b,Sheets:i,SheetNames:u.SheetNames,Strings:Yu,Styles:f,Themes:l,SSF:x.get_table()};if(r.bookFiles){v.keys=t;v.files=e.files}if(r.bookVBA){if(a.vba.length>0)v.vbaraw=se(e,Zb(a.vba[0]),true);else if(a.defaults&&a.defaults.bin==="application/vnd.ms-office.vbaProject")v.vbaraw=se(e,"xl/vbaProject.bin",true)}return v}function ep(e,r){var t=r||{};var a="/!DataSpaces/Version";var n=P.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=ll(n.content);a="/!DataSpaces/DataSpaceMap";n=P.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=cl(n.content);if(s.length!==1||s[0].comps.length!==1||s[0].comps[0].t!==0||s[0].name!=="StrongEncryptionDataSpace"||s[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace";n=P.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var l=ol(n.content);if(l.length!=1||l[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary";n=P.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var f=hl(n.content);a="/EncryptionInfo";n=P.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=bl(n.content);a="/EncryptedPackage";n=P.find(e,a);if(!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(c[0]==4&&typeof decrypt_agile!=="undefined")return decrypt_agile(c[1],n.content,t.password||"",t);if(c[0]==2&&typeof decrypt_std76!=="undefined")return decrypt_std76(c[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function rp(e,r){oc=1024;if(r.bookType=="ods")return Ob(e,r);if(e&&!e.SSF){e.SSF=x.get_table()}if(e&&e.SSF){A(x);x.load_table(e.SSF);r.revssf=M(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;var t=r.bookType=="xlsb"?"bin":"xml";var a=Tc.indexOf(r.bookType)>-1;var n=pa();Kb(r=r||{});var i=new ce;var s="",l=0;r.cellXfs=[];qu(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";i.file(s,Ua(e.Props,r));n.coreprops.push(s);Ia(r.rels,2,s,ka.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else e.Props.SheetNames=e.SheetNames.map(function(r,t){return[(e.Workbook.Sheets[t]||{}).Hidden!=2,r]}).filter(function(e){return e[0]}).map(function(e){return e[1]});e.Props.Worksheets=e.Props.SheetNames.length;i.file(s,Xa(e.Props,r));n.extprops.push(s);Ia(r.rels,3,s,ka.EXT_PROPS);if(e.Custprops!==e.Props&&y(e.Custprops||{}).length>0){s="docProps/custom.xml";i.file(s,Ka(e.Custprops,r));n.custprops.push(s);Ia(r.rels,4,s,ka.CUST_PROPS)}s="xl/workbook."+t;i.file(s,Bv(e,s,r));n.workbooks.push(s);Ia(r.rels,1,s,ka.WB);for(l=1;l<=e.SheetNames.length;++l){var f={"!id":{}};var c=e.Sheets[e.SheetNames[l-1]];var o=(c||{})["!type"]||"sheet";switch(o){case"chart":;default:s="xl/worksheets/sheet"+l+"."+t;i.file(s,Cv(l-1,s,r,e,f));n.sheets.push(s);Ia(r.wbrels,-1,"worksheets/sheet"+l+"."+t,ka.WS[0]);}if(c){var u=c["!comments"];if(u&&u.length>0){var h="xl/comments"+l+"."+t;i.file(h,Av(u,h,r));n.comments.push(h);Ia(f,-1,"../comments"+l+"."+t,ka.CMNT)}if(c["!legacy"]){i.file("xl/drawings/vmlDrawing"+l+".vml",uc(l,c["!comments"]))}delete c["!comments"];delete c["!legacy"]}if(f["!id"].rId1)i.file(wa(s),Ta(f))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;i.file(s,xv(r.Strings,s,r));n.strs.push(s);Ia(r.wbrels,-1,"sharedStrings."+t,ka.SST)}s="xl/theme/theme1.xml";i.file(s,Kf(e.Themes,r));n.themes.push(s);Ia(r.wbrels,-1,"theme/theme1.xml",ka.THEME);s="xl/styles."+t;i.file(s,Iv(e,s,r));n.styles.push(s);Ia(r.wbrels,-1,"styles."+t,ka.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";i.file(s,e.vbaraw);n.vba.push(s);Ia(r.wbrels,-1,"vbaProject.bin",ka.VBA)}i.file("[Content_Types].xml",Sa(n,r));i.file("_rels/.rels",Ta(r.rels));i.file("xl/_rels/workbook."+t+".rels",Ta(r.wbrels));delete r.revssf;delete r.ssf;return i}function tp(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3]];case"base64":t=g.decode(e.substr(0,24));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]}function ap(e,r){if(P.find(e,"EncryptedPackage"))return ep(e,r);return sb(e,r)}function np(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=E&&Buffer.isBuffer(e)?"buffer":"base64";switch(n.type){case"base64":t=new ce(a,{base64:true});break;case"binary":;case"array":t=new ce(a,{base64:false});break;case"buffer":t=new ce(a);break;default:throw new Error("Unrecognized type "+n.type);}return qb(t,n)}function ip(e,r){var t=0;e:while(t<e.length)switch(e.charCodeAt(t)){case 10:;case 13:;case 32:++t;break;case 60:return Xv(e.slice(t),r);default:break e;}return Ws.to_workbook(e,r)}function sp(e,r){var t="",a=tp(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=Y(e);break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=De(t);return ip(t,r)}function lp(e,r){var t=e;if(r.type=="base64")t=g.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";return ip(t,r)}function fp(e){return!e.match(/[^\x00-\x7F]/)?e:Fe(e)}function cp(e,r,t,a){if(a){t.type="string";return Ws.to_workbook(e,t)}return Ws.to_workbook(r,t)}function op(e,r){o();if(typeof ArrayBuffer!=="undefined"&&e instanceof ArrayBuffer)return op(new Uint8Array(e),r);var t=e,a=[0,0,0,0],n=false;var i=r||{};$u={};if(i.dateNF)$u.dateNF=i.dateNF;if(!i.type)i.type=E&&Buffer.isBuffer(e)?"buffer":"base64";if(i.type=="file"){i.type="buffer";t=fe.readFileSync(e)}if(i.type=="string"){n=true;i.type="binary";t=fp(e)}switch((a=tp(t,i))[0]){case 208:return ap(P.read(t,i),i);case 9:return sb(t,i);case 60:return Xv(t,i);case 73:if(a[1]===68)return Vs(t,i);break;case 84:if(a[1]===65&&a[2]===66&&a[3]===76)return Ms.to_workbook(t,i);break;case 80:if(a[1]===75&&a[2]<32&&a[3]<32)return np(t,i);break;case 239:return a[3]===60?Xv(t,i):cp(e,t,i,n);case 255:if(a[1]===254){return lp(t,i)}break;case 0:if(a[1]===0&&a[2]>=2&&a[3]===0)return Hs.to_workbook(t,i);break;case 3:;case 131:;case 139:;case 140:return Ns.to_workbook(t,i);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return Al.to_workbook(t,i);break;case 10:;case 13:;case 32:return sp(t,i);}if(a[2]<=12&&a[3]<=31)return Ns.to_workbook(t,i);if(32>a[0]||a[0]>127)throw new Error("Unsupported file "+a.join("|"));return cp(e,t,i,n)}function up(e,r){var t=r||{};t.type="file";return op(e,t)}function hp(e,r){var t=r||{};var a=rp(e,t);var n={};if(t.compression)n.compression="DEFLATE";switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+" files");case"buffer":;case"file":n.type="nodebuffer";break;default:throw new Error("Unrecognized type "+t.type);}if(t.type==="file")return fe.writeFileSync(t.file,a.generate(n));var i=a.generate(n);return t.type=="string"?De(i):i}function dp(e,r){var t=r||{};var a=lb(e,t);switch(t.type){case"base64":;case"binary":break;case"buffer":;case"array":t.type="";break;case"file":return fe.writeFileSync(t.file,P.write(a,{type:"buffer"}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+" files");default:throw new Error("Unrecognized type "+t.type);}return P.write(a,t)}function vp(e,r,t){if(!t)t="";var a=t+e;switch(r.type){case"base64":return g.encode(Fe(a));case"binary":return Fe(a);case"string":return e;case"file":return fe.writeFileSync(r.file,a,"utf8");case"buffer":{if(E)return new Buffer(a,"utf8");else return vp(a,{type:"binary"}).split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function bp(e,r){switch(r.type){case"base64":return g.encode(e);case"binary":return e;case"string":return e;case"file":return fe.writeFileSync(r.file,e,"binary");case"buffer":{if(E)return new Buffer(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function pp(e,r){switch(r.type){case"string":;case"base64":;case"binary":var t="";for(var a=0;a<e.length;++a)t+=String.fromCharCode(e[a]);return r.type=="base64"?g.encode(t):r.type=="string"?De(t):t;case"file":return fe.writeFileSync(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type);}}function mp(e,r){Kd(e);var t=r||{};if(t.type=="array"){t.type="binary";var a=mp(e,t);t.type="array";return w(a)}switch(t.bookType||"xlsb"){case"xml":;case"xlml":return vp(qv(e,t),t);case"slk":;case"sylk":return vp(Mb(e,t),t);case"html":return vp(Nb(e,t),t);case"txt":return bp(Hb(e,t),t);case"csv":return vp(Lb(e,t),t,"\ufeff");case"dif":return vp(Ub(e,t),t);case"dbf":return pp(Xb(e,t),t);case"prn":return vp(Wb(e,t),t);case"rtf":return vp(Vb(e,t),t);case"eth":return vp(Gb(e,t),t);case"fods":return vp(Ob(e,t),t);case"biff2":if(!t.biff)t.biff=2;case"biff3":if(!t.biff)t.biff=3;case"biff4":if(!t.biff)t.biff=4;return pp(Cb(e,t),t);case"biff5":if(!t.biff)t.biff=5;case"biff8":;case"xla":;case"xls":if(!t.biff)t.biff=8;return dp(e,t);case"xlsx":;case"xlsm":;case"xlam":;case"xlsb":;case"ods":return hp(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|");}}function gp(e){if(e.bookType)return;var r={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"};var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();if(t.match(/^\.[a-z]+$/))e.bookType=t.slice(1);e.bookType=r[e.bookType]||e.bookType}function Ep(e,r,t){var a=t||{};a.type="file";a.file=r;gp(a);return mp(e,a)}function Sp(e,r,t,a){var n=t||{};n.type="file";n.file=e;gp(n);n.type="buffer";var i=a;if(!(i instanceof Function))i=t;return fe.writeFile(e,mp(r,n),i)}function kp(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},a=0,n=1,i=[],s=true,l=0,f="";var c={s:{r:0,c:0},e:{r:0,c:0}};var o=r||{};var u=o.raw;var h=o.defval;var d=o.range!=null?o.range:e["!ref"];if(o.header===1)a=1;else if(o.header==="A")a=2;else if(Array.isArray(o.header))a=3;switch(typeof d){case"string":c=st(d);break;case"number":c=st(e["!ref"]);c.s.r=d;break;default:c=d;}if(a>0)n=0;var v=jr(c.s.r);var b=[];var p=[];var m=0,g=0;var E=Array.isArray(e);var S=c.s.r,k=0,w=0;if(E&&!e[S])e[S]=[];for(k=c.s.c;k<=c.e.c;++k){b[k]=Qr(k);t=E?e[S][k]:e[b[k]+v];switch(a){case 1:i[k]=k-c.s.c;break;case 2:i[k]=b[k];break;case 3:i[k]=o.header[k-c.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};f=l=ft(t,null,o);g=0;for(w=0;w<i.length;++w)if(i[w]==f)f=l+"_"+ ++g;i[k]=f;}}var B=a===1?[]:{};for(S=c.s.r+n;S<=c.e.r;++S){v=jr(S);s=true;if(a===1)B=[];else{B={};if(Object.defineProperty)try{Object.defineProperty(B,"__rowNum__",{value:S,enumerable:false})}catch(C){B.__rowNum__=S}else B.__rowNum__=S}if(!E||e[S])for(k=c.s.c;k<=c.e.c;++k){t=E?e[S][k]:e[b[k]+v];if(t===undefined||t.t===undefined){if(h===undefined)continue;if(i[k]!=null){B[i[k]]=h;s=false}continue}l=t.v;switch(t.t){case"z":if(l==null)break;continue;case"e":continue;case"s":;case"d":;case"b":;case"n":break;default:throw new Error("unrecognized type "+t.t);}if(i[k]!=null){if(l==null){if(h!==undefined)B[i[k]]=h;else if(u&&l===null)B[i[k]]=null;else continue}else{B[i[k]]=u?l:ft(t,l,o)}s=false}}if(s===false||(a===1?o.blankrows!==false:!!o.blankrows))p[m++]=B}p.length=m;return p}var wp=/"/g;function Bp(e,r,t,a,n,i,s,l){var f=true;var c=[],o="",u=jr(t);for(var h=r.s.c;h<=r.e.c;++h){if(!a[h])continue;var d=l.dense?(e[t]||[])[h]:e[a[h]+u];if(d==null)o="";else if(d.v!=null){f=false;o=""+ft(d,null,l);for(var v=0,b=0;v!==o.length;++v)if((b=o.charCodeAt(v))===n||b===i||b===34){o='"'+o.replace(wp,'""')+'"';break}if(o=="ID")o='"ID"'}else if(d.f!=null&&!d.F){f=false;o="="+d.f;if(o.indexOf(",")>=0)o='"'+o.replace(wp,'""')+'"'}else o="";c.push(o)}if(l.blankrows===false&&f)return null;return c.join(s)}function Cp(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=st(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var l=a.RS!==undefined?a.RS:"\n",f=l.charCodeAt(0);var c=new RegExp((i=="|"?"\\|":i)+"+$");var o="",u=[];a.dense=Array.isArray(e);var h=a.skipHidden&&e["!cols"]||[];var d=a.skipHidden&&e["!rows"]||[];for(var v=n.s.c;v<=n.e.c;++v)if(!(h[v]||{}).hidden)u[v]=Qr(v);for(var b=n.s.r;b<=n.e.r;++b){if((d[b]||{}).hidden)continue;o=Bp(e,n,b,u,s,f,i,a);if(o==null){continue}if(a.strip)o=o.replace(c,"");t.push(o+l)}delete a.dense;return t.join("")}function Tp(e,r){if(!r)r={};r.FS="\t";r.RS="\n";var t=Cp(e,r);if(typeof cptable=="undefined"||r.type=="string")return t;var a=cptable.utils.encode(1200,t,"str");return"ÿþ"+a}function Ip(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var n=st(e["!ref"]),i="",s=[],l;var f=[];var c=Array.isArray(e);for(l=n.s.c;l<=n.e.c;++l)s[l]=Qr(l);for(var o=n.s.r;o<=n.e.r;++o){i=jr(o);for(l=n.s.c;l<=n.e.c;++l){r=s[l]+i;t=c?(e[o]||[])[l]:e[r];a="";if(t===undefined)continue;else if(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}if(t.f!=null)a=t.f;else if(t.t=="z")continue;else if(t.t=="n"&&t.v!=null)a=""+t.v;else if(t.t=="b")a=t.v?"TRUE":"FALSE";else if(t.w!==undefined)a="'"+t.w;else if(t.v===undefined)continue;else if(t.t=="s")a="'"+t.v;else a=""+t.v;f[f.length]=r+"="+a}}return f}function xp(e,r){var t=r||{};var a={};var n;var i={s:{c:0,r:0},e:{c:0,r:e.length}};var s=t.header||[],l=0;e.forEach(function(e,r){y(e).filter(function(r){return e.hasOwnProperty(r)}).forEach(function(i){if((l=s.indexOf(i))==-1)s[l=s.length]=i;var f=e[i];var c="z";var o="";if(typeof f=="number")c="n";else if(typeof f=="boolean")c="b";else if(typeof f=="string")c="s";else if(f instanceof Date){c="d";if(!t.cellDates){c="n";f=H(f)}o=t.dateNF||x._table[14]}a[rt({c:l,r:r+1})]=n={t:c,v:f};if(o)n.z=o})});i.e.c=s.length-1;for(l=0;l<s.length;++l)a[Qr(l)+"1"]={t:"s",v:s[l]};a["!ref"]=it(i);return a}var Ap={encode_col:Qr,encode_row:jr,encode_cell:rt,encode_range:it,decode_col:$r,decode_row:zr,split_cell:qr,decode_cell:et,decode_range:nt,format_cell:ft,get_formulae:Ip,make_csv:Cp,make_json:kp,make_formulae:Ip,aoa_to_sheet:ot,json_to_sheet:xp,table_to_sheet:Ib,table_to_book:xb,sheet_to_csv:Cp,sheet_to_txt:Tp,sheet_to_json:kp,sheet_to_html:Tb.from_sheet,sheet_to_dif:Ms.from_sheet,sheet_to_slk:Ls.from_sheet,sheet_to_eth:Us.from_sheet,sheet_to_formulae:Ip,sheet_to_row_object_array:kp};(function(e){e.consts=e.consts||{};function r(r){r.forEach(function(r){e.consts[r[0]]=r[1]})}function t(e,r,t){return e[r]!=null?e[r]:e[r]=t}function a(e,r,t){if(typeof r=="string")return e[r]||(e[r]={t:"z"});if(typeof r!="number")return a(e,rt(r));return a(e,rt({r:r,c:t||0}))}function n(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}e.book_new=function(){return{SheetNames:[],Sheets:{}}};e.book_append_sheet=function(e,r,t){if(!t)for(var a=1;a<=65535;++a)if(e.SheetNames.indexOf(t="Sheet"+a)==-1)break;if(!t)throw new Error("Too many worksheets");zd(t);if(e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r};e.book_set_sheet_visibility=function(e,r,a){t(e,"Workbook",{});t(e.Workbook,"Sheets",[]);var i=n(e,r);t(e.Workbook.Sheets,i,{});switch(a){case 0:;case 1:;case 2:break;default:throw new Error("Bad sheet visibility setting "+a);}e.Workbook.Sheets[i].Hidden=a};r([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]);e.cell_set_number_format=function(e,r){e.z=r;return e};e.cell_set_hyperlink=function(e,r,t){if(!r){delete e.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}return e};e.cell_set_internal_link=function(r,t,a){return e.cell_set_hyperlink(r,"#"+t,a)};e.cell_add_comment=function(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})};e.sheet_set_array_formula=function(e,r,t){var n=typeof r!="string"?r:st(r);var i=typeof r=="string"?r:it(r);for(var s=n.s.r;s<=n.e.r;++s)for(var l=n.s.c;l<=n.e.c;++l){var f=a(e,s,l);f.t="n";f.F=i;delete f.v;if(s==n.s.r&&l==n.s.c)f.f=t}return e};return e})(Ap);if(E&&typeof require!="undefined")(function(){var e={}.Readable;var t=function(r,t){var a=e();var n="";var i=t==null?{}:t;if(r==null||r["!ref"]==null){a.push(null);return a}var s=st(r["!ref"]);var l=i.FS!==undefined?i.FS:",",f=l.charCodeAt(0);var c=i.RS!==undefined?i.RS:"\n",o=c.charCodeAt(0);var u=new RegExp((l=="|"?"\\|":l)+"+$");var h="",d=[];i.dense=Array.isArray(r);var v=i.skipHidden&&r["!cols"]||[];var b=i.skipHidden&&r["!rows"]||[];for(var p=s.s.c;p<=s.e.c;++p)if(!(v[p]||{}).hidden)d[p]=Qr(p);var m=s.s.r;a._read=function(){if(m>s.e.r)return a.push(null);while(m<=s.e.r){++m;if((b[m-1]||{}).hidden)continue;h=Bp(r,s,m-1,d,f,o,l,i);if(h!=null){if(i.strip)h=h.replace(u,"");a.push(h+c);break}}};return a};var a=function(r,t){var a=e();var n=t||{};var i=n.header!=null?n.header:Tb.BEGIN;var s=n.footer!=null?n.footer:Tb.END;a.push(i);var l=nt(r["!ref"]);n.dense=Array.isArray(r);a.push(Tb._preamble(r,l,n));var f=l.s.r;var c=false;a._read=function(){if(f>l.e.r){if(!c){c=true;a.push("</table>"+s)}return a.push(null)}while(f<=l.e.r){a.push(Tb._row(r,l,f,n));++f;break}};return a};r.stream={to_html:a,to_csv:t}})();r.parse_xlscfb=sb;r.parse_ods=Rb;r.parse_fods=_b;r.write_ods=Ob;r.parse_zip=qb;r.read=op;r.readFile=up;r.readFileSync=up;r.write=mp;r.writeFile=Ep;r.writeFileSync=Ep;r.writeFileAsync=Sp;r.utils=Ap;r.SSF=x;r.CFB=P})(typeof exports!=="undefined"?exports:XLSX);var XLS=XLSX,ODS=XLSX;
;
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){this._list=[]}return Object.defineProperty(t.prototype,"list",{get:function(){return this._list},enumerable:!0,configurable:!0}),t.prototype.implements=function(){return[e.IList,e.ICollection,e.IEnumerable]},Object.defineProperty(t.prototype,"count",{get:function(){return this._list.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.onClear(),this._list=[],this.onClearComplete()},t.prototype.removeAt=function(e){var t=this._list.removeAt(e);this.onRemoveComplete(e,t)},t.prototype.onClear=function(){},t.prototype.onInsertComplete=function(e,t){},t.prototype.onRemoveComplete=function(e,t){},t.prototype.onClearComplete=function(){},t}();e.CollectionBase=t}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.DictionaryEntry=t}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this.isSimpleKeys=!1,this.keys=[],this.values=[],this.indexObject={}}return e.prototype.get=function(e){if(this.isSimpleKeys)return this.values[this.indexObject[e]];return this.values[this.keys.indexOf(e)]},e.prototype.set=function(e,t){if(this.isSimpleKeys){var r=typeof e;"string"!=r&&"number"!=r&&(this.isSimpleKeys=!1,this.indexObject={})}else if(0==this.keys.length){var r=typeof e;"string"!=r&&"number"!=r||(this.isSimpleKeys=!0)}var n=-1;n=this.isSimpleKeys?this.indexObject[e]:this.keys.indexOf(e),n>=0?this.values[n]=t:(this.isSimpleKeys&&(this.indexObject[e]=this.keys.length),this.keys.push(e),this.values.push(t))},e.prototype.add=function(e,t){this.set(e,t)},e.prototype.contains=function(e){if(this.isSimpleKeys)return void 0!=this.indexObject[e];return this.keys.contains(e)},e.prototype.containsKey=function(e){if(this.isSimpleKeys)return void 0!=this.indexObject[e];return this.keys.contains(e)},e.prototype.containsValue=function(e){return this.values.contains(e)},e.prototype.remove=function(e){var t;if((t=this.isSimpleKeys?this.indexObject[e]:this.keys.indexOf(e))>=0&&(this.keys.removeAt(t),this.values.removeAt(t),this.isSimpleKeys)){this.indexObject={};for(var r=0;r<this.keys.length;r++)this.indexObject[this.keys[r]]=r}},e.prototype.clear=function(){this.keys=[],this.values=[],this.indexObject={},this.isSimpleKeys=!1},e.prototype.copyTo=function(e,t){while(e.length<t)e.push(null);for(var r=0,n=this.values;r<n.length;r++){var i=n[r];e.length>t?e[t]=i:e.push(i),t++}},Object.defineProperty(e.prototype,"count",{get:function(){return this.keys.length},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=new e;return this.keys.copyTo(t.keys),this.values.copyTo(t.values),t},e}();e.Hashtable=t}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.ICollection="ICollection"}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IComparer="IComparer"}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IEnumerable="IEnumerable"}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IEnumerator="IEnumerator"}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IList="IList"}(t=e.Collections||(e.Collections={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.prototype.canConvertFrom=function(e,t){return!1},e.prototype.canConvertTo=function(e,t){return!1},e.prototype.convertTo=function(e,t,r,n){return null},e.prototype.convertFrom=function(e,t,r){return null},e.prototype.convertToString=function(e){return String.empty},e.prototype.convertFromString=function(e){return null},e}();e.TypeConverter=t}(t=e.ComponentModel||(e.ComponentModel={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this.blockSize=128/32,this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX_0=[],this.SUB_MIX_1=[],this.SUB_MIX_2=[],this.SUB_MIX_3=[],this.INV_SUB_MIX_0=[],this.INV_SUB_MIX_1=[],this.INV_SUB_MIX_2=[],this.INV_SUB_MIX_3=[],this.RCON=[0,1,2,4,8,16,32,64,128,27,54];for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=0,n=0,t=0;t<256;t++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,this.SBOX[r]=i,this.INV_SBOX[i]=r;var a=e[r],o=e[a],s=e[o],u=257*e[i]^16843008*i;this.SUB_MIX_0[r]=u<<24|u>>>8,this.SUB_MIX_1[r]=u<<16|u>>>16,this.SUB_MIX_2[r]=u<<8|u>>>24,this.SUB_MIX_3[r]=u,u=16843009*s^65537*o^257*a^16843008*r,this.INV_SUB_MIX_0[i]=u<<24|u>>>8,this.INV_SUB_MIX_1[i]=u<<16|u>>>16,this.INV_SUB_MIX_2[i]=u<<8|u>>>24,this.INV_SUB_MIX_3[i]=u,r?(r=a^e[e[e[s^a]]],n^=e[e[n]]):r=n=1}}return e.prototype.doReset=function(){var e=this.key.sigBytes/4;this.nRounds=e+6;var t=4*(this.nRounds+1);this.keySchedule=[];for(var r=0;r<t;r++)if(r<e)this.keySchedule[r]=this.key.words[r];else{var n=this.keySchedule[r-1];r%e?e>6&&r%e==4&&(n=this.SBOX[n>>>24]<<24|this.SBOX[n>>>16&255]<<16|this.SBOX[n>>>8&255]<<8|this.SBOX[255&n]):(n=n<<8|n>>>24,n=this.SBOX[n>>>24]<<24|this.SBOX[n>>>16&255]<<16|this.SBOX[n>>>8&255]<<8|this.SBOX[255&n],n^=this.RCON[r/e|0]<<24),this.keySchedule[r]=this.keySchedule[r-e]^n}this.invKeySchedule=[];for(var i=0;i<t;i++){var r=t-i,n=void 0;n=i%4?this.keySchedule[r]:this.keySchedule[r-4],this.invKeySchedule[i]=i<4||r<=4?n:this.INV_SUB_MIX_0[this.SBOX[n>>>24]]^this.INV_SUB_MIX_1[this.SBOX[n>>>16&255]]^this.INV_SUB_MIX_2[this.SBOX[n>>>8&255]]^this.INV_SUB_MIX_3[this.SBOX[255&n]]}},e.prototype.process=function(){var e=this.data.sigBytes/this.blockSize*4;e=Math.ceil(e);var t=e*this.blockSize,n=Math.min(4*t,this.data.sigBytes),i;if(t){for(var a=0;a<t;a+=this.blockSize)this.processBlock(this.data.words,a);i=this.data.words.splice(0,t),this.data.sigBytes-=n}return new r(i,n)},e.prototype.processBlock=function(e,t){var r=e.slice(t,t+this.blockSize);this.decryptBlock(e,t),this.xorBlock.call(this,e,t,this.blockSize),this.prevBlock=r},e.prototype.xorBlock=function(e,t,r){var n;this.iv?(n=this.iv,this.iv=void 0):n=this.prevBlock;for(var i=0;i<r;i++)e[t+i]^=n[i]},e.prototype.pkcs7pad=function(e){for(var t=4*this.blockSize,n=t-e.sigBytes%t,i=n<<24|n<<16|n<<8|n,a=[],o=0;o<n;o+=4)a.push(i);var s=new r(a,n);e.concat(s)},e.prototype.pkcs7Unpad=function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t},e.prototype.encryptBlock=function(e,t){this.doCryptBlock(e,t,this.keySchedule,this.SUB_MIX_0,this.SUB_MIX_1,this.SUB_MIX_2,this.SUB_MIX_3,this.SBOX)},e.prototype.decryptBlock=function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this.doCryptBlock(e,t,this.invKeySchedule,this.INV_SUB_MIX_0,this.INV_SUB_MIX_1,this.INV_SUB_MIX_2,this.INV_SUB_MIX_3,this.INV_SBOX),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},e.prototype.doCryptBlock=function(e,t,r,n,i,a,o,s){for(var u=e[t]^r[0],m=e[t+1]^r[1],l=e[t+2]^r[2],y=e[t+3]^r[3],d=4,h=1;h<this.nRounds;h++){var c=n[u>>>24]^i[m>>>16&255]^a[l>>>8&255]^o[255&y]^r[d++],f=n[m>>>24]^i[l>>>16&255]^a[y>>>8&255]^o[255&u]^r[d++],p=n[l>>>24]^i[y>>>16&255]^a[u>>>8&255]^o[255&m]^r[d++],M=n[y>>>24]^i[u>>>16&255]^a[m>>>8&255]^o[255&l]^r[d++];u=c,m=f,l=p,y=M}var b=(s[u>>>24]<<24|s[m>>>16&255]<<16|s[l>>>8&255]<<8|s[255&y])^r[d++],g=(s[m>>>24]<<24|s[l>>>16&255]<<16|s[y>>>8&255]<<8|s[255&u])^r[d++],S=(s[l>>>24]<<24|s[y>>>16&255]<<16|s[u>>>8&255]<<8|s[255&m])^r[d++],v=(s[y>>>24]<<24|s[u>>>16&255]<<16|s[m>>>8&255]<<8|s[255&l])^r[d++];e[t]=b,e[t+1]=g,e[t+2]=S,e[t+3]=v},e.encrypt=function(t,r){return(new e).encrypt(i.parse(t),i.parse(r)).toString()},e.prototype.encrypt=function(e,t){this.key=t,this.data=new r,this.nDataBytes=0,this.doReset();var i=n.parse("0000000000000000");return this.iv=i&&i.words,this.data.concat(e),this.nDataBytes+=e.sigBytes,this.pkcs7pad(this.data),this.process()},e.decrypt=function(t,r){return(new e).decrypt(i.parse(t),i.parse(r)).toString()},e.prototype.decrypt=function(e,t){this.key=t,this.data=new r,this.nDataBytes=0,this.doReset();var i=n.parse("0000000000000000");this.iv=i&&i.words,this.data.concat(e),this.nDataBytes+=e.sigBytes;var a=this.process();return this.pkcs7Unpad(a),a},e}();e.AES=t;var r=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length}return e.prototype.toString=function(){for(var e=[],t=0;t<this.sigBytes;t++){var r=this.words[t>>>2]>>>24-t%4*8&255;e.push(String.fromCharCode(r))}return e.join("").fromUnicodeString()},e.prototype.concat=function(e){if(this.clamp(),this.sigBytes%4)for(var t=0;t<e.sigBytes;t++){var r=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=r<<24-(this.sigBytes+t)%4*8}else if(e.words.length>65535)for(var t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];else this.words.push.apply(this.words,e.words);return this.sigBytes+=e.sigBytes,this},e.prototype.clamp=function(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)},e}(),n=function(){function e(){}return e.parse=function(e){for(var t=[],n=0;n<e.length;n+=2)t[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new r(t,e.length/2)},e}(),i=function(){function e(){}return e.parse=function(t){var n=t.length,i=e.map.charAt(64);if(i){var a=t.indexOf(i);-1!=a&&(n=a)}for(var o=[],s=0,u=0;u<n;u++)if(u%4){var m=this.map.indexOf(t.charAt(u-1))<<u%4*2,l=this.map.indexOf(t.charAt(u))>>>6-u%4*2;o[s>>>2]|=(m|l)<<24-s%4*8,s++}return new r(o,s)},e.map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e}()}(t=e.Crypt||(e.Crypt={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this.BI_FP=52}return e.staticConstructor=function(){for(var t="0".charCodeAt(0),r=0;r<=9;++r)e.BI_RC[t++]=r;t="a".charCodeAt(0);for(var r=10;r<36;++r)e.BI_RC[t++]=r;t="A".charCodeAt(0);for(var r=10;r<36;++r)e.BI_RC[t++]=r},e.fromInt=function(t){var r=new e;return r.fromInt(t),r},Object.defineProperty(e.prototype,"DV",{get:function(){return 1<<e.dbits},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"DB",{get:function(){return e.dbits},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"DM",{get:function(){return(1<<e.dbits)-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"FV",{get:function(){return Math.pow(2,this.BI_FP)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"F1",{get:function(){return this.BI_FP-e.dbits},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"F2",{get:function(){return 2*e.dbits-this.BI_FP},enumerable:!0,configurable:!0}),e.prototype.am=function(e,t,r,n,i,a){var o=16383&t,s=t>>14;while(--a>=0){var u=16383&this[e],m=this[e++]>>14,l=s*u+m*o;u=o*u+((16383&l)<<14)+r[n]+i,i=(u>>28)+(l>>14)+s*m,r[n++]=268435455&u}return i},e.int2char=function(t){return(new e).int2char(t)},e.prototype.int2char=function(t){return e.BI_RM.charAt(t)},e.prototype.intAt=function(t,r){var n=e.BI_RC[t.charCodeAt(r)];return null==n?-1:n},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.fromString=function(t,r){void 0===r&&(r=256);var n=new e;return n.fromString(t,r),n},e.prototype.fromString=function(t,r){void 0===r&&(r=256);var n;if(16==r)n=4;else if(8==r)n=3;else if(256==r)n=8;else if(2==r)n=1;else if(32==r)n=5;else{if(4!=r)return void this.fromRadix(t,r);n=2}this.t=0,this.s=0;var i=t.length,a=!1,o=0;while(--i>=0){var s=8==n?255&Number(t[i]):this.intAt(t,i);if(s<0){"-"==t.charAt(i)&&(a=!0);continue}a=!1,0==o?this[this.t++]=s:o+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,o+=n,o>=this.DB&&(o-=this.DB)}8==n&&0!=(128&Number(t[0]))&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t},e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(2==e)t=1;else if(4==e)t=2;else if(8==e)t=3;else if(16==e)t=4;else{if(32!=e)return this.toRadix(e);t=5}var r=(1<<t)-1,n,i=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(o-- >0){s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=this.int2char(n));while(o>=0)s<t?(n=(this[o]&(1<<s)-1)<<t-s,n|=this[--o]>>(s+=this.DB-t)):(n=this[o]>>(s-=t)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=this.int2char(n))}return i?a:"0"},e.prototype.negate=function(){var t=new e;return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;while(--r>=0)if(0!=(t=this[r]-e[r]))return t;return 0},e.prototype.nbits=function(e){var t=1,r;return 0!=(r=e>>>16)&&(e=r,t+=16),0!=(r=e>>8)&&(e=r,t+=8),0!=(r=e>>4)&&(e=r,t+=4),0!=(r=e>>2)&&(e=r,t+=2),0!=(r=e>>1)&&(e=r,t+=1),t},e.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+this.nbits(this[this.t-1]^this.s&this.DM)},e.prototype.dlShiftTo=function(e,t){for(var r=this.t-1;r>=0;--r)t[r+e]=this[r];for(var r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,n=this.DB-r,i=(1<<n)-1,a=Math.floor(e/this.DB),o=this.s<<r&this.DM,s=this.t-1;s>=0;--s)t[s+a+1]=this[s]>>n|o,o=(this[s]&i)<<r;for(var s=a-1;s>=0;--s)t[s]=0;t[a]=o,t.t=this.t+a+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)return void(t.t=0);var n=e%this.DB,i=this.DB-n,a=(1<<n)-1;t[0]=this[r]>>n;for(var o=r+1;o<this.t;++o)t[o-r-1]|=(this[o]&a)<<i,t[o-r]=this[o]>>n;n>0&&(t[this.t-r-1]|=(this.s&a)<<i),t.t=this.t-r,t.clamp()},e.prototype.subTo=function(e,t){var r=0,n=0,i=Math.min(e.t,this.t);while(r<i)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){n-=e.s;while(r<this.t)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{n+=this.s;while(r<e.t)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),a=n.t;r.t=a+i.t;while(--a>=0)r[a]=0;for(var o=0;o<i.t;++o)r[o+n.t]=n.am(0,i[o],r,o,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(e){var t=this.abs(),r=e.t=2*t.t;while(--r>=0)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(i.t<=0)return;var a=this.abs();if(a.t<i.t)return null!=r&&e.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=new e);var o=new e,s=this.s,u=t.s,m=this.DB-this.nbits(i[i.t-1]);m>0?(i.lShiftTo(m,o),a.lShiftTo(m,n)):(i.copyTo(o),a.copyTo(n));var l=o.t,y=o[l-1];if(0==y)return;var d=y*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),h=this.FV/d,c=(1<<this.F1)/d,f=1<<this.F2,p=n.t,M=p-l,b=null==r?new e:r;o.dlShiftTo(M,b),n.compareTo(b)>=0&&(n[n.t++]=1,n.subTo(b,n)),e.ONE.dlShiftTo(l,b),b.subTo(o,o);while(o.t<l)o[o.t++]=0;while(--M>=0){var g=n[--p]==y?this.DM:Math.floor(n[p]*h+(n[p-1]+f)*c);if((n[p]+=o.am(0,g,n,M,0,l))<g){o.dlShiftTo(M,b),n.subTo(b,n);while(n[p]<--g)n.subTo(b,n)}}null!=r&&(n.drShiftTo(l,r),s!=u&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),m>0&&n.rShiftTo(m,n),s<0&&e.ZERO.subTo(n,n)},e.prototype.mod=function(t){var r=new e;return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=new e,i=new e,a=r.convert(this),o=this.nbits(t)-1;a.copyTo(n);while(--o>=0)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,a,n);else{var s=n;n=i,i=s}return r.revert(n)},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new r(t):new i(t),this.exp(e,n)},e.prototype.clone=function(){var t=new e;return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=e.fromInt(n),a=new e,o=new e,s="";this.divRemTo(i,a,o);while(a.signum()>0)s=(n+o.intValue()).toString(t).substr(1)+s,a.divRemTo(i,a,o);return o.intValue().toString(t)+s},e.prototype.fromRadix=function(t,r){this.fromInt(0),null==r&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),a=!1,o=0,s=0,u=0;u<t.length;++u){var m=this.intAt(t,u);if(m<0){"-"==t.charAt(u)&&0==this.signum()&&(a=!0);continue}s=r*s+m,++o>=n&&(this.multiply2(i),this.addOffset2(s,0),o=0,s=0)}o>0&&(this.multiply2(Math.pow(r,o)),this.addOffset2(s,0)),a&&e.ZERO.subTo(this,this)},e.fromNumber=function(t,r,n){var i=new e;return i.fromNumber(t,r,n),i},e.prototype.fromNumber=function(t,r,n){if(t<2)this.fromInt(1);else{this.fromNumber2(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),this.op_or,this),this.isEven()&&this.addOffset2(1,0);while(!this.isProbablePrime(r))this.addOffset2(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this)}},e.prototype.fromNumber2=function(e,t){var r=[],n=7&e;r.length=(e>>3)+1,t.nextBytes(r),n>0?r[0]&=(1<<n)-1:r[0]=0,this.fromString(r,256)},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var r=this.DB-e*this.DB%8,n,i=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n)}return t},e.prototype.bitwiseTo=function(e,t,r){for(var n,i=Math.min(e.t,this.t),a=0;a<i;++a)r[a]=t(this[a],e[a]);if(e.t<this.t){n=e.s&this.DM;for(var a=i;a<this.t;++a)r[a]=t(this[a],n);r.t=this.t}else{n=this.s&this.DM;for(var a=i;a<e.t;++a)r[a]=t(n,e[a]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},e.prototype.op_or=function(e,t){return e|t},e.prototype.shiftLeft=function(t){var r=new e;return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=new e;return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.lbit=function(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+this.lbit(this[e]);if(this.s<0)return this.t*this.DB;return-1},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);if(t>=this.t)return 0!=this.s;return 0!=(this[t]&1<<e%this.DB)},e.prototype.addTo=function(e,t){var r=0,n=0,i=Math.min(e.t,this.t);while(r<i)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){n+=e.s;while(r<this.t)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{n+=this.s;while(r<e.t)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},e.prototype.add=function(t){var r=new e;return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=new e;return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=new e;return this.multiplyTo(t,r),r},e.prototype.square=function(){var t=new e;return this.squareTo(t),t},e.prototype.divide=function(t){var r=new e;return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=new e;return this.divRemTo(t,null,r),r},e.prototype.multiply2=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.addOffset2=function(e,t){if(0==e)return;while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]},e.prototype.multiplyLowerTo=function(e,t,r){var n=Math.min(this.t+e.t,t);r.s=0,r.t=n;while(n>0)r[--n]=0;for(var i=r.t-this.t;n<i;++n)r[n+this.t]=this.am(0,e[n],r,n,0,this.t);for(var i=Math.min(e.t,t);n<i;++n)this.am(0,e[n],r,n,0,t-n);r.clamp()},e.prototype.multiplyUpperTo=function(e,t,r){--t;var n=r.t=this.t+e.t-t;r.s=0;while(--n>=0)r[n]=0;for(var i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},e.prototype.modPow=function(t,a){var o=t.bitLength(),s,u=e.fromInt(1),m;if(o<=0)return u;s=o<18?1:o<48?3:o<144?4:o<768?5:6,m=o<8?new r(a):a.isEven()?new n(a):new i(a);var l=[],y=3,d=s-1,h=(1<<s)-1;if(l[1]=m.convert(this),s>1){var c=new e;m.sqrTo(l[1],c);while(y<=h)l[y]=new e,m.mulTo(c,l[y-2],l[y]),y+=2}var f=t.t-1,p,M=!0,b=new e,g;o=this.nbits(t[f])-1;while(f>=0){o>=d?p=t[f]>>o-d&h:(p=(t[f]&(1<<o+1)-1)<<d-o,f>0&&(p|=t[f-1]>>this.DB+o-d)),y=s;while(0==(1&p))p>>=1,--y;if((o-=y)<0&&(o+=this.DB,--f),M)l[p].copyTo(u),M=!1;else{while(y>1)m.sqrTo(u,b),m.sqrTo(b,u),y-=2;y>0?m.sqrTo(u,b):(g=u,u=b,b=g),m.mulTo(b,l[p],u)}while(f>=0&&0==(t[f]&1<<o))m.sqrTo(u,b),g=u,u=b,b=g,--o<0&&(o=this.DB-1,--f)}return m.revert(u)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return t;i<a&&(a=i),a>0&&(t.rShiftTo(a,t),r.rShiftTo(a,r));while(t.signum()>0)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0){if(0==t)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r}},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||0==t.signum())return e.ZERO;var n=t.clone(),i=this.clone(),a=e.fromInt(1),o=e.fromInt(0),s=e.fromInt(0),u=e.fromInt(1);while(0!=n.signum()){while(n.isEven())n.rShiftTo(1,n),r?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(t,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);while(i.isEven())i.rShiftTo(1,i),r?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(t,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&a.subTo(s,a),o.subTo(u,o)):(i.subTo(n,i),r&&s.subTo(a,s),u.subTo(o,u))}if(0!=i.compareTo(e.ONE))return e.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(!(u.signum()<0))return u;return u.addTo(t,u),u.signum()<0?u.add(t):u},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(1==n.t&&n[0]<=e.lowprimes[e.lowprimes.length-1]){for(var i=0;i<e.lowprimes.length;++i)if(n[0]==e.lowprimes[i])return!0;return!1}if(n.isEven())return!1;r=1;while(r<e.lowprimes.length){var a=e.lowprimes[r],o=r+1;while(o<e.lowprimes.length&&a<e.lplim)a*=e.lowprimes[o++];a=n.modInt(a);while(r<o)if(a%e.lowprimes[r++]==0)return!1}return n.millerRabin(t)},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);(t=t+1>>1)>e.lowprimes.length&&(t=e.lowprimes.length);for(var a=new e,o=0;o<t;++o){a.fromInt(e.lowprimes[Math.floor(Math.random()*e.lowprimes.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(r)){var u=1;while(u++<n&&0!=s.compareTo(r))if(s=s.modPowInt(2,this),0==s.compareTo(e.ONE))return!1;if(0!=s.compareTo(r))return!1}}return!0},e.BI_RM="0123456789abcdefghijklmnopqrstuvwxyz",e.BI_RC=[],e.canary=0xdeadbeefcafe,e.j_lm=15715070==(16777215&e.canary),e.dbits=28,e.lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],e.lplim=(1<<26)/e.lowprimes[e.lowprimes.length-1],e.ZERO=e.fromInt(0),e.ONE=e.fromInt(1),e}();e.BigInteger=t;var r=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),n=function(e){function r(r){var n=e.call(this,r)||this;return n.r2=new t,n.q3=new t,n.r2=new t,n.q3=new t,t.ONE.dlShiftTo(2*r.t,n.r2),n.mu=n.r2.divide(r),n}return __extends(r,e),r.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var r=new t;return e.copyTo(r),this.reduce(r),r},r.prototype.revert=function(e){return e},r.prototype.reduce=function(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.addOffset2(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)},r.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},r}(r),i=function(e){function r(t){var r=e.call(this,t)||this;return r.mp=t.invDigit(),r.mpl=32767&r.mp,r.mph=r.mp>>15,r.um=(1<<t.DB-15)-1,r.mt2=2*t.t,r}return __extends(r,e),r.prototype.convert=function(e){var r=new t;return e.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),e.s<0&&r.compareTo(t.ZERO)>0&&this.m.subTo(r,r),r},r.prototype.revert=function(e){var r=new t;return e.copyTo(r),this.reduce(r),r},r.prototype.reduce=function(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;r=t+this.m.t,e[r]+=this.m.am(0,n,e,t,0,this.m.t);while(e[r]>=e.DV)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},r.prototype.montSqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r.prototype.montMulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},r}(r),a=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.nop=function(e){return e},t.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},t.prototype.sqrTo=function(e,t){e.squareTo(t)},t}(r);t.staticConstructor()}(t=e.Crypt||(e.Crypt={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){this.n=null,this.e=65537,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null,this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.verifyString=function(t,r){r=this.base64toHex(r);var n=this.parseBigInt(r,16),i=this.doPublic(n),a=i.toString(16).replace(/^1f+00/,"");if(a.substring(0,e.SHA1.signature.length)!=e.SHA1.signature)return!1;return a.substring(e.SHA1.signature.length)==e.SHA1.hex(t.toUnicodeString())},t.prototype.base64toHex=function(t){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="=",i="",a=0,o,s=0;s<t.length;++s){if(t.charAt(s)==n)break;var u=r.indexOf(t.charAt(s));if(u<0)continue;0==a?(i+=e.BigInteger.int2char(u>>2),o=3&u,a=1):1==a?(i+=e.BigInteger.int2char(o<<2|u>>4),o=15&u,a=2):2==a?(i+=e.BigInteger.int2char(o),i+=e.BigInteger.int2char(u>>2),o=3&u,a=3):(i+=e.BigInteger.int2char(o<<2|u>>4),i+=e.BigInteger.int2char(15&u),a=0)}return 1==a&&(i+=e.BigInteger.int2char(o<<2)),i},t.prototype.parseBigInt=function(t,r){return e.BigInteger.fromString(t,r)},t.prototype.pkcs1pad2=function(t,r){if(r<t.length+11)return null;var n=[],i=t.length-1;while(i>=0&&r>0){var a=t.charCodeAt(i--);a<128?n[--r]=a:a>127&&a<2048?(n[--r]=63&a|128,n[--r]=a>>6|192):(n[--r]=63&a|128,n[--r]=a>>6&63|128,n[--r]=a>>12|224)}n[--r]=0;var o=new e.SecureRandom,s=[];while(r>2){s[0]=0;while(0==s[0])o.nextBytes(s);n[--r]=s[0]}return n[--r]=2,n[--r]=0,e.BigInteger.fromString(n)},t.prototype.pkcs1unpad2=function(e,t){var r=e.toByteArray(),n=0;while(n<r.length&&0==r[n])++n;if(r.length-n!=t-1||2!=r[n])return null;++n;while(0!=r[n])if(++n>=r.length)return null;var i="";while(++n<r.length){var a=255&r[n];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&r[n+1]),++n):(i+=String.fromCharCode((15&a)<<12|(63&r[n+1])<<6|63&r[n+2]),n+=2)}return i},t.prototype.setPublic=function(e,t){null!=(e=this.base64toHex(e))&&null!=t&&e.length>0&&t.length>0&&(this.n=this.parseBigInt(e,16),this.e=parseInt(t,16))},t.prototype.setPrivate=function(e,t,r){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=this.parseBigInt(e,16),this.e=parseInt(t,16),this.d=this.parseBigInt(r,16))},t.prototype.setPrivateEx=function(e,t,r,n,i,a,o,s){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=this.parseBigInt(e,16),this.e=parseInt(t,16),this.d=this.parseBigInt(r,16),this.p=this.parseBigInt(n,16),this.q=this.parseBigInt(i,16),this.dmp1=this.parseBigInt(a,16),this.dmq1=this.parseBigInt(o,16),this.coeff=this.parseBigInt(s,16))},t.prototype.generate=function(t,r){var n=new e.SecureRandom,i=t>>1;this.e=parseInt(r,16);for(var a=e.BigInteger.fromString(r,16);;){for(;;)if(this.p=e.BigInteger.fromNumber(t-i,1,n),0==this.p.subtract(e.BigInteger.ONE).gcd(a).compareTo(e.BigInteger.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=e.BigInteger.fromNumber(i,1,n),0==this.q.subtract(e.BigInteger.ONE).gcd(a).compareTo(e.BigInteger.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(e.BigInteger.ONE),u=this.q.subtract(e.BigInteger.ONE),m=s.multiply(u);if(0==m.gcd(a).compareTo(e.BigInteger.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(m),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(r)<0)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},t.prototype.encrypt=function(e){var t=this.pkcs1pad2(e,this.n.bitLength()+7>>3);if(null==t)return null;var r=this.doPublic(t);if(null==r)return null;var n=r.toString(16);return 0==(1&n.length)?n:"0"+n},t.prototype.decrypt=function(e){var t=this.parseBigInt(e,16),r=this.doPrivate(t);if(null==r)return null;return this.pkcs1unpad2(r,this.n.bitLength()+7>>3)},t}();e.RSAKey=t}(t=e.Crypt||(e.Crypt={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this.blockLength=64,this.state=[1732584193,4023233417,2562383102,271733878,3285377520],this.K=[1518500249,1859775393,2400959708,3395469782]}return e.hex=function(t){return(new e).hex(t)},e.prototype.hex=function(e){return this.toHex(this.getMD(e))},e.prototype.getMD=function(e){var t=[];return t=this.unpack(e),t=this.paddingData(t),this.round(t)},e.prototype.rotl=function(e,t){return e<<t|e>>>32-t},e.prototype.round=function(e){for(var t=[],r=[],n,i=[],a=0;a<this.state.length;a++)t[a]=this.state[a];for(var o=0;o<e.length;o+=this.blockLength){for(var a=0;a<this.state.length;a++)r[a]=t[a];i=this.toBigEndian32(e.slice(o,o+this.blockLength));for(var a=16;a<80;a++)i[a]=this.rotl(i[a-3]^i[a-8]^i[a-14]^i[a-16],1);for(var a=0;a<80;a++)n=a<20?(t[1]&t[2]^~t[1]&t[3])+this.K[0]:a<40?(t[1]^t[2]^t[3])+this.K[1]:a<60?(t[1]&t[2]^t[1]&t[3]^t[2]&t[3])+this.K[2]:(t[1]^t[2]^t[3])+this.K[3],n+=this.rotl(t[0],5)+i[a]+t[4],t[4]=t[3],t[3]=t[2],t[2]=this.rotl(t[1],30),t[1]=t[0],t[0]=n;for(var a=0;a<this.state.length;a++)t[a]+=r[a]}return this.fromBigEndian32(t)},e.prototype.paddingData=function(e){var t=e.length,r=t;e[r++]=128;while(r%this.blockLength!=56)e[r++]=0;return t*=8,e.concat(0,0,0,0,this.fromBigEndian32([t]))},e.prototype.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=(e[r]>15?"":"0")+e[r].toString(16);return t},e.prototype.fromBigEndian32=function(e){for(var t=[],r=0,n=0;n<e.length;n++)t[r++]=e[n]>>>24&255,t[r++]=e[n]>>>16&255,t[r++]=e[n]>>>8&255,t[r++]=255&e[n];return t},e.prototype.toBigEndian32=function(e){for(var t=[],r=0,n=0;n<e.length;n+=4,r++)t[r]=e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3];return t},e.prototype.unpack=function(e){for(var t=[],r=0,n,i=0;i<e.length;i++)n=e.charCodeAt(i),n<=255?t[r++]=n:(t[r++]=n>>>8,t[r++]=255&n);return t},e.prototype.pack=function(e){var t="";for(var r in e)t+=String.fromCharCode(e[r]);return t},e.signature="3021300906052b0e03021a05000414",e}();e.SHA1=t}(t=e.Crypt||(e.Crypt={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){if(null==this.pool){this.pool=[],this.position=0;var e=void 0;while(this.position<r.poolSize)e=Math.floor(65536*Math.random()),this.pool[this.position++]=e>>>8,this.pool[this.position++]=255&e;this.position=0,this.seedTime()}}return e.prototype.seedInteger=function(e){this.pool[this.position++]^=255&e,this.pool[this.position++]^=e>>8&255,this.pool[this.position++]^=e>>16&255,this.pool[this.position++]^=e>>24&255,this.position>=r.poolSize&&(this.position-=r.poolSize)},e.prototype.seedTime=function(){this.seedInteger((new Date).getTime())},e.prototype.getByte=function(){if(null==this.state){for(this.seedTime(),this.state=new r,this.state.init(this.pool),this.position=0;this.position<this.pool.length;++this.position)this.pool[this.position]=0;this.position=0}return this.state.next()},e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=this.getByte()},e}();e.SecureRandom=t;var r=function(){function e(){this.i=0,this.j=0,this.s=[]}return e.prototype.init=function(e){for(var t=0;t<256;++t)this.s[t]=t;for(var r=0,t=0;t<256;++t){r=r+this.s[t]+e[t%e.length]&255;var n=this.s[t];this.s[t]=this.s[r],this.s[r]=n}this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.s[this.i]&255,e=this.s[this.i],this.s[this.i]=this.s[this.j],this.s[this.j]=e,this.s[e+this.s[this.i]&255]},e.poolSize=256,e}()}(t=e.Crypt||(e.Crypt={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r=function(){function r(e){this._column=e}return r.createStorage=function(r,n){switch(n){case String:case e.Char:return new t.StringStorage(r);case Number:case e.SByte:case e.Byte:case e.Int:case e.Int16:case e.Int32:case e.Int64:case e.UInt16:case e.UInt32:case e.UInt64:case e.Decimal:case e.Double:case e.Single:return new t.Int32Storage(r);case Object.getStiType():return new t.ObjectStorage(r);case Boolean:return new t.BooleanStorage(r);case e.ByteArray:return new t.ByteArrayStorage(r);case e.DateTime:return new t.DateTimeStorage(r);default:return new t.StringStorage(r)}},r.prototype.getValue=function(e){return null},r.prototype.setValue=function(e,t){},r.prototype.setStorage=function(){},r}();t.DataStorage=r}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]=null!=t&&t.toBoolean()},t.prototype.setStorage=function(){this.values=[]},t.defaultValue=!1,t}(e.DataStorage);e.BooleanStorage=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]=t},t.prototype.setStorage=function(){this.values=[]},t}(e.DataStorage);e.ByteArrayStorage=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]=null!=t?t.toString().charAt(0):""},t.prototype.setStorage=function(){this.values=[]},t}(e.DataStorage);e.CharStorage=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Text=1]="Text",e[e.StoredProcedure=4]="StoredProcedure",e[e.TableDirect=512]="TableDirect"}(t=e.CommandType||(e.CommandType={}))}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.Closed=0,e.Open=1,e.Connecting=2,e.Executing=4,e.Fetching=8,e.Broken=16,e}();e.ConnectionState=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.DBNull=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(e,t,r){void 0===t&&(t=String),void 0===r&&(r=null),this._caption=null,this._columnName=String.empty,this._dataType=String,this._columnName=null==e?"":e,this._dataType=t,this._caption=r,this.insureStorage(),this._storage.setStorage()}return t.prototype.clone=function(){var e=new t(this._columnName,this._dataType);return e._caption=this._caption,e._table=this._table,e},Object.defineProperty(t.prototype,"storage",{get:function(){return this._storage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){if(null==this._caption||""==this._caption)return this._columnName;return this._caption},set:function(e){null==e&&(e=""),this._caption=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnName",{get:function(){return this._columnName},set:function(e){this._columnName=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataType",{get:function(){return this._dataType},set:function(e){this._dataType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this._table},set:function(e){this._table=e},enumerable:!0,configurable:!0}),t.prototype.getRecord=function(e){return this._storage.getValue(e)},t.prototype.setRecord=function(e,t){this._storage.setValue(e,t)},t.prototype.setTable=function(e){this._table=e},t.prototype.insureStorage=function(){null==this._storage&&(this._storage=e.DataStorage.createStorage(this,this.dataType))},t}();e.DataColumn=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=function(e){function t(t){var r=e.call(this)||this;return r._table=t,r}return __extends(t,e),Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!0,configurable:!0}),t.prototype.baseAdd=function(e){e.setTable(this.table)},t.prototype.baseRemove=function(e){e.setTable(null)},t.prototype.add=function(e){this.list.push(e),this.baseAdd(e)},t.prototype.remove=function(e){var t=this.list.lastIndexOf(e);-1!=t&&this.list.splice(t,1),this.baseRemove(e)},t.prototype.getByName=function(e){e=e.toLower();for(var t=0,r=this.list;t<r.length;t++){var n=r[t];if(n.columnName.toLower()==e)return n}return null},t.prototype.getByIndex=function(e){return this.list[e]},t.prototype.getIndexByName=function(e){var t=this.getByName(e);return this.list.indexOf(t)},t}(r);t.DataColumnCollection=n}(r=t.Data||(t.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(t,r){if(r){this.columns=Array.create(e.DataColumn,t.length);for(var n=0;n<t.length;n++)this.columns[n]=t[n]}else this.columns=t}return Object.defineProperty(t.prototype,"table",{get:function(){return this.columns[0].table},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsReference",{get:function(){return this.columns},enumerable:!0,configurable:!0}),t.prototype.getKeyValues=function(e){for(var t=new Array,r=0;r<this.columns.length;r++)t.push(this.columns[r].getRecord(e));return t},t.prototype.getRows=function(e){var t=this.columns[0].columnName,r=e[0];if(this.columns.length>1)for(var n=1;n<this.columns.length;n++)t+="&"+this.columns[n].columnName,r+="&"+e[n];var i=[];if(1==this.columns.length)for(var a=this.columns[0].columnName,o=this.table.columns.getByName(a),s=0;s<this.table.rows.list.length;s++)o.getRecord(s)==e[0]&&i.push(this.table.rows.list[s]);else for(var u=0;u<this.table.rows.list.length;u++){for(var m=!0,l=this.table.rows.list[u],y=0;y<this.columns.length;y++){var d=this.columns[y];l.getValue(d.columnName)!=e[y]&&(m=!1)}m&&i.push(l)}return i},t.prototype.toArray=function(){for(var e=new Array(this.columns.length),t=0;t<this.columns.length;t++)e[t]=this.columns[t];return e},t}();e.DataKey=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(e,t,r){this.create(e,t,r)}return Object.defineProperty(t.prototype,"childKey",{get:function(){return this._childKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentKey",{get:function(){return this._parentKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSet",{get:function(){return this._dataSet},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relationName",{get:function(){return this._relationName},set:function(e){null==e&&(e=""),this._relationName=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentTable",{get:function(){return this._parentKey.table},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childTable",{get:function(){return this._childKey.table},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentColumns",{get:function(){return this._parentKey.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childColumns",{get:function(){return this._childKey.toArray()},enumerable:!0,configurable:!0}),t.prototype.create=function(t,r,n){this._parentKey=new e.DataKey(r,!0),this._childKey=new e.DataKey(n,!0),this._relationName=null==t?"":t},t.prototype.setDataSet=function(e){this._dataSet!=e&&(this._dataSet=e)},t.getChildRows=function(e,t,r){var n=r.getKeyValues(e);return t.getRows(n)},t.getParentRows=function(e,t,r){var n=r.getKeyValues(t);return e.getRows(n)},t}();e.DataRelation=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=function(e){function t(){return e.call(this)||this}return __extends(t,e),t.prototype.addCore=function(e){if(null==e)return;var t=this.getDataSet();if(e.dataSet===t)return;if(null!=e.dataSet)return},t.prototype.add=function(e){this.addCore(e)},t.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.add(n)}},t.prototype.internalIndexOf=function(e){var t=-1;if(null!=e&&e.length>0)for(var r=this.list.length,n=0;n<r;n++){var i=this.list[n];if(i.relationName.toLowerCase()==e.toLowerCase())return n;t=-1==t?n:-2}return t},t.prototype.contains=function(e){return this.internalIndexOf(e)>=0},t.prototype.remove=function(e){var t=this.list.lastIndexOf(e);-1!=t&&this.list.splice(t,1)},t.prototype.removeAt=function(e){e>=0&&this.list.splice(e,1)},t.prototype.getByName=function(e){for(var t=0,r=this.list;t<r.length;t++){var n=r[t];if(n.relationName==e)return n}return null},t.prototype.getByIndex=function(e){return this.list[e]},t.prototype.getDataSet=function(){return null},t}(r);t.DataRelationCollection=n}(r=t.Data||(t.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){this.recordIndex=-1}return t.create=function(e){var r=new t;return r._table=e,r.columns=e.columns,r},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!0,configurable:!0}),t.prototype.getColumnIndex=function(t){if("number"==typeof t)return t;if("string"==typeof t)return this.columns.getIndexByName(t);if(t.sti_is(e.DataColumn))return this.columns.list.indexOf(t);return-1},t.prototype.gett=function(e){return this.getValue(e)},t.prototype.sett=function(e,t){this.setValue(e,t)},t.prototype.getValue=function(e){var t=this.getColumnIndex(e),r=this.columns.list[t];-1==this.recordIndex&&(this.recordIndex=this._table.rows.list.indexOf(this));var n=this.recordIndex;if(void 0!=r)return r.getRecord(n);return null},t.prototype.setValue=function(e,t){var r=this.getColumnIndex(e),n=this.columns.list[r];-1==this.recordIndex&&(this.recordIndex=this._table.rows.list.indexOf(this)),-1==this.recordIndex&&(this.recordIndex=this._table.rows.list.length);var i=this.recordIndex;void 0!=n&&n.setRecord(i,t)},t.prototype.getValueByIndex=function(e){var t=this.columns.list[e],r=this.columns.list[e],n=this._table.rows.list.indexOf(this);if(void 0!=r)return r.getRecord(n);return null},t.prototype.setValueByIndex=function(e,t){var r=this.columns.list[e],n=this.columns.list[e],i=this._table.rows.list.indexOf(this);void 0!=n&&n.setRecord(i,t)},t.prototype.getDataColumn=function(e){return this.columns.getByName(e)},t.prototype.getChildRows=function(t){var r=this.table.childRelations.getByName(t);if(null==r)return[];return e.DataRelation.getChildRows(r.parentKey,r.childKey,this)},t.prototype.getParentRow=function(t){var r=this.table.parentRelations.getByName(t);if(null==r)return null;return e.DataRelation.getParentRows(r.parentKey,r.childKey,this)[0]},t.prototype.getParentRows=function(t){var r=this.table.parentRelations.getByName(t);if(null==r)return[];return e.DataRelation.getParentRows(r.parentKey,r.childKey,this)},t.prototype.getKeyValues=function(e){var t=this.table.rows.list.indexOf(this);return e.getKeyValues(t)},t}();e.DataRow=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=function(e){function t(t){var r=e.call(this)||this;return r._table=t,r}return __extends(t,e),Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!0,configurable:!0}),t.prototype.add=function(e){return this._table.addRow(e)},t.prototype.remove=function(e){this._table.removeRow(e)},t.prototype.addArray=function(e){return e.recordIndex=this.list.push(e)-1,e.recordIndex},t.prototype.removeArray=function(e){var t=this.list.lastIndexOf(e);-1!=t&&this.list.splice(t,1)},t.prototype.copyTo=function(e,t){for(var r=0;r<this.count;r++)e[t]=this.list[r],t++},t.prototype.replaceValues=function(e,t){for(var r=0,n=this.table.columns.list;r<n.length;r++){var i=n[r],a=this.list[e].getValue(i);this.list[e].setValue(i,this.list[t].getValue(i)),this.list[t].setValue(i,a)}},t.prototype.quickSort=function(e,t,r){var n=t,i=r,a=this.list[(t+r)/2];do{while(e(this.list[n],a)<0)n++;while(e(a,this.list[i])<0)i--;n<=i&&(this.replaceValues(n,i),n++,i--)}while(n<i);t<i&&this.quickSort(e,t,i),n<r&&this.quickSort(e,n,r)},t.prototype.sort=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.list.length>0){var r=null,n=null,i=1;null!=e&&e.length>0&&("function"==typeof e[0]?r=e[0]:n=e[0].toString(),e.length>1&&!e[1].toString()&&(i=-1)),null==n&&(n=this.table.columns[0].columnName),this.quickSort(r,0,this.list.length-1)}},t}(r);t.DataRowCollection=n}(r=t.Data||(t.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.encodeName=function(e){if(null==e||0==e.length)return String.empty;var t=String.empty,r=/_[Xx]([0-9a-fA-F]{4})_/g,n=0,i=0,a=r.exec(e);while(a)t+=e.substring(i,a.index),t+="_x005F_x",i=a.index+2,a=r.exec(e);for(t+=e.substring(i,e.length),e=t,t="",e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57&&(t+="_",t+=this.toHex(e.charCodeAt(0)),t+="_",n++);n<e.length;n++){var o=e.charCodeAt(n);o<48||o>57&&o<65||o>90&&o<95||o>122&&o<160?(t+="_",t+=this.toHex(o),t+="_"):t+=e.substr(n,1)}return t},e.decodeName=function(e){if(null==e||0==e.length)return String.empty;if(e.indexOf("_")<0)return e;var t=String.empty,r=e.length,n=0,i=/_[Xx]([0-9a-fA-F]{4})_/g,a=i.exec(e);while(a){t+=e.substring(n,a.index);var o=4096*this.fromHex(String(a[1]).charAt(0))+256*this.fromHex(String(a[1]).charAt(1))+16*this.fromHex(String(a[1]).charAt(2))+this.fromHex(String(a[1]).charAt(3));t+=String.fromCharCode(o),n=a.index+7,a=i.exec(e)}return t+=e.substring(n,r)},e.fromHex=function(e){if(e>"9")return(e<="F"?e.charCodeAt(0)-"A".charCodeAt(0):e.charCodeAt(0)-"a".charCodeAt(0))+10;return e.charCodeAt(0)-"0".charCodeAt(0)},e.toHex=function(e){var t=e.toString(16).toUpperCase(),r="";switch(t.length){case 1:r+="x000"+t;break;case 2:r+="x00"+t;break;case 3:r+="x0"+t;break;case 4:r+="x"+t;break}return r},e}();e.XMLConvert=t}(t=e.Text||(e.Text={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){this._nodeName="",this._childNodes=[],this._localName="",this._textContent="",this._attributes=new e.XmlAttrCollection}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this._nodeName},set:function(e){this._nodeName=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this._nodeType},set:function(e){this._nodeType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this._childNodes},set:function(e){this._childNodes=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localName",{get:function(){return this._localName},set:function(e){this._localName=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this._textContent},set:function(e){this._textContent=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){if(this._childNodes.length>0)return this._childNodes[0];return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this._attributes},set:function(e){this._attributes=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this._parentNode},enumerable:!0,configurable:!0}),t.prototype.setParentNode=function(e){this._parentNode=e},t.prototype.getAttribute=function(e){if(null!=this.attributes)for(var t=0;t<this.attributes.length;t++){var r=this.attributes.list[t];if(r.name==e)return r.value}return null},t.prototype.item=function(e){return this._childNodes[e]},t.prototype.getNodeByName=function(e){for(var t=0;t<this._childNodes.length;t++){var r=this._childNodes[t];if(r.nodeName==e)return r;var n=r.getNodeByName(e);if(null!=n)return n}return null},t.prototype.getNodesByName=function(e){for(var t=[],r=0;r<this._childNodes.length;r++){var n=this._childNodes[r];n.nodeName==e&&t.add(n);var i=n.getNodesByName(e);if(null!=i)for(var a=0,o=i;a<o.length;a++){var s=o[a];t.add(s)}}return t},t}();e.XmlNode=t}(t=e.Xml||(e.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.ATTRIBUTE_NODE=0]="ATTRIBUTE_NODE",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=2]="TEXT_NODE",e[e.DOCUMENT_NODE=3]="DOCUMENT_NODE"}(t=e.XmlNodeType||(e.XmlNodeType={}))}(t=e.Xml||(e.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=function(){function r(){}return r.toXml=function(e){var t=r.getXmlDocumentFromString(e);return r.toXmlNode(t)},r.toXml2=function(e){var n=new xmldoc.XmlDocument(e),i=new t.XmlNode;return i.childNodes.add(r.toXmlNode2(n)),i},r.toXmlNode2=function(n){var i=new t.XmlNode;if(i.nodeType=r.getNodeType2(n),i.nodeName=e.System.Text.XMLConvert.decodeName(n.name),i.localName=e.System.Text.XMLConvert.decodeName(r.getNodeLocalName2(n)),null!=n.attr)for(var a=0,o=Object.keys(n.attr);a<o.length;a++){var s=o[a],u=new t.XmlAttr;u.name=s,u.value=n.attr[s],i.attributes.add(u)}if(n.children)for(var m=0;m<n.children.length;m++){var l=this.toXmlNode2(n.children[m]);l.nodeType!=t.XmlNodeType.TEXT_NODE&&(0==l.childNodes.length&&(l.textContent=n.children[m].val),l.setParentNode(i),i.childNodes.add(l))}return i},r.toXmlNode=function(n){var i=new t.XmlNode;i.nodeType=r.getNodeType(n),i.nodeName=e.System.Text.XMLConvert.decodeName(r.getNodeName(n)),i.localName=e.System.Text.XMLConvert.decodeName(r.getNodeLocalName(n));var a=r.getAttributesArray(n);if(null!=a)for(var o=0,s=a;o<s.length;o++){var u=s[o],m=new t.XmlAttr;m.name=u.name,m.value=u.value,i.attributes.add(m)}for(var l=0;l<r.getChildNodesArray(n).length;l++){var y=this.toXmlNode(r.getChildNodesArray(n)[l]);y.nodeType!=t.XmlNodeType.TEXT_NODE&&(0==y.childNodes.length&&(y.textContent=r.getNodeTextContent(r.getChildNodesArray(n)[l])),y.setParentNode(i),i.childNodes.add(y))}return i},r.getXmlDocumentFromString=function(e){var t=e.indexOf("<?");if(-1!=(t=e.indexOf("encoding",t+1))){var r=e.indexOf('"',t+1);r=e.indexOf('"',r+1),e=e.replace(e.substring(t,r+1),"")}return(new DOMParser).parseFromString(e,"application/xhtml+xml")},r.getAttributesArray=function(e){return e.attributes},r.getNodeType2=function(e){switch(e.type){case"element":return t.XmlNodeType.ELEMENT_NODE;case"text":return t.XmlNodeType.TEXT_NODE}return t.XmlNodeType.TEXT_NODE},r.getNodeType=function(e){switch(e.nodeType){case Node.ELEMENT_NODE:return t.XmlNodeType.ELEMENT_NODE;case Node.ATTRIBUTE_NODE:return t.XmlNodeType.ATTRIBUTE_NODE;case Node.DOCUMENT_NODE:return t.XmlNodeType.DOCUMENT_NODE;case Node.TEXT_NODE:return t.XmlNodeType.TEXT_NODE}return t.XmlNodeType.TEXT_NODE},r.getNodeName=function(e){return e.nodeName},r.getNodeLocalName2=function(e){if(e.name&&e.name.indexOf(":")>=0)return e.name.substring(e.name.indexOf(":")+1);return e.name},r.getNodeLocalName=function(e){return e.localName},r.getNodeTextContent=function(e){return e.textContent},r.getChildNodesArray=function(e){return e.childNodes},r}();t.XmlConverter=r}(r=t.Xml||(t.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n=e.System.Text.XMLConvert,i=e.System.Collections.Hashtable,a=e.System.Xml.XmlConverter,o=e.System.Xml.XmlNodeType,s=function(){function s(e){void 0===e&&(e=null),this.isRetrieveColumns=!1,this._dataSetName=String.empty,this._enforceConstraints=!1,this._tables=new r.DataTableCollection(this),this._relations=new r.DataSetRelationCollection(this),this._dataSetName=e,String.isNullOrEmpty(this._dataSetName)&&(this._dataSetName="DataSet")}return Object.defineProperty(s.prototype,"dataSetName",{get:function(){return this._dataSetName},set:function(e){this._dataSetName=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tables",{get:function(){return this._tables},set:function(e){this._tables=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"relations",{get:function(){return this._relations},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"enforceConstraints",{get:function(){return this._enforceConstraints},set:function(e){this._enforceConstraints!=e&&(this._enforceConstraints=e)},enumerable:!0,configurable:!0}),s.prototype.dispose=function(){this._tables=new r.DataTableCollection(this),this._relations=new r.DataSetRelationCollection(this),this._dataSetName="DataSet"},s.prototype.correctJsonString=function(e){var t=e.replace(/,\s*}/gi,"}");t=t.replace(/:\s*null/gi,": null");var r=0;while(r<t.length){if("{"==t[r])return t;if("["==t[r])return'{"root": '+t+"}";r++}return t},s.prototype.correctJson=function(e){var t=function(e){if(e instanceof Array)for(var r=0;r<e.length;r++){var n=typeof e[r];"string"==n||"number"==n||"boolean"==n?e[r]={value:e[r]}:t(e[r])}else for(var i in e){var n=typeof e[i];"string"!=n&&"number"!=n&&"boolean"!=n&&t(e[i])}};t(e);for(var r in e){var n=typeof e[r];if("string"==n||"number"==n||"boolean"==n)return{root:e}}return e},s.prototype.readJsonFile=function(t){if(!String.isNullOrEmpty(t)){var r=e.System.IO.File.getFile(t,!1,"application/json");if(r){var n=this.correctJsonString(r),i=this.correctJson(JSON.parse(n));this.processObject2(i)}}},s.prototype.readJson=function(t){try{if(void 0===t||null==t)return;if((t.sti_is(Array)||t.sti_is(Uint8Array))&&(t=e.System.Text.Encoding.UTF8.getString(t)),t.sti_is(String)){var r=this.correctJsonString(t);if(!String.isNullOrWhiteSpace(r)){var n=this.correctJson(JSON.parse(r));this.processObject2(n)}}else this.processObject2(this.correctJson(JSON.parse(JSON.stringify(t))))}catch(t){throw e.System.StiError.showError(t.message,!1),t}},s.prototype.readXmlFile=function(t){var r=e.System.IO.File.getFile(t,!1,"application/xml");null!=r&&(this.dataNode=a.toXml(r).firstChild,null!=this.dataNode&&this.fillDataSet())},s.prototype.readXml=function(t){try{if(void 0===t||null==t)return;(t.sti_is(Array)||t.sti_is(Uint8Array))&&(t=e.System.Text.Encoding.UTF8.getString(t)),t.sti_is(String)&&(t=a.toXml(t)),void 0!==t.firstChild&&(this.dataNode=t.firstChild,null!=this.dataNode&&this.fillDataSet())}catch(t){throw e.System.StiError.showError(t.message,!1),t}},s.prototype.readXmlSchemaFile=function(t){try{var r=e.System.IO.File.getFile(t);r&&(this.schemaNode=a.toXml(r).firstChild,null!=this.schemaNode&&this.fillDataSet())}catch(t){throw e.System.StiError.showError(t.message,!1),t}},s.prototype.readXmlSchema=function(t){try{if(void 0===t||null==t)return;t.sti_is(Array)&&(t=e.System.Text.Encoding.UTF8.getString(t)),t.sti_is(String)&&(t=a.toXml(t)),void 0!==t.firstChild&&(this.schemaNode=t.firstChild,null!=this.schemaNode&&this.fillDataSet())}catch(t){throw e.System.StiError.showError(t.message,!1),t}},s.prototype.processObject2=function(t){var n=[],i=function(e,t,r,a,o){void 0===o&&(o=!1);var s=t+"_"+e;String.isNullOrEmpty(t)&&(s=e);for(var u in a){var m=typeof a[u];if(null==a[u]&&(m="string"),"object"==m){var l=!1;if(a instanceof Array)i(e,t,r+".#array#"+u,a[u],!1);else{if(!o&&a[u]instanceof Array)for(var y=0,d=a[u];y<d.length;y++){var h=d[y];h.relationId="#relation#"+s}i(u,s,r+"."+u,a[u]),a[u]instanceof Array?(a[u]="#relation#"+r+"."+u+".#array#0",l=!0):a[u].relationId=-1}l||a[u]instanceof Array||(a[u]="#relation#"+r+"."+u)}}if(a instanceof Array)return;r&&(String.isNullOrEmpty(t)||(e=t+"_"+e),n.push({collectionName:e,address:r,cast:s,object:a}))};i("","","",t,!0);for(var a={},o={},s={},u=[],m=0,l=n;m<l.length;m++){var y=l[m],d=o[y.cast];if(d||(d=[]),d.lastIndexForAddress=0,a[y.address]=d,d.push(y),o[y.cast]=d,"relationId"in y.object&&-1!=y.object.relationId&&0==y.object.relationId.indexOf("#relation#")){var h=y.object.relationId.replaceAll("#relation#","");y.object.relationId=h in o?o[h].length:0}}var c=this;for(var f in o)for(var d=o[f],p=0,M=0,b=d;M<b.length;M++){var g=b[M],S=g.collectionName,v=c.tables.getByName(S);v||(v=new e.System.Data.DataTable(S),c.tables.add(v));var w=v.addNewRow();p++;for(var N in g.object)if(!String.isNullOrEmpty(N)){var j=typeof g.object[N],I=v.columns.getByName(N);if(!I){var _=String;"relationId"!=N&&("number"==j?_=e.System.Decimal:"boolean"==j&&(_=Boolean)),I=new e.System.Data.DataColumn(N,_),v.columns.add(I),"relationId"==N&&u.add(I)}if("relationId"==N){if(-1==g.object.relationId){g.object.relationId=0;for(var k=a[g.address],F=k.lastIndexForAddress;F<k.length;F++){var T=k[F];if(T.address==g.address){g.object.relationId=F,k.lastIndexForAddress=F;break}}}w.setValue(I,g.object.relationId)}else if("string"==j&&0==g.object[N].indexOf("#relation#")){w.setValue(I,p-1);var D=a[g.object[N].replaceAll("#relation#","")];D&&D.length>0&&(s[v.tableName+"."+I.columnName]={childColumn:I,childTable:v,parentTableName:D[0].collectionName})}else w.setValue(I,g.object[N])}}for(var P in s){var A=s[P].childColumn,O=c.tables.getByName(s[P].parentTableName),C=O.columns.getByName("relationId"),H=new r.DataRelation(O.tableName,[A],[C]);c.relations.add(H);for(var F=0;F<u.length;F++)if(u[F]==C){u.removeAt(F);break}}for(var E=0,B=u;E<B.length;E++){var x=B[E];x.table.columns.remove(x)}},s.prototype.processObject=function(t,r){var n=new i;for(var a in t)try{if(t.hasOwnProperty(a)){var o=t[a];o.sti_is(Array)?this.processArray(o,a):o.sti_is(String)||o.sti_is(Number)||o.sti_is(Boolean)?n.add(a,o):this.processObject(o,a)}}catch(t){throw e.System.StiError.showError(t,!1),t}this.processTable(n,r)},s.prototype.processTable=function(e,t){var n=new r.DataTable(t),i=!1;if(e.count>0){i=!0,n.columns.add(new r.DataColumn("key")),n.columns.add(new r.DataColumn("value"));for(var a=0,o=e.keys;a<o.length;a++){var s=o[a],u=n.newRow();n.rows.add(u),u.sett("key",s);var m=e.get(s);u.sett("value",m)}}i&&this.tables.add(n)},s.prototype.processArray=function(e,t){for(var n=new i,a=0,o=e;a<o.length;a++){var s=o[a];for(var u in s)if(s.hasOwnProperty(u)){var m=s[u];null!=m&&n.add(u,"")}}for(var l=new r.DataTable(t),y=0,d=n.keys;y<d.length;y++){var h=d[y];l.columns.add(new r.DataColumn(h))}for(var c=0,f=e;c<f.length;c++){var s=f[c],p=l.newRow(),M=l.rows.add(p);for(var u in s)if(s.hasOwnProperty(u)){var m=s[u];null==m||m.sti_is(String)||m.sti_is(Number)||m.sti_is(Boolean)||(m=JSON.stringify(m,null,2)),p.setValue(u,m)}}this.tables.add(l)},s.prototype.fillDataSet=function(){null!=this.schemaNode?this.parseSchema():this.fillDataTables(),null!=this.dataNode&&this.dataNode.childNodes.length>0&&!this.isRetrieveColumns&&this.fillTable(this.dataNode),this.dataNode=null,this.schemaNode=null},s.prototype.fillDataTables=function(){for(var e=0;e<this.dataNode.childNodes.length;e++){var t=this.dataNode.childNodes[e];t.nodeType==o.ELEMENT_NODE&&null!=t.nodeName&&this.fillDataTable(t)}},s.prototype.fillDataTable=function(e){var t=n.decodeName(e.nodeName),i=this.tables.getByName(t);null==i&&(i=new r.DataTable(t),this.tables.add(i)),this.getDataColumnsFromTable(e,i)},s.prototype.getDataColumnsFromTable=function(e,t){for(var i,a,s=String,u=0;u<e.childNodes.length;u++)if(e.childNodes[u].nodeType==o.ELEMENT_NODE){var m=e.childNodes[u];if(null==m.nodeName)continue;null!=m.firstChild?this.fillDataTable(m):(a=n.decodeName(m.nodeName),null==(i=t.columns.getByName(a))&&(i=new r.DataColumn(a,s),t.columns.add(i)))}},s.prototype.fillTable=function(e){var t,r=n.decodeName(e.nodeName);if(null!=t&&t.tableName==r||(t=this.tables.getByName(r)),null!=t)this.fillRow(e,t);else for(var i=0;i<e.childNodes.length;i++){var a=e.childNodes[i];a.nodeType==o.ELEMENT_NODE&&null!=a.nodeName&&this.fillTable(a)}},s.prototype.fillRow=function(e,r){for(var i,a,s,u=r.addNewRow(),m=0;m<e.childNodes.length;m++)if(e.childNodes[m].nodeType==o.ELEMENT_NODE){var l=e.childNodes[m];if(null!=l.nodeName)if(a=n.decodeName(l.nodeName),i=r.columns.getByName(a),s=null==l.firstChild?l.textContent:"true"==l.getAttribute("isNull")?null:String.empty,null==i)this.fillTable(l);else switch(i.dataType){case Boolean:u.setValue(a,s.toBoolean());break;case t.Byte:case t.Decimal:case t.Double:case t.Int16:case t.Int32:case t.Int64:case t.SByte:case t.Single:case t.UInt16:case t.UInt32:case t.UInt64:case Number:u.setValue(a,s.toNumber());break;default:null!=s&&s.sti_is(String)&&(s=s.replace(/\r\n/gi,"\n").replace(/\r/gi,"\n").replace(/\n/gi,"\r\n")),u.setValue(a,s.toString());break}}},s.prototype.parseSchema=function(){"schema"==this.schemaNode.localName&&(this.schemaNode=this.schemaNode.firstChild.firstChild.firstChild),this.getDataTables(this.schemaNode)},s.prototype.getDataTables=function(e){for(var t,i,a=0;a<e.childNodes.length;a++)if(e.childNodes[a].nodeType==o.ELEMENT_NODE){var s=e.childNodes[a];if("annotation"==s.localName)this.getRelations(s.firstChild);else if(i=n.decodeName(s.getAttribute("name")),!String.isNullOrEmpty(i)){t=new r.DataTable(i),null!=s.firstChild&&("element"==s.localName?this.getDataColumns(s.firstChild.firstChild,t):"complexType"==s.localName&&this.getDataColumns(s.firstChild,t));var u=this.tables.getByName(i);null!=u&&this.tables.remove(u),this.tables.add(t)}}},s.prototype.getStorageType=function(e){switch(e){case"boolean":case"Stimulsoft.System.Boolean":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Boolean]":return Boolean;case"Stimulsoft.System.Byte":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Byte]":return t.Byte;case"Stimulsoft.System.Char":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Char]":return t.Char;case"binary":case"base64Binary":case"Stimulsoft.System.Byte[]":case"Stimulsoft.System.Drawing.Image":return t.ByteArray;case"date":case"dateTime":case"Stimulsoft.System.DateTime":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.DateTime]":return t.DateTime;case"Stimulsoft.System.TimeSpan":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.TimeSpan]":return t.TimeSpan;case"decimal":case"Stimulsoft.System.Decimal":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Decimal]":return t.Decimal;case"float":case"Stimulsoft.System.Double":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Double]":return t.Double;case"Stimulsoft.System.Guid":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Guid]":return t.Guid;case"short":case"Stimulsoft.System.Int16":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Int16]":return t.Int16;case"int":case"Stimulsoft.System.Int32":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Int32]":return t.Int32;case"long":case"Stimulsoft.System.Int64":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Int64]":return t.Int64;case"Stimulsoft.System.Object":return Object;case"Stimulsoft.System.SByte":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.SByte]":return t.SByte;case"Stimulsoft.System.Single":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.Single]":return t.Single;case"Stimulsoft.System.UInt16":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.UInt16]":return t.UInt16;case"Stimulsoft.System.UInt32":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.UInt32]":return t.UInt32;case"Stimulsoft.System.UInt64":case"Stimulsoft.System.Nullable`1[Stimulsoft.System.UInt64]":return t.UInt64;case"string":case"Stimulsoft.System.String":return String}return String},s.prototype.getDataColumns=function(e,t){if(null==e)return;for(var i,a,s,u,m,l=0;l<e.childNodes.length;l++)if(e.childNodes[l].nodeType==o.ELEMENT_NODE){var y=e.childNodes[l];null==y.getAttribute("type")?this.getDataTables(y.parentNode):(a=n.decodeName(y.getAttribute("name")),u=null==y.getAttribute("type")?"string":y.getAttribute("type").substr(y.getAttribute("type").indexOf(":")+1),s=n.decodeName(y.getAttribute("msdata:Caption")),m=this.getStorageType(u),i=new r.DataColumn(a,m,s),t.columns.add(i))}},s.prototype.getRelations=function(e){for(var t=void 0;t<e.childNodes.length;t++)if(e.childNodes[t].nodeType==o.ELEMENT_NODE){var n=e.childNodes[t],i=String.empty,a=n.getAttribute("name"),s=this.findTable(n.getAttribute(i+"child")),u=this.findTable(n.getAttribute(i+"parent")),m=this.findColumn(n.getAttribute(i+"childkey").split(" "),s),l=this.findColumn(n.getAttribute(i+"parentkey").split(" "),u),y=new r.DataRelation(a,l,m);this.relations.add(y)}},s.prototype.findTable=function(e){return e=n.decodeName(e),this.tables.getByName(e)},s.prototype.findColumn=function(e,t){for(var r=[],i,a=0,o=e;a<o.length;a++){var s=o[a];s=n.decodeName(s),i=t.columns.getByName(s),null!=i&&r.push(i)}return r},s}();r.DataSet=s}(r=t.Data||(t.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){var r=e.call(this)||this;return r.dataSet=t,r}return __extends(t,e),t.prototype.addCore=function(t){if(e.prototype.addCore.call(this,t),t.childTable.dataSet!=this.dataSet||t.parentTable.dataSet!=this.dataSet)return;this.list.push(t),t.parentTable.childRelations.add(t),t.childTable.parentRelations.add(t),t.setDataSet(this.dataSet)},t.prototype.getDataSet=function(){return this.dataSet},t}(e.DataRelationCollection);e.DataSetRelationCollection=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(t){void 0===t&&(t=""),this._needCleanCache=!0,this._index=null,this._tableName=String.empty,this._extendedProperties={},this._columns=new e.DataColumnCollection(this),this._rows=new e.DataRowCollection(this),this._tableName=t}return Object.defineProperty(t.prototype,"index",{get:function(){return null==this._index&&(this._index=[]),this._needCleanCache&&(this._index.splice(0),this._needCleanCache=!1),this._index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableName",{get:function(){return this._tableName},set:function(e){this._tableName=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSet",{get:function(){return this._dataSet},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childRelations",{get:function(){return null==this._childRelationsCollection&&(this._childRelationsCollection=new e.DataTableRelationCollection(this,!1)),this._childRelationsCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentRelations",{get:function(){return null==this._parentRelationsCollection&&(this._parentRelationsCollection=new e.DataTableRelationCollection(this,!1)),this._parentRelationsCollection},enumerable:!0,configurable:!0}),t.prototype.setDataSet=function(e){this._dataSet=e,this._needCleanCache=!0},t.prototype.addRow=function(e){return this._needCleanCache=!0,this._rows.addArray(e)},t.prototype.removeRow=function(e){this._rows.removeArray(e),this._needCleanCache=!0},t.prototype.addNewRow=function(){var e=this.newRow();return this.addRow(e),this._needCleanCache=!0,e},Object.defineProperty(t.prototype,"extendedProperties",{get:function(){return this._extendedProperties},enumerable:!0,configurable:!0}),t.prototype.newRow=function(){return e.DataRow.create(this)},t.prototype.clone=function(){var r=new t;r._rows=new e.DataRowCollection(r),r._tableName=this._tableName,r._dataSet=this._dataSet,r._childRelationsCollection=this._childRelationsCollection,r._parentRelationsCollection=this._parentRelationsCollection,r.columns=new e.DataColumnCollection(r);for(var n=0,i=this.columns.list;n<i.length;n++){var a=i[n],o=a.clone();o.table=r,r.columns.add(o)}return r._needCleanCache=!0,r},t}();e.DataTable=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=function(e){function t(t){var r=e.call(this)||this;return r._dataSet=t,r}return __extends(t,e),t.prototype.add=function(e){this.checkTableName(e),this.list.push(e),this.baseAdd(e)},t.prototype.remove=function(e){var t=this.list.lastIndexOf(e);-1!==t&&this.list.splice(t,1),this.baseRemove(e)},t.prototype.baseAdd=function(e){e.setDataSet(this.dataSet)},t.prototype.baseRemove=function(e){e.setDataSet(null)},Object.defineProperty(t.prototype,"dataSet",{get:function(){return this._dataSet},enumerable:!0,configurable:!0}),t.prototype.getByName=function(e){for(var t=0,r=this.list;t<r.length;t++){var n=r[t];if(n.tableName==e)return n}return null},t.prototype.getByIndex=function(e){return this.list[e]},t.prototype.checkTableName=function(e){String.isNullOrEmpty(e.tableName)&&(e.tableName="Table");var t=1,r=e.tableName,n=this.getByName(r);while(null!=n)r=e.tableName+t.toString(),n=this.getByName(r),t++;e.tableName!=r&&(e.tableName=r)},t}(r);t.DataTableCollection=n}(r=t.Data||(t.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,r){var n=e.call(this)||this;return n.table=t,n.parentCollection=r,n}return __extends(t,e),t.prototype.addCache=function(e){this.list.push(e)},t.prototype.addCore=function(e){if(this.parentCollection){if(e.childTable!=this.table)return;if(e.parentTable!=this.table)return}this.addCache(e)},t.prototype.getDataSet=function(){return this.table.dataSet},t}(e.DataRelationCollection);e.DataTableRelationCollection=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r=function(t){function r(e){return t.call(this,e)||this}return __extends(r,t),r.prototype.getValue=function(e){return this.values[e]},r.prototype.setValue=function(t,r){null==r?this.values[t]="":"string"==typeof r?this.values[t]=e.DateTime.fromString(r):"number"==typeof r?this.values[t]=new Date(r):r.sti_is(Date)?this.values[t]=new e.DateTime(r):r.sti_is(e.DateTime)?this.values[t]=r:this.values[t]=""},r.prototype.setStorage=function(){this.values=[]},r}(t.DataStorage);t.DateTimeStorage=r}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]=null!=t?t.toNumber():0},t.prototype.setStorage=function(){this.values=[]},t}(e.DataStorage);e.DecimalStorage=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IDbConnection="IDbConnection"}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]=null!=t?t.toNumber():null},t.prototype.setStorage=function(){this.values=[]},t}(e.DataStorage);e.Int32Storage=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]=t},t.prototype.setStorage=function(){this.values=[]},t}(e.DataStorage);e.ObjectStorage=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.ObjectType=1]="ObjectType",e[e.BooleanType=3]="BooleanType",e[e.CharType=4]="CharType",e[e.SByteType=5]="SByteType",e[e.ByteType=6]="ByteType",e[e.Number16Type=7]="Number16Type",e[e.Unumber16Type=8]="Unumber16Type",e[e.NumberType=9]="NumberType",e[e.Number32Type=9]="Number32Type",e[e.Unumber32Type=10]="Unumber32Type",e[e.Number64Type=11]="Number64Type",e[e.Unumber64Type=12]="Unumber64Type",e[e.SingleType=13]="SingleType",e[e.DoubleType=14]="DoubleType",e[e.DecimalType=15]="DecimalType",e[e.DateTimeType=16]="DateTimeType",e[e.TimeSpanType=17]="TimeSpanType",e[e.StringType=18]="StringType",e[e.GuidType=19]="GuidType",e[e.ByteArrayType=20]="ByteArrayType",e[e.IntType=30]="IntType",e[e.Int16Type=31]="Int16Type",e[e.Int32Type=32]="Int32Type",e[e.Int64Type=33]="Int64Type",e[e.UInt16Type=34]="UInt16Type",e[e.UInt32Type=35]="UInt32Type",e[e.UInt64Type=36]="UInt64Type"}(t=e.StorageType||(e.StorageType={}))}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]=null!=t?t.toString():null},t.prototype.setStorage=function(){this.values=[]},t}(e.DataStorage);e.StringStorage=t}(t=e.Data||(e.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.UppercaseLetter=0]="UppercaseLetter",e[e.LowercaseLetter=1]="LowercaseLetter",e[e.TitlecaseLetter=2]="TitlecaseLetter",e[e.ModifierLetter=3]="ModifierLetter",e[e.OtherLetter=4]="OtherLetter",e[e.NonSpacingMark=5]="NonSpacingMark",e[e.SpacingCombiningMark=6]="SpacingCombiningMark",e[e.EnclosingMark=7]="EnclosingMark",e[e.DecimalDigitNumber=8]="DecimalDigitNumber",e[e.LetterNumber=9]="LetterNumber",e[e.OtherNumber=10]="OtherNumber",e[e.SpaceSeparator=11]="SpaceSeparator",e[e.LineSeparator=12]="LineSeparator",e[e.ParagraphSeparator=13]="ParagraphSeparator",e[e.Control=14]="Control",e[e.Format=15]="Format",e[e.Surrogate=16]="Surrogate",e[e.PrivateUse=17]="PrivateUse",e[e.ConnectorPunctuation=18]="ConnectorPunctuation",e[e.DashPunctuation=19]="DashPunctuation",e[e.OpenPunctuation=20]="OpenPunctuation",e[e.ClosePunctuation=21]="ClosePunctuation",e[e.InitialQuotePunctuation=22]="InitialQuotePunctuation",e[e.FinalQuotePunctuation=23]="FinalQuotePunctuation",e[e.OtherPunctuation=24]="OtherPunctuation",e[e.MathSymbol=25]="MathSymbol",e[e.CurrencySymbol=26]="CurrencySymbol",e[e.ModifierSymbol=27]="ModifierSymbol",e[e.OtherSymbol=28]="OtherSymbol",e[e.OtherNotAssigned=29]="OtherNotAssigned"}(t=e.UnicodeCategory||(e.UnicodeCategory={}))}(t=e.Globalization||(e.Globalization={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r=e.System.Globalization.UnicodeCategory,n=function(){function e(){}return e.isUpper=function(e,t){return void 0===t&&(t=0),this.getUnicodeCategory(e,t)==r.UppercaseLetter},e.isLower=function(e,t){return void 0===t&&(t=0),this.getUnicodeCategory(e,t)==r.LowercaseLetter},e.isLetter=function(e,t){void 0===t&&(t=0);var r=this.getUnicodeCategory(e,t);return this.checkLetter(r)},e.isDigit=function(e,t){return void 0===t&&(t=0),this.getUnicodeCategory(e,t)==r.DecimalDigitNumber},e.isLetterOrDigit=function(e,t){void 0===t&&(t=0);var n=this.getUnicodeCategory(e,t);return this.checkLetter(n)||n==r.DecimalDigitNumber},e.toLower=function(e){return e.toLocaleLowerCase()},e.toUpper=function(e){return e.toLocaleUpperCase()},e.isWhitespace=function(e,n,i){if(void 0===n&&(n=0),void 0===i&&(i=!0),null==e||e.length<n+1)return!1;var a=e.charCodeAt(n);if(32==a||a>=9&&a<=13||160==a&&i||133==a)return!0;var o=t.Chars.getUnicodeCategory(a);return o==r.SpaceSeparator||o==r.LineSeparator||o==r.ParagraphSeparator},e.checkLetter=function(e){return e==r.UppercaseLetter||e==r.LowercaseLetter||e==r.TitlecaseLetter||e==r.ModifierLetter||e==r.OtherLetter},e.getUnicodeCategory=function(e,n){if(void 0===n&&(n=0),null==e||e.length<n+1)return r.OtherNotAssigned;var i=e.charCodeAt(n);return t.Chars.getUnicodeCategory(i)},e.isControl=function(t,n){return void 0===n&&(n=0),e.getUnicodeCategory(t,n)==r.Control},e}();t.Char=n}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r=e.System.Char,n=function(){function e(t,r,n,i){if(void 0===t&&(t=0),void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=null),null==r)this._ticks=t;else{var a=t;null==i&&(i=0),this._ticks=e.timeToTicks(a,r,n,i)}}return Object.defineProperty(e,"zero",{get:function(){return new e},enumerable:!0,configurable:!0}),e.getStiNetTypeName=function(){return"Stimulsoft.System.TimeSpan"},Object.defineProperty(e,"minValue",{get:function(){return null==this._minValue&&(this._minValue=new e(0,0,Number.MIN_VALUE)),this._minValue},enumerable:!0,configurable:!0}),Object.defineProperty(e,"maxValue",{get:function(){return null==this._maxValue&&(this._maxValue=new e(0,0,Number.MAX_VALUE)),this._maxValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ticks",{get:function(){return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"days",{get:function(){return Math.floor(this._ticks/e.ticksPerDay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hours",{get:function(){return Math.floor(this._ticks/e.ticksPerHour)%24},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"milliseconds",{get:function(){return Math.floor(this._ticks/e.ticksPerMillisecond)%1e3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minutes",{get:function(){return Math.floor(this._ticks/e.ticksPerMinute)%60},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seconds",{get:function(){return Math.floor(this._ticks/e.ticksPerSecond)%60},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalDays",{get:function(){return this.ticks*e.daysPerTick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalHours",{get:function(){return this.ticks*e.hoursPerTick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalMilliseconds",{get:function(){var t=this.ticks*e.millisecondsPerTick;if(t>e.maxMilliSeconds)return e.maxMilliSeconds;if(t<e.minMilliSeconds)return e.minMilliSeconds;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalMinutes",{get:function(){return this.ticks*e.minutesPerTick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalSeconds",{get:function(){return this.ticks*e.secondsPerTick},enumerable:!0,configurable:!0}),e.fromString=function(t,n){if(void 0===n&&(n=null),null==t)return null;var i=!1;String.isNullOrEmpty(n)&&(n="hh:mm:ss",i=!0);var a=0,o=0,s=0,u=0,m=0,l,y=0,d=[];while(y<t.length){if(l=t.charAt(y),r.isDigit(l)){d.push(l),y++;while(y<t.length&&r.isDigit(l=t.charAt(y)))d[d.length-1]+=t.charAt(y),y++;d[d.length-1]=+d[d.length-1]}i&&"."===l&&(1===d.length?n="d.hh:mm:ss":n+=".f"),y++}y=0;var h=-1;while(y<n.length&&h+1<d.length){if("d"===(l=n.charAt(y))||"h"===l||"H"===l||"m"===l||"s"===l||"f"===l||"F"===l){h++;while(y<n.length&&n.charAt(y)===l)y++}switch(l){case"d":o+=24*d[h];break;case"h":case"H":o+=d[h];break;case"m":s=d[h];break;case"s":u=d[h];break;case"f":case"F":m=d[h];break;default:y++;break}}return new e(o,s,u,m)},e.interval=function(t,r){return new e((t*r+(t>=0?.5:-.5))*e.ticksPerMillisecond)},e.fromTicks=function(t){return new e(t)},e.fromSeconds=function(e){return this.interval(e,this.millisPerSecond)},e.fromMilliseconds=function(e){return this.interval(e,1)},e.prototype.toString=function(r){var n=!1;String.isNullOrEmpty(r)&&(r="hh:mm:ss",this.days>=1&&(r="d.hh:mm:ss"),r=r.replaceAll("h","H"));var i=new Date;i.setTime(0);var a=i.getDay(),o=i.getUTCDay(),s=i.getHours(),u=i.getUTCHours(),m=i.getMinutes(),l=i.getUTCMinutes(),y=1440*(a-o+1)+60*(s-u)+(m-l),d=e.ticksPerMinute*y,h=new t.DateTime(this.ticks-d).toString(r);if(this.ticks<0)return"-"+h;return h},e.prototype.negate=function(){if(this.ticks==e.minValue.ticks)throw"Overflow_NegateTwosCompNum";return new e(-this._ticks)},e.timeToTicks=function(t,r,n,i){return(3600*t+60*r+n)*e.ticksPerSecond},e.ticksPerMillisecond=1,e.millisecondsPerTick=1/e.ticksPerMillisecond,e.ticksPerSecond=1e3*e.ticksPerMillisecond,e.secondsPerTick=1/e.ticksPerSecond,e.ticksPerMinute=60*e.ticksPerSecond,e.minutesPerTick=1/e.ticksPerMinute,e.ticksPerHour=60*e.ticksPerMinute,e.hoursPerTick=1/e.ticksPerHour,e.ticksPerDay=24*e.ticksPerHour,e.daysPerTick=1/e.ticksPerDay,e.millisPerSecond=1e3,e.millisPerMinute=60*e.millisPerSecond,e.millisPerHour=60*e.millisPerMinute,e.millisPerDay=24*e.millisPerHour,e.maxSeconds=Number.MAX_VALUE/e.ticksPerSecond,e.minSeconds=Number.MIN_VALUE/e.ticksPerSecond,e.maxMilliSeconds=Number.MAX_VALUE/e.ticksPerMillisecond,e.minMilliSeconds=Number.MIN_VALUE/e.ticksPerMillisecond,e.ticksPerTenthSecond=100*e.ticksPerMillisecond,e._minValue=null,e._maxValue=null,e}();t.TimeSpan=n}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getValue=function(e){return this.values[e]},t.prototype.setValue=function(e,t){this.values[e]="string"==typeof t?r.fromString(t):"number"==typeof t?r.fromTicks(+t):t},t.prototype.setStorage=function(){this.values=[]},t}(t.DataStorage);t.TimeSpanStorage=n}(r=t.Data||(t.Data={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Solid=0]="Solid",e[e.Dash=1]="Dash",e[e.Dot=2]="Dot",e[e.DashDot=3]="DashDot",e[e.DashDotDot=4]="DashDotDot",e[e.Custom=5]="Custom"}(t=e.DashStyle||(e.DashStyle={}))}(t=e.Drawing2D||(e.Drawing2D={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Min=0]="Min",e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical",e[e.ForwardDiagonal=2]="ForwardDiagonal",e[e.BackwardDiagonal=3]="BackwardDiagonal",e[e.Max=4]="Max",e[e.Cross=4]="Cross",e[e.LargeGrid=4]="LargeGrid",e[e.DiagonalCross=5]="DiagonalCross",e[e.Percent05=6]="Percent05",e[e.Percent10=7]="Percent10",e[e.Percent20=8]="Percent20",e[e.Percent25=9]="Percent25",e[e.Percent30=10]="Percent30",e[e.Percent40=11]="Percent40",e[e.Percent50=12]="Percent50",e[e.Percent60=13]="Percent60",e[e.Percent70=14]="Percent70",e[e.Percent75=15]="Percent75",e[e.Percent80=16]="Percent80",e[e.Percent90=17]="Percent90",e[e.LightDownwardDiagonal=18]="LightDownwardDiagonal",e[e.LightUpwardDiagonal=19]="LightUpwardDiagonal",e[e.DarkDownwardDiagonal=20]="DarkDownwardDiagonal",e[e.DarkUpwardDiagonal=21]="DarkUpwardDiagonal",e[e.WideDownwardDiagonal=22]="WideDownwardDiagonal",e[e.WideUpwardDiagonal=23]="WideUpwardDiagonal",e[e.LightVertical=24]="LightVertical",e[e.LightHorizontal=25]="LightHorizontal",e[e.NarrowVertical=26]="NarrowVertical",e[e.NarrowHorizontal=27]="NarrowHorizontal",e[e.DarkVertical=28]="DarkVertical",e[e.DarkHorizontal=29]="DarkHorizontal",e[e.DashedDownwardDiagonal=30]="DashedDownwardDiagonal",e[e.DashedUpwardDiagonal=31]="DashedUpwardDiagonal",e[e.DashedHorizontal=32]="DashedHorizontal",e[e.DashedVertical=33]="DashedVertical",e[e.SmallConfetti=34]="SmallConfetti",e[e.LargeConfetti=35]="LargeConfetti",e[e.ZigZag=36]="ZigZag",e[e.Wave=37]="Wave",e[e.DiagonalBrick=38]="DiagonalBrick",e[e.HorizontalBrick=39]="HorizontalBrick",e[e.Weave=40]="Weave",e[e.Plaid=41]="Plaid",e[e.Divot=42]="Divot",e[e.DottedGrid=43]="DottedGrid",e[e.DottedDiamond=44]="DottedDiamond",e[e.Shingle=45]="Shingle",e[e.Trellis=46]="Trellis",e[e.Sphere=47]="Sphere",e[e.SmallGrid=48]="SmallGrid",e[e.SmallCheckerBoard=49]="SmallCheckerBoard",e[e.LargeCheckerBoard=50]="LargeCheckerBoard",e[e.OutlinedDiamond=51]="OutlinedDiamond",e[e.SolidDiamond=52]="SolidDiamond"}(t=e.HatchStyle||(e.HatchStyle={}))}(t=e.Drawing2D||(e.Drawing2D={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.AnchorMask=240]="AnchorMask",e[e.ArrowAnchor=20]="ArrowAnchor",e[e.Custom=255]="Custom",e[e.DiamondAnchor=19]="DiamondAnchor",e[e.Flat=0]="Flat",e[e.NoAnchor=16]="NoAnchor",e[e.Round=2]="Round",e[e.RoundAnchor=18]="RoundAnchor",e[e.Square=1]="Square",e[e.SquareAnchor=17]="SquareAnchor",e[e.Triangle=3]="Triangle"}(t=e.LineCap||(e.LineCap={}))}(t=e.Drawing2D||(e.Drawing2D={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.a=1,this.c=0,this.b=0,this.d=1,this.tx=0,this.ty=0;var n=t.length;if(6==n)this.setValues(t[0],t[1],t[2],t[3],t[4],t[5]);else if(1==n&&t instanceof e){var i=t[0];this.setValues(i.a,i.c,i.b,i.d,i.tx,i.ty)}else this.reset()}return Object.defineProperty(e.prototype,"elements",{get:function(){return[this.a,this.c,this.b,this.d,this.tx,this.ty]},enumerable:!0,configurable:!0}),e.prototype.setValues=function(e,t,r,n,i,a){this.a=e,this.c=t,this.b=r,this.d=n,this.tx=i,this.ty=a},e.prototype.reset=function(){this.a=this.d=1,this.c=this.b=this.tx=this.ty=0},e.prototype.clone=function(){return new e(this.a,this.c,this.b,this.d,this.tx,this.ty)},e.prototype.toString=function(){return String.stiFormat("({0},{1},{2},{3},{4},{5})",this.a,this.c,this.b,this.d,this.tx,this.ty)},e.prototype.translate=function(e,t){return this.tx+=e*this.a+t*this.b,this.ty+=e*this.c+t*this.d,this},e.prototype.scale=function(e,t){return this.a*=e,this.c*=e,this.b*=t,this.d*=t,this},e.prototype.rotate=function(e){e*=Math.PI/180;var t=Math.cos(e),r=Math.sin(e);return this.a=t*this.a+r*this.b,this.b=-r*this.a+t*this.b,this.c=t*this.c+r*this.d,this.d=-r*this.c+t*this.d,this},e.prototype.isIdentity=function(){return 1==this.a&&0==this.c&&0==this.b&&1==this.d&&0==this.tx&&0==this.ty},e.prototype.transformPoints=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t],i=n.x,a=n.y;n.x=i*this.a+a*this.b+this.tx,n.y=i*this.c+a*this.d+this.ty}},e.prototype.multiply=function(e){for(var t=[[this.a,this.c,0],[this.b,this.d,0],[this.tx,this.ty,1]],r=[[e.a,e.c,0],[e.b,e.d,0],[e.tx,e.ty,1]],n=[],i=0;i<3;i++){n[i]=[];for(var a=0;a<3;a++){for(var o=0,s=0;s<3;s++)o+=t[i][s]*r[s][a];n[i][a]=o}}return this.setValues(n[0][0],n[0][1],n[1][0],n[1][0],n[2][0],n[2][0]),this},e}();e.Matrix=t}(t=e.Drawing2D||(e.Drawing2D={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.ColorTypeCMYK=0]="ColorTypeCMYK",e[e.ColorTypeYCCK=1]="ColorTypeYCCK",e[e.CompressionLZW=2]="CompressionLZW",e[e.CompressionCCITT3=3]="CompressionCCITT3",e[e.CompressionCCITT4=4]="CompressionCCITT4",e[e.CompressionRle=5]="CompressionRle",e[e.CompressionNone=6]="CompressionNone",e[e.ScanMethodInterlaced=7]="ScanMethodInterlaced",e[e.ScanMethodNonInterlaced=8]="ScanMethodNonInterlaced",e[e.VersionGif87=9]="VersionGif87",e[e.VersionGif89=10]="VersionGif89",e[e.RenderProgressive=11]="RenderProgressive",e[e.RenderNonProgressive=12]="RenderNonProgressive",e[e.TransformRotate90=13]="TransformRotate90",e[e.TransformRotate180=14]="TransformRotate180",e[e.TransformRotate270=15]="TransformRotate270",e[e.TransformFlipHorizontal=16]="TransformFlipHorizontal",e[e.TransformFlipVertical=17]="TransformFlipVertical",e[e.MultiFrame=18]="MultiFrame",e[e.LastFrame=19]="LastFrame",e[e.Flush=20]="Flush",e[e.FrameDimensionTime=21]="FrameDimensionTime",e[e.FrameDimensionResolution=22]="FrameDimensionResolution",e[e.FrameDimensionPage=23]="FrameDimensionPage"}(t=e.EncoderValue||(e.EncoderValue={}))}(t=e.Imaging||(e.Imaging={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r;!function(t){var r=function(){function t(){}return t.getImageDecoders=function(){return null},t.getImageEncoders=function(){return[{clsid:e.Guid.newGuid(),codecName:"",filenameExtension:"",formatDescription:"",formatID:e.Guid.newGuid(),mimeType:"image/jpeg",version:1}]},t}();t.ImageCodecInfo=r}(r=t.Imaging||(t.Imaging={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=function(){function r(e){this.guid=e}return Object.defineProperty(r,"Tiff",{get:function(){return null==this._tiff&&(this._tiff=new r("tiff"),this._tiff.header=[73,73,42,0],this._tiff.getWidth=function(e){for(var t=e[7]<<32|e[6]<<16|e[5]<<8|e[4],r=e[t+1]<<8|e[t],n=t+2,i=0;i<=r;i++){if(256==(e[n+1]<<8|e[n]))return e[n+11]<<32|e[n+10]<<16|e[n+9]<<8|e[n+8];n+=12}return 0},this._tiff.getHeight=function(e){for(var t=e[7]<<32|e[6]<<16|e[5]<<8|e[4],r=e[t+1]<<8|e[t],n=t+2,i=0;i<=r;i++){if(257==(e[n+1]<<8|e[n]))return e[n+11]<<32|e[n+10]<<16|e[n+9]<<8|e[n+8];n+=12}return 0},this._tiff.getHorizontalResolution=function(e){for(var t=e[7]<<32|e[6]<<16|e[5]<<8|e[4],r=e[t+1]<<8|e[t],n=t+2,i=0;i<=r;i++){if(282==(e[n+1]<<8|e[n]))return e[n+11]<<32|e[n+10]<<16|e[n+9]<<8|e[n+8];n+=12}return NaN},this._tiff.getVerticalResolution=function(e){for(var t=e[7]<<32|e[6]<<16|e[5]<<8|e[4],r=e[t+1]<<8|e[t],n=t+2,i=0;i<=r;i++){if(232==(e[n+1]<<8|e[n]))return e[n+11]<<32|e[n+10]<<16|e[n+9]<<8|e[n+8];n+=12}return NaN}),this._tiff},enumerable:!0,configurable:!0}),Object.defineProperty(r,"Png",{get:function(){return null==this._png&&(this._png=new r("png"),this._png.header=[137,80,78,71,13,10,26,10],this._png.getWidth=function(e){for(var t=0,r=16;r<=16+3;r++)t=e[r]|t<<8;return t},this._png.getHeight=function(e){for(var t=0,r=20;r<=20+3;r++)t=e[r]|t<<8;return t},this._png.getHorizontalResolution=function(e){var t=-1;while(t<e.length)if(112==e[t++]&&72==e[t++]&&89==e[t++]&&115==e[t++]){var r=0;return r=e[t++]|r<<8,r=e[t++]|r<<8,r=e[t++]|r<<8,r=e[t++]|r<<8,Math.round(.0254*r)}return NaN},this._png.getVerticalResolution=function(e){var t=-1;while(t<e.length)if(112==e[t++]&&72==e[t++]&&89==e[t++]&&115==e[t++]){t+=4;var r=0;return r=e[t++]|r<<8,r=e[t++]|r<<8,r=e[t++]|r<<8,r=e[t++]|r<<8,Math.round(.0254*r)}return NaN}),this._png},enumerable:!0,configurable:!0}),Object.defineProperty(r,"Gif",{get:function(){return null==this._gif&&(this._gif=new r("gif"),this._gif.header=[71,73,70],this._gif.getWidth=function(e){return e[6]|e[7]<<8},this._gif.getHeight=function(e){return e[8]|e[9]<<8},this._gif.getHorizontalResolution=function(e){return 300},this._gif.getVerticalResolution=function(e){return 300}),this._gif},enumerable:!0,configurable:!0}),Object.defineProperty(r,"Jpeg",{get:function(){return null==this._jpeg&&(this._jpeg=new r("jpeg"),this._jpeg.header=[255,216],this._jpeg.getWidth=function(e){var t=-1,r=0;while(t<e.length)if(255==e[t++]){var n=e[t++];192!=n&&193!=n&&194!=n||(r=Math.max(e[t+5]<<8|e[t+6],r))}return r},this._jpeg.getHeight=function(e){var t=-1,r=0;while(t<e.length)if(255==e[t++]){var n=e[t++];192!=n&&193!=n&&194!=n||(r=Math.max(e[t+3]<<8|e[t+4],r))}return r},this._jpeg.getHorizontalResolution=function(e){var t=-1;while(t<e.length)if(255==e[t++]&&224==e[t++]){var r=256*e[t+12]+e[t+13];return 2==e[t+9]&&(r*=2.54),Math.round(r)}return NaN},this._jpeg.getVerticalResolution=function(e){var t=-1;while(t<e.length)if(255==e[t++]&&224==e[t++]){var r=256*e[t+10]+e[t+11];return 2==e[t+9]&&(r*=2.54),Math.round(r)}return NaN}),this._jpeg},enumerable:!0,configurable:!0}),Object.defineProperty(r,"Bmp",{get:function(){return null==this._bmp&&(this._bmp=new r("bmp"),this._bmp.header=[66,77],this._bmp.getWidth=function(e){return e[18]|e[19]<<8},this._bmp.getHeight=function(e){return e[22]|e[23]<<8},this._bmp.getHorizontalResolution=function(e){var t=e[38]|e[39]<<8;return Math.round(.0254*t)},this._bmp.getVerticalResolution=function(e){var t=e[42]|e[43]<<8;return Math.round(.0254*t)}),this._bmp},enumerable:!0,configurable:!0}),Object.defineProperty(r,"Svg",{get:function(){var n=this;return null==this._svg&&(this._svg=new r("svg+xml"),this._svg.header=[60,115,118,103],e.System.NodeJs.useWebKit&&(this._svg.getWidth=function(t,r){void 0===r&&(r="");var n=0,i=document.createElement("div");return i.style.wordWrap="break-word",i.style.display="inline-block",i.style.lineHeight="normal",i.innerHTML=e.System.Convert.fromBase64StringText(r),document.body.appendChild(i),n=i.getBoundingClientRect().width,document.body.removeChild(i),n},this._svg.getHeight=function(t,r){void 0===r&&(r="");var n=0,i=document.createElement("div");return i.style.wordWrap="break-word",i.style.display="inline-block",i.style.lineHeight="normal",i.innerHTML=e.System.Convert.fromBase64StringText(r),document.body.appendChild(i),n=i.getBoundingClientRect().height,document.body.removeChild(i),n}),this._svg.checkHeader=function(e){var r=1e3;try{if(e.length>5&&"<"==String.fromCharCode(e[0])&&"s"==String.fromCharCode(e[1])&&"v"==String.fromCharCode(e[2])&&"g"==String.fromCharCode(e[3])&&t.Char.isWhitespace(String.fromCharCode(e[4])))return n._svg;var i=[],a=!1,o=0,s=0;while(s<e.length-5&&s<r){if("<"==String.fromCharCode(e[s])){if(0==o&&"s"==String.fromCharCode(e[s+1])&&"v"==String.fromCharCode(e[s+2])&&"g"==String.fromCharCode(e[s+3])&&t.Char.isWhitespace(String.fromCharCode(e[s+4])))return n._svg;"/"==String.fromCharCode(e[s+1])?(o--,a=i.pop()):(o++,i.push(a),"!"!=String.fromCharCode(e[s+1])&&"?"!=String.fromCharCode(e[s+1])||(a=!0))}else">"==String.fromCharCode(e[s])&&(s>1&&"/"==String.fromCharCode(e[s-1])||a)&&(o--,a=i.pop());s++}}catch(e){}return null}),this._svg},enumerable:!0,configurable:!0}),r.getImageFormat=function(e){if(r.Bmp.checkHeader(e))return r.Bmp;if(r.Gif.checkHeader(e))return r.Gif;if(r.Jpeg.checkHeader(e))return r.Jpeg;if(r.Png.checkHeader(e))return r.Png;if(r.Tiff.checkHeader(e))return r.Tiff;if(r.Svg.checkHeader(e))return r.Svg},r.prototype.checkHeader=function(e){for(var t=0;t<this.header.length;t++)if(this.header[t]!=e[t])return null;return this},r.prototype.getWidth=function(e,t){return void 0===t&&(t=null),NaN},r.prototype.getHeight=function(e,t){return void 0===t&&(t=null),NaN},r.prototype.getHorizontalResolution=function(e){return NaN},r.prototype.getVerticalResolution=function(e){return NaN},Object.defineProperty(r.prototype,"mimeType",{get:function(){return"image/"+this.guid},enumerable:!0,configurable:!0}),r.prototype.toString=function(){return this.guid},r}();r.ImageFormat=n}(n=r.Imaging||(r.Imaging={}))}(r=t.Drawing||(t.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.add=function(e){this._list.push(e)},t}(r);t.PaperSizeCollection=n}(r=t.PrinterSettings||(t.PrinterSettings={}))}(r=t.Printing||(t.Printing={}))}(r=t.Drawing||(t.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var r=function(){function r(){}return Object.defineProperty(r.prototype,"paperSizes",{get:function(){var r,n=new t.PaperSizeCollection;return r=new e.PaperSize(e.PaperKind.A2,"A2",1654,2339),n.add(r),r=new e.PaperSize(e.PaperKind.A3,"A3",1169,1654),n.add(r),r=new e.PaperSize(e.PaperKind.A3Extra,"A3Extra",1268,1752),n.add(r),r=new e.PaperSize(e.PaperKind.A3ExtraTransverse,"A3ExtraTransverse",1268,1752),n.add(r),r=new e.PaperSize(e.PaperKind.A3Rotated,"A3Rotated",1654,1169),n.add(r),r=new e.PaperSize(e.PaperKind.A3Transverse,"A3Transverse",1169,1654),n.add(r),r=new e.PaperSize(e.PaperKind.A4,"A4",827,1169),n.add(r),r=new e.PaperSize(e.PaperKind.A4Extra,"A4Extra",927,1269),n.add(r),r=new e.PaperSize(e.PaperKind.A4Plus,"A4Plus",827,1299),n.add(r),r=new e.PaperSize(e.PaperKind.A4Rotated,"A4Rotated",1169,827),n.add(r),r=new e.PaperSize(e.PaperKind.A4Small,"A4Small",827,1169),n.add(r),r=new e.PaperSize(e.PaperKind.A4Transverse,"A4Transverse",827,1169),n.add(r),r=new e.PaperSize(e.PaperKind.A5,"A5",583,827),n.add(r),r=new e.PaperSize(e.PaperKind.A5Extra,"A5Extra",685,925),n.add(r),r=new e.PaperSize(e.PaperKind.A5Rotated,"A5Rotated",827,583),n.add(r),r=new e.PaperSize(e.PaperKind.A5Transverse,"A5Transverse",583,827),n.add(r),r=new e.PaperSize(e.PaperKind.A6,"A6",413,583),n.add(r),r=new e.PaperSize(e.PaperKind.A6Rotated,"A6Rotated",583,413),n.add(r),r=new e.PaperSize(e.PaperKind.APlus,"APlus",894,1402),n.add(r),r=new e.PaperSize(e.PaperKind.B4,"B4",1012,1433),n.add(r),r=new e.PaperSize(e.PaperKind.B4Envelope,"B4Envelope",984,1390),n.add(r),r=new e.PaperSize(e.PaperKind.B4JisRotated,"B4JisRotated",1433,1012),n.add(r),r=new e.PaperSize(e.PaperKind.B5,"B5",717,1012),n.add(r),r=new e.PaperSize(e.PaperKind.B5Envelope,"B5Envelope",693,984),n.add(r),r=new e.PaperSize(e.PaperKind.B5Extra,"B5Extra",791,1087),n.add(r),r=new e.PaperSize(e.PaperKind.B5JisRotated,"B5JisRotated",1012,717),n.add(r),r=new e.PaperSize(e.PaperKind.B5Transverse,"B5Transverse",717,1012),n.add(r),r=new e.PaperSize(e.PaperKind.B6Envelope,"B6Envelope",693,492),n.add(r),r=new e.PaperSize(e.PaperKind.B6Jis,"B6Jis",504,717),n.add(r),r=new e.PaperSize(e.PaperKind.B6JisRotated,"B6JisRotated",717,504),n.add(r),r=new e.PaperSize(e.PaperKind.BPlus,"BPlus",1201,1917),n.add(r),r=new e.PaperSize(e.PaperKind.C3Envelope,"C3Envelope",1276,1803),n.add(r),r=new e.PaperSize(e.PaperKind.C4Envelope,"C4Envelope",902,1276),n.add(r),r=new e.PaperSize(e.PaperKind.C5Envelope,"C5Envelope",638,902),n.add(r),r=new e.PaperSize(e.PaperKind.C65Envelope,"C65Envelope",449,902),n.add(r),r=new e.PaperSize(e.PaperKind.C6Envelope,"C6Envelope",449,638),n.add(r),r=new e.PaperSize(e.PaperKind.CSheet,"CSheet",1700,2200),n.add(r),r=new e.PaperSize(e.PaperKind.DLEnvelope,"DLEnvelope",433,866),n.add(r),r=new e.PaperSize(e.PaperKind.DSheet,"DSheet",2200,3400),n.add(r),r=new e.PaperSize(e.PaperKind.ESheet,"ESheet",3400,4400),n.add(r),r=new e.PaperSize(e.PaperKind.Executive,"Executive",725,1050),n.add(r),r=new e.PaperSize(e.PaperKind.Folio,"Folio",850,1300),n.add(r),r=new e.PaperSize(e.PaperKind.GermanLegalFanfold,"GermanLegalFanfold",850,1300),n.add(r),r=new e.PaperSize(e.PaperKind.GermanStandardFanfold,"GermanStandardFanfold",850,1200),n.add(r),r=new e.PaperSize(e.PaperKind.InviteEnvelope,"InviteEnvelope",866,866),n.add(r),r=new e.PaperSize(e.PaperKind.IsoB4,"IsoB4",984,1390),n.add(r),r=new e.PaperSize(e.PaperKind.ItalyEnvelope,"ItalyEnvelope",433,906),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseDoublePostcard,"JapaneseDoublePostcard",787,583),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseDoublePostcardRotated,"JapaneseDoublePostcardRotated",583,787),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeChouNumber3,"JapaneseEnvelopeChouNumber3",472,925),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeChouNumber3Rotated,"JapaneseEnvelopeChouNumber3Rotated",925,472),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeChouNumber4,"JapaneseEnvelopeChouNumber4",354,807),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeChouNumber4Rotated,"JapaneseEnvelopeChouNumber4Rotated",807,354),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeKakuNumber2,"JapaneseEnvelopeKakuNumber2",945,1307),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeKakuNumber2Rotated,"JapaneseEnvelopeKakuNumber2Rotated",1307,945),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeKakuNumber3,"JapaneseEnvelopeKakuNumber3",850,1091),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeKakuNumber3Rotated,"JapaneseEnvelopeKakuNumber3Rotated",1091,850),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeYouNumber4,"JapaneseEnvelopeYouNumber4",413,925),n.add(r),r=new e.PaperSize(e.PaperKind.JapaneseEnvelopeYouNumber4Rotated,"JapaneseEnvelopeYouNumber4Rotated",925,413),n.add(r),r=new e.PaperSize(e.PaperKind.JapanesePostcard,"JapanesePostcard",394,583),n.add(r),r=new e.PaperSize(e.PaperKind.JapanesePostcardRotated,"JapanesePostcardRotated",583,394),n.add(r),r=new e.PaperSize(e.PaperKind.Ledger,"Ledger",1700,1100),n.add(r),r=new e.PaperSize(e.PaperKind.Legal,"Legal",850,1400),n.add(r),r=new e.PaperSize(e.PaperKind.LegalExtra,"LegalExtra",950,1500),n.add(r),r=new e.PaperSize(e.PaperKind.Letter,"Letter",850,1100),n.add(r),r=new e.PaperSize(e.PaperKind.LetterExtra,"LetterExtra",950,1200),n.add(r),r=new e.PaperSize(e.PaperKind.LetterExtraTransverse,"LetterExtraTransverse",950,1200),n.add(r),r=new e.PaperSize(e.PaperKind.LetterPlus,"LetterPlus",850,1269),n.add(r),r=new e.PaperSize(e.PaperKind.LetterRotated,"LetterRotated",1100,850),n.add(r),r=new e.PaperSize(e.PaperKind.LetterSmall,"LetterSmall",850,1100),n.add(r),r=new e.PaperSize(e.PaperKind.LetterTransverse,"LetterTransverse",850,1100),n.add(r),r=new e.PaperSize(e.PaperKind.MonarchEnvelope,"MonarchEnvelope",387,750),n.add(r),r=new e.PaperSize(e.PaperKind.Note,"Note",850,1100),n.add(r),r=new e.PaperSize(e.PaperKind.Number10Envelope,"Number10Envelope",412,950),n.add(r),r=new e.PaperSize(e.PaperKind.Number11Envelope,"Number11Envelope",450,1037),n.add(r),r=new e.PaperSize(e.PaperKind.Number12Envelope,"Number12Envelope",475,1100),n.add(r),r=new e.PaperSize(e.PaperKind.Number14Envelope,"Number14Envelope",500,1150),n.add(r),r=new e.PaperSize(e.PaperKind.Number9Envelope,"Number9Envelope",387,887),n.add(r),r=new e.PaperSize(e.PaperKind.PersonalEnvelope,"PersonalEnvelope",362,650),n.add(r),r=new e.PaperSize(e.PaperKind.Prc16K,"Prc16K",0,0),n.add(r),r=new e.PaperSize(e.PaperKind.Prc16KRotated,"Prc16KRotated",0,0),n.add(r),r=new e.PaperSize(e.PaperKind.Prc32K,"Prc32K",0,0),n.add(r),r=new e.PaperSize(e.PaperKind.Prc32KBig,"Prc32KBig",0,0),n.add(r),r=new e.PaperSize(e.PaperKind.Prc32KBigRotated,"Prc32KBigRotated",0,0),n.add(r),r=new e.PaperSize(e.PaperKind.Prc32KRotated,"Prc32KRotated",0,0),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber1,"PrcEnvelopeNumber1",402,650),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber10,"PrcEnvelopeNumber10",1276,1803),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber10Rotated,"PrcEnvelopeNumber10Rotated",1803,1276),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber1Rotated,"PrcEnvelopeNumber1Rotated",650,402),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber2,"PrcEnvelopeNumber2",650,402),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber2Rotated,"PrcEnvelopeNumber2Rotated",402,650),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber3,"PrcEnvelopeNumber3",492,693),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber3Rotated,"PrcEnvelopeNumber3Rotated",693,492),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber4,"PrcEnvelopeNumber4",433,819),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber4Rotated,"PrcEnvelopeNumber4Rotated",819,433),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber5,"PrcEnvelopeNumber5",433,866),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber5Rotated,"PrcEnvelopeNumber5Rotated",866,433),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber6,"PrcEnvelopeNumber6",472,906),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber6Rotated,"PrcEnvelopeNumber6Rotated",906,472),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber7,"PrcEnvelopeNumber7",630,906),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber7Rotated,"PrcEnvelopeNumber7Rotated",906,630),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber8,"PrcEnvelopeNumber8",472,1217),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber8Rotated,"PrcEnvelopeNumber8Rotated",1217,472),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber9,"PrcEnvelopeNumber9",902,1276),n.add(r),r=new e.PaperSize(e.PaperKind.PrcEnvelopeNumber9Rotated,"PrcEnvelopeNumber9Rotated",1276,902),n.add(r),r=new e.PaperSize(e.PaperKind.Quarto,"Quarto",846,1083),n.add(r),r=new e.PaperSize(e.PaperKind.Standard10x11,"Standard10x11",1e3,1100),n.add(r),r=new e.PaperSize(e.PaperKind.Standard10x14,"Standard10x14",1e3,1400),n.add(r),r=new e.PaperSize(e.PaperKind.Standard11x17,"Standard11x17",1100,1700),n.add(r),r=new e.PaperSize(e.PaperKind.Standard12x11,"Standard12x11",1200,1100),n.add(r),r=new e.PaperSize(e.PaperKind.Standard15x11,"Standard15x11",1500,1100),n.add(r),r=new e.PaperSize(e.PaperKind.Standard9x11,"Standard9x11",900,1100),n.add(r),r=new e.PaperSize(e.PaperKind.Statement,"Statement",550,850),n.add(r),r=new e.PaperSize(e.PaperKind.Tabloid,"Tabloid",1100,1700),n.add(r),r=new e.PaperSize(e.PaperKind.TabloidExtra,"TabloidExtra",1200,1800),n.add(r),r=new e.PaperSize(e.PaperKind.USStandardFanfold,"USStandardFanfold",1487,1100),n.add(r),n},enumerable:!0,configurable:!0}),r}();t.PrinterSettings=r}(t=e.PrinterSettings||(e.PrinterSettings={}))}(t=e.Printing||(e.Printing={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.A2=66]="A2",e[e.A3=8]="A3",e[e.A3Extra=63]="A3Extra",e[e.A3ExtraTransverse=68]="A3ExtraTransverse",e[e.A3Rotated=76]="A3Rotated",e[e.A3Transverse=67]="A3Transverse",e[e.A4=9]="A4",e[e.A4Extra=53]="A4Extra",e[e.A4Plus=60]="A4Plus",e[e.A4Rotated=77]="A4Rotated",e[e.A4Small=10]="A4Small",e[e.A4Transverse=55]="A4Transverse",e[e.A5=11]="A5",e[e.A5Extra=64]="A5Extra",e[e.A5Rotated=78]="A5Rotated",e[e.A5Transverse=61]="A5Transverse",e[e.A6=70]="A6",e[e.A6Rotated=83]="A6Rotated",e[e.APlus=57]="APlus",e[e.B4=12]="B4",e[e.B4Envelope=33]="B4Envelope",e[e.B4JisRotated=79]="B4JisRotated",e[e.B5=13]="B5",e[e.B5Envelope=34]="B5Envelope",e[e.B5Extra=65]="B5Extra",e[e.B5JisRotated=80]="B5JisRotated",e[e.B5Transverse=62]="B5Transverse",e[e.B6Envelope=35]="B6Envelope",e[e.B6Jis=88]="B6Jis",e[e.B6JisRotated=89]="B6JisRotated",e[e.BPlus=58]="BPlus",e[e.C3Envelope=29]="C3Envelope",e[e.C4Envelope=30]="C4Envelope",e[e.C5Envelope=28]="C5Envelope",e[e.C65Envelope=32]="C65Envelope",e[e.C6Envelope=31]="C6Envelope",e[e.CSheet=24]="CSheet",e[e.Custom=0]="Custom",e[e.DLEnvelope=27]="DLEnvelope",e[e.DSheet=25]="DSheet",e[e.ESheet=26]="ESheet",e[e.Executive=7]="Executive",e[e.Folio=14]="Folio",e[e.GermanLegalFanfold=41]="GermanLegalFanfold",e[e.GermanStandardFanfold=40]="GermanStandardFanfold",e[e.InviteEnvelope=47]="InviteEnvelope",e[e.IsoB4=42]="IsoB4",e[e.ItalyEnvelope=36]="ItalyEnvelope",e[e.JapaneseDoublePostcard=69]="JapaneseDoublePostcard",e[e.JapaneseDoublePostcardRotated=82]="JapaneseDoublePostcardRotated",e[e.JapaneseEnvelopeChouNumber3=73]="JapaneseEnvelopeChouNumber3",e[e.JapaneseEnvelopeChouNumber3Rotated=86]="JapaneseEnvelopeChouNumber3Rotated",e[e.JapaneseEnvelopeChouNumber4=74]="JapaneseEnvelopeChouNumber4",e[e.JapaneseEnvelopeChouNumber4Rotated=87]="JapaneseEnvelopeChouNumber4Rotated",e[e.JapaneseEnvelopeKakuNumber2=71]="JapaneseEnvelopeKakuNumber2",e[e.JapaneseEnvelopeKakuNumber2Rotated=84]="JapaneseEnvelopeKakuNumber2Rotated",e[e.JapaneseEnvelopeKakuNumber3=72]="JapaneseEnvelopeKakuNumber3",e[e.JapaneseEnvelopeKakuNumber3Rotated=85]="JapaneseEnvelopeKakuNumber3Rotated",e[e.JapaneseEnvelopeYouNumber4=91]="JapaneseEnvelopeYouNumber4",e[e.JapaneseEnvelopeYouNumber4Rotated=92]="JapaneseEnvelopeYouNumber4Rotated",e[e.JapanesePostcard=43]="JapanesePostcard",e[e.JapanesePostcardRotated=81]="JapanesePostcardRotated",e[e.Ledger=4]="Ledger",e[e.Legal=5]="Legal",e[e.LegalExtra=51]="LegalExtra",e[e.Letter=1]="Letter",e[e.LetterExtra=50]="LetterExtra",e[e.LetterExtraTransverse=56]="LetterExtraTransverse",e[e.LetterPlus=59]="LetterPlus",e[e.LetterRotated=75]="LetterRotated",e[e.LetterSmall=2]="LetterSmall",e[e.LetterTransverse=54]="LetterTransverse",e[e.MonarchEnvelope=37]="MonarchEnvelope",e[e.Note=18]="Note",e[e.Number10Envelope=20]="Number10Envelope",e[e.Number11Envelope=21]="Number11Envelope",e[e.Number12Envelope=22]="Number12Envelope",e[e.Number14Envelope=23]="Number14Envelope",e[e.Number9Envelope=19]="Number9Envelope",e[e.PersonalEnvelope=38]="PersonalEnvelope",e[e.Prc16K=93]="Prc16K",e[e.Prc16KRotated=106]="Prc16KRotated",e[e.Prc32K=94]="Prc32K",e[e.Prc32KBig=95]="Prc32KBig",e[e.Prc32KBigRotated=108]="Prc32KBigRotated",e[e.Prc32KRotated=107]="Prc32KRotated",e[e.PrcEnvelopeNumber1=96]="PrcEnvelopeNumber1",e[e.PrcEnvelopeNumber10=105]="PrcEnvelopeNumber10",e[e.PrcEnvelopeNumber10Rotated=118]="PrcEnvelopeNumber10Rotated",e[e.PrcEnvelopeNumber1Rotated=109]="PrcEnvelopeNumber1Rotated",e[e.PrcEnvelopeNumber2=97]="PrcEnvelopeNumber2",e[e.PrcEnvelopeNumber2Rotated=110]="PrcEnvelopeNumber2Rotated",e[e.PrcEnvelopeNumber3=98]="PrcEnvelopeNumber3",e[e.PrcEnvelopeNumber3Rotated=111]="PrcEnvelopeNumber3Rotated",e[e.PrcEnvelopeNumber4=99]="PrcEnvelopeNumber4",e[e.PrcEnvelopeNumber4Rotated=112]="PrcEnvelopeNumber4Rotated",e[e.PrcEnvelopeNumber5=100]="PrcEnvelopeNumber5",e[e.PrcEnvelopeNumber5Rotated=113]="PrcEnvelopeNumber5Rotated",e[e.PrcEnvelopeNumber6=101]="PrcEnvelopeNumber6",e[e.PrcEnvelopeNumber6Rotated=114]="PrcEnvelopeNumber6Rotated",e[e.PrcEnvelopeNumber7=102]="PrcEnvelopeNumber7",e[e.PrcEnvelopeNumber7Rotated=115]="PrcEnvelopeNumber7Rotated",e[e.PrcEnvelopeNumber8=103]="PrcEnvelopeNumber8",e[e.PrcEnvelopeNumber8Rotated=116]="PrcEnvelopeNumber8Rotated",e[e.PrcEnvelopeNumber9=104]="PrcEnvelopeNumber9",e[e.PrcEnvelopeNumber9Rotated=117]="PrcEnvelopeNumber9Rotated",e[e.Quarto=15]="Quarto",e[e.Standard10x11=45]="Standard10x11",e[e.Standard10x14=16]="Standard10x14",e[e.Standard11x17=17]="Standard11x17",e[e.Standard12x11=90]="Standard12x11",e[e.Standard15x11=46]="Standard15x11",e[e.Standard9x11=44]="Standard9x11",e[e.Statement=6]="Statement",e[e.Tabloid=3]="Tabloid",e[e.TabloidExtra=52]="TabloidExtra",e[e.USStandardFanfold=39]="USStandardFanfold"}(t=e.PaperKind||(e.PaperKind={}))}(t=e.Printing||(e.Printing={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(e,t,r,n){void 0===e&&(e=0),void 0===t&&(t=""),void 0===r&&(r=0),void 0===n&&(n=0),this.createdByDefaultConstructor=0==e&&t==String.empty&&0==r&&0==n,this._kind=e,this._name=t,this._width=r,this._height=n}return Object.defineProperty(t.prototype,"kind",{get:function(){if(this._kind<=e.PaperKind.PrcEnvelopeNumber10Rotated&&this._kind!=(e.PaperKind.C65Envelope|e.PaperKind.Standard10x14)&&this._kind!=(e.PaperKind.B4Envelope|e.PaperKind.Standard10x14))return this._kind;return e.PaperKind.Custom},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){(this._kind==e.PaperKind.Custom||this.createdByDefaultConstructor)&&(this._name=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(t){(this._kind==e.PaperKind.Custom||this.createdByDefaultConstructor)&&(this._width=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(t){(this._kind==e.PaperKind.Custom||this.createdByDefaultConstructor)&&(this._height=t)},enumerable:!0,configurable:!0}),t}();e.PaperSize=t}(t=e.Printing||(e.Printing={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Display=0]="Display",e[e.ThousandthsOfAnInch=1]="ThousandthsOfAnInch",e[e.HundredthsOfAMillimeter=2]="HundredthsOfAMillimeter",e[e.TenthsOfAMillimeter=3]="TenthsOfAMillimeter"}(t=e.PrinterUnit||(e.PrinterUnit={}))}(t=e.Printing||(e.Printing={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return t.convert=function(e,r,n){var i=t.unitsPerDisplay(r);return e*t.unitsPerDisplay(n)/i},t.unitsPerDisplay=function(t){switch(t){case e.PrinterUnit.Display:return 1;case e.PrinterUnit.ThousandthsOfAnInch:return 10;case e.PrinterUnit.HundredthsOfAMillimeter:return 25.4;case e.PrinterUnit.TenthsOfAMillimeter:return 2.54}return 1},t}();e.PrinterUnitConvert=t}(t=e.Printing||(e.Printing={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Hide=0]="Hide",e[e.None=1]="None",e[e.Show=2]="Show"}(t=e.HotkeyPrefix||(e.HotkeyPrefix={}))}(t=e.Text||(e.Text={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.Brush=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return Object.defineProperty(t,"aliceBlue",{get:function(){return new e.SolidBrush(e.Color.aliceBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"antiqueWhite",{get:function(){return new e.SolidBrush(e.Color.antiqueWhite)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"aqua",{get:function(){return new e.SolidBrush(e.Color.aqua)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"aquamarine",{get:function(){return new e.SolidBrush(e.Color.aquamarine)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"azure",{get:function(){return new e.SolidBrush(e.Color.azure)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"beige",{get:function(){return new e.SolidBrush(e.Color.beige)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"bisque",{get:function(){return new e.SolidBrush(e.Color.bisque)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"black",{get:function(){return new e.SolidBrush(e.Color.black)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"blanchedAlmond",{get:function(){return new e.SolidBrush(e.Color.blanchedAlmond)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"blue",{get:function(){return new e.SolidBrush(e.Color.blue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"blueViolet",{get:function(){return new e.SolidBrush(e.Color.blueViolet)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"brown",{get:function(){return new e.SolidBrush(e.Color.brown)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"burlyWood",{get:function(){return new e.SolidBrush(e.Color.burlyWood)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cadetBlue",{get:function(){return new e.SolidBrush(e.Color.cadetBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"chartreuse",{get:function(){return new e.SolidBrush(e.Color.chartreuse)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"chocolate",{get:function(){return new e.SolidBrush(e.Color.chocolate)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"coral",{get:function(){return new e.SolidBrush(e.Color.coral)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cornflowerBlue",{get:function(){return new e.SolidBrush(e.Color.cornflowerBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cornsilk",{get:function(){return new e.SolidBrush(e.Color.cornsilk)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"crimson",{get:function(){return new e.SolidBrush(e.Color.crimson)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cyan",{get:function(){return new e.SolidBrush(e.Color.cyan)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkBlue",{get:function(){return new e.SolidBrush(e.Color.darkBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkCyan",{get:function(){return new e.SolidBrush(e.Color.darkCyan)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkGoldenrod",{get:function(){return new e.SolidBrush(e.Color.darkGoldenrod)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkGray",{get:function(){return new e.SolidBrush(e.Color.darkGray)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkGreen",{get:function(){return new e.SolidBrush(e.Color.darkGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkKhaki",{get:function(){return new e.SolidBrush(e.Color.darkKhaki)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkMagenta",{get:function(){return new e.SolidBrush(e.Color.darkMagenta)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkOliveGreen",{get:function(){return new e.SolidBrush(e.Color.darkOliveGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkOrange",{get:function(){return new e.SolidBrush(e.Color.darkOrange)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkOrchid",{get:function(){return new e.SolidBrush(e.Color.darkOrchid)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkRed",{get:function(){return new e.SolidBrush(e.Color.darkRed)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkSalmon",{get:function(){return new e.SolidBrush(e.Color.darkSalmon)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkSeaGreen",{get:function(){return new e.SolidBrush(e.Color.darkSeaGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkSlateBlue",{get:function(){return new e.SolidBrush(e.Color.darkSlateBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkSlateGray",{get:function(){return new e.SolidBrush(e.Color.darkSlateGray)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkTurquoise",{get:function(){return new e.SolidBrush(e.Color.darkTurquoise)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"darkViolet",{get:function(){return new e.SolidBrush(e.Color.darkViolet)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"deepPink",{get:function(){return new e.SolidBrush(e.Color.deepPink)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"deepSkyBlue",{get:function(){return new e.SolidBrush(e.Color.deepSkyBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"dimGray",{get:function(){return new e.SolidBrush(e.Color.dimGray)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"dodgerBlue",{get:function(){return new e.SolidBrush(e.Color.dodgerBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"firebrick",{get:function(){return new e.SolidBrush(e.Color.firebrick)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"floralWhite",{get:function(){return new e.SolidBrush(e.Color.floralWhite)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"forestGreen",{get:function(){return new e.SolidBrush(e.Color.forestGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"fuchsia",{get:function(){return new e.SolidBrush(e.Color.fuchsia)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"gainsboro",{get:function(){return new e.SolidBrush(e.Color.gainsboro)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"ghostWhite",{get:function(){return new e.SolidBrush(e.Color.ghostWhite)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"gold",{get:function(){return new e.SolidBrush(e.Color.gold)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"goldenrod",{get:function(){return new e.SolidBrush(e.Color.goldenrod)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"gray",{get:function(){return new e.SolidBrush(e.Color.gray)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"green",{get:function(){return new e.SolidBrush(e.Color.green)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"greenYellow",{get:function(){return new e.SolidBrush(e.Color.greenYellow)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"honeydew",{get:function(){return new e.SolidBrush(e.Color.honeydew)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"hotPink",{get:function(){return new e.SolidBrush(e.Color.hotPink)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"indianRed",{get:function(){return new e.SolidBrush(e.Color.indianRed)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"indigo",{get:function(){return new e.SolidBrush(e.Color.indigo)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"ivory",{get:function(){return new e.SolidBrush(e.Color.ivory)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"khaki",{get:function(){return new e.SolidBrush(e.Color.khaki)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lavender",{get:function(){return new e.SolidBrush(e.Color.lavender)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lavenderBlush",{get:function(){return new e.SolidBrush(e.Color.lavenderBlush)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lawnGreen",{get:function(){return new e.SolidBrush(e.Color.lawnGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lemonChiffon",{get:function(){return new e.SolidBrush(e.Color.lemonChiffon)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightBlue",{get:function(){return new e.SolidBrush(e.Color.lightBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightCoral",{get:function(){return new e.SolidBrush(e.Color.lightCoral)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightCyan",{get:function(){return new e.SolidBrush(e.Color.lightCyan)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightGoldenrodYellow",{get:function(){return new e.SolidBrush(e.Color.lightGoldenrodYellow)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightGray",{get:function(){return new e.SolidBrush(e.Color.lightGray)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightGreen",{get:function(){return new e.SolidBrush(e.Color.lightGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightPink",{get:function(){return new e.SolidBrush(e.Color.lightPink)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightSalmon",{get:function(){return new e.SolidBrush(e.Color.lightSalmon)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightSeaGreen",{get:function(){return new e.SolidBrush(e.Color.lightSeaGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightSkyBlue",{get:function(){return new e.SolidBrush(e.Color.lightSkyBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightSlateGray",{get:function(){return new e.SolidBrush(e.Color.lightSlateGray)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightSteelBlue",{get:function(){return new e.SolidBrush(e.Color.lightSteelBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lightYellow",{get:function(){return new e.SolidBrush(e.Color.lightYellow)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"lime",{get:function(){return new e.SolidBrush(e.Color.lime)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"limeGreen",{get:function(){return new e.SolidBrush(e.Color.limeGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"linen",{get:function(){return new e.SolidBrush(e.Color.linen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"magenta",{get:function(){return new e.SolidBrush(e.Color.magenta)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"maroon",{get:function(){return new e.SolidBrush(e.Color.maroon)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumAquamarine",{get:function(){return new e.SolidBrush(e.Color.mediumAquamarine)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumBlue",{get:function(){return new e.SolidBrush(e.Color.mediumBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumOrchid",{get:function(){return new e.SolidBrush(e.Color.mediumOrchid)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumPurple",{get:function(){return new e.SolidBrush(e.Color.mediumPurple)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumSeaGreen",{get:function(){return new e.SolidBrush(e.Color.mediumSeaGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumSlateBlue",{get:function(){return new e.SolidBrush(e.Color.mediumSlateBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumSpringGreen",{get:function(){return new e.SolidBrush(e.Color.mediumSpringGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumTurquoise",{get:function(){return new e.SolidBrush(e.Color.mediumTurquoise)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mediumVioletRed",{get:function(){return new e.SolidBrush(e.Color.mediumVioletRed)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"midnightBlue",{get:function(){return new e.SolidBrush(e.Color.midnightBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mintCream",{get:function(){return new e.SolidBrush(e.Color.mintCream)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"mistyRose",{get:function(){return new e.SolidBrush(e.Color.mistyRose)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"moccasin",{get:function(){return new e.SolidBrush(e.Color.moccasin)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"navajoWhite",{get:function(){return new e.SolidBrush(e.Color.navajoWhite)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"navy",{get:function(){return new e.SolidBrush(e.Color.navy)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"oldLace",{get:function(){return new e.SolidBrush(e.Color.oldLace)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"olive",{get:function(){return new e.SolidBrush(e.Color.olive)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"oliveDrab",{get:function(){return new e.SolidBrush(e.Color.oliveDrab)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"orange",{get:function(){return new e.SolidBrush(e.Color.orange)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"orangeRed",{get:function(){return new e.SolidBrush(e.Color.orangeRed)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"orchid",{get:function(){return new e.SolidBrush(e.Color.orchid)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"paleGoldenrod",{get:function(){return new e.SolidBrush(e.Color.paleGoldenrod)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"paleGreen",{get:function(){return new e.SolidBrush(e.Color.paleGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"paleTurquoise",{get:function(){return new e.SolidBrush(e.Color.paleTurquoise)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"paleVioletRed",{get:function(){return new e.SolidBrush(e.Color.paleVioletRed)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"papayaWhip",{get:function(){return new e.SolidBrush(e.Color.papayaWhip)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"peachPuff",{get:function(){return new e.SolidBrush(e.Color.peachPuff)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"peru",{get:function(){return new e.SolidBrush(e.Color.peru)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pink",{get:function(){return new e.SolidBrush(e.Color.pink)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"plum",{get:function(){return new e.SolidBrush(e.Color.plum)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"powderBlue",{get:function(){return new e.SolidBrush(e.Color.powderBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"purple",{get:function(){return new e.SolidBrush(e.Color.purple)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"red",{get:function(){return new e.SolidBrush(e.Color.red)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"rosyBrown",{get:function(){return new e.SolidBrush(e.Color.rosyBrown)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"royalBlue",{get:function(){return new e.SolidBrush(e.Color.royalBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"saddleBrown",{get:function(){return new e.SolidBrush(e.Color.saddleBrown)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"salmon",{get:function(){return new e.SolidBrush(e.Color.salmon)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"sandyBrown",{get:function(){return new e.SolidBrush(e.Color.sandyBrown)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"seaGreen",{get:function(){return new e.SolidBrush(e.Color.seaGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"seaShell",{get:function(){return new e.SolidBrush(e.Color.seaShell)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"sienna",{get:function(){return new e.SolidBrush(e.Color.sienna)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"silver",{get:function(){return new e.SolidBrush(e.Color.silver)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"skyBlue",{get:function(){return new e.SolidBrush(e.Color.skyBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"slateBlue",{get:function(){return new e.SolidBrush(e.Color.slateBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"slateGray",{get:function(){return new e.SolidBrush(e.Color.slateGray)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"snow",{get:function(){return new e.SolidBrush(e.Color.snow)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"springGreen",{get:function(){return new e.SolidBrush(e.Color.springGreen)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"steelBlue",{get:function(){return new e.SolidBrush(e.Color.steelBlue)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tan",{get:function(){return new e.SolidBrush(e.Color.tan)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"teal",{get:function(){return new e.SolidBrush(e.Color.teal)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"thistle",{get:function(){return new e.SolidBrush(e.Color.thistle)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tomato",{get:function(){return new e.SolidBrush(e.Color.tomato)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"turquoise",{get:function(){return new e.SolidBrush(e.Color.turquoise)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"violet",{get:function(){return new e.SolidBrush(e.Color.violet)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"wheat",{get:function(){return new e.SolidBrush(e.Color.wheat)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"white",{get:function(){return new e.SolidBrush(e.Color.white)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"whiteSmoke",{get:function(){return new e.SolidBrush(e.Color.whiteSmoke)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"yellow",{get:function(){return new e.SolidBrush(e.Color.yellow)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"yellowGreen",{get:function(){return new e.SolidBrush(e.Color.yellowGreen)},enumerable:!0,configurable:!0}),t}();e.Brushes=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this.name=e.customName}return Object.defineProperty(e,"aliceBlue",{get:function(){var t=e.fromArgb(240,248,255);return t.name="Alice Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"antiqueWhite",{get:function(){var t=e.fromArgb(250,235,215);return t.name="Antique White",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"aqua",{get:function(){var t=e.fromArgb(0,255,255);return t.name="Aqua",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"aquamarine",{get:function(){var t=e.fromArgb(127,255,212);return t.name="Aquamarine",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"azure",{get:function(){var t=e.fromArgb(240,255,255);return t.name="Azure",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"beige",{get:function(){var t=e.fromArgb(245,245,220);return t.name="Beige",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"bisque",{get:function(){var t=e.fromArgb(255,228,196);return t.name="Bisque",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"black",{get:function(){var t=e.fromArgb(0,0,0);return t.name="Black",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"blanchedAlmond",{get:function(){var t=e.fromArgb(255,235,205);return t.name="Blanched Almond",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"blue",{get:function(){var t=e.fromArgb(0,0,255);return t.name="Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"blueViolet",{get:function(){var t=e.fromArgb(138,43,226);return t.name="Blue Violet",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"brown",{get:function(){var t=e.fromArgb(165,42,42);return t.name="Brown",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"burlyWood",{get:function(){var t=e.fromArgb(222,184,135);return t.name="Burly Wood",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cadetBlue",{get:function(){var t=e.fromArgb(95,158,160);return t.name="Cadet Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"chartreuse",{get:function(){var t=e.fromArgb(127,255,0);return t.name="Chartreuse",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"chocolate",{get:function(){var t=e.fromArgb(210,105,30);return t.name="Chocolate",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"coral",{get:function(){var t=e.fromArgb(255,127,80);return t.name="Coral",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cornflowerBlue",{get:function(){var t=e.fromArgb(100,149,237);return t.name="Cornflower Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cornsilk",{get:function(){var t=e.fromArgb(255,248,220);return t.name="Cornsilk",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"crimson",{get:function(){var t=e.fromArgb(220,20,60);return t.name="Crimson",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cyan",{get:function(){var t=e.fromArgb(0,255,255);return t.name="Cyan",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkBlue",{get:function(){var t=e.fromArgb(0,0,139);return t.name="Dark Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkCyan",{get:function(){var t=e.fromArgb(0,139,139);return t.name="Dark Cyan",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkGoldenrod",{get:function(){var t=e.fromArgb(184,134,11);return t.name="Dark Goldenrod",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkGray",{get:function(){var t=e.fromArgb(169,169,169);return t.name="Dark Gray",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkGreen",{get:function(){var t=e.fromArgb(0,100,0);return t.name="Dark Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkKhaki",{get:function(){var t=e.fromArgb(189,183,107);return t.name="Dark Khaki",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkMagenta",{get:function(){var t=e.fromArgb(139,0,139);return t.name="Dark Magenta",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkOliveGreen",{get:function(){var t=e.fromArgb(85,107,47);return t.name="Dark Olive Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkOrange",{get:function(){var t=e.fromArgb(255,140,0);return t.name="Dark Orange",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkOrchid",{get:function(){var t=e.fromArgb(153,50,204);return t.name="Dark Orchid",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkRed",{get:function(){var t=e.fromArgb(139,0,0);return t.name="Dark Red",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkSalmon",{get:function(){var t=e.fromArgb(233,150,122);return t.name="Dark Salmon",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkSeaGreen",{get:function(){var t=e.fromArgb(143,188,143);return t.name="Dark Sea Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkSlateBlue",{get:function(){var t=e.fromArgb(72,61,139);return t.name="Dark Slate Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkSlateGray",{get:function(){var t=e.fromArgb(47,79,79);return t.name="Dark Slate Gray",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkTurquoise",{get:function(){var t=e.fromArgb(0,206,209);return t.name="Dark Turquoise",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"darkViolet",{get:function(){var t=e.fromArgb(148,0,211);return t.name="Dark Violet",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"deepPink",{get:function(){var t=e.fromArgb(255,20,147);return t.name="Deep Pink",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"deepSkyBlue",{get:function(){var t=e.fromArgb(0,191,255);return t.name="Deep Sky Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dimGray",{get:function(){var t=e.fromArgb(105,105,105);return t.name="Dim Gray",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dodgerBlue",{get:function(){var t=e.fromArgb(30,144,255);return t.name="Dodger Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"firebrick",{get:function(){var t=e.fromArgb(178,34,34);return t.name="Firebrick",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"floralWhite",{get:function(){var t=e.fromArgb(255,250,240);return t.name="Floral White",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"forestGreen",{get:function(){var t=e.fromArgb(34,139,34);return t.name="Forest Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"fuchsia",{get:function(){var t=e.fromArgb(255,0,255);return t.name="Fuchsia",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"gainsboro",{get:function(){var t=e.fromArgb(220,220,220);return t.name="Gainsboro",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ghostWhite",{get:function(){var t=e.fromArgb(248,248,255);return t.name="Ghost White",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"gold",{get:function(){var t=e.fromArgb(255,215,0);return t.name="Gold",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"goldenrod",{get:function(){var t=e.fromArgb(218,165,32);return t.name="Goldenrod",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"gray",{get:function(){var t=e.fromArgb(128,128,128);return t.name="Gray",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"green",{get:function(){var t=e.fromArgb(0,128,0);return t.name="Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"greenYellow",{get:function(){var t=e.fromArgb(173,255,47);return t.name="Green Yellow",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"honeydew",{get:function(){var t=e.fromArgb(240,255,240);return t.name="Honeydew",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"hotPink",{get:function(){var t=e.fromArgb(255,105,180);return t.name="Hot Pink",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"indianRed",{get:function(){var t=e.fromArgb(205,92,92);return t.name="Indian Red",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"indigo",{get:function(){var t=e.fromArgb(75,0,130);return t.name="Indigo",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ivory",{get:function(){var t=e.fromArgb(255,255,240);return t.name="Ivory",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"khaki",{get:function(){var t=e.fromArgb(240,230,140);return t.name="Khaki",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lavender",{get:function(){var t=e.fromArgb(230,230,250);return t.name="Lavender",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lavenderBlush",{get:function(){var t=e.fromArgb(255,240,245);return t.name="Lavender Blush",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lawnGreen",{get:function(){var t=e.fromArgb(124,252,0);return t.name="Lawn Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lemonChiffon",{get:function(){var t=e.fromArgb(255,250,205);return t.name="Lemon Chiffon",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightBlue",{get:function(){var t=e.fromArgb(173,216,230);return t.name="Light Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightCoral",{get:function(){var t=e.fromArgb(240,128,128);return t.name="Light Coral",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightCyan",{get:function(){var t=e.fromArgb(224,255,255);return t.name="Light Cyan",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightGoldenrodYellow",{get:function(){var t=e.fromArgb(250,250,210);return t.name="Light Goldenrod Yellow",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightGray",{get:function(){var t=e.fromArgb(211,211,211);return t.name="Light Gray",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightGreen",{get:function(){var t=e.fromArgb(144,238,144);return t.name="Light Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightPink",{get:function(){var t=e.fromArgb(255,182,193);return t.name="Light Pink",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightSalmon",{get:function(){var t=e.fromArgb(255,160,122);return t.name="Light Salmon",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightSeaGreen",{get:function(){var t=e.fromArgb(32,178,170);return t.name="Light Sea Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightSkyBlue",{get:function(){var t=e.fromArgb(135,206,250);return t.name="Light Sky Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightSlateGray",{get:function(){var t=e.fromArgb(119,136,153);return t.name="Light Slate Gray",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightSteelBlue",{get:function(){var t=e.fromArgb(176,196,222);return t.name="Light Steel Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lightYellow",{get:function(){var t=e.fromArgb(255,255,224);return t.name="Light Yellow",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lime",{get:function(){var t=e.fromArgb(0,255,0);return t.name="Lime",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"limeGreen",{get:function(){var t=e.fromArgb(50,205,50);return t.name="Lime Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"linen",{get:function(){var t=e.fromArgb(250,240,230);return t.name="Linen",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"magenta",{get:function(){var t=e.fromArgb(255,0,255);return t.name="Magenta",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"maroon",{get:function(){var t=e.fromArgb(128,0,0);return t.name="Maroon",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumAquamarine",{get:function(){var t=e.fromArgb(102,205,170);return t.name="Medium Aquamarine",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumBlue",{get:function(){var t=e.fromArgb(0,0,205);return t.name="Medium Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumOrchid",{get:function(){var t=e.fromArgb(186,85,211);return t.name="Medium Orchid",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumPurple",{get:function(){var t=e.fromArgb(147,112,219);return t.name="Medium Purple",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumSeaGreen",{get:function(){var t=e.fromArgb(60,179,113);return t.name="Medium Sea Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumSlateBlue",{get:function(){var t=e.fromArgb(123,104,238);return t.name="Medium Slate Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumSpringGreen",{get:function(){var t=e.fromArgb(0,250,154);return t.name="Medium Spring Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumTurquoise",{get:function(){var t=e.fromArgb(72,209,204);return t.name="Medium Turquoise",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mediumVioletRed",{get:function(){var t=e.fromArgb(199,21,133);return t.name="Medium Violet Red",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"midnightBlue",{get:function(){var t=e.fromArgb(25,25,112);return t.name="Midnight Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mintCream",{get:function(){var t=e.fromArgb(245,255,250);return t.name="Mint Cream",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"mistyRose",{get:function(){var t=e.fromArgb(255,228,225);return t.name="Misty Rose",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"moccasin",{get:function(){var t=e.fromArgb(255,228,181);return t.name="Moccasin",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"navajoWhite",{get:function(){var t=e.fromArgb(255,222,173);return t.name="Navajo White",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"navy",{get:function(){var t=e.fromArgb(0,0,128);return t.name="Navy",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"oldLace",{get:function(){var t=e.fromArgb(253,245,230);return t.name="Old Lace",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"olive",{get:function(){var t=e.fromArgb(128,128,0);return t.name="Olive",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"oliveDrab",{get:function(){var t=e.fromArgb(107,142,35);return t.name="Olive Drab",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"orange",{get:function(){var t=e.fromArgb(255,165,0);return t.name="Orange",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"orangeRed",{get:function(){var t=e.fromArgb(255,69,0);return t.name="Orange Red",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"orchid",{get:function(){var t=e.fromArgb(218,112,214);return t.name="Orchid",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"paleGoldenrod",{get:function(){var t=e.fromArgb(238,232,170);return t.name="Pale Goldenrod",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"paleGreen",{get:function(){var t=e.fromArgb(152,251,152);return t.name="Pale Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"paleTurquoise",{get:function(){var t=e.fromArgb(175,238,238);return t.name="Pale Turquoise",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"paleVioletRed",{get:function(){var t=e.fromArgb(219,112,147);return t.name="Pale Violet Red",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"papayaWhip",{get:function(){var t=e.fromArgb(255,239,213);return t.name="Papaya Whip",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"peachPuff",{get:function(){var t=e.fromArgb(255,218,185);return t.name="Peach Puff",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"peru",{get:function(){var t=e.fromArgb(205,133,63);return t.name="Peru",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pink",{get:function(){var t=e.fromArgb(255,192,203);return t.name="Pink",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"plum",{get:function(){var t=e.fromArgb(221,160,221);return t.name="Plum",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"powderBlue",{get:function(){var t=e.fromArgb(176,224,230);return t.name="Powder Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"purple",{get:function(){var t=e.fromArgb(128,0,128);return t.name="Purple",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"red",{get:function(){var t=e.fromArgb(255,0,0);return t.name="Red",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"rosyBrown",{get:function(){var t=e.fromArgb(188,143,143);return t.name="Rosy Brown",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"royalBlue",{get:function(){var t=e.fromArgb(65,105,225);return t.name="Royal Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"saddleBrown",{get:function(){var t=e.fromArgb(139,69,19);return t.name="Saddle Brown",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"salmon",{get:function(){var t=e.fromArgb(250,128,114);return t.name="Salmon",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sandyBrown",{get:function(){var t=e.fromArgb(244,164,96);return t.name="Sandy Brown",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"seaGreen",{get:function(){var t=e.fromArgb(46,139,87);return t.name="Sea Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"seaShell",{get:function(){var t=e.fromArgb(255,245,238);return t.name="Sea Shell",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"sienna",{get:function(){var t=e.fromArgb(160,82,45);return t.name="Sienna",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"silver",{get:function(){var t=e.fromArgb(192,192,192);return t.name="Silver",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"skyBlue",{get:function(){var t=e.fromArgb(135,206,235);return t.name="Sky Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"slateBlue",{get:function(){var t=e.fromArgb(106,90,205);return t.name="Slate Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"slateGray",{get:function(){var t=e.fromArgb(112,128,144);return t.name="Slate Gray",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"snow",{get:function(){var t=e.fromArgb(255,250,250);return t.name="Snow",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"springGreen",{get:function(){var t=e.fromArgb(0,255,127);return t.name="Spring Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"steelBlue",{get:function(){var t=e.fromArgb(70,130,180);return t.name="Steel Blue",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"tan",{get:function(){var t=e.fromArgb(210,180,140);return t.name="Tan",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"teal",{get:function(){var t=e.fromArgb(0,128,128);return t.name="Teal",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"thistle",{get:function(){var t=e.fromArgb(216,191,216);return t.name="Thistle",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"tomato",{get:function(){var t=e.fromArgb(255,99,71);return t.name="Tomato",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"turquoise",{get:function(){var t=e.fromArgb(64,224,208);return t.name="Turquoise",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"violet",{get:function(){var t=e.fromArgb(238,130,238);return t.name="Violet",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"wheat",{get:function(){var t=e.fromArgb(245,222,179);return t.name="Wheat",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"white",{get:function(){var t=e.fromArgb(255,255,255);return t.name="White",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"whiteSmoke",{get:function(){var t=e.fromArgb(245,245,245);return t.name="White Smoke",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"yellow",{get:function(){var t=e.fromArgb(255,255,0);return t.name="Yellow",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"yellowGreen",{get:function(){var t=e.fromArgb(154,205,50);return t.name="Yellow Green",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"transparent",{get:function(){var t=e.fromArgb(0,255,255,255);return t.name="Transparent",t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"empty",{get:function(){var t=e.fromArgb(0,255,255,255);return t.name="Empty",t},enumerable:!0,configurable:!0}),e.fromName=function(t){t=t.replace(/ /gi,""),t=t.charAt(0).toLower()+t.substr(1);var r=e[t];if(null==r)throw String.stiFormat("Color.fromName(name); Color name {0} not found.",t);return r},Object.defineProperty(e.prototype,"a",{get:function(){return this._a},set:function(t){this._a=t,this.name=e.customName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r",{get:function(){return this._r},set:function(t){this._r=t,this.name=e.customName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._g},set:function(t){this._g=t,this.name=e.customName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this._b},set:function(t){this._b=t,this.name=e.customName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isNamedColor",{get:function(){return this.name!=e.customName},enumerable:!0,configurable:!0}),e.prototype.stiEquals=function(e){if(null!=e)return 0==e._a&&255==e._r&&255==e._g&&255==e._b||0==this._a&&255==this._r&&255==this._g&&255==this._b?this._a==e._a:this._a==e._a&&this._r==e._r&&this._g==e._g&&this._b==e._b;return!1},e.prototype.toString=function(){return String.stiFormat("rgba({0},{1},{2},{3})",this.r,this.g,this.b,this.a/255)},e.fromArgb=function(t,r,n,i){void 0===n?(i=r._b,n=r._g,r=r._r):void 0===i&&(i=n,n=r,r=t,t=255);var a=new e;return a._a=t,a._r=r,a._g=n,a._b=i,a.name=e.customName,a},e.prototype.toArgb=function(){var e=this._a<<24;return e+=this._r<<16,e+=this._g<<8,e+=this._b},e.customName="Custom",e}();e.Color=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return t.toHtml=function(t){var r=String.empty;if(t.isNamedColor){if(t.stiEquals(e.Color.lightGray))return"LightGrey";return t.name.replaceAll(" ","")}var n=t.r.toString(16),i=t.g.toString(16),a=t.b.toString(16);return 1==n.length&&(n="0"+n),1==i.length&&(i="0"+i),1==a.length&&(a="0"+a),("#"+n+i+a).toUpper()},t.fromHtml=function(t){var r=0,n="FF";t.length>7&&(r=2,n=t.substr(1,2));var i=t.substr(1+r,2),a=t.substr(3+r,2),o=t.substr(5+r,2),s=parseInt(n,16),u=parseInt(i,16),m=parseInt(a,16),l=parseInt(o,16);return e.Color.fromArgb(s,u,m,l)},t}();e.ColorTranslator=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.TopLeft=1]="TopLeft",e[e.TopCenter=2]="TopCenter",e[e.TopRight=4]="TopRight",e[e.MiddleLeft=16]="MiddleLeft",e[e.MiddleCenter=32]="MiddleCenter",e[e.MiddleRight=64]="MiddleRight",e[e.BottomLeft=256]="BottomLeft",e[e.BottomCenter=512]="BottomCenter",e[e.BottomRight=1024]="BottomRight"}(t=e.ContentAlignment||(e.ContentAlignment={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(t,r,n,i){void 0===t&&(t="Arial"),void 0===r&&(r=10),this._style=e.FontStyle.Regular,this._unit=e.GraphicsUnit.Point,this._fontFamily=new e.FontFamily(t),this._size=r,void 0!==n&&(this._style=n),void 0!==i&&(this._unit=i)}return t.prototype.clone=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=!0);var n=this.memberwiseClone();return n._fontFamily=new e.FontFamily(this.fontFamily.name),n},Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._fontFamily.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeInPoints",{get:function(){switch(this.unit){case e.GraphicsUnit.Pixel:return.75*this.size}return this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"unit",{get:function(){return this._unit},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return 0!=(this._style&e.FontStyle.Bold)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return 0!=(this._style&e.FontStyle.Italic)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeout",{get:function(){return 0!=(this._style&e.FontStyle.Strikeout)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return 0!=(this._style&e.FontStyle.Underline)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return String.stiFormat("{0} {1} {2} {3}",this.style==e.FontStyle.Italic?"italic":"normal",this.style==e.FontStyle.Bold?"bold":"normal",this.sizeInPoints.toString()+"pt",this.fontFamily.name)},t.prototype.getHeight=function(){return this._size},t}();e.Font=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e){this._name=e}return Object.defineProperty(e,"families",{get:function(){if(null==e._families){e._families=[],e._families.push(new e("Agency FB")),e._families.push(new e("Aharoni")),e._families.push(new e("Algerian")),e._families.push(new e("Andalus")),e._families.push(new e("Angsana New")),e._families.push(new e("AngsanaUPC")),e._families.push(new e("Aparajita")),e._families.push(new e("Arabic Typesetting")),e._families.push(new e("Arial")),e._families.push(new e("Arial Black")),e._families.push(new e("Arial Narrow")),e._families.push(new e("Arial Rounded MT Bold")),e._families.push(new e("Arial Unicode MS")),e._families.push(new e("Baskerville Old Face")),e._families.push(new e("Batang")),e._families.push(new e("BatangChe")),e._families.push(new e("Bauhaus 93")),e._families.push(new e("Bell MT")),e._families.push(new e("Berlin Sans FB")),e._families.push(new e("Berlin Sans FB Demi")),e._families.push(new e("Bernard MT Condensed")),e._families.push(new e("Blackadder ITC")),e._families.push(new e("Bodoni MT")),e._families.push(new e("Bodoni MT Black")),e._families.push(new e("Bodoni MT Condensed")),e._families.push(new e("Bodoni MT Poster Compressed")),e._families.push(new e("Book Antiqua")),e._families.push(new e("Bookman Old Style")),e._families.push(new e("Bookshelf Symbol 7")),e._families.push(new e("Bradley Hand ITC")),e._families.push(new e("Britannic Bold")),e._families.push(new e("Broadway")),e._families.push(new e("Browallia New")),e._families.push(new e("BrowalliaUPC")),e._families.push(new e("Brush Script MT")),e._families.push(new e("Buxton Sketch")),e._families.push(new e("Calibri")),e._families.push(new e("Calibri Light")),e._families.push(new e("Californian FB")),e._families.push(new e("Calisto MT")),e._families.push(new e("Cambria")),e._families.push(new e("Cambria Math")),e._families.push(new e("Candara")),e._families.push(new e("Castellar")),e._families.push(new e("Centaur")),e._families.push(new e("Century")),e._families.push(new e("Century Gothic")),e._families.push(new e("Century Schoolbook")),e._families.push(new e("Chiller")),e._families.push(new e("Colonna MT")),e._families.push(new e("Comic Sans MS")),e._families.push(new e("Consolas")),e._families.push(new e("Constantia")),e._families.push(new e("Cooper Black")),e._families.push(new e("Copperplate Gothic Bold")),e._families.push(new e("Copperplate Gothic Light")),e._families.push(new e("Corbel")),e._families.push(new e("Cordia New")),e._families.push(new e("CordiaUPC")),e._families.push(new e("Courier New")),e._families.push(new e("Curlz MT")),e._families.push(new e("DaunPenh")),e._families.push(new e("David")),e._families.push(new e("DejaVu Sans")),e._families.push(new e("DengXian")),e._families.push(new e("DFKai-SB")),e._families.push(new e("DilleniaUPC")),e._families.push(new e("DokChampa")),e._families.push(new e("Dotum")),e._families.push(new e("DotumChe")),e._families.push(new e("Ebrima")),e._families.push(new e("Edwardian Script ITC")),e._families.push(new e("Elephant")),e._families.push(new e("Engravers MT")),e._families.push(new e("Eras Bold ITC")),e._families.push(new e("Eras Demi ITC")),e._families.push(new e("Eras Light ITC")),e._families.push(new e("Eras Medium ITC")),e._families.push(new e("Estrangelo Edessa")),e._families.push(new e("EucrosiaUPC")),e._families.push(new e("Euphemia")),e._families.push(new e("FangSong")),e._families.push(new e("Felix Titling")),e._families.push(new e("Footlight MT Light")),e._families.push(new e("Forte")),e._families.push(new e("Franklin Gothic Book")),e._families.push(new e("Franklin Gothic Demi")),e._families.push(new e("Franklin Gothic Demi Cond")),e._families.push(new e("Franklin Gothic Heavy")),e._families.push(new e("Franklin Gothic Medium")),e._families.push(new e("Franklin Gothic Medium Cond")),e._families.push(new e("FrankRuehl")),e._families.push(new e("FreesiaUPC")),e._families.push(new e("Freestyle Script")),e._families.push(new e("French Script MT")),e._families.push(new e("Gabriola")),e._families.push(new e("Garamond")),e._families.push(new e("Gautami")),e._families.push(new e("Georgia")),e._families.push(new e("Gigi")),e._families.push(new e("Gill Sans MT")),e._families.push(new e("Gill Sans MT Condensed")),e._families.push(new e("Gill Sans MT Ext Condensed Bold")),e._families.push(new e("Gill Sans Ultra Bold")),e._families.push(new e("Gill Sans Ultra Bold Condensed")),e._families.push(new e("Gisha")),e._families.push(new e("Gloucester MT Extra Condensed")),e._families.push(new e("Goudy Old Style")),e._families.push(new e("Goudy Stout")),e._families.push(new e("Gulim")),e._families.push(new e("GulimChe")),e._families.push(new e("Gungsuh")),e._families.push(new e("GungsuhChe")),e._families.push(new e("Haettenschweiler")),e._families.push(new e("Harlow Solid Italic")),e._families.push(new e("Harrington")),e._families.push(new e("High Tower Text")),e._families.push(new e("Impact")),e._families.push(new e("Imprint MT Shadow")),e._families.push(new e("Informal Roman")),e._families.push(new e("IrisUPC")),e._families.push(new e("Iskoola Pota")),e._families.push(new e("JasmineUPC")),e._families.push(new e("Jokerman")),e._families.push(new e("Juice ITC")),e._families.push(new e("KaiTi")),e._families.push(new e("Kalinga")),e._families.push(new e("Kartika")),e._families.push(new e("Khmer UI")),e._families.push(new e("KodchiangUPC")),e._families.push(new e("Kokila")),e._families.push(new e("Kristen ITC")),e._families.push(new e("Kunstler Script")),e._families.push(new e("Lao UI")),e._families.push(new e("Latha")),e._families.push(new e("Leelawadee")),e._families.push(new e("Levenim MT")),e._families.push(new e("LilyUPC")),e._families.push(new e("Lucida Bright")),e._families.push(new e("Lucida Calligraphy")),e._families.push(new e("Lucida Console")),e._families.push(new e("Lucida Fax")),e._families.push(new e("Lucida Handwriting")),e._families.push(new e("Lucida Sans")),e._families.push(new e("Lucida Sans Typewriter")),e._families.push(new e("Lucida Sans Unicode")),e._families.push(new e("Magneto")),e._families.push(new e("Maiandra GD")),e._families.push(new e("Malgun Gothic")),e._families.push(new e("Mangal")),e._families.push(new e("Marlett")),e._families.push(new e("Matura MT Script Capitals")),e._families.push(new e("Meiryo")),e._families.push(new e("Meiryo UI")),e._families.push(new e("Microsoft Himalaya")),e._families.push(new e("Microsoft JhengHei")),e._families.push(new e("Microsoft MHei")),e._families.push(new e("Microsoft NeoGothic")),e._families.push(new e("Microsoft New Tai Lue")),e._families.push(new e("Microsoft PhagsPa")),e._families.push(new e("Microsoft Sans Serif")),e._families.push(new e("Microsoft Tai Le")),e._families.push(new e("Microsoft Uighur")),e._families.push(new e("Microsoft YaHei")),e._families.push(new e("Microsoft Yi Baiti")),e._families.push(new e("MingLiU")),e._families.push(new e("MingLiU_HKSCS")),e._families.push(new e("MingLiU_HKSCS-ExtB")),e._families.push(new e("MingLiU-ExtB")),e._families.push(new e("Miriam")),e._families.push(new e("Miriam Fixed")),e._families.push(new e("Mistral")),e._families.push(new e("Modern No. 20")),e._families.push(new e("Mongolian Baiti")),e._families.push(new e("Monotype Corsiva")),e._families.push(new e("MoolBoran")),e._families.push(new e("MS Gothic")),e._families.push(new e("MS Mincho")),e._families.push(new e("MS Outlook")),e._families.push(new e("MS PGothic")),e._families.push(new e("MS PMincho")),e._families.push(new e("MS Reference Sans Serif")),e._families.push(new e("MS Reference Specialty")),e._families.push(new e("MS UI Gothic")),e._families.push(new e("MT Extra")),e._families.push(new e("MV Boli")),e._families.push(new e("Narkisim")),e._families.push(new e("Niagara Engraved")),e._families.push(new e("Niagara Solid")),e._families.push(new e("Nina")),e._families.push(new e("NSimSun")),e._families.push(new e("Nyala")),e._families.push(new e("OCR A Extended")),e._families.push(new e("Old English Text MT")),e._families.push(new e("Onyx")),e._families.push(new e("Palace Script MT")),e._families.push(new e("Palatino Linotype")),e._families.push(new e("Papyrus")),e._families.push(new e("Parchment"));e._families.push(new e("Perpetua")),e._families.push(new e("Perpetua Titling MT")),e._families.push(new e("Plantagenet Cherokee")),e._families.push(new e("Playbill")),e._families.push(new e("PMingLiU")),e._families.push(new e("PMingLiU-ExtB")),e._families.push(new e("Poor Richard")),e._families.push(new e("Pristina")),e._families.push(new e("Raavi")),e._families.push(new e("Rage Italic")),e._families.push(new e("Ravie")),e._families.push(new e("Rockwell")),e._families.push(new e("Rockwell Condensed")),e._families.push(new e("Rockwell Extra Bold")),e._families.push(new e("Rod")),e._families.push(new e("Sakkal Majalla")),e._families.push(new e("Script MT Bold")),e._families.push(new e("Segoe Condensed")),e._families.push(new e("Segoe Marker")),e._families.push(new e("Segoe Print")),e._families.push(new e("Segoe Script")),e._families.push(new e("Segoe UI")),e._families.push(new e("Segoe UI Light")),e._families.push(new e("Segoe UI Semibold")),e._families.push(new e("Segoe UI Symbol")),e._families.push(new e("Segoe WP")),e._families.push(new e("Segoe WP Black")),e._families.push(new e("Segoe WP Light")),e._families.push(new e("Segoe WP Semibold")),e._families.push(new e("Segoe WP SemiLight")),e._families.push(new e("Shonar Bangla")),e._families.push(new e("Showcard Gothic")),e._families.push(new e("Shruti")),e._families.push(new e("SimHei")),e._families.push(new e("Simplified Arabic")),e._families.push(new e("Simplified Arabic Fixed")),e._families.push(new e("SimSun")),e._families.push(new e("SimSun-ExtB")),e._families.push(new e("SketchFlow Print")),e._families.push(new e("Snap ITC")),e._families.push(new e("Stencil")),e._families.push(new e("Sylfaen")),e._families.push(new e("Symbol")),e._families.push(new e("Tahoma")),e._families.push(new e("Tempus Sans ITC")),e._families.push(new e("Times New Roman")),e._families.push(new e("Traditional Arabic")),e._families.push(new e("Trebuchet MS")),e._families.push(new e("Tunga")),e._families.push(new e("Tw Cen MT")),e._families.push(new e("Tw Cen MT Condensed")),e._families.push(new e("Tw Cen MT Condensed Extra Bold")),e._families.push(new e("Utsaah")),e._families.push(new e("Vani")),e._families.push(new e("Verdana")),e._families.push(new e("Vijaya")),e._families.push(new e("Viner Hand ITC")),e._families.push(new e("Vivaldi")),e._families.push(new e("Vladimir Script")),e._families.push(new e("Vrinda")),e._families.push(new e("Webdings")),e._families.push(new e("Wide Latin")),e._families.push(new e("Wingdings")),e._families.push(new e("Wingdings 2")),e._families.push(new e("Wingdings 3")),e._families.push(new e("Yu Gothic"))}return e._families},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.isStyleAvailable=function(e){return!0},e}();e.FontFamily=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return t.getSize=function(t,r){for(var n=new e.Size(0,0),i=0,a=0,o=this.family_Helvetica;a<o.length;a++){var s=o[a];t.name==s&&(i=0)}for(var u=0,m=this.family_Times_Roman;u<m.length;u++){var s=m[u];t.name==s&&(i=4)}for(var l=0,y=this.family_Courier;l<y.length;l++){var s=y[l];t.name==s&&(i=8)}i<12&&(1==t.bold&&(i+=1),1==t.italic&&(i+=2));for(var d=0,h=r.split("\n");d<h.length;d++){for(var c=h[d],f=0,p=c.split("");f<p.length;f++){var M=p[f];n.width+=this.standardFontWidths[M.charCodeAt(0)][i]/1e3*t.size}n.height+=this.standardFontInfo[7][i]/1e3*t.size}return n},Object.defineProperty(t,"standardFontWidths",{get:function(){if(null==this._standardFontWidths){this._standardFontWidths=[],this._standardFontWidths[32]=[278,278,278,278,250,250,250,250,600,600,600,600],this._standardFontWidths[33]=[278,333,278,333,333,333,333,389,600,600,600,600],this._standardFontWidths[34]=[355,474,355,474,408,555,420,555,600,600,600,600],this._standardFontWidths[35]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[36]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[37]=[889,889,889,889,833,1e3,833,833,600,600,600,600],this._standardFontWidths[38]=[667,722,667,722,778,833,778,778,600,600,600,600],this._standardFontWidths[39]=[191,238,191,238,180,278,214,278,600,600,600,600],this._standardFontWidths[40]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[41]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[42]=[389,389,389,389,500,500,500,500,600,600,600,600],this._standardFontWidths[43]=[584,584,584,584,564,570,675,570,600,600,600,600],this._standardFontWidths[44]=[278,278,278,278,250,250,250,250,600,600,600,600],this._standardFontWidths[45]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[46]=[278,278,278,278,250,250,250,250,600,600,600,600],this._standardFontWidths[47]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[48]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[49]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[50]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[51]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[52]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[53]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[54]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[55]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[56]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[57]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[58]=[278,333,278,333,278,333,333,333,600,600,600,600],this._standardFontWidths[59]=[278,333,278,333,278,333,333,333,600,600,600,600],this._standardFontWidths[60]=[584,584,584,584,564,570,675,570,600,600,600,600],this._standardFontWidths[61]=[584,584,584,584,564,570,675,570,600,600,600,600],this._standardFontWidths[62]=[584,584,584,584,564,570,675,570,600,600,600,600],this._standardFontWidths[63]=[556,611,556,611,444,500,500,500,600,600,600,600],this._standardFontWidths[64]=[1015,975,1015,975,921,930,920,832,600,600,600,600],this._standardFontWidths[65]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[66]=[667,722,667,722,667,667,611,667,600,600,600,600],this._standardFontWidths[67]=[722,722,722,722,667,722,667,667,600,600,600,600],this._standardFontWidths[68]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[69]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[70]=[611,611,611,611,556,611,611,667,600,600,600,600],this._standardFontWidths[71]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[72]=[722,722,722,722,722,778,722,778,600,600,600,600],this._standardFontWidths[73]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[74]=[500,556,500,556,389,500,444,500,600,600,600,600],this._standardFontWidths[75]=[667,722,667,722,722,778,667,667,600,600,600,600],this._standardFontWidths[76]=[556,611,556,611,611,667,556,611,600,600,600,600],this._standardFontWidths[77]=[833,833,833,833,889,944,833,889,600,600,600,600],this._standardFontWidths[78]=[722,722,722,722,722,722,667,722,600,600,600,600],this._standardFontWidths[79]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[80]=[667,667,667,667,556,611,611,611,600,600,600,600],this._standardFontWidths[81]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[82]=[722,722,722,722,667,722,611,667,600,600,600,600],this._standardFontWidths[83]=[667,667,667,667,556,556,500,556,600,600,600,600],this._standardFontWidths[84]=[611,611,611,611,611,667,556,611,600,600,600,600],this._standardFontWidths[85]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[86]=[667,667,667,667,722,722,611,667,600,600,600,600],this._standardFontWidths[87]=[944,944,944,944,944,1e3,833,889,600,600,600,600],this._standardFontWidths[88]=[667,667,667,667,722,722,611,667,600,600,600,600],this._standardFontWidths[89]=[667,667,667,667,722,722,556,611,600,600,600,600],this._standardFontWidths[90]=[611,611,611,611,611,667,556,611,600,600,600,600],this._standardFontWidths[91]=[278,333,278,333,333,333,389,333,600,600,600,600],this._standardFontWidths[92]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[93]=[278,333,278,333,333,333,389,333,600,600,600,600],this._standardFontWidths[94]=[469,584,469,584,469,581,422,570,600,600,600,600],this._standardFontWidths[95]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[96]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[97]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[98]=[556,611,556,611,500,556,500,500,600,600,600,600],this._standardFontWidths[99]=[500,556,500,556,444,444,444,444,600,600,600,600],this._standardFontWidths[100]=[556,611,556,611,500,556,500,500,600,600,600,600],this._standardFontWidths[101]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[102]=[278,333,278,333,333,333,278,333,600,600,600,600],this._standardFontWidths[103]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[104]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[105]=[222,278,222,278,278,278,278,278,600,600,600,600],this._standardFontWidths[106]=[222,278,222,278,278,333,278,278,600,600,600,600],this._standardFontWidths[107]=[500,556,500,556,500,556,444,500,600,600,600,600],this._standardFontWidths[108]=[222,278,222,278,278,278,278,278,600,600,600,600],this._standardFontWidths[109]=[833,889,833,889,778,833,722,778,600,600,600,600],this._standardFontWidths[110]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[111]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[112]=[556,611,556,611,500,556,500,500,600,600,600,600],this._standardFontWidths[113]=[556,611,556,611,500,556,500,500,600,600,600,600],this._standardFontWidths[114]=[333,389,333,389,333,444,389,389,600,600,600,600],this._standardFontWidths[115]=[500,556,500,556,389,389,389,389,600,600,600,600],this._standardFontWidths[116]=[278,333,278,333,278,333,278,278,600,600,600,600],this._standardFontWidths[117]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[118]=[500,556,500,556,500,500,444,444,600,600,600,600],this._standardFontWidths[119]=[722,778,722,778,722,722,667,667,600,600,600,600],this._standardFontWidths[120]=[500,556,500,556,500,500,444,500,600,600,600,600],this._standardFontWidths[121]=[500,556,500,556,500,500,444,444,600,600,600,600],this._standardFontWidths[122]=[500,500,500,500,444,444,389,389,600,600,600,600],this._standardFontWidths[123]=[334,389,334,389,480,394,400,348,600,600,600,600],this._standardFontWidths[124]=[260,280,260,280,200,220,275,220,600,600,600,600],this._standardFontWidths[125]=[334,389,334,389,480,394,400,348,600,600,600,600],this._standardFontWidths[126]=[584,584,584,584,541,520,541,570,600,600,600,600],this._standardFontWidths[161]=[333,333,333,333,333,333,389,389,600,600,600,600],this._standardFontWidths[162]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[163]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[164]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[165]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[166]=[260,280,260,280,200,220,275,220,600,600,600,600],this._standardFontWidths[167]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[168]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[169]=[737,737,737,737,760,747,760,747,600,600,600,600],this._standardFontWidths[170]=[370,370,370,370,276,300,276,266,600,600,600,600],this._standardFontWidths[171]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[172]=[584,584,584,584,564,570,675,606,600,600,600,600],this._standardFontWidths[174]=[737,737,737,737,760,747,760,747,600,600,600,600],this._standardFontWidths[175]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[176]=[400,400,400,400,400,400,400,400,600,600,600,600],this._standardFontWidths[177]=[584,584,584,584,564,570,675,570,600,600,600,600],this._standardFontWidths[180]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[181]=[556,611,556,611,500,556,500,576,600,600,600,600],this._standardFontWidths[182]=[537,556,537,556,453,540,523,500,600,600,600,600],this._standardFontWidths[183]=[278,278,278,278,250,250,250,250,600,600,600,600],this._standardFontWidths[184]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[186]=[365,365,365,365,310,330,310,300,600,600,600,600],this._standardFontWidths[187]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[188]=[834,834,834,834,750,750,750,750,600,600,600,600],this._standardFontWidths[189]=[834,834,834,834,750,750,750,750,600,600,600,600],this._standardFontWidths[190]=[834,834,834,834,750,750,750,750,600,600,600,600],this._standardFontWidths[191]=[611,611,611,611,444,500,500,500,600,600,600,600],this._standardFontWidths[192]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[193]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[194]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[195]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[196]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[197]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[198]=[1e3,1e3,1e3,1e3,889,1e3,889,944,600,600,600,600],this._standardFontWidths[199]=[722,722,722,722,667,722,667,667,600,600,600,600],this._standardFontWidths[200]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[201]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[202]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[203]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[204]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[205]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[206]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[207]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[208]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[209]=[722,722,722,722,722,722,667,722,600,600,600,600],this._standardFontWidths[210]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[211]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[212]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[213]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[214]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[215]=[584,584,584,584,564,570,675,570,600,600,600,600],this._standardFontWidths[216]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[217]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[218]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[219]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[220]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[221]=[667,667,667,667,722,722,556,611,600,600,600,600],this._standardFontWidths[222]=[667,667,667,667,556,611,611,611,600,600,600,600],this._standardFontWidths[223]=[611,611,611,611,500,556,500,500,600,600,600,600],this._standardFontWidths[224]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[225]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[226]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[227]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[228]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[229]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[230]=[889,889,889,889,667,722,667,722,600,600,600,600],this._standardFontWidths[231]=[500,556,500,556,444,444,444,444,600,600,600,600],this._standardFontWidths[232]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[233]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[234]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[235]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[236]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[237]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[238]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[239]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[240]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[241]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[242]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[243]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[244]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[245]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[246]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[247]=[584,584,584,584,564,570,675,570,600,600,600,600],this._standardFontWidths[248]=[611,611,611,611,500,500,500,500,600,600,600,600],this._standardFontWidths[249]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[250]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[251]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[252]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[253]=[500,556,500,556,500,500,444,444,600,600,600,600],this._standardFontWidths[254]=[556,611,556,611,500,556,500,500,600,600,600,600],this._standardFontWidths[255]=[500,556,500,556,500,500,444,444,600,600,600,600],this._standardFontWidths[256]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[257]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[258]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[259]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[260]=[667,722,667,722,722,722,611,667,600,600,600,600],this._standardFontWidths[261]=[556,556,556,556,444,500,500,500,600,600,600,600],this._standardFontWidths[262]=[722,722,722,722,667,722,667,667,600,600,600,600],this._standardFontWidths[263]=[500,556,500,556,444,444,444,444,600,600,600,600],this._standardFontWidths[268]=[722,722,722,722,667,722,667,667,600,600,600,600],this._standardFontWidths[269]=[500,556,500,556,444,444,444,444,600,600,600,600],this._standardFontWidths[270]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[271]=[643,743,643,743,588,672,544,608,600,600,600,600],this._standardFontWidths[272]=[722,722,722,722,722,722,722,722,600,600,600,600];this._standardFontWidths[273]=[556,611,556,611,500,556,500,500,600,600,600,600],this._standardFontWidths[274]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[275]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[278]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[279]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[280]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[281]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[282]=[667,667,667,667,611,667,611,667,600,600,600,600],this._standardFontWidths[283]=[556,556,556,556,444,444,444,444,600,600,600,600],this._standardFontWidths[286]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[287]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[290]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[291]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[298]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[299]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[302]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[303]=[222,278,222,278,278,278,278,278,600,600,600,600],this._standardFontWidths[304]=[278,278,278,278,333,389,333,389,600,600,600,600],this._standardFontWidths[305]=[278,278,278,278,278,278,278,278,600,600,600,600],this._standardFontWidths[310]=[667,722,667,722,722,778,667,667,600,600,600,600],this._standardFontWidths[311]=[500,556,500,556,500,556,444,500,600,600,600,600],this._standardFontWidths[313]=[556,611,556,611,611,667,556,611,600,600,600,600],this._standardFontWidths[314]=[222,278,222,278,278,278,278,278,600,600,600,600],this._standardFontWidths[315]=[556,611,556,611,611,667,556,611,600,600,600,600],this._standardFontWidths[316]=[222,278,222,278,278,278,278,278,600,600,600,600],this._standardFontWidths[317]=[556,611,556,611,611,667,611,611,600,600,600,600],this._standardFontWidths[318]=[299,400,299,400,344,394,300,382,600,600,600,600],this._standardFontWidths[321]=[556,611,556,611,611,667,556,611,600,600,600,600],this._standardFontWidths[322]=[222,278,222,278,278,278,278,278,600,600,600,600],this._standardFontWidths[323]=[722,722,722,722,722,722,667,722,600,600,600,600],this._standardFontWidths[324]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[325]=[722,722,722,722,722,722,667,722,600,600,600,600],this._standardFontWidths[326]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[327]=[722,722,722,722,722,722,667,722,600,600,600,600],this._standardFontWidths[328]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[332]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[333]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[336]=[778,778,778,778,722,778,722,722,600,600,600,600],this._standardFontWidths[337]=[556,611,556,611,500,500,500,500,600,600,600,600],this._standardFontWidths[338]=[1e3,1e3,1e3,1e3,889,1e3,944,944,600,600,600,600],this._standardFontWidths[339]=[944,944,944,944,722,722,667,722,600,600,600,600],this._standardFontWidths[340]=[722,722,722,722,667,722,611,667,600,600,600,600],this._standardFontWidths[341]=[333,389,333,389,333,444,389,389,600,600,600,600],this._standardFontWidths[342]=[722,722,722,722,667,722,611,667,600,600,600,600],this._standardFontWidths[343]=[333,389,333,389,333,444,389,389,600,600,600,600],this._standardFontWidths[344]=[722,722,722,722,667,722,611,667,600,600,600,600],this._standardFontWidths[345]=[333,389,333,389,333,444,389,389,600,600,600,600],this._standardFontWidths[346]=[667,667,667,667,556,556,500,556,600,600,600,600],this._standardFontWidths[347]=[500,556,500,556,389,389,389,389,600,600,600,600],this._standardFontWidths[350]=[667,667,667,667,556,556,500,556,600,600,600,600],this._standardFontWidths[351]=[500,556,500,556,389,389,389,389,600,600,600,600],this._standardFontWidths[352]=[667,667,667,667,556,556,500,556,600,600,600,600],this._standardFontWidths[353]=[500,556,500,556,389,389,389,389,600,600,600,600],this._standardFontWidths[354]=[611,611,611,611,611,667,556,611,600,600,600,600],this._standardFontWidths[355]=[278,333,278,333,278,333,278,278,600,600,600,600],this._standardFontWidths[356]=[611,611,611,611,611,667,556,611,600,600,600,600],this._standardFontWidths[357]=[317,389,317,389,326,416,300,366,600,600,600,600],this._standardFontWidths[362]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[363]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[366]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[367]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[368]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[369]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[370]=[722,722,722,722,722,722,722,722,600,600,600,600],this._standardFontWidths[371]=[556,611,556,611,500,556,500,556,600,600,600,600],this._standardFontWidths[376]=[667,667,667,667,722,722,556,611,600,600,600,600],this._standardFontWidths[377]=[611,611,611,611,611,667,556,611,600,600,600,600],this._standardFontWidths[378]=[500,500,500,500,444,444,389,389,600,600,600,600],this._standardFontWidths[379]=[611,611,611,611,611,667,556,611,600,600,600,600],this._standardFontWidths[380]=[500,500,500,500,444,444,389,389,600,600,600,600],this._standardFontWidths[381]=[611,611,611,611,611,667,556,611,600,600,600,600],this._standardFontWidths[382]=[500,500,500,500,444,444,389,389,600,600,600,600],this._standardFontWidths[402]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[536]=[667,667,667,667,556,556,500,556,600,600,600,600],this._standardFontWidths[537]=[500,556,500,556,389,389,389,389,600,600,600,600],this._standardFontWidths[710]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[711]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[728]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[729]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[730]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[731]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[732]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[733]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[8211]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[8212]=[1e3,1e3,1e3,1e3,1e3,1e3,889,1e3,600,600,600,600],this._standardFontWidths[8216]=[222,278,222,278,333,333,333,333,600,600,600,600],this._standardFontWidths[8217]=[222,278,222,278,333,333,333,333,600,600,600,600],this._standardFontWidths[8218]=[222,278,222,278,333,333,333,333,600,600,600,600],this._standardFontWidths[8220]=[333,500,333,500,444,500,556,500,600,600,600,600],this._standardFontWidths[8221]=[333,500,333,500,444,500,556,500,600,600,600,600],this._standardFontWidths[8222]=[333,500,333,500,444,500,556,500,600,600,600,600],this._standardFontWidths[8224]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[8225]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[8226]=[350,350,350,350,350,350,350,350,600,600,600,600],this._standardFontWidths[8230]=[1e3,1e3,1e3,1e3,1e3,1e3,889,1e3,600,600,600,600],this._standardFontWidths[8240]=[1e3,1e3,1e3,1e3,1e3,1e3,1e3,1e3,600,600,600,600],this._standardFontWidths[8249]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[8250]=[333,333,333,333,333,333,333,333,600,600,600,600],this._standardFontWidths[8260]=[167,167,167,167,167,167,167,167,600,600,600,600],this._standardFontWidths[8364]=[556,556,556,556,500,500,500,500,600,600,600,600],this._standardFontWidths[8482]=[1e3,1e3,1e3,1e3,980,1e3,980,1e3,600,600,600,600],this._standardFontWidths[8706]=[476,494,476,494,476,494,476,494,600,600,600,600],this._standardFontWidths[8710]=[612,612,612,612,612,612,612,612,600,600,600,600],this._standardFontWidths[8721]=[600,600,600,600,600,600,600,600,600,600,600,600],this._standardFontWidths[8722]=[584,584,584,584,564,570,675,606,600,600,600,600],this._standardFontWidths[8730]=[453,549,453,549,453,549,453,549,600,600,600,600],this._standardFontWidths[8773]=[250,250,250,250,250,250,250,250,600,600,600,600],this._standardFontWidths[8800]=[549,549,549,549,549,549,549,549,600,600,600,600],this._standardFontWidths[8804]=[549,549,549,549,549,549,549,549,600,600,600,600],this._standardFontWidths[8805]=[549,549,549,549,549,549,549,549,600,600,600,600],this._standardFontWidths[9674]=[471,494,471,494,471,494,471,494,600,600,600,600]}return this._standardFontWidths},enumerable:!0,configurable:!0}),Object.defineProperty(t,"standardFontInfo",{get:function(){return null==this._standardFontInfo&&(this._standardFontInfo=[],this._standardFontInfo.push([0,0,-120,-120,0,0,-155,-150,0,0,-120,-120]),this._standardFontInfo.push([-166,-170,-170,-174,-168,-168,-169,-200,-23,-113,-27,-57]),this._standardFontInfo.push([-225,-228,-225,-228,-218,-218,-217,-218,-250,-250,-250,-250]),this._standardFontInfo.push([1e3,1003,1116,1114,1e3,1e3,1010,996,715,749,849,869]),this._standardFontInfo.push([931,962,931,962,898,935,883,921,805,801,805,801]),this._standardFontInfo.push([718,718,718,718,662,676,653,669,562,562,562,562]),this._standardFontInfo.push([523,532,523,532,450,461,441,462,426,439,426,439]),this._standardFontInfo.push([718,718,718,718,683,683,683,683,629,629,629,629]),this._standardFontInfo.push([-207,-207,-207,-207,-217,-217,-217,-217,-157,-157,-157,-157]),this._standardFontInfo.push([76,118,76,118,28,44,32,42,51,84,51,84]),this._standardFontInfo.push([88,140,88,140,84,139,76,121,51,106,51,106])),this._standardFontInfo},enumerable:!0,configurable:!0}),t.family_Helvetica=["Arial","Arial Black","Arial Narrow","Century Gothic","Comic Sans MS","Impact","Microsoft Sans Serif","Tahoma","Verdana"],t.family_Courier=["Courier New","Lucida Console"],t.family_Times_Roman=["Book Antiqua","Bookman Old Style","Garamond","Georgia","Times New Roman"],t.fontName=["Helvetica","Helvetica-Bold","Helvetica-Oblique","Helvetica-BoldOblique","Times-Roman","Times-Bold","Times-Italic","Times-BoldItalic","Courier","Courier-Bold","Courier-Oblique","Courier-BoldOblique"],t}();e.FontResources=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Regular=0]="Regular",e[e.Bold=1]="Bold",e[e.Italic=2]="Italic",e[e.Strikeout=4]="Strikeout",e[e.Underline=8]="Underline"}(t=e.FontStyle||(e.FontStyle={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n=e.System.Collections.Hashtable,i=function(){function i(e){this.context=e,this.context.translate(.5,.5)}return Object.defineProperty(i,"opentypeClass",{get:function(){return null==i._opentypeClass?opentype:i._opentypeClass},set:function(e){i._opentypeClass=e},enumerable:!0,configurable:!0}),i.prototype.drawImage=function(e,t){},i.prototype.drawRectangle=function(e,t){this.context.strokeStyle=e.color.toString(),this.context.lineWidth=e.width,this.context.strokeRect(t.x,t.y,t.width,t.height)},i.prototype.fillRectangle=function(e,t,r,n,i){this.context.fillStyle=e.color.toString(),this.context.fillRect(t,r,n,i)},i.prototype.drawLine=function(e,t,r,n,i){this.context.strokeStyle=e.color.toString(),this.context.lineWidth=e.width,this.context.beginPath(),this.context.moveTo(t,r),this.context.lineTo(n,i),this.context.stroke()},i.prototype.drawString=function(e,t,r,n,i){this.context.fillStyle="#000000",this.context.textBaseline="top",this.context.font=t.toString(),this.context.fillText(e,n,i)},i.prototype.translateTransform=function(e,t){this.context.translate(e,t)},i.getOpentypeFont=function(t,r){var n=i.opentypeFonts.get(t),a;return null!=n&&(a=n.containsKey(r)?n.get(r).font:n.get(n.keys[0]).font),null==a&&1==e.System.NodeJs.isNodeJs()&&i.opentypeFonts.count>0&&(n=i.opentypeFonts.get(i.opentypeFonts.keys[0]),a=n.get(n.keys[0]).font),a},i.getCustomFontsCss=function(){for(var e="",n=0,a=i.opentypeFonts.keys;n<a.length;n++)for(var o=a[n],s=i.opentypeFonts.get(o),u=0;u<s.count;u++){var m=s.keys[u],l=o;u>0&&(l=t.Enum.getName(r.FontStyle,m)+"_"+o),e+="@font-face {font-family: '"+l+"';src: url(\""+i.opentypeFonts.get(o).get(m).filePath+'");}'}return e},i.getCustomFontName=function(e,n){var a=i.opentypeFonts.get(e);if(a)for(var o=0;o<a.count;o++)if(n==a.keys[o])return 0==o?e:t.Enum.getName(r.FontStyle,a.keys[o])+"_"+e;return e},i.allowStyle=function(e,t){var r=i.opentypeFonts.get(e);if(r)return r.count<2;return!0},i.measureString=function(t,n,a,o,s,u){void 0===a&&(a=null),void 0===o&&(o=!0),void 0===s&&(s=1),void 0===u&&(u=0);var m=t;null==m&&(m="");var l,y=new r.Size(0,0),d="pt";if(n.unit==r.GraphicsUnit.Pixel&&(d="px"),o&&(l="@"+m+"|"+n.fontFamily.name+"|"+(n.size.toString()+d)+"|"+n.unit.toString()+"|"+s.toString()+"|"+(a?"|"+a.toString():""),i.measureHash[l]))return y=i.measureHash[l],this.rotate(y,u,!0);if(""==m||" "==m){var h=i.measureString("a a",n,null,!1,1),c=i.measureString("aa",n,null,!1,1);return y=new r.Size(h.width-c.width,h.height),""==m&&(y.width=0),o&&(i.measureHash[l]=y),this.rotate(y,u,o)}var f=i.getOpentypeFont(n.fontFamily.name,n.style);if(null!=f){for(var p=0,M=0,b=0,g=m.split("\n");b<g.length;b++){for(var S=g[b],v=0,w=0,N=0,j=1/f.unitsPerEm*n.size,I=f.stringToGlyphs(S),_=0;_<I.length;_++){var k=I[_];if(k.advanceWidth&&(N+=k.advanceWidth*j),_<I.length-1){var F=f.getKerningValue(k,I[_+1]);F+=k.leftSideBearing,N+=F*j}v=Math.max(v,k.yMax),w=Math.min(w,k.yMin)}p=Math.max(p,N),M+=(f.ascender-f.descender)*j}y=new r.Size(p,M)}else if(e.System.NodeJs.useWebKit){var T=void 0;null==i.measureDiv?(i.measureDiv=document.createElement("div"),i.measureDiv.style.flexDirection="row",i.measureDiv.style.visibility="hidden",T=document.createElement("div"),T.style.wordWrap="break-word",T.style.display="inline-block",T.style.lineHeight="normal",document.body.appendChild(i.measureDiv),i.measureDiv.appendChild(T)):T=i.measureDiv.firstElementChild,T.style.fontFamily=n.fontFamily.name,T.style.fontSize=(n.size*s).toString()+d,null!=a&&(T.style.maxWidth=(a*s).toString()+"px"),T.innerHTML=m.replace(/\n/gi,"<br>").replace(/\r/gi,""),y=new r.Size(T.scrollWidth/s,T.scrollHeight/s)}return o&&(i.measureHash[l]=y),this.rotate(y,u,o)},i.measureChars=function(e,t,n){for(var a,o=.977,s=32;s<t;s++){var u=e[s];if(32==u){var m=.55,l=new r.Size(0,0),y=new r.Size(0,1);while(l.height<y.height)m-=.05,l=i.measureString("a",n,null,!0,m),y=i.measureString("a a",n,null,!0,m);var d=i.measureString("aa",n,null,!0,m);a=new r.Size(y.width-d.width,0)}else a=i.measureString(String.fromCharCode(u),n,null,!1,1);e[s]=a.width*o}var h=a.height;return a=i.measureString("1\n2\n3\n4\n5\n6\n7\n8\n9\n10",n,null,!1),new r.Size(a.height/10*o,h*o)},i.rotate=function(e,t,n){if(0==t){if(n)return new r.Size(e.width,e.height);return e}if(t%180!=0&&t%90==0){if(n)return new r.Size(e.height,e.width);return e.swap()}while(t>360)t-=360;var i=Math.abs(t)*Math.PI/180,a=(90-Math.abs(t))*Math.PI/180,o=e.width*Math.sin(i),s=e.width*Math.cos(i),u=e.height*Math.sin(a),m=e.height*Math.cos(a);return new r.Size(m+s,u+o)},i.opentypeFonts=new n,i.measureHash={},i}();r.Graphics=i}(r=t.Drawing||(t.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Pixel=2]="Pixel",e[e.Point=3]="Point"}(t=e.GraphicsUnit||(e.GraphicsUnit={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n=e.System.Drawing.Imaging.ImageFormat,i=function(){function r(){this.data={},this._isConverting=!1,this.aspectRatio=!0,this.multipleFactor=1,this.horAlignment=1,this.vertAlignment=0,this.imageRotation=0,this.stretch=!1,this.zoom=1}return Object.defineProperty(r.prototype,"imageFormat",{get:function(){return this._imageFormat},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"horizontalResolution",{get:function(){return this._horizontalResolution},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"verticalResolution",{get:function(){return this._verticalResolution},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isConverting",{get:function(){return this._isConverting},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base64",{get:function(){if(null==this.imageFormat||null==this.data[this.imageFormat.toString()])return"";return this.data[this.imageFormat.toString()].base64},set:function(t){var r=t.match(",");null!=r&&(t=t.substr(r.index+1));var n=e.System.Convert.fromBase64String(t);this.setData(n,t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bytes",{get:function(){if(null==this.imageFormat||null==this.data[this.imageFormat.toString()])return null;return this.data[this.imageFormat.toString()].bytes},set:function(t){if(t){var r=e.System.Convert.toBase64String(t);this.setData(t,r)}},enumerable:!0,configurable:!0}),r.fromFile=function(t){var n=new r;return n.bytes=e.System.IO.File.getFile(t,!0),n},r.fromBytes=function(e){var t=new r;return t.bytes=e,t},r.prototype.setData=function(e,t){this._imageFormat=n.getImageFormat(e),null!=this._imageFormat&&(this.data[this.imageFormat.toString()]={imageFormat:this.imageFormat,base64:"data:"+this.imageFormat.mimeType+";base64,"+t,bytes:e},this._width=this.imageFormat.getWidth(e,t),this._height=this.imageFormat.getHeight(e,t),this._horizontalResolution=this.imageFormat.getHorizontalResolution(e),this._verticalResolution=this.imageFormat.getVerticalResolution(e))},r.prototype.convert=function(e,r){var i=this;void 0===r&&(r=!1);var a=new t.Promise;try{var o=this.data[e.toString()];if(null!=o)return a.callTry(this),a;if(null==o&&(o=this.data[n.Png.toString()]),null==o&&(o=this.data[n.Bmp.toString()]),null==o&&(o=this.data[n.Jpeg.toString()]),null==o&&(o=this.data[n.Gif.toString()]),null==o&&(o=this.data[n.Svg.toString()]),null!=o){this._isConverting=!0;var s=document.createElement("canvas");s.width=this.width,s.height=this.height;var u=s.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,s.width,s.height);var m=new window.Image;m.onload=function(){try{u.drawImage(m,0,0,s.width,s.height);var t=s.toDataURL(e.mimeType);r&&(i.imageData=u.getImageData(0,0,s.width,s.height).data),i.base64=t,i._isConverting=!1,a.callTry(i)}catch(e){a.callCatch(e.message)}},m.src=o.base64}else a.callCatch("No Image")}catch(e){return a.callCatch(e.message),a}return a},r.prototype.dispose=function(){this.data=null,this._imageFormat=null,this._width=NaN,this._height=NaN},r.prototype.clone=function(){var e=new r;return e.data=this.data,e._imageFormat=this._imageFormat,e._width=this._width,e._height=this._height,e._horizontalResolution=this._horizontalResolution,e._verticalResolution=this._verticalResolution,e._isConverting=this._isConverting,e},r}();r.Image=i}(r=t.Drawing||(t.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e){this.color=e}return e}();e.Pen=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.x=e,this.y=t}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.x&&0==this.y},enumerable:!0,configurable:!0}),Object.defineProperty(e,"empty",{get:function(){return new e},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return String.stiFormat("{{X={0}, Y={1}}}",this.x,this.y)},e.prototype.stiEquals=function(e){if(e.x==this.x&&e.y==this.y)return!0;return!1},e}();e.Point=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(e,t,r,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=0),this.x=e,this.y=t,this.width=r,this.height=n}return t.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(t,"empty",{get:function(){return new t(0,0,0,0)},enumerable:!0,configurable:!0}),t.union=function(e,r){var n=Math.min(e.x,r.x),i=Math.max(e.x+e.width,r.x+r.width),a=Math.min(e.y,r.y);return new t(n,a,i-n,Math.max(e.y+e.height,r.y+r.height)-a)},t.prototype.inflate=function(e,t){return this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t,this},t.prototype.normalize=function(){var e=this.clone();return e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height),e},t.prototype.multiply=function(e){return new t(this.x*e,this.y*e,this.width*e,this.height*e)},t.prototype.offsetRect=function(e){return new t(this.x-e.x,this.y-e.y,this.width+e.width,this.height+e.height)},t.prototype.intersectsWith=function(e){var t=Math.round(e.x,2),r=Math.round(e.y,2),n=Math.round(e.right,2),i=Math.round(e.bottom,2),a=Math.round(this.x,2),o=Math.round(this.y,2),s=Math.round(this.right,2),u=Math.round(this.bottom,2);return t<s&&r<u&&n>a&&i>o},t.prototype.alignToGrid=function(e,r){return r?new t(Math.round(this.x/e)*e,Math.round(this.y/e)*e,Math.round(this.width/e)*e,Math.round(this.height/e)*e):new t(this.left,this.top,this.width,this.height)},t.prototype.fitToRectangle=function(e){if(this.isEmpty)return e;if(e.isEmpty)return this;var t=this;return t.left>e.left&&(t.width+=t.left-e.left,t.x=e.left),t.top>e.top&&(t.height+=t.top-e.top,t.y=e.top),t.right<e.right&&(t.width+=e.right-t.right),t.bottom<e.bottom&&(t.height+=e.bottom-t.bottom),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.width&&0==this.height&&0==this.x&&0==this.y},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){if(this.x<=e&&e<this.x+this.width&&this.y<=t)return t<this.y+this.height;return!1},t.convertFromXml=function(e){var r=e.split(",");return new t(r[0].toNumber(),r[1].toNumber(),r[2].toNumber(),r[3].toNumber())},Object.defineProperty(t.prototype,"left",{get:function(){return this.x},set:function(e){this.width+=this.x-e,this.x=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},set:function(e){this.height+=this.y-e,this.y=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},set:function(e){this.width=e-this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},set:function(e){this.height=e-this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return new e.Point(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new e.Size(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height},enumerable:!0,configurable:!0}),t}();e.Rectangle=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(t,r){this.width=0,this.height=0,t&&t.sti_is(e)?(this.width=t.width,this.height=t.height):(this.width=t,this.height=r)}return Object.defineProperty(e,"empty",{get:function(){return new e(0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.width&&0==this.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefault",{get:function(){return 0==this.width&&0==this.height},enumerable:!0,configurable:!0}),e.prototype.swap=function(){var e=this.height;return this.height=this.width,this.width=e,this},e.prototype.round=function(e){return void 0===e&&(e=0),this.width=Math.round(this.width,e),this.height=Math.round(this.height,e),this},e.convertFromXml=function(t){var r=t.split(",");return new e(r[0].toNumber(),r[1].toNumber())},e}();e.Size=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){var r=e.call(this)||this;return r.color=t,r}return __extends(t,e),t}(e.Brush);e.SolidBrush=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Near=0]="Near",e[e.Center=1]="Center",e[e.Far=2]="Far"}(t=e.StringAlignment||(e.StringAlignment={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){this.lineAlignment=e.StringAlignment.Near}return t}();e.StringFormat=t}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.DirectionRightToLeft=1]="DirectionRightToLeft",e[e.DirectionVertical=2]="DirectionVertical",e[e.FitBlackBox=4]="FitBlackBox",e[e.DisplayFormatControl=32]="DisplayFormatControl",e[e.NoFontFallback=1024]="NoFontFallback",e[e.MeasureTrailingSpaces=2048]="MeasureTrailingSpaces",e[e.NoWrap=4096]="NoWrap",e[e.LineLimit=8192]="LineLimit",e[e.NoClip=16384]="NoClip"}(t=e.StringFormatFlags||(e.StringFormatFlags={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.None=0]="None",e[e.Character=1]="Character",e[e.Word=2]="Word",e[e.EllipsisCharacter=3]="EllipsisCharacter",e[e.EllipsisWord=4]="EllipsisWord",e[e.EllipsisPath=5]="EllipsisPath"}(t=e.StringTrimming||(e.StringTrimming={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r=function(){function r(){}return r.getWeekOfYear=function(r,n,i){switch(void 0===n&&(n=t.CalendarWeekRule.FirstDay),void 0===i&&(i=e.DayOfWeek.Monday),n){case t.CalendarWeekRule.FirstDay:return this.getFirstDayWeekOfYear(r,i);case t.CalendarWeekRule.FirstFullWeek:return this.getWeekOfYearFullDays(r,i,7,365);case t.CalendarWeekRule.FirstFourDayWeek:return this.getWeekOfYearFullDays(r,i,4,365)}return 0},r.getFirstDayWeekOfYear=function(e,t){var r=e.dayOfYear-1,n=e.dayOfWeek-r%7,i=(n-t+14)%7;return Math.trunc((r+i)/7)+1},r.getWeekOfYearFullDays=function(e,t,r,n){var i=e.dayOfYear-1,a=e.dayOfWeek-i%7,o=(t-a+14)%7;0!=o&&o>=r&&(o-=7);var s=i-o;if(s>=0)return Math.trunc(s/7)+1;var u=e.year;return i=u<=1?n:this.getDaysInYear(u-1),a-=i%7,o=(t-a+14)%7,0!=o&&o>=r&&(o-=7),s=i-o,Math.trunc(s/7)+1},r.getDaysInYear=function(e){return e%4!=0||e%100==0&&e%400!=0?365:366},r.getWeekOfMonth=function(r,n,i){void 0===n&&(n=t.CalendarWeekRule.FirstDay),void 0===i&&(i=e.DayOfWeek.Monday);var a=this.getWeekOfYear(new e.DateTime(r.year,r.month,1,0,0,0,0),n,i),o=this.getWeekOfYear(r,n,i);return 1==r.month&&a>10&&(a=a<=o?this.getWeekOfYear(new e.DateTime(r.year-1,12,1,0,0,0,0),n,i):1),o-a+1},r}();t.Calendar=r}(t=e.Globalization||(e.Globalization={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(t=e.CalendarWeekRule||(e.CalendarWeekRule={}))}(t=e.Globalization||(e.Globalization={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=function(){function r(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null),this.name=e,this.numberFormat=t,this.dateTimeFormat=r}return Object.defineProperty(r,"currentCulture",{get:function(){if(!this._currentCulture){var t="en";e.System.NodeJs.useWebKit&&(t=navigator.language||navigator.userLanguage),this.cultures[t]?this._currentCulture=this.cultures[t]:t&&t.indexOf("-")>0&&this.cultures[t.substring(0,t.indexOf("-")).toLowerCase()]?this._currentCulture=this.cultures[t.substring(0,t.indexOf("-")).toLowerCase()]:this._currentCulture=this.cultures.en}return this._currentCulture},set:function(e){this._currentCulture=e},enumerable:!0,configurable:!0}),Object.defineProperty(r,"cultures",{get:function(){if(null==this._cultures){this._cultures={},this._cultures.ar=new r("ar",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"ر.س.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MMMM/yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["ح","ن","ث","ر","خ","ج","س"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],":","ص","م","dd/MMMM/yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures.bg=new r("bg",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"лв.",2,","," ",[3],0,0,"%","‰","+ безкрайност","+","NaN","- безкрайност","-"),new t.DateTimeFormatInfo("d.M.yyyy 'г.'",".","dd MMMM yyyy 'г.'",["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"],["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември",""],["н","п","в","с","ч","п","с"],["ян","февр","март","апр","май","юни","юли","авг","септ","окт","ноември","дек",""],["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември",""],":","","","dd MMMM yyyy 'г.' HH:mm:ss 'ч.'","HH:mm 'ч.'","HH:mm:ss 'ч.'","MMMM yyyy 'г.'")),this._cultures.ca=new r("ca",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinit","+","NeuN","-Infinit","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d' / 'MMMM' / 'yyyy",["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre",""],["dg","dl","dt","dc","dj","dv","ds"],["gen","feb","març","abr","maig","juny","jul","ag","set","oct","nov","des",""],["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre",""],":","","","dddd, d' / 'MMMM' / 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM' / 'yyyy")),this._cultures["zh-Hans"]=new r("zh-Hans",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,0,"¥",2,".",",",[3],1,1,"%","‰","正无穷大","+","非数字","负无穷大","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures.cs=new r("cs",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"Kč",2,","," ",[3],1,1,"%","‰","+nekonečno","+","Není číslo","-nekonečno","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec",""],["ne","po","út","st","čt","pá","so"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince",""],":","dop.","odp.","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.da=new r("da",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"kr.",2,",",".",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","d. MMMM yyyy",["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december",""],["sø","ma","ti","on","to","fr","lø"],["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.de=new r("de",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","+unendlich","+","n. def.","-unendlich","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, d. MMMM yyyy",["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mo","Di","Mi","Do","Fr","Sa"],["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd, d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.el=new r("el",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","Άπειρο","+","μη αριθμός","-Άπειρο","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, d MMMM yyyy",["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος",""],["Κυ","Δε","Τρ","Τε","Πε","Πα","Σά"],["Ιαν","Φεβ","Μαρ","Απρ","Μαϊ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ",""],["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου",""],":","πμ","μμ","dddd, d MMMM yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures.en=new r("en",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.es=new r("es",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","","","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures.fi=new r("fi",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM'ta 'yyyy",["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu",""],["su","ma","ti","ke","to","pe","la"],["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu",""],["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu",""],":","","","d. MMMM'ta 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.fr=new r("fr",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.he=new r("he",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"₪",2,".",",",[3],1,1,"%","‰","אינסוף חיובי","+","לא מספר","אינסוף שלילי","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd dd MMMM yyyy",["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","שבת"],["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר",""],["א","ב","ג","ד","ה","ו","ש"],["ינו","פבר","מרץ","אפר","מאי","יונ","יול","אוג","ספט","אוק","נוב","דצמ",""],["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר",""],":","AM","PM","dddd dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.hu=new r("hu",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"Ft",2,","," ",[3],0,0,"%","‰","végtelen","+","nem szám","negatív végtelen","-"),new t.DateTimeFormatInfo("yyyy.MM.dd.",".","yyyy. MMMM d.",["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december",""],["V","H","K","Sze","Cs","P","Szo"],["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec.",""],["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december",""],":","de.","du.","yyyy. MMMM d. H:mm:ss","H:mm","H:mm:ss","yyyy. MMMM")),this._cultures.is_=new r("is",new t.NumberFormatInfo(",",2,".",[3],1,0,",",".",[3],8,3,"kr.",2,",",".",[3],1,1,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"],["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember",""],["su","má","þr","mi","fi","fö","la"],["jan.","feb.","mar.","apr.","maí","jún.","júl.","ágú.","sep.","okt.","nóv.","des.",""],["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.it=new r("it",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"€",2,",",".",[3],1,1,"%","‰","+Infinito","+","Non un numero reale","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],["do","lu","ma","me","gi","ve","sa"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic",""],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.ja=new r("ja",new t.NumberFormatInfo(".",2,",",[3],1,0,".",",",[3],1,0,"¥",2,".",",",[3],1,1,"%","‰","+∞","+","NaN (非数値)","-∞","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","yyyy'年'M'月'd'日'",["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],["日","月","火","水","木","金","土"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],":","午前","午後","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures.ko=new r("ko",new t.NumberFormatInfo(".",2,",",[3],1,0,".",",",[3],1,0,"₩",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","yyyy'년' M'월' d'일' dddd",["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""],["일","월","화","수","목","금","토"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""],":","오전","오후","yyyy'년' M'월' d'일' dddd tt h:mm:ss","tt h:mm","tt h:mm:ss","yyyy'년' M'월'")),this._cultures.nl=new r("nl",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"€",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d-M-yyyy","-","dddd d MMMM yyyy",["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],["zo","ma","di","wo","do","vr","za"],["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],":","","","dddd d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.no=new r("no",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d. MMMM yyyy",["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],["sø","ma","ti","on","to","fr","lø"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.pl=new r("pl",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"zł",2,","," ",[3],1,1,"%","‰","+nieskończoność","+","nie jest liczbą","-nieskończoność","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","d MMMM yyyy",["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień",""],["N","Pn","Wt","Śr","Cz","Pt","So"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru",""],["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia",""],":","","","d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.pt=new r("pt",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"R$",2,",",".",[3],1,1,"%","‰","+Infinito","+","NaN (Não é um número)","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d' de 'MMMM' de 'yyyy",["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],["D","S","T","Q","Q","S","S"],["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],":","","","dddd, d' de 'MMMM' de 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM' de 'yyyy")),this._cultures.rm=new r("rm",new t.NumberFormatInfo(".",2,"'",[3],1,2,".","'",[3],2,2,"fr.",2,".","'",[3],1,1,"%","‰","+infinit","+","betg def.","-infinit","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d MMMM yyyy",["dumengia","glindesdi","mardi","mesemna","gievgia","venderdi","sonda"],["schaner","favrer","mars","avrigl","matg","zercladur","fanadur","avust","settember","october","november","december",""],["du","gli","ma","me","gie","ve","so"],["schan","favr","mars","avr","matg","zercl","fan","avust","sett","oct","nov","dec",""],["schaner","favrer","mars","avrigl","matg","zercladur","fanadur","avust","settember","october","november","december",""],":","","","dddd, d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.ro=new r("ro",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"lei",2,",",".",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["duminică","luni","marţi","miercuri","joi","vineri","sâmbătă"],["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie",""],["D","L","Ma","Mi","J","V","S"],["ian.","feb.","mar.","apr.","mai.","iun.","iul.","aug.","sep.","oct.","nov.","dec.",""],["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie",""],":","","","d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.ru=new r("ru",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₽",2,","," ",[3],1,1,"%","‰","бесконечность","+","NaN","-бесконечность","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy 'г.'",["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек",""],["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря",""],":","","","d MMMM yyyy 'г.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.hr=new r("hr",new t.NumberFormatInfo(",",2,".",[3],2,2,",",".",[3],8,3,"kn",2,",",".",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy.",".","d. MMMM yyyy.",["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac",""],["ne","po","ut","sr","če","pe","su"],["sij","vlj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro",""],["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca",""],":","","","d. MMMM yyyy. H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures.sk=new r("sk",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],1,1,"%","‰","+nekonečno","+","Nie je číslo","-nekonečno","-"),new t.DateTimeFormatInfo("d. M. yyyy",". ","d. MMMM yyyy",["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december",""],["ne","po","ut","st","št","pi","so"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.sq=new r("sq",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],5,1,"Lek",2,",",".",[3],0,0,"%","‰","infinit","+","NaN","-infinit","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","yyyy-MM-dd",["e diel","e hënë","e martë","e mërkurë","e enjte","e premte","e shtunë"],["janar","shkurt","mars","prill","maj","qershor","korrik","gusht","shtator","tetor","nëntor","dhjetor",""],["Di","Hë","Ma","Më","En","Pr","Sh"],["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gsh","Sht","Tet","Nën","Dhj",""],["janar","shkurt","mars","prill","maj","qershor","korrik","gusht","shtator","tetor","nëntor","dhjetor",""],":","PD","MD","yyyy-MM-dd h:mm:ss.tt","h:mm.tt","h:mm:ss.tt","yyyy-MM")),this._cultures.sv=new r("sv",new t.NumberFormatInfo(",",2," ",[3],1,2,",",".",[3],8,3,"kr",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","'den 'd MMMM yyyy",["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],["sö","må","ti","on","to","fr","lö"],["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],":","","","'den 'd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.th=new r("th",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"฿",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","d MMMM yyyy",["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม",""],["อ","จ","อ","พ","พ","ศ","ส"],["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.",""],["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม",""],":","AM","PM","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.tr=new r("tr",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"₺",2,",",".",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dd MMMM yyyy dddd",["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık",""],["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara",""],["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık",""],":","","","dd MMMM yyyy dddd HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.ur=new r("ur",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],3,0,"Rs",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["اتوار","پير","منگل","بدھ","جمعرات","جمعه","هفته"],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر",""],["ا","پ","م","ب","ج","ج","ه"],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر",""],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر",""],":","AM","PM","dd MMMM, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.id=new r("id",new t.NumberFormatInfo(",",2,".",[3],1,0,",",".",[3],0,0,"Rp",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember",""],["M","S","S","R","K","J","S"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agust","Sep","Okt","Nop","Des",""],["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember",""],":","","","dd MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.uk=new r("uk",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"₴",2,","," ",[3],1,1,"%","‰","безмежність","+","NaN","-безмежність","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy' р.'",["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"],["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень",""],["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру",""],["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня",""],":","","","d MMMM yyyy' р.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy' р.'")),this._cultures.be=new r("be",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"р.",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"],["Студзень","Люты","Сакавік","Красавік","Май","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Снежань",""],["нд","пн","аў","ср","чц","пт","сб"],["Сту","Лют","Сак","Кра","Май","Чэр","Ліп","Жні","Вер","Кас","Ліс","Сне",""],["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.sl=new r("sl",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","neskončnost","+","NaN","-neskončnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"],["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december",""],["ne","po","to","sr","če","pe","so"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.et=new r("et",new t.NumberFormatInfo(",",2," ",[3],1,2,"."," ",[3],8,3,"€",2,","," ",[3],1,1,"%","‰","plusslõpmatus","+","avaldamatu","miinuslõpmatus","-"),new t.DateTimeFormatInfo("d.MM.yyyy",".","d. MMMM yyyy'. a.'",["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"],["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember",""],["P","E","T","K","N","R","L"],["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets",""],["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember",""],":","EL","PL","d. MMMM yyyy'. a.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy'. a.'")),this._cultures.lv=new r("lv",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],9,2,"€",2,","," ",[3],1,1,"%","‰","bezgalība","+","NaN","-bezgalība","-"),new t.DateTimeFormatInfo("yyyy.MM.dd.",".","dddd, yyyy'. gada 'd. MMMM",["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris",""],["sv","pr","ot","tr","ce","pk","se"],["jan","feb","mar","apr","mai","jūn","jūl","aug","sep","okt","nov","dec",""],["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī",""],":","","","dddd, yyyy'. gada 'd. MMMM H:mm:ss","H:mm","H:mm:ss","yyyy. MMMM")),this._cultures.lt=new r("lt",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","begalybė","+","NaN","-begalybė","-"),new t.DateTimeFormatInfo("yyyy.MM.dd",".","yyyy 'm.' MMMM d 'd.'",["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis",""],["S","P","A","T","K","Pn","Š"],["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd",""],["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio",""],":","","","yyyy 'm.' MMMM d 'd.' HH:mm:ss","HH:mm","HH:mm:ss","yyyy 'm.' MMMM")),this._cultures.tg=new r("tg",new t.NumberFormatInfo(",",2," ",[3,0],1,2,";"," ",[3,0],8,3,"т.р.",2,","," ",[3,0],1,1,"%","‰","бесконечность","+","NaN","-бесконечность","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","d MMMM yyyy",["Яш","Душанбе","Сешанбе","Чоршанбе","Панҷшанбе","Ҷумъа","Шанбе"],["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр",""],["Яш","Дш","Сш","Чш","Пш","Ҷм","Шн"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек",""],["январи","феврали","марти","апрели","маи","июни","июли","августи","сентябри","октябри","ноябри","декабри",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.fa=new r("fa",new t.NumberFormatInfo(".",2,",",[3],3,2,"/",",",[3],3,2,"ريال",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("MM/dd/yyyy","/","dddd, MMMM dd, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],":","ق.ظ","ب.ظ","dddd, MMMM dd, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures.vi=new r("vi",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"₫",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],["Tháng Giêng","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai",""],["C","H","B","T","N","S","B"],["Thg1","Thg2","Thg3","Thg4","Thg5","Thg6","Thg7","Thg8","Thg9","Thg10","Thg11","Thg12",""],["Tháng Giêng","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai",""],":","SA","CH","dd MMMM yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures.hy=new r("hy",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],8,3,"դր.",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM, yyyy",["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","ՈՒրբաթ","Շաբաթ"],["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր",""],["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],["ՀՆՎ","ՓՏՎ","ՄՐՏ","ԱՊՐ","ՄՅՍ","ՀՆՍ","ՀԼՍ","ՕԳՍ","ՍԵՊ","ՀՈԿ","ՆՈՅ","ԴԵԿ",""],["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր",""],":","","","d MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures.az=new r("az",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₼",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"],["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avgust","Sentyabr","Oktyabr","Noyabr","Dekabr",""],["B","Be","Ça","Ç","Ca","C","Ş"],["Yan","Fev","Mar","Apr","May","İyun","İyul","Avg","Sen","Okt","Noy","Dek",""],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.eu=new r("eu",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinitu","+","EdZ","-Infinitu","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dddd, yyyy.'eko' MMMM'k 'd",["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua",""],["ig","al","as","az","og","or","lr"],["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe.",""],["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua",""],":","","","dddd, yyyy.'eko' MMMM'k 'd H:mm:ss","HH:mm","H:mm:ss","yyyy.'eko' MMMM")),this._cultures.hsb=new r("hsb",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","+njekónčne","+","njedefinowane","-njekónčne","-"),new t.DateTimeFormatInfo("d. M. yyyy",". ","dddd, 'dnja' d. MMMM yyyy",["njedźela","póndźela","wutora","srjeda","štwórtk","pjatk","sobota"],["januar","februar","měrc","apryl","meja","junij","julij","awgust","september","oktober","nowember","december",""],["n","p","w","s","š","p","s"],["jan","feb","měr","apr","mej","jun","jul","awg","sep","okt","now","dec",""],["januara","februara","měrca","apryla","meje","junija","julija","awgusta","septembra","oktobra","nowembra","decembra",""],":","","","dddd, 'dnja' d. MMMM yyyy H:mm:ss","H.mm 'hodź.'","H:mm:ss","MMMM yyyy")),this._cultures.mk=new r("mk",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"ден.",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, dd MMMM yyyy",["недела","понеделник","вторник","среда","четврток","петок","сабота"],["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември",""],["не","по","вт","ср","че","пе","са"],["јан","фев","мар","апр","мај","јун","јул","авг","сеп","окт","ное","дек",""],["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември",""],":","","","dddd, dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.tn=new r("tn",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["Latshipi","Mosupologo","Labobedi","Laboraro","Labone","Labotlhano","Lamatlhatso"],["Ferikgong","Tlhakole","Mopitloe","Moranang","Motsheganong","Seetebosigo","Phukwi","Phatwe","Lwetse","Diphalane","Ngwanatsele","Sedimothole",""],["Lp","Ms","Lb","Lr","Ln","Lt","Lm"],["Fer.","Tlhak.","Mop.","Mor.","Motsh.","Seet.","Phukw.","Phatw.","Lwets.","Diph.","Ngwan.","Sed.",""],["Ferikgong","Tlhakole","Mopitloe","Moranang","Motsheganong","Seetebosigo","Phukwi","Phatwe","Lwetse","Diphalane","Ngwanatsele","Sedimothole",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures.xh=new r("xh",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["iCawa","uMvulo","uLwesibini","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],["Mqungu","Mdumba","Kwindla","Tshazimpuzi","Canzibe","Silimela","Khala","Thupha","Msintsi","Dwarha","Nkanga","Mnga",""],["Ca","Mv","Lb","Lt","Ln","Lh","Mg"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["Mqungu","Mdumba","Kwindla","Tshazimpuzi","Canzibe","Silimela","Khala","Thupha","Msintsi","Dwarha","Nkanga","Mnga",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures.zu=new r("zu",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["iSonto","uMsombuluko","uLwesibili","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Mas.","Nhlo.","Nda.","Mba.","Nhla.","Nhlang.","Ntu.","Ncwa.","Man.","Mfu.","Lwe.","Zib.",""],["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures.af=new r("af",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember",""],["So","Ma","Di","Wo","Do","Vr","Sa"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des",""],["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures.ka=new r("ka",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₾",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","yyyy 'წლის' dd MM, dddd",["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"],["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი",""],["კ","ო","ს","ო","ხ","პ","შ"],["იან","თებ","მარ","აპრ","მაის","ივნ","ივლ","აგვ","სექ","ოქტ","ნოემ","დეკ",""],["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი",""],":","","","yyyy 'წლის' dd MM, dddd H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.fo=new r("fo",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"kr.",2,",",".",[3],1,1,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","d. MMMM yyyy",["sunnudagur","mánadagur","týsdagur","mikudagur","hósdagur","fríggjadagur","leygardagur"],["januar","februar","mars","apríl","mai","juni","juli","august","september","oktober","november","desember",""],["su","má","tý","mi","hó","fr","ley"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],["januar","februar","mars","apríl","mai","juni","juli","august","september","oktober","november","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.hi=new r("hi",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["र","स","म","ब","ग","श","श"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],":","पूर्वाह्न","अपराह्न","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.mt=new r("mt",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"€",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d' ta' 'MMMM yyyy",["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"],["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awissu","Settembru","Ottubru","Novembru","Diċembru",""],["I","I","I","L","I","I","I"],["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Awi","Set","Ott","Nov","Diċ",""],["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awissu","Settembru","Ottubru","Novembru","Diċembru",""],":","AM","PM","dddd, d' ta' 'MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.se=new r("se",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","MMMM d'. b. 'yyyy",["sotnabeaivi","vuossárga","maŋŋebárga","gaskavahkku","duorastat","bearjadat","lávvardat"],["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu",""],["s","m","d","g","d","b","l"],["ođđj","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov",""],["ođđajagimánu","guovvamánu","njukčamánu","cuoŋománu","miessemánu","geassemánu","suoidnemánu","borgemánu","čakčamánu","golggotmánu","skábmamánu","juovlamánu",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.ga=new r("ga",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"€",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","d MMMM yyyy",["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig",""],["Do","Lu","Má","Cé","De","Ao","Sa"],["Ean","Feabh","Már","Aib","Bealt","Meith","Iúil","Lún","M.Fómh","D.Fómh","Samh","Noll",""],["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig",""],":","r.n.","i.n.","d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.ms=new r("ms",new t.NumberFormatInfo(".",2,",",[3],1,0,".",",",[3],0,0,"RM",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember",""],["A","I","S","R","K","J","S"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogos","Sept","Okt","Nov","Dis",""],["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember",""],":","","","dd MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.kk=new r("kk",new t.NumberFormatInfo(",",2," ",[3],1,2,"-"," ",[3],1,0,"Т",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy 'ж.'",["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"],["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан",""],["Жк","Дс","Сс","Ср","Бс","Жм","Сн"],["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел",""],["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан",""],":","","","d MMMM yyyy 'ж.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.ky=new r("ky",new t.NumberFormatInfo(",",2," ",[3],1,2,"-"," ",[3],8,3,"сом",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","d'-'MMMM yyyy'-ж.'",["Жекшемби","Дүйшөмбү","Шейшемби","Шаршемби","Бейшемби","Жума","Ишемби"],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],["Жш","Дш","Шш","Шр","Бш","Жм","Иш"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек",""],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],":","","","d'-'MMMM yyyy'-ж.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy'-ж.'")),this._cultures.sw=new r("sw",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"S",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"],["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Decemba",""],["P","T","N","T","A","I","M"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ago","Sep","Okt","Nov","Dec",""],["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Decemba",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.tk=new r("tk",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"m.",2,","," ",[3],1,1,"%","‰","üznüksizlik","+","NaN","-üznüksizlik","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","yyyy 'ý.' MMMM d",["Duşenbe","Sişenbe","Çarşenbe","Penşenbe","Anna","Şenbe","Ýekşenbe"],["Ýanwar","Fewral","Mart","Aprel","Maý","lýun","lýul","Awgust","Sentýabr","Oktýabr","Noýabr","Dekabr",""],["D","S","Ç","P","A","Ş","Ý"],["Ýan","Few","Mart","Apr","Maý","lýun","lýul","Awg","Sen","Okt","Not","Dek",""],["Ýanwar","Fewral","Mart","Aprel","Maý","lýun","lýul","Awgust","Sentýabr","Oktýabr","Noýabr","Dekabr",""],":","","","yyyy 'ý.' MMMM d H:mm:ss","H:mm","H:mm:ss","yyyy 'ý.' MMMM")),this._cultures.uz=new r("uz",new t.NumberFormatInfo(",",2," ",[3],1,0,","," ",[3],8,3,"so'm",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM yyyy","/","yyyy 'yil' d-MMMM",["yakshanba","dushanba","seshanba","chorshanba","payshanba","juma","shanba"],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],["ya","d","s","ch","p","j","sh"],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],":","","","yyyy 'yil' d-MMMM HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.tt=new r("tt",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₽",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["Якшәмбе","Дүшәмбе","Сишәмбе","Чәршәмбе","Пәнҗешәмбе","Җомга","Шимбә"],["Гыйнвар","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],["Я","Д","С","Ч","П","Җ","Ш"],["Гыйн.","Фев.","Мар.","Апр.","Май","Июнь","Июль","Авг.","Сен.","Окт.","Нояб.","Дек.",""],["Гыйнварның","Февральнең","Мартның","Апрельнең","Майның","Июньнең","Июльнең","Августның","Сентябрьның","Октябрьның","Ноябрьның","Декабрьның",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.bn=new r("bn",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",""],["র","স","ম","ব","ব","শ","শ"],["জানু.","ফেব্রু.","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগ.","সেপ্টে.","অক্টো.","নভে.","ডিসে.",""],["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",""],".","পুর্বাহ্ন","অপরাহ্ন","dd MMMM yyyy HH.mm.ss","HH.mm","HH.mm.ss","MMMM, yyyy")),this._cultures.pa=new r("pa",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy dddd",["ਐਤਵਾਰ","ਸੋਮਵਾਰ","ਮੰਗਲਵਾਰ","ਬੁੱਧਵਾਰ","ਵੀਰਵਾਰ","ਸ਼ੁੱਕਰਵਾਰ","ਸ਼ਨਿੱਚਰਵਾਰ"],["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ",""],["ਐ","ਸ","ਮ","ਬ","ਵ","ਸ਼","ਸ਼"],["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ",""],["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ",""],":","ਸਵੇਰ","ਸ਼ਾਮ","dd MMMM yyyy dddd tt hh:mm:ss","tt hh:mm","tt hh:mm:ss","MMMM, yyyy")),this._cultures.gu=new r("gu",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"],["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટેમ્બર","ઑક્ટ્બર","નવેમ્બર","ડિસેમ્બર",""],["ર","સ","મ","બ","ગ","શ","શ"],["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઑક્ટો","નવે","ડિસે",""],["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટેમ્બર","ઑક્ટ્બર","નવેમ્બર","ડિસેમ્બર",""],":","પૂર્વ મધ્યાહ્ન","ઉત્તર મધ્યાહ્ન","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.or=new r("or",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ରବିବାର","ସୋମବାର","ମଙ୍ଗଳବାର","ବୁଧବାର","ଗୁରୁବାର","ଶୁକ୍ରବାର","ଶନିବାର"],["ଜାନୁୟାରୀ","ଫ୍ରେବୃୟାରୀ","ମାର୍ଚ୍ଚ","ଏପ୍ରିଲ୍‌","ମେ","ଜୁନ୍‌","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","(ଡିସେମ୍ବର",""],["ର","ସୋ","ମ","ବୁ","ଗୁ","ଶୁ","ଶ"],["ଜାନୁୟାରୀ","ଫ୍ରେବୃୟାରୀ","ମାର୍ଚ୍ଚ","ଏପ୍ରିଲ୍‌","ମେ","ଜୁନ୍‌","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","(ଡିସେମ୍ବର",""],["ଜାନୁୟାରୀ","ଫ୍ରେବୃୟାରୀ","ମାର୍ଚ୍ଚ","ଏପ୍ରିଲ୍‌","ମେ","ଜୁନ୍‌","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","(ଡିସେମ୍ବର",""],":","AM","PM","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.ta=new r("ta",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["ஞாயிற்றுக்கிழமை","திங்கள்கிழமை","செவ்வாய்கிழமை","புதன்கிழமை","வியாழக்கிழமை","வெள்ளிக்கிழமை","சனிக்கிழமை"],["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்",""],["ஞா","தி","செ","பு","வி","வெ","ச"],["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்",""],["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்",""],":","காலை","மாலை","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.te=new r("te",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"],["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""],["ఆ","సో","మం","బు","గు","శు","శ"],["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""],["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""],":","పూర్వాహ్న","అపరాహ్న","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.kn=new r("kn",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ"],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಎಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್",""],["ರ","ಸ","ಮ","ಬ","ಗ","ಶ","ಶ"],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಎಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್",""],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಎಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್",""],":","ಪೂರ್ವಾಹ್ನ","ಅಪರಾಹ್ನ","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.ml=new r("ml",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ഞായറാഴ്ച","തിങ്കളാഴ്ച","ചൊവ്വാഴ്ച","ബുധനാഴ്ച","വ്യാഴാഴ്ച","വെള്ളിയാഴ്ച","ശനിയാഴ്ച"],["ജനുവരി","ഫെബ്റുവരി","മാറ്ച്ച്","ഏപ്റില്","മെയ്","ജൂണ്","ജൂലൈ","ഓഗസ്ററ്","സെപ്ററംബറ്","ഒക്ടോബറ്","നവംബറ്","ഡിസംബറ്",""],["ഞ","ത","ച","ബ","വ","വെ","ശ"],["ജനുവരി","ഫെബ്റുവരി","മാറ്ച്ച്","ഏപ്റില്","മെയ്","ജൂണ്","ജൂലൈ","ഓഗസ്ററ്","സെപ്ററംബറ്","ഒക്ടോബറ്","നവംബറ്","ഡിസംബറ്",""],["ജനുവരി","ഫെബ്റുവരി","മാറ്ച്ച്","ഏപ്റില്","മെയ്","ജൂണ്","ജൂലൈ","ഓഗസ്ററ്","സെപ്ററംബറ്","ഒക്ടോബറ്","നവംബറ്","ഡിസംബറ്",""],".","AM","PM","dd MMMM yyyy HH.mm.ss","HH.mm","HH.mm.ss","MMMM, yyyy")),this._cultures.as_=new r("as",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,1,"₹",2,".",",",[3,2],1,1,"%","‰","infinity","+","nan","-infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","yyyy,MMMM dd, dddd",["সোমবাৰ","মঙ্গলবাৰ","বুধবাৰ","বৃহস্পতিবাৰ","শুক্রবাৰ","শনিবাৰ","ৰবিবাৰ"],["জানুৱাৰী","ফেব্রুৱাৰী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগষ্ট","চেপ্টেম্বর","অক্টোবর","নবেম্বর","ডিচেম্বর",""],["সো","ম","বু","বৃ","শু","শ","র"],["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগষ্ট","চেপ্টে","অক্টো","নবে","ডিচে",""],["জানুৱাৰী","ফেব্রুৱাৰী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগষ্ট","চেপ্টেম্বর","অক্টোবর","নবেম্বর","ডিচেম্বর",""],":","ৰাতিপু","আবেলি","yyyy,MMMM dd, dddd tt h:mm:ss","tt h:mm","tt h:mm:ss","MMMM,yy")),this._cultures.mr=new r("mr",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["रविवार","सोमवार","मंगळवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोव्हेंबर","डिसेंबर",""],["र","स","म","ब","ग","श","श"],["जाने.","फेब्रु.","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टें.","ऑक्टो.","नोव्हें.","डिसें.",""],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोव्हेंबर","डिसेंबर",""],":","म.पू.","म.नं.","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.sa=new r("sa",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy dddd",["रविवासरः","सोमवासरः","मङ्गलवासरः","बुधवासरः","गुरुवासरः","शुक्रवासरः","शनिवासरः"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["र","स","म","ब","ग","श","श"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],":","पूर्वाह्न","अपराह्न","dd MMMM yyyy dddd HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.mn=new r("mn",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"₮",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yy.MM.dd",".","yyyy 'оны' MMMM d",["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"],["1 дүгээр сар","2 дугаар сар","3 дугаар сар","4 дүгээр сар","5 дугаар сар","6 дугаар сар","7 дугаар сар","8 дугаар сар","9 дүгээр сар","10 дугаар сар","11 дүгээр сар","12 дугаар сар",""],["Ня","Да","Мя","Лх","Пү","Ба","Бя"],["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII",""],["1 дүгээр сарын","2 дугаар сарын","3 дугаар сарын","4 дүгээр сарын","5 дугаар сарын","6 дугаар сарын","7 дугаар сарын","8 дугаар сарын","9 дүгээр сарын","10 дугаар сарын","11 дүгээр сарын","12 дугаар сарын",""],":","","","yyyy 'оны' MMMM d H:mm:ss","H:mm","H:mm:ss","yyyy 'он' MMMM")),this._cultures.bo=new r("bo",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3,0],2,0,"¥",2,".",",",[3,0],1,1,"%","‰","ཕོ་གྲངས་ཚད་མེད་ཆེ་བ།","+","ཨང་ཀི་མིན་པ།","མོ་གྲངས་ཚད་མེད་ཆུང་བ།","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'ལོའི་ཟླ' M'ཚེས' d",["གཟའ་ཉི་མ།","གཟའ་ཟླ་བ།","གཟའ་མིག་དམར།","གཟའ་ལྷག་པ།","གཟའ་ཕུར་བུ།","གཟའ་པ་སངས།","གཟའ་སྤེན་པ།"],["སྤྱི་ཟླ་དང་པོ།","སྤྱི་ཟླ་གཉིས་པ།","སྤྱི་ཟླ་གསུམ་པ།","སྤྱི་ཟླ་བཞི་པ།","སྤྱི་ཟླ་ལྔ་པ།","སྤྱི་ཟླ་དྲུག་པ།","སྤྱི་ཟླ་བདུན་པ།","སྤྱི་ཟླ་བརྒྱད་པ།","སྤྱི་ཟླ་དགུ་པ།","སྤྱི་ཟླ་བཅུ་པོ།","སྤྱི་ཟླ་བཅུ་གཅིག་པ།","སྤྱི་ཟླ་བཅུ་གཉིས་པ།",""],["༧","༡","༢","༣","༤","༥","༦"],["ཟླ་ ༡","ཟླ་ ༢","ཟླ་ ༣","ཟླ་ ༤","ཟླ་ ༥","ཟླ་ ༦","ཟླ་ ༧","ཟླ་ ༨","ཟླ་ ༩","ཟླ་ ༡༠","ཟླ་ ༡༡","ཟླ་ ༡༢",""],["སྤྱི་ཟླ་དང་པོ།","སྤྱི་ཟླ་གཉིས་པ།","སྤྱི་ཟླ་གསུམ་པ།","སྤྱི་ཟླ་བཞི་པ།","སྤྱི་ཟླ་ལྔ་པ།","སྤྱི་ཟླ་དྲུག་པ།","སྤྱི་ཟླ་བདུན་པ།","སྤྱི་ཟླ་བརྒྱད་པ།","སྤྱི་ཟླ་དགུ་པ།","སྤྱི་ཟླ་བཅུ་པོ།","སྤྱི་ཟླ་བཅུ་གཅིག་པ།","སྤྱི་ཟླ་བཅུ་གཉིས་པ།",""],":","སྔ་དྲོ","ཕྱི་དྲོ","yyyy'ལོའི་ཟླ' M'ཚེས' d HH:mm:ss","HH:mm","HH:mm:ss","yyyy.M")),this._cultures.cy=new r("cy",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"£",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"],["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr",""],["Su","Ll","Ma","Me","Ia","Gw","Sa"],["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag",""],["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr",""],":","a.m.","p.m.","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.km=new r("km",new t.NumberFormatInfo(".",2,",",[3,0],2,2,".",",",[3],5,1,"៛",2,".",",",[3,0],1,1,"%","‰","អនន្ត","+","NAN","-- អនន្ត","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","d MMMM yyyy",["ថ្ងៃអាទិត្យ","ថ្ងៃច័ន្ទ","ថ្ងៃអង្គារ","ថ្ងៃពុធ","ថ្ងៃព្រហស្បតិ៍","ថ្ងៃសុក្រ","ថ្ងៃសៅរ៍"],["មករា","កុម្ភៈ","មិនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ",""],["អា","ច","អ","ពុ","ព្","សុ","ស"],["១","២","៣","៤","៥","៦","៧","៨","៩","១០","១១","១២",""],["មករា","កុម្ភៈ","មិនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ",""],":","ព្រឹក","ល្ងាច","d MMMM yyyy HH:mm:ss","H:mm tt","HH:mm:ss","'ខែ' MM 'ឆ្នាំ' yyyy")),this._cultures.lo=new r("lo",new t.NumberFormatInfo(".",2,",",[3,0],0,2,".",",",[3,0],4,1,"₭",2,".",",",[3,0],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["ວັນອາທິດ","ວັນຈັນ","ວັນອັງຄານ","ວັນພຸດ","ວັນພະຫັດ","ວັນສຸກ","ວັນເສົາ"],["ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ",""],["ອ","ຈ","ອ","ພ","ພ","ສ","ເ"],["ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ",""],["ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ",""],":","ເຊົ້າ","ແລງ","dd MMMM yyyy HH:mm:ss","H:mm tt","HH:mm:ss","MMMM yyyy")),this._cultures.gl=new r("gl",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","luns","martes","mércores","xoves","venres","sábado"],["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro",""],["do","lu","ma","mé","xo","ve","sá"],["xan","feb","mar","abr","maio","xuñ","xull","ago","set","out","nov","dec",""],["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures.kok=new r("kok",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["आयतार","सोमार","मंगळार","बुधवार","बिरेस्तार","सुक्रार","शेनवार"],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोवेम्बर","डिसेंबर",""],["आ","स","म","ब","ब","स","श"],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोवेम्बर","डिसेंबर",""],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोवेम्बर","डिसेंबर",""],":","म.पू.","म.नं.","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.syr=new r("syr",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],3,2,"ل.س.‏",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["ܚܕ ܒܫܒܐ","ܬܪܝܢ ܒܫܒܐ","ܬܠܬܐ ܒܫܒܐ","ܐܪܒܥܐ ܒܫܒܐ","ܚܡܫܐ ܒܫܒܐ","ܥܪܘܒܬܐ","ܫܒܬܐ"],["ܟܢܘܢ ܐܚܪܝ","ܫܒܛ","ܐܕܪ","ܢܝܣܢ","ܐܝܪ","ܚܙܝܪܢ","ܬܡܘܙ","ܐܒ","ܐܝܠܘܠ","ܬܫܪܝ ܩܕܝܡ","ܬܫܪܝ ܐܚܪܝ","ܟܢܘܢ ܩܕܝܡ",""],["ܐ","ܒ","ܓ","ܕ","ܗ","ܥ","ܫ"],["܏ܟܢ ܏ܒ","ܫܒܛ","ܐܕܪ","ܢܝܣܢ","ܐܝܪ","ܚܙܝܪܢ","ܬܡܘܙ","ܐܒ","ܐܝܠܘܠ","܏ܬܫ ܏ܐ","܏ܬܫ ܏ܒ","܏ܟܢ ܏ܐ",""],["ܟܢܘܢ ܐܚܪܝ","ܫܒܛ","ܐܕܪ","ܢܝܣܢ","ܐܝܪ","ܚܙܝܪܢ","ܬܡܘܙ","ܐܒ","ܐܝܠܘܠ","ܬܫܪܝ ܩܕܝܡ","ܬܫܪܝ ܐܚܪܝ","ܟܢܘܢ ܩܕܝܡ",""],":","ܩ.ܛ","ܒ.ܛ","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures.si=new r("si",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3],14,2,"රු.",2,".",",",[3,2],0,0,"%","‰","අනන්තය","+","NaN","-අනන්තය","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","yyyy MMMM' මස 'dd' වැනිදා 'dddd",["ඉරිදා","සඳුදා","අඟහරුවාදා","බදාදා","බ්‍රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා"],["ජනවාරි","පෙබරවාරි","මාර්තු","අ‌ප්‍රේල්","මැයි","ජූනි","ජූලි","අ‌ගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්",""],["ඉ","ස","අ","බ","බ්‍ර","සි","සෙ"],["ජන.","පෙබ.","මාර්තු.","අප්‍රේල්.","මැයි.","ජූනි.","ජූලි.","අගෝ.","සැප්.","ඔක්.","නොවැ.","දෙසැ.",""],["ජනවාරි","පෙබරවාරි","මාර්තු","අ‌ප්‍රේල්","මැයි","ජූනි","ජූලි","අ‌ගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්",""],":","පෙ.ව.","ප.ව.","yyyy MMMM' මස 'dd' වැනිදා 'dddd h:mm:ss tt","h:mm tt","h:mm:ss tt","yyyy MMMM")),this._cultures.iu=new r("iu",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],0,0,"$",2,".",",",[3,0],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/MM/yyyy","/","ddd, MMMM dd,yyyy",["Naattiinguja","Naggajjau","Aippiq","Pingatsiq","Sitammiq","Tallirmiq","Sivataarvik"],["Jaannuari","Viivvuari","Maatsi","Iipuri","Mai","Juuni","Julai","Aaggiisi","Sitipiri","Utupiri","Nuvipiri","Tisipiri",""],["N","N","A","P","S","T","S"],["Jan","Viv","Mas","Ipu","Mai","Jun","Jul","Agi","Sii","Uut","Nuv","Tis",""],["Jaannuari","Viivvuari","Maatsi","Iipuri","Mai","Juuni","Julai","Aaggiisi","Sitipiri","Utupiri","Nuvipiri","Tisipiri",""],":","AM","PM","ddd, MMMM dd,yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.am=new r("am",new t.NumberFormatInfo(".",1,",",[3,0],1,2,".",",",[3,0],1,0,"ETB",1,".",",",[3,0],1,1,"%","‰","Infinity","+","NAN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd '፣' MMMM d 'ቀን' yyyy",["እሑድ","ሰኞ","ማክሰኞ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],["ጃንዩወሪ","ፌብሩወሪ","ማርች","ኤፕረል","ሜይ","ጁን","ጁላይ","ኦገስት","ሴፕቴምበር","ኦክተውበር","ኖቬምበር","ዲሴምበር",""],["እ","ሰ","ማ","ረ","ሐ","ዓ","ቅ"],["ጃንዩ","ፌብሩ","ማርች","ኤፕረ","ሜይ","ጁን","ጁላይ","ኦገስ","ሴፕቴ","ኦክተ","ኖቬም","ዲሴም",""],["ጃንዩወሪ","ፌብሩወሪ","ማርች","ኤፕረል","ሜይ","ጁን","ጁላይ","ኦገስት","ሴፕቴምበር","ኦክተውበር","ኖቬምበር","ዲሴምበር",""],":","ጡዋት","ከሰዓት","dddd '፣' MMMM d 'ቀን' yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures.tzm=new r("tzm",new t.NumberFormatInfo(",",2,".",[3],3,2,".",",",[3],8,3,"DZD",2,",",".",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM, yyyy",["Acer","Arime","Aram","Ahad","Amhadh","Sem","Sedh"],["Yenayer","Furar","Maghres","Yebrir","Mayu","Yunyu","Yulyu","Ghuct","Cutenber","Ktuber","Wambir","Dujanbir",""],["Ac","Ar","Ar","Ah","Am","Se","Se"],["Yen","Fur","Mag","Yeb","May","Yun","Yul","Ghu","Cut","Ktu","Wam","Duj",""],["Yenayer","Furar","Maghres","Yebrir","Mayu","Yunyu","Yulyu","Ghuct","Cutenber","Ktuber","Wambir","Dujanbir",""],":","","","dd MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures.ne=new r("ne",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3],1,0,"रु",2,".",",",[3,2],1,1,"%","‰","infinity","+","nan","-infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["आइतवार","सोमवार","मङ्गलवार","बुधवार","बिहीवार","शुक्रवार","शनिवार"],["जनवरी","फेब्रुअरी","मार्च","अप्रिल","मे","जून","जुलाई","अगस्त","सेप्टेम्बर","अक्टोबर","नोभेम्बर","डिसेम्बर",""],["आ","सो","म","बु","बि","शु","श"],["जन","फेब","मार्च","अप्रिल","मे","जून","जुलाई","अग","सेप्ट","अक्ट","नोभ","डिस",""],["जनवरी","फेब्रुअरी","मार्च","अप्रिल","मे","जून","जुलाई","अगस्त","सेप्टेम्बर","अक्टोबर","नोभेम्बर","डिसेम्बर",""],":","विहानी","बेलुकी","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM,yyyy")),this._cultures.fy=new r("fy",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"€",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d-M-yyyy","-","dddd d MMMM yyyy",["Snein","Moandei","Tiisdei","Woansdei","Tongersdei","Freed","Sneon"],["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber",""],["S","M","T","W","T","F","S"],["jann","febr","mrt","apr","maaie","jun","jul","aug","sept","okt","nov","des",""],["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber",""],":","","","dddd d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.ps=new r("ps",new t.NumberFormatInfo(",",2,"،",[3],3,2,"٫","٬",[3],3,0,"؋",2,",","،",[3],4,2,"%","‰","∞","+","غ ع","-∞","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MM/yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["ح","ن","ث","ر","خ","ج","س"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],":","غ.م","غ.و","dd/MM/yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.fil=new r("fil",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"PhP",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Linggo","Lunes","Martes","Mierkoles","Huebes","Biernes","Sabado"],["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Septyembre","Oktubre","Nobyembre","Disyembre",""],["L","L","M","M","H","B","S"],["En","Peb","Mar","Abr","Mayo","Hun","Hul","Agos","Sept","Okt","Nob","Dis",""],["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Septyembre","Oktubre","Nobyembre","Disyembre",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.dv=new r("dv",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],10,3,"ރ.",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MM/yyyy",["އާދީއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],["މުޙައްރަމް","ޞަފަރު","ރަބީޢުލްއައްވަލް","ރަބީޢުލްއާޚިރު","ޖުމާދަލްއޫލާ","ޖުމާދަލްއާޚިރާ","ރަޖަބް","ޝަޢްބާން","ރަމަޟާން","ޝައްވާލް","ޛުލްޤަޢިދާ","ޛުލްޙިއްޖާ",""],["އާ","ހޯ","އަ","ބު","ބު","ހު","ހޮ"],["މުޙައްރަމް","ޞަފަރު","ރަބީޢުލްއައްވަލް","ރަބީޢުލްއާޚިރު","ޖުމާދަލްއޫލާ","ޖުމާދަލްއާޚިރާ","ރަޖަބް","ޝަޢްބާން","ރަމަޟާން","ޝައްވާލް","ޛުލްޤަޢިދާ","ޛުލްޙިއްޖާ",""],["މުޙައްރަމް","ޞަފަރު","ރަބީޢުލްއައްވަލް","ރަބީޢުލްއާޚިރު","ޖުމާދަލްއޫލާ","ޖުމާދަލްއާޚިރާ","ރަޖަބް","ޝަޢްބާން","ރަމަޟާން","ޝައްވާލް","ޛުލްޤަޢިދާ","ޛުލްޙިއްޖާ",""],":","މކ","މފ","dd/MM/yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures.ha=new r("ha",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"N",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, MMMM dd, yyyy",["Lahadi","Litinin","Talata","Laraba","Alhamis","Juma'a","Asabar"],["Januwaru","Febreru","Maris","Afrilu","Mayu","Yuni","Yuli","Agusta","Satumba","Oktocba","Nuwamba","Disamba",""],["L","L","T","L","A","J","A"],["Jan","Feb","Mar","Afr","May","Yun","Yul","Agu","Sat","Okt","Nuw","Dis",""],["Januwaru","Febreru","Maris","Afrilu","Mayu","Yuni","Yuli","Agusta","Satumba","Oktocba","Nuwamba","Disamba",""],":","Safe","Yamma","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.yo=new r("yo",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"N",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, MMMM dd, yyyy",["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],["A","A","I","O","O","E","A"],["kin.","kej.","ket.","ker.","kar.","kef.","kej.","kej.","kes.","kew.","kok.","ker.",""],["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],":","Owuro","Ale","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.quz=new r("quz",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"$b",2,",",".",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["intichaw","killachaw","atipachaw","quyllurchaw","Ch' askachaw","Illapachaw","k'uychichaw"],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],["d","k","a","m","h","b","k"],["Qul","Hat","Pau","ayr","Aym","Int","Ant","Qha","Uma","Kan","Aya","Kap",""],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures.nso=new r("nso",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["Lamorena","Mošupologo","Labobedi","Laboraro","Labone","Labohlano","Mokibelo"],["Pherekgong","Hlakola","Mopitlo","Moranang","Mosegamanye","Ngoatobošego","Phuphu","Phato","Lewedi","Diphalana","Dibatsela","Manthole",""],["L","M","L","L","L","L","M"],["Pher","Hlak","Mop","Mor","Mos","Ngwat","Phup","Phat","Lew","Dip","Dib","Man",""],["Pherekgong","Hlakola","Mopitlo","Moranang","Mosegamanye","Ngoatobošego","Phuphu","Phato","Lewedi","Diphalana","Dibatsela","Manthole",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures.ba=new r("ba",new t.NumberFormatInfo(",",2," ",[3,0],1,2,","," ",[3,0],8,3,"₽",2,","," ",[3,0],1,1,"%","‰","бесконечность","+","NaN","-бесконечность","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","d MMMM yyyy 'й'",["Йәкшәмбе","Дүшәмбе","Шишәмбе","Шаршамбы","Кесаҙна","Йома","Шәмбе"],["ғинуар","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь",""],["Йш","Дш","Шш","Шр","Кс","Йм","Шб"],["ғин","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек",""],["ғинуар","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь",""],":","","","d MMMM yyyy 'й' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.lb=new r("lb",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+onendlech","+","n. num.","-onendlech","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"],["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mé","Dë","Më","Do","Fr","Sa"],["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.kl=new r("kl",new t.NumberFormatInfo(",",2,".",[3,0],1,2,",",".",[3,0],12,2,"kr.",2,",",".",[3,0],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","d. MMMM yyyy",["sapaat","ataasinngorneq","marlunngorneq","pingasunngorneq","sisamanngorneq","tallimanngorneq","arfininngorneq"],["januari","februari","martsi","apriili","maaji","juni","juli","aggusti","septembari","oktobari","novembari","decembari",""],["sa","at","ma","pi","si","ta","ar"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","martsi","apriili","maaji","juni","juli","aggusti","septembari","oktobari","novembari","decembari",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.ig=new r("ig",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"N",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, MMMM dd, yyyy",["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],["Onwa mbu","Onwa ibua","Onwa ato","Onwa ano","Onwa ise","Onwa isi","Onwa asa","Onwa asato","Onwa itolu","Onwa iri","Onwa iri n'ofu","Onwa iri n'ibua",""],["A","A","I","O","O","E","A"],["mbu.","ibu.","ato.","ano.","ise","isi","asa","asa.","ito.","iri.","n'of.","n'ib.",""],["Onwa mbu","Onwa ibua","Onwa ato","Onwa ano","Onwa ise","Onwa isi","Onwa asa","Onwa asato","Onwa itolu","Onwa iri","Onwa iri n'ofu","Onwa iri n'ibua",""],":","Ututu","Efifie","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.ii=new r("ii",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],2,0,"¥",2,".",",",[3,0],1,1,"%","‰","ꈤꇁꑖꀋꉬ","+","ꌗꂷꀋꉬ","ꀄꊭꌐꀋꉆ","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'ꈎ' M'ꆪ' d'ꑍ'",["ꑭꆏꑍ","ꆏꊂ꒔","ꆏꊂꑍ","ꆏꊂꌕ","ꆏꊂꇖ","ꆏꊂꉬ","ꆏꊂꃘ"],["ꋍꆪ","ꑍꆪ","ꌕꆪ","ꇖꆪ","ꉬꆪ","ꃘꆪ","ꏃꆪ","ꉆꆪ","ꈬꆪ","ꊰꆪ","ꊯꊪꆪ","ꊰꑋꆪ",""],["ꆏ","꒔","ꑍ","ꌕ","ꇖ","ꉬ","ꃘ"],["ꋍꆪ","ꑍꆪ","ꌕꆪ","ꇖꆪ","ꉬꆪ","ꃘꆪ","ꏃꆪ","ꉆꆪ","ꈬꆪ","ꊰꆪ","ꊯꊪꆪ","ꊰꑋꆪ",""],["ꋍꆪ","ꑍꆪ","ꌕꆪ","ꇖꆪ","ꉬꆪ","ꃘꆪ","ꏃꆪ","ꉆꆪ","ꈬꆪ","ꊰꆪ","ꊯꊪꆪ","ꊰꑋꆪ",""],":","ꂵꆪꈌꈐ","ꂵꆪꈌꉈ","yyyy'ꈎ' M'ꆪ' d'ꑍ' H:mm:ss","tt h:mm","H:mm:ss","yyyy'ꈎ' M'ꆪ'")),this._cultures.arn=new r("arn",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"$",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","","","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures.moh=new r("moh",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],0,0,"$",2,".",",",[3,0],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Awentatokentì:ke","Awentataón'ke","Ratironhia'kehronòn:ke","Soséhne","Okaristiiáhne","Ronwaia'tanentaktonhne","Entákta"],["Tsothohrkó:Wa","Enniska","Enniskó:Wa","Onerahtókha","Onerahtohkó:Wa","Ohiari:Ha","Ohiarihkó:Wa","Seskéha","Seskehkó:Wa","Kenténha","Kentenhkó:Wa","Tsothóhrha",""],["S","M","T","W","T","F","S"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["Tsothohrkó:Wa","Enniska","Enniskó:Wa","Onerahtókha","Onerahtohkó:Wa","Ohiari:Ha","Ohiarihkó:Wa","Seskéha","Seskehkó:Wa","Kenténha","Kentenhkó:Wa","Tsothóhrha",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.br=new r("br",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Anfin","+","NkN","-Anfin","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["Sul","Lun","Meurzh","Merc'her","Yaou","Gwener","Sadorn"],["Genver","C'hwevrer","Meurzh","Ebrel","Mae","Mezheven","Gouere","Eost","Gwengolo","Here","Du","Kerzu",""],["Su","Lu","Mz","Mc","Ya","Gw","Sa"],["Gen.","C'hwe.","Meur.","Ebr.","Mae","Mezh.","Goue.","Eost","Gwen.","Here","Du","Kzu",""],["Genver","C'hwevrer","Meurzh","Ebrel","Mae","Mezheven","Gouere","Eost","Gwengolo","Here","Du","Kerzu",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures[""]=new r("",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"¤",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("MM/dd/yyyy","/","dddd, dd MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","yyyy MMMM")),this._cultures.ug=new r("ug",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,0,"¥",2,".",",",[3],1,1,"%","‰","مۇسبەت چەكسىزلىك","+","سان ئەمەس","مەنپىي چەكسىزلىك","-"),new t.DateTimeFormatInfo("yyyy-M-d","-","yyyy-'يىلى' MMMM d-'كۈنى،'",["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي",""],["ي","د","س","چ","پ","ج","ش"],["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي",""],["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي",""],":","چۈشتىن بۇرۇن","چۈشتىن كېيىن","yyyy-'يىلى' MMMM d-'كۈنى،' H:mm:ss","H:mm","H:mm:ss","yyyy-'يىلى' MMMM")),this._cultures.mi=new r("mi",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"$",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd MMMM, yyyy",["Rātapu","Rāhina","Rātū","Rāapa","Rāpare","Rāmere","Rāhoroi"],["Kohi-tātea","Hui-tanguru","Poutū-te-rangi","Paenga-whāwhā","Haratua","Pipiri","Hōngongoi","Here-turi-kōkā","Mahuru","Whiringa-ā-nuku","Whiringa-ā-rangi","Hakihea",""],["Ta","Hi","Tū","Aa","Pa","Me","Ho"],["Kohi","Hui","Pou","Pae","Hara","Pipi","Hōngo","Here","Mahu","Nuku","Rangi","Haki",""],["Kohi-tātea","Hui-tanguru","Poutū-te-rangi","Paenga-whāwhā","Haratua","Pipiri","Hōngongoi","Here-turi-kōkā","Mahuru","Whiringa-ā-nuku","Whiringa-ā-rangi","Hakihea",""],":","a.m.","p.m.","dddd, dd MMMM, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yy")),this._cultures.oc=new r("oc",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infinit","+","Non Numeric","-Infinit","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd,' lo 'd MMMM' de 'yyyy",["dimenge","diluns","dimars","dimècres","dijòus","divendres","dissabte"],["genier","febrier","març","abril","mai","junh","julh","agost","setembre","octobre","novembre","desembre",""],["di","lu","ma","mè","jò","ve","sa"],["gen.","feb.","mar.","abr.","mai.","jun.","jul.","ag.","set.","oct.","nov.","des.",""],["de genier","de febrier","de març","d'abril","de mai","de junh","de julh","d'agost","de setembre","d'octobre","de novembre","de desembre",""],":","","","dddd,' lo 'd MMMM' de 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.co=new r("co",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infinitu","+","Mica numericu","-Infinitu","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dumenica","luni","marti","mercuri","ghjovi","venderi","sabbatu"],["ghjennaghju","ferraghju","marzu","aprile","maghju","ghjunghju","lugliu","aostu","settembre","ottobre","nuvembre","dicembre",""],["du","lu","ma","me","gh","ve","sa"],["ghje","ferr","marz","apri","magh","ghju","lugl","aost","sett","otto","nuve","dice",""],["ghjennaghju","ferraghju","marzu","aprile","maghju","ghjunghju","lugliu","aostu","settembre","ottobre","nuvembre","dicembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.gsw=new r("gsw",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Unendlich","+","Ohne Nummer","-Unendlich","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["Sundàà","Mondàà","Dienschdàà","Mittwuch","Dunnerschdàà","Fridàà","Sàmschdàà"],["Jänner","Feverje","März","Àpril","Mai","Jüni","Jüli","Augscht","September","Oktower","Nowember","Dezember",""],["Su","Mo","Di","Mi","Du","Fr","Sà"],["Jän.","Fev.","März","Apr.","Mai","Jüni","Jüli","Aug.","Sept.","Okt.","Now.","Dez.",""],["Jänner","Feverje","März","Àpril","Mai","Jüni","Jüli","Augscht","September","Oktower","Nowember","Dezember",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),
this._cultures.sah=new r("sah",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"₽",2,","," ",[3],1,1,"%","‰","бесконечность","+","NAN","-бесконечность","-"),new t.DateTimeFormatInfo("MM.dd.yyyy",".","MMMM d yyyy 'с.'",["баскыһыанньа","бэнидиэнньик","оптуорунньук","сэрэдэ","чэппиэр","бээтинсэ","субуота"],["Тохсунньу","Олунньу","Кулун тутар","Муус устар","Ыам ыйа","Бэс ыйа","От ыйа","Атырдьах ыйа","Балаҕан ыйа","Алтынньы","Сэтинньи","Ахсынньы",""],["Бс","Бн","Оп","Ср","Чп","Бт","Сб"],["тхс","олн","кул","мст","ыам","бэс","отй","атр","блҕ","алт","стн","ахс",""],["тохсунньу","олунньу","кулун тутар","муус устар","ыам ыйын","бэс ыйын","от ыйын","атырдьах ыйын","балаҕан ыйын","алтынньы","сэтинньи","ахсынньы",""],":","","","MMMM d yyyy 'с.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy 'с.'")),this._cultures.qut=new r("qut",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"Q",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["juq'ij","kaq'ij","oxq'ij","kajq'ij","joq'ij","waqq'ij","wuqq'ij"],["nab'e ik'","ukab' ik'","rox ik'","ukaj ik'","uro' ik'","uwaq ik'","uwuq ik'","uwajxaq ik'","ub'elej ik'","ulaj ik'","ujulaj ik'","ukab'laj ik'",""],["ju","ka","ox","ka","jo","wa","wu"],["nab'e","ukab","rox","ukaj","uro","uwaq","uwuq","uwajxaq","ub'elej","ulaj","ujulaj","ukab'laj",""],["nab'e ik'","ukab' ik'","rox ik'","ukaj ik'","uro' ik'","uwaq ik'","uwuq ik'","uwajxaq ik'","ub'elej ik'","ulaj ik'","ujulaj ik'","ukab'laj ik'",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures.rw=new r("rw",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],2,2,"RWF",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Ku wa mbere","Ku wa kabiri","Ku wa gatatu","Ku wa kane","Ku wa gatanu","Ku wa gatandatu","Ku cyumweru"],["Mutarama","Gashyantare","Werurwe","Mata","Gicurasi","Kamena","Nyakanga","Kanama","Nzeli","Ukwakira","Ugushyingo","Ukuboza",""],["mb","ka","ga","ka","ga","ga","cy"],["Mut","Gas","Wer","Mat","Gic","Kam","Nya","Kan","Nze","Ukwa","Ugu","Uku",""],["Mutarama","Gashyantare","Werurwe","Mata","Gicurasi","Kamena","Nyakanga","Kanama","Nzeli","Ukwakira","Ugushyingo","Ukuboza",""],":","saa moya z.m.","saa moya z.n.","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.wo=new r("wo",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"XOF",2,","," ",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.prs=new r("prs",new t.NumberFormatInfo(",",2,".",[3],3,2,".",",",[3],3,0,"؋",2,",",".",[3],4,2,"%","‰","∞","+","غ ع","-∞","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MM/yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["ح","ن","ث","ر","خ","ج","س"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],":","غ.م","غ.و","dd/MM/yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures.gd=new r("gd",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"£",2,".",",",[3],0,0,"%","‰","Neo-chrìochnachd","+","NaN","-Neo-chrìochnachd","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd",""],["D","L","M","C","A","H","S"],["Fao","Gea","Màr","Gib","Cèi","Ògm","Iuc","Lùn","Sul","Dàm","Sam","Dùb",""],["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd",""],":","m","f","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ar-SA"]=new r("ar-SA",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"ر.س.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MMMM/yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["ح","ن","ث","ر","خ","ج","س"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],":","ص","م","dd/MMMM/yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["bg-BG"]=new r("bg-BG",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"лв.",2,","," ",[3],0,0,"%","‰","+ безкрайност","+","NaN","- безкрайност","-"),new t.DateTimeFormatInfo("d.M.yyyy 'г.'",".","dd MMMM yyyy 'г.'",["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"],["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември",""],["н","п","в","с","ч","п","с"],["ян","февр","март","апр","май","юни","юли","авг","септ","окт","ноември","дек",""],["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември",""],":","","","dd MMMM yyyy 'г.' HH:mm:ss 'ч.'","HH:mm 'ч.'","HH:mm:ss 'ч.'","MMMM yyyy 'г.'")),this._cultures["ca-ES"]=new r("ca-ES",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinit","+","NeuN","-Infinit","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d' / 'MMMM' / 'yyyy",["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre",""],["dg","dl","dt","dc","dj","dv","ds"],["gen","feb","març","abr","maig","juny","jul","ag","set","oct","nov","des",""],["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre",""],":","","","dddd, d' / 'MMMM' / 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM' / 'yyyy")),this._cultures["zh-TW"]=new r("zh-TW",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"NT$",2,".",",",[3],1,1,"%","‰","正無窮大","+","不是一個數字","負無窮大","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' tt hh:mm:ss","tt hh:mm","tt hh:mm:ss","yyyy'年'M'月'")),this._cultures["cs-CZ"]=new r("cs-CZ",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"Kč",2,","," ",[3],1,1,"%","‰","+nekonečno","+","Není číslo","-nekonečno","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec",""],["ne","po","út","st","čt","pá","so"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince",""],":","dop.","odp.","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["da-DK"]=new r("da-DK",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"kr.",2,",",".",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","d. MMMM yyyy",["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december",""],["sø","ma","ti","on","to","fr","lø"],["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["de-DE"]=new r("de-DE",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","+unendlich","+","n. def.","-unendlich","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, d. MMMM yyyy",["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mo","Di","Mi","Do","Fr","Sa"],["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd, d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["el-GR"]=new r("el-GR",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","Άπειρο","+","μη αριθμός","-Άπειρο","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, d MMMM yyyy",["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος",""],["Κυ","Δε","Τρ","Τε","Πε","Πα","Σά"],["Ιαν","Φεβ","Μαρ","Απρ","Μαϊ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ",""],["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου",""],":","πμ","μμ","dddd, d MMMM yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures["en-US"]=new r("en-US",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["fi-FI"]=new r("fi-FI",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM'ta 'yyyy",["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu",""],["su","ma","ti","ke","to","pe","la"],["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu",""],["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu",""],":","","","d. MMMM'ta 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["fr-FR"]=new r("fr-FR",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["he-IL"]=new r("he-IL",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"₪",2,".",",",[3],1,1,"%","‰","אינסוף חיובי","+","לא מספר","אינסוף שלילי","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd dd MMMM yyyy",["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","שבת"],["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר",""],["א","ב","ג","ד","ה","ו","ש"],["ינו","פבר","מרץ","אפר","מאי","יונ","יול","אוג","ספט","אוק","נוב","דצמ",""],["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר",""],":","AM","PM","dddd dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["hu-HU"]=new r("hu-HU",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"Ft",2,","," ",[3],0,0,"%","‰","végtelen","+","nem szám","negatív végtelen","-"),new t.DateTimeFormatInfo("yyyy.MM.dd.",".","yyyy. MMMM d.",["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december",""],["V","H","K","Sze","Cs","P","Szo"],["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec.",""],["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december",""],":","de.","du.","yyyy. MMMM d. H:mm:ss","H:mm","H:mm:ss","yyyy. MMMM")),this._cultures["is-IS"]=new r("is-IS",new t.NumberFormatInfo(",",2,".",[3],1,0,",",".",[3],8,3,"kr.",2,",",".",[3],1,1,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"],["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember",""],["su","má","þr","mi","fi","fö","la"],["jan.","feb.","mar.","apr.","maí","jún.","júl.","ágú.","sep.","okt.","nóv.","des.",""],["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["it-IT"]=new r("it-IT",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"€",2,",",".",[3],1,1,"%","‰","+Infinito","+","Non un numero reale","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],["do","lu","ma","me","gi","ve","sa"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic",""],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ja-JP"]=new r("ja-JP",new t.NumberFormatInfo(".",2,",",[3],1,0,".",",",[3],1,0,"¥",2,".",",",[3],1,1,"%","‰","+∞","+","NaN (非数値)","-∞","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","yyyy'年'M'月'd'日'",["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],["日","月","火","水","木","金","土"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],":","午前","午後","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures["ko-KR"]=new r("ko-KR",new t.NumberFormatInfo(".",2,",",[3],1,0,".",",",[3],1,0,"₩",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","yyyy'년' M'월' d'일' dddd",["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""],["일","월","화","수","목","금","토"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""],":","오전","오후","yyyy'년' M'월' d'일' dddd tt h:mm:ss","tt h:mm","tt h:mm:ss","yyyy'년' M'월'")),this._cultures["nl-NL"]=new r("nl-NL",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"€",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d-M-yyyy","-","dddd d MMMM yyyy",["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],["zo","ma","di","wo","do","vr","za"],["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],":","","","dddd d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["nb-NO"]=new r("nb-NO",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d. MMMM yyyy",["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],["sø","ma","ti","on","to","fr","lø"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["pl-PL"]=new r("pl-PL",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"zł",2,","," ",[3],1,1,"%","‰","+nieskończoność","+","nie jest liczbą","-nieskończoność","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","d MMMM yyyy",["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień",""],["N","Pn","Wt","Śr","Cz","Pt","So"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru",""],["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia",""],":","","","d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["pt-BR"]=new r("pt-BR",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"R$",2,",",".",[3],1,1,"%","‰","+Infinito","+","NaN (Não é um número)","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d' de 'MMMM' de 'yyyy",["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],["D","S","T","Q","Q","S","S"],["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],":","","","dddd, d' de 'MMMM' de 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM' de 'yyyy")),this._cultures["rm-CH"]=new r("rm-CH",new t.NumberFormatInfo(".",2,"'",[3],1,2,".","'",[3],2,2,"fr.",2,".","'",[3],1,1,"%","‰","+infinit","+","betg def.","-infinit","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d MMMM yyyy",["dumengia","glindesdi","mardi","mesemna","gievgia","venderdi","sonda"],["schaner","favrer","mars","avrigl","matg","zercladur","fanadur","avust","settember","october","november","december",""],["du","gli","ma","me","gie","ve","so"],["schan","favr","mars","avr","matg","zercl","fan","avust","sett","oct","nov","dec",""],["schaner","favrer","mars","avrigl","matg","zercladur","fanadur","avust","settember","october","november","december",""],":","","","dddd, d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ro-RO"]=new r("ro-RO",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"lei",2,",",".",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["duminică","luni","marţi","miercuri","joi","vineri","sâmbătă"],["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie",""],["D","L","Ma","Mi","J","V","S"],["ian.","feb.","mar.","apr.","mai.","iun.","iul.","aug.","sep.","oct.","nov.","dec.",""],["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie",""],":","","","d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ru-RU"]=new r("ru-RU",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₽",2,","," ",[3],1,1,"%","‰","бесконечность","+","NaN","-бесконечность","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy 'г.'",["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек",""],["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря",""],":","","","d MMMM yyyy 'г.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["hr-HR"]=new r("hr-HR",new t.NumberFormatInfo(",",2,".",[3],2,2,",",".",[3],8,3,"kn",2,",",".",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy.",".","d. MMMM yyyy.",["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac",""],["ne","po","ut","sr","če","pe","su"],["sij","vlj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro",""],["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca",""],":","","","d. MMMM yyyy. H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["sk-SK"]=new r("sk-SK",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],1,1,"%","‰","+nekonečno","+","Nie je číslo","-nekonečno","-"),new t.DateTimeFormatInfo("d. M. yyyy",". ","d. MMMM yyyy",["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december",""],["ne","po","ut","st","št","pi","so"],["1","2","3","4","5","6","7","8","9","10","11","12",""],["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["sq-AL"]=new r("sq-AL",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],5,1,"Lek",2,",",".",[3],0,0,"%","‰","infinit","+","NaN","-infinit","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","yyyy-MM-dd",["e diel","e hënë","e martë","e mërkurë","e enjte","e premte","e shtunë"],["janar","shkurt","mars","prill","maj","qershor","korrik","gusht","shtator","tetor","nëntor","dhjetor",""],["Di","Hë","Ma","Më","En","Pr","Sh"],["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gsh","Sht","Tet","Nën","Dhj",""],["janar","shkurt","mars","prill","maj","qershor","korrik","gusht","shtator","tetor","nëntor","dhjetor",""],":","PD","MD","yyyy-MM-dd h:mm:ss.tt","h:mm.tt","h:mm:ss.tt","yyyy-MM")),this._cultures["sv-SE"]=new r("sv-SE",new t.NumberFormatInfo(",",2," ",[3],1,2,",",".",[3],8,3,"kr",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","'den 'd MMMM yyyy",["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],["sö","må","ti","on","to","fr","lö"],["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],":","","","'den 'd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["th-TH"]=new r("th-TH",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"฿",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","d MMMM yyyy",["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม",""],["อ","จ","อ","พ","พ","ศ","ส"],["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.",""],["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม",""],":","AM","PM","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["tr-TR"]=new r("tr-TR",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"₺",2,",",".",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dd MMMM yyyy dddd",["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık",""],["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara",""],["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık",""],":","","","dd MMMM yyyy dddd HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ur-PK"]=new r("ur-PK",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],3,0,"Rs",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["اتوار","پير","منگل","بدھ","جمعرات","جمعه","هفته"],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر",""],["ا","پ","م","ب","ج","ج","ه"],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر",""],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر",""],":","AM","PM","dd MMMM, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["id-ID"]=new r("id-ID",new t.NumberFormatInfo(",",2,".",[3],1,0,",",".",[3],0,0,"Rp",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember",""],["M","S","S","R","K","J","S"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agust","Sep","Okt","Nop","Des",""],["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember",""],":","","","dd MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["uk-UA"]=new r("uk-UA",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"₴",2,","," ",[3],1,1,"%","‰","безмежність","+","NaN","-безмежність","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy' р.'",["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"],["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень",""],["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру",""],["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня",""],":","","","d MMMM yyyy' р.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy' р.'")),this._cultures["be-BY"]=new r("be-BY",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"р.",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"],["Студзень","Люты","Сакавік","Красавік","Май","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Снежань",""],["нд","пн","аў","ср","чц","пт","сб"],["Сту","Лют","Сак","Кра","Май","Чэр","Ліп","Жні","Вер","Кас","Ліс","Сне",""],["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["sl-SI"]=new r("sl-SI",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","neskončnost","+","NaN","-neskončnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"],["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december",""],["ne","po","to","sr","če","pe","so"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["et-EE"]=new r("et-EE",new t.NumberFormatInfo(",",2," ",[3],1,2,"."," ",[3],8,3,"€",2,","," ",[3],1,1,"%","‰","plusslõpmatus","+","avaldamatu","miinuslõpmatus","-"),new t.DateTimeFormatInfo("d.MM.yyyy",".","d. MMMM yyyy'. a.'",["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"],["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember",""],["P","E","T","K","N","R","L"],["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets",""],["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember",""],":","EL","PL","d. MMMM yyyy'. a.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy'. a.'")),this._cultures["lv-LV"]=new r("lv-LV",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],9,2,"€",2,","," ",[3],1,1,"%","‰","bezgalība","+","NaN","-bezgalība","-"),new t.DateTimeFormatInfo("yyyy.MM.dd.",".","dddd, yyyy'. gada 'd. MMMM",["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris",""],["sv","pr","ot","tr","ce","pk","se"],["jan","feb","mar","apr","mai","jūn","jūl","aug","sep","okt","nov","dec",""],["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī",""],":","","","dddd, yyyy'. gada 'd. MMMM H:mm:ss","H:mm","H:mm:ss","yyyy. MMMM")),this._cultures["lt-LT"]=new r("lt-LT",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","begalybė","+","NaN","-begalybė","-"),new t.DateTimeFormatInfo("yyyy.MM.dd",".","yyyy 'm.' MMMM d 'd.'",["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis",""],["S","P","A","T","K","Pn","Š"],["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd",""],["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio",""],":","","","yyyy 'm.' MMMM d 'd.' HH:mm:ss","HH:mm","HH:mm:ss","yyyy 'm.' MMMM")),this._cultures["tg-Cyrl-TJ"]=new r("tg-Cyrl-TJ",new t.NumberFormatInfo(",",2," ",[3,0],1,2,";"," ",[3,0],8,3,"т.р.",2,","," ",[3,0],1,1,"%","‰","бесконечность","+","NaN","-бесконечность","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","d MMMM yyyy",["Яш","Душанбе","Сешанбе","Чоршанбе","Панҷшанбе","Ҷумъа","Шанбе"],["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр",""],["Яш","Дш","Сш","Чш","Пш","Ҷм","Шн"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек",""],["январи","феврали","марти","апрели","маи","июни","июли","августи","сентябри","октябри","ноябри","декабри",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["fa-IR"]=new r("fa-IR",new t.NumberFormatInfo(".",2,",",[3],3,2,"/",",",[3],3,2,"ريال",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("MM/dd/yyyy","/","dddd, MMMM dd, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],":","ق.ظ","ب.ظ","dddd, MMMM dd, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["vi-VN"]=new r("vi-VN",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"₫",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],["Tháng Giêng","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai",""],["C","H","B","T","N","S","B"],["Thg1","Thg2","Thg3","Thg4","Thg5","Thg6","Thg7","Thg8","Thg9","Thg10","Thg11","Thg12",""],["Tháng Giêng","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai",""],":","SA","CH","dd MMMM yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures["hy-AM"]=new r("hy-AM",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],8,3,"դր.",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM, yyyy",["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","ՈՒրբաթ","Շաբաթ"],["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր",""],["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],["ՀՆՎ","ՓՏՎ","ՄՐՏ","ԱՊՐ","ՄՅՍ","ՀՆՍ","ՀԼՍ","ՕԳՍ","ՍԵՊ","ՀՈԿ","ՆՈՅ","ԴԵԿ",""],["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր",""],":","","","d MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["az-Latn-AZ"]=new r("az-Latn-AZ",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₼",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"],["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avgust","Sentyabr","Oktyabr","Noyabr","Dekabr",""],["B","Be","Ça","Ç","Ca","C","Ş"],["Yan","Fev","Mar","Apr","May","İyun","İyul","Avg","Sen","Okt","Noy","Dek",""],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["eu-ES"]=new r("eu-ES",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinitu","+","EdZ","-Infinitu","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dddd, yyyy.'eko' MMMM'k 'd",["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"],["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua",""],["ig","al","as","az","og","or","lr"],["urt.","ots.","mar.","api.","mai.","eka.","uzt.","abu.","ira.","urr.","aza.","abe.",""],["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua",""],":","","","dddd, yyyy.'eko' MMMM'k 'd H:mm:ss","HH:mm","H:mm:ss","yyyy.'eko' MMMM")),this._cultures["hsb-DE"]=new r("hsb-DE",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","+njekónčne","+","njedefinowane","-njekónčne","-"),new t.DateTimeFormatInfo("d. M. yyyy",". ","dddd, 'dnja' d. MMMM yyyy",["njedźela","póndźela","wutora","srjeda","štwórtk","pjatk","sobota"],["januar","februar","měrc","apryl","meja","junij","julij","awgust","september","oktober","nowember","december",""],["n","p","w","s","š","p","s"],["jan","feb","měr","apr","mej","jun","jul","awg","sep","okt","now","dec",""],["januara","februara","měrca","apryla","meje","junija","julija","awgusta","septembra","oktobra","nowembra","decembra",""],":","","","dddd, 'dnja' d. MMMM yyyy H:mm:ss","H.mm 'hodź.'","H:mm:ss","MMMM yyyy")),this._cultures["mk-MK"]=new r("mk-MK",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"ден.",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, dd MMMM yyyy",["недела","понеделник","вторник","среда","четврток","петок","сабота"],["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември",""],["не","по","вт","ср","че","пе","са"],["јан","фев","мар","апр","мај","јун","јул","авг","сеп","окт","ное","дек",""],["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември",""],":","","","dddd, dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["tn-ZA"]=new r("tn-ZA",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["Latshipi","Mosupologo","Labobedi","Laboraro","Labone","Labotlhano","Lamatlhatso"],["Ferikgong","Tlhakole","Mopitloe","Moranang","Motsheganong","Seetebosigo","Phukwi","Phatwe","Lwetse","Diphalane","Ngwanatsele","Sedimothole",""],["Lp","Ms","Lb","Lr","Ln","Lt","Lm"],["Fer.","Tlhak.","Mop.","Mor.","Motsh.","Seet.","Phukw.","Phatw.","Lwets.","Diph.","Ngwan.","Sed.",""],["Ferikgong","Tlhakole","Mopitloe","Moranang","Motsheganong","Seetebosigo","Phukwi","Phatwe","Lwetse","Diphalane","Ngwanatsele","Sedimothole",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["xh-ZA"]=new r("xh-ZA",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["iCawa","uMvulo","uLwesibini","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],["Mqungu","Mdumba","Kwindla","Tshazimpuzi","Canzibe","Silimela","Khala","Thupha","Msintsi","Dwarha","Nkanga","Mnga",""],["Ca","Mv","Lb","Lt","Ln","Lh","Mg"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["Mqungu","Mdumba","Kwindla","Tshazimpuzi","Canzibe","Silimela","Khala","Thupha","Msintsi","Dwarha","Nkanga","Mnga",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["zu-ZA"]=new r("zu-ZA",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["iSonto","uMsombuluko","uLwesibili","uLwesithathu","uLwesine","uLwesihlanu","uMgqibelo"],["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Mas.","Nhlo.","Nda.","Mba.","Nhla.","Nhlang.","Ntu.","Ncwa.","Man.","Mfu.","Lwe.","Zib.",""],["uMasingana","uNhlolanja","uNdasa","uMbaso","uNhlaba","uNhlangulana","uNtulikazi","uNcwaba","uMandulo","uMfumfu","uLwezi","uZibandlela",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["af-ZA"]=new r("af-ZA",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember",""],["So","Ma","Di","Wo","Do","Vr","Sa"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des",""],["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["ka-GE"]=new r("ka-GE",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₾",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","yyyy 'წლის' dd MM, dddd",["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"],["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი",""],["კ","ო","ს","ო","ხ","პ","შ"],["იან","თებ","მარ","აპრ","მაის","ივნ","ივლ","აგვ","სექ","ოქტ","ნოემ","დეკ",""],["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი",""],":","","","yyyy 'წლის' dd MM, dddd H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["fo-FO"]=new r("fo-FO",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"kr.",2,",",".",[3],1,1,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","d. MMMM yyyy",["sunnudagur","mánadagur","týsdagur","mikudagur","hósdagur","fríggjadagur","leygardagur"],["januar","februar","mars","apríl","mai","juni","juli","august","september","oktober","november","desember",""],["su","má","tý","mi","hó","fr","ley"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],["januar","februar","mars","apríl","mai","juni","juli","august","september","oktober","november","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["hi-IN"]=new r("hi-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["र","स","म","ब","ग","श","श"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],":","पूर्वाह्न","अपराह्न","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["mt-MT"]=new r("mt-MT",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"€",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, d' ta' 'MMMM yyyy",["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"],["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awissu","Settembru","Ottubru","Novembru","Diċembru",""],["I","I","I","L","I","I","I"],["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Awi","Set","Ott","Nov","Diċ",""],["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awissu","Settembru","Ottubru","Novembru","Diċembru",""],":","AM","PM","dddd, d' ta' 'MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["se-NO"]=new r("se-NO",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","MMMM d'. b. 'yyyy",["sotnabeaivi","vuossárga","maŋŋebárga","gaskavahkku","duorastat","bearjadat","lávvardat"],["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu",""],["s","m","d","g","d","b","l"],["ođđj","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov",""],["ođđajagimánu","guovvamánu","njukčamánu","cuoŋománu","miessemánu","geassemánu","suoidnemánu","borgemánu","čakčamánu","golggotmánu","skábmamánu","juovlamánu",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ms-MY"]=new r("ms-MY",new t.NumberFormatInfo(".",2,",",[3],1,0,".",",",[3],0,0,"RM",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember",""],["A","I","S","R","K","J","S"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogos","Sept","Okt","Nov","Dis",""],["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember",""],":","","","dd MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["kk-KZ"]=new r("kk-KZ",new t.NumberFormatInfo(",",2," ",[3],1,2,"-"," ",[3],1,0,"Т",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy 'ж.'",["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"],["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан",""],["Жк","Дс","Сс","Ср","Бс","Жм","Сн"],["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел",""],["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан",""],":","","","d MMMM yyyy 'ж.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["ky-KG"]=new r("ky-KG",new t.NumberFormatInfo(",",2," ",[3],1,2,"-"," ",[3],8,3,"сом",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","d'-'MMMM yyyy'-ж.'",["Жекшемби","Дүйшөмбү","Шейшемби","Шаршемби","Бейшемби","Жума","Ишемби"],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],["Жш","Дш","Шш","Шр","Бш","Жм","Иш"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек",""],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],":","","","d'-'MMMM yyyy'-ж.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy'-ж.'")),this._cultures["sw-KE"]=new r("sw-KE",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"S",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"],["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Decemba",""],["P","T","N","T","A","I","M"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ago","Sep","Okt","Nov","Dec",""],["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Decemba",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["tk-TM"]=new r("tk-TM",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"m.",2,","," ",[3],1,1,"%","‰","üznüksizlik","+","NaN","-üznüksizlik","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","yyyy 'ý.' MMMM d",["Duşenbe","Sişenbe","Çarşenbe","Penşenbe","Anna","Şenbe","Ýekşenbe"],["Ýanwar","Fewral","Mart","Aprel","Maý","lýun","lýul","Awgust","Sentýabr","Oktýabr","Noýabr","Dekabr",""],["D","S","Ç","P","A","Ş","Ý"],["Ýan","Few","Mart","Apr","Maý","lýun","lýul","Awg","Sen","Okt","Not","Dek",""],["Ýanwar","Fewral","Mart","Aprel","Maý","lýun","lýul","Awgust","Sentýabr","Oktýabr","Noýabr","Dekabr",""],":","","","yyyy 'ý.' MMMM d H:mm:ss","H:mm","H:mm:ss","yyyy 'ý.' MMMM")),this._cultures["uz-Latn-UZ"]=new r("uz-Latn-UZ",new t.NumberFormatInfo(",",2," ",[3],1,0,","," ",[3],8,3,"so'm",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM yyyy","/","yyyy 'yil' d-MMMM",["yakshanba","dushanba","seshanba","chorshanba","payshanba","juma","shanba"],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],["ya","d","s","ch","p","j","sh"],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],":","","","yyyy 'yil' d-MMMM HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["tt-RU"]=new r("tt-RU",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₽",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["Якшәмбе","Дүшәмбе","Сишәмбе","Чәршәмбе","Пәнҗешәмбе","Җомга","Шимбә"],["Гыйнвар","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],["Я","Д","С","Ч","П","Җ","Ш"],["Гыйн.","Фев.","Мар.","Апр.","Май","Июнь","Июль","Авг.","Сен.","Окт.","Нояб.","Дек.",""],["Гыйнварның","Февральнең","Мартның","Апрельнең","Майның","Июньнең","Июльнең","Августның","Сентябрьның","Октябрьның","Ноябрьның","Декабрьның",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["bn-IN"]=new r("bn-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",""],["র","স","ম","ব","ব","শ","শ"],["জানু.","ফেব্রু.","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগ.","সেপ্টে.","অক্টো.","নভে.","ডিসে.",""],["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",""],".","পুর্বাহ্ন","অপরাহ্ন","dd MMMM yyyy HH.mm.ss","HH.mm","HH.mm.ss","MMMM, yyyy")),this._cultures["pa-IN"]=new r("pa-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy dddd",["ਐਤਵਾਰ","ਸੋਮਵਾਰ","ਮੰਗਲਵਾਰ","ਬੁੱਧਵਾਰ","ਵੀਰਵਾਰ","ਸ਼ੁੱਕਰਵਾਰ","ਸ਼ਨਿੱਚਰਵਾਰ"],["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ",""],["ਐ","ਸ","ਮ","ਬ","ਵ","ਸ਼","ਸ਼"],["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ",""],["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ",""],":","ਸਵੇਰ","ਸ਼ਾਮ","dd MMMM yyyy dddd tt hh:mm:ss","tt hh:mm","tt hh:mm:ss","MMMM, yyyy")),this._cultures["gu-IN"]=new r("gu-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"],["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટેમ્બર","ઑક્ટ્બર","નવેમ્બર","ડિસેમ્બર",""],["ર","સ","મ","બ","ગ","શ","શ"],["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઑક્ટો","નવે","ડિસે",""],["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટેમ્બર","ઑક્ટ્બર","નવેમ્બર","ડિસેમ્બર",""],":","પૂર્વ મધ્યાહ્ન","ઉત્તર મધ્યાહ્ન","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["or-IN"]=new r("or-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ରବିବାର","ସୋମବାର","ମଙ୍ଗଳବାର","ବୁଧବାର","ଗୁରୁବାର","ଶୁକ୍ରବାର","ଶନିବାର"],["ଜାନୁୟାରୀ","ଫ୍ରେବୃୟାରୀ","ମାର୍ଚ୍ଚ","ଏପ୍ରିଲ୍‌","ମେ","ଜୁନ୍‌","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","(ଡିସେମ୍ବର",""],["ର","ସୋ","ମ","ବୁ","ଗୁ","ଶୁ","ଶ"],["ଜାନୁୟାରୀ","ଫ୍ରେବୃୟାରୀ","ମାର୍ଚ୍ଚ","ଏପ୍ରିଲ୍‌","ମେ","ଜୁନ୍‌","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","(ଡିସେମ୍ବର",""],["ଜାନୁୟାରୀ","ଫ୍ରେବୃୟାରୀ","ମାର୍ଚ୍ଚ","ଏପ୍ରିଲ୍‌","ମେ","ଜୁନ୍‌","ଜୁଲାଇ","ଅଗଷ୍ଟ","ସେପ୍ଟେମ୍ବର","ଅକ୍ଟୋବର","ନଭେମ୍ବର","(ଡିସେମ୍ବର",""],":","AM","PM","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["ta-IN"]=new r("ta-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["ஞாயிற்றுக்கிழமை","திங்கள்கிழமை","செவ்வாய்கிழமை","புதன்கிழமை","வியாழக்கிழமை","வெள்ளிக்கிழமை","சனிக்கிழமை"],["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்",""],["ஞா","தி","செ","பு","வி","வெ","ச"],["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்",""],["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்",""],":","காலை","மாலை","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["te-IN"]=new r("te-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"],["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""],["ఆ","సో","మం","బు","గు","శు","శ"],["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""],["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జూలై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్",""],":","పూర్వాహ్న","అపరాహ్న","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["kn-IN"]=new r("kn-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ"],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಎಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್",""],["ರ","ಸ","ಮ","ಬ","ಗ","ಶ","ಶ"],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಎಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್",""],["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಎಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್",""],":","ಪೂರ್ವಾಹ್ನ","ಅಪರಾಹ್ನ","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["ml-IN"]=new r("ml-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["ഞായറാഴ്ച","തിങ്കളാഴ്ച","ചൊവ്വാഴ്ച","ബുധനാഴ്ച","വ്യാഴാഴ്ച","വെള്ളിയാഴ്ച","ശനിയാഴ്ച"],["ജനുവരി","ഫെബ്റുവരി","മാറ്ച്ച്","ഏപ്റില്","മെയ്","ജൂണ്","ജൂലൈ","ഓഗസ്ററ്","സെപ്ററംബറ്","ഒക്ടോബറ്","നവംബറ്","ഡിസംബറ്",""],["ഞ","ത","ച","ബ","വ","വെ","ശ"],["ജനുവരി","ഫെബ്റുവരി","മാറ്ച്ച്","ഏപ്റില്","മെയ്","ജൂണ്","ജൂലൈ","ഓഗസ്ററ്","സെപ്ററംബറ്","ഒക്ടോബറ്","നവംബറ്","ഡിസംബറ്",""],["ജനുവരി","ഫെബ്റുവരി","മാറ്ച്ച്","ഏപ്റില്","മെയ്","ജൂണ്","ജൂലൈ","ഓഗസ്ററ്","സെപ്ററംബറ്","ഒക്ടോബറ്","നവംബറ്","ഡിസംബറ്",""],".","AM","PM","dd MMMM yyyy HH.mm.ss","HH.mm","HH.mm.ss","MMMM, yyyy")),this._cultures["as-IN"]=new r("as-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,1,"₹",2,".",",",[3,2],1,1,"%","‰","infinity","+","nan","-infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","yyyy,MMMM dd, dddd",["সোমবাৰ","মঙ্গলবাৰ","বুধবাৰ","বৃহস্পতিবাৰ","শুক্রবাৰ","শনিবাৰ","ৰবিবাৰ"],["জানুৱাৰী","ফেব্রুৱাৰী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগষ্ট","চেপ্টেম্বর","অক্টোবর","নবেম্বর","ডিচেম্বর",""],["সো","ম","বু","বৃ","শু","শ","র"],["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগষ্ট","চেপ্টে","অক্টো","নবে","ডিচে",""],["জানুৱাৰী","ফেব্রুৱাৰী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগষ্ট","চেপ্টেম্বর","অক্টোবর","নবেম্বর","ডিচেম্বর",""],":","ৰাতিপু","আবেলি","yyyy,MMMM dd, dddd tt h:mm:ss","tt h:mm","tt h:mm:ss","MMMM,yy")),this._cultures["mr-IN"]=new r("mr-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["रविवार","सोमवार","मंगळवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोव्हेंबर","डिसेंबर",""],["र","स","म","ब","ग","श","श"],["जाने.","फेब्रु.","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टें.","ऑक्टो.","नोव्हें.","डिसें.",""],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोव्हेंबर","डिसेंबर",""],":","म.पू.","म.नं.","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["sa-IN"]=new r("sa-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy dddd",["रविवासरः","सोमवासरः","मङ्गलवासरः","बुधवासरः","गुरुवासरः","शुक्रवासरः","शनिवासरः"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["र","स","म","ब","ग","श","श"],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],["जनवरी","फरवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितम्बर","अक्तूबर","नवम्बर","दिसम्बर",""],":","पूर्वाह्न","अपराह्न","dd MMMM yyyy dddd HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["mn-MN"]=new r("mn-MN",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"₮",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yy.MM.dd",".","yyyy 'оны' MMMM d",["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"],["1 дүгээр сар","2 дугаар сар","3 дугаар сар","4 дүгээр сар","5 дугаар сар","6 дугаар сар","7 дугаар сар","8 дугаар сар","9 дүгээр сар","10 дугаар сар","11 дүгээр сар","12 дугаар сар",""],["Ня","Да","Мя","Лх","Пү","Ба","Бя"],["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII",""],["1 дүгээр сарын","2 дугаар сарын","3 дугаар сарын","4 дүгээр сарын","5 дугаар сарын","6 дугаар сарын","7 дугаар сарын","8 дугаар сарын","9 дүгээр сарын","10 дугаар сарын","11 дүгээр сарын","12 дугаар сарын",""],":","","","yyyy 'оны' MMMM d H:mm:ss","H:mm","H:mm:ss","yyyy 'он' MMMM")),this._cultures["bo-CN"]=new r("bo-CN",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3,0],2,0,"¥",2,".",",",[3,0],1,1,"%","‰","ཕོ་གྲངས་ཚད་མེད་ཆེ་བ།","+","ཨང་ཀི་མིན་པ།","མོ་གྲངས་ཚད་མེད་ཆུང་བ།","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'ལོའི་ཟླ' M'ཚེས' d",["གཟའ་ཉི་མ།","གཟའ་ཟླ་བ།","གཟའ་མིག་དམར།","གཟའ་ལྷག་པ།","གཟའ་ཕུར་བུ།","གཟའ་པ་སངས།","གཟའ་སྤེན་པ།"],["སྤྱི་ཟླ་དང་པོ།","སྤྱི་ཟླ་གཉིས་པ།","སྤྱི་ཟླ་གསུམ་པ།","སྤྱི་ཟླ་བཞི་པ།","སྤྱི་ཟླ་ལྔ་པ།","སྤྱི་ཟླ་དྲུག་པ།","སྤྱི་ཟླ་བདུན་པ།","སྤྱི་ཟླ་བརྒྱད་པ།","སྤྱི་ཟླ་དགུ་པ།","སྤྱི་ཟླ་བཅུ་པོ།","སྤྱི་ཟླ་བཅུ་གཅིག་པ།","སྤྱི་ཟླ་བཅུ་གཉིས་པ།",""],["༧","༡","༢","༣","༤","༥","༦"],["ཟླ་ ༡","ཟླ་ ༢","ཟླ་ ༣","ཟླ་ ༤","ཟླ་ ༥","ཟླ་ ༦","ཟླ་ ༧","ཟླ་ ༨","ཟླ་ ༩","ཟླ་ ༡༠","ཟླ་ ༡༡","ཟླ་ ༡༢",""],["སྤྱི་ཟླ་དང་པོ།","སྤྱི་ཟླ་གཉིས་པ།","སྤྱི་ཟླ་གསུམ་པ།","སྤྱི་ཟླ་བཞི་པ།","སྤྱི་ཟླ་ལྔ་པ།","སྤྱི་ཟླ་དྲུག་པ།","སྤྱི་ཟླ་བདུན་པ།","སྤྱི་ཟླ་བརྒྱད་པ།","སྤྱི་ཟླ་དགུ་པ།","སྤྱི་ཟླ་བཅུ་པོ།","སྤྱི་ཟླ་བཅུ་གཅིག་པ།","སྤྱི་ཟླ་བཅུ་གཉིས་པ།",""],":","སྔ་དྲོ","ཕྱི་དྲོ","yyyy'ལོའི་ཟླ' M'ཚེས' d HH:mm:ss","HH:mm","HH:mm:ss","yyyy.M")),this._cultures["cy-GB"]=new r("cy-GB",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"£",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"],["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr",""],["Su","Ll","Ma","Me","Ia","Gw","Sa"],["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag",""],["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr",""],":","a.m.","p.m.","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["km-KH"]=new r("km-KH",new t.NumberFormatInfo(".",2,",",[3,0],2,2,".",",",[3],5,1,"៛",2,".",",",[3,0],1,1,"%","‰","អនន្ត","+","NAN","-- អនន្ត","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","d MMMM yyyy",["ថ្ងៃអាទិត្យ","ថ្ងៃច័ន្ទ","ថ្ងៃអង្គារ","ថ្ងៃពុធ","ថ្ងៃព្រហស្បតិ៍","ថ្ងៃសុក្រ","ថ្ងៃសៅរ៍"],["មករា","កុម្ភៈ","មិនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ",""],["អា","ច","អ","ពុ","ព្","សុ","ស"],["១","២","៣","៤","៥","៦","៧","៨","៩","១០","១១","១២",""],["មករា","កុម្ភៈ","មិនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ",""],":","ព្រឹក","ល្ងាច","d MMMM yyyy HH:mm:ss","H:mm tt","HH:mm:ss","'ខែ' MM 'ឆ្នាំ' yyyy")),this._cultures["lo-LA"]=new r("lo-LA",new t.NumberFormatInfo(".",2,",",[3,0],0,2,".",",",[3,0],4,1,"₭",2,".",",",[3,0],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["ວັນອາທິດ","ວັນຈັນ","ວັນອັງຄານ","ວັນພຸດ","ວັນພະຫັດ","ວັນສຸກ","ວັນເສົາ"],["ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ",""],["ອ","ຈ","ອ","ພ","ພ","ສ","ເ"],["ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ",""],["ມັງກອນ","ກຸມພາ","ມີນາ","ເມສາ","ພຶດສະພາ","ມິຖຸນາ","ກໍລະກົດ","ສິງຫາ","ກັນຍາ","ຕຸລາ","ພະຈິກ","ທັນວາ",""],":","ເຊົ້າ","ແລງ","dd MMMM yyyy HH:mm:ss","H:mm tt","HH:mm:ss","MMMM yyyy")),this._cultures["gl-ES"]=new r("gl-ES",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","luns","martes","mércores","xoves","venres","sábado"],["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro",""],["do","lu","ma","mé","xo","ve","sá"],["xan","feb","mar","abr","maio","xuñ","xull","ago","set","out","nov","dec",""],["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures["kok-IN"]=new r("kok-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["आयतार","सोमार","मंगळार","बुधवार","बिरेस्तार","सुक्रार","शेनवार"],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोवेम्बर","डिसेंबर",""],["आ","स","म","ब","ब","स","श"],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोवेम्बर","डिसेंबर",""],["जानेवारी","फेब्रुवारी","मार्च","एप्रिल","मे","जून","जुलै","ऑगस्ट","सप्टेंबर","ऑक्टोबर","नोवेम्बर","डिसेंबर",""],":","म.पू.","म.नं.","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["syr-SY"]=new r("syr-SY",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],3,2,"ل.س.‏",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["ܚܕ ܒܫܒܐ","ܬܪܝܢ ܒܫܒܐ","ܬܠܬܐ ܒܫܒܐ","ܐܪܒܥܐ ܒܫܒܐ","ܚܡܫܐ ܒܫܒܐ","ܥܪܘܒܬܐ","ܫܒܬܐ"],["ܟܢܘܢ ܐܚܪܝ","ܫܒܛ","ܐܕܪ","ܢܝܣܢ","ܐܝܪ","ܚܙܝܪܢ","ܬܡܘܙ","ܐܒ","ܐܝܠܘܠ","ܬܫܪܝ ܩܕܝܡ","ܬܫܪܝ ܐܚܪܝ","ܟܢܘܢ ܩܕܝܡ",""],["ܐ","ܒ","ܓ","ܕ","ܗ","ܥ","ܫ"],["܏ܟܢ ܏ܒ","ܫܒܛ","ܐܕܪ","ܢܝܣܢ","ܐܝܪ","ܚܙܝܪܢ","ܬܡܘܙ","ܐܒ","ܐܝܠܘܠ","܏ܬܫ ܏ܐ","܏ܬܫ ܏ܒ","܏ܟܢ ܏ܐ",""],["ܟܢܘܢ ܐܚܪܝ","ܫܒܛ","ܐܕܪ","ܢܝܣܢ","ܐܝܪ","ܚܙܝܪܢ","ܬܡܘܙ","ܐܒ","ܐܝܠܘܠ","ܬܫܪܝ ܩܕܝܡ","ܬܫܪܝ ܐܚܪܝ","ܟܢܘܢ ܩܕܝܡ",""],":","ܩ.ܛ","ܒ.ܛ","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["si-LK"]=new r("si-LK",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3],14,2,"රු.",2,".",",",[3,2],0,0,"%","‰","අනන්තය","+","NaN","-අනන්තය","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","yyyy MMMM' මස 'dd' වැනිදා 'dddd",["ඉරිදා","සඳුදා","අඟහරුවාදා","බදාදා","බ්‍රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා"],["ජනවාරි","පෙබරවාරි","මාර්තු","අ‌ප්‍රේල්","මැයි","ජූනි","ජූලි","අ‌ගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්",""],["ඉ","ස","අ","බ","බ්‍ර","සි","සෙ"],["ජන.","පෙබ.","මාර්තු.","අප්‍රේල්.","මැයි.","ජූනි.","ජූලි.","අගෝ.","සැප්.","ඔක්.","නොවැ.","දෙසැ.",""],["ජනවාරි","පෙබරවාරි","මාර්තු","අ‌ප්‍රේල්","මැයි","ජූනි","ජූලි","අ‌ගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්",""],":","පෙ.ව.","ප.ව.","yyyy MMMM' මස 'dd' වැනිදා 'dddd h:mm:ss tt","h:mm tt","h:mm:ss tt","yyyy MMMM")),this._cultures["iu-Cans-CA"]=new r("iu-Cans-CA",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3,0],0,0,"$",2,".",",",[3,0],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd,MMMM dd,yyyy",["ᓈᑦᑏᖑᔭ","ᓇᒡᒐᔾᔭᐅ","ᐊᐃᑉᐱᖅ","ᐱᖓᑦᓯᖅ","ᓯᑕᒻᒥᖅ","ᑕᓪᓕᕐᒥᖅ","ᓯᕙᑖᕐᕕᒃ"],["ᔮᓐᓄᐊᕆ","ᕖᕝᕗᐊᕆ","ᒫᑦᓯ","ᐄᐳᕆ","ᒪᐃ","ᔫᓂ","ᔪᓚᐃ","ᐋᒡᒌᓯ","ᓯᑎᐱᕆ","ᐅᑐᐱᕆ","ᓄᕕᐱᕆ","ᑎᓯᐱᕆ",""],["ᓈ","ᓇ","ᐊ","ᐱ","ᓯ","ᑕ","ᓯ"],["ᔮᓐᓄ","ᕖᕝᕗ","ᒫᑦᓯ","ᐄᐳᕆ","ᒪᐃ","ᔫᓂ","ᔪᓚᐃ","ᐋᒡᒌ","ᓯᑎᐱ","ᐅᑐᐱ","ᓄᕕᐱ","ᑎᓯᐱ",""],["ᔮᓐᓄᐊᕆ","ᕖᕝᕗᐊᕆ","ᒫᑦᓯ","ᐄᐳᕆ","ᒪᐃ","ᔫᓂ","ᔪᓚᐃ","ᐋᒡᒌᓯ","ᓯᑎᐱᕆ","ᐅᑐᐱᕆ","ᓄᕕᐱᕆ","ᑎᓯᐱᕆ",""],":","AM","PM","dddd,MMMM dd,yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM,yyyy"));this._cultures["am-ET"]=new r("am-ET",new t.NumberFormatInfo(".",1,",",[3,0],1,2,".",",",[3,0],1,0,"ETB",1,".",",",[3,0],1,1,"%","‰","Infinity","+","NAN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd '፣' MMMM d 'ቀን' yyyy",["እሑድ","ሰኞ","ማክሰኞ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],["ጃንዩወሪ","ፌብሩወሪ","ማርች","ኤፕረል","ሜይ","ጁን","ጁላይ","ኦገስት","ሴፕቴምበር","ኦክተውበር","ኖቬምበር","ዲሴምበር",""],["እ","ሰ","ማ","ረ","ሐ","ዓ","ቅ"],["ጃንዩ","ፌብሩ","ማርች","ኤፕረ","ሜይ","ጁን","ጁላይ","ኦገስ","ሴፕቴ","ኦክተ","ኖቬም","ዲሴም",""],["ጃንዩወሪ","ፌብሩወሪ","ማርች","ኤፕረል","ሜይ","ጁን","ጁላይ","ኦገስት","ሴፕቴምበር","ኦክተውበር","ኖቬምበር","ዲሴምበር",""],":","ጡዋት","ከሰዓት","dddd '፣' MMMM d 'ቀን' yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures["ne-NP"]=new r("ne-NP",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3],1,0,"रु",2,".",",",[3,2],1,1,"%","‰","infinity","+","nan","-infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["आइतवार","सोमवार","मङ्गलवार","बुधवार","बिहीवार","शुक्रवार","शनिवार"],["जनवरी","फेब्रुअरी","मार्च","अप्रिल","मे","जून","जुलाई","अगस्त","सेप्टेम्बर","अक्टोबर","नोभेम्बर","डिसेम्बर",""],["आ","सो","म","बु","बि","शु","श"],["जन","फेब","मार्च","अप्रिल","मे","जून","जुलाई","अग","सेप्ट","अक्ट","नोभ","डिस",""],["जनवरी","फेब्रुअरी","मार्च","अप्रिल","मे","जून","जुलाई","अगस्त","सेप्टेम्बर","अक्टोबर","नोभेम्बर","डिसेम्बर",""],":","विहानी","बेलुकी","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM,yyyy")),this._cultures["fy-NL"]=new r("fy-NL",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"€",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d-M-yyyy","-","dddd d MMMM yyyy",["Snein","Moandei","Tiisdei","Woansdei","Tongersdei","Freed","Sneon"],["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber",""],["S","M","T","W","T","F","S"],["jann","febr","mrt","apr","maaie","jun","jul","aug","sept","okt","nov","des",""],["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber",""],":","","","dddd d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["ps-AF"]=new r("ps-AF",new t.NumberFormatInfo(",",2,"،",[3],3,2,"٫","٬",[3],3,0,"؋",2,",","،",[3],4,2,"%","‰","∞","+","غ ع","-∞","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MM/yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["ح","ن","ث","ر","خ","ج","س"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],":","غ.م","غ.و","dd/MM/yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["fil-PH"]=new r("fil-PH",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"PhP",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Linggo","Lunes","Martes","Mierkoles","Huebes","Biernes","Sabado"],["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Septyembre","Oktubre","Nobyembre","Disyembre",""],["L","L","M","M","H","B","S"],["En","Peb","Mar","Abr","Mayo","Hun","Hul","Agos","Sept","Okt","Nob","Dis",""],["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Septyembre","Oktubre","Nobyembre","Disyembre",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["dv-MV"]=new r("dv-MV",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],10,3,"ރ.",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MM/yyyy",["އާދީއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],["މުޙައްރަމް","ޞަފަރު","ރަބީޢުލްއައްވަލް","ރަބީޢުލްއާޚިރު","ޖުމާދަލްއޫލާ","ޖުމާދަލްއާޚިރާ","ރަޖަބް","ޝަޢްބާން","ރަމަޟާން","ޝައްވާލް","ޛުލްޤަޢިދާ","ޛުލްޙިއްޖާ",""],["އާ","ހޯ","އަ","ބު","ބު","ހު","ހޮ"],["މުޙައްރަމް","ޞަފަރު","ރަބީޢުލްއައްވަލް","ރަބީޢުލްއާޚިރު","ޖުމާދަލްއޫލާ","ޖުމާދަލްއާޚިރާ","ރަޖަބް","ޝަޢްބާން","ރަމަޟާން","ޝައްވާލް","ޛުލްޤަޢިދާ","ޛުލްޙިއްޖާ",""],["މުޙައްރަމް","ޞަފަރު","ރަބީޢުލްއައްވަލް","ރަބީޢުލްއާޚިރު","ޖުމާދަލްއޫލާ","ޖުމާދަލްއާޚިރާ","ރަޖަބް","ޝަޢްބާން","ރަމަޟާން","ޝައްވާލް","ޛުލްޤަޢިދާ","ޛުލްޙިއްޖާ",""],":","މކ","މފ","dd/MM/yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["ha-Latn-NG"]=new r("ha-Latn-NG",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"N",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, MMMM dd, yyyy",["Lahadi","Litinin","Talata","Laraba","Alhamis","Juma'a","Asabar"],["Januwaru","Febreru","Maris","Afrilu","Mayu","Yuni","Yuli","Agusta","Satumba","Oktocba","Nuwamba","Disamba",""],["L","L","T","L","A","J","A"],["Jan","Feb","Mar","Afr","May","Yun","Yul","Agu","Sat","Okt","Nuw","Dis",""],["Januwaru","Febreru","Maris","Afrilu","Mayu","Yuni","Yuli","Agusta","Satumba","Oktocba","Nuwamba","Disamba",""],":","Safe","Yamma","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["yo-NG"]=new r("yo-NG",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"N",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, MMMM dd, yyyy",["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],["A","A","I","O","O","E","A"],["kin.","kej.","ket.","ker.","kar.","kef.","kej.","kej.","kes.","kew.","kok.","ker.",""],["Osu kinni","Osu keji","Osu keta","Osu kerin","Osu karun","Osu kefa","Osu keje","Osu kejo","Osu kesan","Osu kewa","Osu kokanla","Osu keresi",""],":","Owuro","Ale","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["quz-BO"]=new r("quz-BO",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"$b",2,",",".",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["intichaw","killachaw","atipachaw","quyllurchaw","Ch' askachaw","Illapachaw","k'uychichaw"],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],["d","k","a","m","h","b","k"],["Qul","Hat","Pau","ayr","Aym","Int","Ant","Qha","Uma","Kan","Aya","Kap",""],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["nso-ZA"]=new r("nso-ZA",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"R",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["Lamorena","Mošupologo","Labobedi","Laboraro","Labone","Labohlano","Mokibelo"],["Pherekgong","Hlakola","Mopitlo","Moranang","Mosegamanye","Ngoatobošego","Phuphu","Phato","Lewedi","Diphalana","Dibatsela","Manthole",""],["L","M","L","L","L","L","M"],["Pher","Hlak","Mop","Mor","Mos","Ngwat","Phup","Phat","Lew","Dip","Dib","Man",""],["Pherekgong","Hlakola","Mopitlo","Moranang","Mosegamanye","Ngoatobošego","Phuphu","Phato","Lewedi","Diphalana","Dibatsela","Manthole",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["ba-RU"]=new r("ba-RU",new t.NumberFormatInfo(",",2," ",[3,0],1,2,","," ",[3,0],8,3,"₽",2,","," ",[3,0],1,1,"%","‰","бесконечность","+","NaN","-бесконечность","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","d MMMM yyyy 'й'",["Йәкшәмбе","Дүшәмбе","Шишәмбе","Шаршамбы","Кесаҙна","Йома","Шәмбе"],["ғинуар","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь",""],["Йш","Дш","Шш","Шр","Кс","Йм","Шб"],["ғин","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек",""],["ғинуар","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь",""],":","","","d MMMM yyyy 'й' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["lb-LU"]=new r("lb-LU",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+onendlech","+","n. num.","-onendlech","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"],["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mé","Dë","Më","Do","Fr","Sa"],["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["kl-GL"]=new r("kl-GL",new t.NumberFormatInfo(",",2,".",[3,0],1,2,",",".",[3,0],12,2,"kr.",2,",",".",[3,0],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","d. MMMM yyyy",["sapaat","ataasinngorneq","marlunngorneq","pingasunngorneq","sisamanngorneq","tallimanngorneq","arfininngorneq"],["januari","februari","martsi","apriili","maaji","juni","juli","aggusti","septembari","oktobari","novembari","decembari",""],["sa","at","ma","pi","si","ta","ar"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","martsi","apriili","maaji","juni","juli","aggusti","septembari","oktobari","novembari","decembari",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ig-NG"]=new r("ig-NG",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"N",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, MMMM dd, yyyy",["Aiku","Aje","Isegun","Ojo'ru","Ojo'bo","Eti","Abameta"],["Onwa mbu","Onwa ibua","Onwa ato","Onwa ano","Onwa ise","Onwa isi","Onwa asa","Onwa asato","Onwa itolu","Onwa iri","Onwa iri n'ofu","Onwa iri n'ibua",""],["A","A","I","O","O","E","A"],["mbu.","ibu.","ato.","ano.","ise","isi","asa","asa.","ito.","iri.","n'of.","n'ib.",""],["Onwa mbu","Onwa ibua","Onwa ato","Onwa ano","Onwa ise","Onwa isi","Onwa asa","Onwa asato","Onwa itolu","Onwa iri","Onwa iri n'ofu","Onwa iri n'ibua",""],":","Ututu","Efifie","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["ii-CN"]=new r("ii-CN",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],2,0,"¥",2,".",",",[3,0],1,1,"%","‰","ꈤꇁꑖꀋꉬ","+","ꌗꂷꀋꉬ","ꀄꊭꌐꀋꉆ","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'ꈎ' M'ꆪ' d'ꑍ'",["ꑭꆏꑍ","ꆏꊂ꒔","ꆏꊂꑍ","ꆏꊂꌕ","ꆏꊂꇖ","ꆏꊂꉬ","ꆏꊂꃘ"],["ꋍꆪ","ꑍꆪ","ꌕꆪ","ꇖꆪ","ꉬꆪ","ꃘꆪ","ꏃꆪ","ꉆꆪ","ꈬꆪ","ꊰꆪ","ꊯꊪꆪ","ꊰꑋꆪ",""],["ꆏ","꒔","ꑍ","ꌕ","ꇖ","ꉬ","ꃘ"],["ꋍꆪ","ꑍꆪ","ꌕꆪ","ꇖꆪ","ꉬꆪ","ꃘꆪ","ꏃꆪ","ꉆꆪ","ꈬꆪ","ꊰꆪ","ꊯꊪꆪ","ꊰꑋꆪ",""],["ꋍꆪ","ꑍꆪ","ꌕꆪ","ꇖꆪ","ꉬꆪ","ꃘꆪ","ꏃꆪ","ꉆꆪ","ꈬꆪ","ꊰꆪ","ꊯꊪꆪ","ꊰꑋꆪ",""],":","ꂵꆪꈌꈐ","ꂵꆪꈌꉈ","yyyy'ꈎ' M'ꆪ' d'ꑍ' H:mm:ss","tt h:mm","H:mm:ss","yyyy'ꈎ' M'ꆪ'")),this._cultures["arn-CL"]=new r("arn-CL",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"$",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","","","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures["moh-CA"]=new r("moh-CA",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],0,0,"$",2,".",",",[3,0],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Awentatokentì:ke","Awentataón'ke","Ratironhia'kehronòn:ke","Soséhne","Okaristiiáhne","Ronwaia'tanentaktonhne","Entákta"],["Tsothohrkó:Wa","Enniska","Enniskó:Wa","Onerahtókha","Onerahtohkó:Wa","Ohiari:Ha","Ohiarihkó:Wa","Seskéha","Seskehkó:Wa","Kenténha","Kentenhkó:Wa","Tsothóhrha",""],["S","M","T","W","T","F","S"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["Tsothohrkó:Wa","Enniska","Enniskó:Wa","Onerahtókha","Onerahtohkó:Wa","Ohiari:Ha","Ohiarihkó:Wa","Seskéha","Seskehkó:Wa","Kenténha","Kentenhkó:Wa","Tsothóhrha",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["br-FR"]=new r("br-FR",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Anfin","+","NkN","-Anfin","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["Sul","Lun","Meurzh","Merc'her","Yaou","Gwener","Sadorn"],["Genver","C'hwevrer","Meurzh","Ebrel","Mae","Mezheven","Gouere","Eost","Gwengolo","Here","Du","Kerzu",""],["Su","Lu","Mz","Mc","Ya","Gw","Sa"],["Gen.","C'hwe.","Meur.","Ebr.","Mae","Mezh.","Goue.","Eost","Gwen.","Here","Du","Kzu",""],["Genver","C'hwevrer","Meurzh","Ebrel","Mae","Mezheven","Gouere","Eost","Gwengolo","Here","Du","Kerzu",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ug-CN"]=new r("ug-CN",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,0,"¥",2,".",",",[3],1,1,"%","‰","مۇسبەت چەكسىزلىك","+","سان ئەمەس","مەنپىي چەكسىزلىك","-"),new t.DateTimeFormatInfo("yyyy-M-d","-","yyyy-'يىلى' MMMM d-'كۈنى،'",["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي",""],["ي","د","س","چ","پ","ج","ش"],["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي",""],["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي",""],":","چۈشتىن بۇرۇن","چۈشتىن كېيىن","yyyy-'يىلى' MMMM d-'كۈنى،' H:mm:ss","H:mm","H:mm:ss","yyyy-'يىلى' MMMM")),this._cultures["mi-NZ"]=new r("mi-NZ",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"$",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd MMMM, yyyy",["Rātapu","Rāhina","Rātū","Rāapa","Rāpare","Rāmere","Rāhoroi"],["Kohi-tātea","Hui-tanguru","Poutū-te-rangi","Paenga-whāwhā","Haratua","Pipiri","Hōngongoi","Here-turi-kōkā","Mahuru","Whiringa-ā-nuku","Whiringa-ā-rangi","Hakihea",""],["Ta","Hi","Tū","Aa","Pa","Me","Ho"],["Kohi","Hui","Pou","Pae","Hara","Pipi","Hōngo","Here","Mahu","Nuku","Rangi","Haki",""],["Kohi-tātea","Hui-tanguru","Poutū-te-rangi","Paenga-whāwhā","Haratua","Pipiri","Hōngongoi","Here-turi-kōkā","Mahuru","Whiringa-ā-nuku","Whiringa-ā-rangi","Hakihea",""],":","a.m.","p.m.","dddd, dd MMMM, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yy")),this._cultures["oc-FR"]=new r("oc-FR",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infinit","+","Non Numeric","-Infinit","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd,' lo 'd MMMM' de 'yyyy",["dimenge","diluns","dimars","dimècres","dijòus","divendres","dissabte"],["genier","febrier","març","abril","mai","junh","julh","agost","setembre","octobre","novembre","desembre",""],["di","lu","ma","mè","jò","ve","sa"],["gen.","feb.","mar.","abr.","mai.","jun.","jul.","ag.","set.","oct.","nov.","des.",""],["de genier","de febrier","de març","d'abril","de mai","de junh","de julh","d'agost","de setembre","d'octobre","de novembre","de desembre",""],":","","","dddd,' lo 'd MMMM' de 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["co-FR"]=new r("co-FR",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infinitu","+","Mica numericu","-Infinitu","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dumenica","luni","marti","mercuri","ghjovi","venderi","sabbatu"],["ghjennaghju","ferraghju","marzu","aprile","maghju","ghjunghju","lugliu","aostu","settembre","ottobre","nuvembre","dicembre",""],["du","lu","ma","me","gh","ve","sa"],["ghje","ferr","marz","apri","magh","ghju","lugl","aost","sett","otto","nuve","dice",""],["ghjennaghju","ferraghju","marzu","aprile","maghju","ghjunghju","lugliu","aostu","settembre","ottobre","nuvembre","dicembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["gsw-FR"]=new r("gsw-FR",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Unendlich","+","Ohne Nummer","-Unendlich","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["Sundàà","Mondàà","Dienschdàà","Mittwuch","Dunnerschdàà","Fridàà","Sàmschdàà"],["Jänner","Feverje","März","Àpril","Mai","Jüni","Jüli","Augscht","September","Oktower","Nowember","Dezember",""],["Su","Mo","Di","Mi","Du","Fr","Sà"],["Jän.","Fev.","März","Apr.","Mai","Jüni","Jüli","Aug.","Sept.","Okt.","Now.","Dez.",""],["Jänner","Feverje","März","Àpril","Mai","Jüni","Jüli","Augscht","September","Oktower","Nowember","Dezember",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["sah-RU"]=new r("sah-RU",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"₽",2,","," ",[3],1,1,"%","‰","бесконечность","+","NAN","-бесконечность","-"),new t.DateTimeFormatInfo("MM.dd.yyyy",".","MMMM d yyyy 'с.'",["баскыһыанньа","бэнидиэнньик","оптуорунньук","сэрэдэ","чэппиэр","бээтинсэ","субуота"],["Тохсунньу","Олунньу","Кулун тутар","Муус устар","Ыам ыйа","Бэс ыйа","От ыйа","Атырдьах ыйа","Балаҕан ыйа","Алтынньы","Сэтинньи","Ахсынньы",""],["Бс","Бн","Оп","Ср","Чп","Бт","Сб"],["тхс","олн","кул","мст","ыам","бэс","отй","атр","блҕ","алт","стн","ахс",""],["тохсунньу","олунньу","кулун тутар","муус устар","ыам ыйын","бэс ыйын","от ыйын","атырдьах ыйын","балаҕан ыйын","алтынньы","сэтинньи","ахсынньы",""],":","","","MMMM d yyyy 'с.' H:mm:ss","H:mm","H:mm:ss","MMMM yyyy 'с.'")),this._cultures["qut-GT"]=new r("qut-GT",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"Q",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["juq'ij","kaq'ij","oxq'ij","kajq'ij","joq'ij","waqq'ij","wuqq'ij"],["nab'e ik'","ukab' ik'","rox ik'","ukaj ik'","uro' ik'","uwaq ik'","uwuq ik'","uwajxaq ik'","ub'elej ik'","ulaj ik'","ujulaj ik'","ukab'laj ik'",""],["ju","ka","ox","ka","jo","wa","wu"],["nab'e","ukab","rox","ukaj","uro","uwaq","uwuq","uwajxaq","ub'elej","ulaj","ujulaj","ukab'laj",""],["nab'e ik'","ukab' ik'","rox ik'","ukaj ik'","uro' ik'","uwaq ik'","uwuq ik'","uwajxaq ik'","ub'elej ik'","ulaj ik'","ujulaj ik'","ukab'laj ik'",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["rw-RW"]=new r("rw-RW",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],2,2,"RWF",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Ku wa mbere","Ku wa kabiri","Ku wa gatatu","Ku wa kane","Ku wa gatanu","Ku wa gatandatu","Ku cyumweru"],["Mutarama","Gashyantare","Werurwe","Mata","Gicurasi","Kamena","Nyakanga","Kanama","Nzeli","Ukwakira","Ugushyingo","Ukuboza",""],["mb","ka","ga","ka","ga","ga","cy"],["Mut","Gas","Wer","Mat","Gic","Kam","Nya","Kan","Nze","Ukwa","Ugu","Uku",""],["Mutarama","Gashyantare","Werurwe","Mata","Gicurasi","Kamena","Nyakanga","Kanama","Nzeli","Ukwakira","Ugushyingo","Ukuboza",""],":","saa moya z.m.","saa moya z.n.","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["wo-SN"]=new r("wo-SN",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"XOF",2,","," ",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["prs-AF"]=new r("prs-AF",new t.NumberFormatInfo(",",2,".",[3],3,2,".",",",[3],3,0,"؋",2,",",".",[3],4,2,"%","‰","∞","+","غ ع","-∞","-"),new t.DateTimeFormatInfo("dd/MM/yy","/","dd/MM/yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["ح","ن","ث","ر","خ","ج","س"],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],":","غ.م","غ.و","dd/MM/yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["gd-GB"]=new r("gd-GB",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"£",2,".",",",[3],0,0,"%","‰","Neo-chrìochnachd","+","NaN","-Neo-chrìochnachd","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd",""],["D","L","M","C","A","H","S"],["Fao","Gea","Màr","Gib","Cèi","Ògm","Iuc","Lùn","Sul","Dàm","Sam","Dùb",""],["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd",""],":","m","f","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ar-IQ"]=new r("ar-IQ",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"د.ع.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["ح","ن","ث","ر","خ","ج","س"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["zh-CN"]=new r("zh-CN",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,0,"¥",2,".",",",[3],1,1,"%","‰","正无穷大","+","非数字","负无穷大","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures["de-CH"]=new r("de-CH",new t.NumberFormatInfo(".",2,"'",[3],1,2,".","'",[3],2,2,"Fr.",2,".","'",[3],1,1,"%","‰","+unendlich","+","n. def.","-unendlich","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, d. MMMM yyyy",["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mo","Di","Mi","Do","Fr","Sa"],["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd, d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["en-GB"]=new r("en-GB",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"£",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["es-MX"]=new r("es-MX",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"$",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["fr-BE"]=new r("fr-BE",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"€",2,",",".",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("d/MM/yyyy","/","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["it-CH"]=new r("it-CH",new t.NumberFormatInfo(".",2,"'",[3],1,2,".","'",[3],2,2,"fr.",2,".","'",[3],1,1,"%","‰","+Infinito","+","Non un numero reale","-Infinito","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, d. MMMM yyyy",["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],["do","lu","ma","me","gi","ve","sa"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic",""],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre",""],":","","","dddd, d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["nl-BE"]=new r("nl-BE",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"€",2,",",".",[3],1,1,"%","‰","oneindig","+","NaN (Niet-een-getal)","-oneindig","-"),new t.DateTimeFormatInfo("d/MM/yyyy","/","dddd d MMMM yyyy",["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],["zo","ma","di","wo","do","vr","za"],["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december",""],":","","","dddd d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["nn-NO"]=new r("nn-NO",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d. MMMM yyyy",["søndag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],["sø","må","ty","on","to","fr","la"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["pt-PT"]=new r("pt-PT",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","+Infinito","+","NaN (Não é um número)","-Infinito","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dddd, d' de 'MMMM' de 'yyyy",["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro",""],["D","S","T","Q","Q","S","S"],["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez",""],["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro",""],":","","","dddd, d' de 'MMMM' de 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM' de 'yyyy")),this._cultures["sr-Latn-CS"]=new r("sr-Latn-CS",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"Din.",2,",",".",[3],1,1,"%","‰","+beskonačnost","+","NaN","-beskonačnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["sv-FI"]=new r("sv-FI",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","'den 'd MMMM yyyy",["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],["sö","må","ti","on","to","fr","lö"],["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec",""],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december",""],":","","","'den 'd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["az-Cyrl-AZ"]=new r("az-Cyrl-AZ",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₼",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["Базар","Базар ертәси","Чәршәнбә ахшамы","Чәршәнбә","Ҹүмә ахшамы","Ҹүмә","Шәнбә"],["Јанвар","Феврал","Март","Апрел","Мај","Ијун","Ијул","Август","Сентјабр","Октјабр","Нојабр","Декабр",""],["Б","Бе","Ча","Ч","Ҹа","Ҹ","Ш"],["Јан","Фев","Мар","Апр","Мај","Ијун","Ијул","Авг","Сен","Окт","Ноя","Дек",""],["јанвар","феврал","март","апрел","мај","ијун","ијул","август","сентјабр","октјабр","нојабр","декабр",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["dsb-DE"]=new r("dsb-DE",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","+njekońcne","+","njedefinowane","-njekońcne","-"),new t.DateTimeFormatInfo("d. M. yyyy",". ","dddd, 'dnja' d. MMMM yyyy",["njeźela","ponjeźele","wałtora","srjoda","stwortk","pětk","sobota"],["januar","februar","měrc","apryl","maj","junij","julij","awgust","september","oktober","nowember","december",""],["n","p","w","s","s","p","s"],["jan","feb","měr","apr","maj","jun","jul","awg","sep","okt","now","dec",""],["januara","februara","měrca","apryla","maja","junija","julija","awgusta","septembra","oktobra","nowembra","decembra",""],":","","","dddd, 'dnja' d. MMMM yyyy H:mm:ss","H.mm 'goź.'","H:mm:ss","MMMM yyyy")),this._cultures["se-SE"]=new r("se-SE",new t.NumberFormatInfo(",",2," ",[3],1,2,",",".",[3],8,3,"kr",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","MMMM d'. b. 'yyyy",["sotnabeaivi","mánnodat","disdat","gaskavahkku","duorastat","bearjadat","lávvardat"],["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu",""],["s","m","d","g","d","b","l"],["ođđj","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov",""],["ođđajagimánu","guovvamánu","njukčamánu","cuoŋománu","miessemánu","geassemánu","suoidnemánu","borgemánu","čakčamánu","golggotmánu","skábmamánu","juovlamánu",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ga-IE"]=new r("ga-IE",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"€",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","d MMMM yyyy",["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig",""],["Do","Lu","Má","Cé","De","Ao","Sa"],["Ean","Feabh","Már","Aib","Bealt","Meith","Iúil","Lún","M.Fómh","D.Fómh","Samh","Noll",""],["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig",""],":","r.n.","i.n.","d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ms-BN"]=new r("ms-BN",new t.NumberFormatInfo(",",2,".",[3],1,0,",",".",[3],0,0,"$",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"],["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember",""],["A","I","S","R","K","J","S"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogos","Sept","Okt","Nov","Dis",""],["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember",""],":","","","dd MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["uz-Cyrl-UZ"]=new r("uz-Cyrl-UZ",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"сўм",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","yyyy 'йил' d-MMMM",["якшанба","душанба","сешанба","чоршанба","пайшанба","жума","шанба"],["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр",""],["я","д","с","ч","п","ж","ш"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек",""],["январ","феврал","март","апрел","май","июн","июл","август","сентябр","октябр","ноябр","декабр",""],":","","","yyyy 'йил' d-MMMM HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["bn-BD"]=new r("bn-BD",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"৳",2,".",",",[3,2],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yy","-","dd MMMM yyyy",["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"],["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",""],["র","স","ম","ব","ব","শ","শ"],["জানু.","ফেব্রু.","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগ.","সেপ্টে.","অক্টো.","নভে.","ডিসে.",""],["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর",""],".","পুর্বাহ্ন","অপরাহ্ন","dd MMMM yyyy HH.mm.ss","HH.mm","HH.mm.ss","MMMM, yyyy")),this._cultures["mn-Mong-CN"]=new r("mn-Mong-CN",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3,0],2,0,"¥",2,".",",",[3,0],1,1,"%","‰","ᠡᠶ᠋ᠡᠷᠬᠦ ᠬᠢᠵᠠᠭᠠᠷᠭᠦᠢ ᠶᠠᠬᠡ","+","ᠲᠤᠭᠠᠠ ᠪᠤᠰᠤ","ᠰᠦᠬᠡᠷᠬᠦ ᠬᠢᠵᠠᠭᠠᠷᠭᠦᠢ ᠶᠡᠬᠡ","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'ᠣᠨ ᠤ᠋' M'ᠰᠠᠷ᠎ᠠ  ᠢᠢᠨ 'd' ᠤ᠋ ᠡᠳᠦᠷ'",["ᠭᠠᠷᠠᠭ ᠤᠨ ᠡᠳᠦᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠨᠢᠭᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠬᠣᠶᠠᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠭᠤᠷᠪᠠᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠳᠥᠷᠪᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠲᠠᠪᠤᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠵᠢᠷᠭᠤᠭᠠᠨ"],["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],["ᠡ‍","ᠨᠢ‍","ᠬᠣ‍","ᠭᠤ‍","ᠳᠥ‍","ᠲᠠ‍","ᠵᠢ‍"],["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],":","","","yyyy'ᠣᠨ ᠤ᠋' M'ᠰᠠᠷ᠎ᠠ  ᠢᠢᠨ 'd' ᠤ᠋ ᠡᠳᠦᠷ' H:mm:ss","H:mm","H:mm:ss","yyyy'ᠣᠨ' M'ᠰᠠᠷ᠎ᠠ'")),this._cultures["iu-Latn-CA"]=new r("iu-Latn-CA",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],0,0,"$",2,".",",",[3,0],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/MM/yyyy","/","ddd, MMMM dd,yyyy",["Naattiinguja","Naggajjau","Aippiq","Pingatsiq","Sitammiq","Tallirmiq","Sivataarvik"],["Jaannuari","Viivvuari","Maatsi","Iipuri","Mai","Juuni","Julai","Aaggiisi","Sitipiri","Utupiri","Nuvipiri","Tisipiri",""],["N","N","A","P","S","T","S"],["Jan","Viv","Mas","Ipu","Mai","Jun","Jul","Agi","Sii","Uut","Nuv","Tis",""],["Jaannuari","Viivvuari","Maatsi","Iipuri","Mai","Juuni","Julai","Aaggiisi","Sitipiri","Utupiri","Nuvipiri","Tisipiri",""],":","AM","PM","ddd, MMMM dd,yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["tzm-Latn-DZ"]=new r("tzm-Latn-DZ",new t.NumberFormatInfo(",",2,".",[3],3,2,".",",",[3],8,3,"DZD",2,",",".",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM, yyyy",["Acer","Arime","Aram","Ahad","Amhadh","Sem","Sedh"],["Yenayer","Furar","Maghres","Yebrir","Mayu","Yunyu","Yulyu","Ghuct","Cutenber","Ktuber","Wambir","Dujanbir",""],["Ac","Ar","Ar","Ah","Am","Se","Se"],["Yen","Fur","Mag","Yeb","May","Yun","Yul","Ghu","Cut","Ktu","Wam","Duj",""],["Yenayer","Furar","Maghres","Yebrir","Mayu","Yunyu","Yulyu","Ghuct","Cutenber","Ktuber","Wambir","Dujanbir",""],":","","","dd MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["quz-EC"]=new r("quz-EC",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"$",2,",",".",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["intichaw","killachaw","atipachaw","quyllurchaw","Ch' askachaw","Illapachaw","k'uychichaw"],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],["d","k","a","m","h","b","k"],["Qul","Hat","Pau","ayr","Aym","Int","Ant","Qha","Uma","Kan","Aya","Kap",""],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],":","","","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures["ar-EG"]=new r("ar-EG",new t.NumberFormatInfo(".",3,",",[3],3,2,".",",",[3],3,2,"ج.م.‏",3,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["zh-HK"]=new r("zh-HK",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"HK$",2,".",",",[3],1,1,"%","‰","正無窮大","+","非數字","負無窮大","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures["de-AT"]=new r("de-AT",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"€",2,",",".",[3],1,1,"%","‰","+unendlich","+","n. def.","-unendlich","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, dd. MMMM yyyy",["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mo","Di","Mi","Do","Fr","Sa"],["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd, dd. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["en-AU"]=new r("en-AU",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/MM/yyyy","/","dddd, d MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, d MMMM yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures["es-ES"]=new r("es-ES",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","","","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures["fr-CA"]=new r("fr-CA",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],15,3,"$",2,","," ",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["sr-Cyrl-CS"]=new r("sr-Cyrl-CS",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"Дин.",2,",",".",[3],1,1,"%","‰","+бесконачност","+","NaN","-бесконачност","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["недеља","понедељак","уторак","среда","четвртак","петак","субота"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],["не","по","ут","ср","че","пе","су"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["se-FI"]=new r("se-FI",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","MMMM d'. b. 'yyyy",["sotnabeaivi","vuossárga","maŋŋebárga","gaskavahkku","duorastat","bearjadat","lávvardat"],["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu",""],["s","m","d","g","d","b","l"],["ođđj","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov",""],["ođđajagimánu","guovvamánu","njukčamánu","cuoŋománu","miessemánu","geassemánu","suoidnemánu","borgemánu","čakčamánu","golggotmánu","skábmamánu","juovlamánu",""],":","","","MMMM d'. b. 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["quz-PE"]=new r("quz-PE",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],12,2,"S/.",2,".",",",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["intichaw","killachaw","atipachaw","quyllurchaw","Ch' askachaw","Illapachaw","k'uychichaw"],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],["d","k","a","m","h","b","k"],["Qul","Hat","Pau","ayr","Aym","Int","Ant","Qha","Uma","Kan","Aya","Kap",""],["Qulla puquy","Hatun puquy","Pauqar waray","ayriwa","Aymuray","Inti raymi","Anta Sitwa","Qhapaq Sitwa","Uma raymi","Kantaray","Ayamarq'a","Kapaq Raymi",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["ar-LY"]=new r("ar-LY",new t.NumberFormatInfo(".",3,",",[3],3,3,".",",",[3],3,0,"د.ل.‏",3,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["zh-SG"]=new r("zh-SG",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"$",2,".",",",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","AM","PM","yyyy'年'M'月'd'日' tt h:mm:ss","tt h:mm","tt h:mm:ss","yyyy'年'M'月'")),this._cultures["de-LU"]=new r("de-LU",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","+unendlich","+","n. def.","-unendlich","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, d. MMMM yyyy",["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mo","Di","Mi","Do","Fr","Sa"],["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd, d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["en-CA"]=new r("en-CA",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","MMMM-dd-yy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","MMMM-dd-yy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["es-GT"]=new r("es-GT",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"Q",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["fr-CH"]=new r("fr-CH",new t.NumberFormatInfo(".",2,"'",[3],1,2,".","'",[3],2,2,"fr.",2,".","'",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["hr-BA"]=new r("hr-BA",new t.NumberFormatInfo(",",2,".",[3],2,2,",",".",[3],8,3,"KM",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy.",".","d. MMMM yyyy.",["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac",""],["ne","po","ut","sr","če","pe","su"],["sij","vlj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro",""],["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca",""],":","","","d. MMMM yyyy. H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["smj-NO"]=new r("smj-NO",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","MMMM d'. b. 'yyyy",["sådnåbiejvve","mánnodahka","dijstahka","gasskavahkko","duorastahka","bierjjedahka","lávvodahka"],["ådåjakmánno","guovvamánno","sjnjuktjamánno","vuoratjismánno","moarmesmánno","biehtsemánno","sjnjilltjamánno","bårggemánno","ragátmánno","gålgådismánno","basádismánno","javllamánno",""],["s","m","d","g","d","b","l"],["ådåj","guov","snju","vuor","moar","bieh","snji","bårg","ragá","gålg","basá","javl",""],["ådåjakmáno","guovvamáno","sjnjuktjamáno","vuoratjismáno","moarmesmáno","biehtsemáno","sjnjilltjamáno","bårggemáno","ragátmáno","gålgådismáno","basádismáno","javllamáno",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ar-DZ"]=new r("ar-DZ",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"د.ج.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["zh-MO"]=new r("zh-MO",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"MOP",2,".",",",[3],1,1,"%","‰","正無窮大","+","非數字","負無窮大","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures["de-LI"]=new r("de-LI",new t.NumberFormatInfo(".",2,"'",[3],1,2,".","'",[3],2,2,"CHF",2,".","'",[3],1,1,"%","‰","+unendlich","+","n. def.","-unendlich","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","dddd, d. MMMM yyyy",["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],["So","Mo","Di","Mi","Do","Fr","Sa"],["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],":","","","dddd, d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["en-NZ"]=new r("en-NZ",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/MM/yyyy","/","dddd, d MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","a.m.","p.m.","dddd, d MMMM yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM yyyy")),this._cultures["es-CR"]=new r("es-CR",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],0,0,"₡",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["fr-LU"]=new r("fr-LU",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["bs-Latn-BA"]=new r("bs-Latn-BA",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"KM",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["smj-SE"]=new r("smj-SE",new t.NumberFormatInfo(",",2," ",[3],1,2,",",".",[3],8,3,"kr",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","MMMM d'. b. 'yyyy",["ájllek","mánnodahka","dijstahka","gasskavahkko","duorastahka","bierjjedahka","lávvodahka"],["ådåjakmánno","guovvamánno","sjnjuktjamánno","vuoratjismánno","moarmesmánno","biehtsemánno","sjnjilltjamánno","bårggemánno","ragátmánno","gålgådismánno","basádismánno","javllamánno",""],["á","m","d","g","d","b","l"],["ådåj","guov","snju","vuor","moar","bieh","snji","bårg","ragá","gålg","basá","javl",""],["ådåjakmáno","guovvamáno","sjnjuktjamáno","vuoratjismáno","moarmesmáno","biehtsemáno","sjnjilltjamáno","bårggemáno","ragátmáno","gålgådismáno","basádismáno","javllamáno",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ar-MA"]=new r("ar-MA",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"د.م.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر",""],["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر",""],":","ص","م","dd MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["en-IE"]=new r("en-IE",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"€",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","","","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["es-PA"]=new r("es-PA",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],14,2,"B/.",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("MM/dd/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["fr-MC"]=new r("fr-MC",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd d MMMM yyyy",["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],["di","lu","ma","me","je","ve","sa"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],":","","","dddd d MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["sr-Latn-BA"]=new r("sr-Latn-BA",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"KM",2,",",".",[3],0,0,"%","‰","+beskonačnost","+","NaN","-beskonačnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["sma-NO"]=new r("sma-NO",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],2,2,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","MMMM d'. b. 'yyyy",["aejlege","måanta","dæjsta","gaskevåhkoe","duarsta","bearjadahke","laavvardahke"],["tsïengele","goevte","njoktje","voerhtje","suehpede","ruffie","snjaltje","mïetske","skïerede","golke","rahka","goeve",""],["a","m","d","g","d","b","l"],["tsïen","goevt","njok","voer","sueh","ruff","snja","mïet","skïer","golk","rahk","goev",""],["tsïengelen","goevten","njoktjen","voerhtjen","suehpeden","ruffien","snjaltjen","mïetsken","skïereden","golken","rahkan","goeven",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ar-TN"]=new r("ar-TN",new t.NumberFormatInfo(".",3,",",[3],3,3,".",",",[3],3,2,"د.ت.‏",3,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["en-ZA"]=new r("en-ZA",new t.NumberFormatInfo(".",2," ",[3],1,2,","," ",[3],2,2,"R",2,"."," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy/MM/dd","/","dd MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["es-DO"]=new r("es-DO",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"RD$",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["sr-Cyrl-BA"]=new r("sr-Cyrl-BA",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"КМ",2,",",".",[3],0,0,"%","‰","+бесконачност","+","NaN","-бесконачност","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["недеља","понедељак","уторак","среда","четвртак","петак","субота"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],["н","п","у","с","ч","п","с"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["sma-SE"]=new r("sma-SE",new t.NumberFormatInfo(",",2," ",[3],1,2,",",".",[3],8,3,"kr",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","MMMM d'. b. 'yyyy",["aejlege","måanta","dæjsta","gaskevåhkoe","duarsta","bearjadahke","laavvardahke"],["tsïengele","goevte","njoktje","voerhtje","suehpede","ruffie","snjaltje","mïetske","skïerede","golke","rahka","goeve",""],["a","m","d","g","d","b","l"],["tsïen","goevt","njok","voer","sueh","ruff","snja","mïet","skïer","golk","rahk","goev",""],["tsïengelen","goevten","njoktjen","voerhtjen","suehpeden","ruffien","snjaltjen","mïetsken","skïereden","golken","rahkan","goeven",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["ar-OM"]=new r("ar-OM",new t.NumberFormatInfo(".",2,",",[3],3,3,".",",",[3],3,2,"ر.ع.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["en-JM"]=new r("en-JM",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"J$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, MMMM dd, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, MMMM dd, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["es-VE"]=new r("es-VE",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],12,2,"Bs. F.",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["bs-Cyrl-BA"]=new r("bs-Cyrl-BA",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"КМ",2,",",".",[3],0,0,"%","‰","+бесконачност","+","NaN","-бесконачност","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["недјеља","понедјељак","уторак","сриједа","четвртак","петак","субота"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],["н","п","у","с","ч","п","с"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["sms-FI"]=new r("sms-FI",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","MMMM d'. p. 'yyyy",["pâ´sspei´vv","vuõssargg","mââibargg","seärad","nelljdpei´vv","piâtnâc","sue´vet"],["ođđee´jjmään","tä´lvvmään","pâ´zzlâšttammään","njuhččmään","vue´ssmään","ǩie´ssmään","suei´nnmään","på´rǧǧmään","čõhččmään","kålggmään","skamm´mään","rosttovmään",""],["p","v","m","s","n","p","s"],["ođjm","tä´lvv","pâzl","njuh","vue","ǩie","suei","på´r","čõh","kålg","ska","rost",""],["ođđee´jjmannu","tä´lvvmannu","pâ´zzlâšttammannu","njuhččmannu","vue´ssmannu","ǩie´ssmannu","suei´nnmannu","på´rǧǧmannu","čõhččmannu","kålggmannu","skamm´mannu","rosttovmannu",""],":","","","MMMM d'. p. 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["ar-YE"]=new r("ar-YE",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"ر.ي.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["en-029"]=new r("en-029",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],1,0,"$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("MM/dd/yyyy","/","dddd, MMMM dd, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["es-CO"]=new r("es-CO",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"$",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["sr-Latn-RS"]=new r("sr-Latn-RS",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"Din.",2,",",".",[3],1,1,"%","‰","+beskonačnost","+","NaN","-beskonačnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["smn-FI"]=new r("smn-FI",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","MMMM d'. p. 'yyyy",["pasepeivi","vuossargâ","majebargâ","koskokko","tuorâstâh","vástuppeivi","lávárdâh"],["uđđâivemáánu","kuovâmáánu","njuhčâmáánu","cuáŋuimáánu","vyesimáánu","kesimáánu","syeinimáánu","porgemáánu","čohčâmáánu","roovvâdmáánu","skammâmáánu","juovlâmáánu",""],["p","v","m","k","t","v","l"],["uđiv","kuov","njuh","cuoŋ","vyes","kesi","syei","porg","čoh","roov","ska","juov",""],["uđđâivemáánu","kuovâmáánu","njuhčâmáánu","cuáŋuimáánu","vyesimáánu","kesimáánu","syeinimáánu","porgemáánu","čohčâmáánu","roovvâdmáánu","skammâmáánu","juovlâmáánu",""],":","","","MMMM d'. p. 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["ar-SY"]=new r("ar-SY",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"ل.س.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["ح","ن","ث","ر","خ","ج","س"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["en-BZ"]=new r("en-BZ",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3,0],0,0,"BZ$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["es-PE"]=new r("es-PE",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],12,2,"S/.",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["sr-Cyrl-RS"]=new r("sr-Cyrl-RS",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"Дин.",2,",",".",[3],1,1,"%","‰","+бесконачност","+","NaN","-бесконачност","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["недеља","понедељак","уторак","среда","четвртак","петак","субота"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],["не","по","ут","ср","че","пе","су"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["ar-JO"]=new r("ar-JO",new t.NumberFormatInfo(".",3,",",[3],3,3,".",",",[3],3,2,"د.ا.‏",3,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["ح","ن","ث","ر","خ","ج","س"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["en-TT"]=new r("en-TT",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3,0],0,0,"TT$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, dd MMMM yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM yyyy")),this._cultures["es-AR"]=new r("es-AR",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],2,2,"$",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["sr-Latn-ME"]=new r("sr-Latn-ME",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","+beskonačnost","+","NaN","-beskonačnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["ar-LB"]=new r("ar-LB",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"ل.ل.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["ح","ن","ث","ر","خ","ج","س"],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["en-ZW"]=new r("en-ZW",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"Z$",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["es-EC"]=new r("es-EC",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"$",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","","","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures["sr-Cyrl-ME"]=new r("sr-Cyrl-ME",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],1,1,"%","‰","+бесконачност","+","NaN","-бесконачност","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["недеља","понедељак","уторак","среда","четвртак","петак","субота"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],["не","по","ут","ср","че","пе","су"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["ar-KW"]=new r("ar-KW",new t.NumberFormatInfo(".",3,",",[3],3,3,".",",",[3],3,2,"د.ك.‏",3,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["en-PH"]=new r("en-PH",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"Php",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["es-CL"]=new r("es-CL",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],9,2,"$",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","","","dddd, dd' de 'MMMM' de 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM' de 'yyyy")),this._cultures["ar-AE"]=new r("ar-AE",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"د.إ.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["es-UY"]=new r("es-UY",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"$U",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["ar-BH"]=new r("ar-BH",new t.NumberFormatInfo(".",3,",",[3],3,3,".",",",[3],3,2,"د.ب.‏",3,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["es-PY"]=new r("es-PY",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"Gs",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["ar-QA"]=new r("ar-QA",new t.NumberFormatInfo(".",2,",",[3],3,2,".",",",[3],3,2,"ر.ق.‏",2,".",",",[3],0,0,"%","‰","+لا نهاية","+","ليس برقم","-لا نهاية","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dd MMMM, yyyy",["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["ح","ن","ث","ر","خ","ج","س"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],":","ص","م","dd MMMM, yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM, yyyy")),this._cultures["en-IN"]=new r("en-IN",new t.NumberFormatInfo(".",2,",",[3,2],1,2,".",",",[3,2],12,2,"₹",2,".",",",[3,2],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["Su","Mo","Tu","We","Th","Fr","Sa"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dd MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM, yyyy")),this._cultures["es-BO"]=new r("es-BO",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],14,2,"$b",2,",",".",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["en-MY"]=new r("en-MY",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"RM",2,".",",",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, d MMMM, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["S","M","T","W","T","F","S"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, d MMMM, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["es-SV"]=new r("es-SV",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3,0],0,0,"$",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["en-SG"]=new r("en-SG",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"$",2,".",",",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, d MMMM, yyyy",["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["January","February","March","April","May","June","July","August","September","October","November","December",""],["S","M","T","W","T","F","S"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],["January","February","March","April","May","June","July","August","September","October","November","December",""],":","AM","PM","dddd, d MMMM, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["es-HN"]=new r("es-HN",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3,0],12,2,"L.",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["es-NI"]=new r("es-NI",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3,0],14,2,"C$",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["es-PR"]=new r("es-PR",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3,0],14,2,"$",2,".",",",[3],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("dd/MM/yyyy","/","dddd, dd' de 'MMMM' de 'yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sá"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","a.m.","p.m.","dddd, dd' de 'MMMM' de 'yyyy hh:mm:ss tt","hh:mm tt","hh:mm:ss tt","MMMM' de 'yyyy")),this._cultures["es-US"]=new r("es-US",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],0,0,"$",2,".",",",[3,0],0,0,"%","‰","Infinito","+","NeuN","-Infinito","-"),new t.DateTimeFormatInfo("M/d/yyyy","/","dddd, MMMM dd, yyyy",["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],["do","lu","ma","mi","ju","vi","sa"],["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",""],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre",""],":","AM","PM","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM' de 'yyyy")),this._cultures["bs-Cyrl"]=new r("bs-Cyrl",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"КМ",2,",",".",[3],0,0,"%","‰","+бесконачност","+","NaN","-бесконачност","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["недјеља","понедјељак","уторак","сриједа","четвртак","петак","субота"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],["н","п","у","с","ч","п","с"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["bs-Latn"]=new r("bs-Latn",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"KM",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["sr-Cyrl"]=new r("sr-Cyrl",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"Дин.",2,",",".",[3],1,1,"%","‰","+бесконачност","+","NaN","-бесконачност","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["недеља","понедељак","уторак","среда","четвртак","петак","субота"],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],["не","по","ут","ср","че","пе","су"],["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец",""],["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["sr-Latn"]=new r("sr-Latn",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"Din.",2,",",".",[3],1,1,"%","‰","+beskonačnost","+","NaN","-beskonačnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.smn=new r("smn",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","MMMM d'. p. 'yyyy",["pasepeivi","vuossargâ","majebargâ","koskokko","tuorâstâh","vástuppeivi","lávárdâh"],["uđđâivemáánu","kuovâmáánu","njuhčâmáánu","cuáŋuimáánu","vyesimáánu","kesimáánu","syeinimáánu","porgemáánu","čohčâmáánu","roovvâdmáánu","skammâmáánu","juovlâmáánu",""],["p","v","m","k","t","v","l"],["uđiv","kuov","njuh","cuoŋ","vyes","kesi","syei","porg","čoh","roov","ska","juov",""],["uđđâivemáánu","kuovâmáánu","njuhčâmáánu","cuáŋuimáánu","vyesimáánu","kesimáánu","syeinimáánu","porgemáánu","čohčâmáánu","roovvâdmáánu","skammâmáánu","juovlâmáánu",""],":","","","MMMM d'. p. 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["az-Cyrl"]=new r("az-Cyrl",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₼",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["Базар","Базар ертәси","Чәршәнбә ахшамы","Чәршәнбә","Ҹүмә ахшамы","Ҹүмә","Шәнбә"],["Јанвар","Феврал","Март","Апрел","Мај","Ијун","Ијул","Август","Сентјабр","Октјабр","Нојабр","Декабр",""],["Б","Бе","Ча","Ч","Ҹа","Ҹ","Ш"],["Јан","Фев","Мар","Апр","Мај","Ијун","Ијул","Авг","Сен","Окт","Ноя","Дек",""],["јанвар","феврал","март","апрел","мај","ијун","ијул","август","сентјабр","октјабр","нојабр","декабр",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.sms=new r("sms",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"€",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","MMMM d'. p. 'yyyy",["pâ´sspei´vv","vuõssargg","mââibargg","seärad","nelljdpei´vv","piâtnâc","sue´vet"],["ođđee´jjmään","tä´lvvmään","pâ´zzlâšttammään","njuhččmään","vue´ssmään","ǩie´ssmään","suei´nnmään","på´rǧǧmään","čõhččmään","kålggmään","skamm´mään","rosttovmään",""],["p","v","m","s","n","p","s"],["ođjm","tä´lvv","pâzl","njuh","vue","ǩie","suei","på´r","čõh","kålg","ska","rost",""],["ođđee´jjmannu","tä´lvvmannu","pâ´zzlâšttammannu","njuhččmannu","vue´ssmannu","ǩie´ssmannu","suei´nnmannu","på´rǧǧmannu","čõhččmannu","kålggmannu","skamm´mannu","rosttovmannu",""],":","","","MMMM d'. p. 'yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.zh=new r("zh",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,0,"¥",2,".",",",[3],1,1,"%","‰","正无穷大","+","非数字","负无穷大","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures.nn=new r("nn",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d. MMMM yyyy",["søndag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],["sø","må","ty","on","to","fr","la"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.bs=new r("bs",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"KM",2,",",".",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["az-Latn"]=new r("az-Latn",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"₼",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d MMMM yyyy",["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"],["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avgust","Sentyabr","Oktyabr","Noyabr","Dekabr",""],["B","Be","Ça","Ç","Ca","C","Ş"],["Yan","Fev","Mar","Apr","May","İyun","İyul","Avg","Sen","Okt","Noy","Dek",""],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.sma=new r("sma",new t.NumberFormatInfo(",",2," ",[3],1,2,",",".",[3],8,3,"kr",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","MMMM d'. b. 'yyyy",["aejlege","måanta","dæjsta","gaskevåhkoe","duarsta","bearjadahke","laavvardahke"],["tsïengele","goevte","njoktje","voerhtje","suehpede","ruffie","snjaltje","mïetske","skïerede","golke","rahka","goeve",""],["a","m","d","g","d","b","l"],["tsïen","goevt","njok","voer","sueh","ruff","snja","mïet","skïer","golk","rahk","goev",""],["tsïengelen","goevten","njoktjen","voerhtjen","suehpeden","ruffien","snjaltjen","mïetsken","skïereden","golken","rahkan","goeven",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["uz-Cyrl"]=new r("uz-Cyrl",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],8,3,"сўм",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","yyyy 'йил' d-MMMM",["якшанба","душанба","сешанба","чоршанба","пайшанба","жума","шанба"],["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр",""],["я","д","с","ч","п","ж","ш"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек",""],["январ","феврал","март","апрел","май","июн","июл","август","сентябр","октябр","ноябр","декабр",""],":","","","yyyy 'йил' d-MMMM HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["mn-Cyrl"]=new r("mn-Cyrl",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],5,1,"₮",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yy.MM.dd",".","yyyy 'оны' MMMM d",["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"],["1 дүгээр сар","2 дугаар сар","3 дугаар сар","4 дүгээр сар","5 дугаар сар","6 дугаар сар","7 дугаар сар","8 дугаар сар","9 дүгээр сар","10 дугаар сар","11 дүгээр сар","12 дугаар сар",""],["Ня","Да","Мя","Лх","Пү","Ба","Бя"],["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII",""],["1 дүгээр сарын","2 дугаар сарын","3 дугаар сарын","4 дүгээр сарын","5 дугаар сарын","6 дугаар сарын","7 дугаар сарын","8 дугаар сарын","9 дүгээр сарын","10 дугаар сарын","11 дүгээр сарын","12 дугаар сарын",""],":","","","yyyy 'оны' MMMM d H:mm:ss","H:mm","H:mm:ss","yyyy 'он' MMMM")),this._cultures["iu-Cans"]=new r("iu-Cans",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3,0],0,0,"$",2,".",",",[3,0],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd,MMMM dd,yyyy",["ᓈᑦᑏᖑᔭ","ᓇᒡᒐᔾᔭᐅ","ᐊᐃᑉᐱᖅ","ᐱᖓᑦᓯᖅ","ᓯᑕᒻᒥᖅ","ᑕᓪᓕᕐᒥᖅ","ᓯᕙᑖᕐᕕᒃ"],["ᔮᓐᓄᐊᕆ","ᕖᕝᕗᐊᕆ","ᒫᑦᓯ","ᐄᐳᕆ","ᒪᐃ","ᔫᓂ","ᔪᓚᐃ","ᐋᒡᒌᓯ","ᓯᑎᐱᕆ","ᐅᑐᐱᕆ","ᓄᕕᐱᕆ","ᑎᓯᐱᕆ",""],["ᓈ","ᓇ","ᐊ","ᐱ","ᓯ","ᑕ","ᓯ"],["ᔮᓐᓄ","ᕖᕝᕗ","ᒫᑦᓯ","ᐄᐳᕆ","ᒪᐃ","ᔫᓂ","ᔪᓚᐃ","ᐋᒡᒌ","ᓯᑎᐱ","ᐅᑐᐱ","ᓄᕕᐱ","ᑎᓯᐱ",""],["ᔮᓐᓄᐊᕆ","ᕖᕝᕗᐊᕆ","ᒫᑦᓯ","ᐄᐳᕆ","ᒪᐃ","ᔫᓂ","ᔪᓚᐃ","ᐋᒡᒌᓯ","ᓯᑎᐱᕆ","ᐅᑐᐱᕆ","ᓄᕕᐱᕆ","ᑎᓯᐱᕆ",""],":","AM","PM","dddd,MMMM dd,yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM,yyyy")),this._cultures["zh-Hant"]=new r("zh-Hant",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"HK$",2,".",",",[3],1,1,"%","‰","正無窮大","+","非數字","負無窮大","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures.nb=new r("nb",new t.NumberFormatInfo(",",2," ",[3],1,2,","," ",[3],12,2,"kr",2,","," ",[3],0,0,"%","‰","INF","+","NaN","-INF","-"),new t.DateTimeFormatInfo("dd.MM.yyyy",".","d. MMMM yyyy",["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],["sø","ma","ti","on","to","fr","lø"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des",""],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember",""],":","","","d. MMMM yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures.sr=new r("sr",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"Din.",2,",",".",[3],1,1,"%","‰","+beskonačnost","+","NaN","-beskonačnost","-"),new t.DateTimeFormatInfo("d.M.yyyy",".","d. MMMM yyyy",["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],["ne","po","ut","sr","če","pe","su"],["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec",""],["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar",""],":","","","d. MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures["tg-Cyrl"]=new r("tg-Cyrl",new t.NumberFormatInfo(",",2," ",[3,0],1,2,";"," ",[3,0],8,3,"т.р.",2,","," ",[3,0],1,1,"%","‰","бесконечность","+","NaN","-бесконечность","-"),new t.DateTimeFormatInfo("dd.MM.yy",".","d MMMM yyyy",["Яш","Душанбе","Сешанбе","Чоршанбе","Панҷшанбе","Ҷумъа","Шанбе"],["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр",""],["Яш","Дш","Сш","Чш","Пш","Ҷм","Шн"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек",""],["январи","феврали","марти","апрели","маи","июни","июли","августи","сентябри","октябри","ноябри","декабри",""],":","","","d MMMM yyyy H:mm:ss","H:mm","H:mm:ss","MMMM yyyy")),this._cultures.dsb=new r("dsb",new t.NumberFormatInfo(",",2,".",[3],1,2,",",".",[3],8,3,"€",2,",",".",[3],0,0,"%","‰","+njekońcne","+","njedefinowane","-njekońcne","-"),new t.DateTimeFormatInfo("d. M. yyyy",". ","dddd, 'dnja' d. MMMM yyyy",["njeźela","ponjeźele","wałtora","srjoda","stwortk","pětk","sobota"],["januar","februar","měrc","apryl","maj","junij","julij","awgust","september","oktober","nowember","december",""],["n","p","w","s","s","p","s"],["jan","feb","měr","apr","maj","jun","jul","awg","sep","okt","now","dec",""],["januara","februara","měrca","apryla","maja","junija","julija","awgusta","septembra","oktobra","nowembra","decembra",""],":","","","dddd, 'dnja' d. MMMM yyyy H:mm:ss","H.mm 'goź.'","H:mm:ss","MMMM yyyy")),this._cultures.smj=new r("smj",new t.NumberFormatInfo(",",2," ",[3],1,2,",",".",[3],8,3,"kr",2,","," ",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("yyyy-MM-dd","-","MMMM d'. b. 'yyyy",["ájllek","mánnodahka","dijstahka","gasskavahkko","duorastahka","bierjjedahka","lávvodahka"],["ådåjakmánno","guovvamánno","sjnjuktjamánno","vuoratjismánno","moarmesmánno","biehtsemánno","sjnjilltjamánno","bårggemánno","ragátmánno","gålgådismánno","basádismánno","javllamánno",""],["á","m","d","g","d","b","l"],["ådåj","guov","snju","vuor","moar","bieh","snji","bårg","ragá","gålg","basá","javl",""],["ådåjakmáno","guovvamáno","sjnjuktjamáno","vuoratjismáno","moarmesmáno","biehtsemáno","sjnjilltjamáno","bårggemáno","ragátmáno","gålgådismáno","basádismáno","javllamáno",""],":","","","MMMM d'. b. 'yyyy HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["uz-Latn"]=new r("uz-Latn",new t.NumberFormatInfo(",",2," ",[3],1,0,","," ",[3],8,3,"so'm",2,","," ",[3],1,1,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("dd/MM yyyy","/","yyyy 'yil' d-MMMM",["yakshanba","dushanba","seshanba","chorshanba","payshanba","juma","shanba"],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],["ya","d","s","ch","p","j","sh"],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],["yanvar","fevral","mart","aprel","may","iyun","iyul","avgust","sentyabr","oktyabr","noyabr","dekabr",""],":","","","yyyy 'yil' d-MMMM HH:mm:ss","HH:mm","HH:mm:ss","MMMM yyyy")),this._cultures["mn-Mong"]=new r("mn-Mong",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3,0],2,0,"¥",2,".",",",[3,0],1,1,"%","‰","ᠡᠶ᠋ᠡᠷᠬᠦ ᠬᠢᠵᠠᠭᠠᠷᠭᠦᠢ ᠶᠠᠬᠡ","+","ᠲᠤᠭᠠᠠ ᠪᠤᠰᠤ","ᠰᠦᠬᠡᠷᠬᠦ ᠬᠢᠵᠠᠭᠠᠷᠭᠦᠢ ᠶᠡᠬᠡ","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'ᠣᠨ ᠤ᠋' M'ᠰᠠᠷ᠎ᠠ  ᠢᠢᠨ 'd' ᠤ᠋ ᠡᠳᠦᠷ'",["ᠭᠠᠷᠠᠭ ᠤᠨ ᠡᠳᠦᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠨᠢᠭᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠬᠣᠶᠠᠷ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠭᠤᠷᠪᠠᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠳᠥᠷᠪᠡᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠲᠠᠪᠤᠨ","ᠭᠠᠷᠠᠭ ᠤᠨ ᠵᠢᠷᠭᠤᠭᠠᠨ"],["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],["ᠡ‍","ᠨᠢ‍","ᠬᠣ‍","ᠭᠤ‍","ᠳᠥ‍","ᠲᠠ‍","ᠵᠢ‍"],["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],["ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠭᠤᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠦᠷᠪᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠠᠪᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠵᠢᠷᠭᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠲᠤᠯᠤᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠨᠠᠢᠮᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠶᠢᠰᠦᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠨᠢᠭᠡᠳᠦᠭᠡᠷ ᠰᠠᠷ᠎ᠠ","ᠠᠷᠪᠠᠨ ᠬᠤᠶ᠋ᠠᠳᠤᠭᠠᠷ ᠰᠠᠷ᠎ᠠ",""],":","","","yyyy'ᠣᠨ ᠤ᠋' M'ᠰᠠᠷ᠎ᠠ  ᠢᠢᠨ 'd' ᠤ᠋ ᠡᠳᠦᠷ' H:mm:ss","H:mm","H:mm:ss","yyyy'ᠣᠨ' M'ᠰᠠᠷ᠎ᠠ'")),this._cultures["iu-Latn"]=new r("iu-Latn",new t.NumberFormatInfo(".",2,",",[3,0],1,2,".",",",[3],0,0,"$",2,".",",",[3,0],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/MM/yyyy","/","ddd, MMMM dd,yyyy",["Naattiinguja","Naggajjau","Aippiq","Pingatsiq","Sitammiq","Tallirmiq","Sivataarvik"],["Jaannuari","Viivvuari","Maatsi","Iipuri","Mai","Juuni","Julai","Aaggiisi","Sitipiri","Utupiri","Nuvipiri","Tisipiri",""],["N","N","A","P","S","T","S"],["Jan","Viv","Mas","Ipu","Mai","Jun","Jul","Agi","Sii","Uut","Nuv","Tis",""],["Jaannuari","Viivvuari","Maatsi","Iipuri","Mai","Juuni","Julai","Aaggiisi","Sitipiri","Utupiri","Nuvipiri","Tisipiri",""],":","AM","PM","ddd, MMMM dd,yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["tzm-Latn"]=new r("tzm-Latn",new t.NumberFormatInfo(",",2,".",[3],3,2,".",",",[3],8,3,"DZD",2,",",".",[3],0,0,"%","‰","+Infini","+","Non Numérique","-Infini","-"),new t.DateTimeFormatInfo("dd-MM-yyyy","-","dd MMMM, yyyy",["Acer","Arime","Aram","Ahad","Amhadh","Sem","Sedh"],["Yenayer","Furar","Maghres","Yebrir","Mayu","Yunyu","Yulyu","Ghuct","Cutenber","Ktuber","Wambir","Dujanbir",""],["Ac","Ar","Ar","Ah","Am","Se","Se"],["Yen","Fur","Mag","Yeb","May","Yun","Yul","Ghu","Cut","Ktu","Wam","Duj",""],["Yenayer","Furar","Maghres","Yebrir","Mayu","Yunyu","Yulyu","Ghuct","Cutenber","Ktuber","Wambir","Dujanbir",""],":","","","dd MMMM, yyyy H:mm:ss","H:mm","H:mm:ss","MMMM, yyyy")),this._cultures["ha-Latn"]=new r("ha-Latn",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,2,"N",2,".",",",[3],0,0,"%","‰","Infinity","+","NaN","-Infinity","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","dddd, MMMM dd, yyyy",["Lahadi","Litinin","Talata","Laraba","Alhamis","Juma'a","Asabar"],["Januwaru","Febreru","Maris","Afrilu","Mayu","Yuni","Yuli","Agusta","Satumba","Oktocba","Nuwamba","Disamba",""],["L","L","T","L","A","J","A"],["Jan","Feb","Mar","Afr","May","Yun","Yul","Agu","Sat","Okt","Nuw","Dis",""],["Januwaru","Febreru","Maris","Afrilu","Mayu","Yuni","Yuli","Agusta","Satumba","Oktocba","Nuwamba","Disamba",""],":","Safe","Yamma","dddd, MMMM dd, yyyy h:mm:ss tt","h:mm tt","h:mm:ss tt","MMMM, yyyy")),this._cultures["zh-CHS"]=new r("zh-CHS",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],2,0,"¥",2,".",",",[3],1,1,"%","‰","正无穷大","+","非数字","负无穷大","-"),new t.DateTimeFormatInfo("yyyy/M/d","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'")),this._cultures["zh-CHT"]=new r("zh-CHT",new t.NumberFormatInfo(".",2,",",[3],1,2,".",",",[3],0,0,"HK$",2,".",",",[3],1,1,"%","‰","正無窮大","+","非數字","負無窮大","-"),new t.DateTimeFormatInfo("d/M/yyyy","/","yyyy'年'M'月'd'日'",["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["日","一","二","三","四","五","六"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""],":","上午","下午","yyyy'年'M'月'd'日' H:mm:ss","H:mm","H:mm:ss","yyyy'年'M'月'"))}return this._cultures},enumerable:!0,configurable:!0}),r}();t.CultureInfo=r}(r=t.Globalization||(t.Globalization={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t,r,n,i,a,o,s,u,m,l,y,d,h,c){this.shortDatePattern=e,this.dateSeparator=t,this.longDatePattern=r,this.dayNames=n,this.monthNames=i,this.shortestDayNames=a,this.abbreviatedMonthNames=o,this.monthGenitiveNames=s,this.timeSeparator=u,this.AMDesignator=m,this.PMDesignator=l,this.fullDateTimePattern=y,this.shortTimePattern=d,this.longTimePattern=h,this.yearMonthPattern=c}return e}();e.DateTimeFormatInfo=t}(t=e.Globalization||(e.Globalization={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t,r,n,i,a,o,s,u,m,l,y,d,h,c,f,p,M,b,g,S,v,w,N,j){if(this.numberDecimalSeparator=".",this.numberDecimalDigits=2,this.numberGroupSeparator=" ",this.numberGroupSizes=[3],this.numberNegativePattern=1,this.currencyDecimalDigits=2,this.currencyDecimalSeparator=",",this.currencyGroupSeparator=" ",this.currencyGroupSizes=[3],this.currencyNegativePattern=5,this.currencyPositivePattern=1,this.currencySymbol="$",this.percentDecimalDigits=2,this.percentDecimalSeparator=",",this.percentGroupSeparator=" ",this.percentGroupSizes=[3],this.percentNegativePattern=1,this.percentPositivePattern=1,this.percentSymbol="%",this.perMilleSymbol="‰",this.positiveInfinitySymbol="Infinity",this.positiveSign="+",this.NaNSymbol="NaN",this.negativeInfinitySymbol="-Infinity",this.negativeSign="-",!e)return;this.numberDecimalSeparator=e,this.numberDecimalDigits=t,this.numberGroupSeparator=r,this.numberGroupSizes=n,this.numberNegativePattern=i,this.currencyDecimalDigits=a,this.currencyDecimalSeparator=o,this.currencyGroupSeparator=s,this.currencyGroupSizes=u,this.currencyNegativePattern=m,this.currencyPositivePattern=l,this.currencySymbol=y,this.percentDecimalDigits=d,this.percentDecimalSeparator=h,this.percentGroupSeparator=c,this.percentGroupSizes=f,this.percentNegativePattern=p,this.percentPositivePattern=M,this.percentSymbol=b,this.perMilleSymbol=g,this.positiveInfinitySymbol=S,this.positiveSign=v,this.NaNSymbol=w,this.negativeInfinitySymbol=N,this.negativeSign=j}return e.prototype.getFormat=function(t){return t instanceof e?this:null},e}();e.NumberFormatInfo=t}(t=e.Globalization||(e.Globalization={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Begin=0]="Begin",e[e.Current=1]="Current",e[e.End=2]="End"}(t=e.SeekOrigin||(e.SeekOrigin={}))}(t=e.IO||(e.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return t.getFile=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=""),e.Http.getFile(t,r,n)},t.getFileAsync=function(t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i=""),e.Http.getFileAsync(t,r,n,i)},t.saveFile=function(e,t){},t}();e.File=t}(t=e.IO||(e.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=function(){function t(){}return t.getFile=function(t,r,n){void 0===r&&(r=!1),void 0===n&&(n="");try{var i=new XMLHttpRequest;try{i.open("get",t,!1),String.isNullOrEmpty(n)||i.setRequestHeader("Content-Type",n)}catch(r){e.System.StiError.showError('File "'+t+'" not found',!0)}var a=!1;if(r){try{i.responseType="arraybuffer",a=!0}catch(e){a=!1}a||("overrideMimeType"in i?i.overrideMimeType("text/plain; charset=x-user-defined"):i.setRequestHeader("Accept-Charset","x-user-defined"))}if(i.send(),200==i.status){if(r){if(a){return new Uint8Array(i.response,0)}for(var o=new ArrayBuffer(i.response.length),s=new Uint8Array(o),u=0,m=i.response.length;u<m;u++)s[u]=255&i.response.charCodeAt(u);return s}return i.responseText}}catch(e){}},t.getFileAsync=function(t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i="");try{var a=new XMLHttpRequest;try{a.open("get",r,!0),String.isNullOrEmpty(i)||a.setRequestHeader("Content-Type",i)}catch(n){e.System.StiError.showError('File "'+r+'" not found',!0),t(null)}var o=!1;if(n){try{a.responseType="arraybuffer",o=!0}catch(e){o=!1}o||("overrideMimeType"in a?a.overrideMimeType("text/plain; charset=x-user-defined"):a.setRequestHeader("Accept-Charset","x-user-defined"))}a.onreadystatechange=function(){if(a.readyState!=XMLHttpRequest.DONE)return;if(200==a.status){if(n){if(o){var e=new Uint8Array(a.response,0);return void t(e)}for(var r=new ArrayBuffer(a.response.length),i=new Uint8Array(r),s=0,u=a.response.length;s<u;s++)i[s]=255&a.response.charCodeAt(s);return void t(i)}return void t(a.responseText)}},a.send()}catch(e){t(null)}},t}();t.Http=r}(r=t.IO||(t.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(e){void 0===e&&(e=null),this._origin=0,this._position=0,this._buffer=[],null!=e&&this._buffer.addRange(e)}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._buffer.length-this._origin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canSeek",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canWrite",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.setLength=function(e){this._buffer=this._buffer.slice(0,e)},t.prototype.toArray=function(){return this._buffer},t.prototype.writeTo=function(e){e.write(this._buffer,0,null!=this._buffer?this._buffer.length:0)},t.prototype.writeByte=function(e){this._buffer[this._position++]=e},t.prototype.write=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length);for(var n=0;n<r;n++)this._buffer[this._position++]=e[t+n]},t.prototype.writeBytes=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length);for(var n=0;n<r;n++)this._buffer[this._position++]=e[t+n]},t.prototype.writeLine=function(e){void 0===e&&(e=null);for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=null;String.isNullOrEmpty(e)||(n=String.stiFormat.apply(String,[e].concat(t))),this.writeString(n,!0)},t.prototype.writeString=function(e,t){if(void 0===t&&(t=!1),null!=e)for(var r=0;r<e.length;r++)this._buffer[this._position++]=255&e.charCodeAt(r);t&&(this._buffer[this._position++]=13,this._buffer[this._position++]=10)},t.prototype.read=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length);for(var n=t;n<t+r;n++){if(this._position+1>this.length)return n-t;e[n]=this._buffer[this._position++]}return r},t.prototype.seek=function(r,n){if(r>t.memStreamMaxLength)throw"ArgumentOutOfRange_StreamLength";var i;switch(n){case e.SeekOrigin.Begin:if(i=this._origin+r,r<0||i<this._origin)throw"IO.IO_SeekBeforeBegin";this._position=i;break;case e.SeekOrigin.Current:if(i=this._position+r,this._position+r<this._origin||i<this._origin)throw"IO.IO_SeekBeforeBegin";this._position=i;break;case e.SeekOrigin.End:if(i=this.length+r,this.length+r<this._origin||i<this._origin)throw"IO.IO_SeekBeforeBegin";this._position=i;break;default:throw"Argument_InvalidSeekOrigin"}return this._position},t.prototype.flush=function(){},t.prototype.close=function(){this._position=0,this._buffer=null},t.memStreamMaxLength=Number.MAX_VALUE,t}();e.MemoryStream=t}(t=e.IO||(e.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.Combine=function(e,t){if(!e)return t;if(!t)return e;return e.trimEnd("\\"),t.trimStart("\\"),e+"\\"+t},e.getFileNameWithoutExtension=function(e){var t=e.lastIndexOf(".");return t>0&&(e=e.substr(0,t)),t=e.lastIndexOf("/"),t>0&&(e=e.substring(t+1)),t=e.lastIndexOf("\\"),t>0&&(e=e.substring(t+1)),e},e}();e.Path=t}(t=e.IO||(e.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(t){this.stream=t,this.stream.seek(0,e.SeekOrigin.Begin)}return t.prototype.read=function(){var e=[];if(this.stream.read(e,0,1)>0)return String.fromCharCode(e[0]);return null},t.prototype.readLine=function(){var e,t="",r=!1;while(null!=(e=this.read()))if("\r"==e)r=!0;else{if(r&&"\n"==e)return t;t+=e,r=!1}if(t.length>0)return t;return null},t}();e.StreamReader=t}(t=e.IO||(e.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t){void 0===t&&(t=null),this._webName="",this._encodingName=e,this._webName=null==t||""==t?e:t}return Object.defineProperty(e.prototype,"webName",{get:function(){return this._webName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"encodingName",{get:function(){return this._encodingName},enumerable:!0,configurable:!0}),e.prototype.getBytes=function(e){if("ASCII"==this._encodingName)return e.toBytesArray();return e.toUnicodeString().toBytesArray()},e.prototype.getString=function(t){if("Windows-1251"==this._encodingName)return e.fromCodePageToUnicode(1251,t);for(var r=String.empty,n=0,i=t;n<i.length;n++){var a=i[n];r+=String.fromCharCode(a)}if("ASCII"==this._encodingName)return r;return r=r.fromUnicodeString(),65279==r.charCodeAt(0)&&(r=r.substring(1)),r},e.getEncoding=function(t){switch(t){case e.CodePageDefault:return e.Default;case e.CodePageUnicode:return e.Unicode;case e.CodePageBigEndian:return e.BigEndianUnicode;case e.CodePageUTF7:return e.UTF7;case e.CodePageUTF8:return e.UTF8;case e.CodePageWindows1251:return e.Windows1251;case e.CodePageASCII:return e.ASCII}},e.fromCodePageToUnicode=function(e,t){var r=null;1251==e&&(r=this._windows_1251);for(var n=String.empty,i=0,a=t;i<a.length;i++){var o=a[i];n+=String.fromCharCode(o<128?o:r[o-128])}return n},e.CodePageDefault=0,e.CodePageNoOEM=1,e.CodePageNoMac=2,e.CodePageNoThread=3,e.CodePageNoSymbol=42,e.CodePageUnicode=1200,e.CodePageBigEndian=1201,e.CodePageWindows1251=1251,e.CodePageWindows1252=1252,e.CodePageMacGB2312=10008,e.CodePageGB2312=20936,e.CodePageMacKorean=10003,e.CodePageDLLKorean=20949,e.ISO2022JP=50220,e.ISO2022JPESC=50221,e.ISO2022JPSISO=50222,e.ISOKorean=50225,e.ISOSimplifiedCN=50227,e.EUCJP=51932,e.ChineseHZ=52936,e.DuplicateEUCCN=51936,e.EUCCN=936,e.EUCKR=51949,e.CodePageASCII=20127,e.ISO_8859_1=28591,e.ISCIIAssemese=57006,e.ISCIIBengali=57003,e.ISCIIDevanagari=57002,e.ISCIIGujarathi=57010,e.ISCIIKannada=57008,e.ISCIIMalayalam=57009,e.ISCIIOriya=57007,e.ISCIIPanjabi=57011,e.ISCIITamil=57004,e.ISCIITelugu=57005,e.GB18030=54936,e.ISO_8859_8I=38598,e.ISO_8859_8_Visual=28598,e.ENC50229=50229,e.CodePageUTF7=65e3,e.CodePageUTF8=65001,e.CodePageUTF32=12e3,e.CodePageUTF32BE=12001,e.ASCII=new e("ASCII","US-ASCII"),e.BigEndianUnicode=new e("BigEndianUnicode"),e.Default=new e("Unicode","utf-8"),e.Unicode=new e("Unicode","utf-8"),e.UTF32=new e("UTF32","utf-32"),e.UTF7=new e("UTF7","utf-7"),e.UTF8=new e("UTF8","utf-8"),e.Windows1251=new e("Windows-1251","windows-1251"),e._windows_1251=[1026,1027,8218,1107,8222,8230,8224,8225,8364,8240,1033,8249,1034,1036,1035,1039,1106,8216,8217,8220,8221,8226,8211,8212,32,8482,1113,8250,1114,1116,1115,1119,160,1038,1118,1032,164,1168,166,167,1025,169,1028,171,172,173,174,1031,176,177,1030,1110,1169,181,182,183,1105,8470,1108,187,1112,1029,1109,1111,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103],e}();e.Encoding=t}(t=e.Text||(e.Text={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e){void 0===e&&(e=null),this.isNew=!0,this.partArray=null!=e?[e]:[],this.isNew=!0}return e.prototype.appendSingle=function(e){null!==e&&void 0!==e&&(e=e.toString(),this.partArray.push(e),this.isNew=!0)},e.prototype.appendThese=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.appendSingle(n)}return this},e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.appendThese(e),this},e.prototype.appendCount=function(e,t){if(void 0===t&&(t=1),null!==e&&void 0!==e){e=e.toString();for(var r=0;r<t;r++)this.partArray.push(e);this.isNew=!0}return this},e.prototype.appendLine=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.appendLines(e),this},e.prototype.appendLines=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];null!==n&&void 0!==n&&(this.appendSingle(n),this.partArray.push("\r\n"),this.isNew=!0)}return this},e.prototype.appendFormat=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this.append(String.stiFormat.apply(String,[e].concat(t)))},e.prototype.insert=function(e,t,r){void 0===r&&(r=1);for(var n=e;n<e+r;n++)this.partArray.insert(n,t),this.isNew=!0;return this},e.prototype.remove=function(e,t){for(var r=e;r<e+t;r++)this.partArray.removeAt(e),this.isNew=!0;return this},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.partArray.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){var e=0;for(var t in this.partArray)e+=this.partArray[t].length;return e},set:function(e){var t=this.length;if(e>t){for(var r="",n=0;n<e-t;n++)r+=" ";this.partArray.push(r)}else if(e<t){var i=this.toString();this.clear(),this.append(i.substr(0,e))}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.isNew&&(this.latest=this.partArray.join("")),this.isNew=!1,this.latest},e.prototype.join=function(e){return this.partArray.join(e)},e.prototype.clear=function(){this.partArray.length=0,this.isNew=!0},e.prototype.dispose=function(){this.clear()},e.prototype.charAt=function(e){return this.toString().charAt(e)},e.prototype.charCodeAt=function(e){return this.toString().charCodeAt(e)},e.prototype.setByIndex=function(e,t){var r=this.toString();r=(e>0?r.substring(0,e):"")+t+(e+1<r.length?r.substring(e+1):""),this.clear(),this.append(r)},e.prototype.formatError=function(e){throw void 0===e&&(e=""),"Format_InvalidString"+e},e.prototype.appendFormatHelper=function(t,r,n){if(null==r)throw"format: ArgumentNullException";var i=0,a=r.length,o=String.fromCharCode(0),s=null;while(!0){var u=i,m=i;while(i<a){if(o=r[i],i++,"}"==o&&(i<a&&"}"==r[i]?i++:this.formatError()),"{"==o){if(!(i<a&&"{"==r[i])){i--;break}i++}this.append(o)}if(i==a)break;i++,(i==a||(o=r[i])<"0"||o>"9")&&this.formatError();var l=0;do{l=10*l+o.charCodeAt(0)-"0".charCodeAt(0),i++,i==a&&this.formatError(),o=r[i]}while(o>="0"&&o<="9"&&l<1e6);if(l>=n.length)throw new this.formatError("Format_IndexOutOfRange");while(i<a&&" "==(o=r[i]))i++;var y=!1,d=0;if(","==o){i++;while(i<a&&" "==r[i])i++;i==a&&this.formatError(),o=r[i],"-"==o&&(y=!0,i++,i==a&&this.formatError(),o=r[i]),(o<"0"||o>"9")&&this.formatError();do{d=10*d+o.charCodeAt(0)-"0".charCodeAt(0),i++,i==a&&this.formatError(),o=r[i]}while(o>="0"&&o<="9"&&d<1e6)}while(i<a&&" "==(o=r[i]))i++;var h=n.get(l),c=null;if(":"==o){i++,u=i,m=i;while(!0){if(i==a&&this.formatError(),o=r[i],i++,"{"==o)i<a&&"{"==r[i]?i++:this.formatError();else if("}"==o){if(!(i<a&&"}"==r[i])){i--;break}i++}null==c&&(c=new e),c.append(o)}}"}"!=o&&this.formatError(),i++;var f=null,p=null;if(null==p){null!=null?(null==f&&null!=c&&(f=c.toString()),p=null):null!=h&&(p=h.toString())}null==p&&(p=String.empty);var M=d-p.length;!y&&M>0&&this.append(" ",M),this.append(p),y&&M>0&&this.append(" ",M)}return this},e.prototype.replace=function(e,t){return this.isNew=!0,this.partArray=[this.toString().replaceAll(e,t)],this},e}();e.StringBuilder=t}(t=e.Text||(e.Text={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Text.StringBuilder,n=function(){function e(){this.sb=new r}return e.prototype.write=function(e){this.sb.append(e)},e.prototype.writeLine=function(e){void 0===e&&(e=null),null==e?this.sb.appendLine(""):this.sb.appendLine(e)},e.prototype.close=function(){},e.prototype.flush=function(){},e.prototype.getStringBuilder=function(){return this.sb},e}();t.TextWriter=n}(r=t.IO||(t.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Text.Encoding,n=e.System.IO.TextWriter,i=function(e){function t(t,n){void 0===n&&(n=r.UTF8);var i=e.call(this)||this;return i.cn="\r\n".toBytesArray(),i.stream=t,i.encoding=n,i}return __extends(t,e),t.prototype.writeLine=function(e){this.write(e),this.stream.write(this.cn)},t.prototype.write=function(e){null!=e&&this.stream.write(this.encoding.getBytes(e))},t.prototype.close=function(){this.stream.close()},t.prototype.flush=function(){this.stream.flush()},t}(n);t.StreamWriter=i}(r=t.IO||(t.IO={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,n=function(){function t(){}return t.convertStringToColorArray=function(e){for(var t=[],r=0,n=e.split(",");r<n.length;r++){var i=n[r];t.push(this.convertStringToColor(i))}return t},t.convertStringToColor=function(t){if(0==t.length)return r.transparent;if(-1!=t.indexOf(";")){t=t.trim();var n=t.split(";");try{if(4==n.length){var i=r.fromArgb(n[0].toNumber(),n[1].toNumber(),n[2].toNumber(),n[3].toNumber());if(0==i.r&&0==i.g&&0==i.b&&0==i.a)return r.transparent;return i}return 3==n.length?r.fromArgb(255,n[0].toNumber(),n[1].toNumber(),n[2].toNumber()):r.empty}catch(t){return e.System.StiError.showError(t,!1),r.empty}}else if(-1!=t.indexOf("[")){t=t.trim().substring(1,t.length-1).replace("]","");var n=t.split(":");try{if(4==n.length){var i=r.fromArgb(n[0].toNumber(),n[1].toNumber(),n[2].toNumber(),n[3].toNumber());if(0==i.r&&0==i.g&&0==i.b&&0==i.a)return r.transparent;return i}if(3==n.length){var i=r.fromArgb(255,n[0].toNumber(),n[1].toNumber(),n[2].toNumber());return i}return r.empty}catch(t){return e.System.StiError.showError(t,!1),r.empty}}else{if(-1==t.indexOf(", "))return this.getByName(t);t=t.trim();var n=t.split(", ");try{return 4==n.length?r.fromArgb(n[0].toNumber(),n[1].toNumber(),n[2].toNumber(),n[3].toNumber()):3==n.length?r.fromArgb(255,n[0].toNumber(),n[1].toNumber(),n[2].toNumber()):r.empty}catch(t){return e.System.StiError.showError(t,!1),r.empty}}},t.getByName=function(e){switch(e){case"AliceBlue":case"Alice Blue":return r.aliceBlue;case"AntiqueWhite":case"Antique White":return r.antiqueWhite;case"Aqua":return r.aqua;case"Aquamarine":return r.aquamarine;case"Azure":return r.azure;case"Beige":return r.beige;case"Bisque":return r.bisque;case"Black":return r.black;case"BlanchedAlmond":case"Blanched Almond":return r.blanchedAlmond;case"Blue":return r.blue;case"BlueViolet":case"Blue Violet":return r.blueViolet;case"Brown":return r.brown;case"BurlyWood":case"Burly Wood":return r.burlyWood;case"CadetBlue":case"Cadet Blue":return r.cadetBlue;case"Chartreuse":return r.chartreuse;case"Chocolate":return r.chocolate;case"Coral":return r.coral;case"CornflowerBlue":case"Cornflower Blue":return r.cornflowerBlue;case"Cornsilk":return r.cornsilk;case"Crimson":return r.crimson;case"Cyan":return r.cyan;case"DarkBlue":case"Dark Blue":return r.darkBlue;case"DarkCyan":case"Dark Cyan":return r.darkCyan;case"DarkGoldenrod":case"Dark Goldenrod":return r.darkGoldenrod;case"DarkGray":case"Dark Gray":return r.darkGray;case"DarkGreen":case"Dark Green":return r.darkGreen;case"DarkKhaki":case"Dark Khaki":return r.darkKhaki;case"DarkMagenta":case"Dark Magenta":return r.darkMagenta;case"DarkOliveGreen":case"Dark Olive Green":return r.darkOliveGreen;case"DarkOrange":case"Dark Orange":return r.darkOrange;case"DarkOrchid":case"Dark Orchid":return r.darkOrchid;case"DarkRed":case"Dark Red":return r.darkRed;case"DarkSalmon":case"Dark Salmon":return r.darkSalmon;case"DarkSeaGreen":case"Dark Sea Green":return r.darkSeaGreen;case"DarkSlateBlue":case"Dark Slate Blue":return r.darkSlateBlue;case"DarkSlateGray":case"Dark Slate Gray":return r.darkSlateGray;case"DarkTurquoise":case"Dark Turquoise":return r.darkTurquoise;case"DarkViolet":case"Dark Violet":return r.darkViolet;case"DeepPink":case"Deep Pink":return r.deepPink;case"DeepSkyBlue":case"Deep Sky Blue":return r.deepSkyBlue;case"DimGray":case"Dim Gray":return r.dimGray;case"DodgerBlue":case"Dodger Blue":return r.dodgerBlue;case"Firebrick":return r.firebrick;case"FloralWhite":case"Floral White":return r.floralWhite;case"ForestGreen":case"Forest Green":return r.forestGreen;case"Fuchsia":return r.fuchsia;case"Gainsboro":return r.gainsboro;case"GhostWhite":case"Ghost White":return r.ghostWhite;case"Gold":return r.gold;case"Goldenrod":return r.goldenrod;case"Gray":return r.gray;case"Green":return r.green;case"GreenYellow":case"Green Yellow":return r.greenYellow;case"Honeydew":return r.honeydew;case"HotPink":case"Hot Pink":return r.hotPink;case"IndianRed":case"Indian Red":return r.indianRed;case"Indigo":return r.indigo;case"Ivory":return r.ivory;case"Khaki":return r.khaki;case"Lavender":return r.lavender;case"LavenderBlush":case"Lavender Blush":return r.lavenderBlush;case"LawnGreen":case"Lawn Green":return r.lawnGreen;case"LemonChiffon":case"Lemon Chiffon":return r.lemonChiffon;case"LightBlue":case"Light Blue":return r.lightBlue;case"LightCoral":case"Light Coral":return r.lightCoral;case"LightCyan":case"Light Cyan":return r.lightCyan;case"LightGoldenrodYellow":case"Light Goldenrod Yellow":return r.lightGoldenrodYellow;case"LightGray":case"Light Gray":return r.lightGray;case"LightGreen":case"Light Green":return r.lightGreen;case"LightPink":case"Light Pink":return r.lightPink;case"LightSalmon":case"Light Salmon":return r.lightSalmon;case"LightSeaGreen":case"Light Sea Green":return r.lightSeaGreen;case"LightSkyBlue":case"Light Sky Blue":return r.lightSkyBlue;case"LightSlateGray":case"Light Slate Gray":return r.lightSlateGray;case"LightSteelBlue":case"Light Steel Blue":return r.lightSteelBlue;case"LightYellow":case"Light Yellow":return r.lightYellow;case"Lime":return r.lime;case"LimeGreen":case"Lime Green":return r.limeGreen;case"Linen":return r.linen;case"Magenta":return r.magenta;case"Maroon":return r.maroon;case"MediumAquamarine":case"Medium Aquamarine":return r.mediumAquamarine;case"MediumBlue":case"Medium Blue":return r.mediumBlue;case"MediumOrchid":case"Medium Orchid":return r.mediumOrchid;case"MediumPurple":case"Medium Purple":return r.mediumPurple;case"MediumSeaGreen":case"Medium Sea Green":return r.mediumSeaGreen;case"MediumSlateBlue":case"Medium Slate Blue":return r.mediumSlateBlue;case"MediumSpringGreen":case"Medium Spring Green":return r.mediumSpringGreen;case"MediumTurquoise":case"Medium Turquoise":return r.mediumTurquoise;case"MediumVioletRed":case"Medium Violet Red":return r.mediumVioletRed;case"MidnightBlue":case"Midnight Blue":return r.midnightBlue;case"MintCream":case"Mint Cream":return r.mintCream;case"MistyRose":case"Misty Rose":return r.mistyRose;case"Moccasin":return r.moccasin;case"NavajoWhite":case"Navajo White":return r.navajoWhite;case"Navy":return r.navy;case"OldLace":case"Old Lace":return r.oldLace;case"Olive":return r.olive;case"OliveDrab":case"Olive Drab":return r.oliveDrab;case"Orange":return r.orange;case"OrangeRed":case"Orange Red":return r.orangeRed;case"Orchid":return r.orchid;case"PaleGoldenrod":case"Pale Goldenrod":return r.paleGoldenrod;case"PaleGreen":case"Pale Green":return r.paleGreen;case"PaleTurquoise":case"Pale Turquoise":return r.paleTurquoise;case"PaleVioletRed":case"Pale Violet Red":return r.paleVioletRed;case"PapayaWhip":case"Papaya Whip":return r.papayaWhip;case"PeachPuff":case"Peach Puff":return r.peachPuff;case"Peru":return r.peru;case"Pink":return r.pink;case"Plum":return r.plum;case"PowderBlue":case"Powder Blue":return r.powderBlue;case"Purple":return r.purple;case"Red":return r.red;case"RosyBrown":case"Rosy Brown":return r.rosyBrown;case"RoyalBlue":case"Royal Blue":return r.royalBlue;case"SaddleBrown":case"Saddle Brown":return r.saddleBrown;case"Salmon":return r.salmon;case"SandyBrown":case"Sandy Brown":return r.sandyBrown;case"SeaGreen":case"Sea Green":return r.seaGreen;case"SeaShell":case"Sea Shell":return r.seaShell;case"Sienna":return r.sienna;case"Silver":return r.silver;case"SkyBlue":case"Sky Blue":return r.skyBlue;case"SlateBlue":case"Slate Blue":return r.slateBlue;case"SlateGray":case"Slate Gray":return r.slateGray;case"Snow":return r.snow;case"SpringGreen":case"Spring Green":return r.springGreen;case"SteelBlue":case"Steel Blue":return r.steelBlue;case"Tan":return r.tan;case"Teal":return r.teal;case"Thistle":return r.thistle;case"Tomato":return r.tomato;case"Turquoise":return r.turquoise;case"Violet":return r.violet;case"Wheat":return r.wheat;case"White":return r.white;case"WhiteSmoke":case"White Smoke":return r.whiteSmoke;case"Yellow":return r.yellow;case"YellowGreen":case"Yellow Green":return r.yellowGreen;case"Transparent":return r.transparent}return r.transparent},t}();t.StiReportObjectStringConverter=n}(r=t.Text||(t.Text={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Text.StringBuilder,n=e.System.Char,i=function(){function t(){}return t.splitString=function(e,t){for(var i=new Array,a=new r,o=0;o<e.length;o++){var s=e.charCodeAt(o);10==s?(i.add(this.trimEndWhiteSpace2(a.toString(),t)),a.clear()):t&&n.isControl(e,o)&&9!=s||a.append(e.charAt(o))}return a.length>0&&i.add(this.trimEndWhiteSpace2(a.toString(),t)),0==i.count&&i.add(""),i},t.trimEndWhiteSpace=function(e){return this.trimEndWhiteSpace2(e,!0)},t.trimEndWhiteSpace2=function(e,t){var r="",i=e.length;while(i>0&&n.isWhitespace(e[i-1])&&(t||e.charCodeAt(i-1)>=32))i--;return i==e.length?r=e:i>0&&(r=e.substring(0,i)),r},t.isWordWrapSymbol=function(e,t){var r=e.charCodeAt(t),i=e.charAt(t);if(r>=12288&&r<=55215||n.isWhitespace(e,t)&&160!=r||"("==i||"{"==i)return!0;if(t>0){var a=e.charAt(t-1);if("!"==a||"%"==a||")"==a||"}"==a||"-"==a||"?"==a)return!0}return!1},t.getWordWrapTextLines=function(t,i,a,o){var s=this.splitString(t,!1),u=1;null!=i&&(u=i.sizeInPoints);for(var m=0;m<s.count;m++){var l=s[m],y=new r,d=0;while(d<l.length)if(n.isWhitespace(l,d))y.append(l.charAt(d)),d++;else{var h=new r;while(d<l.length&&!n.isWhitespace(l,d))h.append(l.charAt(d)),d++;y.append(h)}var c=[];l=y.toString();for(var f=0;f<l.length;f++)c[f]=l.charCodeAt(f);for(var p=Array.create(Number,l.length),M=Array.create(Number,l.length),b=0,g=0,S=0;S<c.length;S++)c[S]>=0&&(g+=1e3*e.System.Drawing.Graphics.measureString(String.fromCharCode(c[S]),i).width/u),p[S]=Math.trunc(g),this.isWordWrapSymbol(l,S)&&S>0&&b++,M[S]=b;if(g*u/1e3>o){var S=l.length-1,v=Math.trunc(1e3*o/u);while(p[S]>v&&S>0)S--;var w=S;if(M[S]>0)if(M[S]!=M[S+1]){w=S++;while(n.isWhitespace(l,S)&&"\t"!=l.charAt(S))S++}else{while(!this.isWordWrapSymbol(l,S))S--;w=S-1;while(n.isWhitespace(l,w)&&w>0)w--;while(n.isWhitespace(l,S)&&"\t"!=y.charAt(S))S++}else S++;s[m]=a?l.substr(0,w+1)+"a":l.substr(0,w+1),s.insert(m+1,l.substr(S,l.length-S).trimStart(" "))}}return s},t}();t.TextUtils=i}(r=t.Text||(t.Text={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.None=0]="None",e[e.OK=1]="OK",e[e.Cancel=2]="Cancel",e[e.Abort=3]="Abort",e[e.Retry=4]="Retry",e[e.Ignore=5]="Ignore",e[e.Yes=6]="Yes",e[e.No=7]="No"}(t=e.DialogResult||(e.DialogResult={}))}(t=e.Forms||(e.Forms={}))}(t=e.Windows||(e.Windows={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(t=e.Orientation||(e.Orientation={}))}(t=e.Forms||(e.Forms={}))}(t=e.Windows||(e.Windows={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.None=0]="None",e[e.Indented=1]="Indented"}(t=e.Formatting||(e.Formatting={}))}(t=e.Xml||(e.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this._name="",this._value=""}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),e}();e.XmlAttr=t}(t=e.Xml||(e.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this._list.count},enumerable:!0,configurable:!0}),t.prototype.add=function(e){this.list.add(e)},t.prototype.getNamedItem=function(e){for(var t=0;t<this.list.count;t++){var r=this.list[t];if(r.name==e)return r}return null},t}(r);t.XmlAttrCollection=n}(r=t.Xml||(t.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e){this.charProperties=e}return Object.defineProperty(e,"instance",{get:function(){return null==e.s_CharProperties&&e.initInstance(),new e(e.s_CharProperties)},enumerable:!0,configurable:!0}),e.initInstance=function(){if(null!=e.s_CharProperties)return;var t=Array.create(Object,e.charPropertiesSize);e.s_CharProperties=t,e.setProperties(e.s_Whitespace,e.fWhitespace),e.setProperties(e.s_Letter,e.fLetter),e.setProperties(e.s_NCStartName,e.fNCStartName),e.setProperties(e.s_NCName,e.fNCName),e.setProperties(e.s_CharData,e.fCharData),e.setProperties(e.s_PublicID,e.fPublicId),e.setProperties(e.s_Text,e.fText),e.setProperties(e.s_AttrValue,e.fAttrValue)},e.setProperties=function(t,r){for(var n=0;n<t.length;n+=2)for(var i=parseInt(t.charAt(n+1)),a=parseInt(t.charAt(n));a<=i;a++)e.s_CharProperties[a]|=r},e.fWhitespace=1,e.fLetter=2,e.fNCStartName=4,e.fNCName=8,e.fCharData=16,e.fPublicId=32,e.fText=64,e.fAttrValue=128,e.charPropertiesSize=0,e.s_Whitespace="\t\n\r\r  ",e.s_Letter="AZazÀÖØö"+"øıĴľŁňŊž"+"ƀǃǍǰǴǵǺȗ"+"ɐʨʻˁΆΆΈΊ"+"ΌΌΎΡΣώϐϖ"+"ϚϚϜϜϞϞϠϠ"+"ϢϳЁЌЎяёќ"+"ўҁҐӄӇӈӋӌ"+"ӐӫӮӵӸӹԱՖ"+"ՙՙաֆאתװײ"+"ءغفيٱڷںھ"+"ۀێېۓەەۥۦ"+"अहऽऽक़ॡঅঌ"+"এঐওনপরলল"+"শহড়ঢ়য়ৡৰৱ"+"ਅਊਏਐਓਨਪਰ"+"ਲਲ਼ਵਸ਼ਸਹਖ਼ੜ"+"ਫ਼ਫ਼ੲੴઅઋઍઍ"+"એઑઓનપરલળ"+"વહઽઽૠૠଅଌ"+"ଏଐଓନପରଲଳ"+"ଶହଽଽଡ଼ଢ଼ୟୡ"+"அஊஎஐஒகஙச"+"ஜஜஞடணதநப"+"மவஷஹఅఌఎఐ"+"ఒనపళవహౠౡ"+"ಅಌಎಐಒನಪಳ"+"ವಹೞೞೠೡഅഌ"+"എഐഒനപഹൠൡ"+"กฮะะาำเๅ"+"ກຂຄຄງຈຊຊ"+"ຍຍດທນຟມຣ"+"ລລວວສຫອຮ"+"ະະາຳຽຽເໄ"+"ཀཇཉཀྵႠჅაჶ"+"ᄀᄀᄂᄃᄅᄇᄉᄉ"+"ᄋᄌᄎᄒᄼᄼᄾᄾ"+"ᅀᅀᅌᅌᅎᅎᅐᅐ"+"ᅔᅕᅙᅙᅟᅡᅣᅣ"+"ᅥᅥᅧᅧᅩᅩᅭᅮ"+"ᅲᅳᅵᅵᆞᆞᆨᆨ"+"ᆫᆫᆮᆯᆷᆸᆺᆺ"+"ᆼᇂᇫᇫᇰᇰᇹᇹ"+"ḀẛẠỹἀἕἘἝ"+"ἠὅὈὍὐὗὙὙ"+"ὛὛὝὝὟώᾀᾴ"+"ᾶᾼιιῂῄῆῌ"+"ῐΐῖΊῠῬῲῴ"+"ῶῼΩΩKÅ℮℮"+"ↀↂ〇〇〡〩ぁゔ"+"ァヺㄅㄬ一龥가힣",e.s_NCStartName="AZ__az"+"ÀÖØöøıĴľ"+"ŁňŊžƀǃǍǰ"+"ǴǵǺȗɐʨʻˁ"+"ΆΆΈΊΌΌΎΡ"+"ΣώϐϖϚϚϜϜ"+"ϞϞϠϠϢϳЁЌ"+"ЎяёќўҁҐӄ"+"ӇӈӋӌӐӫӮӵ"+"ӸӹԱՖՙՙաֆ"+"אתװײءغفي"+"ٱڷںھۀێېۓ"+"ەەۥۦअहऽऽ"+"क़ॡঅঌএঐওন"+"পরললশহড়ঢ়"+"য়ৡৰৱਅਊਏਐ"+"ਓਨਪਰਲਲ਼ਵਸ਼"+"ਸਹਖ਼ੜਫ਼ਫ਼ੲੴ"+"અઋઍઍએઑઓન"+"પરલળવહઽઽ"+"ૠૠଅଌଏଐଓନ"+"ପରଲଳଶହଽଽ"+"ଡ଼ଢ଼ୟୡஅஊஎஐ"+"ஒகஙசஜஜஞட"+"ணதநபமவஷஹ"+"అఌఎఐఒనపళ"+"వహౠౡಅಌಎಐ"+"ಒನಪಳವಹೞೞ"+"ೠೡഅഌഎഐഒന"+"പഹൠൡกฮะะ"+"าำเๅກຂຄຄ"+"ງຈຊຊຍຍດທ"+"ນຟມຣລລວວ"+"ສຫອຮະະາຳ"+"ຽຽເໄཀཇཉཀྵ"+"ႠჅაჶᄀᄀᄂᄃ"+"ᄅᄇᄉᄉᄋᄌᄎᄒ"+"ᄼᄼᄾᄾᅀᅀᅌᅌ"+"ᅎᅎᅐᅐᅔᅕᅙᅙ"+"ᅟᅡᅣᅣᅥᅥᅧᅧ"+"ᅩᅩᅭᅮᅲᅳᅵᅵ"+"ᆞᆞᆨᆨᆫᆫᆮᆯ"+"ᆷᆸᆺᆺᆼᇂᇫᇫ"+"ᇰᇰᇹᇹḀẛẠỹ"+"ἀἕἘἝἠὅὈὍ"+"ὐὗὙὙὛὛὝὝ"+"Ὗώᾀᾴᾶᾼιι"+"ῂῄῆῌῐΐῖΊ"+"ῠῬῲῴῶῼΩΩ"+"KÅ℮℮ↀↂ〇〇"+"〡〩ぁゔァヺㄅㄬ"+"一龥가힣",e.s_NCName="-.09AZ__"+"az··ÀÖØö"+"øıĴľŁňŊž"+"ƀǃǍǰǴǵǺȗ"+"ɐʨʻˁːˑ̀ͅ"+"͠͡ΆΊΌΌΎΡ"+"ΣώϐϖϚϚϜϜ"+"ϞϞϠϠϢϳЁЌ"+"Ўяёќўҁ҃҆"+"ҐӄӇӈӋӌӐӫ"+"ӮӵӸӹԱՖՙՙ"+"աֆֹֻֽ֑֣֡"+"ֿֿׁׂׄׄאת"+"װײءغـْ٠٩"+"ٰڷںھۀێېۓ"+"ە۪ۭۨ۰۹ँः"+"अह़्॑॔क़ॣ"+"०९ঁঃঅঌএঐ"+"ওনপরললশহ"+"়়াৄেৈো্"+"ৗৗড়ঢ়য়ৣ০ৱ"+"ਂਂਅਊਏਐਓਨ"+"ਪਰਲਲ਼ਵਸ਼ਸਹ"+"਼਼ਾੂੇੈੋ੍"+"ਖ਼ੜਫ਼ਫ਼੦ੴઁઃ"+"અઋઍઍએઑઓન"+"પરલળવહ઼ૅ"+"ેૉો્ૠૠ૦૯"+"ଁଃଅଌଏଐଓନ"+"ପରଲଳଶହ଼ୃ"+"େୈୋ୍ୖୗଡ଼ଢ଼"+"ୟୡ୦୯ஂஃஅஊ"+"எஐஒகஙசஜஜ"+"ஞடணதநபமவ"+"ஷஹாூெைொ்"+"ௗௗ௧௯ఁఃఅఌ"+"ఎఐఒనపళవహ"+"ాౄెైొ్ౕౖ"+"ౠౡ౦౯ಂಃಅಌ"+"ಎಐಒನಪಳವಹ"+"ಾೄೆೈೊ್ೕೖ"+"ೞೞೠೡ೦೯ംഃ"+"അഌഎഐഒനപഹ"+"ാൃെൈൊ്ൗൗ"+"ൠൡ൦൯กฮะฺ"+"เ๎๐๙ກຂຄຄ"+"ງຈຊຊຍຍດທ"+"ນຟມຣລລວວ"+"ສຫອຮະູົຽ"+"ເໄໆໆ່ໍ໐໙"+"༘༙༠༩༵༵༷༷"+"༹༹༾ཇཉཀྵ྄ཱ"+"྆ྋྐྕྗྗྙྭ"+"ྱྷྐྵྐྵႠჅაჶ"+"ᄀᄀᄂᄃᄅᄇᄉᄉ"+"ᄋᄌᄎᄒᄼᄼᄾᄾ"+"ᅀᅀᅌᅌᅎᅎᅐᅐ"+"ᅔᅕᅙᅙᅟᅡᅣᅣ"+"ᅥᅥᅧᅧᅩᅩᅭᅮ"+"ᅲᅳᅵᅵᆞᆞᆨᆨ"+"ᆫᆫᆮᆯᆷᆸᆺᆺ"+"ᆼᇂᇫᇫᇰᇰᇹᇹ"+"ḀẛẠỹἀἕἘἝ"+"ἠὅὈὍὐὗὙὙ"+"ὛὛὝὝὟώᾀᾴ"+"ᾶᾼιιῂῄῆῌ"+"ῐΐῖΊῠῬῲῴ"+"ῶῼ⃐⃜⃡⃡ΩΩ"+"KÅ℮℮ↀↂ々々"+"〇〇〡〯〱〵ぁゔ"+"゙゚ゝゞァヺーヾ"+"ㄅㄬ一龥가힣",e.s_CharData="\t\n\r\r ퟿�",e.s_PublicID="\n\n\r\r !#%"+"';==?Z__"+"az",e.s_Text=" %';=\\^퟿�",e.s_AttrValue=" !#%(;==?퟿�",e}();e.XmlCharType=t}(t=e.Xml||(e.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.NsCollationBase="http://collations.microsoft.com",e.NsCollCodePoint="http://www.w3.org/2004/10/xpath-functions/collation/codepoint",e.NsDataType="urn:schemas-microsoft-com:datatypes",e.NsDataTypeAlias="uuid:C2F41010-65B3-11D1-A29F-00AA00C14882",e.NsDataTypeOld="urn:uuid:C2F41010-65B3-11D1-A29F-00AA00C14882/",e.NsExsltCommon="http://exslt.org/common",e.NsExsltDates="http://exslt.org/dates-and-times",e.NsExsltMath="http://exslt.org/math",e.NsExsltRegExps="http://exslt.org/regular-expressions",e.NsExsltSets="http://exslt.org/sets",e.NsExsltStrings="http://exslt.org/strings",e.NsMsxsl="urn:schemas-microsoft-com:xslt",e.NsWdXsl="http://www.w3.org/TR/WD-xsl",e.NsXdr="urn:schemas-microsoft-com:xml-data",e.NsXdrAlias="uuid:BDC6E3F0-6DA3-11D1-A2A3-00AA00C14882",e.NsXml="http://www.w3.org/XML/1998/namespace",e.NsXmlNs="http://www.w3.org/2000/xmlns/",e.NsXQueryDataType="http://www.w3.org/2003/11/xpath-datatypes",e.NsXQueryFunc="http://www.w3.org/2003/11/xpath-functions",e.NsXs="http://www.w3.org/2001/XMLSchema",e.NsXsd="http://www.w3.org/2001/XMLSchema-datatypes",e.NsXsi="http://www.w3.org/2001/XMLSchema-instance",e.NsXslDebug="urn:schemas-microsoft-com:xslt-debug",e.NsXslt="http://www.w3.org/1999/XSL/Transform",e.NsXsltInternal="http://schemas.microsoft.com/framework/2003/xml/xslt/internal",e}();e.XmlReservedNs=t}(t=e.Xml||(e.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Default=1]="Default",e[e.None=0]="None",e[e.Preserve=2]="Preserve"}(t=e.XmlSpace||(e.XmlSpace={}))}(t=e.Xml||(e.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Text.StringBuilder,n=function(){function e(e){this.surHighStart=55296,this.surHighEnd=56319,this.surLowStart=56320,this.surLowEnd=57343,this.textWriter=e,this.quoteChar='"',this.xmlCharType=t.XmlCharType.instance}return e.prototype.startAttribute=function(e){this.inAttribute=!0,this.cacheAttrValue=e,e&&(null==this.attrValue?this.attrValue=new r:this.attrValue.clear())},e.prototype.endAttribute=function(){this.cacheAttrValue&&this.attrValue.clear(),this.inAttribute=!1,this.cacheAttrValue=!1},Object.defineProperty(e.prototype,"attributeValue",{get:function(){return this.cacheAttrValue?this.attrValue.toString():String.empty},enumerable:!0,configurable:!0}),e.prototype.writeSurrogateChar=function(e,t){e.charCodeAt(0)<this.surLowStart||e.charCodeAt(0)>this.surLowEnd||t.charCodeAt(0)<this.surHighStart||(t.charCodeAt(0),this.surHighEnd),this.textWriter.write(t),this.textWriter.write(e)},e.prototype.write=function(e){if(null==e)return;return this.cacheAttrValue&&this.attrValue.append(e),void this.textWriter.write(e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))},e.prototype.writeRawWithSurrogateChecking=function(e){if(null==e)return;this.cacheAttrValue&&this.attrValue.append(e);var t=e.length,r=0,n=0;this.textWriter.write(e)},e.prototype.writeStringFragment=function(e,t,r,n){var i=n.count;while(r>0){var a=r;a>i&&(a=i),t+=a,r-=a}},e.prototype.writeCharEntityImpl=function(e){this.textWriter.write("&#x"),this.textWriter.write(e),this.textWriter.write(";")},e.prototype.writeEntityRefImpl=function(e){this.textWriter.write("&"),this.textWriter.write(e),this.textWriter.write(";")},e}();t.XmlTextEncoder=n}(r=t.Xml||(t.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.IO.TextWriter,n=e.System.Collections.Hashtable,i=e.System.Text.StringBuilder,a=e.System.IO.StreamWriter,o;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.NotDeclaredButInScope=1]="NotDeclaredButInScope",e[e.DeclaredButNotWrittenOut=2]="DeclaredButNotWrittenOut",e[e.DeclaredAndWrittenOut=3]="DeclaredAndWrittenOut"}(o||(o={}));var s=function(){function e(){}return e.prototype.init=function(e){this.name=null,this.defaultNs=String.empty,this.defaultNsState=o.Uninitialized,this.xmlSpace=t.XmlSpace.None,this.xmlLang=null,this.prevNsTop=e,this.prefixCount=0,this.mixed=!1},e}(),u=function(){function e(){}return e.prototype.set=function(e,t,r){this.prefix=e,this.ns=t,this.declared=r,this.prevNsIndex=-1},e}(),m;!function(e){e[e.None=0]="None",e[e.XmlSpace=1]="XmlSpace",e[e.XmlLang=2]="XmlLang",e[e.XmlNs=3]="XmlNs"}(m||(m={}));var l;!function(e){e[e.Start=0]="Start",e[e.Prolog=1]="Prolog",e[e.PostDTD=2]="PostDTD",e[e.Element=3]="Element",e[e.Attribute=4]="Attribute",e[e.Content=5]="Content",e[e.AttrOnly=6]="AttrOnly",e[e.Epilog=7]="Epilog",e[e.Error=8]="Error",e[e.Closed=9]="Closed"}(l||(l={}));var y;!function(e){e[e.PI=0]="PI",e[e.Doctype=1]="Doctype",e[e.Comment=2]="Comment",e[e.CData=3]="CData",e[e.StartElement=4]="StartElement",e[e.EndElement=5]="EndElement",e[e.LongEndElement=6]="LongEndElement",e[e.StartAttribute=7]="StartAttribute",e[e.EndAttribute=8]="EndAttribute",e[e.Content=9]="Content",e[e.Base64=10]="Base64",e[e.RawData=11]="RawData",e[e.Whitespace=12]="Whitespace",e[e.Empty=13]="Empty"}(y||(y={}));var d=function(){function d(e,r){this.xmlCharType=t.XmlCharType.instance,this.namespaceStackInitialSize=8,this.maxNamespacesWalkCount=16,this.constructor_(e),r&&(this.encoding=e,this.textWriter=null!=e?new a(r,e):new a(r),this.xmlEncoder=new t.XmlTextEncoder(this.textWriter),this.xmlEncoder.quoteChar=this.quoteChar)}return d.prototype.writeStartDocument=function(e){void 0==e?this.startDocument(-1):this.startDocument(e?1:0)},d.prototype.writeEndDocument=function(){try{this.autoCompleteAll(),this.currentState,l.Epilog,this.stateTable=d.stateTableDefault,this.currentState=l.Start,this.lastToken=y.Empty}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeDocType=function(t,r,n,i){try{this.validateName(t,!1),this.autoComplete(y.Doctype)}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeStartElement=function(e){this.writeStartElement3(null,e,null)},d.prototype.writeStartElement3=function(t,r,n){try{if(this.autoComplete(y.StartElement),this.pushStack(),this.textWriter.write("<"),this.namespaces){if(this.stack[this.top].defaultNs=this.stack[this.top-1].defaultNs,this.stack[this.top-1].defaultNsState!=o.Uninitialized&&(this.stack[this.top].defaultNsState=o.NotDeclaredButInScope),this.stack[this.top].mixed=this.stack[this.top-1].mixed,null==n)null!=t&&0!=t.length&&this.lookupNamespace(t);else if(null==t){var i=this.findPrefix(n);null!=i?t=i:this.pushNamespace(null,n,!1)}else 0==t.length?this.pushNamespace(null,n,!1):(0==n.length&&(t=null),this.verifyPrefixXml(t,n),this.pushNamespace(t,n,!1));this.stack[this.top].prefix=null,null!=t&&0!=t.length&&(this.stack[this.top].prefix=t,this.textWriter.write(t),this.textWriter.write(":"))}else null!=n&&0!=n.length||null!=t&&t.length;this.stack[this.top].name=r,this.textWriter.write(r)}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeEndElement=function(){this.internalWriteEndElement(!1)},d.prototype.writeFullEndElement=function(){this.internalWriteEndElement(!0)},d.prototype.writeStartAttribute=function(r,n,i){try{if(this.autoComplete(y.StartAttribute),this.specialAttr=m.None,this.namespaces){if(null!=r&&0==r.length&&(r=null),i==t.XmlReservedNs.NsXmlNs&&null==r&&"xmlns"!=n&&(r="xmlns"),"xml"==r)"lang"==n?this.specialAttr=m.XmlLang:"space"==n&&(this.specialAttr=m.XmlSpace);else if("xmlns"==r)t.XmlReservedNs.NsXmlNs,null==n||0==n.length?(n=r,r=null,this.prefixForXmlNs=null):this.prefixForXmlNs=n,this.specialAttr=m.XmlNs;else if(null==r&&"xmlns"==n)t.XmlReservedNs.NsXmlNs,this.specialAttr=m.XmlNs,this.prefixForXmlNs=null;else if(null==i)null!=r&&this.lookupNamespace(r);else if(0==i.length)r=String.empty;else{this.verifyPrefixXml(r,i),null!=r&&-1!=this.lookupNamespaceInCurrentScope(r)&&(r=null);var a=this.findPrefix(i);null==a||null!=r&&r!=a?(null==r&&(r=this.generatePrefix()),this.pushNamespace(r,i,!1)):r=a}null!=r&&0!=r.length&&(this.textWriter.write(r),this.textWriter.write(":"))}else null!=i&&0!=i.length||null!=r&&r.length,"xml:lang"==n?this.specialAttr=m.XmlLang:"xml:space"==n&&(this.specialAttr=m.XmlSpace);this.xmlEncoder.startAttribute(this.specialAttr!=m.None),this.textWriter.write(n),this.textWriter.write("="),this.curQuoteChar!=this.quoteChar&&(this.curQuoteChar=this.quoteChar,this.xmlEncoder.quoteChar=this.quoteChar),this.textWriter.write(this.curQuoteChar)}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeEndAttribute=function(){try{this.autoComplete(y.EndAttribute)}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeString=function(t){try{null!=t&&0!=t.length&&(this.autoComplete(y.Content),this.xmlEncoder.write(t))}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeRaw=function(t){try{this.autoComplete(y.RawData),this.xmlEncoder.writeRawWithSurrogateChecking(t)}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.close=function(){try{this.autoCompleteAll()}finally{this.currentState=l.Closed,this.textWriter.close()}},d.prototype.flush=function(){this.textWriter.flush()},d.prototype.writeName=function(t){try{this.autoComplete(y.Content),this.internalWriteName(t,!1)}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeQualifiedName=function(t,r){try{if(this.autoComplete(y.Content),this.namespaces){if(null!=r&&0!=r.length&&r!=this.stack[this.top].defaultNs){var n=this.findPrefix(r);null==n&&(this.currentState,l.Attribute,n=this.generatePrefix(),this.pushNamespace(n,r,!1)),0!=n.length&&(this.internalWriteName(n,!0),this.textWriter.write(":"))}}else null!=r&&r.length;this.internalWriteName(t,!0)}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.startDocument=function(t){try{this.currentState,l.Start,this.stateTable=d.stateTableDocument,this.currentState=l.Prolog;var r=new i;r.append("version="+this.quoteChar+"1.0"+this.quoteChar),null!=this.encoding&&(r.append(" encoding="),r.append(this.quoteChar),r.append(this.encoding.webName),r.append(this.quoteChar)),t>=0&&(r.append(" standalone="),r.append(this.quoteChar),r.append(0==t?"no":"yes"),r.append(this.quoteChar)),this.internalWriteProcessingInstruction("xml",r.toString())}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.autoComplete=function(e){this.currentState==l.Closed||(this.currentState,l.Error);var t=this.stateTable[8*e+this.currentState];switch(l.Error,e){case y.Doctype:this.indented&&this.currentState!=l.Start&&this.indent(!1);break;case y.StartElement:case y.Comment:case y.PI:case y.CData:this.currentState==l.Attribute?(this.writeEndAttributeQuote(),this.writeEndStartTag(!1)):this.currentState==l.Element&&this.writeEndStartTag(!1),e==y.CData?this.stack[this.top].mixed=!0:this.indented&&this.currentState!=l.Start&&this.indent(!1);break;case y.EndElement:case y.LongEndElement:this._flush&&this.flushEncoders(),this.currentState==l.Attribute&&this.writeEndAttributeQuote(),this.currentState==l.Content?e=y.LongEndElement:this.writeEndStartTag(e==y.EndElement),d.stateTableDocument==this.stateTable&&1==this.top&&(t=l.Epilog);break;case y.StartAttribute:this._flush&&this.flushEncoders(),this.currentState==l.Attribute?(this.writeEndAttributeQuote(),this.textWriter.write(" ")):this.currentState==l.Element&&this.textWriter.write(" ");break;case y.EndAttribute:this._flush&&this.flushEncoders(),this.writeEndAttributeQuote();break;case y.Whitespace:case y.Content:case y.RawData:case y.Base64:e!=y.Base64&&this._flush&&this.flushEncoders(),this.currentState==l.Element&&this.lastToken!=y.Content&&this.writeEndStartTag(!1),t==l.Content&&(this.stack[this.top].mixed=!0);break;default:}this.currentState=t,this.lastToken=e},d.prototype.autoCompleteAll=function(){this._flush&&this.flushEncoders();while(this.top>0)this.writeEndElement()},d.prototype.internalWriteEndElement=function(t){try{this.top,this.autoComplete(t?y.LongEndElement:y.EndElement),this.lastToken==y.LongEndElement&&(this.indented&&this.indent(!0),this.textWriter.write("<"),this.textWriter.write("/"),this.namespaces&&null!=this.stack[this.top].prefix&&(this.textWriter.write(this.stack[this.top].prefix),this.textWriter.write(":")),this.textWriter.write(this.stack[this.top].name),this.textWriter.write(">"));var r=this.stack[this.top].prevNsTop;this.useNsHashtable&&r<this.nsTop&&this.popNamespaces(r+1,this.nsTop),this.nsTop=r,this.top--}catch(t){e.System.StiError.showError(t,!1),this.currentState=l.Error}},d.prototype.writeEndStartTag=function(e){this.xmlEncoder.startAttribute(!1);for(var t=this.nsTop;t>this.stack[this.top].prevNsTop;t--)this.nsStack[t].declared||(this.textWriter.write(" xmlns"),this.textWriter.write(":"),this.textWriter.write(this.nsStack[t].prefix),this.textWriter.write("="),this.textWriter.write(this.quoteChar),this.xmlEncoder.write(this.nsStack[t].ns),this.textWriter.write(this.quoteChar));this.stack[this.top].defaultNs!=this.stack[this.top-1].defaultNs&&this.stack[this.top].defaultNsState==o.DeclaredButNotWrittenOut&&(this.textWriter.write(" xmlns"),this.textWriter.write("="),this.textWriter.write(this.quoteChar),this.xmlEncoder.write(this.stack[this.top].defaultNs),this.textWriter.write(this.quoteChar),this.stack[this.top].defaultNsState=o.DeclaredAndWrittenOut),this.xmlEncoder.endAttribute(),e&&this.textWriter.write(" /"),this.textWriter.write(">")},d.prototype.writeEndAttributeQuote=function(){this.specialAttr!=m.None&&this.handleSpecialAttribute(),this.xmlEncoder.endAttribute(),this.textWriter.write(this.curQuoteChar)},d.prototype.indent=function(e){if(0==this.top)this.textWriter.writeLine();else if(!this.stack[this.top].mixed){this.textWriter.writeLine();var t=e?this.top-1:this.top;for(t*=this.indentation;t>0;t--)this.textWriter.write(this.indentChar)}},d.prototype.pushNamespace=function(e,r,n){if(t.XmlReservedNs.NsXmlNs,null==e){switch(this.stack[this.top].defaultNsState){case o.DeclaredButNotWrittenOut:break;case o.Uninitialized:case o.NotDeclaredButInScope:this.stack[this.top].defaultNs=r;break;default:return}this.stack[this.top].defaultNsState=n?o.DeclaredAndWrittenOut:o.DeclaredButNotWrittenOut}else{0!=e.length&&r.length;var i=this.lookupNamespace(e);-1!=i&&this.nsStack[i].ns==r?n&&(this.nsStack[i].declared=!0):(n&&-1!=i&&i>this.stack[this.top].prevNsTop&&(this.nsStack[i].declared=!0),this.addNamespace(e,r,n))}},d.prototype.addNamespace=function(e,t,r){var i=++this.nsTop;if(i==this.nsStack.length){var a=Array.create(u,2*i,!0);Array.copy(this.nsStack,0,a,i),this.nsStack=a}if(this.nsStack[i].set(e,t,r),this.useNsHashtable)this.addToNamespaceHashtable(i);else if(i==this.maxNamespacesWalkCount){this.nsHashtable=new n;for(var o=0;o<=i;o++)this.addToNamespaceHashtable(o);this.useNsHashtable=!0}},d.prototype.addToNamespaceHashtable=function(e){var t=this.nsStack[e].prefix,r=this.nsHashtable.get(t);null!=r&&(this.nsStack[e].prevNsIndex=r),this.nsHashtable[t]=e},d.prototype.popNamespaces=function(e,t){for(var r=t;r>=e;r--)-1==this.nsStack[r].prevNsIndex?this.nsHashtable.remove(this.nsStack[r].prefix):this.nsHashtable[this.nsStack[r].prefix]=this.nsStack[r].prevNsIndex},d.prototype.generatePrefix=function(){var e=this.stack[this.top].prefixCount+++1;return"d"+this.top.toString()+"p"+e.toString()},d.prototype.internalWriteProcessingInstruction=function(e,t){this.textWriter.write("<?"),this.validateName(e,!1),this.textWriter.write(e),this.textWriter.write(" "),null!=t&&this.xmlEncoder.writeRawWithSurrogateChecking(t),this.textWriter.write("?>")},d.prototype.lookupNamespace=function(e){if(this.useNsHashtable){var t=this.nsHashtable.get(e);if(null!=t)return t}else for(var r=this.nsTop;r>=0;r--)if(this.nsStack[r].prefix==e)return r;return-1},d.prototype.lookupNamespaceInCurrentScope=function(e){if(this.useNsHashtable){var t=this.nsHashtable.get(e);if(null!=t&&t>this.stack[this.top].prevNsTop)return t}else for(var r=this.nsTop;r>this.stack[this.top].prevNsTop;r--)if(this.nsStack[r].prefix==e)return r;return-1},d.prototype.findPrefix=function(e){for(var t=this.nsTop;t>=0;t--)if(this.nsStack[t].ns==e&&this.lookupNamespace(this.nsStack[t].prefix)==t)return this.nsStack[t].prefix;return null},d.prototype.internalWriteName=function(e,t){this.validateName(e,t),this.textWriter.write(e)},d.prototype.validateName=function(e,r){null==e||e.length;var n=e.length,i=0,a=-1;if(this.namespaces){if(0!=(this.xmlCharType.charProperties[e[i]]&t.XmlCharType.fNCStartName)){var o=!0;while(o){i++;while(i<n&&0!=(this.xmlCharType.charProperties[e[i]]&t.XmlCharType.fNCName))i++;if(i==n)return;if(":"==e[i]&&!r&&-1==a&&i+1<n){a=i;continue}o=!1}}}else if(0!=(this.xmlCharType.charProperties[e[0]]&t.XmlCharType.fNCStartName)||":"==e[0]){i++;while(i<n&&(0!=(this.xmlCharType.charProperties[e[i]]&t.XmlCharType.fNCName)||":"==e[i]))i++;if(i==n)return}},d.prototype.handleSpecialAttribute=function(){var e=this.xmlEncoder.attributeValue;switch(this.specialAttr){case m.XmlLang:this.stack[this.top].xmlLang=e;break;case m.XmlSpace:e=e.trim(),"default"==e?this.stack[this.top].xmlSpace=t.XmlSpace.Default:"preserve"==e&&(this.stack[this.top].xmlSpace=t.XmlSpace.Preserve);break;case m.XmlNs:this.verifyPrefixXml(this.prefixForXmlNs,e),this.pushNamespace(this.prefixForXmlNs,e,!0);break}},d.prototype.verifyPrefixXml=function(e,r){null!=e&&3==e.length&&("x"!=e.charAt(0)&&"X"!=e.charAt(0)||"m"!=e.charAt(1)&&"M"!=e.charAt(1)||"l"!=e.charAt(2)&&"L"!=e.charAt(2)||t.XmlReservedNs.NsXml)},d.prototype.pushStack=function(){if(this.top==this.stack.length-1){var e=Array.create(s,this.stack.length+10,!0);this.top>0&&Array.copy(this.stack,0,e,this.top+1),this.stack=e}this.top++,this.stack[this.top].init(this.nsTop)},d.prototype.flushEncoders=function(){this._flush=!1},d.prototype.writeAttributeString=function(e,t){this.writeStartAttribute(null,e,null),this.writeString(t),this.writeEndAttribute()},d.prototype.writeElementString=function(e,t){this.writeElementString2(e,null,t)},d.prototype.writeElementString2=function(e,t,r){this.writeStartElement3(null,e,t),null!=r&&0!=r.length&&this.writeString(r),this.writeEndElement()},d.prototype.writeElementString3=function(e,t,r,n){this.writeStartElement3(e,t,r),null!=n&&0!=n.length&&this.writeString(n),this.writeEndElement()},d.prototype.constructor_=function(e,n){this.namespaces=!0,this.formatting=t.Formatting.None,this.indentation=2,this.indentChar=" ",this.nsStack=Array.create(u,this.namespaceStackInitialSize,!0),this.nsTop=-1,this.stack=Array.create(s,10,!0),this.top=0,this.stack[this.top].init(-1),this.quoteChar='"',this.stateTable=d.stateTableDefault,this.currentState=l.Start,this.lastToken=y.Empty,this.encoding=e,this.textWriter=new r,this.xmlEncoder=new t.XmlTextEncoder(this.textWriter),this.xmlEncoder.quoteChar=this.quoteChar},d.stateTableDefault=[l.Prolog,l.Prolog,l.PostDTD,l.Content,l.Content,l.Content,l.Error,l.Epilog,l.PostDTD,l.PostDTD,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Prolog,l.Prolog,l.PostDTD,l.Content,l.Content,l.Content,l.Error,l.Epilog,l.Content,l.Content,l.Error,l.Content,l.Content,l.Content,l.Error,l.Epilog,l.Element,l.Element,l.Element,l.Element,l.Element,l.Element,l.Error,l.Element,l.Error,l.Error,l.Error,l.Content,l.Content,l.Content,l.Error,l.Error,l.Error,l.Error,l.Error,l.Content,l.Content,l.Content,l.Error,l.Error,l.AttrOnly,l.Error,l.Error,l.Attribute,l.Attribute,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Element,l.Error,l.Epilog,l.Error,l.Content,l.Content,l.Error,l.Content,l.Attribute,l.Content,l.Attribute,l.Epilog,l.Content,l.Content,l.Error,l.Content,l.Attribute,l.Content,l.Attribute,l.Epilog,l.Prolog,l.Prolog,l.PostDTD,l.Content,l.Attribute,l.Content,l.Attribute,l.Epilog,l.Prolog,l.Prolog,l.PostDTD,l.Content,l.Attribute,l.Content,l.Attribute,l.Epilog],d.stateTableDocument=[l.Error,l.Prolog,l.PostDTD,l.Content,l.Content,l.Content,l.Error,l.Epilog,l.Error,l.PostDTD,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Prolog,l.PostDTD,l.Content,l.Content,l.Content,l.Error,l.Epilog,l.Error,l.Error,l.Error,l.Content,l.Content,l.Content,l.Error,l.Error,l.Error,l.Element,l.Element,l.Element,l.Element,l.Element,l.Error,l.Error,l.Error,l.Error,l.Error,l.Content,l.Content,l.Content,l.Error,l.Error,l.Error,l.Error,l.Error,l.Content,l.Content,l.Content,l.Error,l.Error,l.Error,l.Error,l.Error,l.Attribute,l.Attribute,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Element,l.Error,l.Error,l.Error,l.Error,l.Error,l.Error,l.Content,l.Attribute,l.Content,l.Error,l.Error,l.Error,l.Error,l.Error,l.Content,l.Attribute,l.Content,l.Error,l.Error,l.Error,l.Prolog,l.PostDTD,l.Content,l.Attribute,l.Content,l.Error,l.Epilog,l.Error,l.Prolog,l.PostDTD,l.Content,l.Attribute,l.Content,l.Error,l.Epilog],d}();t.XmlTextWriter=d}(r=t.Xml||(t.Xml={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.createInstance=function(e){return new e},e}();e.Activator=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={})),Array.getStiTypeName=function(){return"Array"},Array.getStiNetTypeName=function(){for(var e="Byte",t=0,r=this;t<r.length;t++){var n=r[t];if(null!=n){n.sti_is(String)&&(e="String");break}}return e+"[]"},Array.prototype.hasOwnProperty("count")||Object.defineProperty(Array.prototype,"count",{get:function(){return Object.keys(this).length},set:function(e){},enumerable:!1}),Array.prototype.contains=function(e){return this.indexOf(e)>=0},Array.prototype.add=function(e){this.push(e)},Array.prototype.remove=function(e){this.contains(e)&&this.removeAt(this.indexOf(e))},Array.prototype.insert=function(e,t){this.splice(e,0,t)},Array.prototype.clear=function(){this.splice(0,this.length)},Array.prototype.clone=function(){for(var e=[],t=0,r=this;t<r.length;t++){var n=r[t];e.push(n)}return e},Array.prototype.removeAt=function(e){e<0?delete this[this.getByIndex(e)]:this.splice(e,1)},Array.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.push(n)}},Array.prototype.removeRange=function(e,t){this.splice(e,t)},Array.prototype.copyTo=function(e,t){void 0===t&&(t=0);for(var r=t,n=0;n<this.length;n++)e[r]=this[n],r++},Array.prototype.getKeys=function(){return Object.keys(this).sort(function(e,t){return e.toNumber().compareTo(t.toNumber())})},Array.prototype.getByIndex=function(e,t){return null==t&&(t=this.getKeys()),this[t[e]]},Array.prototype.setByIndex=function(e,t){this[Object.keys(this)[e]]=t},Array.prototype.removeByIndex=function(e){return delete this[this.indexOf(this.getByIndex(e))],this},Array.prototype.first=function(){return this[0]},Array.prototype.firstOrDefault=function(e){return this.filter(e)[0]},Array.prototype.lastOrDefault=function(){return this[this.length-1]},Array.prototype.where=function(e){return this.filter(e)},Array.prototype.select=function(e){for(var t=[],r=0,n=this;r<n.length;r++){var i=n[r];t.push(e(i))}return t},Array.prototype.selectMany=function(e){for(var t=[],r=0,n=this;r<n.length;r++){var i=n[r];t.push(e(i))}return t},Array.prototype.any=function(e){if(void 0===e&&(e=null),null==e&&this.length>0)return!0;for(var t=0,r=this;t<r.length;t++){if(e(r[t]))return!0}return!1},Array.prototype.exists=function(e){if(void 0===e&&(e=null),null==e&&this.length>0)return!1;for(var t=0,r=this;t<r.length;t++){if(e(r[t]))return!0}return!1},Array.prototype.sort2=function(e){return this.sort(function(t,r){return e.compare(t,r)})},Array.prototype.getStiLength=function(e){if(e>0)return this[0].getStiLength(e-1);return this.count},Array.prototype.orderBy=function(e){return this.sort(function(t,r){return t=e(t),r=e(r),t.compareTo(r)})},Array.prototype.toArray=function(){for(var e=[],t=0,r=this;t<r.length;t++){var n=r[t];e.push(n)}return e},Array.prototype.peek=function(){return this[this.length-1]},Array.prototype.cast=function(){return this},Array.prototype.sum=function(){for(var e=0,t=0,r=this;t<r.length;t++){var n=r[t];"number"==typeof n&&(e+=n)}return e},Array.prototype.min=function(){for(var e=NaN,t=!0,r=0,n=this;r<n.length;r++){var i=n[r];"number"==typeof i&&(t?(e=i,t=!1):e>i&&(e=i))}return e},Array.prototype.max=function(){for(var e=NaN,t=!0,r=0,n=this;r<n.length;r++){var i=n[r];"number"==typeof i&&(t?(e=i,t=!1):e<i&&(e=i))}return e},Array.prototype.skip=function(e){var t=[];if(this.length>e)for(var r=e;r<this.length;r++)t.push(this[r]);return t},Array.prototype.sti_indexOf=function(e,t){if(void 0===t&&(t=0),"number"==typeof e&&e<0)for(var r=0,n=Object.keys(this);r<n.length;r++){var i=n[r],a=i.toNumber();if(a<0&&(isNaN(t)||!isNaN(t)&&a>t)&&this[i]===e)return a}else{t=0;for(var o=t,s=this.length;o<s;o++)if(this[o]===e)return o}return-1},Array.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=!1;if("boolean"==typeof t[t.length-1]&&(n=!!t.pop()),0==t.length){if(e==Number)return 0;if(e==Boolean)return!1;return n?new e:null}for(var i=[],a=t.shift(),o=0;o<a;o++){var s=Array.create.apply(this,[e].concat(t,[n]));i.push(s)}return i},Array.numberSortFunction=function(){return function(e,t){if(e>t)return 1;if(e<t)return-1;return 0}},Array.copy=function(e,t,r,n){for(var i=t;i<n;i++)r[i]=e[i]},Array.reverse=function(e){return e.reverse()},Array.sort=function(e){return e.sort()},Array.clear=function(e,t,r){var n=e[0].getStiType();for(t;t<r;t++)n==Number?e[t]=0:n==Boolean?e[t]=!1:e[t]=null;return e},Array.name="Array",Array.namespace="System",Array.fullName="Stimulsoft.System.Array",Array.disableAllEnumerable=function(){for(var e in[])Object.defineProperty(Array.prototype,e,{enumerable:!1})},Array.disableAllEnumerable();var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.encode=function(t){var r=String.empty,n,i,a,o,s,u,m,l=0;t=e.utf8_encode(t);while(l<t.length)n=t.charCodeAt(l++),i=t.charCodeAt(l++),a=t.charCodeAt(l++),o=n>>2,s=(3&n)<<4|i>>4,u=(15&i)<<2|a>>6,m=63&a,isNaN(i)?u=m=64:isNaN(a)&&(m=64),r=r+e.keyStr.charAt(o)+e.keyStr.charAt(s)+e.keyStr.charAt(u)+e.keyStr.charAt(m);return r},e.decode=function(t){var r=String.empty,n,i,a,o,s,u,m,l=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(l<t.length)o=this.keyStr.indexOf(t.charAt(l++)),s=this.keyStr.indexOf(t.charAt(l++)),u=this.keyStr.indexOf(t.charAt(l++)),m=this.keyStr.indexOf(t.charAt(l++)),n=o<<2|s>>4,i=(15&s)<<4|u>>2,a=(3&u)<<6|m,r+=String.fromCharCode(n),64!=u&&(r+=String.fromCharCode(i)),64!=m&&(r+=String.fromCharCode(a));return r=e.utf8_decode(r)},e.utf8_encode=function(e){var t=String.empty;e=e.replace(/\r\n/g,"\n");for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},e.utf8_decode=function(e){var t=String.empty,r=0,n,i,a,o=0;while(r<e.length)n=e.charCodeAt(r),n<128?(t+=String.fromCharCode(n),r++):n>191&&n<224?(a=e.charCodeAt(r+1),t+=String.fromCharCode((31&n)<<6|63&a),r+=2):(a=e.charCodeAt(r+1),o=e.charCodeAt(r+2),t+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&o),r+=3);return t},e.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e}();e.Base64=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={})),Boolean.getStiTypeName=function(){return"Boolean"},Boolean.getStiNetTypeName=function(){return"System.Boolean"},Boolean.prototype.sti_as=function(e){if(this.sti_is(e))return this.toBoolean();return null};var Stimulsoft;!function(e){var t;!function(t){var r=e.System.Globalization.UnicodeCategory,n=function(){function e(){}return e.getUnicodeCategory=function(e){if(e<13312)return this._table_0[e];if(e<19894)return r.OtherLetter;if(e<19904)return r.OtherNotAssigned;if(e<19968)return r.OtherSymbol;if(e<40896)return r.OtherLetter;if(e<44032)return this._table_9fc0[e-40896];if(e<55168)return r.OtherLetter;if(e<55296)return this._table_d780[e-55168];if(e<57344)return r.Surrogate;if(e<63744)return r.PrivateUse;if(e<64064)return r.OtherLetter;if(e<65536)return this._table_fa40[e-64064];return r.OtherNotAssigned},e._table_0=[14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,24,24,26,24,24,24,20,21,24,25,24,19,24,24,8,8,8,8,8,8,8,8,8,8,24,24,25,25,25,24,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,24,21,27,18,27,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,25,21,25,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,26,26,26,26,28,28,27,28,1,22,25,19,28,27,28,25,10,10,27,1,28,24,27,10,1,23,10,10,10,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,25,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,1,1,0,0,1,0,1,0,0,1,0,0,0,1,1,0,0,0,0,1,0,0,1,0,0,0,1,1,1,0,0,1,0,0,1,0,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,0,0,1,0,1,0,0,1,1,4,0,1,1,1,4,4,4,4,0,2,1,0,2,1,0,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,2,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,0,0,1,0,0,1,1,0,1,0,0,0,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,27,27,27,27,3,3,3,3,3,3,3,3,3,3,3,3,27,27,27,27,27,27,27,27,27,27,27,27,27,27,3,3,3,3,3,27,27,27,27,27,27,27,3,27,3,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,0,1,0,1,3,27,0,1,29,29,3,1,1,1,24,0,29,29,29,29,27,27,0,24,0,0,0,29,0,29,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,0,1,25,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,28,5,5,5,5,5,7,7,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,29,3,24,24,24,24,24,24,29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,29,24,19,29,29,28,28,26,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,19,5,24,5,5,24,5,5,24,5,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,4,4,4,24,24,29,29,29,29,29,29,29,29,29,29,29,15,15,15,15,15,15,25,25,25,24,24,26,24,24,28,28,5,5,5,5,5,5,5,5,5,5,5,24,15,29,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,8,8,8,8,8,8,8,8,8,8,24,24,24,24,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,24,4,5,5,5,5,5,5,5,15,28,5,5,5,5,5,5,3,3,5,5,28,5,5,5,5,4,4,8,8,8,8,8,8,8,8,8,8,4,4,4,28,28,4,24,24,24,24,24,24,24,24,24,24,24,24,24,24,29,15,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,3,3,28,24,24,24,3,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,3,5,5,5,5,5,5,5,5,5,3,5,5,5,3,5,5,5,5,5,29,29,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,29,29,24,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,5,4,6,6,6,5,5,5,5,5,5,5,5,6,6,6,6,5,6,6,4,5,5,5,5,5,5,5,4,4,4,4,4,4,4,4,4,4,5,5,24,24,8,8,8,8,8,8,8,8,8,8,24,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,6,29,4,4,4,4,4,4,4,4,29,29,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,29,29,29,4,4,4,4,29,29,5,4,6,6,6,5,5,5,5,29,29,6,6,29,29,6,6,5,4,29,29,29,29,29,29,29,29,6,29,29,29,29,4,4,29,4,4,4,5,5,29,29,8,8,8,8,8,8,8,8,8,8,4,4,26,26,10,10,10,10,10,10,28,26,29,29,29,29,29,5,5,6,29,4,4,4,4,4,4,29,29,29,29,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,29,4,4,29,4,4,29,29,5,29,6,6,6,5,5,29,29,29,29,5,5,29,29,5,5,5,29,29,29,5,29,29,29,29,29,29,29,4,4,4,4,29,4,29,29,29,29,29,29,29,8,8,8,8,8,8,8,8,8,8,5,5,4,4,4,5,29,29,29,29,29,29,29,29,29,29,29,5,5,6,29,4,4,4,4,4,4,4,4,4,29,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,29,4,4,4,4,4,29,29,5,4,6,6,6,5,5,5,5,5,29,5,5,6,29,6,6,5,29,29,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,5,5,29,29,8,8,8,8,8,8,8,8,8,8,24,26,29,29,29,29,29,29,29,4,29,29,29,29,29,29,29,5,6,6,29,4,4,4,4,4,4,4,4,29,29,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,29,4,4,4,4,4,29,29,5,4,6,5,6,5,5,5,5,29,29,6,6,29,29,6,6,5,29,29,29,29,29,29,29,29,5,6,29,29,29,29,4,4,29,4,4,4,5,5,29,29,8,8,8,8,8,8,8,8,8,8,28,4,10,10,10,10,10,10,29,29,29,29,29,29,29,29,29,29,5,4,29,4,4,4,4,4,4,29,29,29,4,4,4,29,4,4,4,4,29,29,29,4,4,29,4,29,4,4,29,29,29,4,4,29,29,29,4,4,4,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,6,6,5,6,6,29,29,29,6,6,6,29,6,6,6,5,29,29,4,29,29,29,29,29,29,6,29,29,29,29,29,29,29,29,29,29,29,29,29,29,8,8,8,8,8,8,8,8,8,8,10,10,10,28,28,28,28,28,28,26,28,29,29,29,29,29,5,6,6,6,29,4,4,4,4,4,4,4,4,29,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,4,5,5,5,6,6,6,6,29,5,5,5,29,5,5,5,5,29,29,29,29,29,29,29,5,5,29,4,4,4,29,29,29,29,29,4,4,5,5,29,29,8,8,8,8,8,8,8,8,8,8,29,29,29,29,29,29,29,29,10,10,10,10,10,10,10,28,29,5,6,6,29,4,4,4,4,4,4,4,4,29,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,29,29,5,4,6,5,6,6,6,6,6,29,5,6,6,29,6,6,5,5,29,29,29,29,29,29,29,6,6,29,29,29,29,29,29,29,4,29,4,4,5,5,29,29,8,8,8,8,8,8,8,8,8,8,29,4,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,5,6,6,29,4,4,4,4,4,4,4,4,29,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,4,6,6,6,5,5,5,5,29,6,6,6,29,6,6,6,5,4,29,29,29,29,29,29,29,29,6,29,29,29,29,29,29,29,4,4,4,5,5,29,29,8,8,8,8,8,8,8,8,8,8,10,10,10,10,10,10,29,29,29,28,4,4,4,4,4,4,29,29,6,6,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,4,4,29,4,29,29,4,4,4,4,4,4,4,29,29,29,5,29,29,29,29,6,6,6,5,5,5,29,5,29,6,6,6,6,6,6,6,6,29,29,29,29,29,29,8,8,8,8,8,8,8,8,8,8,29,29,6,6,24,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,4,5,5,5,5,5,5,5,29,29,29,29,26,4,4,4,4,4,4,3,5,5,5,5,5,5,5,5,24,8,8,8,8,8,8,8,8,8,8,24,24,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,29,4,29,29,4,4,29,4,29,29,4,29,29,29,29,29,29,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,4,29,4,29,4,29,29,4,4,29,4,4,4,4,5,4,4,5,5,5,5,5,5,29,5,5,4,29,29,4,4,4,4,4,29,3,29,5,5,5,5,5,5,29,29,8,8,8,8,8,8,8,8,8,8,29,29,4,4,4,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,28,28,28,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,28,24,28,28,28,5,5,28,28,28,28,28,28,8,8,8,8,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,28,5,28,5,28,5,20,21,20,21,6,6,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,24,5,5,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,29,28,28,28,28,28,28,28,28,5,28,28,28,28,28,28,29,28,28,24,24,24,24,24,28,28,28,28,24,24,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,6,5,5,5,5,6,5,5,5,5,5,5,6,5,5,6,6,5,5,4,8,8,8,8,8,8,8,8,8,8,24,24,24,24,24,24,4,4,4,4,4,4,6,6,5,5,4,4,4,4,5,5,5,4,6,6,6,4,4,6,6,6,6,6,6,6,4,4,4,5,5,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,6,5,5,6,6,6,6,6,6,5,4,6,8,8,8,8,8,8,8,8,8,8,6,6,6,5,28,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,0,29,29,29,29,29,0,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,24,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,29,29,4,4,4,4,4,4,4,29,4,29,4,4,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,29,29,4,4,4,4,4,4,4,29,4,29,4,4,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,5,5,5,24,24,24,24,24,24,24,24,24,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,29,1,1,1,1,1,1,29,29,19,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,20,21,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,24,24,24,9,9,9,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,5,5,5,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,24,24,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,29,5,5,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,5,6,6,5,5,5,5,5,5,5,5,5,5,5,24,24,24,3,24,24,24,26,4,5,29,29,8,8,8,8,8,8,8,8,8,8,29,29,29,29,29,29,10,10,10,10,10,10,10,10,10,10,29,29,29,29,29,29,24,24,24,24,24,24,19,24,24,24,24,5,5,5,15,29,8,8,8,8,8,8,8,8,8,8,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,5,5,5,6,6,6,6,5,5,6,6,6,29,29,29,29,6,6,5,6,6,6,6,6,6,5,5,5,29,29,29,29,28,29,29,29,24,24,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,4,4,4,4,4,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,8,8,8,8,8,8,8,8,8,8,10,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,6,6,5,29,29,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,5,6,5,5,5,5,5,5,5,29,5,6,5,6,6,5,5,5,5,5,5,5,5,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,29,29,5,8,8,8,8,8,8,8,8,8,8,29,29,29,29,29,29,8,8,8,8,8,8,8,8,8,8,29,29,29,29,29,29,24,24,24,24,24,24,24,3,24,24,24,24,24,24,29,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,7,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,5,5,5,5,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,5,5,5,5,5,6,5,6,6,6,6,6,5,6,6,4,4,4,4,4,4,4,29,29,29,29,8,8,8,8,8,8,8,8,8,8,24,24,24,24,24,24,24,28,28,28,28,28,28,28,28,28,28,5,5,5,5,5,5,5,5,5,28,28,28,28,28,28,28,28,28,29,29,29,5,5,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,5,5,5,5,6,6,5,5,6,5,5,5,4,4,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,5,5,6,6,6,5,6,5,5,5,6,6,29,29,29,29,29,29,29,29,24,24,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,6,6,5,5,29,29,29,24,24,24,24,24,8,8,8,8,8,8,8,8,8,8,29,29,29,4,4,4,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,24,24,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,24,24,24,24,24,24,24,24,29,29,29,29,29,29,29,29,5,5,5,24,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,4,4,4,4,5,4,4,4,4,6,6,5,4,4,29,5,5,29,29,29,29,29,29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,29,29,29,29,29,29,5,5,5,5,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,29,29,0,0,0,0,0,0,29,29,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,29,29,0,0,0,0,0,0,29,29,1,1,1,1,1,1,1,1,29,0,29,0,29,0,29,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,29,29,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,1,29,1,1,0,0,0,0,2,27,1,27,27,27,1,1,1,29,1,1,0,0,0,0,2,27,27,27,1,1,1,1,29,29,1,1,0,0,0,0,29,27,27,27,1,1,1,1,1,1,1,1,0,0,0,0,0,27,27,27,29,29,1,1,1,29,1,1,0,0,0,0,2,27,27,29,11,11,11,11,11,11,11,11,11,11,11,15,15,15,15,15,19,19,19,19,19,19,24,24,22,23,20,22,22,23,20,22,24,24,24,24,24,24,24,24,12,13,15,15,15,15,15,11,24,24,24,24,24,24,24,24,24,22,23,24,24,24,24,18,18,24,24,24,25,20,21,24,24,24,24,24,24,24,24,24,24,24,25,24,18,24,24,24,24,24,24,24,24,24,24,11,15,15,15,15,15,29,15,15,15,15,15,15,15,15,15,15,10,3,29,29,10,10,10,10,10,10,25,25,25,20,21,3,10,10,10,10,10,10,10,10,10,10,25,25,25,20,21,29,3,3,3,3,3,3,3,3,3,3,3,3,3,29,29,29,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,5,5,5,5,5,5,5,5,5,5,5,5,5,7,7,7,7,5,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,0,28,28,28,28,0,28,28,1,0,0,0,1,1,0,0,0,1,28,0,28,28,25,0,0,0,0,0,28,28,28,28,28,28,0,28,0,28,0,28,0,0,0,0,28,1,0,0,0,0,1,4,4,4,4,1,28,28,1,1,0,0,25,25,25,25,25,0,1,1,1,1,28,25,28,28,1,28,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,0,1,9,9,9,9,10,28,28,29,29,29,29,25,25,25,25,25,28,28,28,28,28,25,25,28,28,28,28,25,28,28,25,28,28,25,28,28,28,28,28,28,28,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,28,28,25,28,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,28,28,28,28,28,28,28,28,20,21,20,21,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,28,28,28,28,28,28,28,20,21,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,25,25,25,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,28,28,28,28,28,28,28,28,28,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,25,25,25,25,25,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,20,21,20,21,20,21,20,21,20,21,20,21,20,21,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,25,25,25,20,21,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,20,21,20,21,20,21,20,21,20,21,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,20,21,20,21,20,21,20,21,20,21,20,21,20,21,20,21,20,21,20,21,20,21,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,20,21,20,21,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,20,21,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,28,28,25,25,25,25,25,25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,29,0,1,0,0,0,1,1,0,1,0,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,3,3,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,28,28,28,28,28,28,0,1,0,1,5,5,5,0,1,29,29,29,29,29,24,24,24,24,10,24,24,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,29,1,29,29,29,29,29,1,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,3,24,29,29,29,29,29,29,29,29,29,29,29,29,29,29,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,24,24,22,23,22,23,24,24,24,22,23,24,22,23,24,24,24,24,24,24,24,24,24,19,24,24,19,24,22,23,24,24,22,23,20,21,20,21,20,21,20,21,24,24,24,24,24,3,24,24,24,24,24,24,24,24,24,24,19,19,24,24,24,24,19,24,20,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,11,24,24,24,28,3,4,9,20,21,20,21,20,21,20,21,20,21,28,28,20,21,20,21,20,21,20,21,19,20,21,21,28,9,9,9,9,9,9,9,9,9,5,5,5,5,6,6,19,3,3,3,3,3,28,28,9,9,9,3,4,24,28,28,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,5,5,27,27,3,3,4,19,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,24,3,3,3,4,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,28,28,10,10,10,10,28,28,28,28,28,28,28,28,28,28,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,10,10,10,10,10,10,10,10,10,10,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,10,10,10,10,10,10,10,10,28,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,10,10,10,10,10,10,10,10,10,10,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],e._table_9fc0=[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,3,3,3,3,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,24,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,8,8,8,8,8,8,8,8,8,4,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,4,5,7,7,7,24,5,5,5,5,5,5,5,5,5,5,24,3,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,3,3,5,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,9,9,9,9,9,9,9,9,9,5,5,24,24,24,24,24,24,29,29,29,29,29,29,29,29,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,3,3,3,3,3,3,3,3,3,27,27,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,3,1,1,1,1,1,1,1,1,0,1,0,1,0,0,1,0,1,0,1,0,1,0,1,3,27,27,0,1,0,1,4,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,0,0,29,29,0,0,0,0,0,1,0,1,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,3,3,1,4,4,4,4,4,4,4,5,4,4,4,5,4,4,4,4,5,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,6,5,5,6,28,28,28,28,29,29,29,29,10,10,10,10,10,10,28,28,26,28,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,24,24,24,24,29,29,29,29,29,29,29,29,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,29,29,29,29,29,29,29,29,29,24,24,8,8,8,8,8,8,8,8,8,8,29,29,29,29,29,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,24,24,24,4,24,4,29,29,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,29,29,29,29,29,29,29,29,29,29,29,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,5,5,5,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,6,6,5,5,5,5,6,6,5,6,6,6,6,24,24,24,24,24,24,24,24,24,24,24,24,24,29,3,8,8,8,8,8,8,8,8,8,8,29,29,29,29,24,24,4,4,4,4,4,5,3,4,4,4,4,4,4,4,4,4,8,8,8,8,8,8,8,8,8,8,4,4,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,6,6,5,5,6,6,5,5,29,29,29,29,29,29,29,29,29,4,4,4,5,4,4,4,4,4,4,4,4,5,6,29,29,8,8,8,8,8,8,8,8,8,8,29,29,24,24,24,24,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,28,28,28,4,6,5,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,4,5,5,5,4,4,5,5,4,4,4,4,4,5,5,4,5,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,3,24,24,4,4,4,4,4,4,4,4,4,4,4,6,5,5,6,6,24,24,4,3,3,6,5,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,29,29,4,4,4,4,4,4,29,29,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,29,4,4,4,4,4,4,4,29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,27,3,3,3,3,1,1,1,1,1,1,29,29,29,29,29,29,29,29,29,29,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,6,5,6,6,5,6,6,24,6,5,29,29,8,8,8,8,8,8,8,8,8,8,29,29,29,29,29,29],e._table_d780=[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29],e._table_fa40=[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,1,1,1,1,1,1,1,29,29,29,29,29,29,29,29,29,29,29,29,1,1,1,1,1,29,29,29,29,29,4,5,4,4,4,4,4,4,4,4,4,4,25,4,4,4,4,4,4,4,4,4,4,4,4,4,29,4,4,4,4,4,29,4,29,4,4,29,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,21,20,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,4,4,4,4,4,4,4,4,4,4,4,4,26,28,29,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,24,24,24,24,24,24,24,20,21,24,29,29,29,29,29,29,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,24,19,19,18,18,20,21,20,21,20,21,20,21,20,21,20,21,20,21,20,21,24,24,20,21,24,24,24,24,18,18,18,24,24,24,29,24,24,24,24,19,20,21,20,21,20,21,24,24,24,25,19,25,25,25,29,24,26,24,24,29,29,29,29,4,4,4,4,4,29,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,15,29,24,24,24,26,24,24,24,20,21,24,25,24,19,24,24,8,8,8,8,8,8,8,8,8,8,24,24,25,25,25,24,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,24,21,27,18,27,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,25,21,25,20,21,24,20,21,24,24,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,29,29,29,4,4,4,4,4,4,29,29,4,4,4,4,4,4,29,29,4,4,4,4,4,4,29,29,4,4,4,29,29,29,26,26,25,27,28,26,26,29,28,25,25,25,25,28,28,29,29,29,29,29,29,29,29,29,29,15,15,15,28,28,29,29],e}();t.Chars=n}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r=function(){function r(){}return r.changeType=function(e,r){switch(r){case String:return e.toString();case Boolean:return e.toBoolean();case Number:return e.toNumber();case t.TimeSpan:return t.TimeSpan.fromString(e.toString());case t.DateTime:return t.DateTime.fromString(e.toString())}return e},r.changeType2=function(e,r){switch(r){case t.TypeCode.Empty:return e;case t.TypeCode.Object:return e;case t.TypeCode.DBNull:return e;case t.TypeCode.Boolean:return e.toBoolean();case t.TypeCode.Char:return e.toString();case t.TypeCode.SByte:return e.toNumber();case t.TypeCode.Byte:return e.toNumber();case t.TypeCode.Int16:return e.toNumber();case t.TypeCode.UInt16:return e.toNumber();case t.TypeCode.Int32:return e.toNumber();case t.TypeCode.UInt32:return e.toNumber();case t.TypeCode.Int64:return e.toNumber();case t.TypeCode.UInt64:return e.toNumber();case t.TypeCode.Single:return e.toNumber();case t.TypeCode.Double:return e.toNumber();case t.TypeCode.Decimal:return e.toNumber();case t.TypeCode.DateTime:return t.DateTime.fromString(e.toString());case t.TypeCode.String:return e.toString()}return e},r.toDateTime=function(e){var r=Date.parse(e);if(NaN==r)return e;return new t.DateTime(r)},r.toString=function(e){if(null==e)return"";return e.toString()},r.toFont=function(r){var n=r.split(",");if(2==n.length)return new e.System.Drawing.Font(n[0],n[1].toNumber());if(3==n.length)return new e.System.Drawing.Font(n[0],n[1].toNumber(),t.Enum.parse(t.Drawing.FontStyle,n[2].replaceAll("|",",")));if(n.length>=4)return new e.System.Drawing.Font(n[0],n[1].toNumber(),t.Enum.parse(t.Drawing.FontStyle,n[2].replaceAll("|",",")),t.Enum.parse(t.Drawing.GraphicsUnit,n[3]));return null},r.toBoolean=function(e){return!!e},r.toNumber=function(e){return+e},r.toDouble=function(e){return r.toNumber(e)},r.toInt32=function(e,t){return t?parseInt(e,t):r.toNumber(e)},r.toInt64=function(e){return r.toNumber(e)},r.toUInt64=function(e){return r.toNumber(e)},r.toUInt32=function(e){return r.toNumber(e)},r.toBase64String=function(e){if(void 0===e||null==e)return null;var r=String.empty;if(e.sti_is(String))r=e,window&&window.atob&&(r=r.toUnicodeString());else for(var n=new Uint8Array(e),i=0;i<n.byteLength;i++)r+=String.fromCharCode(n[i]);return window&&window.atob?window.btoa(r):t.Base64.encode(r)},r.fromBase64String=function(e){if(void 0===e||null==e)return null;for(var r=window&&window.atob?window.atob(e.replaceAll("\r\n","\n").replaceAll("\n","")):t.Base64.decode(e),n=[],i=0;i<r.length;i++)n.push(r.charCodeAt(i));return n},r.fromBase64StringText=function(e){if(window&&window.atob)return window.atob(e).fromUnicodeString();return t.Base64.decode(e)},r.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r}();t.Convert=r}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r=e.System.Globalization.CultureInfo,n=function(){function e(e,t,r,n,i,a,o){void 0===e?this.innerDate=new Date:"number"!=typeof e&&e.sti_is(Date)?this.innerDate=e:(this.innerDate=new Date,t?(this.innerDate.setFullYear(e),this.innerDate.setMonth(t-1),null!=r&&this.innerDate.setDate(r),null!=n&&this.innerDate.setHours(n),null!=i&&this.innerDate.setMinutes(i),null!=a&&this.innerDate.setSeconds(a),null!=o&&this.innerDate.setMilliseconds(o)):this.innerDate.setTime(e))}return e.getStiNetTypeName=function(){return"System.DateTime"},Object.defineProperty(e.prototype,"year",{get:function(){return this.innerDate.getFullYear()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"month",{get:function(){return this.innerDate.getMonth()+1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthName",{get:function(){return r.currentCulture.dateTimeFormat.monthNames[this.month-1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthGenitiveName",{get:function(){return r.currentCulture.dateTimeFormat.monthGenitiveNames[this.month-1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthShortName",{get:function(){return r.currentCulture.dateTimeFormat.abbreviatedMonthNames[this.month-1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"day",{get:function(){return this.innerDate.getDate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeek",{get:function(){return this.innerDate.getDay()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayName",{get:function(){return r.currentCulture.dateTimeFormat.dayNames[this.dayOfWeek]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayShortName",{get:function(){return r.currentCulture.dateTimeFormat.shortestDayNames[this.dayOfWeek]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hour",{get:function(){return this.innerDate.getHours()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minute",{get:function(){return this.innerDate.getMinutes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.innerDate.getSeconds()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"millisecond",{get:function(){return this.innerDate.getMilliseconds()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ticks",{get:function(){return this.innerDate.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfYear",{get:function(){var e=new Date(this.innerDate.getFullYear(),0,1),t=this.innerDate.getTime()-e.getTime();return Math.ceil(t/864e5)+1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"now",{get:function(){return new e(new Date)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"today",{get:function(){var t=new e(new Date);return new e(t.year,t.month,t.day,0,0,0,0)},enumerable:!0,configurable:!0}),e.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},e.daysInMonth=function(e,t){return 33-new Date(e,t-1,33).getDate()},e.compare=function(e,t){if(e.ticks<t.ticks)return-1;if(e.ticks>t.ticks)return 1;return 0},e.doubleDateToTicks=function(e){if(e>=this.oADateMaxAsDouble||e<=this.oADateMinAsDouble)return null;var t=e*this.millisPerDay+(e>=0?.5:-.5);if(t<0&&(t-=t%this.millisPerDay*2),(t+=this.doubleDateOffset/this.ticksPerMillisecond)<0||t>=this.maxMillis)return null;return t*this.ticksPerMillisecond},e.ticksToOADate=function(e){if(0==e)return 0;e<this.ticksPerDay&&(e+=this.doubleDateOffset);var t=(e-this.doubleDateOffset)/this.ticksPerMillisecond;if(t<0){var r=t%this.millisPerDay;0!=r&&(t-=2*(this.millisPerDay+r))}return t/this.millisPerDay},e.ticksNetToTicksJs=function(e){return e/1e4-621356076e5},e.prototype.negate=function(){if(this.ticks==t.TimeSpan.minValue.ticks)throw"Overflow_NegateTwosCompNum";return new e(-this.ticks)},e.prototype.addYears=function(t){return this.innerDate=new e(this.year+t,this.month,this.day,this.hour,this.minute,this.second,this.millisecond).innerDate,this},e.prototype.addMonths=function(t){return this.innerDate=new e(this.year,this.month+t,this.day,this.hour,this.minute,this.second,this.millisecond).innerDate,this},e.prototype.addDays=function(t){return this.innerDate=new e(this.year,this.month,this.day+t,this.hour,this.minute,this.second,this.millisecond).innerDate,this},e.prototype.addHours=function(t){return this.innerDate=new e(this.year,this.month,this.day,this.hour+t,this.minute,this.second,this.millisecond).innerDate,this},e.prototype.addMinutes=function(t){return this.innerDate=new e(this.year,this.month,this.day,this.hour,this.minute+t,this.second,this.millisecond).innerDate,this},e.prototype.addSeconds=function(t){return this.innerDate=new e(this.year,this.month,this.day,this.hour,this.minute,this.second+t,this.millisecond).innerDate,this},e.prototype.addMilliseconds=function(t){return this.innerDate=new e(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond+t).innerDate,this},e.prototype.addTicks=function(t){return this.innerDate=new e(this.ticks+t).innerDate,this},e.prototype.compareTo=function(e){if(this.ticks<e.ticks)return-1;if(this.ticks>e.ticks)return 1;return 0},e.prototype.subtract=function(e){return new t.TimeSpan(this.ticks-e.ticks)},Object.defineProperty(e.prototype,"date",{get:function(){return this.innerDate},enumerable:!0,configurable:!0}),e.prototype.toString=function(e,t){if(void 0===e&&(e="MM/dd/yyyy h:mm:ss tt"),void 0===t&&(t=!1),"y"==e||"Y"==e)return this.monthName+" "+this.year.toString();if("d"==e)return this.toString(r.currentCulture.dateTimeFormat.shortDatePattern,!0);if("D"==e)return this.toString(r.currentCulture.dateTimeFormat.longDatePattern,!0);if("f"==e)return this.toString(r.currentCulture.dateTimeFormat.longDatePattern,!0)+" "+this.toString(r.currentCulture.dateTimeFormat.shortTimePattern);if("F"==e)return this.toString(r.currentCulture.dateTimeFormat.fullDateTimePattern,!0);if("t"==e)return this.toString(r.currentCulture.dateTimeFormat.shortTimePattern);if("T"==e)return this.toString(r.currentCulture.dateTimeFormat.longTimePattern);var n="",i=0,a,o;while(i<e.length){if(a=e.charAt(i),o=1,i++,"Y"==a||"y"==a||"M"==a||"d"==a||"h"==a||"H"==a||"m"==a||"s"==a||"f"==a||"F"==a||"t"==a||"z"==a||"T"==a)while(i<e.length&&e.charAt(i)==a)i++,o++;else if("'"==a){while(i<e.length&&"'"!=e.charAt(i))n+=e.charAt(i),i++;i++,a=""}switch(a){case"Y":n+=this.year.toString();break;case"y":var s=this.year.toString();n+=s.substr(Math.max(s.length-o,0));break;case"M":n+=o<3?this.month.toString().padLeft(o,"0"):3==o?this.monthShortName:t?this.monthGenitiveName:this.monthName;break;case"d":n+=o<3?this.day.toString().padLeft(o,"0"):3==o?this.dayShortName:this.dayName;break;case"h":n+=(this.hour>12?this.hour-12:this.hour).toString().padLeft(Math.min(o,2),"0");break;case"H":n+=this.hour.toString().padLeft(Math.min(o,2),"0");break;case"m":n+=this.minute.toString().padLeft(Math.min(o,2),"0");break;case"s":n+=this.second.toString().padLeft(Math.min(o,2),"0");break;case"f":var u=Math.round(this.millisecond,o).toString();while(u.length<Math.min(o,3))u+="0";n+=u;break;case"F":n+=Math.round(this.millisecond,o).toString();break;case"t":var m=this.hour<12?r.currentCulture.dateTimeFormat.AMDesignator:r.currentCulture.dateTimeFormat.PMDesignator;1==o&&(m=m.substr(0,1)),n+=m;break;case"z":var l=Math.abs(this.innerDate.getTimezoneOffset())%60,y=Math.abs(this.innerDate.getTimezoneOffset())/60;n+=this.innerDate.getTimezoneOffset()>0?"-":"+",n+=1==o?y.toString():2==o?y.toString().padLeft(2,"0"):y.toString().padLeft(2,"0")+":"+l.toString().padLeft(2,"0");break;case"\\":n+=e.charAt(i),i++;break;default:n+=a;break}}return n},e.prototype.toOADate=function(){return Math.round(this.ticks/864e5+25569)},e.prototype.toNetJsonString=function(){return"\\/Date("+this.ticks+")\\/"},e.fromNetJsonString=function(t){var r=/-?\d+/.exec(t);return new e(new Date(parseInt(r[0])))},e.fromOADate=function(t){return new e(864e5*(t-25569))},e.fromString=function(r){void 0===r&&(r="2015-12-31");try{var n=r;if(String.isNullOrEmpty(n))return null;var i=n.match(/([0-9]{4})(.)([0-9]{2})(.)([0-9]{2})/);null!=i&&i.length>0?n=n.length>i[0].length?i[1]+"-"+i[3]+"-"+i[5]+"T"+n.substring(i[0].length+1):i[1]+"-"+i[3]+"-"+i[5]:(i=n.match(/([0-9]{2})(.)([0-9]{2})(.)([0-9]{4})/),null!=i&&i.length>0?n=n.length>i[0].length?i[5]+"-"+i[1]+"-"+i[3]+"T"+n.substring(i[0].length+1):i[5]+"-"+i[1]+"-"+i[3]:(i=n.match(/(([0-9]{2})|([0-9]{1}))(:)(([0-9]{2})|([0-9]{1}))(:)(([0-9]{2})|([0-9]{1}))/),null!=i&&i.length>0?(1==i[1].length&&(i[1]="0"+i[1]),1==i[5].length&&(i[5]="0"+i[5]),1==i[9].length&&(i[9]="0"+i[9]),n="1970-01-01T"+i[1]+":"+i[5]+":"+i[9]):null!=(i=n.match(/(([0-9]{2})|([0-9]{1}))(:)([0-9]{2})/))&&i.length>0&&(1==i[1].length&&(i[1]="0"+i[1]),1==i[5].length&&(i[5]="0"+i[5]),n="1970-01-01T"+i[1]+":"+i[5]+":00"))),i=n.replace("Z","").split(/\D/);for(var a=0,o=i;a<o.length;a++){var s=o[a];if(String.isNullOrEmpty(s))throw""}var u=void 0;if(3==i.length&&(u=new Date(i[0].toNumber(),i[1].toNumber()-1,i[2].toNumber())),i.length>=6&&(u=new Date(i[0].toNumber(),i[1].toNumber()-1,i[2].toNumber(),i[3].toNumber(),i[4].toNumber(),i[5].toNumber())),null==u)return t.StiError.showError("Parse DateTime Error ("+r+")",!1),null;return new e(u)}catch(e){return t.StiError.showError("Parse DateTime Error ("+r+")",!1),null}},e.ticksPerMillisecond=1e3,e.ticksPerSecond=1e3*e.ticksPerMillisecond,e.ticksPerMinute=60*e.ticksPerSecond,e.ticksPerHour=60*e.ticksPerMinute,e.ticksPerDay=24*e.ticksPerHour,e.millisPerSecond=1e3,e.millisPerMinute=60*e.millisPerSecond,e.millisPerHour=60*e.millisPerMinute,e.millisPerDay=24*e.millisPerHour,e.daysPerYear=365,e.daysPer4Years=4*e.daysPerYear+1,e.daysPer100Years=25*e.daysPer4Years-1,e.daysPer400Years=4*e.daysPer100Years+1,e.daysTo1601=4*e.daysPer400Years,e.daysTo1899=4*e.daysPer400Years+3*e.daysPer100Years-367,e.daysTo10000=25*e.daysPer400Years-366,e.minTicks=0,e.maxTicks=e.daysTo10000*e.ticksPerDay-1,e.maxMillis=e.daysTo10000*e.millisPerDay,e.fileTimeOffset=e.daysTo1601*e.ticksPerDay,e.doubleDateOffset=e.daysTo1899*e.ticksPerDay,e.oADateMinAsTicks=(e.daysPer100Years-e.daysPerYear)*e.ticksPerDay,e.oADateMinAsDouble=-657435,e.oADateMaxAsDouble=2958466,e.datePartYear=0,e.datePartDayOfYear=1,e.datePartMonth=2,e.DatePartDay=3,e.daysToMonth365=[0,31,59,90,120,151,181,212,243,273,304,334,365],e.daysToMonth366=[0,31,60,91,121,152,182,213,244,274,305,335,366],e.minValue=new e(e.minTicks),e.maxValue=new e(e.maxTicks),e}();t.DateTime=n}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function t(){}return t.getName=function(e,t){var r="";if(void 0==e[t]){for(var n in e){var i=n.toNumber();0!=i&&(t&i)==i&&(t-=i,r+=(r.length>0?", ":"")+e[i])}return 0==r.length&&(r=e[0]),r}return e[t]},t.parse=function(r,n,i){void 0===i&&(i=!1),(n.sti_is(Number)||e.Char.isDigit(n))&&(n=t.getName(r,n.toNumber()));for(var a=n.toString().split(", "),o,s=0;s<a.length;s++)void 0===o?o=r[a[s]]:o+=r[a[s]];return o},t.getNames=function(e){var t=[];for(var r in e)"number"!=typeof e[r]&&t.add(e[r]);return t},t.getValues=function(e){var t=[];for(var r in e)"number"!=typeof e[r]&&t.add(r.toNumber());return t},t}();e.Enum=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(t=e.DayOfWeek||(e.DayOfWeek={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.newLine=function(){return"\r\n"},e}();e.Environment=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.EventArgs=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(e){this.args=e.split(",").map(function(e){return e.split(":")[0]}).join(",")}return e.prototype.create=function(t,r){var n;null!=r?n=r:null!=e._this&&(n=e._this);var i="",a="";null!=n&&"StiReport"==n.constructor.jsTypeName&&(n.dictionary.variables.list.forEach(function(e){
i+=String.stiFormat('var {0} = this.getVariable("{1}");\r\n',e.name.replaceAll(" ","_"),e.name)}),n.dictionary.dataSources.list.forEach(function(e,t){i+=String.stiFormat("var {0} = this.dictionary.dataSources.getByIndex({1});\r\n",e.name.replaceAll(" ","_"),t.toString())}),i+="var __report__components__ = this.getComponents();\r\n",n.getComponents().list.forEach(function(e,t){i+=String.stiFormat("var {0} = __report__components__.getByIndex({1});\r\n",e.name.replaceAll(" ","_").replaceAll(".","_"),t.toString())}),n.dictionary.variables.list.forEach(function(e){a+=String.stiFormat('this.setVariable("{0}", {1});\r\n',e.name,e.name.replaceAll(" ","_"))}));var o=new Function(this.args,i+t+";\r\n"+a);return null!=n&&(o=o.bind(n)),o},e.create=function(t,r){return e.handler.create(t,r)},e.handler=new e("sender: Object, e: EventArgs"),e}();e.EventHandler=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(e){this.id=e.toLowerCase()}return e.newGuid=function(){return new e(e.s4()+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+e.s4()+e.s4())},e.s4=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},e.prototype.toString=function(){return this.id},Object.defineProperty(e,"empty",{get:function(){return new e("00000000-0000-0000-0000-000000000000")},enumerable:!0,configurable:!0}),e.compareTo=function(e){return this.toString().localeCompare(e.toString())},e}();e.Guid=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){e.ICloneable="ICloneable"}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){e.IComparable="IComparable"}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){e.IFormatProvider="IFormatProvider"}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.decode=function(e){return JSON.parse(e)},e.encode=function(e){return JSON.stringify(e)},e.stiPopulateObject=function(t,r){if(Object.isNullOrUndefined(t)||t.sti_is(String)||t.sti_is(Number)||t.sti_is(Boolean)||t.sti_is(Function))return;if(Object.isNullOrUndefined(r)||r.sti_is(String)||r.sti_is(Number)||r.sti_is(Boolean)||r.sti_is(Function))return;for(var n=Object.getOwnPropertyNames(t),i=0,a=n;i<a.length;i++){var o=a[i];r.hasOwnProperty(o)&&(Object.isNullOrUndefined(r[o])||r[o].sti_is(String)||r[o].sti_is(Number)||r[o].sti_is(Boolean)?r[o]=t[o]:e.stiPopulateObject(t[o],r[o]))}},e}();e.JSON2=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={})),void 0===Math.superRound&&(Math.superRound=Math.round,Math.round=function(e,t){if(!t)return Math.superRound(e);var r=e<0?-1:1;return r<0&&(e=Math.abs(e)),t=Math.pow(10,t),Math.superRound(e*t)/t*r}),Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)},Math.sign=function(e){if(0==e||isNaN(e))return e;return e>0?1:-1},Math.log10=function(e){return Math.log(e)/Math.LN10};var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.ToEven=0]="ToEven",e[e.AwayFromZero=1]="AwayFromZero"}(t=e.MidpointRounding||(e.MidpointRounding={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function t(){}return t.initialize=function(e){void 0===e&&(e=null),0==t.isInitialize&&(t._isNodeJs=!0,Stimulsoft.System.IO.File.getFile=t.getFile,Stimulsoft.System.IO.File.saveFile=t.saveFile,Stimulsoft.StiVersion.platform=t.platform,Stimulsoft.Report.Dictionary.StiSqlAdapterService.prototype.callRemoteApi=t.callRemoteApi,t.useWebKit||(Stimulsoft.System.IO.Http.getFile=t.getFileHttp,Stimulsoft.System.Convert.fromBase64String=t.fromBase64String,Stimulsoft.System.Convert.fromBase64StringText=t.fromBase64StringText,Stimulsoft.System.Convert.toBase64String=t.toBase64String,String.prototype.fromUnicodeString=t.fromUnicodeString,Stimulsoft.Base.StiSettings.get=t.getSetting,Stimulsoft.Base.StiSettings.set=t.setSetting,Stimulsoft.System.Xml.XmlConverter.toXml=Stimulsoft.System.Xml.XmlConverter.toXml2,Stimulsoft.System.Drawing.Image.prototype.convert=t.convert),t.getLocalizationInfo(function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile(i.filePath,!1,i.language)}null!=e&&e()}),Buffer.prototype.sti_is=function(e){if(this instanceof Buffer&&e==Array&&(e=Buffer),"string"==typeof e){if(this instanceof String)return!0;if(this.implements)return this.implements().contains(e)}if("function"==typeof e)return this instanceof e;if("number"==typeof e)return this instanceof Number;if("boolean"==typeof e)return this instanceof Boolean;if(void 0==e)throw"Type for comparison is 'undefined'";return!1}),t.isInitialize=!0},t.platform=function(){return require("os").platform()},t.callRemoteApi=function(r,n){var i=new e.Promise;if(String.isNullOrEmpty(Stimulsoft.StiOptions.WebServer.url)){var a=function(e){e&&e.success&&i.callTry(e),e&&!e.success&&i.callCatch(e.notice),e||i.callCatch({success:!1,notice:""})};"MySQL"==r.database&&t.processMySql(r,a),"Firebird"==r.database&&t.processFirebird(r,a),"MS SQL"==r.database&&t.processMsSql(r,a),"PostgreSQL"==r.database&&t.processPostgreSQL(r,a)}else try{r.rnd=Math.random();var o=require("sync-request"),s={headers:{},timeout:n,json:r};s.headers["Content-Type"]="application/json";var u=o("POST",Stimulsoft.StiOptions.WebServer.url,s);if(200==u.statusCode){var m=Stimulsoft.System.Text.Encoding.UTF8.getString(t.stripBom(u.getBody()));i.callTry(m)}else i.callCatch(Stimulsoft.Base.Localization.StiLocalization.get("DesignerFx","ConnectionError"))}catch(e){Stimulsoft.System.StiError.showError(e,!1),i.callCatch(e.message)}return i},t.stripBom=function(e){if(Buffer.isBuffer(e)){if(239==e[0]&&187==e[1]&&191==e[2])return e.slice(3);if(254==e[0]&&255==e[1])return e.slice(2);if(255==e[0]&&254==e[1])return e.slice(2);if(0==e[0]&&0==e[1]&&254==e[2]&&255==e[3])return e.slice(4);if(255==e[0]&&254==e[1]&&0==e[2]&&0==e[3])return e.slice(4)}return e},t.getFile=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=""),e.match(/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi))return t.getFileHttp(e,r,n);var i;try{var a=require("fs");i=t.stripBom(a.readFileSync(e.trim())),0==r&&"object"==typeof i&&(i=Stimulsoft.System.Text.Encoding.UTF8.getString(i))}catch(e){}return i},t.getFileHttp=function(e,r,n){void 0===r&&(r=!1),void 0===n&&(n="");try{var i=require("sync-request"),a={headers:{}};String.isNullOrEmpty(n)||(a.headers["Content-Type"]=n);var o=i("GET",e,a);if(200==o.statusCode){if(r)return o.body;return Stimulsoft.System.Text.Encoding.UTF8.getString(t.stripBom(o.getBody()))}throw 404==o.statusCode?new Error("File not Found"):new Error("Status "+o.statusCode)}catch(e){}},t.saveFile=function(e,t){require("fs").writeFile(e,t,function(e){e&&Stimulsoft.System.StiError.showError(e)})},t.fromBase64String=function(e){for(var t=new Buffer(e.toString(),"base64"),r=[],n=0;n<t.length;n++){var i=t[n];r.push(i)}return r},t.fromBase64StringText=function(e){return new Buffer(e.toString(),"base64").toString("binary")},t.toBase64String=function(e){if(null==e)return null;return e.sti_is(String)&&(e=e.toUnicodeString()),new Buffer(e).toString("base64")},t.fromUnicodeString=function(){return new Buffer(this.toString(),"binary").toString("utf8")},t.isNodeJs=function(){return 0==this.isInitialize&&(this._isNodeJs="undefined"==typeof window),this._isNodeJs},t.fillInfo=function(e,t){var r=require("fs"),n=r.createReadStream(e.filePath);n.setEncoding("utf8"),n.on("readable",function(){var r;while(null!==(r=n.read(200))){var i=r.indexOf("language"),i=r.indexOf('"',i)+1,a=r.indexOf('"',i),o=r.substring(i,a),s=r.indexOf("description"),s=r.indexOf('"',s)+1,u=r.indexOf('"',s),m=r.substring(s,u),l=r.indexOf("cultureName"),l=r.indexOf('"',l)+1,y=r.indexOf('"',l),d=r.substring(l,y);e.language=o,e.description=m,e.cultureName=d,t();break}}),n.on("end",function(){console.log("done")})},t.getLocalizationInfo=function(e){var r=require("fs"),n=[],i=require("path"),a=t.localizationPath;r.exists(a,function(o){if(o){var s=r.readdirSync(a),u=s.length;0==u&&e(n);for(var m in s){var l=0;if(".xml"!=i.extname(s[m])){u--,l==u&&e(n);continue}var y=a+"/"+s[m],d={filePath:y};n.push(d),t.fillInfo(d,function(){++l==u&&e(n)})}}else e(n)})},t.getSetting=function(e,t){return t},t.setSetting=function(e,t){},t.isInitialize=!1,t.convert=function(t,r){void 0===r&&(r=!1);var n=new e.Promise;try{var i=this.data[t.toString()];if(null!=i)return n.callTry(this),n;if(null==i&&(i=this.data[Stimulsoft.System.Drawing.Imaging.ImageFormat.Png.toString()]),null==i&&(i=this.data[Stimulsoft.System.Drawing.Imaging.ImageFormat.Bmp.toString()]),null==i&&(i=this.data[Stimulsoft.System.Drawing.Imaging.ImageFormat.Jpeg.toString()]),null==i&&(i=this.data[Stimulsoft.System.Drawing.Imaging.ImageFormat.Gif.toString()]),null!=i){this._isConverting=!0;var a=require("jimp"),o=new Buffer(i.base64.replace(/^data:image\/\w+;base64,/,""),"base64"),s=this;a.read(o,function(e,i){if(e)return void n.callCatch(e);r?i.getBuffer(t.mimeType,function(e,r){if(e)return void n.callCatch(e);s.imageData=r,i.getBase64(t.mimeType,function(e,t){if(e)return void n.callCatch(e);s.base64=t,s._isConverting=!1,n.callTry(s)})}):i.getBase64(t.mimeType,function(e,t){if(e)return void n.callCatch(e);s.base64=t,s._isConverting=!1,n.callTry(s)})})}else n.callCatch("No Image")}catch(e){return n.callCatch(e.message),n}return n},t.processFirebird=function(e,t){var r=function(e){try{y&&y.detach(),t(e)}catch(e){throw Stimulsoft.System.StiError.showError(e,!1),e}},n=function(e){r({success:!1,notice:e})};try{var i=function(){m.attach(l,function(e,t){y=t,e?n(e.message):o()})},a=function(e){y.query(e,void 0,function(e,t){e?n(e.message):s(t),y.detach()})},o=function(){e.queryString?a(e.queryString):r({success:!0})},s=function(e){var t=[],n=[],i=[],a=!1;for(var o in e){var s=[];for(var u in e[o]){a||t.push(u);var m=t.indexOf(u);i[m]=typeof e[o][u],e[o][u]instanceof Uint8Array&&(e[o][u]=e[o][u].toString(),i[m]="string"),null!=e[o][u]&&"function"==typeof e[o][u].toISOString&&(e[o][u]=e[o][u].toISOString(),i[m]="datetime"),s.push(e[o][u])}a=!0,n.push(s)}r({success:!0,columns:t,rows:n,types:i})},u=function(e){var t={host:"localhost",port:"3050"},r=!1;for(var i in e.split(";")){var a=e.split(";")[i];if(a){var o=a.split("=");if(o&&o.length>=2)switch(o[0]=o[0].trim().toLowerCase(),o[1]=o[1].trim(),o[0]){case"server":case"host":case"location":case"datasource":case"data source":t.host=o[1];break;case"port":t.port=o[1];break;case"database":t.database=o[1],r=!0;break;case"uid":case"user":case"user id":t.userId=o[1];break;case"pwd":case"password":t.password=o[1];break;case"charset":t.charset=o[1];break}}}if(!r)return n("Connection String parse error"),null;return t},m=require("node-firebird");if(e.connectionStringInfo=u(e.connectionString),e.connectionStringInfo){var l={host:e.connectionStringInfo.host,port:e.connectionStringInfo.port,database:e.connectionStringInfo.database,user:e.connectionStringInfo.userId,password:e.connectionStringInfo.password,charset:e.connectionStringInfo.charset};i();var y}}catch(e){Stimulsoft.System.StiError.showError(e,!1),n(e.stack)}},t.processMsSql=function(e,t){var r=function(e){try{y&&y.close(),t(e)}catch(e){throw Stimulsoft.System.StiError.showError(e,!1),e}},n=function(e){r({success:!1,notice:e})};try{var i=function(){y=new m.ConnectionPool(l,function(e){e?n(e.message):o()})},a=function(e){y.request().query(e,function(e,t){e?n(e.message):s(t)})},o=function(){e.queryString?a(e.queryString):r({success:!0})},s=function(e){e=e.recordset;var t=[],n=[],i=[],a=!1;e.length>0&&Array.isArray(e[0])&&(e=e[0]);for(var o in e){var s=[];for(var u in e[o]){a||t.push(u);var m=t.indexOf(u);"array"!=i[m]&&(i[m]=typeof e[o][u]),e[o][u]instanceof Uint8Array&&(i[m]="array",e[o][u]=new Buffer(e[o][u]).toString("base64")),null!=e[o][u]&&"function"==typeof e[o][u].toISOString&&(e[o][u]=e[o][u].toISOString(),i[m]="datetime"),s.push(e[o][u])}a=!0,n.push(s)}r({success:!0,columns:t,rows:n,types:i})},u=function(e){var t={};for(var r in e.split(";")){var n=e.split(";")[r];if(n){var i=n.split("=");if(i&&i.length>=2)switch(i[0]=i[0].trim().toLowerCase(),i[1]=i[1].trim(),i[0]){case"data source":case"server":t.host=i[1];break;case"database":case"initial catalog":t.database=i[1];break;case"uid":case"user":case"user id":t.userId=i[1];break;case"pwd":case"password":t.password=i[1];break}}}return t},m=require("mssql");e.connectionStringInfo=u(e.connectionString);var l={user:e.connectionStringInfo.userId,password:e.connectionStringInfo.password,server:e.connectionStringInfo.host,database:e.connectionStringInfo.database},y;i()}catch(e){Stimulsoft.System.StiError.showError(e,!1),n(e.stack)}},t.processMySql=function(e,t){var r=function(e){try{l&&l.end(),t(e)}catch(e){throw Stimulsoft.System.StiError.showError(e,!1),e}},n=function(e){r({success:!1,notice:e})};try{var i=function(){l.connect(function(e){e?n(e.message):o()})},a=function(t){l.query("USE "+e.connectionStringInfo.database),l.query(t,function(e,t){e?n(e.message):s(t)})},o=function(){e.queryString?a(e.queryString):r({success:!0})},s=function(e){var t=[],n=[],i=[],a=!1;e.length>0&&Array.isArray(e[0])&&(e=e[0]);for(var o in e){var s=[];for(var u in e[o]){a||t.push(u);var m=t.indexOf(u);"array"!=i[m]&&(i[m]=typeof e[o][u]),e[o][u]instanceof Uint8Array&&(i[m]="array",e[o][u]=new Buffer(e[o][u]).toString("base64")),null!=e[o][u]&&"function"==typeof e[o][u].toISOString&&(e[o][u]=e[o][u].toISOString(),i[m]="datetime"),s.push(e[o][u])}a=!0,n.push(s)}r({success:!0,columns:t,rows:n,types:i})},u=function(e){var t={host:"localhost",port:"3306",charset:"utf8"};for(var r in e.split(";")){var n=e.split(";")[r];if(n){var i=n.split("=");if(i&&i.length>=2)switch(i[0]=i[0].trim().toLowerCase(),i[1]=i[1].trim(),i[0]){case"server":case"host":case"location":t.host=i[1];break;case"port":t.port=i[1];break;case"database":case"data source":t.database=i[1];break;case"uid":case"user":case"username":case"userid":case"user id":t.userId=i[1];break;case"pwd":case"password":t.password=i[1];break;case"charset":t.charset=i[1];break}}}return t},m=require("mysql");e.connectionStringInfo=u(e.connectionString);var l=m.createConnection({host:e.connectionStringInfo.host,user:e.connectionStringInfo.userId,password:e.connectionStringInfo.password,port:e.connectionStringInfo.port,charset:e.connectionStringInfo.charset,database:e.connectionStringInfo.database});i()}catch(e){Stimulsoft.System.StiError.showError(e,!1),n(e.stack)}},t.processPostgreSQL=function(e,t){var r=function(e){try{l&&l.end(),t(e)}catch(e){}},n=function(e){r({success:!1,notice:e})};try{var i=function(){l.connect(function(e){e?n(e):o()})},a=function(e){l.query(e,function(e,t){e?n(e):s(t)})},o=function(){e.queryString?a(e.queryString):r({success:!0})},s=function(e){var t=[],n=[];for(var i in e.fields)t.push(e.fields[i].name);for(var i in e.rows){var a=[];for(var o in t)a[o]=e.rows[i][t[o]];n.push(a)}r({success:!0,columns:t,rows:n})},u=function(e){var t={port:5432};for(var r in e.split(";")){var n=e.split(";")[r];if(n){var i=n.split("=");if(i&&i.length>=2)switch(i[0]=i[0].trim().toLowerCase(),i[1]=i[1].trim(),i[0]){case"data source":case"server":case"host":t.host=i[1];break;case"port":t.port=i[1];break;case"database":case"location":t.database=i[1];break;case"uid":case"user":case"user id":t.userId=i[1];break;case"pwd":case"password":t.password=i[1];break}}}return t},m=require("pg");e.connectionStringInfo=u(e.connectionString),e.postgreConnectionString="postgres://"+e.connectionStringInfo.userId+":"+e.connectionStringInfo.password+"@"+e.connectionStringInfo.host,null!=e.connectionStringInfo.port&&(e.postgreConnectionString+=":"+e.connectionStringInfo.port),e.postgreConnectionString+="/"+e.connectionStringInfo.database;var l=new m.Client(e.postgreConnectionString);i()}catch(e){n(e.stack)}},t._isNodeJs=!1,t.useWebKit=!0,t.consoleLog=!0,t.localizationPath="locales",t}();e.NodeJs=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={})),Number.prototype.sti_as=function(e){if(this.sti_is(e))return this.toNumber();return null},Number.prototype.compareTo=function(e){return this<e?-1:this>e?1:0},Number.prototype.toStringFormat=function(e){return String.parseFormatString(e,[this])},Number.getStiTypeName=function(){return"Decimal"},Number.getStiNetTypeName=function(){return"System.Decimal"},Object.prototype.getStiType=function(){if("function"==typeof this)return this;return this.constructor},Object.prototype.sti_is=function(e){if("string"==typeof e){if(this instanceof String)return!0;if(this.implements)return this.implements().contains(e)}if("function"==typeof e)return this instanceof e;if("number"==typeof e)return this instanceof Number;if("boolean"==typeof e)return this instanceof Boolean;if(void 0==e)throw"Type for comparison is 'undefined'";return!1},Object.prototype.sti_as=function(e){if(this.sti_is(e))return this;return null},Object.prototype.memberwiseClone=function(){for(var e=Object.getOwnPropertyNames(this),t=new(this.getStiType()),r=0,n=e;r<n.length;r++){var i=n[r];t[i]=this[i]}return t},Object.prototype.stiEquals=function(e){if(this.sti_is(String)||this.sti_is(Number)||this.sti_is(Boolean)||this.sti_is(Function))return this==e;for(var t=Object.getOwnPropertyNames(this),r=0,n=t;r<n.length;r++){var i=n[r];if(null!=this[i]&&!this[i].stiEquals(e[i]))return!1}return!0},Object.prototype.getHashCode=function(){if(this.sti_is(String))return this.getHashCode();if(this.sti_is(Number)||this.sti_is(Boolean))return this.toString().getHashCode();if(this.sti_is(Function))return this.getStiType().fullName.getHashCode();for(var e=0,t=Object.getOwnPropertyNames(this),r=0,n=t;r<n.length;r++){var i=n[r];null!=this[i]&&(e+=this[i].getHashCode().toString())}return e.getHashCode()},Object.prototype.compareTo=function(e){return-1},Object.prototype.toBoolean=function(){if("1"==this.toString())return!0;return"true"==this.toString().toLower()},Object.prototype.toNumber=function(){if(this.sti_is(String)&&this.indexOf(",")>=0)return Number(this.replaceAll(",","."));return Number(this)},Object.referenceEquals=function(e,t){return e==t},Object.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&e.attachEvent("on"+t,r)},Object.stiEquals=function(e,t){if(Object.referenceEquals(e,t))return!0;if(null==e||null==t)return!1;return e.stiEquals(t)},Object.getStiTypeName=function(){return"Object"},Object.getStiNetTypeName=function(){return"System.Object"},Object.isNullOrUndefined=function(e){return null==e||void 0===e},Object.saveAs=function(e,t,r){if(void 0===r&&(r="application/octet-stream"),!e)return;e.sti_is(Array)&&(e=new Uint8Array(e));var n=new Blob([e],{type:r});Object.internalSaveAs(n,t)},Object.hasOwnProperty("internalSaveAs")||Object.defineProperty(Object,"internalSaveAs",{value:function(e){if(void 0===e)return;if("undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))return;var t=e.document,r=function(){return e.webkitURL||e.URL||e},n=t.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in n,a=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},o=e.webkitRequestFileSystem,s=e.requestFileSystem||o||e.mozRequestFileSystem,u=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},m="application/octet-stream",l=0,y=500,d=function(t){var n=function(){"string"==typeof t?r().revokeObjectURL(t):t.remove()};e.chrome?n():setTimeout(n,y)},h=function(e,t,r){t=[].concat(t);var n=t.length;while(n--){var i=e["on"+t[n]];if("function"==typeof i)try{i.call(e,r||e)}catch(e){Stimulsoft.System.StiError.showError(e.message,!1),u(e)}}},c=function(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type))return new Blob(["\ufeff",e],{type:e.type});return e},f=function(t,u,y){var f=this;y||(t=c(t));var p=this,M=t.type,b=!1,g,S,v=function(){h(f,"writestart progress write writeend".split(" "),void 0)},w=function(){if(b||!g)try{g=r().createObjectURL(t)}catch(e){g=r()}if(S)S.location.href=g;else{var n=e.open(g,"_blank"),i=i||void 0;void 0==n&&void 0!==i&&(e.location.href=g)}f.readyState=f.DONE,v(),d(g)},N=function(e){return function(){if(this.readyState!==this.DONE)return e.apply(this,arguments)}},j={create:!0,exclusive:!1},I;if(p.readyState=p.INIT,u||(u="download"),i){try{g=r().createObjectURL(t)}catch(e){g=r()}return n.href=g,n.download=u,void setTimeout(function(){a(n),v(),d(g),f.readyState=f.DONE})}if(e.chrome&&M&&M!==m&&(I=t.slice||t.webkitSlice,t=I.call(t,0,t.size,m),b=!0),o&&"download"!==u&&(u+=".download"),(M===m||o)&&(S=e),!s)return void w();l+=t.size,s(e.TEMPORARY,l,N(function(e){e.root.getDirectory("saved",j,N(function(e){var r=function(){e.getFile(u,j,N(function(e){e.createWriter(N(function(r){r.onwriteend=function(t){S.location.href=e.toURL(),this.readyState=this.DONE,h(this,"writeend",t),d(e)},r.onerror=function(){var e=r.error;e.code!==e.ABORT_ERR&&w()},"writestart progress write abort".split(" ").forEach(function(e){r["on"+e]=this["on"+e]}),r.write(t),this.abort=function(){r.abort(),this.readyState=this.DONE},this.readyState=this.WRITING}),w)}),w)};e.getFile(u,{create:!1},N(function(e){e.remove(),r()}),N(function(e){e.code===e.NOT_FOUND_ERR?r():w()}))}),w)}),w)},p=f.prototype,M=function(e,t,r){return new f(e,t,r)};if("undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob)return function(e,t,r){return r||(e=c(e)),navigator.msSaveOrOpenBlob(e,t||"download")};return p.abort=function(){var e=this;e.readyState=e.DONE,h(e,"abort",void 0)},p.readyState=p.INIT=0,p.WRITING=1,p.DONE=2,p.error=p.onwritestart=p.onprogress=p.onwrite=p.onabort=p.onerror=p.onwriteend=null,M}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content),enumerable:!1}),Object.defineProperty(Object.prototype,"getStiType",{enumerable:!1}),Object.defineProperty(Object.prototype,"sti_is",{enumerable:!1}),Object.defineProperty(Object.prototype,"sti_as",{enumerable:!1}),Object.defineProperty(Object.prototype,"memberwiseClone",{enumerable:!1}),Object.defineProperty(Object.prototype,"stiEquals",{enumerable:!1}),Object.defineProperty(Object.prototype,"getHashCode",{enumerable:!1}),Object.defineProperty(Object.prototype,"compareTo",{enumerable:!1}),Object.defineProperty(Object.prototype,"toBoolean",{enumerable:!1}),Object.defineProperty(Object.prototype,"toNumber",{enumerable:!1}),Object.defineProperty(Object.prototype,"getStiTypeName",{enumerable:!1,writable:!0}),Object.defineProperty(Object.prototype,"getStiNetTypeName",{enumerable:!1,writable:!0});var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(e,t,r){this._length=1,this.arg0=e,t&&(this.arg1=t,this._length=2),r&&(this.arg2=r,this._length=3)}return Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return 0==e?this.arg0:1==e?this.arg1:this.arg2},e}();e.ParamsArray=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){this._timeout=-1,this._callTry=!1,this._callCatch=!1,this._callFinaly=!1,this._callTimeout=!0,this.promise=this,this.assignFunction=!1,this._catchFunctions=[],this.nextPromises=[],this._startTime=Date.now()}return e.prototype.try=function(e){return this.assignFunction=!0,this._tryFunction=e,this._callTry&&this.callTry(this.returnValue),this},e.prototype.catch=function(e){return this.assignFunction=!0,this._catchFunctions.push(e),this._callCatch&&this.callCatch(this._catchArgument),this},e.prototype.finally=function(e){return this._finallyFunction=e,this._callFinaly&&this.callFinally(this._finalyArgument),this},e.prototype.this=function(e){return this._this=e,this},e.prototype.timeout=function(e){var t=this;return this._callTimeout&&(this._timeout=e,this.timeoutHanderId=setTimeout(function(){t.callCatch("Timeout response from the server.")},this._timeout)),this},e.prototype.callTry=function(e){void 0===e&&(e=null),this.returnValue=e,this._tryFunction?(clearTimeout(this.timeoutHanderId),this._tryFunction(this.returnValue),this.callFinally(this.returnValue)):this.assignFunction?this.callFinally(this.returnValue):(this._callTry=!0,this._callFinaly=!0,this._callTimeout=!1,this._finalyArgument=this._catchArgument)},e.prototype.callCatch=function(e){if(void 0===e&&(e=null),this._catchArgument=e,this._catchFunctions.length>0){clearTimeout(this.timeoutHanderId);for(var t=0,r=this._catchFunctions;t<r.length;t++){(0,r[t])(this._catchArgument)}this.callFinally(this._catchArgument)}else this.assignFunction?this.callFinally(this._catchArgument):(this._callCatch=!0,this._callFinaly=!0,this._callTimeout=!1,this._finalyArgument=this._catchArgument)},e.prototype.callFinally=function(e){this._callFinaly=!1,this._callTimeout=!1,this._finalyArgument=e,this._finallyFunction?this._finallyFunction(this._finalyArgument):this._callFinaly=!0},e.prototype.callTimeout=function(){if(-1!=this._timeout&&Date.now()-this._startTime>this._timeout)throw""},e.prototype.abort=function(e){if(void 0===e&&(e=null),null!=e)e.nextPromises.push(this);else{for(var t=0,r=this.nextPromises;t<r.length;t++){r[t].abort()}null!=this.abortFunction&&this.abortFunction(),clearTimeout(this.timeoutHanderId)}return this},e.prototype.onAbort=function(e){this.abortFunction=e},e}();e.Promise=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r=function(){function t(){return}return Object.defineProperty(t.prototype,"rangeName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeType",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fromObject",{get:function(){return null},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toObject",{get:function(){return null},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.parse=function(t,r){if(this.rangeType==e.System.Char)String.isNullOrEmpty(t)||(this.fromObject=t[0]),String.isNullOrEmpty(r)||(this.toObject=r[0]);else if(this.rangeType==e.System.DateTime)try{String.isNullOrEmpty(t.trim())?this.fromObject=null:this.fromObject=new e.System.DateTime(Date.parse(t)),String.isNullOrEmpty(r.trim())?this.toObject=null:this.toObject=new e.System.DateTime(Date.parse(r))}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.TimeSpan)try{String.isNullOrEmpty(t.trim())?this.fromObject=null:this.fromObject=e.System.TimeSpan.fromString(t),String.isNullOrEmpty(r.trim())?this.toObject=null:this.toObject=e.System.TimeSpan.fromString(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Decimal)try{String.isNullOrEmpty(t.trim())?this.fromObject=0:this.fromObject=parseFloat(t),String.isNullOrEmpty(r.trim())?this.toObject=0:this.toObject=parseFloat(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Single)try{String.isNullOrEmpty(t.trim())?this.fromObject=0:this.fromObject=parseFloat(t),String.isNullOrEmpty(r.trim())?this.toObject=0:this.toObject=parseFloat(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Double)try{String.isNullOrEmpty(t.trim())?this.fromObject=0:this.fromObject=parseFloat(t),String.isNullOrEmpty(r.trim())?this.toObject=0:this.toObject=parseFloat(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Byte)try{String.isNullOrEmpty(t.trim())?this.fromObject=0:this.fromObject=parseInt(t),String.isNullOrEmpty(r.trim())?this.toObject=0:this.toObject=parseInt(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Int16)try{String.isNullOrEmpty(t.trim())?this.fromObject=0:this.fromObject=parseInt(t),String.isNullOrEmpty(r.trim())?this.toObject=0:this.toObject=parseInt(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Int32)try{String.isNullOrEmpty(t.trim())?this.fromObject=0:this.fromObject=parseInt(t),String.isNullOrEmpty(r.trim())?this.toObject=0:this.toObject=parseInt(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Int64)try{String.isNullOrEmpty(t.trim())?this.fromObject=0:this.fromObject=parseInt(t),String.isNullOrEmpty(r.trim())?this.toObject=0:this.toObject=parseInt(r)}catch(t){e.System.StiError.showError(t,!1)}else if(this.rangeType==e.System.Guid)try{this.fromObject=new e.System.Guid(t),this.toObject=new e.System.Guid(r)}catch(t){e.System.StiError.showError(t,!1)}else this.rangeType==String&&(this.fromObject=t,this.toObject=r)},t.prototype.stiEquals=function(e){var r=e.sti_as(t);if(null==r)return!1;return this.fromObject==r.fromObject&&0==this.fromObject.compareTo(r.fromObject)&&0==this.toObject.compareTo(r.toObject)},Object.defineProperty(t.prototype,"fromStrLoc",{get:function(){if(e.Base)return e.Base.Localization.StiLocalization.get("PropertyMain","RangeFrom");return"From"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toStrLoc",{get:function(){if(e.Base)return e.Base.Localization.StiLocalization.get("PropertyMain","RangeTo");return"To"},enumerable:!0,configurable:!0}),t.prototype.getHashCode=function(){return null},t}();t.Range=r;var n=function(t){function r(e,r){var n=t.call(this)||this;return n.from="A",n.to="Z",null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"CharRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Char},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(String)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(String)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.CharRange=n;var i=function(t){function r(e,r){var n=t.call(this)||this;return n.from=null,n.to=null,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"DateTimeRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.DateTime},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(t){null!=t&&t.sti_is(e.System.DateTime)&&(this.from=t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(t){null!=t&&t.sti_is(e.System.DateTime)&&(this.to=t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromDate",{get:function(){if(null==this.from)return e.System.DateTime.minValue;return this.from},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toDate",{get:function(){if(null==this.to)return e.System.DateTime.maxValue;return this.to},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){if(null==this.from&&null==this.to)return!0;if(null==e)return!1;if(null==this.from&&null!=this.to)return this.to>=e;if(null!=this.from&&null==this.to)return this.from<=e;return this.from<=e&&this.to>=e},r.prototype.toString=function(){var e=null!=this.from?String.stiFormat("{0:d}",this.from):"-",t=null!=this.to?String.stiFormat("{0:d}",this.to):"-";return String.stiFormat("{0} {1} {2} {3}",this.fromStrLoc,e,this.toStrLoc.toLower(),t)},r}(r);t.DateTimeRange=i;var a=function(t){function r(e,r){var n=t.call(this)||this;return n.from=null,n.to=null,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"TimeSpanRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.TimeSpan},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(t){null!=t&&t.sti_is(e.System.TimeSpan)&&(this.from=t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(t){null!=t&&t.sti_is(e.System.TimeSpan)&&(this.to=t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromTime",{get:function(){if(null==this.from)return e.System.TimeSpan.minValue;return this.from},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toTime",{get:function(){if(null==this.to)return e.System.TimeSpan.maxValue;return this.to},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){if(null==this.from&&null==this.to)return!0;if(null==e)return!1;if(null==this.from&&null!=this.to)return this.to>=e;if(null!=this.from&&null==this.to)return this.from<=e;return this.from<=e&&this.to>=e},r}(r);t.TimeSpanRange=a;var o=function(t){function r(e,r){var n=t.call(this)||this;return n.from=0,n.to=0,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"DecimalRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Decimal},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(Number)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(Number)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.DecimalRange=o;var s=function(t){function r(e,r){var n=t.call(this)||this;return n.from=0,n.to=0,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"FloatRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Single},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(Number)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(Number)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.FloatRange=s;var u=function(t){function r(e,r){var n=t.call(this)||this;return n.from=0,n.to=0,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"DoubleRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Double},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(Number)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(Number)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.DoubleRange=u;var m=function(t){function r(e,r){var n=t.call(this)||this;return n.from=0,n.to=0,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"ByteRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Byte},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(Number)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(Number)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.ByteRange=m;var l=function(t){function r(e,r){var n=t.call(this)||this;return n.from=0,n.to=0,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"ShortRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Int16},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(Number)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(Number)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.ShortRange=l;var y=function(t){function r(e,r){var n=t.call(this)||this;return n.from=0,n.to=0,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"IntRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Int32},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(Number)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(Number)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.IntRange=y;var d=function(t){function r(e,r){var n=t.call(this)||this;return n.from=0,n.to=0,null!=e&&(n.from=e),null!=r&&(n.to=r),n}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"LongRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Int64},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(Number)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(Number)&&(this.to=e)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from<=e&&this.to>=e},r}(r);t.LongRange=d;var h=function(t){function r(r,n){var i=t.call(this)||this;return i.from=e.System.Guid.empty,i.to=e.System.Guid.empty,null!=r&&(i.from=r),null!=n&&(i.to=n),i}return __extends(r,t),Object.defineProperty(r.prototype,"rangeName",{get:function(){return"GuidRange"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeType",{get:function(){return e.System.Guid},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fromObject",{get:function(){return this.from},set:function(t){null!=t&&t.sti_is(e.System.Guid)&&(this.from=t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toObject",{get:function(){return this.to},set:function(t){null!=t&&t.sti_is(e.System.Guid)&&(this.to=t)},enumerable:!0,configurable:!0}),r.prototype.contains=function(e){return this.from.compareTo(e)<=0&&this.to.compareTo(e)>=0},r}(r);t.GuidRange=h;var c=function(e){function t(t,r){var n=e.call(this)||this;return n.from=String.empty,n.to=String.empty,null!=t&&(n.from=t),null!=r&&(n.to=r),n}return __extends(t,e),Object.defineProperty(t.prototype,"rangeName",{get:function(){return"StringRange"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeType",{get:function(){return String},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fromObject",{get:function(){return this.from},set:function(e){null!=e&&e.sti_is(String)&&(this.from=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toObject",{get:function(){return this.to},set:function(e){null!=e&&e.sti_is(String)&&(this.to=e)},enumerable:!0,configurable:!0}),t.prototype.contains=function(e){if(null==this.from&&null==this.to)return!0;if(null==e)return!0;if(null==this.from&&null!=this.to)return this.to.compareTo(e.toString())>=0;if(null!=this.from&&null==this.to)return this.from.compareTo(e.toString())<=0;return this.from.compareTo(e.toString())<=0&&this.to.compareTo(e.toString())>=0},t}(r);t.StringRange=c}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){this.resource=[{name:"DHSBigSeparator",value:"dirhams",comment:"Separator for big numbers"},{name:"DHSCentGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"DHSCentPlural",value:"centimes"},{name:"DHSCentSingle",value:"centime"},{name:"DHSGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"DHSPlural",value:"dirhams"},{name:"DHSSingle",value:"dirham"},{name:"EURBigSeparator",value:"euros",comment:"Separator for big numbers"},{name:"EURCentGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"EURCentPlural",value:"cents"},{name:"EURCentSingle",value:"cent"},{name:"EURGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"EURPlural",value:"euros"},{name:"EURSingle",value:"euro"},{name:"GBPBigSeparator",value:"pounds",comment:"Separator for big numbers"},{name:"GBPCentGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"GBPCentPlural",value:"pence"},{name:"GBPCentSingle",value:"penny"},{name:"GBPGender",value:"2",comment:"0 : neutral - 1 : male - 2 : female"},{name:"GBPPlural",value:"pounds"},{name:"GBPSingle",value:"pound"},{name:"MXNBigSeparator",value:"pesos",comment:"Separator for big numbers"},{name:"MXNCentGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"MXNCentPlural",value:"centavos"},{name:"MXNCentSingle",value:"centavo"},{name:"MXNGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"MXNPlural",value:"pesos"},{name:"MXNSingle",value:"peso"},{name:"TooLongError",value:"the number is too big"},{name:"USDBigSeparator",value:"dollars\tSeparator for big numbers"},{name:"USDCentGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"USDCentPlural",value:"cents"},{name:"USDCentSingle",value:"cent"},{name:"USDGender",value:"1",comment:"0 : neutral - 1 : male - 2 : female"},{name:"USDPlural",value:"dollars"},{name:"USDSingle",value:"dollar"}]}return e.prototype.getString=function(e,t){for(var r=0,n=this.resource;r<n.length;r++){var i=n[r];if(i.name==e)return i.value}return""},e}();e.ResourceManager=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r=function(){function t(){}return t.showError=function(r,n){void 0===n&&(n=!0);var i=r;null!=r&&null!=r.message&&(i=r.message),n&&t.errorMessageForm&&t.errorMessageForm.show(i,!1),e.System.NodeJs.consoleLog&&console.log(i)},t}();t.StiError=r}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={})),String.prototype.replaceAll=function(e,t){return this.split(e).join(t)},String.prototype.sti_as=function(e){if(this.sti_is(e))return this.toString();return null},String.prototype.contains=function(e){return-1!=this.indexOf(e)},String.prototype.compareTo=function(e){return this.localeCompare(e)},String.prototype.toLower=function(){return this.toLowerCase()},String.prototype.toUpper=function(){return this.toUpperCase()},String.prototype.isBase64String=function(){return/^([0-9a-zA-Z+\/]{4})*(([0-9a-zA-Z+\/]{2}==)|([0-9a-zA-Z+\/]{3}=))?$/.test(this)},String.prototype.remove=function(e,t){return void 0===t&&(t=Number.MAX_VALUE),this.substr(0,e)+this.substring(e+t)},String.prototype.insert=function(e,t,r){return void 0===r&&(r=0),this.substring(0,e)+t+this.substring(e+r,this.length)},String.prototype.padLeft=function(e,t){void 0===t&&(t=" ");var r=e-this.length;if(r>0){if(1==r)return t+this;return String.repeat(t,r)+this}return this},String.prototype.startsWith=function(e,t){if(void 0===t&&(t=!1),null==e)return!1;if(t)return this.toLower().substr(0,e.length)==e.toLower();return this.substr(0,e.length)==e},String.prototype.endsWith=function(e,t){if(void 0===t&&(t=!1),null==e)return!1;if(t)return this.toLower().substr(this.length-e.length,e.length)==e.toLower();return this.substr(this.length-e.length,e.length)==e},String.prototype.trimStart=function(e){void 0===e&&(e=" ");var t=this;while(t.length>0&&t.charAt(0)==e)t=t.substr(1);return t},String.prototype.trimEnd=function(e){void 0===e&&(e=" ");var t=this;while(t.length>0&&t.charAt(t.length-1)==e)t=t.substr(0,t.length-1);return t},String.prototype.getHashCode=function(){var e=0;if(0==this.length)return e;for(var t=0;t<this.length;t++){e=(e<<5)-e+this.charCodeAt(t),e&=e}return e},String.prototype.toBytesArray=function(){return Array.prototype.map.call(this,function(e){return e.charCodeAt(0)})},String.prototype.toUnicodeString=function(){return unescape(encodeURIComponent(this))},String.prototype.fromUnicodeString=function(){try{return decodeURIComponent(escape(this))}catch(e){return decodeURIComponent(encodeURIComponent(this))}},String.prototype.indexOfAny=function(e){return String.indexOfAny(this,e)},String.prototype.regexIndexOf=function(e,t){var r=this.substring(t||0).search(e);return r>=0?r+(t||0):r},String.prototype.regexLastIndexOf=function(e,t){e=e.global?e:new RegExp(e.source,"g"+(e.ignoreCase?"i":"")+(e.multiline?"m":"")),void 0===t?t=this.length:t<0&&(t=0);var r=this.substring(0,t+1),n=-1,i=0,a;while(null!=(a=e.exec(r)))n=a.index,e.lastIndex=++i;return n},String.empty="",String.isNullOrEmpty=function(e){return null==e||""===e||void 0===e},String.isNullOrWhiteSpace=function(e){return null==e||""===e.trim()},String.repeat=function(e,t){if(0==t)return"";for(var r=e,n=1;n<t;n++)r+=e;return r},String.fill=function(e,t){return String.repeat(e,t)},String.stiFormat=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n="",i=0,a=0;while(i<e.length)if("{"==e.charAt(i)){while("{"==e.charAt(i))i++;i-1>a&&(n+=e.substring(a,i-1)),a=i;while(i<e.length&&"}"!=e.charAt(i))i++;i>a&&(n+=String.parseFormatString(e.substring(a,i),t)),i++,a=i}else i++;return i>a&&(n+=e.substring(a,i)),n},String.stiFormat2=function(e,t,r,n,i){return(new Stimulsoft.System.Text.StringBuilder).appendFormatHelper(e,t,new Stimulsoft.System.ParamsArray(r,n,i)).toString()},String.parseFormatString=function(e,t){var r=0;while(r<e.length&&Stimulsoft.System.Char.isDigit(e.charAt(r)))r++;if(r>0){var n=parseInt(e.substring(0,r),10),i=String.empty,a=-1,o=null;if(r+1<e.length&&":"==e.charAt(r)){if(String.isNullOrEmpty(t[n]))return"";if(t[n].sti_is(Stimulsoft.System.DateTime)||t[n].sti_is(Stimulsoft.System.TimeSpan))return t[n].toString(e.substr(r+1));i=e.charAt(r+1),o=e.substr(r+1),r+=2;var s=r;while(r<e.length&&Stimulsoft.System.Char.isDigit(e.charAt(r)))r++;r>s&&(a=parseInt(e.substring(s,r),10))}if(0==i.length)return t[n];if(o.startsWith("dd"))return null==t[n]?String.empty:t[n];switch(i){case"F":case"f":var u=String.formatNumber(t[n],a,!1,!0);return null==u?t[n]:u;case"N":case"n":var m=String.formatNumber(t[n],a,!0,!0);return null==m?t[n]:m;case"P":case"p":var l=String.formatNumber(100*t[n],a,!0,!0);return null==l?t[n]:l+"%";case"C":case"c":var y=String.formatNumber(t[n],a,!0,!1);return null==y?t[n]:(t[n]<0?"-$":"$")+y;case"D":case"d":var d=Math.abs(t[n]).toString().padLeft(a,"0");return"NaN"==d?t[n]:(t[n]<0?"-":"")+d;case"X":return t[n]<0&&(t[n]=4294967295+t[n]+1),t[n].toString(16).toUpperCase().padLeft(a,"0");case"x":return t[n]<0&&(t[n]=4294967295+t[n]+1),t[n].toString(16).toLowerCase().padLeft(a,"0");default:return String.customFormat(t[n],o)}}return""},String.formatNumber=function(e,t,r,n){var i=Stimulsoft.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator,a=" ",o=3;-1==t&&(t=2);var s="";if(!e.sti_is(Number))return null;var u=Math.abs(e).toString().replaceAll(".",",").replaceAll(",",i),m=e<0,l=u.substring(0,u.indexOf(i));if(0==l.length&&(l=u),o>0&&r){var y=l.length-o;while(y>=0)s=(y>0?a:"")+l.substr(y,o)+s,y-=o;y<0&&(s=l.substring(0,y+o)+s)}else s=l;if(t>0){var d=u.substring(u.indexOf(i)+1);d=d.substr(0,t),-1==u.indexOf(i)&&(d="");while(d.length<t)d+="0";s+=i+d}return n&&m&&(s="-"+s),s},String.customFormat=function(e,t){if(null==t||0==t.length)return e.toString();if("number"==typeof e)return String.customFormatNumber(e,t);return(new Stimulsoft.System.SwitchSymbolFormatter).formatValue(t,e)},String.customFormatNumber=function(e,t){var r=["p.","$","€","¢","£","¤","¥","₣","₤","₧","₪","₫","฿","₠","₡","₢","₥","₦","₨","₩","₫"],n=Stimulsoft.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator,i=" ",a="",o="",s="",u="",m=!1,l=-1,y=-1,d=0;for(r.forEach(function(e){t.startsWith(e)&&(a=e),t.endsWith(e)&&(o=e)}),d=0;d<t.length;d++){var h=t.charAt(d);if("."==h){m=!0,y=d;continue}if("0"==h||"#"==h){m?u+=h:s+=h;continue}m||(i=h,l=s.length)}if(0==u.length&&0==s.length)return t;var c=0;-1!=l&&(c=s.length-l);var f=u.length,p=u.lastIndexOf("0")+1,M=s.indexOf("0"),b=-1==M?0:s.length-M,g="",S=e<0,v=Math.abs(e),w=Math.trunc(v),N=Math.pow(10,f),j=Math.round(Math.round(v-w,f)*N);j>=N&&(w++,j=0);var I=w.toString();if(I.length<b&&(I=String.fill("0",b-I.length)+I),0!=w||b>0)if(c>0){d=I.length-c;while(d>=0)g=(d>0?i:"")+I.substr(d,c)+g,d-=c;d<0&&(g=I.substring(0,d+c)+g)}else g=I;if(f>0){I=j.toString(),M=I.length;while(M>p&&"0"==I.charAt(M-1))M--;M!=I.length&&(I=I.substr(0,M));while(I.length<p)I="0"+I;g+=n+I}return S&&(g="-"+g),a+g+o},String.indexOfAny=function(e,t){if(String.isNullOrEmpty(e)||0==t.length)return-1;for(var r=0;r<e.length;r++)for(var n=e.charAt(r),i=0;i<t.length;i++)if(t[i]==n)return r;return-1},String.join=function(e,t){for(var r=0,n=t.length,i="",a=r;a<n;a++)i+=t[a],a!=n-1&&(i+=e);return i},String.fromBytesArray=function(e){for(var t="",r=new Uint8Array(e),n=0;n<r.byteLength;n++)t+=String.fromCharCode(r[n]);return t},String.getStiTypeName=function(){return"String"},String.getStiNetTypeName=function(){return"System.String"};var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.CurrentCulture=0]="CurrentCulture",e[e.CurrentCultureIgnoreCase=1]="CurrentCultureIgnoreCase",e[e.InvariantCulture=2]="InvariantCulture",e[e.InvariantCultureIgnoreCase=3]="InvariantCultureIgnoreCase",e[e.Ordinal=4]="Ordinal",e[e.OrdinalIgnoreCase=5]="OrdinalIgnoreCase"}(t=e.StringComparison||(e.StringComparison={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(e){void 0===e&&(e="#"),this.numberSymbol=e,this.isValid=!0}return e.prototype.formatValue=function(e,t){for(var r="",n=0,i=e.length,a=0;a<i;a++){e.charAt(a)==this.numberSymbol?r+=t.charAt(n++):r+=e.charAt(a)}return r},e}();e.SwitchSymbolFormatter=t}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r=function(){function r(){}return r.getTypes=function(){return null==r.types&&(r.types=[Boolean,i,a,t.Char,t.DateTime,t.TimeSpan,o,s,t.Guid,l,y,d,Object,f,p,String,b,g,S,e.System.Drawing.Image,j,I,_,k,F,T,D,A,C,H,E,R,W,z,J,G,q,V,X,Y,Z,Q,$,ee,te,re,ne,ie,oe,se,ue,me,le,ye,de,he,ce,fe,pe,Me,be]),r.types},r.isValueType=function(r){return r==Boolean||r==i||r==t.Char||r==t.DateTime||r==t.TimeSpan||r==o||r==s||r==t.Guid||r==l||r==y||r==d||r==Object||r==f||r==p||r==String||r==b||r==g||r==S||r==e.System.Drawing.Image||r==j||r==I||r==_||r==k||r==F||r==T||r==D||r==A||r==C||r==H||r==E||r==R||r==W||r==z||r==J||r==G},r}();t.TypeHelper=r;var n=function(){function e(){}return e.prototype.apply=function(e,t){return null},e.prototype.call=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null},e.prototype.bind=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null},e}();t.Type=n,n.prototype=Function.prototype;var i=function(){function e(){}return e}();t.Byte=i;var a=function(){function e(){}return e}();t.ByteArray=a;var o=function(){function e(){}return e}();t.Decimal=o;var s=function(){function e(){}return e}();t.Double=s;var u=function(){function e(){}return e}();t.Float=u;var m=function(){function e(){}return e}();t.Int=m;var l=function(){function e(){}return e}();t.Int16=l;var y=function(){function e(){}return e}();t.Int32=y;var d=function(){function e(){}return e}();t.Int64=d;var h=function(){function e(){}return e}();t.Short=h;var c=function(){function e(){}return e}();t.Long=c;var f=function(){function e(){}return e}();t.SByte=f;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(Number);t.Single=p;var M=function(){function e(){}return e}();t.UInt=M;var b=function(){function e(){}return e}();t.UInt16=b;var g=function(){function e(){}return e}();t.UInt32=g;var S=function(){function e(){}return e}();t.UInt64=S;var v=function(){function e(){}return e}();t.UShort=v;var w=function(){function e(){}return e}();t.ULong=w;var N=function(){function e(){}return e}();t.Nullable=N;var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Boolean]"},t}(N);t.NullableBoolean=j;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Byte]"},t}(N);t.NullableByte=I;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Char]"},t}(N);t.NullableChar=_;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.DateTime]"},t}(N);t.NullableDateTime=k;var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.TimeSpan]"},t}(N);t.NullableTimeSpan=F;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Decimal]"},t}(N);t.NullableDecimal=T;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Double]"},t}(N);t.NullableDouble=D;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Float]"},t}(N);t.NullableFloat=P;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Guid]"},t}(N);t.NullableGuid=A;var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Int]"},t}(N);t.NullableInt=O;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Int16]"},t}(N);t.NullableInt16=C;var H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Int32]"},t}(N);t.NullableInt32=H;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Int64]"},t}(N);t.NullableInt64=E;var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Short]"},t}(N);t.NullableShort=B;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Long]"},t}(N);t.NullableLong=x;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.SByte]"},t}(N);t.NullableSByte=R;var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.Single]"},t}(N);t.NullableSingle=W;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.UInt]"},t}(N);t.NullableUInt=L;var z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.UInt16]"},t}(N);t.NullableUInt16=z;var J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.UInt32]"},t}(N);t.NullableUInt32=J;var G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.UInt64]"},t}(N);t.NullableUInt64=G;var K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.UShort]"},t}(N);t.NullableUShort=K;var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"Nullable`1"},t.getStiNetTypeName=function(){return"System.Nullable`1[System.ULong]"},t}(N);t.NullableULong=U;var q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"ByteRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.ByteRange"},t}(e.Report.ByteRange);t.StimulsoftByteRange=q;var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"CharRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.CharRange"},t}(e.Report.CharRange);t.StimulsoftCharRange=V;var X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"DateTimeRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.DateTimeRange"},t}(e.Report.DateTimeRange);t.StimulsoftDateTimeRange=X;var Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"DecimalRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.DecimalRange"},t}(e.Report.DecimalRange);t.StimulsoftDecimalRange=Y;var Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"DoubleRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.DoubleRange"},t}(e.Report.DoubleRange);t.StimulsoftDoubleRange=Z;var Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"FloatRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.FloatRange"},t}(e.Report.FloatRange);t.StimulsoftFloatRange=Q;var $=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"GuidRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.GuidRange"},t}(e.Report.GuidRange);t.StimulsoftGuidRange=$;var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"IntRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.IntRange"},t}(e.Report.IntRange);t.StimulsoftIntRange=ee;var te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"LongRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.LongRange"},t}(e.Report.LongRange);t.StimulsoftLongRange=te;var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"ShortRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.ShortRange"},t}(e.Report.ShortRange);t.StimulsoftShortRange=re;var ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"StringRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.StringRange"},t}(e.Report.StringRange);t.StimulsoftStringRange=ne;var ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"TimeSpanRange"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.TimeSpanRange"},t}(e.Report.TimeSpanRange);t.StimulsoftTimeSpanRange=ie;var ae=function(){function e(){}return e}();t.StimulsoftList=ae;var oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"BoolList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.BoolList"},t}(ae);t.StimulsoftBoolList=oe;var se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"ByteList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.ByteList"},t}(ae);t.StimulsoftByteList=se;var ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"CharList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.CharList"},t}(ae);t.StimulsoftCharList=ue;var me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"DateTimeList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.DateTimeList"},t}(ae);t.StimulsoftDateTimeList=me;var le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"DecimalList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.DecimalList"},t}(ae);t.StimulsoftDecimalList=le;var ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"DoubleList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.DoubleList"},t}(ae);t.StimulsoftDoubleList=ye;var de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"FloatList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.FloatList"},t}(ae);t.StimulsoftFloatList=de;var he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"GuidList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.GuidList"},t}(ae);t.StimulsoftGuidList=he;var ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"IntList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.IntList"},t}(ae);t.StimulsoftIntList=ce;var fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"LongList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.LongList"},t}(ae);t.StimulsoftLongList=fe;var pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"ShortList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.ShortList"},t}(ae);t.StimulsoftShortList=pe;var Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"StringList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.StringList"},t}(ae);t.StimulsoftStringList=Me;var be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.getStiTypeName=function(){return"TimeSpanList"},t.getStiNetTypeName=function(){return"Stimulsoft.Report.TimeSpanList"},t}(ae);t.StimulsoftTimeSpanList=be}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.Empty=0]="Empty",e[e.Object=1]="Object",e[e.DBNull=2]="DBNull",e[e.Boolean=3]="Boolean",e[e.Char=4]="Char",e[e.SByte=5]="SByte",e[e.Byte=6]="Byte",e[e.Int16=7]="Int16",e[e.UInt16=8]="UInt16",e[e.Int32=9]="Int32",e[e.UInt32=10]="UInt32",e[e.Int64=11]="Int64",e[e.UInt64=12]="UInt64",e[e.Single=13]="Single",e[e.Double=14]="Double",e[e.Decimal=15]="Decimal",e[e.DateTime=16]="DateTime",e[e.String=18]="String"}(t=e.TypeCode||(e.TypeCode={}))}(t=e.System||(e.System={}))}(Stimulsoft||(Stimulsoft={}));;
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t){this.duration=e,this.beginTime=t}return e}();e.StiAnimation=t}(t=e.Animation||(e.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r,i){var n=t.call(this,r,i)||this;return n.valueFrom=e,n.rectFrom=o,n}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Column},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiColumnAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r,i,n,a){var s=t.call(this,n,a)||this;return s.pointFrom=r,s.point=i,s.valueFrom=e,s.value=o,s}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Translation},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiLabelAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o){return t.call(this,e,o)||this}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Opacity},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiOpacityAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r,i,n,a,s,l,u){var c=t.call(this,l,u)||this;return c.valueFrom=e,c.value=o,c.clientRect=n,c.rectLabelFrom=a,c.rectLabel=s,c.angleFrom=r,c.angle=i,c}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Translation},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiPieLabelAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r,i,n){var a=t.call(this,i,n)||this;return a.rectFrom=e,a.startAngleFrom=o,a.sweepAngleFrom=r,a}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.PieSegment},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiPieSegmentAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r){var i=t.call(this,o,r)||this;return i.pointFrom=e,i}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Points},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiPointAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r){var i=t.call(this,o,r)||this;return i.pointsFrom=e,i}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Points},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiPointsAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r,i,n){var a=t.call(this,i,n)||this;return a.startAngle=e,a.endAngle=o,a.centerPoint=r,a}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Rotation},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiRotationAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r,i,n,a,s,l){var u=t.call(this,s,l)||this;return u.centerX=n,u.centerY=a,u.startScaleX=e,u.startScaleY=r,u.endScaleX=o,u.endScaleY=i,u}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Scale},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiScaleAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o;!function(t){var o=function(t){function o(e,o,r,i){var n=t.call(this,r,i)||this;return n.startPoint=e,n.endPoint=o,n}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiAnimationType.Translation},enumerable:!0,configurable:!0}),o}(t.StiAnimation);t.StiTranslationAnimation=o}(o=t.Animation||(t.Animation={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.ICloneable,r=e.System.Drawing.Color,i=e.System.Drawing.SolidBrush,n=e.System.Enum,a=e.System.Drawing.Drawing2D.HatchStyle,s=e.System.Text.StiReportObjectStringConverter,l=function(){function l(){}return l.prototype.implements=function(){return[o]},l.prototype.clone=function(){return this.memberwiseClone()},l.prototype.stiEquals=function(e){if(Object.referenceEquals(null,e))return!1;if(Object.referenceEquals(this,e))return!0;return!1},l.convertToBrush=function(o){if(o.startsWith("[")&&o.endsWith("]"))return new t.StiSolidBrush(s.convertStringToColor(o));if("EmptyBrush"==o)return new t.StiEmptyBrush;if(o.startsWith("HatchBrush")){var r=o.split(",");return new t.StiHatchBrush(n.parse(a,r[1]),s.convertStringToColor(r[2]),s.convertStringToColor(r[3]))}if(o.startsWith("GradientBrush")){var r=o.split(",");return new t.StiGradientBrush(s.convertStringToColor(r[1]),s.convertStringToColor(r[2]),r[3].toNumber())}if(o.startsWith("GlassBrush")){var r=o.split(",");return new t.StiGlassBrush(s.convertStringToColor(r[1]),"true"==r[2].toLower(),r[3].toNumber())}if(o.startsWith("GlareBrush")){var r=o.split(",");return new t.StiGlareBrush(s.convertStringToColor(r[1]),s.convertStringToColor(r[2]),r[3].toNumber(),r[4].toNumber(),r[5].toNumber())}return new t.StiSolidBrush(e.System.Text.StiReportObjectStringConverter.convertStringToColor(o))},l.loadFromXml=function(e){if("EmptyBrush"==e)return new t.StiEmptyBrush;if(e.startsWith("HatchBrush")){var o=e.split(",");return new t.StiHatchBrush(n.parse(a,o[1]),s.convertStringToColor(o[2]),s.convertStringToColor(o[3]))}if(e.startsWith("GradientBrush")){var o=e.split(",");return new t.StiGradientBrush(s.convertStringToColor(o[1]),s.convertStringToColor(o[2]),o[3].toNumber())}if(e.startsWith("GlassBrush")){var o=e.split(",");return new t.StiGlassBrush(s.convertStringToColor(o[1]),"true"==o[2].toLower(),o[3].toNumber())}if(e.startsWith("GlareBrush")){var o=e.split(",");return new t.StiGlareBrush(s.convertStringToColor(o[1]),s.convertStringToColor(o[2]),o[3].toNumber(),o[4].toNumber(),o[5].toNumber())}return new t.StiSolidBrush(s.convertStringToColor(e))},l.light=function(e,o){if(e&&e.sti_is(t.StiSolidBrush))return new t.StiSolidBrush(t.StiColorUtils.light(e.color,o));if(e&&e.sti_is(t.StiGradientBrush)){var r=e;return new t.StiGradientBrush(t.StiColorUtils.light(r.startColor,o),t.StiColorUtils.light(r.endColor,o),r.angle)}if(e&&e.sti_is(t.StiHatchBrush)){var i=e;return new t.StiHatchBrush(i.style,t.StiColorUtils.light(i.foreColor,o),t.StiColorUtils.light(i.backColor,o))}if(e&&e.sti_is(t.StiGlareBrush)){var n=e;return new t.StiGlareBrush(t.StiColorUtils.light(n.startColor,o),t.StiColorUtils.light(n.endColor,o),n.angle)}if(e&&e.sti_is(t.StiGlassBrush)){var a=e;return new t.StiGlassBrush(t.StiColorUtils.light(a.color,o),a.drawHatch,a.blend)}return e},l.dark=function(e,o){if(e&&e.sti_is(t.StiSolidBrush))return new t.StiSolidBrush(t.StiColorUtils.dark(e.color,o));if(e&&e.sti_is(t.StiGradientBrush)){var r=e;return new t.StiGradientBrush(t.StiColorUtils.dark(r.startColor,o),t.StiColorUtils.dark(r.endColor,o),r.angle)}if(e&&e.sti_is(t.StiHatchBrush)){var i=e;return new t.StiHatchBrush(i.style,t.StiColorUtils.dark(i.foreColor,o),t.StiColorUtils.dark(i.backColor,o))}if(e&&e.sti_is(t.StiGlareBrush)){var n=e;return new t.StiGlareBrush(t.StiColorUtils.dark(n.startColor,o),t.StiColorUtils.dark(n.endColor,o),n.angle)}if(e&&e.sti_is(t.StiGlassBrush)){var a=e;return new t.StiGlassBrush(t.StiColorUtils.dark(a.color,o),a.drawHatch,a.blend)}return e},l.getBrush=function(e,o){if(e.sti_is(t.StiEmptyBrush))return new i(r.transparent);if(e.sti_is(t.StiSolidBrush))return new i(e.color);return e.sti_is(t.StiGradientBrush)||e.sti_is(t.StiHatchBrush)||e.sti_is(t.StiGlareBrush)||e.sti_is(t.StiGlassBrush),null},l.toColor=function(e){if(e&&e.sti_is(t.StiEmptyBrush))return r.transparent;if(e&&e.sti_is(t.StiSolidBrush))return e.color;if(e&&e.sti_is(t.StiGradientBrush))return e.startColor;if(e&&e.sti_is(t.StiGlareBrush))return e.startColor;if(e&&e.sti_is(t.StiGlassBrush))return e.color;if(e&&e.sti_is(t.StiHatchBrush))return e.foreColor;return r.empty},l}();t.StiBrush=l}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IStiJsonReportObject="IStiJsonReportObject"}(t=e.JsonReportObject||(e.JsonReportObject={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(o){var r=e.System.Drawing.Rectangle,i=e.Base.Drawing.StiBrush,n=e.System.Enum,a=e.System.Drawing.Color,s=e.Base.JsonReportObject.IStiJsonReportObject,l=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiGeom||(e.implementsStiGeom=[s]),e.implementsStiGeom},e.prototype.saveToJsonObject=function(e){var r=new t.StiJson;return r.addPropertyString("Ident",this.getStiType().getStiTypeName()),r.addPropertyString("Type",n.getName(o.StiGeomType,this.type)),r},e.prototype.saveGeomListToJsonObject=function(e,o){if(null!=e){for(var r=Array.create(t.StiJson,e.count),i=0;i<e.count;i++)r[i]=e[i].saveToJsonObject(o);return r}return null},e.prototype.savePointDArrayToJsonObject=function(o){if(null!=o){for(var r=Array.create(t.StiJson,o.length),i=0;i<o.length;i++)r[i]=e.savePointDToJsonObject(o[i]);return r}return null},e.prototype.saveBrushToJsonObject=function(e,o){if(e.sti_is(a)){var r=e;return String.stiFormat("Color,{0},{1},{2},{3}",r.a,r.r,r.g,r.b)}if(e.sti_is(i))return t.StiJsonReportObjectHelper.Serialize.jBrush(e);return null},e.prototype.saveRectToJsonObject=function(t){if(null!=t&&t.sti_is(r))return e.saveRectangleToJsonObject(t);return null},e.savePointDToJsonObject=function(e){var o=new t.StiJson;return o.addPropertyNumberNoDefaultValue("X",e.x),o.addPropertyNumberNoDefaultValue("Y",e.y),o},e.saveRectangleToJsonObject=function(e){var o=new t.StiJson;return o.addPropertyNumberNoDefaultValue("X",e.x),o.addPropertyNumberNoDefaultValue("Y",e.y),o.addPropertyNumberNoDefaultValue("Width",e.width),o.addPropertyNumberNoDefaultValue("Height",e.height),o},e.saveRectangleDToJsonObject=function(e){var o=new t.StiJson;return o.addPropertyNumberNoDefaultValue("X",e.x),o.addPropertyNumberNoDefaultValue("Y",e.y),o.addPropertyNumberNoDefaultValue("Width",e.width),o.addPropertyNumberNoDefaultValue("Height",e.height),o},e.prototype.loadFromJsonObject=function(e){},Object.defineProperty(e.prototype,"type",{get:function(){return null},enumerable:!0,configurable:!0}),e}();o.StiGeom=l}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,o){var r=e.call(this)||this;return r.duration=t,r.beginTime=o,r}return __extends(t,e),t.prototype.saveToJsonObject=function(t){var o=e.prototype.saveToJsonObject.call(this,t);return o.addPropertyNumberNoDefaultValue("Duration",this.duration.ticks),null!=this.beginTime&&o.addPropertyNumberNoDefaultValue("BeginTime",this.beginTime.ticks),o},t.prototype.loadFromJsonObject=function(e){},t}(e.StiGeom);e.StiAnimationGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(o){var r=e.System.Enum,i=function(e){function i(t,o,r,i,n,a){var s=e.call(this,i,n)||this;return s.background=t,s.borderPen=o,s.rect=r,s.animationType=a,s}return __extends(i,e),i.prototype.saveToJsonObject=function(o){var i=e.prototype.saveToJsonObject.call(this,o);return null!=this.background&&i.addPropertyString("Background",this.saveBrushToJsonObject(this.background,o)),null!=this.borderPen&&i.addPropertyJObject("BorderPen",this.borderPen.saveToJsonObject(o)),i.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),i.addPropertyString("AnimationType",r.getName(t.StiAnimationType,this.animationType)),i},i.prototype.loadFromJsonObject=function(e){},Object.defineProperty(i.prototype,"type",{get:function(){return o.StiGeomType.AnimationBorder},enumerable:!0,configurable:!0}),i}(o.StiAnimationGeom);o.StiBorderAnimationGeom=i}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i,n,a,s){var l=t.call(this,i,n)||this;return l.background=e,l.borderPen=o,l.rect=r,l.upMove=a,l.tag=s,l}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return null!=this.background&&o.addPropertyString("Background",this.saveBrushToJsonObject(this.background,e)),null!=this.borderPen&&o.addPropertyJObject("BorderPen",this.borderPen.saveToJsonObject(e)),o.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),o.addPropertyBool("UpMove",this.upMove),null!=this.tag&&this.tag.sti_is(String)&&o.addPropertyString("Tag",this.tag.toString()),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.AnimationBar},enumerable:!0,configurable:!0}),o}(e.StiAnimationGeom);e.StiClusteredBarSeriesAnimationGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i,n,a,s){var l=t.call(this,i,n)||this;return l.background=e,l.borderPen=o,l.rect=r,l.tag=s,l.upMove=a,l}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return null!=this.background&&o.addPropertyString("Background",this.saveBrushToJsonObject(this.background,e)),null!=this.borderPen&&o.addPropertyJObject("BorderPen",this.borderPen.saveToJsonObject(e)),o.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),o.addPropertyBool("UpMove",this.upMove),null!=this.tag&&this.tag.sti_is(String)&&o.addPropertyString("Tag",this.tag.toString()),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.AnimationColumn},enumerable:!0,configurable:!0}),o}(e.StiAnimationGeom);e.StiClusteredColumnSeriesAnimationGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i,n){var a=t.call(this,i,n)||this;return a.pen=e,a.points=o,a.tension=r,a}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return null!=this.pen&&o.addPropertyJObject("Pen",this.pen.saveToJsonObject(e)),o.addPropertyNumberNoDefaultValue("Tension",this.tension),o.addPropertyJObjectArray("Points",this.savePointDArrayToJsonObject(this.points)),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.AnimationCurve},enumerable:!0,configurable:!0}),o}(e.StiAnimationGeom);e.StiCurveAnimationGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(o){var r=e.System.TimeSpan,i=e.System.Enum,n=function(e){function n(t,o,i,n,a,s,l){void 0===n&&(n=r.fromTicks(0)),void 0===a&&(a=r.fromTicks(0)),void 0===s&&(s=null),void 0===l&&(l=null);var u=e.call(this,n,a)||this;return u.background=t,u.borderPen=o,u.rect=i,u.animationType=s,u.tag=l,u}return __extends(n,e),n.prototype.saveToJsonObject=function(o){var r=e.prototype.saveToJsonObject.call(this,o);return null!=this.background&&r.addPropertyString("Background",this.saveBrushToJsonObject(this.background,o)),null!=this.borderPen&&r.addPropertyJObject("BorderPen",this.borderPen.saveToJsonObject(o)),r.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),r.addPropertyString("AnimationType",i.getName(t.StiAnimationType,this.animationType)),null!=this.tag&&null!=this.tag&&this.tag.sti_is(String)&&r.addPropertyString("Tag",this.tag.toString()),r},n.prototype.loadFromJsonObject=function(e){},Object.defineProperty(n.prototype,"type",{get:function(){return o.StiGeomType.AnimationEllipse},enumerable:!0,configurable:!0}),n}(o.StiAnimationGeom);o.StiEllipseAnimationGeom=n}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Enum,r=function(r){function i(e,t,o,i,n,a,s,l,u,c,d,m){var p=r.call(this,d,m)||this;return p.text=e,p.font=t,p.textBrush=o,p.labelBrush=i,p.penBorder=n,p.rectangle=a,p.stringFormat=s,p.rotationMode=l,p.angle=u,p.drawBorder=c,p}return __extends(i,r),i.prototype.saveToJsonObject=function(i){var n=r.prototype.saveToJsonObject.call(this,i);return n.addPropertyString("Text",this.text),n.addPropertyJObject("Font",this.font.saveToJsonObject(i)),n.addPropertyJObject("Rectangle",t.StiGeom.saveRectangleToJsonObject(this.rectangle)),n.addPropertyNumberNoDefaultValue("Angle",this.angle),n.addPropertyBool("DrawBorder",this.drawBorder),null!=this.textBrush&&n.addPropertyString("TextBrush",this.saveBrushToJsonObject(this.textBrush,i)),null!=this.labelBrush&&n.addPropertyString("LabelBrush",this.saveBrushToJsonObject(this.labelBrush,i)),null!=this.penBorder&&n.addPropertyJObject("PenBorder",this.penBorder.saveToJsonObject(i)),null!=this.stringFormat&&n.addPropertyJObject("StringFormat",this.stringFormat.saveToJsonObject(i)),null!=this.rotationMode&&n.addPropertyString("RotationMode",o.getName(e.Base.Drawing.StiRotationMode,this.rotationMode)),n},i.prototype.loadFromJsonObject=function(e){},Object.defineProperty(i.prototype,"type",{get:function(){return t.StiGeomType.AnimationLabel},enumerable:!0,configurable:!0}),i}(t.StiAnimationGeom);t.StiLabelAnimationGeom=r}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(o){var r=e.System.Enum,i=function(e){function i(t,o,r,i,n){var a=e.call(this,r,i)||this;return a.pen=t,a.points=o,a.animationType=n,a}return __extends(i,e),i.prototype.saveToJsonObject=function(o){var i=e.prototype.saveToJsonObject.call(this,o);return null!=this.pen&&i.addPropertyJObject("Pen",this.pen.saveToJsonObject(o)),i.addPropertyJObjectArray("Points",this.savePointDArrayToJsonObject(this.points)),i.addPropertyString("AnimationType",r.getName(t.StiAnimationType,this.animationType)),i},i.prototype.loadFromJsonObject=function(e){},Object.defineProperty(i.prototype,"type",{get:function(){return o.StiGeomType.AnimationLines},enumerable:!0,configurable:!0}),i}(o.StiAnimationGeom);o.StiLinesAnimationGeom=i}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i,n,a,s){var l=t.call(this,n,a)||this;return l.background=e,l.pen=o,l.geoms=r,l.rect=i,l.tag=s,l}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),null!=this.background&&o.addPropertyString("Background",this.saveBrushToJsonObject(this.background,e)),null!=this.pen&&o.addPropertyJObject("Pen",this.pen.saveToJsonObject(e)),null!=this.geoms&&o.addPropertyJObjectArray("Geoms",this.saveGeomListToJsonObject(this.geoms,e)),null!=this.tag&&null!=this.tag&&this.tag.sti_is(String)&&o.addPropertyString("Tag",this.tag.toString()),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.AnimationPath},enumerable:!0,configurable:!0}),o.getBoundsState={},o}(e.StiAnimationGeom);e.StiPathAnimationGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i,n,a,s){var l=t.call(this,n,a)||this;return l.background=e,l.borderPen=o,l.rect=i,l.pathGeoms=r,l.tag=s,l}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),null!=this.background&&o.addPropertyString("Background",this.saveBrushToJsonObject(this.background,e)),null!=this.borderPen&&o.addPropertyJObject("BorderPen",this.borderPen.saveToJsonObject(e)),null!=this.pathGeoms&&o.addPropertyJObjectArray("Geoms",this.saveGeomListToJsonObject(this.pathGeoms,e)),null!=this.tag&&this.tag.sti_is(String)&&o.addPropertyString("Tag",this.tag.toString()),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.AnimationPathElement},enumerable:!0,configurable:!0}),o}(e.StiAnimationGeom);e.StiPathElementAnimationGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i,n,a){var s=t.call(this,n,a)||this;return s.rect=e,s.radiusX=o,s.radiusY=r,s.shadowWidth=i,s}return __extends(o,t),o.prototype.saveToJsonObject=function(o){var r=t.prototype.saveToJsonObject.call(this,o);return r.addPropertyJObject("Rect",e.StiGeom.saveRectangleDToJsonObject(this.rect)),r.addPropertyNumberNoDefaultValue("RadiusX",this.radiusX),r.addPropertyNumberNoDefaultValue("RadiusY",this.radiusY),r.addPropertyNumberNoDefaultValue("ShadowWidth",this.shadowWidth),r},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.AnimationShadow},enumerable:!0,configurable:!0}),o}(e.StiAnimationGeom);e.StiShadowAnimationGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.None=0]="None",e[e.Border=1]="Border",e[e.CachedShadow=2]="CachedShadow",e[e.Curve=3]="Curve",e[e.Ellipse=4]="Ellipse",e[e.Font=5]="Font",e[e.Line=6]="Line",e[e.Lines=7]="Lines",e[e.Path=8]="Path",e[e.Pen=9]="Pen",e[e.PopSmothingMode=10]="PopSmothingMode",e[e.PopTextRenderingHint=11]="PopTextRenderingHint",e[e.PopTransform=12]="PopTransform",e[e.PopClip=13]="PopClip",e[e.PushClip=14]="PushClip",e[e.PushRotateTransform=15]="PushRotateTransform",e[e.PushSmothingMode=16]="PushSmothingMode",e[e.PushSmothingModeToAntiAlias=17]="PushSmothingModeToAntiAlias",e[e.PushTextRenderingHint=18]="PushTextRenderingHint",e[e.PushTextRenderingHintToAntiAlias=19]="PushTextRenderingHintToAntiAlias",e[e.PushTranslateTransform=20]="PushTranslateTransform",e[e.Segment=21]="Segment",e[e.Shadow=22]="Shadow",e[e.Text=23]="Text",e[e.StringFormat=24]="StringFormat",e[e.AnimationBar=25]="AnimationBar",e[e.AnimationBorder=26]="AnimationBorder",e[e.AnimationColumn=27]="AnimationColumn",e[e.AnimationEllipse=28]="AnimationEllipse",e[e.AnimationPath=29]="AnimationPath",e[e.AnimationPathElement=30]="AnimationPathElement",e[e.AnimationLines=31]="AnimationLines",e[e.AnimationCurve=32]="AnimationCurve",e[e.AnimationLabel=33]="AnimationLabel",e[e.AnimationShadow=34]="AnimationShadow"}(t=e.StiGeomType||(e.StiGeomType={}));var o;!function(e){e[e.Center=0]="Center",e[e.Inset=1]="Inset",e[e.Outset=2]="Outset",e[e.Left=3]="Left",e[e.Right=4]="Right"}(o=e.StiPenAlignment||(e.StiPenAlignment={}));var r;!function(e){e[e.Flat=0]="Flat",e[e.Square=1]="Square",e[e.Round=2]="Round",e[e.Triangle=3]="Triangle",e[e.NoAnchor=4]="NoAnchor",e[e.SquareAnchor=5]="SquareAnchor",e[e.RoundAnchor=6]="RoundAnchor",e[e.DiamondAnchor=7]="DiamondAnchor",e[e.ArrowAnchor=8]="ArrowAnchor"}(r=e.StiPenLineCap||(e.StiPenLineCap={}))}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Segment},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiSegmentGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r){var i=t.call(this)||this;return i.rect=e,i.startAngle=o,i.sweepAngle=r,i}return __extends(o,t),o.prototype.saveToJsonObject=function(o){var r=t.prototype.saveToJsonObject.call(this,o);return r.addPropertyJObject("Rect",e.StiGeom.saveRectangleDToJsonObject(this.rect)),r.addPropertyNumberNoDefaultValue("StartAngle",this.startAngle),r.addPropertyNumberNoDefaultValue("SweepAngle",this.sweepAngle),r},o.prototype.loadFromJsonObject=function(e){},o}(e.StiSegmentGeom);e.StiArcSegmentGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r){var i=t.call(this)||this;return i.background=e,i.borderPen=o,i.rect=r,i}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return null!=this.background&&o.addPropertyString("Background",this.saveBrushToJsonObject(this.background,e)),null!=this.borderPen&&o.addPropertyJObject("BorderPen",this.borderPen.saveToJsonObject(e)),o.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Border},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiBorderGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Enum,r=function(r){function i(e,t,o){var i=r.call(this)||this;return i.rect=e,i.sides=t,i.isPrinting=o,i}return __extends(i,r),i.prototype.saveToJsonObject=function(i){var n=r.prototype.saveToJsonObject.call(this,i);return n.addPropertyJObject("Rect",t.StiGeom.saveRectangleDToJsonObject(this.rect)),n.addPropertyString("Sides",o.getName(e.Base.Drawing.StiShadowSides,this.sides)),n.addPropertyBool("IsPrinting",this.isPrinting),n},i.prototype.loadFromJsonObject=function(e){},Object.defineProperty(i.prototype,"type",{get:function(){return t.StiGeomType.CachedShadow},enumerable:!0,configurable:!0}),i}(t.StiGeom);t.StiCachedShadowGeom=r}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(e.StiSegmentGeom);e.StiCloseFigureSegmentGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r){var i=t.call(this)||this;return i.pen=e,i.tension=r,i.points=o,i}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return null!=this.pen&&o.addPropertyJObject("Pen",this.pen.saveToJsonObject(e)),o.addPropertyNumberNoDefaultValue("Tension",this.tension),o.addPropertyJObjectArray("Points",this.savePointDArrayToJsonObject(this.points)),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Curve},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiCurveGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,o){var r=e.call(this)||this;return r.tension=.55,r.points=null,r.points=t,r.tension=o,r}return __extends(t,e),t.prototype.saveToJsonObject=function(t){var o=e.prototype.saveToJsonObject.call(this,t);return o.addPropertyNumberNoDefaultValue("Tension",this.tension),o.addPropertyJObjectArray("Points",this.savePointDArrayToJsonObject(this.points)),o},t.prototype.loadFromJsonObject=function(e){},t}(e.StiSegmentGeom);e.StiCurveSegmentGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r){var i=t.call(this)||this;return i.background=e,i.borderPen=o,i.rect=r,i}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return null!=this.background&&o.addPropertyString("Background",this.saveBrushToJsonObject(this.background,e)),null!=this.borderPen&&o.addPropertyJObject("BorderPen",this.borderPen.saveToJsonObject(e)),o.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Ellipse},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiEllipseGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.GraphicsUnit,r=e.System.Drawing.FontStyle,i=e.System.Enum,n=function(e){function n(t,o,r,i){var n=e.call(this)||this;return n.fontName=t,n.fontSize=o,n.fontStyle=r,n.unit=i,n}return __extends(n,e),n.prototype.saveToJsonObject=function(t){var n=e.prototype.saveToJsonObject.call(this,t);return n.addPropertyString("FontName",this.fontName),n.addPropertyNumberNoDefaultValue("FontSize",this.fontSize),n.addPropertyString("FontStyle",i.getName(r,this.fontStyle)),n.addPropertyString("Unit",i.getName(o,this.unit)),n},n.prototype.loadFromJsonObject=function(e){},n.changeFontSize=function(e,t){return t<1&&(t=1),new n(e.fontFamily.name,t,e.style,e.unit)},Object.defineProperty(n.prototype,"type",{get:function(){return t.StiGeomType.Font},enumerable:!0,configurable:!0}),n}(t.StiGeom);t.StiFontGeom=n}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i,n){var a=t.call(this)||this;return a.pen=e,a.x1=o,a.y1=r,a.x2=i,a.y2=n,a}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.addPropertyJObject("Pen",this.pen.saveToJsonObject(e)),o.addPropertyNumberNoDefaultValue("X1",this.x1),o.addPropertyNumberNoDefaultValue("Y1",this.y1),o.addPropertyNumberNoDefaultValue("X2",this.x2),o.addPropertyNumberNoDefaultValue("Y2",this.y2),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Line},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiLineGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,o,r,i){void 0===r&&(r=null),void 0===i&&(i=null);var n=e.call(this)||this;return null==r&&null==i?(n.x1=t.x,n.y1=t.y,n.x2=o.x,n.y2=o.y):(n.x1=t,n.y1=o,n.x2=r,n.y2=i),n}return __extends(t,e),t.prototype.saveToJsonObject=function(t){var o=e.prototype.saveToJsonObject.call(this,t);return o.addPropertyNumberNoDefaultValue("X1",this.x1),o.addPropertyNumberNoDefaultValue("Y1",this.y1),o.addPropertyNumberNoDefaultValue("X2",this.x2),o.addPropertyNumberNoDefaultValue("Y2",this.y2),o},t.prototype.loadFromJsonObject=function(e){},t}(e.StiSegmentGeom);e.StiLineSegmentGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o){var r=t.call(this)||this;return r.pen=e,r.points=o,r}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return null!=this.pen&&o.addPropertyJObject("Pen",this.pen.saveToJsonObject(e)),o.addPropertyJObjectArray("Points",this.savePointDArrayToJsonObject(this.points)),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Lines},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiLinesGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){var o=e.call(this)||this;return o.points=t,o}return __extends(t,e),t.prototype.saveToJsonObject=function(t){var o=e.prototype.saveToJsonObject.call(this,t);return o.addPropertyJObjectArray("Points",this.savePointDArrayToJsonObject(this.points)),o},t.prototype.loadFromJsonObject=function(e){},t}(e.StiSegmentGeom);e.StiLinesSegmentGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r,i){var n=t.call(this)||this;return n.background=e,n.pen=o,n.geoms=r,n.rect=i,n}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.addPropertyJObject("Rect",this.saveRectToJsonObject(this.rect)),null!=this.background&&o.addPropertyString("Background",this.saveBrushToJsonObject(this.background,e)),null!=this.pen&&o.addPropertyJObject("Pen",this.pen.saveToJsonObject(e)),null!=this.geoms&&o.addPropertyJObjectArray("Geoms",this.saveGeomListToJsonObject(this.geoms,e)),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Path},enumerable:!0,configurable:!0}),o.getBoundsState={},o}(e.StiGeom);e.StiPathGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Enum,r=function(r){function i(o,i){void 0===i&&(i=1);var n=r.call(this)||this;return n.thickness=1,n.penStyle=e.Base.Drawing.StiPenStyle.Solid,n.alignment=t.StiPenAlignment.Center,n.startCap=t.StiPenLineCap.Flat,n.endCap=t.StiPenLineCap.Flat,n.brush=o,n.thickness=i,n}return __extends(i,r),i.prototype.saveToJsonObject=function(i){var n=r.prototype.saveToJsonObject.call(this,i);return null!=this.brush&&n.addPropertyString("Brush",this.saveBrushToJsonObject(this.brush,i)),n.addPropertyNumberNoDefaultValue("Thickness",this.thickness),n.addPropertyString("PenStyle",o.getName(e.Base.Drawing.StiPenStyle,this.penStyle)),n.addPropertyString("Alignment",o.getName(t.StiPenAlignment,this.alignment)),n.addPropertyString("StartCap",o.getName(t.StiPenLineCap,this.startCap)),n.addPropertyString("EndCap",o.getName(t.StiPenLineCap,this.endCap)),n},i.prototype.loadFromJsonObject=function(e){},Object.defineProperty(i.prototype,"type",{get:function(){return t.StiGeomType.Pen},enumerable:!0,configurable:!0}),i}(t.StiGeom);t.StiPenGeom=r}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r){var i=t.call(this)||this;return i.rect=e,i.startAngle=o,i.sweepAngle=r,i}return __extends(o,t),o.prototype.saveToJsonObject=function(o){var r=t.prototype.saveToJsonObject.call(this,o);return r.addPropertyJObject("Rect",e.StiGeom.saveRectangleDToJsonObject(this.rect)),r.addPropertyNumberNoDefaultValue("StartAngle",this.startAngle),r.addPropertyNumberNoDefaultValue("SweepAngle",this.sweepAngle),r},o.prototype.loadFromJsonObject=function(e){},o}(e.StiSegmentGeom);e.StiPieSegmentGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PopClip},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPopClipGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PopSmothingMode},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPopSmothingModeGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PopTextRenderingHint},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPopTextRenderingHintGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PopTransform},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPopTransformGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e){var o=t.call(this)||this;return o.clipRectangle=e,o}return __extends(o,t),o.prototype.saveToJsonObject=function(o){var r=t.prototype.saveToJsonObject.call(this,o);return r.addPropertyJObject("ClipRectangle",e.StiGeom.saveRectangleDToJsonObject(this.clipRectangle)),r},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PushClip},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPushClipGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e){var o=t.call(this)||this;return o.angle=e,o}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.addPropertyNumberNoDefaultValue("Angle",this.angle),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PushRotateTransform},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPushRotateTransformGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PushSmothingModeToAntiAlias},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPushSmothingModeToAntiAliasGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PushTextRenderingHintToAntiAlias},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPushTextRenderingHintToAntiAliasGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o){var r=t.call(this)||this;return r.x=e,r.y=o,r}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.addPropertyNumberNoDefaultValue("X",this.x),o.addPropertyNumberNoDefaultValue("Y",this.y),o},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.PushTranslateTransform},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiPushTranslateTransformGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(e,o,r){var i=t.call(this)||this;return i.shadowContext=e,i.rect=o,i.radius=r,i}return __extends(o,t),o.prototype.saveToJsonObject=function(o){var r=t.prototype.saveToJsonObject.call(this,o);return r.addPropertyJObject("Rect",e.StiGeom.saveRectangleDToJsonObject(this.rect)),r.addPropertyNumberNoDefaultValue("Radius",this.radius),r},o.prototype.loadFromJsonObject=function(e){},Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGeomType.Shadow},enumerable:!0,configurable:!0}),o}(e.StiGeom);e.StiShadowGeom=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Enum,r=e.System.Drawing.Text.HotkeyPrefix,i=e.System.Drawing.StringAlignment,n=e.System.Drawing.StringTrimming,a=e.System.Drawing.StringFormatFlags,s=function(e){function s(t){var o=e.call(this)||this;return o.isGeneric=!1,o.alignment=i.Near,o.formatFlags=0,o.hotkeyPrefix=r.None,o.lineAlignment=i.Near,o.trimming=n.None,o.alignment=t.alignment,o.formatFlags=t.formatFlags,o.hotkeyPrefix=t.hotkeyPrefix,o.lineAlignment=t.lineAlignment,o.trimming=t.trimming,o}return __extends(s,e),s.prototype.saveToJsonObject=function(t){var s=e.prototype.saveToJsonObject.call(this,t);return s.addPropertyBool("IsGeneric",this.isGeneric),s.addPropertyString("Alignment",o.getName(i,this.alignment)),s.addPropertyString("FormatFlags",o.getName(a,this.formatFlags)),s.addPropertyString("HotkeyPrefix",o.getName(r,this.hotkeyPrefix)),s.addPropertyString("LineAlignment",o.getName(i,this.lineAlignment)),s.addPropertyString("Trimming",o.getName(n,this.trimming)),s},s.prototype.loadFromJsonObject=function(e){},Object.defineProperty(s.prototype,"type",{get:function(){return t.StiGeomType.StringFormat},enumerable:!0,configurable:!0}),s}(t.StiGeom);t.StiStringFormatGeom=s}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Rectangle,r=e.System.Enum,i=e.System.Drawing.Point,n=function(n){function a(e,t,o,r,i,a,s,l,u,c){var d=n.call(this)||this;return d.isRounded=!1,d.isRotatedText=!1,d.isRotatedText=c,d.text=e,d.font=t,d.brush=o,d.location=r,d.stringFormat=i,d.angle=a,d.antialiasing=s,d.maximalWidth=l,d.rotationMode=u,d}return __extends(a,n),a.prototype.saveToJsonObject=function(a){var s=n.prototype.saveToJsonObject.call(this,a);return s.addPropertyString("Text",this.text),s.addPropertyJObject("Font",this.font.saveToJsonObject(a)),s.addPropertyBool("IsRounded",this.isRounded),s.addPropertyBool("IsRotatedText",this.isRotatedText),s.addPropertyNumberNoDefaultValue("Angle",this.angle),s.addPropertyBool("Antialiasing",this.antialiasing),s.addPropertyNumberNoDefaultValue("MaximalWidth",this.maximalWidth),null!=this.brush&&s.addPropertyString("Brush",this.saveBrushToJsonObject(this.brush,a)),null!=this.stringFormat&&s.addPropertyJObject("StringFormat",this.stringFormat.saveToJsonObject(a)),null!=this.rotationMode&&s.addPropertyString("RotationMode",r.getName(e.Base.Drawing.StiRotationMode,this.rotationMode)),this.location.sti_is(i)&&s.addPropertyJObject("Location",t.StiGeom.savePointDToJsonObject(this.location)),this.location.sti_is(o)&&s.addPropertyJObject("Location",t.StiGeom.saveRectangleToJsonObject(this.location)),s},a.prototype.loadFromJsonObject=function(e){},Object.defineProperty(a.prototype,"type",{get:function(){return t.StiGeomType.Text},enumerable:!0,configurable:!0}),a}(t.StiGeom);t.StiTextGeom=n}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(o){var r=e.System.Drawing.Rectangle,i=function(){function e(e,t,r,i,n){this.geoms=[],this._contextPainter=e,this._options=new o.StiContextOptions(t,r,i,n)}return e.prototype.render=function(e){this.contextPainter.render(e,this.geoms)},e.prototype.getDefaultStringFormat=function(){return this.contextPainter.getDefaultStringFormat()},e.prototype.getGenericStringFormat=function(){return this.contextPainter.getGenericStringFormat()},e.prototype.drawString2=function(e,t,r,i,n){var a=new o.StiTextGeom(e,t,r,i,n,0,!1,null,null,!1);return this.geoms.add(a),a},e.prototype.drawString=function(e,t,r,i,n){var a=new o.StiTextGeom(e,t,r,i,n,0,!1,null,null,!1);return this.geoms.add(a),a},e.prototype.drawRotatedString2=function(e,t,i,n,a,s,l){var u=new o.StiTextGeom(e,t,i,new r(n.x,n.y,n.width,n.height),a,s,l,null,null,!0);return this.geoms.add(u),u},e.prototype.drawRotatedString3=function(e,t,r,i,n,a,s){var l=new o.StiTextGeom(e,t,r,i,n,a,s,null,null,!0);return this.geoms.add(l),l},e.prototype.drawRotatedString4=function(e,t,r,i,n,a,s,l){var u=new o.StiTextGeom(e,t,r,i,n,s,l,null,a,!0);return this.geoms.add(u),u},e.prototype.drawRotatedString5=function(e,t,r,i,n,a,s,l){var u=new o.StiTextGeom(e,t,r,i,n,s,l,null,a,!0);return this.geoms.add(u),u},e.prototype.drawRotatedString6=function(e,t,r,i,n,a,s,l,u){var c=new o.StiTextGeom(e,t,r,i,n,s,l,u,a,!0);return this.geoms.add(c),c},e.prototype.drawRotatedString7=function(e,t,r,i,n,a,s,l,u){var c=new o.StiTextGeom(e,t,r,i,n,s,l,u,a,!0);return this.geoms.add(c),c},e.prototype.drawRotatedString8=function(e,t,r,i,n,a,s,l){var u=new o.StiTextGeom(e,t,r,i,n,s,l,null,a,!0);return this.geoms.add(u),u},e.prototype.drawRotatedString9=function(e,t,r,i,n,a,s,l,u){var c=new o.StiTextGeom(e,t,r,i,n,s,l,u,a,!0);return this.geoms.add(c),c},e.prototype.measureString=function(e,t){return this.contextPainter.measureString(e,t)},e.prototype.measureString2=function(e,t,o,r){return this.contextPainter.measureString(e,t,o,r)},e.prototype.measureRotatedString=function(e,t,o,r,i){return this.contextPainter.measureRotatedString1(e,t,o,r,i)},e.prototype.measureRotatedString2=function(e,t,o,r,i,n){return this.contextPainter.measureRotatedString2(e,t,o,r,i,n)},e.prototype.measureRotatedString3=function(e,t,o,r,i,n,a){return this.contextPainter.measureRotatedString3(e,t,o,r,i,n,a)},e.prototype.measureRotatedString4=function(e,t,o,r,i,n){return this.contextPainter.measureRotatedString4(e,t,o,r,i,n)},e.prototype.drawShadow=function(e,t,r){this.geoms.add(new o.StiShadowGeom(e,t,r))},e.prototype.drawCachedShadow=function(e,t,r){this.geoms.add(new o.StiCachedShadowGeom(e,t,r))},e.prototype.createShadowGraphics=function(){return this.contextPainter.createShadowGraphics(this.options.isPrinting,this.options.zoom)},e.prototype.pushTranslateTransform=function(e,t){this.geoms.add(new o.StiPushTranslateTransformGeom(e,t))},e.prototype.pushRotateTransform=function(e){this.geoms.add(new o.StiPushRotateTransformGeom(e))},e.prototype.popTransform=function(){this.geoms.add(new o.StiPopTransformGeom)},e.prototype.pushClip=function(e){this.geoms.add(new o.StiPushClipGeom(e))},e.prototype.popClip=function(){this.geoms.add(new o.StiPopClipGeom)},e.prototype.drawAnimationColumn=function(e,t,r,i,n,a,s){this.geoms.add(new o.StiClusteredColumnSeriesAnimationGeom(e,t,r,i,n,a,s))},e.prototype.drawAnimationBar=function(e,t,r,i,n,a,s){this.geoms.add(new o.StiClusteredBarSeriesAnimationGeom(e,t,r,i,n,a,s))},e.prototype.drawAnimationRectangle=function(e,r,i,n,a){this.geoms.add(new o.StiBorderAnimationGeom(e,r,i,n,a,t.StiAnimationType.Opacity))},e.prototype.drawAnimationPathElement=function(e,t,r,i,n,a,s){this.geoms.add(new o.StiPathElementAnimationGeom(e,t,r,i,n,a,s))},e.prototype.drawAnimationLabel=function(e,t,r,i,n,a,s,l,u,c,d,m){this.geoms.add(new o.StiLabelAnimationGeom(e,t,r,i,n,a,s,l,u,c,d,m))},e.prototype.drawAnimationLines=function(e,t,r,i,n){this.geoms.add(new o.StiLinesAnimationGeom(e,t,r,i,n))},e.prototype.drawAnimationCurve=function(e,t,r,i,n){this.geoms.add(new o.StiCurveAnimationGeom(e,t,r,i,n))},e.prototype.fillDrawAnimationPath=function(e,t,r,i,n,a,s){this.geoms.add(new o.StiPathAnimationGeom(e,t,r,i,n,a,s))},e.prototype.fillDrawAnimationEllipse=function(e,t,i,n,a,s,l,u,c,d){this.geoms.add(new o.StiEllipseAnimationGeom(e,t,new r(i,n,a,s),l,u,c,d))},e.prototype.drawLine=function(e,t,r,i,n){this.geoms.add(new o.StiLineGeom(e,t,r,i,n))},e.prototype.drawLines=function(e,t){for(var r=0;r<t.length;r++){var i=t[r];isNaN(i.x)&&(i.x=0),isNaN(i.y)&&(i.y=0),t[r]=i}this.geoms.add(new o.StiLinesGeom(e,t))},e.prototype.drawRectangle=function(e,t){this.geoms.add(new o.StiBorderGeom(null,e,t))},e.prototype.drawRectangle2=function(e,t,i,n,a){this.geoms.add(new o.StiBorderGeom(null,e,new r(t,i,n,a)))},e.prototype.drawEllipse=function(e,t,i,n,a){this.geoms.add(new o.StiEllipseGeom(null,e,new r(t,i,n,a)))},e.prototype.drawEllipse2=function(e,t){this.geoms.add(new o.StiEllipseGeom(null,e,t))},e.prototype.fillEllipse=function(e,t,i,n,a){this.geoms.add(new o.StiEllipseGeom(e,null,new r(t,i,n,a)))},e.prototype.fillEllipse2=function(e,t){this.geoms.add(new o.StiEllipseGeom(e,null,t))},e.prototype.drawPath=function(e,t,r){this.geoms.add(new o.StiPathGeom(null,e,t,r))},e.prototype.fillPath=function(e,t,r){this.geoms.add(new o.StiPathGeom(e,null,t,r))},e.prototype.drawCurve=function(e,t,r){this.geoms.add(new o.StiCurveGeom(e,t,r))},e.prototype.fillRectangle=function(e,t){this.geoms.add(new o.StiBorderGeom(e,null,t))},e.prototype.fillRectangle2=function(e,t,i,n,a){this.geoms.add(new o.StiBorderGeom(e,null,new r(t,i,n,a)))},e.prototype.pushSmoothingModeToAntiAlias=function(){this.geoms.add(new o.StiPushSmothingModeToAntiAliasGeom)},e.prototype.popSmoothingMode=function(){this.geoms.add(new o.StiPopSmothingModeGeom)},e.prototype.pushTextRenderingHintToAntiAlias=function(){this.geoms.add(new o.StiPushTextRenderingHintToAntiAliasGeom)},e.prototype.popTextRenderingHint=function(){this.geoms.add(new o.StiPopTextRenderingHintGeom)},e.prototype.getPathBounds=function(e){return this.contextPainter.getPathBounds(e)},Object.defineProperty(e.prototype,"contextPainter",{get:function(){return this._contextPainter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.drawShadowRect=function(e,t,r,i){this.geoms.add(new o.StiShadowAnimationGeom(e,0,0,t,r,i))},e.prototype.drawShadowRect2=function(e,t,r,i,n,a){this.geoms.add(new o.StiShadowAnimationGeom(e,t,r,i,n,a))},e}();o.StiContext=i}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t,o,r){this._isWpf=!1,this._isGdi=!1,this._zoom=1,this._isGdi=e,this._isWpf=t,this._zoom=r}return Object.defineProperty(e.prototype,"isPrinting",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isWpf",{get:function(){return this._isWpf},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isGdi",{get:function(){return this._isGdi},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoom",{get:function(){return this._zoom},enumerable:!0,configurable:!0}),e}();e.StiContextOptions=t}(t=e.Context||(e.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.None=0]="None",e[e.Move=1]="Move",e[e.Select=2]="Select",e[e.SizeLeft=3]="SizeLeft",e[e.SizeRight=4]="SizeRight",e[e.SizeTop=5]="SizeTop",e[e.SizeBottom=6]="SizeBottom",e[e.SizeLeftTop=7]="SizeLeftTop",e[e.SizeLeftBottom=8]="SizeLeftBottom",e[e.SizeRightTop=9]="SizeRightTop",e[e.SizeRightBottom=10]="SizeRightBottom",e[e.ResizeColumns=11]="ResizeColumns",e[e.ResizeRows=12]="ResizeRows",e[e.SelectColumn=13]="SelectColumn",e[e.SelectRow=14]="SelectRow"}(t=e.StiAction||(e.StiAction={}));var o;!function(e){e[e.None=0]="None",e[e.All=15]="All",e[e.Top=1]="Top",e[e.Left=2]="Left",e[e.Right=4]="Right",e[e.Bottom=8]="Bottom"}(o=e.StiBorderSides||(e.StiBorderSides={}));var r;!function(e){e[e.Solid=0]="Solid",e[e.Dash=1]="Dash",e[e.DashDot=2]="DashDot",e[e.DashDotDot=3]="DashDotDot",e[e.Dot=4]="Dot",e[e.Double=5]="Double",e[e.None=6]="None"}(r=e.StiPenStyle||(e.StiPenStyle={}));var i;!function(e){e[e.LeftTop=0]="LeftTop",e[e.LeftCenter=1]="LeftCenter",e[e.LeftBottom=2]="LeftBottom",e[e.CenterTop=3]="CenterTop",e[e.CenterCenter=4]="CenterCenter",e[e.CenterBottom=5]="CenterBottom",e[e.RightTop=6]="RightTop",e[e.RightCenter=7]="RightCenter",e[e.RightBottom=8]="RightBottom"}(i=e.StiRotationMode||(e.StiRotationMode={}));var n;!function(e){e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Edge=4]="Edge",e[e.Bottom=8]="Bottom",e[e.Left=16]="Left",e[e.All=31]="All"}(n=e.StiShadowSides||(e.StiShadowSides={}));var a;!function(e){e[e.Top=0]="Top",e[e.Center=1]="Center",e[e.Bottom=2]="Bottom"}(a=e.StiVertAlignment||(e.StiVertAlignment={}));var s;!function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right",e[e.Width=3]="Width"}(s=e.StiTextHorAlignment||(e.StiTextHorAlignment={}));var l;!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(l=e.StiHorAlignment||(e.StiHorAlignment={}));var u;!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom",e[e.Left=2]="Left",e[e.Right=3]="Right"}(u=e.StiTextDockMode||(e.StiTextDockMode={}))}(t=e.Drawing||(e.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.StringFormat,r=e.System.Drawing.Size,i=e.System.Drawing.Font,n=e.System.Drawing.Graphics,a=e.System.Drawing.Point,s=e.System.Drawing.Rectangle,l=e.Base.Drawing.StiRotationMode,u=function(){function e(){}return e.prototype.getDefaultStringFormat=function(){var e=new o;return new t.StiStringFormatGeom(e)},e.prototype.getGenericStringFormat=function(){var e=new o;return new t.StiStringFormatGeom(e)},e.prototype.createShadowGraphics=function(e,o){return new t.StiContext(this,!1,!1,!1,1)},e.prototype.getPathBounds=function(e){for(var o=[],r=[],i=0,n=e;i<n.length;i++){var a=n[i];if(a.sti_is(t.StiArcSegmentGeom)){var l=a;o.push(l.rect.left),o.push(l.rect.right),r.push(l.rect.top),r.push(l.rect.bottom)}else if(a.sti_is(t.StiCloseFigureSegmentGeom));else if(a.sti_is(t.StiCurveSegmentGeom))for(var u=a,c=0,d=u.points;c<d.length;c++){var m=d[c];o.push(m.x),r.push(m.y)}else if(a.sti_is(t.StiLineSegmentGeom)){var p=a;o.push(p.x1),o.push(p.x2),r.push(p.y1),r.push(p.y2)}else if(a.sti_is(t.StiLinesSegmentGeom))for(var h=a,S=0,g=h.points;S<g.length;S++){var m=g[S];o.push(m.x),r.push(m.y)}else if(a.sti_is(t.StiPieSegmentGeom)){var f=a;o.push(f.rect.left),o.push(f.rect.right),r.push(f.rect.top),r.push(f.rect.bottom)}for(var y=null,C=null,b=null,v=null,T=0,w=o;T<w.length;T++){var D=w[T];y=null==y?D:Math.min(y,D),C=null==C?D:Math.max(C,D)}for(var P=0,B=r;P<B.length;P++){var D=B[P];b=null==b?D:Math.min(b,D),v=null==v?D:Math.max(v,D)}return new s(y,b,C-y,v-b)}},e.prototype.measureString=function(e,t,o,a){void 0===o&&(o=null),void 0===a&&(a=null);var s=n.measureString(e,new i(t.fontName,t.fontSize,t.fontStyle,t.unit),o);return new r(s.width,s.height)},e.prototype.measureRotatedString1=function(e,t,o,r,a){var l=n.measureString(e,new i(t.fontName,t.fontSize,t.fontStyle,t.unit),o.width,!0,1,a);return new s(o.x,o.y,l.width,l.height)},e.prototype.measureRotatedString2=function(e,t,o,r,a,l){var u=n.measureString(e,new i(t.fontName,t.fontSize,t.fontStyle,t.unit),o.width,!0,1,l),c=new s(o.x,o.y,u.width,u.height),d=this.getStartPoint(a,c);return new s(o.x-d.x,o.y-d.y,u.width,u.height)},e.prototype.measureRotatedString3=function(e,t,o,r,a,l,u){var c=new i(t.fontName,t.fontSize,t.fontStyle,t.unit);0==u&&(u=null);var d=n.measureString(e,c,u,!0,1,l),m=new s(o.x,o.y,d.width,d.height),p=this.getStartPoint(a,m);return new s(p.x,p.y,d.width,d.height)},e.prototype.measureRotatedString4=function(e,t,o,r,a,l){var u=n.measureString(e,new i(t.fontName,t.fontSize,t.fontStyle,t.unit),null,!0,1,l);return new s(o.x,o.y,u.width,u.height)},e.prototype.getStartPoint=function(e,t){var o=new a(t.x-t.width/2,t.y-t.height/2);switch(e){case l.LeftCenter:return new a(t.x,o.y);case l.LeftBottom:return new a(t.x,t.bottom);case l.CenterTop:return new a(o.x,t.top);case l.CenterCenter:return o;case l.CenterBottom:return new a(o.x,t.bottom);case l.RightTop:return new a(t.right,t.top);case l.RightCenter:return new a(t.right,o.y);case l.RightBottom:return new a(t.right,t.bottom);default:return t.location}},e.prototype.render=function(e,t){return null},e}();t.StiContextPainter=u}(o=t.Context||(t.Context={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return Object.defineProperty(e.prototype,"type",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animation",{get:function(){return null},set:function(e){},enumerable:!0,configurable:!0}),e}();e.StiGaugeGeom=t}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o,r,i){var n=t.call(this)||this;return n.rect=e,n.background=o,n.borderBrush=r,n.borderWidth=i,n}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.Ellipse},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiEllipseGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o,r,i,n,a,s,l){var u=t.call(this)||this;return u.rect=e,u.background=o,u.borderBrush=r,u.borderWidth=i,u.startAngle=n,u.sweepAngle=a,u.startWidth=s,u.endWidth=l,u}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.GraphicsArcGeometry},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiGraphicsArcGeometryGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o,r,i,n,a){var s=t.call(this)||this;return s.x=e,s.y=o,s.width=r,s.height=i,s.startAngle=n,s.sweepAngle=a,s}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.GraphicsPathArc},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiGraphicsPathArcGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.GraphicsPathCloseFigure},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiGraphicsPathCloseFigureGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(o){function r(e,t,r,i,n){var a=o.call(this)||this;return a._geoms=[],a.rect=e,a.startPoint=t,a.background=r,a.borderBrush=i,a.borderWidth=n,a.startPoint=t,a}return __extends(r,o),Object.defineProperty(r.prototype,"type",{get:function(){return e.StiGaugeGeomType.GraphicsPath},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"geoms",{get:function(){return this._geoms},enumerable:!0,configurable:!0}),r.prototype.addGraphicsPathArcGaugeGeom=function(e,o,r,i,n,a){r>0&&i>0&&this.geoms.add(new t.StiGraphicsPathArcGaugeGeom(e,o,r,i,n,a))},r.prototype.addGraphicsPathCloseFigureGaugeGeom=function(){this.geoms.add(new t.StiGraphicsPathCloseFigureGaugeGeom)},r.prototype.addGraphicsPathLinesGaugeGeom=function(e){this.geoms.add(new t.StiGraphicsPathLinesGaugeGeom(e))},r.prototype.addGraphicsPathLineGaugeGeom=function(e,o){this.geoms.add(new t.StiGraphicsPathLineGaugeGeom(e,o))},r}(t.StiGaugeGeom);t.StiGraphicsPathGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o){var r=t.call(this)||this;return r.p1=e,r.p2=o,r}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.GraphicsPathLine},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiGraphicsPathLineGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e){var o=t.call(this)||this;return o.points=e,o}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.GraphicsPathLines},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiGraphicsPathLinesGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o,r,i,n,a){var s=t.call(this)||this;return s.rect=e,s.background=o,s.borderBrush=r,s.borderWidth=i,s.startAngle=n,s.sweepAngle=a,s}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.Pie},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiPieGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.PopTranform},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiPopTranformGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o){var r=t.call(this)||this;return r.angle=e,r.centerPoint=o,r}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.PushMatrix},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiPushMatrixGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o,r,i,n,a,s,l,u,c,d){var m=t.call(this)||this;return m.rect=e,m.background=o,m.borderBrush=r,m.borderWidth=i,m.centerPoint=n,m.startAngle=a,m.sweepAngle=s,m.radius1=l,m.radius2=u,m.radius3=c,m.radius4=d,m}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.RadialRange},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiRadialRangeGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o,r,i){var n=t.call(this)||this;return n.rect=e,n.background=o,n.borderBrush=r,n.borderWidth=i,n}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.Rectangle},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiRectangleGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var o=function(t){function o(e,o,r,i,n,a,s,l){var u=t.call(this)||this;return u.rect=e,u.background=o,u.borderBrush=r,u.borderWidth=i,u.leftTop=n,u.rightTop=a,u.rightBottom=s,u.leftBottom=l,u}return __extends(o,t),Object.defineProperty(o.prototype,"type",{get:function(){return e.StiGaugeGeomType.RoundedRectangle},enumerable:!0,configurable:!0}),o}(t.StiGaugeGeom);t.StiRoundedRectangleGaugeGeom=o}(t=e.GaugeGeoms||(e.GaugeGeoms={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o;!function(o){var r=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,n=e.System.Drawing.StringFormatFlags,a=function(e){function o(t,o,a,s,l){var u=e.call(this)||this;return u.text=t,u.font=o,u.foreground=a,u.rect=s,null==l&&(l=new r,l.alignment=i.Center,l.lineAlignment=i.Center,l.formatFlags=n.NoWrap),u.stringFormat=l,u}return __extends(o,e),Object.defineProperty(o.prototype,"type",{get:function(){return t.StiGaugeGeomType.Text},enumerable:!0,configurable:!0}),o}(o.StiGaugeGeom);o.StiTextGaugeGeom=a}(o=t.GaugeGeoms||(t.GaugeGeoms={}))}(o=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.GraphicsPath=0]="GraphicsPath",e[e.GraphicsPathArc=1]="GraphicsPathArc",e[e.GraphicsPathCloseFigure=2]="GraphicsPathCloseFigure",e[e.RoundedRectangle=3]="RoundedRectangle",e[e.Rectangle=4]="Rectangle",e[e.Pie=5]="Pie",e[e.Ellipse=6]="Ellipse",e[e.GraphicsArcGeometry=7]="GraphicsArcGeometry",e[e.PushMatrix=8]="PushMatrix",e[e.PopTranform=9]="PopTranform",e[e.GraphicsPathLines=10]="GraphicsPathLines",e[e.GraphicsPathLine=11]="GraphicsPathLine",e[e.Text=12]="Text",e[e.RadialRange=13]="RadialRange"}(t=e.StiGaugeGeomType||(e.StiGaugeGeomType={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IStiGaugeMarker="IStiGaugeMarker"}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.MoveTo=0]="MoveTo",e[e.Line=1]="Line",e[e.Bezier=2]="Bezier",e[e.Beziers=3]="Beziers",e[e.Close=4]="Close"}(t=e.StiMapGeomType||(e.StiMapGeomType={}))}(t=e.Geoms||(e.Geoms={}))}(t=e.Maps||(e.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return Object.defineProperty(e.prototype,"geomType",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.getLastPoint=function(){throw"Not supported!"},e}();e.StiMapGeom=t}(t=e.Geoms||(e.Geoms={}))}(t=e.Maps||(e.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o;!function(t){var o=e.System.Drawing.Point,r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),Object.defineProperty(r.prototype,"geomType",{get:function(){return t.StiMapGeomType.Bezier},enumerable:!0,configurable:!0}),r.prototype.getLastPoint=function(){return new o(this.x3,this.y3)},r}(t.StiMapGeom);t.StiBezierMapGeom=r}(o=t.Geoms||(t.Geoms={}))}(o=t.Maps||(t.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o;!function(t){var o=e.System.Drawing.Point,r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),Object.defineProperty(r.prototype,"geomType",{get:function(){return t.StiMapGeomType.Beziers},enumerable:!0,configurable:!0}),r.prototype.getLastPoint=function(){return new o(this.array[this.array.length-2],this.array[this.array.length-1])},r}(t.StiMapGeom);t.StiBeziersMapGeom=r}(o=t.Geoms||(t.Geoms={}))}(o=t.Maps||(t.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"geomType",{get:function(){return e.StiMapGeomType.Close},enumerable:!0,configurable:!0}),o}(e.StiMapGeom);e.StiCloseMapGeom=t}(t=e.Geoms||(e.Geoms={}))}(t=e.Maps||(e.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o;!function(t){var o=e.System.Drawing.Point,r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),Object.defineProperty(r.prototype,"geomType",{get:function(){return t.StiMapGeomType.Line},enumerable:!0,configurable:!0}),r.prototype.getLastPoint=function(){return new o(this.x,this.y)},r}(t.StiMapGeom);t.StiLineMapGeom=r}(o=t.Geoms||(t.Geoms={}))}(o=t.Maps||(t.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this.geoms=[]}return e}();e.StiMapGeomsContainer=t}(t=e.Geoms||(e.Geoms={}))}(t=e.Maps||(e.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this.geoms=[]}return e}();e.StiMapGeomsObject=t}(t=e.Geoms||(e.Geoms={}))}(t=e.Maps||(e.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o;!function(t){var o=e.System.Drawing.Point,r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),Object.defineProperty(r.prototype,"geomType",{get:function(){return t.StiMapGeomType.MoveTo},enumerable:!0,configurable:!0}),r.prototype.getLastPoint=function(){return new o(this.x,this.y)},r}(t.StiMapGeom);t.StiMoveToMapGeom=r}(o=t.Geoms||(t.Geoms={}))}(o=t.Maps||(t.Maps={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.IO.StreamReader,r=e.System.IO.MemoryStream,i=e.System.Text.Encoding,n=e.System.Data.DataColumn,a=e.System.Data.DataTable,s=e.System.Data.DataSet,l=e.System.Collections.Hashtable,u=function(){function u(){}return u.getTable=function(t,o,r){return void 0===o&&(o=0),void 0===r&&(r=null),this.getTable2(e.System.IO.File.getFile(t,!0),o,r)},u.getDataSet=function(e,o,r,i){var n=this.getTable2(e,r,i);if(null==n)return null;n.tableName=String.isNullOrWhiteSpace(o)?t.StiFileItemTable.defaultCsvTableName:o;var a=new s;return a.enforceConstraints=!1,a.tables.add(n),a},u.getTable2=function(e,s,u,c){void 0===s&&(s=0),void 0===u&&(u=null),void 0===c&&(c=!0);var d=new r(e),m=String.isNullOrEmpty(u)?";":u,p=m[0],h=null;0!=s&&(h=1==s?i.Default:i.getEncoding(s));var S=new o(null==h?d:d),g=null,f=S.readLine();if(null!=f&&f.length>0){var y={ref:f};if(g=this.splitToColumns(y,S,p),f=y.ref,String.isNullOrEmpty(u)&&1==g.count){var C={ref:f};if(g=this.splitToColumns(C,S,"\t"),f=C.ref,g.count>1)p="\t";else{var b={ref:f};if(g=this.splitToColumns(b,S,";"),f=b.ref,g.count>1)p=";";else{var v={ref:f};g=this.splitToColumns(v,S,","),f=v.ref,g.count>1&&(p=",")}}}}var T=new l;if(null!=g)for(var w=0;w<g.count;w++){var D=g[w].trim();0==D.length&&(D=String.stiFormat("Column{0}",w+1)),D=t.StiDataNameValidator.correct(D);var P=String.empty,B=0;while(!0){if(!T.contains(D+P))break;B++,P=B.toString()}D+=P,g[w]=D,T.add(D,D)}var A=new a(t.StiFileItemTable.defaultCsvTableName);if(null!=g)for(var F=0,R=g;F<R.length;F++){var E=R[F],L=String,N=new n(E,L);A.columns.add(N)}if(c&&null!=g)while(null!=(f=S.readLine())){0==f.length&&(f=String.fill(p,g.count-1));var y={ref:f},x=this.splitToColumns(y,S,p);f=y.ref;var O=A.newRow(),k=Math.min(O.columns.count,x.count);A.rows.add(O);for(var M=0;M<k;M++)O.setValueByIndex(M,x[M])}return A},u.splitToColumns=function(e,t,o){var r=e.ref,i=[],n="",a=0,s=!1;while(a<r.length){var l=r[a];if(a++,'"'==l&&(s=!s),l==o&&!s){i.add(n),n="";continue}if(n+=l,a==r.length&&s){var u=t.readLine();null!=u&&(r+="\n"+u)}}i.add(n);for(var c=0;c<i.count;c++){var d=i[c];d.length>1&&d.startsWith('"')&&d.endsWith('"')&&(i[c]=d.substr(1,d.length-2).replace('""','"'))}return e.ref=r,i},u.codePageCodes=[0,1,65e3,65001,1200,1250,1251,1252,1253,1254,1255,1256],u.codePageNames=["Default","System","UTF7","UTF8","Unicode","1250","1251","1252","1253","1254","1255","1256"],u}();t.StiCsvHelper=u}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Char,r=function(){function e(){}return e.correct=function(e){for(var t=e,r=0;r<t.length;r++)o.isLetterOrDigit(t[r])||"_"==t[r]||(t=t.substr(0,r)+"_"+t.substr(r+1));return e=t,e.length>0&&o.isDigit(e[0])&&(e="n"+e),e},e}();t.StiDataNameValidator=r}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.defaultCsvTableName="CSV-Table",e.defaultDBaseTableName="DBase-Table",e}();e.StiFileItemTable=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.StiObjectSchema=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Data.DataRelation,r=e.System.Data.DataColumn,i=e.System.Data.DataSet,n=e.System.Data.DataTable,a=function(a){function s(e){void 0===e&&(e=t.StiConnectionIdent.Unspecified);var o=a.call(this)||this;return o.connectionIdent=e,o.tables=[],o.views=[],o.queries=[],o.storedProcedures=[],o.relations=[],o}return __extends(s,a),s.prototype.isEmpty=function(){return this.tables.count<=0&&this.views.count<=0&&this.storedProcedures.count<=0&&this.relations.count<=0&&this.queries.count<=0},s.prototype.getDataSet=function(){var t=new i;return null!=this.tables&&this.tables.forEach(function(e){var o=new n(e.name);e.columns.forEach(function(e){o.columns.add(new r(e.name,e.type))}),t.tables.add(o)}),null!=this.views&&this.views.forEach(function(e){var o=new n(e.name);e.columns.forEach(function(e){o.columns.add(new r(e.name,e.type))}),t.tables.add(o)}),null!=this.storedProcedures&&this.storedProcedures.forEach(function(e){var o=new n(e.name);e.columns.forEach(function(e){o.columns.add(new r(e.name,e.type))}),t.tables.add(o)}),null!=this.queries&&this.queries.forEach(function(e){var o=new n(e.name);e.columns.forEach(function(e){o.columns.add(new r(e.name,e.type))}),t.tables.add(o)}),null!=this.relations&&this.relations.forEach(function(r){try{var i=t.tables.getByName(r.parentSourceName),n=t.tables.getByName(r.childSourceName);if(null==i||null==n)return;for(var a=[],s=[],l=0,u=r.parentColumns;l<u.length;l++){var c=u[l],d=i.columns.getByName(c);if(null==d)return;a.add(d)}for(var m=0,p=r.childColumns;m<p.length;m++){var c=p[m],d=n.columns.getByName(c);if(null==d)return;s.add(d)}t.relations.add(new o(r.name,a.toArray(),s.toArray()))}catch(t){e.System.StiError.showError(t,!1)}}),t},s.prototype.sort=function(){return this.tables=this.tables.orderBy(function(e){return e.name}),this.views=this.views.orderBy(function(e){return e.name}),this.queries=this.queries.orderBy(function(e){return e.name}),this.storedProcedures=this.storedProcedures.orderBy(function(e){return e.name}),this.relations=this.relations.orderBy(function(e){e.name}),this},s}(t.StiObjectSchema);t.StiDataSchema=a}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Collections.Hashtable,r=e.System.Xml.XmlConverter,i=e.System.Xml.XmlNode,n=function(){function n(e){this.connectionString=e}return Object.defineProperty(n.prototype,"address",{get:function(){var e=null!=this.getConnectionStringKey("Address")?this.getConnectionStringKey("Address"):this.getConnectionStringKey1();return null!=e?e:this.connectionString},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"userName",{get:function(){return this.getConnectionStringKey("UserName")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"password",{get:function(){return this.getConnectionStringKey("Password")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"addressBearer",{get:function(){return this.getConnectionStringKey("AddressBearer")},enumerable:!0,configurable:!0}),n.prototype.getConnectionStringKey=function(e){if(String.isNullOrWhiteSpace(this.connectionString))return null;var t=this.connectionString.split(new RegExp(";|,")),o=t.firstOrDefault(function(t){return t.toLower().startsWith(e.toLower())});if(null==o)return null;var r=o.split("=");if(2!=r.length)return null;var i=r[1];return i.startsWith('"')&&i.endsWith('"')&&(i=i.substr(0,i.length-2)),i},n.prototype.getConnectionStringKey1=function(){if(String.isNullOrWhiteSpace(this.connectionString))return null;return this.connectionString.split(new RegExp(";|,")).firstOrDefault(function(e){return!e.contains("=")})},n.prototype.retrieveSchema=function(){if(String.isNullOrEmpty(this.connectionString))return null;var a=new t.StiDataSchema(t.StiConnectionIdent.ODataDataSource);try{for(var s=this.getDefaultWebClient(),l=s.downloadString(t.StiUrl.combine([this.address,"$metadata"]),this.userName,this.password,this.bearerAccessToken),u=r.toXml(l),c=new o,d=new o,m=0,p=u.getNodeByName("edmx:DataServices").childNodes;m<p.length;m++){for(var h=p[m],S=null!=h.getAttribute("Namespace")?h.getAttribute("Namespace"):null,g=0,f=h.childNodes.where(function(e){return"EntityType"==e.localName||"ComplexType"==e.localName});g<f.length;g++){var y=f[g];try{var C=y.sti_as(i),b=C.getAttribute("Name"),v=null!=C.getAttribute("BaseType")?C.getAttribute("BaseType"):null;if(String.isNullOrWhiteSpace(b))continue;var T=C.getNodesByName("Property"),w=new t.StiDataTableSchema(b,b);if(null!=v){var D=v.replaceAll(S+".","");d.set(D,w)}if(null!=T)for(var P=0,B=T;P<B.length;P++){var A=B[P];try{var F=A.getAttribute("Name");if(String.isNullOrWhiteSpace(F))continue;var R=null!=A.getAttribute("Nullable")&&"true"==A.getAttribute("Nullable"),E=A.getAttribute("Type"),L=n.getNetType(E),N=new t.StiDataColumnSchema(F,L);w.columns.add(N)}catch(t){e.System.StiError.showError(t,!1)}}c.set(S+"."+w.name,w)}catch(t){e.System.StiError.showError(t,!1)}for(var x=0,O=d.keys;x<O.length;x++){for(var k=O[x],M=k,w=d.get(M),G=void 0,I=0,_=a.tables;I<_.length;I++){var j=_[I];if(j.name==M){G=j;break}}if(null==G)continue;for(var H=0,V=G.columns;H<V.length;H++){for(var W=V[H],q=!0,z=0,U=w.columns;z<U.length;z++){var N=U[z];if(W.name==N.name){q=!1;break}}w.columns.add(W)}}}for(var J=0,Q=h.childNodes.where(function(e){return"EntityContainer"==e.localName});J<Q.length;J++)for(var K=Q[J],X=0,Y=K.childNodes.where(function(e){return"EntitySet"==e.localName});X<Y.length;X++){var Z=Y[X];try{var $=Z.getAttribute("Name"),ee=Z.getAttribute("EntityType");if(String.isNullOrWhiteSpace($))continue;var w=new t.StiDataTableSchema($,$),te=c.get(ee);null!=te&&w.columns.addRange(te.columns),a.tables.add(w)}catch(t){e.System.StiError.showError(t,!1)}for(var oe=0,re=d.keys;oe<re.length;oe++){for(var k=re[oe],M=k,w=d.get(M),G=void 0,ie=0,ne=a.tables;ie<ne.length;ie++){var j=ne[ie];if(j.name==M){G=j;break}}if(null==G)continue;for(var ae=0,se=G.columns;ae<se.length;ae++){for(var W=se[ae],q=!0,le=0,ue=w.columns;le<ue.length;le++){var N=ue[le];if(W.name==N.name){q=!1;break}}w.columns.add(W)}}}}return a}catch(t){throw e.System.StiError.showError(t,!1),t}},n.prototype.fillDataTable=function(o,i){if(String.isNullOrEmpty(this.connectionString))return;try{var n=this.getDefaultWebClient(),a=t.StiUrl.combine([this.address,i]),s=n.downloadString(a,this.userName,this.password,this.bearerAccessToken);if(s.trim().startsWith("<?xml")){var l=r.toXml(s),u=l.getNodeByName("title");null!=u&&(o.tableName=u.textContent);for(var c=0,d=l.getNodesByName("entry");c<d.length;c++){var m=d[c],p=m.getNodeByName("content");if(null==p)continue;var h=p.childNodes.firstOrDefault(function(e){return e.localName.endsWith("properties")});if(null==h)continue;var S=o.newRow();o.rows.add(S);try{var g=m.getNodeByName("title"),f=o.columns.getByName("Name");null!=g&&null!=o.columns.getByName("Name")&&S.setValue(f,g.textContent)}catch(t){e.System.StiError.showError(t,!1)}try{var y=m.getNodeByName("summary"),f=o.columns.getByName("Description");null!=y&&null!=o.columns.getByName("Description")&&S.setValue(f,y.textContent)}catch(t){e.System.StiError.showError(t,!1)}for(var C=0,b=h.childNodes;C<b.length;C++){var v=b[C];try{var T=v.localName.replaceAll("d:",""),w=v.textContent,D=o.columns.getByName(T);null!=D&&S.setValue(D,w)}catch(t){e.System.StiError.showError(t,!1)}}}}else{var P=JSON.parse(s);if(null!=P&&null!=P.value&&Array.isArray(P.value))for(var B=0,A=P.value;B<A.length;B++){var F=A[B],S=o.newRow();o.rows.add(S);for(var R in F){if(R.startsWith("@odata."))continue;var T=R,E=F[R],D=o.columns.getByName(T);null!=D&&S.setValue(D,E)}}}}catch(t){e.System.StiError.showError(t,!1)}},n.prototype.testConnection=function(){try{this.getDefaultWebClient().downloadString(this.address,this.userName,this.password,this.bearerAccessToken)}catch(o){return e.System.StiError.showError(o,!1),t.StiTestConnectionResult.makeWrong(o.message)}return t.StiTestConnectionResult.makeFine()},n.getNetType=function(t){if(String.isNullOrWhiteSpace(t))return null;switch(t=t.toLower(),t.startsWith("edm.")&&(t=t.replaceAll("edm.","")),t){case"int64":return e.System.Int64;case"int32":return e.System.Int32;case"int16":return e.System.Int16;case"byte":return e.System.Byte;case"sbyte":return e.System.SByte;case"int":return e.System.Int32;case"boolean":return Boolean;case"decimal":return e.System.Decimal;case"float":return e.System.Float;case"double":return e.System.Double;case"time":case"datetime":return e.System.DateTime;case"guid":return e.System.Guid;default:return String}},n.getBearerAccessToken=function(e,t,o){try{var r=new XMLHttpRequest,i="grant_type=password"+"&username="+t+"&password="+o;if(r.open("POST",e,!1),r.send(i),200==r.status){return JSON.parse(r.responseText).access_token}}catch(e){throw e}return null},n.prototype.getDefaultWebClient=function(){var e={};return String.isNullOrWhiteSpace(this.addressBearer)||String.isNullOrWhiteSpace(this.bearerAccessToken)&&(this.bearerAccessToken=n.getBearerAccessToken(this.addressBearer,this.userName,this.password)),e.downloadString=function(e,t,o,r){try{var i=new XMLHttpRequest;if(!String.isNullOrWhiteSpace(t)&&String.isNullOrWhiteSpace(r)?(i.withCredentials=!0,i.open("Get",e,!1,t,o)):(String.isNullOrWhiteSpace(r)||i.setRequestHeader("Authorization","Bearer "+r),i.open("Get",e,!1)),i.send(),200==i.status)return i.responseText}catch(e){throw e}},e},n}();t.StiODataHelper=n}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=function(){function e(e,t){this.name=e,this.array=t}return e.prototype.toList=function(){return[this]},e}();t.StiDataLoaderHelperData=o;var r=function(){function t(){}return t.loadMultiple=function(e,t,o){if(String.isNullOrEmpty(e))return null;var r=this.loadSingle(e,o);return null!=r?r.toList():null},t.loadSingle=function(t,r){return new o(e.System.IO.Path.getFileNameWithoutExtension(t),e.System.IO.File.getFile(t,r))},t}();t.StiDataLoaderHelper=r}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=function(){function t(){}return t.get=function(t){if(String.isNullOrWhiteSpace(t))return null;var o=null;return o=e.System.IO.File.getFile(t,!0)},t}();t.StiFileUrlHelper=o}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.makeWrong=function(t){var o=new e;return o.success=!1,o.notice=t,o},e.makeWrong2=function(t){var o=new e;return o.success=!1,o.notice=t,o},e.makeWrong3=function(){var t=new e;return t.success=!1,t},e.makeFine=function(){var t=new e;return t.success=!0,t},e}();e.StiTestConnectionResult=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(e){function t(t,o){void 0===t&&(t=null),void 0===o&&(o=null);var r=e.call(this)||this;return r.name=t,r.type=o,r}return __extends(t,e),t}(e.StiObjectSchema);e.StiDataColumnSchema=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(e){function t(t,o){void 0===t&&(t=null),void 0===o&&(o=null);var r=e.call(this)||this;return r.name=t,r.type=o,r}return __extends(t,e),t}(e.StiObjectSchema);e.StiDataParameterSchema=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.StiDataRelationSchema=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(e){function t(t,o){void 0===t&&(t=null),void 0===o&&(o=null);var r=e.call(this)||this;return r.columns=[],r.parameters=[],r.name=t,r.query=o,r}return __extends(t,e),t.newTableOrView=function(e,t,o){return void 0===t&&(t=null),void 0===o&&(o=null),this.newTable(e,t,o)},t.newTable=function(e,o,r){return void 0===o&&(o=null),void 0===r&&(r=null),new t(e,r)},t.newView=function(e,o,r){return void 0===o&&(o=null),void 0===r&&(r=null),new t(e,r)},t.newProcedure=function(e,o,r){return void 0===o&&(o=null),void 0===r&&(r=null),String.isNullOrEmpty(r)&&(r="exec "+e),new t(e,r)},t}(e.StiObjectSchema);e.StiDataTableSchema=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.Xml=0]="Xml",e[e.Json=1]="Json"}(t=e.StiDataFormatType||(e.StiDataFormatType={}));var o;!function(e){e[e.KeyInfo=0]="KeyInfo",e[e.SchemaOnly=1]="SchemaOnly",e[e.FillSchema=2]="FillSchema"}(o=e.StiRetrieveColumnsMode||(e.StiRetrieveColumnsMode={}));var r;!function(e){e[e.Db2DataSource=1]="Db2DataSource",e[e.InformixDataSource=2]="InformixDataSource",e[e.MsAccessDataSource=3]="MsAccessDataSource",e[e.MsSqlDataSource=4]="MsSqlDataSource",e[e.MySqlDataSource=5]="MySqlDataSource",e[e.OdbcDataSource=6]="OdbcDataSource",e[e.OleDbDataSource=7]="OleDbDataSource",e[e.FirebirdDataSource=8]="FirebirdDataSource",e[e.PostgreSqlDataSource=9]="PostgreSqlDataSource",e[e.OracleDataSource=10]="OracleDataSource",e[e.SqlCeDataSource=11]="SqlCeDataSource",e[e.SqLiteDataSource=12]="SqLiteDataSource",e[e.SybaseDataSource=13]="SybaseDataSource",e[e.TeradataDataSource=14]="TeradataDataSource",e[e.VistaDbDataSource=15]="VistaDbDataSource",e[e.UniversalDevartDataSource=16]="UniversalDevartDataSource",e[e.ODataDataSource=17]="ODataDataSource",e[e.CsvDataSource=18]="CsvDataSource",e[e.DBaseDataSource=19]="DBaseDataSource",e[e.DynamicsNavDataSource=20]="DynamicsNavDataSource",e[e.ExcelDataSource=21]="ExcelDataSource",e[e.JsonDataSource=22]="JsonDataSource",e[e.XmlDataSource=23]="XmlDataSource",e[e.DropboxCloudStorage=24]="DropboxCloudStorage",e[e.GoogleDriveCloudStorage=25]="GoogleDriveCloudStorage",e[e.OneDriveCloudStorage=26]="OneDriveCloudStorage",e[e.SharePointCloudStorage=27]="SharePointCloudStorage",e[e.Unspecified=28]="Unspecified"}(r=e.StiConnectionIdent||(e.StiConnectionIdent={}));var i;!function(e){e[e.MsSqlDataSource=10]="MsSqlDataSource",e[e.MySqlDataSource=20]="MySqlDataSource",e[e.OdbcDataSource=30]="OdbcDataSource",e[e.OleDbDataSource=40]="OleDbDataSource",e[e.OracleDataSource=50]="OracleDataSource",e[e.MsAccessDataSource=60]="MsAccessDataSource",e[e.PostgreSqlDataSource=70]="PostgreSqlDataSource",e[e.FirebirdDataSource=80]="FirebirdDataSource",e[e.SqlCeDataSource=90]="SqlCeDataSource",e[e.SqLiteDataSource=100]="SqLiteDataSource",e[e.Db2DataSource=110]="Db2DataSource",e[e.InformixDataSource=120]="InformixDataSource",e[e.SybaseDataSource=130]="SybaseDataSource",e[e.TeradataDataSource=140]="TeradataDataSource",e[e.VistaDbDataSource=150]="VistaDbDataSource",e[e.UniversalDevartDataSource=160]="UniversalDevartDataSource",e[e.ODataDataSource=170]="ODataDataSource",e[e.ExcelDataSource=180]="ExcelDataSource",e[e.JsonDataSource=190]="JsonDataSource",e[e.XmlDataSource=200]="XmlDataSource",e[e.CsvDataSource=210]="CsvDataSource",e[e.DBaseDataSource=220]="DBaseDataSource",e[e.DynamicsNavDataSource=230]="DynamicsNavDataSource",e[e.DropboxCloudStorage=240]="DropboxCloudStorage",e[e.GoogleDriveCloudStorage=250]="GoogleDriveCloudStorage",e[e.OneDriveCloudStorage=260]="OneDriveCloudStorage",e[e.SharePointCloudStorage=270]="SharePointCloudStorage",e[e.Unspecified=0]="Unspecified"}(i=e.StiConnectionOrder||(e.StiConnectionOrder={}));var n;!function(e){e[e.Unknown=1]="Unknown",e[e.ReportSnapshot=2]="ReportSnapshot",e[e.Pdf=3]="Pdf",e[e.Xps=4]="Xps",e[e.PowerPoint=5]="PowerPoint",e[e.Html=6]="Html",e[e.Text=7]="Text",e[e.RichText=8]="RichText",e[e.Word=9]="Word",e[e.OpenDocumentWriter=10]="OpenDocumentWriter",e[e.Excel=11]="Excel",e[e.OpenDocumentCalc=12]="OpenDocumentCalc",e[e.Data=13]="Data",e[e.Image=14]="Image",e[e.Xml=15]="Xml",e[e.Xsd=16]="Xsd",e[e.Csv=17]="Csv",e[e.Dbf=18]="Dbf",e[e.Sylk=19]="Sylk",e[e.Dif=20]="Dif",e[e.Json=21]="Json"}(n=e.StiFileType||(e.StiFileType={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(e){this.adapter=e}return e.prototype.correctName=function(e){var t=null!=this.adapter?this.adapter.getDatabaseSpecificName(e):null;return-1!=e.trim().indexOfAny([" ",".","-"])?t:e},e.prototype.getName=function(e,t){return String.isNullOrWhiteSpace(e)?this.correctName(t):String.stiFormat("{0}.{1}",this.correctName(e),this.correctName(t))},e.prototype.getSelectQuery1=function(e){return this.getSelectQuery2(null,e)},e.prototype.getSelectQuery2=function(e,t){return String.stiFormat("select * from {0}",this.getName(e,t))},e.prototype.getExecuteQuery1=function(e){return this.getExecuteQuery2(null,e)},e.prototype.getExecuteQuery2=function(e,t){return String.stiFormat("execute {0}",this.getName(e,t))},e.prototype.getCallQuery1=function(e){return this.getCallQuery2(null,e)},e.prototype.getCallQuery2=function(e,t){return String.stiFormat("call {0}",this.getName(e,t))},e.prototype.getProcQuery1=function(e){return this.getProcQuery2(null,e)},e.prototype.getProcQuery2=function(e,t){return this.getName(e,t)},e.get=function(t){return new e(t)},e}();e.StiTableQuery=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){t.PointD=e.System.Drawing.Point}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){t.RectangleD1=e.System.Drawing.Rectangle}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){t.SizeD=e.System.Drawing.Size}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.pointInEdge=function(e,t,o,r){var i=Math.round(o.x,2),n=Math.round(o.y,2),a=Math.round(e,2),s=Math.round(t,2),l=Math.round(r,2);return i-l<=a&&n-l<=s&&i+l>=a&&n+l>=s},e.pointInRect=function(e,t,o){var r=Math.round(o.left,2),i=Math.round(o.top,2),n=Math.round(o.right,2),a=Math.round(o.bottom,2),s=Math.round(e,2),l=Math.round(t,2);return r<=s&&i<=l&&a>l&&n>s},e}();e.StiActionUtils=t}(t=e.Drawing||(e.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=function(e){function t(t){void 0===t&&(t=o.transparent);var r=e.call(this)||this;return r._color=t,r}return __extends(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),t}(t.StiBrush);t.StiSolidBrush=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Rectangle,r=e.System.Drawing.Color,i=e.System.ICloneable,n=e.System.Enum,a=e.System.Drawing.Pen,s=e.System.Drawing.Drawing2D.LineCap,l=e.System.Text.StiReportObjectStringConverter,u=function(){function e(e,o,r,i,n,a,s){this.side=t.StiBorderSides.None,this.size=1,this.style=t.StiPenStyle.Solid,this.shadowSize=4,this.dropShadow=!1,this.topmost=!1,this.side=e,this.color=o,this.size=r,this.style=i,this.shadowSize=n,this.dropShadow=a,this.topmost=s}return e.prototype.clone=function(){return new e(this.side,this.color,this.size,this.style,this.shadowSize,this.dropShadow,this.topmost)},e.prototype.stiEquals=function(t){if(Object.referenceEquals(null,t))return!1;if(Object.referenceEquals(this,t))return!0;var o=t.sti_as(e);return null!=o&&this.side==o.side&&this.color.stiEquals(o.color)&&this.size.stiEquals(o.size)&&this.style==o.style&&this.shadowSize.stiEquals(o.shadowSize)&&this.topmost==o.topmost&&this.dropShadow==o.dropShadow},e.prototype.getHashCode=function(){var e=this.side;return e=397*e^this.color.getHashCode(),e=397*e^this.size.getHashCode(),e=397*e^this.style,e=397*e^this.shadowSize.getHashCode(),e=397*e^this.topmost.getHashCode(),e=397*e^this.dropShadow.getHashCode()},e.isDefault=function(o,i,n,a,s,l,u){if(o.sti_is(e)&&(i=o.color,n=o.size,a=o.style,s=o.dropShadow,l=o.shadowSize,u=o.topmost,o=o.side),i.stiEquals(r.black)&&!s&&!u&&4==l&&o==t.StiBorderSides.None&&1==n&&a==t.StiPenStyle.Solid)return!0;return!1},e}(),c=function(){function e(e,o,i,n,a,s,l,c){void 0===e&&(e=t.StiBorderSides.None),void 0===o&&(o=r.black),void 0===i&&(i=1),void 0===n&&(n=t.StiPenStyle.Solid),void 0===a&&(a=!1),void 0===s&&(s=4),void 0===l&&(l=new t.StiSolidBrush(r.black)),void 0===c&&(c=!1),this.bits=null,this.defaultHashCode=this.getHashCode(),u.isDefault(e,o,i,n,a,s,c)?this.bits=null:this.bits=new u(e,o,i,n,s,a,c),this._shadowBrush=l}return e.prototype.implements=function(){return[i]},e.prototype.clone=function(){var e=this.memberwiseClone();return null!=e._shadowBrush?e._shadowBrush=this._shadowBrush.clone():e._shadowBrush=null,null!=this.bits&&(u.isDefault(this.bits)?e.bits=null:e.bits=this.bits.clone()),e},e.prototype.stiEquals=function(t){if(Object.referenceEquals(null,t))return!1;if(Object.referenceEquals(this,t))return!0;var o=t.sti_as(e);return null!=o&&Object.stiEquals(this.bits,o.bits)&&Object.stiEquals(this._shadowBrush,o._shadowBrush)},e.prototype.getSizeOffset=function(){return this.size/2},e.prototype.getHashCode=function(){return 397*(397*this.defaultHashCode^(null!=this.bits?this.bits.getHashCode():0))^(null!=this._shadowBrush?this._shadowBrush.getHashCode():0)},e.prototype.draw=function(e,o,i,n,l,u){if(void 0===n&&(n=r.white),void 0===l&&(l=!0),void 0===u&&(u=!0),null==this.bits)return;if(this.isDefault)return;if(l&&this.drawBorderShadow(e,o,i),u){var c=null,d=new a(this.bits.color);if(this.bits.style==t.StiPenStyle.Double&&(c=new a(n)),d.dashStyle=t.StiPenUtils.getPenStyle(this.bits.style),this.bits.style!=t.StiPenStyle.None){d.width=Math.trunc(this.bits.size*i),d.startCap=s.Square,d.endCap=s.Square;var m=o.clone(),p=o.clone();this.bits.style==t.StiPenStyle.Double&&(m.inflate(-1,-1),p.inflate(1,1),d.width=1);var h=0,S=0,g=0,f=0;this.isAllBorderSidesPresent?this.bits.style==t.StiPenStyle.Double?(e.drawRectangle(c,o),e.drawRectangle(d,m),e.drawRectangle(d,p)):e.drawRectangle(d,o):(this.isTopBorderSidePresent&&(h=m.left,S=m.right,this.isLeftBorderSidePresent||(h=p.left),this.isRightBorderSidePresent||(S=p.right),this.bits.style==t.StiPenStyle.Double?(e.drawLine(c,o.left,o.top,o.right,o.top),e.drawLine(d,h,m.top,S,m.top),e.drawLine(d,p.left,p.top,p.right,p.top)):e.drawLine(d,o.left,o.top,o.right,o.top)),this.isLeftBorderSidePresent&&(g=m.top,f=m.bottom,this.isTopBorderSidePresent||(g=p.top),this.isBottomBorderSidePresent||(f=p.bottom),this.style==t.StiPenStyle.Double?(e.drawLine(c,o.left,o.top,o.left,o.bottom),e.drawLine(d,m.left,g,m.left,f),e.drawLine(d,p.left,p.top,p.left,p.bottom)):e.drawLine(d,o.left,o.top,o.left,o.bottom)),this.isBottomBorderSidePresent&&(h=m.left,S=m.right,this.isLeftBorderSidePresent||(h=p.left),this.isRightBorderSidePresent||(S=p.right),this.bits.style==t.StiPenStyle.Double?(e.drawLine(c,o.left,o.bottom,o.right,o.bottom),e.drawLine(d,h,m.bottom,S,m.bottom),e.drawLine(d,p.left,p.bottom,p.right,p.bottom)):e.drawLine(d,o.left,o.bottom,o.right,o.bottom)),this.isRightBorderSidePresent&&(g=m.top,f=m.bottom,this.isTopBorderSidePresent||(g=p.top),this.isBottomBorderSidePresent||(f=p.bottom),this.bits.style==t.StiPenStyle.Double?(e.drawLine(c,o.right,o.top,o.right,o.bottom),e.drawLine(d,m.right,g,m.right,f),e.drawLine(d,p.right,p.top,p.right,p.bottom)):e.drawLine(d,o.right,o.top,o.right,o.bottom))),null!=c&&(c=null)}}},e.prototype.drawBorderShadow=function(e,r,i){if(this.isDefault)return;if(null==this.bits)return;if(this.bits.dropShadow){var n=this.bits.shadowSize*i,a=new o(r.left+n,r.top+n,r.width,r.height),s=t.StiBrush.getBrush(this.shadowBrush,a);e.fillRectangle(s,r.right,r.top+n,n,r.height-n),e.fillRectangle(s,r.left+n,r.bottom,r.width,n)}},Object.defineProperty(e.prototype,"isTopBorderSidePresent",{get:function(){if(null==this.bits)return!1;return 0!=(this.bits.side&t.StiBorderSides.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBottomBorderSidePresent",{get:function(){if(null==this.bits)return!1;return 0!=(this.bits.side&t.StiBorderSides.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLeftBorderSidePresent",{get:function(){if(null==this.bits)return!1;return 0!=(this.bits.side&t.StiBorderSides.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRightBorderSidePresent",{get:function(){if(null==this.bits)return!1;return 0!=(this.bits.side&t.StiBorderSides.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAllBorderSidesPresent",{get:function(){if(null==this.bits)return!1;return this.bits.side==t.StiBorderSides.All},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefaultShadowBrush",{get:function(){return this.shadowBrush.sti_is(t.StiSolidBrush)&&this.shadowBrush.color.stiEquals(r.black)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"side",{get:function(){if(null==this.bits)return t.StiBorderSides.None;return this.bits.side},set:function(e){if(e==t.StiBorderSides.None&&null==this.bits)return;null!=this.bits?this.bits.side=e:this.bits=new u(e,this.color,this.size,this.style,this.shadowSize,this.dropShadow,this.topmost)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){if(null==this.bits)return r.black;return this.bits.color},set:function(e){if(e==r.black&&null==this.bits)return;null!=this.bits?this.bits.color=e:this.bits=new u(this.side,e,this.size,this.style,this.shadowSize,this.dropShadow,this.topmost)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){if(null==this.bits)return 1;return this.bits.size},set:function(e){if(1==e&&null==this.bits)return;null!=this.bits?this.bits.size=e:this.bits=new u(this.side,this.color,e,this.style,this.shadowSize,this.dropShadow,this.topmost)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){if(null==this.bits)return t.StiPenStyle.Solid;return this.bits.style},set:function(e){if(e==t.StiPenStyle.Solid&&null==this.bits)return;null!=this.bits?this.bits.style=e:this.bits=new u(this.side,this.color,this.size,e,this.shadowSize,this.dropShadow,this.topmost)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadowBrush",{get:function(){return this._shadowBrush},set:function(e){this._shadowBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadowSize",{get:function(){if(null==this.bits)return 4;return this.bits.shadowSize},set:function(e){if(4==e&&null==this.bits)return;null!=this.bits?this.bits.shadowSize=e:this.bits=new u(this.side,this.color,this.size,this.style,e,this.dropShadow,this.topmost)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropShadow",{get:function(){if(null==this.bits)return!1;return this.bits.dropShadow},set:function(e){if(0==e&&null==this.bits)return;null!=this.bits?this.bits.dropShadow=e:this.bits=new u(this.side,this.color,this.size,this.style,this.shadowSize,e,this.topmost)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topmost",{get:function(){if(null==this.bits)return!1;return this.bits.topmost},set:function(e){if(0==e&&null==this.bits)return;null!=this.bits?this.bits.topmost=e:this.bits=new u(this.side,this.color,this.size,this.style,this.shadowSize,this.dropShadow,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefault",{get:function(){return this.isDefaultShadowBrush&&null==this.bits},enumerable:!0,configurable:!0}),e.loadFromXml=function(o){var r=o.split(";");if(o.startsWith("Adv")){var i=!1;return 16==r.length&&(i="true"==r[15].toLower()),new t.StiAdvancedBorder(new t.StiBorderSide(l.convertStringToColor(r[0].substring(3)),r[1].toNumber(),n.parse(t.StiPenStyle,r[2])),new t.StiBorderSide(l.convertStringToColor(r[3]),r[4].toNumber(),n.parse(t.StiPenStyle,r[5])),new t.StiBorderSide(l.convertStringToColor(r[6]),r[7].toNumber(),n.parse(t.StiPenStyle,r[8])),new t.StiBorderSide(l.convertStringToColor(r[9]),r[10].toNumber(),n.parse(t.StiPenStyle,r[11])),"true"==r[12].toLower(),r[13].toNumber(),t.StiBrush.convertToBrush(r[14]),i)}var i=!1;return 8==r.length&&(i="true"==r[7].toLower()),new e(n.parse(t.StiBorderSides,r[0]),l.convertStringToColor(r[1]),r[2].toNumber(),n.parse(t.StiPenStyle,r[3]),"true"==r[4].toLower(),r[5].toNumber(),t.StiBrush.convertToBrush(r[6]),i)},e}();t.StiBorder=c}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=function(e){function r(r,i,n,a,s,l,u,c){void 0===r&&(r=new t.StiBorderSide),void 0===i&&(i=new t.StiBorderSide),void 0===n&&(n=new t.StiBorderSide),void 0===a&&(a=new t.StiBorderSide),void 0===s&&(s=!1),void 0===l&&(l=4),void 0===u&&(u=new t.StiSolidBrush(o.black)),void 0===c&&(c=!1);var d=e.call(this)||this;return d._topSide=r,d._bottomSide=i,d._leftSide=n,d._rightSide=a,d._leftSide.side=t.StiBorderSides.Left,d._rightSide.side=t.StiBorderSides.Right,d._topSide.side=t.StiBorderSides.Top,d._bottomSide.side=t.StiBorderSides.Bottom,d.shadowBrush=u,d.shadowSize=l,d.dropShadow=s,d.topmost=c,d}return __extends(r,e),r.prototype.clone=function(){var t=e.prototype.clone.call(this);return t._topSide=this._topSide.clone(),t._bottomSide=this._bottomSide.clone(),t._leftSide=this._leftSide.clone(),t._rightSide=this._rightSide.clone(),t},r.prototype.stiEquals=function(t){if(Object.referenceEquals(null,t))return!1;if(Object.referenceEquals(this,t))return!0;if(t.getStiType()!=this.getStiType())return!1;return e.prototype.stiEquals.call(this,t)&&Object.stiEquals(this._bottomSide,t._bottomSide)&&Object.stiEquals(this._topSide,t._topSide)&&Object.stiEquals(this._leftSide,t._leftSide)&&Object.stiEquals(this._rightSide,t._rightSide)},r.prototype.getHashCode=function(){var t=e.prototype.getHashCode.call(this);return t=397*t^(null!=this._bottomSide?this._bottomSide.getHashCode():0),t=397*t^(null!=this._topSide?this._topSide.getHashCode():0),t=397*t^(null!=this._leftSide?this._leftSide.getHashCode():0),t=397*t^(null!=this._rightSide?this._rightSide.getHashCode():0)},Object.defineProperty(r.prototype,"leftSide",{get:function(){return this._leftSide},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rightSide",{get:function(){return this._rightSide},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"topSide",{get:function(){return this._topSide},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bottomSide",{get:function(){return this._bottomSide},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isTopBorderSidePresent",{get:function(){return this.topSide.style!=t.StiPenStyle.None},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isBottomBorderSidePresent",{get:function(){return this.bottomSide.style!=t.StiPenStyle.None},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isLeftBorderSidePresent",{get:function(){return this.leftSide.style!=t.StiPenStyle.None},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isRightBorderSidePresent",{get:function(){return this.rightSide.style!=t.StiPenStyle.None},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isAllBorderSidesPresent",{get:function(){return this.isLeftBorderSidePresent&&this.isRightBorderSidePresent&&this.isTopBorderSidePresent&&this.isBottomBorderSidePresent},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"side",{get:function(){var e=t.StiBorderSides.None;return this.isLeftBorderSidePresent&&(e|=t.StiBorderSides.Left),this.isRightBorderSidePresent&&(e|=t.StiBorderSides.Right),this.isTopBorderSidePresent&&(e|=t.StiBorderSides.Top),this.isBottomBorderSidePresent&&(e|=t.StiBorderSides.Bottom),e},set:function(e){(e&t.StiBorderSides.Left)>0?this.isLeftBorderSidePresent||(this.leftSide.style=t.StiPenStyle.Solid):this.leftSide.style=t.StiPenStyle.None,(e&t.StiBorderSides.Right)>0?this.isRightBorderSidePresent||(this.rightSide.style=t.StiPenStyle.Solid):this.rightSide.style=t.StiPenStyle.None,(e&t.StiBorderSides.Top)>0?this.isTopBorderSidePresent||(this.topSide.style=t.StiPenStyle.Solid):this.topSide.style=t.StiPenStyle.None,(e&t.StiBorderSides.Bottom)>0?this.isBottomBorderSidePresent||(this.bottomSide.style=t.StiPenStyle.Solid):this.bottomSide.style=t.StiPenStyle.None},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"color",{get:function(){return this.leftSide.color},set:function(e){this.leftSide.color=e,this.rightSide.color=e,this.topSide.color=e,this.bottomSide.color=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"size",{get:function(){return this.leftSide.size},set:function(e){this.leftSide.size=e,this.rightSide.size=e,this.topSide.size=e,this.bottomSide.size=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"style",{get:function(){return this.leftSide.style},set:function(e){this.leftSide.style=e,this.rightSide.style=e,this.topSide.style=e,this.bottomSide.style=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isDefault",{get:function(){return!this.dropShadow&&!this.topmost&&4==this.shadowSize&&this.shadowBrush.sti_is(t.StiSolidBrush)&&this.shadowBrush.color.stiEquals(o.black)&&this.leftSide.isDefault&&this.rightSide.isDefault&&this.topSide.isDefault&&this.bottomSide.isDefault},enumerable:!0,configurable:!0}),r}(t.StiBorder);t.StiAdvancedBorder=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.ICloneable,r=e.System.Drawing.Color,i=function(){function e(e,o,i){void 0===e&&(e=r.black),void 0===o&&(o=1),void 0===i&&(i=t.StiPenStyle.None),this.side=t.StiBorderSides.None,this._color=r.black,this._size=1,this._style=t.StiPenStyle.None,this._color=e,this._size=o,this._style=i}return e.prototype.implements=function(){return[o]},e.prototype.clone=function(){var e=this.memberwiseClone();return e._style=this._style,e},e.prototype.stiEquals=function(t){if(Object.referenceEquals(null,t))return!1;if(Object.referenceEquals(this,t))return!0;var o=t.sti_as(e);return null!=o&&this._size.stiEquals(o._size)&&this._color.stiEquals(o._color)&&this.side==o.side&&this._style==o._style},e.prototype.getHashCode=function(){var e=this._size.getHashCode();return e=397*e^this._color.getHashCode(),e=397*e^this.side,e=397*e^this._style},e.prototype.getSizeOffset=function(){if(this.style==t.StiPenStyle.None)return 0;if(this.style==t.StiPenStyle.Double)return 1;return this.size/2},Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(e){this._style=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefault",{get:function(){return this.color.stiEquals(r.black)&&1==this.size&&this.style==t.StiPenStyle.None},enumerable:!0,configurable:!0}),e}();t.StiBorderSide=i}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Enum,r=e.System.Drawing.Color,i=e.System.ICloneable,n=e.System.Text.StiReportObjectStringConverter,a;!function(e){e[e.None=0]="None",e[e.Arrow=1]="Arrow",e[e.Open=2]="Open",e[e.Stealth=3]="Stealth",e[e.Diamond=4]="Diamond",e[e.Square=5]="Square",e[e.Oval=6]="Oval"}(a=t.StiCapStyle||(t.StiCapStyle={}));var s;!function(e){e[e.Color=100]="Color",e[e.Fill=110]="Fill",e[e.Width=120]="Width",e[e.Height=130]="Height",e[e.Style=140]="Style"}(s||(s={}));var l=function(){function e(e,t,o,i,n){void 0===e&&(e=10),void 0===t&&(t=a.None),void 0===o&&(o=10),void 0===i&&(i=!0),void 0===n&&(n=r.black),this._width=10,this._style=a.None,this._height=10,this._fill=!0,this._color=r.black,this._width=e,this._style=t,this._height=o,this._fill=i,this._color=n}return e.prototype.implements=function(){return[i]},e.prototype.clone=function(){var e=this.memberwiseClone();return e._width=this.width,e._height=this.height,e._style=this.style,e._fill=this.fill,e._color=this.color,e},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(e){this._style=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"Width":this._width=r.textContent.toNumber();break;case"Style":this._style=o.parse(a,r.textContent);break;case"Height":this._height=r.textContent.toNumber();break;case"Fill":this._fill=r.textContent.toBoolean();break;case"Color":this._color=n.convertStringToColor(r.textContent);break}}},e}();t.StiCap=l}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=function(){function e(){}return e.light=function(e,t){var r=e.r,i=e.g,n=e.b;return r+t>255?r=255:r+=t,i+t>255?i=255:i+=t,n+t>255?n=255:n+=t,o.fromArgb(r,i,n)},e.mixingColors=function(e,t,r){var i=t.r*r/255+e.r*(255-r)/255,n=t.g*r/255+e.g*(255-r)/255,a=t.b*r/255+e.b*(255-r)/255;return o.fromArgb(255,i,n,a)},e.dark=function(e,t){var r=e.r,i=e.r,n=e.b;return r-t<0?r=0:r-=t,i-t<0?i=0:i-=t,n-t<0?n=0:n-=t,o.fromArgb(r,i,n)},e}();t.StiColorUtils=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Rectangle,r=function(){function e(){}return e.fillRectangle=function(e,t,r,i,n,a){var s=r;if(r.sti_is(o)){var l=r;s=l.x,i=l.y,n=l.width,a=l.height}e.fillRectangle(t,s,i,n,a)},e}();t.StiDrawing=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultHashCode=0,t}return __extends(t,e),t.prototype.stiEquals=function(e){if(Object.referenceEquals(null,e))return!1;if(Object.referenceEquals(this,e))return!0;if(e.getStiType()!=this.getStiType())return!1;return!0},t.prototype.getHashCode=function(){return this.defaultHashCode},t}(e.StiBrush);e.StiEmptyBrush=t}(t=e.Drawing||(e.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Font,r=e.System.Drawing.FontStyle,i=e.System.Drawing.FontFamily,n=function(){function e(){}return e.correctStyle=function(e,t){var o=new i(e);try{if(o.isStyleAvailable(t))return t;if(!o.isStyleAvailable(r.Bold)&&(t&r.Bold)>0&&(t-=r.Bold),!o.isStyleAvailable(r.Italic)&&(t&r.Italic)>0&&(t-=r.Italic),!o.isStyleAvailable(r.Strikeout)&&(t&r.Strikeout)>0&&(t-=r.Strikeout),!o.isStyleAvailable(r.Underline)&&(t&r.Underline)>0&&(t-=r.Underline),!o.isStyleAvailable(t)){if(o.isStyleAvailable(r.Bold))return r.Bold;if(o.isStyleAvailable(r.Italic))return r.Italic;if(o.isStyleAvailable(r.Underline))return r.Underline;if(o.isStyleAvailable(r.Strikeout))return r.Strikeout}return t}finally{}},e.changeFontName=function(e,t){if(String.isNullOrEmpty(t))return e;return new o(t,e.size,e.style,e.unit)},e.changeFontSize=function(e,t){return t<1&&(t=1),new o(e.fontFamily.name,t,e.style,e.unit)},e.changeFontStyleBold=function(e,t){var i=r.Regular;return t&&(i|=r.Bold),e.italic&&(i|=r.Italic),e.underline&&(i|=r.Underline),new o(e.fontFamily.name,e.size,i,e.unit)},e.changeFontStyleItalic=function(e,t){var i=r.Regular;return e.bold&&(i|=r.Bold),t&&(i|=r.Italic),e.underline&&(i|=r.Underline),new o(e.fontFamily.name,e.size,i,e.unit)},e.changeFontStyleUnderline=function(e,t){var i=r.Regular;return e.bold&&(i|=r.Bold),e.italic&&(i|=r.Italic),t&&(i|=r.Underline),new o(e.fontFamily.name,e.size,i,e.unit)},e.changeFontStyleStrikeout=function(e,t){var i=r.Regular;return e.bold&&(i|=r.Bold),e.italic&&(i|=r.Italic),e.underline&&(i|=r.Underline),t&&(i|=r.Strikeout),new o(e.fontFamily.name,e.size,i,e.unit)},e}();t.StiFontUtils=n}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=function(e){function t(t,r,i,n,a){void 0===t&&(t=o.black),void 0===r&&(r=o.white),void 0===i&&(i=0),void 0===n&&(n=.5),void 0===a&&(a=1);var s=e.call(this)||this;return s._focus=.5,s._scale=1,s.defaultHashCode=0,s._startColor=t,s._endColor=r,s._angle=i,s._focus=n,s._scale=a,s}return __extends(t,e),Object.defineProperty(t.prototype,"startColor",{get:function(){return this._startColor},set:function(e){this._startColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endColor",{get:function(){return this._endColor},set:function(e){this._endColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focus",{get:function(){return this._focus},set:function(e){if(this._focus!=e){if(e>1||e<0)throw"Focus must be in range between 0 and 1!";this._focus=e}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(e){if(this._scale!=e){if(e>1||e<0)throw"Scale must be in range between 0 and 1!";this._scale=e}},enumerable:!0,configurable:!0}),t.prototype.stiEquals=function(e){if(Object.referenceEquals(null,e))return!1;if(Object.referenceEquals(this,e))return!0;if(e.getStiType()!=this.getStiType())return!1;var o=e.sti_as(t);return this.startColor.stiEquals(o.startColor)&&this.endColor.stiEquals(o.endColor)&&this.angle.stiEquals(o.angle)&&this.focus.stiEquals(o.focus)&&this.scale.stiEquals(o.scale)},t.prototype.getHashCode=function(){var e=this.defaultHashCode;return e=397*e^this.startColor.getHashCode(),e=397*e^this.endColor.getHashCode(),e=397*e^this.angle.getHashCode(),e=397*e^this.focus.getHashCode(),e=397*e^this.scale.getHashCode()},t}(t.StiBrush);t.StiGlareBrush=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=function(e){function r(t,r,i){void 0===t&&(t=o.silver),void 0===r&&(r=!0),void 0===i&&(i=.2);var n=e.call(this)||this;return n._color=o.silver,n._drawHatch=!0,n._blend=.2,n.defaultHashCode=n.getHashCode(),n._color=t,n._drawHatch=r,n._blend=i,n}return __extends(r,e),Object.defineProperty(r.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"drawHatch",{get:function(){return this._drawHatch},set:function(e){this._drawHatch=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"blend",{get:function(){return this._blend},set:function(e){if(this._blend!=e){if(e>1||e<0)throw"Value must be in range between 0 and 1.";this._blend=e}},enumerable:!0,configurable:!0}),r.prototype.stiEquals=function(e){if(Object.referenceEquals(null,e))return!1;if(Object.referenceEquals(this,e))return!0;if(e.getStiType()!=this.getStiType())return!1;var t=e.sti_as(r);return this.color.stiEquals(t.color)&&this.drawHatch.stiEquals(t.drawHatch)&&this.blend.stiEquals(t.blend)},r.prototype.getHashCode=function(){var e=this.defaultHashCode;return e=397*e^this.color.getHashCode(),e=397*e^this.drawHatch.getHashCode(),e=397*e^this.blend.getHashCode()},r.prototype.getTopColor=function(){return t.StiColorUtils.light(this.color,Math.round(64*this.blend))},r.prototype.getTopColorLight=function(){return t.StiColorUtils.light(t.StiColorUtils.light(this.color,Math.round(64*this.blend)),5)},r.prototype.getBottomColor=function(){return this.color},r.prototype.getBottomColorLight=function(){return t.StiColorUtils.light(this.getBottomColor(),2)},r.prototype.getTopRectangle=function(e){var t=e.clone();return t.height/=2,2*t.height<e.height&&t.height++,t},r.prototype.getBottomRectangle=function(e){var t=this.getTopRectangle(e).clone(),o=e.clone();return o.height=e.height-t.height,o.y=t.bottom,o},r}(t.StiBrush);t.StiGlassBrush=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=function(e){function t(t,r,i){void 0===t&&(t=o.black),void 0===r&&(r=o.white),void 0===i&&(i=0);var n=e.call(this)||this;return n.defaultHashCode=0,n._startColor=t,n._endColor=r,n._angle=i,n}return __extends(t,e),Object.defineProperty(t.prototype,"startColor",{get:function(){return this._startColor},set:function(e){this._startColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endColor",{get:function(){return this._endColor},set:function(e){this._endColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e},enumerable:!0,configurable:!0}),t.prototype.stiEquals=function(e){if(Object.referenceEquals(null,e))return!1;if(Object.referenceEquals(this,e))return!0;if(e.getStiType()!=this.getStiType())return!1;var o=e.sti_as(t);return this.startColor.stiEquals(o.startColor)&&this.endColor.stiEquals(o.endColor)&&this.angle.stiEquals(o.angle)},t.prototype.getHashCode=function(){var e=this.defaultHashCode;return e=397*e^this.startColor.getHashCode(),e=397*e^this.endColor.getHashCode(),e=397*e^this.angle.getHashCode()},t}(t.StiBrush);t.StiGradientBrush=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=e.System.Drawing.Drawing2D.HatchStyle,i=function(e){function t(t,i,n){void 0===t&&(t=r.BackwardDiagonal),void 0===i&&(i=o.black),void 0===n&&(n=o.white);var a=e.call(this)||this;return a.defaultHashCode=0,a._style=t,a._foreColor=i,a._backColor=n,a}return __extends(t,e),Object.defineProperty(t.prototype,"backColor",{get:function(){return this._backColor},set:function(e){this._backColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"foreColor",{get:function(){return this._foreColor},set:function(e){this._foreColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style},set:function(e){this._style=e},enumerable:!0,configurable:!0}),t.prototype.stiEquals=function(e){if(Object.referenceEquals(null,e))return!1;if(Object.referenceEquals(this,e))return!0;if(e.getStiType()!=this.getStiType())return!1;var o=e.sti_as(t);return this._backColor.stiEquals(o.backColor)&&this._foreColor.stiEquals(o.foreColor)&&this._style==o.style},t.prototype.getHashCode=function(){var e=this.defaultHashCode;return e=397*e^this.backColor.getHashCode(),e=397*e^this.foreColor.getHashCode(),e=397*e^this.style.getHashCode()},t}(t.StiBrush);t.StiHatchBrush=i}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Imaging.ImageCodecInfo,r=function(){function e(){}return e.getImageCodec=function(e){for(var t=o.getImageEncoders(),r=0,i=t;r<i.length;r++){var n=i[r];if(n.mimeType==e)return n}return null},e}();t.StiImageCodecInfo=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Image,r=function(){function e(){}return e.imageToString=function(e){if(null==e)return String.empty;return e.base64},e.bytesToImage=function(e){if(null==e||0==e.length)return null;var t=new o;return t.bytes=e,t},e.stringToImage=function(e){if(String.isNullOrEmpty(e))return null;var t=new o;return t.base64=e,t},e}();t.StiImageConverter=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Image,r=function(){function t(){}return t.loadBitmap=function(t){var r=e.System.IO.File.getFile(t,!0),i=new o;return i.url=t,i.bytes=r,i},t.loadImage=function(t){var r=e.System.IO.File.getFile(t,!0),i=new o;return i.url=t,i.bytes=r,i},t}();t.StiImageFromURL=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Drawing2D.DashStyle,r=function(){function e(){}return e.getPenStyle=function(e){switch(e){case t.StiPenStyle.Dash:return o.Dash;case t.StiPenStyle.DashDot:return o.DashDot;case t.StiPenStyle.DashDotDot:return o.DashDotDot;case t.StiPenStyle.Dot:return o.Dot;case t.StiPenStyle.Double:return o.Solid;default:return o.Solid}},e}();t.StiPenUtils=r}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Size,r=e.System.Drawing.Graphics,i=function(){function e(){}return e.measureString=function(e,t,i,n,a,s,l,u){a.wordWrap||(n=0);var c=new o(n,0);if(c=r.measureString(t,i,999999),90==a.angle||270==a.angle){var d=c.width;c.width=c.height,c.height=d}return new o(c.width,c.height)},e}();t.StiTextDrawing=i}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.DateTime,r=e.System.Enum,i=function(){function e(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isProperty=!1,this.isArray=!1,this.name=e,null!=t&&t.sti_is(String)&&(t=t.replace(/#!#q#/gi,'"').replace(/#!#r#!#n/gi,"\r\n").replace(/#!##!#/gi,"\\").replace(/#!#/gi,"\\")),this.value=t,this.isProperty=o}return e.dateToJsonDate=function(e){var t=-1*e.date.getTimezoneOffset(),o=Math.abs(Math.floor(t/60)).toString(),r=Math.abs(t%60).toString();return 1==o.length&&(o="0"+o),1==r.length&&(r="0"+r),"/Date("+Date.parse(e.date.toString()).toString()+(t>=0?"+":"-")+o+r+")/"},e.jsonDateFormatToDate=function(e){var t=e.replaceAll("/Date(","").replaceAll(")/",""),r=new o(new Date(parseInt(t))),i=t.indexOf("+");-1==i&&(i=t.indexOf("-"));var n=r.date.getTimezoneOffset();-1!=i&&(n=0);var a=Math.floor(n/60),s=n%60,l=(Math.abs(a)<10?"0":"")+Math.abs(a).toString(),u=(Math.abs(s)<10?"0":"")+Math.abs(s).toString(),c=(n>=0?"+":"-")+l+u,d=1;return-1!=i&&(c=t.substring(i)),"-"==c.substr(0,1)&&(d=-1),r.addHours(a+parseInt(c.substr(1,2))*d),r.addMinutes(s+parseInt(c.substr(3,2))*d),r},e.prototype.properties=function(){if(!this.isProperty)return this.value;return[]},e.prototype.removeProperty=function(e){if(null!=e||""!=e){var t=this.value.value.filter(function(t){return t.name==e});t.length>0&&this.value.value.remove(t[0])}},e.prototype.addPropertyNumber=function(t,o,r){if(void 0===r&&(r=0),null==this.value&&(this.value=new e("",[])),this.removeProperty(t),o==r)return;this.value.value.push(new e(t,o,!0))},e.prototype.addPropertyNumberNoDefaultValue=function(t,o){null==this.value&&(this.value=new e("",[])),this.removeProperty(t),this.value.value.push(new e(t,o,!0))},e.prototype.addPropertyJObject=function(t,o){if(null==this.value&&(this.value=new e("",[])),this.removeProperty(t),null==o||0==o.count)return;this.value.value.push(new e(t,o))},e.prototype.addPropertyJObjectArray=function(t,o){if(null==this.value&&(this.value=new e("",[])),this.removeProperty(t),null==o||0==o.count)return;var r=new e(t,o);r.isArray=!0,this.value.value.push(r)},e.prototype.addPropertyIdent=function(t,o){null==this.value&&(this.value=new e("",[])),this.value.value.push(new e(t,o,!0))},e.prototype.addPropertyBool=function(t,o,r){if(void 0===r&&(r=!1),null==this.value&&(this.value=new e("",[])),this.removeProperty(t),o==r)return;this.value.value.push(new e(t,o,!0))},e.prototype.addPropertyDateTime=function(t,o){null==this.value&&(this.value=new e("",[])),this.removeProperty(t),this.value.value.push(new e(t,e.dateToJsonDate(o),!0))},e.prototype.addPropertyEnum=function(t,o,i,n){if(void 0===n&&(n=null),null==this.value&&(this.value=new e("",[])),this.removeProperty(t),void 0!==n&&i==n)return;this.value.value.push(new e(t,r.getName(o,i),!0))},e.prototype.addPropertyString=function(t,o,r){if(null==this.value&&(this.value=new e("",[])),this.removeProperty(t),o==r)return;this.value.value.push(new e(t,o,!0))},e.prototype.addPropertyStringNullOfEmpty=function(t,o){if(null==this.value&&(this.value=new e("",[])),this.removeProperty(t),String.isNullOrEmpty(o))return;this.value.value.push(new e(t,o,!0))},Object.defineProperty(e.prototype,"count",{get:function(){var e=0;if(!this.isProperty)for(var t=0,o=this.value.value;t<o.length;t++){var r=o[t];e++}return e},enumerable:!0,configurable:!0}),e.prototype.serialize=function(){for(var e="",t=0,o=this.value.properties();t<o.length;t++){var r=o[t],i="";if(r.isProperty)i=null!=r.value&&r.value.sti_is(String)?'"'+r.value.replace(/[\\]/g,"\\\\").replace(/[\"]/g,'\\"').replace(/[\b]/g,"\\b").replace(/[\f]/g,"\\f").replace(/\r\n/g,"\n").replace(/[\r]/g,"\n").replace(/[\r\n]/g,"\\r\\n").replace(/[\t]/g,"\t")+'"':r.value;else if(r.isArray){for(var n=0,a=r.value;n<a.length;n++){var s=a[n];i+=i?",":"[",i+=s.serialize()}i+="]"}else i=r.value.serialize();e&&(e+=","),e+='"'+r.name+'":'+i}return e?"{"+e+"}":""},e.prototype.deserialize=function(e){if(e.sti_is(String)){var t=0,o=-1;while(t<e.length){if('"'==e[t]&&(t>0&&"\\"!=e[t-1]||t>1&&"\\"==e[t-2]))if(o>-1){var r=e.substring(o,t),i=r.replace(/\t/gi,"#!#t").replace(/\\/gi,"#!#").replace(/#!#\"/gi,"#!#q#").replace(/\r\n/gi,"#!#r#!#n").replace(/\r/gi,"#!#r#!#n").replace(/\n/gi,"#!#r#!#n");i.length!=r.length&&(e=e.substring(0,o)+i+e.substring(t),t+=i.length-r.length),o=-1}else o=t+1;t++}}var n="object"==typeof e?e:JSON.parse(e);this.deserializeFromObject(n),this.value=this.value.value},e.prototype.deserializeFromObject=function(t){for(var o in t)if("object"==typeof t[o]){var r=new e(o);null==this.value&&(this.value=new e(null,[])),this.value.value.push(r),r.deserializeFromObject(t[o])}else if("function"!=typeof t[o]){var r=new e(o,t[o],!0);null==this.value&&(this.value=new e(null,[])),this.value.value.push(r)}},e.prototype.toString=function(){return this.name},e}();t.StiJson=i}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.StringTrimming,r=e.System.Drawing.Text.HotkeyPrefix,i=e.Base.StiJson,n=e.System.ICloneable,a=e.System.Enum,s=function(){function e(e,t,i,n,a,s,l){this.rightToLeft=!1,this.lineLimit=!1,this.angle=0,this.firstTabOffset=40,this.distanceBetweenTabs=20,this.hotkeyPrefix=r.None,this.trimming=o.None,this.rightToLeft=e,this.lineLimit=t,this.angle=i,this.firstTabOffset=n,this.distanceBetweenTabs=a,this.hotkeyPrefix=s,this.trimming=l}return e.prototype.implements=function(){return[n]},e.prototype.getHashCode=function(){var e=this.rightToLeft?1231:1237;return e=397*e^(this.lineLimit?1231:1237),e=397*e^this.angle,e=397*e^this.firstTabOffset,e=397*e^this.distanceBetweenTabs,e=397*e^this.hotkeyPrefix,e=397*e^this.trimming},e.prototype.clone=function(){return this.memberwiseClone()},e}(),l=function(){function e(e,t,i,n,a,l,u,c){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===n&&(n=0),void 0===a&&(a=r.None),void 0===l&&(l=o.None),void 0===u&&(u=40),void 0===c&&(c=20),this.bits=null,this._wordWrap=!1,this._wordWrap=i,0==e&&0==t&&0==n&&a==r.None&&l==o.None&&40==u&&20==c?this.bits=null:this.bits=new s(e,t,n,u,c,a,l)}return e.prototype.implements=function(){return[n,n]},e.prototype.saveToJsonObject=function(){var e=new i;if(e.addPropertyBool("RightToLeft",this.rightToLeft),e.addPropertyBool("LineLimit",this.lineLimit),e.addPropertyNumber("Angle",this.angle,0),e.addPropertyNumber("FirstTabOffset",this.firstTabOffset,40),e.addPropertyNumber("DistanceBetweenTabs",this.distanceBetweenTabs,20),e.addPropertyEnum("HotkeyPrefix",r,this.hotkeyPrefix,r.None),e.addPropertyEnum("Trimming",o,this.trimming,o.None),e.addPropertyBool("WordWrap",this.wordWrap),e.count>0)return e;return null},e.prototype.loadFromJsonObject=function(e){for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"RightToLeft":this.rightToLeft=n.value.toBoolean();break;case"LineLimit":this.lineLimit=n.value.toBoolean();break;case"Angle":this.angle=n.value;break;case"FirstTabOffset":this.firstTabOffset=n.value;break;case"DistanceBetweenTabs":this.distanceBetweenTabs=n.value;break;case"HotkeyPrefix":this.hotkeyPrefix=a.parse(r,n.value);break;case"Trimming":this.trimming=a.parse(o,n.value);break;case"WordWrap":this.wordWrap=n.value.toBoolean();break}}},e.loadFromXml=function(t){var i=new e,n=t.split(",");n[0].indexOf("Hide")>=0?i.hotkeyPrefix=r.Hide:n[0].indexOf("Show")>=0?i.hotkeyPrefix=r.Show:i.hotkeyPrefix=r.None,i.lineLimit=n[1].indexOf("True")>=0,i.rightToLeft=n[2].indexOf("True")>=0,n[3].indexOf("EllipsisCharacter")>=0?i.trimming=o.EllipsisCharacter:n[3].indexOf("Character")>=0?i.trimming=o.Character:n[3].indexOf("EllipsisPath")>=0?i.trimming=o.EllipsisPath:n[3].indexOf("EllipsisWord")>=0?i.trimming=o.EllipsisWord:n[3].indexOf("None")>=0?i.trimming=o.None:n[3].indexOf("Word")>=0&&(i.trimming=o.Word),i.wordWrap=n[4].indexOf("True")>=0;var a=n[5].split("=");if(i.angle=a[1].trim().toNumber(),n.length>6){var s=n[6].split("=");i.firstTabOffset=s[1].trim().toNumber();var l=n[7].split("=");i.distanceBetweenTabs=l[1].trim().toNumber()}return i},e.prototype.loadFromXml=function(e){if(e.textContent.length>0){for(var t=e.textContent.split(","),i=0;i<t.length;i++)if(t[i].length>0)switch(t[i].split("=")[0].trim()){case"RightToLeft":this.rightToLeft=t[i].split("=")[1].trim().toBoolean();break;case"LineLimit":this.lineLimit=t[i].split("=")[1].trim().toBoolean();break;case"Angle":case"A":this.angle=t[i].split("=")[1].trim().toNumber();break;case"FirstTabOffset":this.firstTabOffset=t[i].split("=")[1].trim().toNumber();break;case"DistanceBetweenTabs":this.distanceBetweenTabs=t[i].split("=")[1].trim().toNumber();break;case"HotkeyPrefix":this.hotkeyPrefix=a.parse(r,t[i].split("=")[1].trim());break;case"Trimming":this.trimming=a.parse(o,t[i].split("=")[1].trim());break;case"WordWrap":this.wordWrap=t[i].split("=")[1].trim().toBoolean();break}}else for(var i=0;i<e.childNodes.length;i++){var n=e.childNodes[i];switch(n.nodeName){case"RightToLeft":this.rightToLeft=n.textContent.toBoolean();break;case"LineLimit":this.lineLimit=n.textContent.toBoolean();break;case"Angle":this.angle=n.textContent.toNumber();break;case"FirstTabOffset":this.firstTabOffset=n.textContent.toNumber();break;case"DistanceBetweenTabs":this.distanceBetweenTabs=n.textContent.toNumber();break;case"HotkeyPrefix":this.hotkeyPrefix=a.parse(r,n.textContent);break;case"Trimming":this.trimming=a.parse(o,n.textContent);break;case"WordWrap":this.wordWrap=n.textContent.toBoolean();break}}},e.prototype.clone=function(){var t=new e;return null!=this.bits&&(t.bits=this.bits.clone()),t.wordWrap=this.wordWrap,t},Object.defineProperty(e.prototype,"rightToLeft",{get:function(){if(null==this.bits)return!1;return this.bits.rightToLeft},set:function(e){if(0==e&&null==this.bits)return;null!=this.bits?this.bits.rightToLeft=e:this.bits=new s(e,this.lineLimit,this.angle,this.firstTabOffset,this.distanceBetweenTabs,this.hotkeyPrefix,this.trimming)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineLimit",{get:function(){if(null==this.bits)return!1;return this.bits.lineLimit},set:function(e){if(0==e&&null==this.bits)return;null!=this.bits?this.bits.lineLimit=e:this.bits=new s(this.rightToLeft,e,this.angle,this.firstTabOffset,this.distanceBetweenTabs,this.hotkeyPrefix,this.trimming)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){if(null==this.bits)return 0;return this.bits.angle},set:function(e){if(0==e&&null==this.bits)return;null!=this.bits?this.bits.angle=e:this.bits=new s(this.rightToLeft,this.lineLimit,e,this.firstTabOffset,this.distanceBetweenTabs,this.hotkeyPrefix,this.trimming)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstTabOffset",{get:function(){if(null==this.bits)return 40;return this.bits.firstTabOffset},set:function(e){if(e<0)return;if(40==e&&null==this.bits)return;null!=this.bits?this.bits.firstTabOffset=e:this.bits=new s(this.rightToLeft,this.lineLimit,this.angle,e,this.distanceBetweenTabs,this.hotkeyPrefix,this.trimming)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"distanceBetweenTabs",{get:function(){if(null==this.bits)return 20;return this.bits.distanceBetweenTabs},set:function(e){if(e<0)return;if(20==e&&null==this.bits)return;null!=this.bits?this.bits.distanceBetweenTabs=e:this.bits=new s(this.rightToLeft,this.lineLimit,this.angle,this.firstTabOffset,e,this.hotkeyPrefix,this.trimming)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hotkeyPrefix",{get:function(){if(null==this.bits)return r.None;return this.bits.hotkeyPrefix},set:function(e){if(e==r.None&&null==this.bits)return;null!=this.bits?this.bits.hotkeyPrefix=e:this.bits=new s(this.rightToLeft,this.lineLimit,this.angle,this.firstTabOffset,this.distanceBetweenTabs,e,this.trimming)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trimming",{get:function(){if(null==this.bits)return o.None;return this.bits.trimming},set:function(e){if(e==o.None&&null==this.bits)return;null!=this.bits?this.bits.trimming=e:this.bits=new s(this.rightToLeft,this.lineLimit,this.angle,this.firstTabOffset,this.distanceBetweenTabs,this.hotkeyPrefix,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefault",{get:function(){return!this._wordWrap&&null==this.bits},enumerable:!0,configurable:!0}),e.prototype.getHashCode=function(){return 397*(2881041151^(null!=this.bits?this.bits.getHashCode():0))^(this.wordWrap?1231:1237)},e}();t.StiTextOptions=l}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Drawing.Color,r=e.System.Text.StringBuilder,i=e.System.Drawing.Graphics,n=e.System.Drawing.Size,a=e.System.Char,s=e.System.Globalization.UnicodeCategory,l=e.System.Globalization.CultureInfo,u=e.System.Collections.DictionaryEntry,c=e.System.Collections.Hashtable,d=e.System.Convert,m=function(){function m(){}return Object.defineProperty(m,"htmlEscapeSequence",{get:function(){if(null==this._htmlEscapeSequence){this._htmlEscapeSequence=new c,this._htmlEscapeSequence["&quot;"]=String.fromCharCode(34),this._htmlEscapeSequence["&amp;"]=String.fromCharCode(38),this._htmlEscapeSequence["&lt;"]=String.fromCharCode(60),this._htmlEscapeSequence["&gt;"]=String.fromCharCode(62),this._htmlEscapeSequence["&nbsp;"]=String.fromCharCode(160),this._htmlEscapeSequence["&iexcl;"]=String.fromCharCode(161),this._htmlEscapeSequence["&cent;"]=String.fromCharCode(162),this._htmlEscapeSequence["&pound;"]=String.fromCharCode(163),this._htmlEscapeSequence["&curren;"]=String.fromCharCode(164),this._htmlEscapeSequence["&yen;"]=String.fromCharCode(165),this._htmlEscapeSequence["&brvbar;"]=String.fromCharCode(166),this._htmlEscapeSequence["&sect;"]=String.fromCharCode(167),this._htmlEscapeSequence["&uml;"]=String.fromCharCode(168),this._htmlEscapeSequence["&copy;"]=String.fromCharCode(169),this._htmlEscapeSequence["&ordf;"]=String.fromCharCode(170),this._htmlEscapeSequence["&laquo;"]=String.fromCharCode(171),this._htmlEscapeSequence["&not;"]=String.fromCharCode(172),this._htmlEscapeSequence["&shy;"]=String.fromCharCode(173),this._htmlEscapeSequence["&reg;"]=String.fromCharCode(174),this._htmlEscapeSequence["&macr;"]=String.fromCharCode(175),this._htmlEscapeSequence["&deg;"]=String.fromCharCode(176),this._htmlEscapeSequence["&plusmn;"]=String.fromCharCode(177),this._htmlEscapeSequence["&sup2;"]=String.fromCharCode(178),this._htmlEscapeSequence["&sup3;"]=String.fromCharCode(179),this._htmlEscapeSequence["&acute;"]=String.fromCharCode(180),this._htmlEscapeSequence["&micro;"]=String.fromCharCode(181),this._htmlEscapeSequence["&para;"]=String.fromCharCode(182),this._htmlEscapeSequence["&middot;"]=String.fromCharCode(183),this._htmlEscapeSequence["&cedil;"]=String.fromCharCode(184),this._htmlEscapeSequence["&sup1;"]=String.fromCharCode(185),this._htmlEscapeSequence["&ordm;"]=String.fromCharCode(186),this._htmlEscapeSequence["&raquo;"]=String.fromCharCode(187),this._htmlEscapeSequence["&frac14;"]=String.fromCharCode(188),this._htmlEscapeSequence["&frac12;"]=String.fromCharCode(189),this._htmlEscapeSequence["&frac34;"]=String.fromCharCode(190),this._htmlEscapeSequence["&iquest;"]=String.fromCharCode(191),this._htmlEscapeSequence["&Agrave;"]=String.fromCharCode(192),this._htmlEscapeSequence["&Aacute;"]=String.fromCharCode(193),this._htmlEscapeSequence["&Acirc;"]=String.fromCharCode(194),this._htmlEscapeSequence["&Atilde;"]=String.fromCharCode(195),this._htmlEscapeSequence["&Auml;"]=String.fromCharCode(196),this._htmlEscapeSequence["&Aring;"]=String.fromCharCode(197),this._htmlEscapeSequence["&AElig;"]=String.fromCharCode(198),this._htmlEscapeSequence["&Ccedil;"]=String.fromCharCode(199),this._htmlEscapeSequence["&Egrave;"]=String.fromCharCode(200),this._htmlEscapeSequence["&Eacute;"]=String.fromCharCode(201),this._htmlEscapeSequence["&Ecirc;"]=String.fromCharCode(202),this._htmlEscapeSequence["&Euml;"]=String.fromCharCode(203),this._htmlEscapeSequence["&Igrave;"]=String.fromCharCode(204),this._htmlEscapeSequence["&Iacute;"]=String.fromCharCode(205),this._htmlEscapeSequence["&Icirc;"]=String.fromCharCode(206),this._htmlEscapeSequence["&Iuml;"]=String.fromCharCode(207),this._htmlEscapeSequence["&ETH;"]=String.fromCharCode(208),this._htmlEscapeSequence["&Ntilde;"]=String.fromCharCode(209),this._htmlEscapeSequence["&Ograve;"]=String.fromCharCode(210),this._htmlEscapeSequence["&Oacute;"]=String.fromCharCode(211),this._htmlEscapeSequence["&Ocirc;"]=String.fromCharCode(212),this._htmlEscapeSequence["&Otilde;"]=String.fromCharCode(213),this._htmlEscapeSequence["&Ouml;"]=String.fromCharCode(214),this._htmlEscapeSequence["&times;"]=String.fromCharCode(215),this._htmlEscapeSequence["&Oslash;"]=String.fromCharCode(216),this._htmlEscapeSequence["&Ugrave;"]=String.fromCharCode(217),this._htmlEscapeSequence["&Uacute;"]=String.fromCharCode(218),this._htmlEscapeSequence["&Ucirc;"]=String.fromCharCode(219),this._htmlEscapeSequence["&Uuml;"]=String.fromCharCode(220),this._htmlEscapeSequence["&Yacute;"]=String.fromCharCode(221),this._htmlEscapeSequence["&THORN;"]=String.fromCharCode(222),this._htmlEscapeSequence["&szlig;"]=String.fromCharCode(223),this._htmlEscapeSequence["&agrave;"]=String.fromCharCode(224),this._htmlEscapeSequence["&aacute;"]=String.fromCharCode(225),this._htmlEscapeSequence["&acirc;"]=String.fromCharCode(226),this._htmlEscapeSequence["&atilde;"]=String.fromCharCode(227),this._htmlEscapeSequence["&auml;"]=String.fromCharCode(228),this._htmlEscapeSequence["&aring;"]=String.fromCharCode(229),this._htmlEscapeSequence["&aelig;"]=String.fromCharCode(230),this._htmlEscapeSequence["&ccedil;"]=String.fromCharCode(231),this._htmlEscapeSequence["&egrave;"]=String.fromCharCode(232),this._htmlEscapeSequence["&eacute;"]=String.fromCharCode(233),this._htmlEscapeSequence["&ecirc;"]=String.fromCharCode(234),this._htmlEscapeSequence["&euml;"]=String.fromCharCode(235),this._htmlEscapeSequence["&igrave;"]=String.fromCharCode(236),this._htmlEscapeSequence["&iacute;"]=String.fromCharCode(237),this._htmlEscapeSequence["&icirc;"]=String.fromCharCode(238),this._htmlEscapeSequence["&iuml;"]=String.fromCharCode(239),this._htmlEscapeSequence["&eth;"]=String.fromCharCode(240),this._htmlEscapeSequence["&ntilde;"]=String.fromCharCode(241),this._htmlEscapeSequence["&ograve;"]=String.fromCharCode(242),this._htmlEscapeSequence["&oacute;"]=String.fromCharCode(243),this._htmlEscapeSequence["&ocirc;"]=String.fromCharCode(244),this._htmlEscapeSequence["&otilde;"]=String.fromCharCode(245),this._htmlEscapeSequence["&ouml;"]=String.fromCharCode(246),this._htmlEscapeSequence["&divide;"]=String.fromCharCode(247),this._htmlEscapeSequence["&oslash;"]=String.fromCharCode(248),this._htmlEscapeSequence["&ugrave;"]=String.fromCharCode(249),this._htmlEscapeSequence["&uacute;"]=String.fromCharCode(250),this._htmlEscapeSequence["&ucirc;"]=String.fromCharCode(251),this._htmlEscapeSequence["&uuml;"]=String.fromCharCode(252),this._htmlEscapeSequence["&yacute;"]=String.fromCharCode(253),this._htmlEscapeSequence["&thorn;"]=String.fromCharCode(254),this._htmlEscapeSequence["&yuml;"]=String.fromCharCode(255),this._htmlEscapeSequence["&OElig;"]=String.fromCharCode(338),this._htmlEscapeSequence["&oelig;"]=String.fromCharCode(339),this._htmlEscapeSequence["&Scaron;"]=String.fromCharCode(352),this._htmlEscapeSequence["&scaron;"]=String.fromCharCode(353),this._htmlEscapeSequence["&Yuml;"]=String.fromCharCode(376),this._htmlEscapeSequence["&fnof;"]=String.fromCharCode(402),this._htmlEscapeSequence["&circ;"]=String.fromCharCode(710),this._htmlEscapeSequence["&tilde;"]=String.fromCharCode(732),this._htmlEscapeSequence["&Alpha;"]=String.fromCharCode(913),this._htmlEscapeSequence["&Beta;"]=String.fromCharCode(914),this._htmlEscapeSequence["&Gamma;"]=String.fromCharCode(915),this._htmlEscapeSequence["&Delta;"]=String.fromCharCode(916),this._htmlEscapeSequence["&Epsilon;"]=String.fromCharCode(917),this._htmlEscapeSequence["&Zeta;"]=String.fromCharCode(918),this._htmlEscapeSequence["&Eta;"]=String.fromCharCode(919),this._htmlEscapeSequence["&Theta;"]=String.fromCharCode(920),this._htmlEscapeSequence["&Iota;"]=String.fromCharCode(921),this._htmlEscapeSequence["&Kappa;"]=String.fromCharCode(922),this._htmlEscapeSequence["&Lambda;"]=String.fromCharCode(923),this._htmlEscapeSequence["&Mu;"]=String.fromCharCode(924),this._htmlEscapeSequence["&Nu;"]=String.fromCharCode(925),this._htmlEscapeSequence["&Xi;"]=String.fromCharCode(926),this._htmlEscapeSequence["&Omicron;"]=String.fromCharCode(927),this._htmlEscapeSequence["&Pi;"]=String.fromCharCode(928),this._htmlEscapeSequence["&Rho;"]=String.fromCharCode(929),this._htmlEscapeSequence["&Sigma;"]=String.fromCharCode(931),this._htmlEscapeSequence["&Tau;"]=String.fromCharCode(932),this._htmlEscapeSequence["&Upsilon;"]=String.fromCharCode(933),this._htmlEscapeSequence["&Phi;"]=String.fromCharCode(934),this._htmlEscapeSequence["&Chi;"]=String.fromCharCode(935),this._htmlEscapeSequence["&Psi;"]=String.fromCharCode(936),this._htmlEscapeSequence["&Omega;"]=String.fromCharCode(937),this._htmlEscapeSequence["&alpha;"]=String.fromCharCode(945),this._htmlEscapeSequence["&beta;"]=String.fromCharCode(946),this._htmlEscapeSequence["&gamma;"]=String.fromCharCode(947),this._htmlEscapeSequence["&delta;"]=String.fromCharCode(948),this._htmlEscapeSequence["&epsilon;"]=String.fromCharCode(949),this._htmlEscapeSequence["&zeta;"]=String.fromCharCode(950),this._htmlEscapeSequence["&eta;"]=String.fromCharCode(951),this._htmlEscapeSequence["&theta;"]=String.fromCharCode(952),this._htmlEscapeSequence["&iota;"]=String.fromCharCode(953),this._htmlEscapeSequence["&kappa;"]=String.fromCharCode(954),this._htmlEscapeSequence["&lambda;"]=String.fromCharCode(955),this._htmlEscapeSequence["&mu;"]=String.fromCharCode(956),this._htmlEscapeSequence["&nu;"]=String.fromCharCode(957),this._htmlEscapeSequence["&xi;"]=String.fromCharCode(958),this._htmlEscapeSequence["&omicron;"]=String.fromCharCode(959),this._htmlEscapeSequence["&pi;"]=String.fromCharCode(960),this._htmlEscapeSequence["&rho;"]=String.fromCharCode(961),this._htmlEscapeSequence["&sigmaf;"]=String.fromCharCode(962),this._htmlEscapeSequence["&sigma;"]=String.fromCharCode(963),this._htmlEscapeSequence["&tau;"]=String.fromCharCode(964),this._htmlEscapeSequence["&upsilon;"]=String.fromCharCode(965),this._htmlEscapeSequence["&phi;"]=String.fromCharCode(966),this._htmlEscapeSequence["&chi;"]=String.fromCharCode(967),this._htmlEscapeSequence["&psi;"]=String.fromCharCode(968),this._htmlEscapeSequence["&omega;"]=String.fromCharCode(969),this._htmlEscapeSequence["&thetasym;"]=String.fromCharCode(977),this._htmlEscapeSequence["&upsih;"]=String.fromCharCode(978),this._htmlEscapeSequence["&piv;"]=String.fromCharCode(982),this._htmlEscapeSequence["&ensp;"]=String.fromCharCode(8194),this._htmlEscapeSequence["&emsp;"]=String.fromCharCode(8195),this._htmlEscapeSequence["&thinsp;"]=String.fromCharCode(8201),this._htmlEscapeSequence["&zwnj;"]=String.fromCharCode(8204),this._htmlEscapeSequence["&zwj;"]=String.fromCharCode(8205),this._htmlEscapeSequence["&lrm;"]=String.fromCharCode(8206),this._htmlEscapeSequence["&rlm;"]=String.fromCharCode(8207),this._htmlEscapeSequence["&ndash;"]=String.fromCharCode(8211),this._htmlEscapeSequence["&mdash;"]=String.fromCharCode(8212),this._htmlEscapeSequence["&lsquo;"]=String.fromCharCode(8216),this._htmlEscapeSequence["&rsquo;"]=String.fromCharCode(8217),this._htmlEscapeSequence["&sbquo;"]=String.fromCharCode(8218),this._htmlEscapeSequence["&ldquo;"]=String.fromCharCode(8220),this._htmlEscapeSequence["&rdquo;"]=String.fromCharCode(8221),this._htmlEscapeSequence["&bdquo;"]=String.fromCharCode(8222),this._htmlEscapeSequence["&dagger;"]=String.fromCharCode(8224),this._htmlEscapeSequence["&Dagger;"]=String.fromCharCode(8225),this._htmlEscapeSequence["&bull;"]=String.fromCharCode(8226),this._htmlEscapeSequence["&hellip;"]=String.fromCharCode(8230),this._htmlEscapeSequence["&permil;"]=String.fromCharCode(8240),this._htmlEscapeSequence["&prime;"]=String.fromCharCode(8242),this._htmlEscapeSequence["&Prime;"]=String.fromCharCode(8243),this._htmlEscapeSequence["&lsaquo;"]=String.fromCharCode(8249),this._htmlEscapeSequence["&rsaquo;"]=String.fromCharCode(8250),this._htmlEscapeSequence["&oline;"]=String.fromCharCode(8254),this._htmlEscapeSequence["&frasl;"]=String.fromCharCode(8260),this._htmlEscapeSequence["&euro;"]=String.fromCharCode(8364),this._htmlEscapeSequence["&image;"]=String.fromCharCode(8365),this._htmlEscapeSequence["&weierp;"]=String.fromCharCode(8472),this._htmlEscapeSequence["&real;"]=String.fromCharCode(8476),this._htmlEscapeSequence["&trade;"]=String.fromCharCode(8482),this._htmlEscapeSequence["&alefsym;"]=String.fromCharCode(8501),this._htmlEscapeSequence["&larr;"]=String.fromCharCode(8592),this._htmlEscapeSequence["&uarr;"]=String.fromCharCode(8593),this._htmlEscapeSequence["&rarr;"]=String.fromCharCode(8594),this._htmlEscapeSequence["&darr;"]=String.fromCharCode(8595),this._htmlEscapeSequence["&harr;"]=String.fromCharCode(8596),this._htmlEscapeSequence["&crarr;"]=String.fromCharCode(8629),this._htmlEscapeSequence["&lArr;"]=String.fromCharCode(8656);this._htmlEscapeSequence["&uArr;"]=String.fromCharCode(8657),this._htmlEscapeSequence["&rArr;"]=String.fromCharCode(8658),this._htmlEscapeSequence["&dArr;"]=String.fromCharCode(8659),this._htmlEscapeSequence["&hArr;"]=String.fromCharCode(8660),this._htmlEscapeSequence["&forall;"]=String.fromCharCode(8704),this._htmlEscapeSequence["&part;"]=String.fromCharCode(8706),this._htmlEscapeSequence["&exist;"]=String.fromCharCode(8707),this._htmlEscapeSequence["&empty;"]=String.fromCharCode(8709),this._htmlEscapeSequence["&nabla;"]=String.fromCharCode(8711),this._htmlEscapeSequence["&isin;"]=String.fromCharCode(8712),this._htmlEscapeSequence["&notin;"]=String.fromCharCode(8713),this._htmlEscapeSequence["&ni;"]=String.fromCharCode(8715),this._htmlEscapeSequence["&prod;"]=String.fromCharCode(8719),this._htmlEscapeSequence["&sum;"]=String.fromCharCode(8721),this._htmlEscapeSequence["&minus;"]=String.fromCharCode(8722),this._htmlEscapeSequence["&lowast;"]=String.fromCharCode(8727),this._htmlEscapeSequence["&radic;"]=String.fromCharCode(8730),this._htmlEscapeSequence["&prop;"]=String.fromCharCode(8733),this._htmlEscapeSequence["&infin;"]=String.fromCharCode(8734),this._htmlEscapeSequence["&ang;"]=String.fromCharCode(8736),this._htmlEscapeSequence["&and;"]=String.fromCharCode(8743),this._htmlEscapeSequence["&or;"]=String.fromCharCode(8744),this._htmlEscapeSequence["&cap;"]=String.fromCharCode(8745),this._htmlEscapeSequence["&cup;"]=String.fromCharCode(8746),this._htmlEscapeSequence["&int;"]=String.fromCharCode(8747),this._htmlEscapeSequence["&there4;"]=String.fromCharCode(8756),this._htmlEscapeSequence["&sim;"]=String.fromCharCode(8764),this._htmlEscapeSequence["&cong;"]=String.fromCharCode(8773),this._htmlEscapeSequence["&asymp;"]=String.fromCharCode(8776),this._htmlEscapeSequence["&ne;"]=String.fromCharCode(8800),this._htmlEscapeSequence["&equiv;"]=String.fromCharCode(8801),this._htmlEscapeSequence["&le;"]=String.fromCharCode(8804),this._htmlEscapeSequence["&ge;"]=String.fromCharCode(8805),this._htmlEscapeSequence["&sub;"]=String.fromCharCode(8834),this._htmlEscapeSequence["&sup;"]=String.fromCharCode(8835),this._htmlEscapeSequence["&nsub;"]=String.fromCharCode(8836),this._htmlEscapeSequence["&sube;"]=String.fromCharCode(8838),this._htmlEscapeSequence["&supe;"]=String.fromCharCode(8839),this._htmlEscapeSequence["&oplus;"]=String.fromCharCode(8853),this._htmlEscapeSequence["&otimes;"]=String.fromCharCode(8855),this._htmlEscapeSequence["&perp;"]=String.fromCharCode(8869),this._htmlEscapeSequence["&sdot;"]=String.fromCharCode(8901),this._htmlEscapeSequence["&lceil;"]=String.fromCharCode(8968),this._htmlEscapeSequence["&rceil;"]=String.fromCharCode(8969),this._htmlEscapeSequence["&lfloor;"]=String.fromCharCode(8970),this._htmlEscapeSequence["&rfloor;"]=String.fromCharCode(8971),this._htmlEscapeSequence["&lang;"]=String.fromCharCode(9001),this._htmlEscapeSequence["&rang;"]=String.fromCharCode(9002),this._htmlEscapeSequence["&loz;"]=String.fromCharCode(9674),this._htmlEscapeSequence["&spades;"]=String.fromCharCode(9824),this._htmlEscapeSequence["&clubs;"]=String.fromCharCode(9827),this._htmlEscapeSequence["&hearts;"]=String.fromCharCode(9829),this._htmlEscapeSequence["&diams;"]=String.fromCharCode(9830)}return this._htmlEscapeSequence},enumerable:!0,configurable:!0}),m.parseHtmlToStates=function(e,t,o){void 0===o&&(o=!1);var i=new Array,n=t.clone(),l=new Array,u=0,c=!1;null==e&&(e="");while(u<e.length)if("<"!=e.charAt(u)){var d=e.charAt(u);a.isWhitespace(d,0,!1)?c||(n.text.append(" "),c=!0):a.getUnicodeCategory(d)!=s.OtherNotAssigned&&(n.text.append(d),c=!1),u++}else{n.text.length>0&&(i.add(n),n=new g(n),n.posBegin=u,n.ts.tag==h.ListItem&&(n.ts.tag=h.None));while(u<e.length&&"<"==e[u]){u++;var m=u;while(m<e.length&&">"!=e.charAt(m))m++;var p=e.substr(u,m-u),f=p.trim().toLower();if(u=m,u++,"/p"==f){if(n.text.append("\n"),i.add(n),n=new g(n),n.posBegin=u,c=!0,n.ts.tag=h.PClose,u<e.length&&!String.isNullOrWhiteSpace(e.substr(u))){n.text.append("\n");var y=n.ts.lineHeight;n.ts.lineHeight=.8,i.add(n),n=new g(n),n.posBegin=u,n.ts.lineHeight=y,n.ts.tag=h.None}n.ts.indent>0&&n.text.append(this.getIndentString(n.ts.indent))}else if("p"==f){var C=i.count>0&&i[i.count-1].ts.tag==h.PClose;if(!C){(i.count>1||1==i.count&&0!=i[0].text.toString().trim().length)&&(n.text.append("\n"),i.add(n),n=new g(n)),n.posBegin=u,c=!0,n.text.append("\n");var y=n.ts.lineHeight;n.ts.lineHeight=.8,i.add(n),n=new g(n),n.ts.lineHeight=y,n.posBegin=u,n.ts.indent>0&&n.text.append(this.getIndentString(n.ts.indent))}}else if("br"==f||"br/"==f||"br /"==f)c=!0,n.text.append("\n"),i.add(n),n=new g(n),n.posBegin=u,n.ts.indent>0&&n.text.append(this.getIndentString(n.ts.indent));else if("li"==f){var b=i.count>0&&i[i.count-1].ts.tag==h.ListItem;b||(c=!0,n.text.append("\n"),n.ts.tag=h.ListItem,i.add(n),n=new g(n),n.ts.tag=h.ListItem,n.posBegin=u,n.text.append(this.getIndentString(n.ts.indent)),i.add(n),n=new g(n),n.ts.tag=h.None,n.posBegin=u),0==n.ts.indent&&n.ts.indent++,null==n.listLevels&&(n.listLevels=new Array);while(n.ts.indent>n.listLevels.count)n.listLevels.add(0);var v=i[i.count-1];this.insertMarker(v.text,n.listLevels[n.ts.indent-1],n.ts.indent),n.listLevels[n.ts.indent-1]>0&&(Array.copy(n.listLevels,0,n.listLevels,n.listLevels.length),n.listLevels[n.ts.indent-1]++),i[i.count-1]=v}else if("/li"==f){var b=i.count>0&&i[i.count-1].ts.tag==h.ListItem;b||(c=!0,n.text.append("\n"),n.ts.tag=h.ListItem,i.add(n),n=new g(n),n.ts.tag=h.ListItem,n.posBegin=u,n.text.append(this.getIndentString(n.ts.indent)),i.add(n),n=new g(n),n.ts.tag=h.None,n.posBegin=u)}else if("ul"==f){var b=i.count>0&&i[i.count-1].ts.tag==h.ListItem;if(b){n.ts.indent++;var v=i[i.count-1];v.text.append(this.getIndentString(1)),v.ts.indent++,i[i.count-1]=v}else c=!0,n.text.append("\n"),n.ts.tag=h.ListItem,i.add(n),n=new g(n),n.ts.tag=h.ListItem,n.posBegin=u,n.text.append(this.getIndentString(n.ts.indent+1)),n.ts.indent++,i.add(n),n=new g(n),n.ts.tag=h.None,n.posBegin=u;null==n.listLevels&&(n.listLevels=new Array);while(n.listLevels.count<n.ts.indent)n.listLevels.add(0);n.listLevels[n.ts.indent-1]=1-n.ts.indent}else if("/ul"==f){var b=i.count>0&&i[i.count-1].ts.tag==h.ListItem;if(b){n.ts.indent>0&&n.ts.indent--;var v=i[i.count-1];v.ts.indent>0&&v.ts.indent--,v.text=new r(this.getIndentString(v.ts.indent)),0==n.ts.indent&&(n.listLevels=null,v.listLevels=null),i[i.count-1]=v}else c=!0,n.text.append("\n"),n.ts.tag=h.ListItem,i.add(n),n=new g(n),n.ts.tag=h.ListItem,n.posBegin=u,n.ts.indent>0&&n.ts.indent--,n.text.append(this.getIndentString(n.ts.indent)),0==n.ts.indent&&(n.listLevels=null),i.add(n),n=new g(n),n.ts.tag=h.None,n.posBegin=u}else if("ol"==f){var b=i.count>0&&i[i.count-1].ts.tag==h.ListItem;if(b){n.ts.indent++;var v=i[i.count-1];v.text.append(this.getIndentString(1)),v.ts.indent++,i[i.count-1]=v}else c=!0,n.text.append("\n"),n.ts.tag=h.ListItem,i.add(n),n=new g(n),n.ts.tag=h.ListItem,n.posBegin=u,n.text.append(this.getIndentString(n.ts.indent+1)),n.ts.indent++,i.add(n),n=new g(n),n.ts.tag=h.None,n.posBegin=u;null==n.listLevels&&(n.listLevels=new Array);while(n.listLevels.count<n.ts.indent)n.listLevels.add(1);n.listLevels[n.ts.indent-1]=1;var T=i[i.count-1];T.listLevels=n.listLevels,i[i.count-1]=T}else if("/ol"==f){var b=i.count>0&&i[i.count-1].ts.tag==h.ListItem;if(b){n.ts.indent>0&&n.ts.indent--;var v=i[i.count-1];v.ts.indent>0&&v.ts.indent--,v.text=new r(this.getIndentString(v.ts.indent)),0==n.ts.indent&&(n.listLevels=null,v.listLevels=null),i[i.count-1]=v}else c=!0,n.text.append("\n"),n.ts.tag=h.ListItem,i.add(n),n=new g(n),n.ts.tag=h.ListItem,n.posBegin=u,n.ts.indent>0&&n.ts.indent--,n.text.append(this.getIndentString(n.ts.indent)),0==n.ts.indent&&(n.listLevels=null),i.add(n),n=new g(n),n.ts.tag=h.None,n.posBegin=u}else n=this.parseHtmlTag(p,n,l,t),o&&(n.tagsStack=new Array,l.forEach(function(e){n.tagsStack.add(new S(e))}))}}return n.text.length>0&&i.add(n),0==i.count&&i.add(n),i},m.prepareStateText=function(e){var t=new r,o=0,i=e.length;while(o<i){var n=!1;if("&"==e.charAt(o)&&o+3<i){var s=o+1,l=new r;if("#"==e.charAt(s))if(s++,"x"==e.charAt(s)){s++;while(s<i&&a.isLetterOrDigit(e.charAt(s)))l.append(e.charAt(s)),s++;l.length>0&&s<i&&";"==e.charAt(s)&&(s++,t.append(String.fromCharCode(parseInt(l.toString(),16))),o=s,n=!0)}else{while(s<i&&a.isDigit(e.charAt(s)))l.append(e.charAt(s)),s++;l.length>0&&s<i&&";"==e.charAt(s)&&(s++,t.append(String.fromCharCode(parseInt(l.toString()))),o=s,n=!0)}else{while(s<i&&a.isLetterOrDigit(e.charAt(s)))l.append(e.charAt(s)),s++;if(l.length>0&&s<i&&";"==e.charAt(s)){var u=this.htmlEscapeSequence["&"+l+";"];null!=u&&(s++,t.append(u),o=s,n=!0)}}}n||(t.append(e.charAt(o)),o++)}var c=t.toString().replaceAll("&nbsp;"," ").replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&amp;","&");return new r(c)},m.getIndentString=function(e){for(var t=new r,o=0;o<e;o++)t.append("          ");return t.toString()},m.insertMarker=function(e,t,o){var r=this.bulletBlack;if(t>0)r=t.toString()+".";else{1==(0-t)%2&&(r=this.bulletWhite)}var i=t>0?2:3;if(e.length>3)if(r.length>=e.length-i){var n=r+e.toString().substr(e.length-i);e.clear(),e.append(n)}else for(var a=e.length-i-r.length,s=0;s<r.length;s++)e.setByIndex(a+s,r[s])},m.parseHtmlTag=function(o,r,i,n){var a=new Array,s=0;while(s<o.length&&" "==o.charAt(s))s++;while(s<o.length){var c=s,d=new u;while(c<o.length&&" "!=o[c]&&"="!=o[c])c++;d.key=o.substr(s,c-s).toLower(),s=c;while(s<o.length&&" "==o[s])s++;if(s<o.length&&"="==o[s]){s++;while(s<o.length&&" "==o[s])s++;if(s<o.length)if('"'==o[s]){s++,c=s;while(c<o.length&&'"'!=o[c])c++;d.value=o.substr(s,c-s),s=c,s++}else{c=s;while(c<o.length&&" "!=o[c])c++;d.value=o.substr(s,c-s),s=c}}while(s<o.length&&" "==o[s])s++;a.add(d)}var m=l.currentCulture.numberFormat.numberDecimalSeparator,p=h.None,g=!1;if(a.count>0){var f=new S(r.ts),y=a[0];switch(y.key){case"b":case"strong":r.ts.bold=!0,p=h.B;break;case"/b":case"/strong":r.ts.bold=!1,p=h.B,g=!0;break;case"i":case"em":r.ts.italic=!0,p=h.I;break;case"/i":case"/em":r.ts.italic=!1,p=h.I,g=!0;break;case"u":r.ts.underline=!0,p=h.U;break;case"/u":r.ts.underline=!1,p=h.U,g=!0;break;case"s":case"strike":r.ts.strikeout=!0,p=h.S;break;case"/s":case"/strike":r.ts.strikeout=!1,p=h.S,g=!0;break;case"sup":r.ts.superscript=!0,r.ts.subsript=!1,p=h.Sup;break;case"/sup":r.ts.superscript=!1,p=h.Sup,g=!0;break;case"sub":r.ts.subsript=!0,r.ts.superscript=!1,p=h.Sub;break;case"/sub":r.ts.subsript=!1,p=h.Sub,g=!0;break;case"letter-spacing":var C=0;"normal"!=y.value&&NaN==(C=parseFloat(y.value.toString().replaceAll(",",".")))&&(C=0),r.ts.letterSpacing=C,p=h.LetterSpacing;break;case"/letter-spacing":p=h.LetterSpacing,g=!0;break;case"word-spacing":var b=0;"normal"!=y.value&&NaN==(b=parseFloat(y.value.toString().replaceAll(",",".")))&&(b=0),r.ts.wordSpacing=b,p=h.WordSpacing;break;case"/word-spacing":p=h.WordSpacing,g=!0;break;case"line-height":var v=1;"normal"!=y.value&&NaN==(v=parseFloat(y.value.toString().replaceAll(",",".")))&&(v=0),v<=0&&(v=1),r.ts.lineHeight=v,p=h.LineHeight;break;case"/line-height":p=h.LineHeight,g=!0;break;case"text-align":try{var T=y.value.toString().toLower();"left"==T&&(r.ts.textAlign=t.StiTextHorAlignment.Left),"right"==T&&(r.ts.textAlign=t.StiTextHorAlignment.Right),"center"==T&&(r.ts.textAlign=t.StiTextHorAlignment.Center),"justify"==T&&(r.ts.textAlign=t.StiTextHorAlignment.Width)}catch(t){e.System.StiError.showError(t,!1)}p=h.TextAlign;break;case"/text-align":p=h.TextAlign,g=!0;break;case"font":if(a.count>1)for(var w=1;w<a.count;w++){var D=a[w];switch(D.key){case"color":try{r.ts.fontColor=this.parseColor(D.value.toString()),r.ts.isColorChanged=!0}catch(t){e.System.StiError.showError(t,!1)}break;case"face":case"family":case"name":try{r.ts.fontName=D.value.toString()}catch(t){e.System.StiError.showError(t,!1)}break;case"size":var P=this.parseFontSize(D.value.toString(),m);r.ts.fontSize=P;break;case"style":r.ts.htmlStyle=D.value.toString();break}}p=h.Font;break;case"/font":p=h.Font,g=!0;break;case"font-face":case"font-family":case"font-name":try{r.ts.fontName=y.value.toString()}catch(t){e.System.StiError.showError(t,!1)}p=h.FontName;break;case"/font-face":case"/font-family":case"/font-name":p=h.FontName,g=!0;break;case"font-size":var B=this.parseFontSize(y.value.toString(),m);r.ts.fontSize=B,p=h.FontSize;break;case"/font-size":p=h.FontSize,g=!0;break;case"color":case"font-color":try{r.ts.fontColor=this.parseColor(y.value.toString()),r.ts.isColorChanged=!0}catch(t){e.System.StiError.showError(t,!1)}p=h.FontColor;break;case"/color":case"/font-color":p=h.FontColor,g=!0;break;case"background-color":try{r.ts.backColor=this.parseColor(y.value.toString()),r.ts.isBackcolorChanged=!0}catch(t){e.System.StiError.showError(t,!1)}p=h.Backcolor;break;case"/background-color":p=h.Backcolor,g=!0;break;case"stihtml":i.clear();try{a.count>1&&null!=a[1].key&&i.addRange(this.stringToStack(a[1].key.toString(),n.ts))}catch(t){e.System.StiError.showError(t,!1)}break;case"stihtml2":try{if(a.count>2&&null!=a[2].key){r.listLevels=this.stringToListLevels(a[2].key.toString()),null!=r.listLevels&&(r.ts.indent=r.listLevels.count);var A=parseInt(a[1].key.ToString());A>0&&(r.ts.indent=-A)}}catch(t){e.System.StiError.showError(t,!1)}break}if(g){if(i.count>0)for(var F=i.count-1;F>=0;F--){var R=i[F];if(R.tag==p){r.ts=R,i.removeRange(F,i.count-F);break}}}else p!=h.None&&(f.tag=p,i.add(f));if(!g&&a.count>1)for(var w=1;w<a.count;w++){var D=a[w];"style"==D.key&&this.parseStyleAttribute(D.value.toString(),r)}}return r},m.parseStyleAttribute=function(o,r){if(!o||""==o)return;var i=l.currentCulture.numberFormat.numberDecimalSeparator;o.split(";").forEach(function(o){var i=o.split(":"),n=i.length>1,a=i[0].trim(),s=n?i[1].trim():null;switch(a){case"color":try{r.ts.fontColor=m.parseColor(s),r.ts.isColorChanged=!0}catch(t){e.System.StiError.showError(t,!1)}break;case"background-color":try{r.ts.backColor=m.parseColor(s),r.ts.isBackcolorChanged=!0}catch(t){e.System.StiError.showError(t,!1)}break;case"text-decoration":"underline"==s&&(r.ts.underline=!0),"line-through"==s&&(r.ts.strikeout=!0),"none"==s&&(r.ts.underline=!1,r.ts.strikeout=!1);break;case"font-weight":r.ts.bold="bold"==s||"bolder"==s||"600"==s||"700"==s||"800"==s||"900"==s;break;case"font-style":"normal"==s&&(r.ts.italic=!1),"italic"!=s&&"oblique"!=s||(r.ts.italic=!0);break;case"vertical-align":"baseline"==s&&(r.ts.subsript=!1,r.ts.superscript=!1),"sub"==s&&(r.ts.subsript=!0,r.ts.superscript=!1),"super"==s&&(r.ts.subsript=!1,r.ts.superscript=!0);break;case"letter-spacing":var l=0;"normal"!=s&&NaN==(l=parseFloat(s.replaceAll(",",".")))&&(l=0),r.ts.letterSpacing=l;break;case"word-spacing":var u=0;"normal"!=s&&NaN==(u=parseFloat(s.replaceAll(",",".")))&&(l=0),r.ts.wordSpacing=u;break;case"line-height":var c=1;"normal"!=s&&NaN==(c=parseFloat(s.replaceAll(",",".")))&&(l=1),c<=0&&(c=1),r.ts.lineHeight=c;break;case"text-align":var d=s.toLower();"left"==d&&(r.ts.textAlign=t.StiTextHorAlignment.Left),"right"==d&&(r.ts.textAlign=t.StiTextHorAlignment.Right),"center"==d&&(r.ts.textAlign=t.StiTextHorAlignment.Center),"justify"==d&&(r.ts.textAlign=t.StiTextHorAlignment.Width);break}})},m.stringToListLevels=function(t){var o=new Array;try{t.split(";").forEach(function(e){o.add(parseInt(e))})}catch(t){e.System.StiError.showError(t,!1)}return o},m.stringToStack=function(t,r){var i=new S(r),n=new Array;try{t.split(";").forEach(function(e){var t=new S(i);e.split(":").forEach(function(e){var r=e.substring(2);switch(e.substring(0,2)){case"bc":t.backColor=o.fromArgb(parseInt(r.substr(0,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(4,2),16),parseInt(r.substr(6,2),16)),t.isBackcolorChanged=!0;break;case"bd":t.bold=!0;break;case"fc":t.fontColor=o.fromArgb(parseInt(r.substr(0,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(4,2),16),parseInt(r.substr(6,2),16)),t.isColorChanged=!0;break;case"fn":t.fontName=r;break;case"fs":t.fontSize=parseFloat(r);break;case"it":t.italic=!0;break;case"ls":t.letterSpacing=parseInt(r);break;case"lh":t.lineHeight=parseInt(r);break;case"st":t.strikeout=!0;break;case"sb":t.subsript=!0;break;case"sp":t.superscript=!0;break;case"tg":t.tag=parseInt(r);break;case"ta":t.textAlign=parseInt(r);break;case"un":t.underline=!0;break;case"ws":t.wordSpacing=parseFloat(r);break}}),n.add(t),i=t})}catch(t){e.System.StiError.showError(t,!1)}return n},m.parseFontSize=function(e,t){var o=parseFloat(e.replaceAll(",",".").replaceAll(".",t));if(NaN==o&&(o=8),o<.5&&(o=.5),this.interpreteFontSizeInHtmlTagsAsInHtml)switch(Math.round(o)){case 1:o=7;break;case 2:o=10;break;case 3:o=12;break;case 4:o=14;break;case 5:o=16;break;case 6:o=22;break;case 7:o=36;break}return o},m.parseColor=function(e){var t=o.transparent;if(e.length>1)if("#"==e[0]){for(var i=e.substring(1).toLower(),n=new r,a=0;a<i.length;a++){var s=i.charAt(a);"0"!=s&&"1"!=s&&"2"!=s&&"3"!=s&&"4"!=s&&"5"!=s&&"6"!=s&&"7"!=s&&"8"!=s&&"9"!=s&&"a"!=s&&"b"!=s&&"c"!=s&&"d"!=s&&"e"!=s&&"f"!=s||n.append(s)}if(i=n.toString(),3==i.length&&(i=String.stiFormat("{0}{0}{1}{1}{2}{2}",i[0],i[1],i[2])),6==i.length){var l=d.toInt32(i,16);t=o.fromArgb(255,l>>16&255,l>>8&255,255&l)}}else if(e.startsWith("rgb")){var u=e.trim().substr(4,e.length-5).split(",");if(3==u.length){var m=Number[3];u[0].endsWith("%")?m[0]=Math.round(2.55*d.toInt32(u[0].substr(0,u[0].length-1))):m[0]=d.toInt32(u[0]),u[1].endsWith("%")?m[1]=Math.round(2.55*d.toInt32(u[1].substr(0,u[1].length-1))):m[1]=d.toInt32(u[1]),u[2].endsWith("%")?m[2]=Math.round(2.55*d.toInt32(u[2].substr(0,u[2].length-1))):m[2]=d.toInt32(u[2]),t=o.fromArgb(255,m[0],m[1],m[2])}}else{if(null==this.htmlNameToColor){var p=[["AliceBlue","#F0F8FF"],["AntiqueWhite","#FAEBD7"],["Aqua","#00FFFF"],["Aquamarine","#7FFFD4"],["Azure","#F0FFFF"],["Beige","#F5F5DC"],["Bisque","#FFE4C4"],["Black","#000000"],["BlanchedAlmond","#FFEBCD"],["Blue","#0000FF"],["BlueViolet","#8A2BE2"],["Brown","#A52A2A"],["BurlyWood","#DEB887"],["CadetBlue","#5F9EA0"],["Chartreuse","#7FFF00"],["Chocolate","#D2691E"],["Coral","#FF7F50"],["CornflowerBlue","#6495ED"],["Cornsilk","#FFF8DC"],["Crimson","#DC143C"],["Cyan","#00FFFF"],["DarkBlue","#00008B"],["DarkCyan","#008B8B"],["DarkGoldenRod","#B8860B"],["DarkGray","#A9A9A9"],["DarkGrey","#A9A9A9"],["DarkGreen","#006400"],["DarkKhaki","#BDB76B"],["DarkMagenta","#8B008B"],["DarkOliveGreen","#556B2F"],["Darkorange","#FF8C00"],["DarkOrchid","#9932CC"],["DarkRed","#8B0000"],["DarkSalmon","#E9967A"],["DarkSeaGreen","#8FBC8F"],["DarkSlateBlue","#483D8B"],["DarkSlateGray","#2F4F4F"],["DarkSlateGrey","#2F4F4F"],["DarkTurquoise","#00CED1"],["DarkViolet","#9400D3"],["DeepPink","#FF1493"],["DeepSkyBlue","#00BFFF"],["DimGray","#696969"],["DimGrey","#696969"],["DodgerBlue","#1E90FF"],["FireBrick","#B22222"],["FloralWhite","#FFFAF0"],["ForestGreen","#228B22"],["Fuchsia","#FF00FF"],["Gainsboro","#DCDCDC"],["GhostWhite","#F8F8FF"],["Gold","#FFD700"],["GoldenRod","#DAA520"],["Gray","#808080"],["Grey","#808080"],["Green","#008000"],["GreenYellow","#ADFF2F"],["HoneyDew","#F0FFF0"],["HotPink","#FF69B4"],["IndianRed","#CD5C5C"],["Indigo","#4B0082"],["Ivory","#FFFFF0"],["Khaki","#F0E68C"],["Lavender","#E6E6FA"],["LavenderBlush","#FFF0F5"],["LawnGreen","#7CFC00"],["LemonChiffon","#FFFACD"],["LightBlue","#ADD8E6"],["LightCoral","#F08080"],["LightCyan","#E0FFFF"],["LightGoldenRodYellow","#FAFAD2"],["LightGray","#D3D3D3"],["LightGrey","#D3D3D3"],["LightGreen","#90EE90"],["LightPink","#FFB6C1"],["LightSalmon","#FFA07A"],["LightSeaGreen","#20B2AA"],["LightSkyBlue","#87CEFA"],["LightSlateGray","#778899"],["LightSlateGrey","#778899"],["LightSteelBlue","#B0C4DE"],["LightYellow","#FFFFE0"],["Lime","#00FF00"],["LimeGreen","#32CD32"],["Linen","#FAF0E6"],["Magenta","#FF00FF"],["Maroon","#800000"],["MediumAquaMarine","#66CDAA"],["MediumBlue","#0000CD"],["MediumOrchid","#BA55D3"],["MediumPurple","#9370D8"],["MediumSeaGreen","#3CB371"],["MediumSlateBlue","#7B68EE"],["MediumSpringGreen","#00FA9A"],["MediumTurquoise","#48D1CC"],["MediumVioletRed","#C71585"],["MidnightBlue","#191970"],["MintCream","#F5FFFA"],["MistyRose","#FFE4E1"],["Moccasin","#FFE4B5"],["NavajoWhite","#FFDEAD"],["Navy","#000080"],["OldLace","#FDF5E6"],["Olive","#808000"],["OliveDrab","#6B8E23"],["Orange","#FFA500"],["OrangeRed","#FF4500"],["Orchid","#DA70D6"],["PaleGoldenRod","#EEE8AA"],["PaleGreen","#98FB98"],["PaleTurquoise","#AFEEEE"],["PaleVioletRed","#D87093"],["PapayaWhip","#FFEFD5"],["PeachPuff","#FFDAB9"],["Peru","#CD853F"],["Pink","#FFC0CB"],["Plum","#DDA0DD"],["PowderBlue","#B0E0E6"],["Purple","#800080"],["Red","#FF0000"],["RosyBrown","#BC8F8F"],["RoyalBlue","#4169E1"],["SaddleBrown","#8B4513"],["Salmon","#FA8072"],["SandyBrown","#F4A460"],["SeaGreen","#2E8B57"],["SeaShell","#FFF5EE"],["Sienna","#A0522D"],["Silver","#C0C0C0"],["SkyBlue","#87CEEB"],["SlateBlue","#6A5ACD"],["SlateGray","#708090"],["SlateGrey","#708090"],["Snow","#FFFAFA"],["SpringGreen","#00FF7F"],["SteelBlue","#4682B4"],["Tan","#D2B48C"],["Teal","#008080"],["Thistle","#D8BFD8"],["Tomato","#FF6347"],["Turquoise","#40E0D0"],["Violet","#EE82EE"],["Wheat","#F5DEB3"],["White","#FFFFFF"],["WhiteSmoke","#F5F5F5"],["Yellow","#FFFF00"],["YellowGreen","#9ACD32"]];this.htmlNameToColor=new c;for(var h=0;h<p.length;h++){var S=p[h][0].toLower(),l=d.toInt32(p[h][1].substr(1),16),g=o.fromArgb(255,l>>16&255,l>>8&255,255&l);this.htmlNameToColor.set(S,g)}}var i=e.toLower();this.htmlNameToColor.containsKey(i)&&(t=this.htmlNameToColor.get(i))}return t},m.measureString=function(e,t,o){var r=i.measureString(o,t,e);return new n(r.width,r.height)},m.getTextLinesAndWidths=function(o,r,n,a,s,l,u,c,d,m,p,h,S){if(d%180!=0&&d%90==0){var g=a.clone();a.width=g.height,a.height=g.width}var f=r.ref;null==f&&(f=""),f=f.replace(/\r\n/gi,"\n"),f=f.replace(/\r/gi,"\n");var y=f.split(new RegExp("\n")),C=h.ref,b=S.ref,v=[];if(l)for(var T=0;T<y.length;T++)for(var w=e.System.Text.TextUtils.getWordWrapTextLines(y[T],n,!1,a.width),D=0;D<w.length;D++)v.add(w[D]);else v=y;for(var P=0,B=v;P<B.length;P++){var A=B[P],F=i.measureString(A,n,null,!0,1,0);C.add(A),b.add({begin:0,length:A.length,needWidthAlign:!1,width:F.width,justifyOffset:0,text:null,indexOfMaxFont:0,lineHeight:F.height,textAlignment:t.StiTextHorAlignment.Left,indent:0,end:A.length})}return r.ref=f,h.ref=C,S.ref=b,[f]},m.drawTextBase=function(e,t,o,r,i,n,a,s,l,u,c,d,m,p,h,S,g,f,y,C,b,v){return""},m.htmlNameToColor=null,m.interpreteFontSizeInHtmlTagsAsInHtml=!1,m._htmlEscapeSequence=null,m.bulletBlack="•",m.bulletWhite="◦",m.StiForceWidthAlignTag="<forcewidth>",m}();t.StiTextRenderer=m;var p=function(){function e(){}return Object.defineProperty(e.prototype,"end",{get:function(){return this.begin+this.length},set:function(e){this.length=e-this.begin},enumerable:!0,configurable:!0}),e}();t.LineInfo=p;var h;!function(e){e[e.None=0]="None",e[e.B=1]="B",e[e.I=2]="I",e[e.U=3]="U",e[e.S=4]="S",e[e.Sup=5]="Sup",e[e.Sub=6]="Sub",e[e.Font=7]="Font",e[e.FontName=8]="FontName",e[e.FontSize=9]="FontSize",e[e.FontColor=10]="FontColor",e[e.Backcolor=11]="Backcolor",e[e.LetterSpacing=12]="LetterSpacing",e[e.WordSpacing=13]="WordSpacing",e[e.LineHeight=14]="LineHeight",e[e.TextAlign=15]="TextAlign",e[e.PClose=16]="PClose",e[e.ListItem=17]="ListItem"}(h=t.StiHtmlTag||(t.StiHtmlTag={}));var S=function(){function e(t,o,r,i,n,a,s,l,u,c,d,m,p,S){if(t.sti_is(e)){var g=t.sti_as(e);this.bold=g.bold,this.italic=g.italic,this.underline=g.underline,this.strikeout=g.strikeout,this.fontSize=g.fontSize,this.fontName=g.fontName,this.fontColor=g.fontColor,this.backColor=g.backColor,this.subsript=g.subsript,this.superscript=g.superscript,this.letterSpacing=g.letterSpacing,this.wordSpacing=g.wordSpacing,this.lineHeight=g.lineHeight,this.textAlign=g.textAlign,this.isColorChanged=g.isColorChanged,this.isBackcolorChanged=g.isBackcolorChanged,this.tag=g.tag,this.indent=g.indent,this.htmlStyle=""}else this.bold=t,this.italic=o,this.underline=r,this.strikeout=i,this.fontSize=n,this.fontName=a,this.fontColor=s,this.backColor=l,this.subsript=c,this.superscript=u,this.letterSpacing=d,this.wordSpacing=m,this.lineHeight=p,this.textAlign=S,this.isColorChanged=!1,this.isBackcolorChanged=!1,this.tag=h.None,this.indent=0,this.htmlStyle=""}return e.prototype.clone=function(){var t=new e(!0);return t.bold=this.bold,t.italic=this.italic,t.underline=this.underline,t.strikeout=this.strikeout,t.fontSize=this.fontSize,t.fontName=this.fontName,t.fontColor=this.fontColor,t.backColor=this.backColor,t.subsript=this.subsript,t.superscript=this.superscript,t.letterSpacing=this.letterSpacing,t.wordSpacing=this.wordSpacing,t.lineHeight=this.lineHeight,t.textAlign=this.textAlign,t.isColorChanged=this.isColorChanged,t.isBackcolorChanged=this.isBackcolorChanged,t.tag=this.tag,t.indent=this.indent,t.htmlStyle=this.htmlStyle,t},e}();t.StiHtmlTagsState=S;var g=function(){function e(t,o){if(t.sti_is(S))this.ts=t.sti_as(S),this.text=new r,this.fontIndex=0,this.posBegin=o,this.tagsStack=null,this.listLevels=null;else{var i=t.sti_as(e);this.ts=new S(i.ts),this.text=new r,this.fontIndex=0,this.posBegin=i.posBegin,this.tagsStack=null,this.listLevels=i.listLevels,this.ts.indent<0&&(null!=this.listLevels?this.ts.indent=this.listLevels.count:this.ts.indent=0)}}return e.prototype.clone=function(){var t=new e(this.ts);return t.ts=this.ts.clone(),t.text=new r(this.text.toString()),t.fontIndex=this.fontIndex,t.posBegin=this.posBegin,t.tagsStack=this.tagsStack,t.listLevels=this.listLevels,t},e}();t.StiHtmlState=g}(o=t.Drawing||(t.Drawing={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.OnlineTrial=100]="OnlineTrial",e[e.OnlineStandard=101]="OnlineStandard",e[e.ServerTrial=200]="ServerTrial",e[e.ServerTeam5=201]="ServerTeam5",e[e.ServerTeam10=202]="ServerTeam10",e[e.ServerTeam25=203]="ServerTeam25",e[e.ServerTeam50=204]="ServerTeam50",e[e.ServerBusiness=205]="ServerBusiness",e[e.ServerEnterprise=206]="ServerEnterprise",e[e.ServerWorldWide=207]="ServerWorldWide",e[e.Test=300]="Test"}(t=e.StiPlanIdent||(e.StiPlanIdent={}));var o;!function(e){e[e.Cycles=1]="Cycles"}(o=e.StiPlanFeatureIdent||(e.StiPlanFeatureIdent={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function t(){}return t.generateKey=function(){return e.StiGuidUtils.newGuid().toString().replaceAll("-",String.empty)},t.isKey=function(e){return!this.isEmptyKey(e)},t.isCorrectKey=function(e){if(this.isEmptyKey(e))return!0;if(32!=e.length)return!1},t.isEmptyKey=function(e){return String.isNullOrWhiteSpace(e)},t.isEmptyKey2=function(e,t){return this.isEmptyKey(e)&&this.isEmptyKey(t)},t.selectKey=function(e,t){return this.isEmptyKey(e)?t:e},t.isEqualKeys=function(e,t){if(this.isEmptyKey(e)&&this.isEmptyKey(t))return!0;return e=e.trim().toLower(),t=t.trim().toLower(),0==e.compareTo(t)},t.getOrGeneratedKey=function(e){return this.isEmptyKey(e)?this.generateKey():e},t.getOrGeneratedKey2=function(e,t){return this.getOrGeneratedKey(this.selectKey(e,t))},t}();e.StiKeyHelper=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function t(){this.key=e.StiKeyHelper.generateKey()}return t}();e.StiKeyObject=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Convert,r=function(){function e(){}return e.pack=function(e){if(null==e||0==e.length||!this.allowPacking)return e;return this.addZipSignature(t.StiGZipHelper.pack(e))},e.unpack=function(e){if(null==e||0==e.length||!this.isPacked(e))return e;try{return t.StiGZipHelper.unpack(e)}catch(t){return e}},e.packAndEncrypt=function(e,o){return t.StiEncryption.encrypt2(this.pack(e),this.encryptedId)},e.unpackAndDecrypt=function(e,o){return this.unpack(t.StiEncryption.decrypt2(e,this.encryptedId))},e.packAndEncryptToString=function(e){return e=this.pack(e),e=t.StiEncryption.encrypt2(e,this.encryptedId),null!=e?o.toBase64String(e):null},e.unpackAndDecrypt2=function(e){if(String.isNullOrWhiteSpace(e))return null;var r=o.fromBase64String(e);return r=t.StiEncryption.decrypt2(r,this.encryptedId),this.unpack(r)},e.packToString=function(e){return e=this.pack(e),null!=e?o.toBase64String(e):null},e.unpackFromString=function(e){if(String.isNullOrWhiteSpace(e))return null;var t=o.fromBase64String(e);return this.unpack(t)},e.packToBytes=function(e,t){if(void 0===t&&(t=!0),String.isNullOrEmpty(e))return null;var o;return o},e.unpackToString=function(e){if(null==e||0==e.length)return null;return e=this.unpack(e),null},e.addZipSignature=function(e){return e[e.length-3]="Z".charCodeAt(0),e[e.length-2]="I".charCodeAt(0),e[e.length-1]="P".charCodeAt(0),e},e.isPacked=function(e){return e.length>3&&this.isPacked2(e[e.length-3],e[e.length-2],e[e.length-1])},e.isPacked2=function(e,t,o){return e=="Z".charCodeAt(0)&&t=="I".charCodeAt(0)&&o=="P".charCodeAt(0)},e.encryptedId="8pTP&%#5uK889910",e.allowPacking=!0,e}();t.StiPacker=r}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.Report=0]="Report",e[e.Document=1]="Document"}(t=e.StiJsonSaveMode||(e.StiJsonSaveMode={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.Base.Drawing.StiBorderSides,r=e.Base.Drawing.StiPenStyle,i=e.Base.Drawing.StiBorderSide,n=e.System.Drawing.Drawing2D.HatchStyle,a=e.System.Text.StringBuilder,s=e.System.Enum,l=e.Base.Drawing.StiCapStyle,u=e.Base.Drawing.StiCap,c=e.Base.StiJson,d=e.Base.Drawing.StiBorder,m=e.System.Drawing.Rectangle,p=e.Base.Drawing.StiAdvancedBorder,h=e.System.Drawing.Font,S=e.System.Drawing.FontStyle,g=e.System.Drawing.GraphicsUnit,f=e.System.Drawing.Color,y=e.System.Drawing.Size,C=e.System.Drawing.Point,b=e.Base.Drawing.StiEmptyBrush,v=e.Base.Drawing.StiGlareBrush,T=e.Base.Drawing.StiGlassBrush,w=e.Base.Drawing.StiGradientBrush,D=e.Base.Drawing.StiHatchBrush,P=e.Base.Drawing.StiSolidBrush,B=function(){function e(){}return e.fontDefault=function(t){return e.font(t,"Arial",8,S.Regular,g.Point)},e.font=function(e,t,o,r,i){void 0===t&&(t="Arial"),void 0===o&&(o=8),void 0===r&&(r=S.Regular),void 0===i&&(i=g.Point);var n="",a="",l="",u="",c=0;if(e.fontFamily.name!=t&&(c++,n=e.fontFamily.name),e.size!=o&&(c++,a=e.size.toString()),e.style!=r&&(c++,l=s.getName(S,e.style)),e.unit!=i&&(c++,u=s.getName(g,e.unit)),0==c)return null;return n+";"+a+";"+l+";"+u},e.rectangleD=function(e){return e.x+","+e.y+","+e.width+","+e.height},e.sizeD=function(e){return e.width+","+e.height},e.jColor=function(e,t){if(void 0===t&&(t=null),e.stiEquals(t))return null;return e.isNamedColor?e.name.replaceAll(" ",""):255==e.a?e.r.toString()+","+e.g.toString()+","+e.b.toString():e.a.toString()+","+e.r.toString()+","+e.g.toString()+","+e.b.toString()},e.colorArray=function(t){for(var o=new c,r=0;r<t.length;r++){var i=t[r],n=e.jColor(i);o.addPropertyString(r.toString(),n)}return o},e.stringArray=function(e){if(null==e||0==e.length)return null;for(var t=new c,o=0;o<e.length;o++)t.addPropertyString(o.toString(),e[o]);return t},e.numberArray=function(e){if(null==e||0==e.length)return null;for(var t=new c,o=0;o<e.length;o++)t.addPropertyStringNullOfEmpty(o.toString(),e[o].toString());return t},e.size=function(e){var t=new c;return t.addPropertyNumber("Width",e.width),t.addPropertyNumber("Height",e.height),t},e.point=function(e){var t=new c;return t.addPropertyStringNullOfEmpty("X",e.x.toString()),t.addPropertyStringNullOfEmpty("Y",e.y.toString()),t},e.jCap=function(t){var o=new a;return 10!=t.width&&o.append(t.width),o.append(";"),10!=t.height&&o.append(t.height),o.append(";"),t.style!=l.None&&o.append(s.getName(l,t.style)),o.append(";"),o.append(e.jColor(t.color,f.black)),o.toString()},e.jBrush=function(t,o){void 0===o&&(o=null);var r=new a;if(t.sti_is(P)){var i=t;r.append("solid:"),r.append(e.jColor(i.color))}else if(t.sti_is(b))r.append("empty");else if(t.sti_is(v)){var l=t;r.append("glare:"),r.append(e.jColor(l.startColor,f.black)),r.append(":"),r.append(e.jColor(l.endColor,f.white)),r.append(":"),0!=l.angle&&r.append(l.angle),r.append(":"),.5!=l.focus&&r.append(l.focus),r.append(":"),1!=l.scale&&r.append(l.scale)}else if(t.sti_is(T)){var u=t;r.append("glass:"),r.append(e.jColor(u.color,f.silver)),r.append(":"),u.drawHatch&&r.append(u.drawHatch),r.append(":"),.2!=u.blend&&r.append(u.blend)}else if(t.sti_is(w)){var c=t;r.append("gradient:"),r.append(e.jColor(c.startColor,f.black)),r.append(":"),r.append(e.jColor(c.endColor,f.white)),r.append(":"),0!=c.angle&&r.append(c.angle)}else if(t.sti_is(D)){var d=t;r.append("hatch:"),r.append(e.jColor(d.backColor,f.black)),r.append(":"),r.append(e.jColor(d.foreColor,f.white)),r.append(":"),d.style!=n.BackwardDiagonal&&r.append(s.getName(n,d.style))}return r.toString()},e.jBorderSide=function(t){var o=e.jColor(t.color,f.black);null==o&&(o="");var i=String.empty;1!=t.size&&(i=t.size.toString());var n=String.empty;return t.style!=r.None&&(n=s.getName(r,t.style)),o+":"+i+":"+n},e.jBorder=function(t){var i=new a,n=t.sti_as(p);return null!=n?(i.append(e.jBorderSide(n.topSide)),i.append(";"),i.append(e.jBorderSide(n.bottomSide)),i.append(";"),i.append(e.jBorderSide(n.leftSide)),i.append(";"),i.append(e.jBorderSide(n.rightSide)),i.append(";"),t.dropShadow&&i.append(t.dropShadow),i.append(";"),4!=t.shadowSize&&i.append(t.shadowSize),i.append(";"),i.append(e.jBrush(t.shadowBrush,new P(f.black)))):(t.side!=o.None&&i.append(s.getName(o,t.side)),i.append(";"),t.color.stiEquals(f.black)||i.append(e.jColor(t.color)),i.append(";"),1!=t.size&&i.append(t.size),i.append(";"),t.style!=r.Solid&&i.append(s.getName(r,t.style)),i.append(";"),4!=t.shadowSize&&i.append(t.shadowSize),i.append(";"),t.dropShadow&&i.append(t.dropShadow),i.append(";"),t.topmost&&i.append(t.topmost),i.append(";"),i.append(e.jBrush(t.shadowBrush,new P(f.black)))),i.toString()},e}();t.Serialize=B;var A=function(){function e(){}return e.stringArray=function(e){for(var t=[],o=0,r=0,i=e.properties();r<i.length;r++){var n=i[r];t[o]=n.value,o++}return t},e.numberArray=function(e){for(var t=[],o=0,r=0,i=e.properties();r<i.length;r++){var n=i[r];t[o]=n.value,o++}return t},e.font=function(e,t){var o=e.split(";");if(4!=o.length)throw"Parsing Error";var r=t.fontFamily.name,i=t.size,n=t.style,a=t.unit;return String.isNullOrEmpty(o[0])||(r=o[0]),String.isNullOrEmpty(o[1])||(i=parseFloat(o[1])),String.isNullOrEmpty(o[2])||(n=s.parse(S,o[2])),String.isNullOrEmpty(o[3])||(a=s.parse(g,o[3])),new h(r,i,n,a)},e.jBorderSide=function(t){var o=t.split(":"),n=new i;return String.isNullOrEmpty(o[0])||(n.color=e.color(o[0])),String.isNullOrEmpty(o[1])||(n.size=parseFloat(o[1])),String.isNullOrEmpty(o[2])||(n.style=s.parse(r,o[2])),n},e.jCap=function(t){var o=t.split(";"),r=new u;if(4!=o.length)throw"Parsing Error";return String.isNullOrEmpty(o[0])||(r.width=parseInt(o[0])),String.isNullOrEmpty(o[1])||(r.height=parseInt(o[1])),String.isNullOrEmpty(o[2])||(r.style=s.parse(l,o[2])),String.isNullOrEmpty(o[3])||(r.color=e.color(o[3])),r},e.border=function(t){var i=t.split(";");if(7==i.length){var n=new P(f.black);return new p(e.jBorderSide(i[0]),e.jBorderSide(i[1]),e.jBorderSide(i[2]),e.jBorderSide(i[3]),!1,4,n)}var a=new d;return String.isNullOrEmpty(i[0])||(a.side=s.parse(o,i[0])),String.isNullOrEmpty(i[1])||(a.color=e.color(i[1])),String.isNullOrEmpty(i[2])||(a.size=parseFloat(i[2])),String.isNullOrEmpty(i[3])||(a.style=s.parse(r,i[3])),String.isNullOrEmpty(i[4])||(a.shadowSize=parseFloat(i[4])),String.isNullOrEmpty(i[5])||(a.dropShadow=!0),String.isNullOrEmpty(i[6])||(a.topmost=!0),String.isNullOrEmpty(i[7])||(a.shadowBrush=e.brush(i[7])),a},e.color=function(e){if(-1!=e.indexOf(",")){var t=e.split(",");if(4==t.length)return f.fromArgb(parseInt(t[0].trim()),parseInt(t[1].trim()),parseInt(t[2].trim()),parseInt(t[3].trim()));return f.fromArgb(parseInt(t[0].trim()),parseInt(t[1].trim()),parseInt(t[2].trim()))}return f.fromName(e)},e.brush=function(t){var o=t.split(":");switch(o[0]){case"empty":return new b;case"glass":var r=new T;return String.isNullOrEmpty(o[1])||(r.color=e.color(o[1])),String.isNullOrEmpty(o[2])||(r.drawHatch=!0),String.isNullOrEmpty(o[3])||(r.blend=parseFloat(o[3])),r;case"glare":var i=new v;return String.isNullOrEmpty(o[1])||(i.startColor=e.color(o[1])),String.isNullOrEmpty(o[2])||(i.endColor=e.color(o[2])),String.isNullOrEmpty(o[3])||(i.angle=parseFloat(o[3])),String.isNullOrEmpty(o[4])||(i.focus=parseFloat(o[4])),String.isNullOrEmpty(o[5])||(i.scale=parseFloat(o[5])),i;case"hatch":var a=new D;return String.isNullOrEmpty(o[1])||(a.backColor=e.color(o[1])),String.isNullOrEmpty(o[2])||(a.foreColor=e.color(o[2])),String.isNullOrEmpty(o[3])||(a.style=s.parse(n,o[3])),a;case"gradient":var l=new w;return String.isNullOrEmpty(o[1])||(l.startColor=e.color(o[1])),String.isNullOrEmpty(o[2])||(l.endColor=e.color(o[2])),String.isNullOrEmpty(o[3])||(l.angle=parseFloat(o[3])),l;case"solid":var u=new P;return String.isNullOrEmpty(o[1])||(u.color=e.color(o[1])),u}return null},e.colorArray=function(t){for(var o=[],r=0,i=0,n=t.properties();i<n.length;i++){var a=n[i],s=a.value,l=e.color(s);o[r]=l,r++}return o},e.size=function(e){for(var t=new y(0,0),o=0,r=e.properties();o<r.length;o++){var i=r[o];switch(i.name){case"Width":t.width=i.value;break;case"Height":t.height=i.value;break}}return t},e.rectangleD=function(e){var t=e.split(",");if(4!=t.length)throw"Parsing Error";return new m(parseFloat(t[0]),parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]))},e.sizeD=function(e){var t=e.split(",");if(2!=t.length)throw"Parsing Error";return new y(parseFloat(t[0]),parseFloat(t[1]))},e.point=function(e){for(var t=new C,o=0,r=e.properties();o<r.length;o++){var i=r[o];switch(i.name){case"X":t.x=i.value;break;case"Y":t.y=i.value;break}}return t},e}();t.Deserialize=A}(o=t.StiJsonReportObjectHelper||(t.StiJsonReportObjectHelper={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Data.DataSet,r=function(){function e(){}return e.getDataSet=function(e){var t=new o;return t.readJson(e),t},e}();t.StiJsonToDataSetConverter=r}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Ultimate=0]="Ultimate",e[e.Net=1]="Net",e[e.Wpf=2]="Wpf",e[e.Web=3]="Web",e[e.Silverlight=4]="Silverlight",e[e.Js=5]="Js",e[e.Java=6]="Java",e[e.Php=7]="Php",e[e.NetCore=8]="NetCore",e[e.Uwp=9]="Uwp",e[e.Flex=10]="Flex"}(t=e.StiProductIdent||(e.StiProductIdent={}));var o;!function(e){e[e.Server=1]="Server",e[e.Developer=2]="Developer"}(o=e.StiActivationType||(e.StiActivationType={}))}(t=e.Licenses||(e.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=function(){function t(){}return t.decrypt=function(t,o){return e.System.Crypt.AES.decrypt(t,o)},t.encrypt=function(t,o){return void 0===o&&(o=null),e.System.Crypt.AES.encrypt(t,o)},t.recrypt=function(e,t,o){return e=this.decrypt(e,t),this.encrypt(e,o)},t}();t.StiCryptHelper=o}(o=t.Licenses||(t.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.getKey=function(){return{RSAKeyValue:{Modulus:"iyWINuM1TmfC9bdSA3uVpBG6cAoOakVOt+juHTCw/gxz/wQ9YZ+Dd9vzlMTFde6HAWD9DC1IvshHeyJSp8p4H3qXUKSC8n4oIn4KbrcxyLTy17l8Qpi0E3M+CI9zQEPXA6Y1Tg+8GVtJNVziSmitzZddpMFVr+6q8CRi5sQTiTs=",Exponent:"10001"}}},e}();e.StiRsaPublicKey=t}(t=e.Licenses||(e.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.DateTime,r=e.System.Enum,i=function(){function e(){this.encryptKey="ieICWsADhNJQBsVv63j/tA=="}return e.prototype.loadFromString=function(e){var i=JSON.parse(e);this.activationDate=o.fromNetJsonString(i.ActivationDate),this.products=[];for(var n in i.Products)this.products[n]=new t.StiLicenseProduct,this.products[n].expirationDate=o.fromNetJsonString(i.Products[n].ExpirationDate),this.products[n].ident=r.parse(t.StiProductIdent,i.Products[n].Ident);this.owner=i.Owner,this.userName=i.UserName,this.signature=i.Signature},e.prototype.saveToString=function(){var e="";e+="{\r\n",e+=String.stiFormat('  "ActivationDate": "{0}",\r\n',this.activationDate.toNetJsonString()),null!=this.signature&&(e+=String.stiFormat('  "Signature": "{0}",\r\n',this.signature)),e+=String.stiFormat('  "Owner": "{0}",\r\n',this.owner),e+=String.stiFormat('  "UserName": "{0}",\r\n',this.userName),e+='  "Products": [',this.products.length>0&&(e+="\r\n");for(var o in this.products)e+="    {\r\n",e+=String.stiFormat('      "ExpirationDate": "{0}",\r\n',this.products[o].expirationDate.toNetJsonString()),e+=String.stiFormat('      "Ident": "{0}"\r\n',r.getName(t.StiProductIdent,this.products[o].ident)),o.toNumber()<this.products.length-1?e+="    },\r\n":e+="    }\r\n";return this.products.length>0&&(e+="  "),e+="]\r\n}"},e.prototype.loadFromBytes=function(e){var t=String.fromBytesArray(e);this.loadFromString(t)},e.prototype.decryptFromBytes=function(e){this.decryptFromString(String.fromBytesArray(e))},e.prototype.decryptFromString=function(e){this.loadFromString(t.StiCryptHelper.decrypt(e,this.encryptKey))},e}();t.StiLicenseObject=i}(o=t.Licenses||(t.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.DateTime,r=function(e){function t(){var t=e.call(this)||this;return t.owner="",t.userName="",t.activationDate=o.today,t.owner=String.empty,t.userName=String.empty,t}return __extends(t,e),t.prototype.clone=function(){var e=new t;return e.loadFromString(this.saveToString()),e},Object.defineProperty(t.prototype,"isServerLicense",{get:function(){return null!=this.planId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProductLicense",{get:function(){return null!=this.products&&this.products.count>0},enumerable:!0,configurable:!0}),t.get1=function(e){var o=new t;return o.decryptFromBytes(e),o},t.get2=function(e){var o=new t;return o.decryptFromString(e),o},t}(t.StiLicenseObject);t.StiLicenseKey=r}(o=t.Licenses||(t.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.Base.Licenses.StiRsaPublicKey,r=e.Base.Licenses.StiLicenseKey,i=function(){function t(){}return Object.defineProperty(t,"key",{get:function(){return this._key},set:function(e){this.setNewLicenseKey(e,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Key",{get:function(){return this.key},set:function(e){this.key=e},enumerable:!0,configurable:!0}),t.setNewLicenseKey=function(e,t){if(void 0===t&&(t=!0),String.isNullOrWhiteSpace(e))this._key=null,this.licenseKey=null;else{var o=r.get2(e);if(this.isValidLicenseKey(o))this.licenseKey=o,this._key=e;else{if(t)throw"The license key is not valid";this._key=null,this.licenseKey=null}}},t.isValidLicenseKey=function(t){return!0},t.loadFromFile=function(t){this.loadFromString(e.System.IO.File.getFile(t))},t.loadFromString=function(e){this.key=e},t}();t.StiLicense=i}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.encryptKey="aoc#wm5eoAtrr$a5@m9w",t}return __extends(t,e),t}(e.StiLicenseObject);e.StiLicenseActivationResponse=t}(t=e.Licenses||(e.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(e.StiKeyObject);t.StiLicenseKeyContainer=o}(t=e.Licenses||(e.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(o){var r=e.Base.Licenses.StiProductIdent,i=function(){function o(){}return o.isValid=function(t){return !0},o.isValidOnJS=function(){return !0},o.isValidOnAnyPlatform=function(){return !0},o.isJSPlatform=function(e){return e==r.Web||e==r.Js||e==r.Php||e==r.NetCore||e==r.Ultimate},o.getLicenseKey=function(){if(String.isNullOrWhiteSpace(t.StiLicense.key))return null;if(10==this.indexValidator?(t.StiLicense.setNewLicenseKey(t.StiLicense.key),this.indexValidator=0):this.indexValidator++,null==t.StiLicense.licenseKey)return null;if(null==t.StiLicense.licenseKey.signature)return null;return t.StiLicense.licenseKey},o}();o.StiLicenseKeyValidator=i}(o=t.Licenses||(t.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.StiLicenseProduct=t}(t=e.Licenses||(e.Licenses={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(o){var r=e.System.Xml.XmlConverter,i=function(){function o(){}return Object.defineProperty(o,"cultureName",{get:function(){return String.isNullOrEmpty(o._cultureName)&&(o._cultureName=t.StiSettings.get("cultureName","English"),null==o.languages[o._cultureName]&&(o._cultureName="English")),o._cultureName},set:function(e){o._cultureName!=e&&t.StiSettings.set("cultureName",e),o._cultureName=e},enumerable:!0,configurable:!0}),o.addLocalizationFile=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=""),t){var i=o.loadLocalizationFile(e),n=o[i]["@language"];return o.languages[i]={language:n,cultureName:i,filePath:e,jsonString:JSON.stringify(o[i])},n}return String.isNullOrEmpty(r)?o.languages[e]={language:r,cultureName:"",filePath:e}:o.languages[r]={language:r,cultureName:"",filePath:e},""},o.setLocalizationFile=function(e,t){if(void 0===t&&(t=!1),t)o.languages={};else for(var r in o.languages){var i=o.languages[r];if(i.filePath==e){if(String.isNullOrEmpty(i.cultureName)){delete o.languages[r];break}return void(o.cultureName=i.cultureName)}}o.cultureName=o.addLocalizationFile(e,!0)},o.setLocalization=function(e,t){if(void 0===t&&(t=!1),t)o.languages={};else{var r=o.loadLocalization(e);o.cultureName=r}},o.getJsonStringLocalization=function(){var e=o.languages[o.cultureName];return null==o[e.language]&&(o.setLocalizationFile(e.filePath),delete o.languages[e.filePath],e=o.languages[o.cultureName]),null==e.jsonString&&(e.jsonString=JSON.stringify(o[o.cultureName])),e.jsonString},o.loadLocalization=function(t){try{if(null!=t&&null!=t&&t.trim().startsWith("<?xml")){var i=r.toXml(t);return o.loadLocalizationXmlInternal(i)}}catch(t){return e.System.StiError.showError(t.message,!1),""}},o.loadLocalizationFile=function(t){var o=e.System.IO.File.getFile(t);if(o)return this.loadLocalization(o);return""},o.loadLocalizationXmlInternal=function(t){try{var r=t.firstChild.getAttribute("language"),i=o.English;null==i.jsonString&&(i.jsonString=JSON.stringify(o.English)),o[r]=JSON.parse(i.jsonString.replace(/"/gi,'"')),o[r]["@language"]=t.firstChild.getAttribute("language"),o[r]["@description"]=t.firstChild.getAttribute("description"),o[r]["@cultureName"]=t.firstChild.getAttribute("cultureName");for(var n=0;n<t.firstChild.childNodes.length;n++){var a=t.firstChild.childNodes[n].nodeName;null==o[r][a]&&(o[r][a]={});for(var s=0;s<t.firstChild.childNodes[n].childNodes.length;s++){var l=t.firstChild.childNodes[n].childNodes[s].nodeName;o[r][a][l]=t.firstChild.childNodes[n].childNodes[s].textContent}}return o.languages[r]={language:r,cultureName:o[r]["@cultureName"]},r}catch(t){return e.System.StiError.showError(t,!1),""}},o.get=function(e,t){if(void 0!==o[o.cultureName]&&void 0!==o[o.cultureName][e]&&void 0!==o[o.cultureName][e][t]&&!String.isNullOrEmpty(o[o.cultureName][e][t]))return o[o.cultureName][e][t];return t},o.languages={English:{language:"English",cultureName:"en",filePath:""}},o.English={"@language":"English","@description":"English","@cultureName":"en",A_WebViewer:{AbbreviatedDayFriday:"Fr",AbbreviatedDayMonday:"Mo",AbbreviatedDaySaturday:"Sa",AbbreviatedDaySunday:"Su",AbbreviatedDayThursday:"Th",AbbreviatedDayTuesday:"Tu",AbbreviatedDayWednesday:"We",Attachment:"Attachment:",ButtonNext:"Next",ButtonPrev:"Previous",ButtonSend:"Send",CategoryAlreadyExists:"The category with that name already exists!",DayFriday:"Friday",DayMonday:"Monday",DaySaturday:"Saturday",DaySunday:"Sunday",DayThursday:"Thursday",DayTuesday:"Tuesday",DayWednesday:"Wednesday",Email:"Email:",EmailOptions:"Email Options",FirstPage:"First Page",Hours:"Hours",LabelFrom:"From:",LabelSelectExportFormat:"Select the format to which you want to save the report:",LabelTo:"To:",LastPage:"Last Page",Loading:"Loading...",Message:"Message:",Minutes:"Minutes",MonthApril:"April",MonthAugust:"August",MonthDecember:"December",MonthFebruary:"February",MonthJanuary:"January",MonthJuly:"July",MonthJune:"June",MonthMarch:"March",MonthMay:"May",MonthNovember:"November",MonthOctober:"October",MonthSeptember:"September",NextPage:"Next Page",OnePage:"One Page",Page:"Page",PageOf:"of",PreviousPage:"Previous Page",PrintContinue:"Click Print to continue",PrintReport:"Print",PrintToPdf:"Print to PDF",PrintToXps:"Print to XPS",PrintWithoutPreview:"Print without Preview",PrintWithPreview:"Print with Preview",SaveReport:"Save",Subject:"Subject:",TabItemContacts:"Contacts",TextComputer:"Computer",TextItemsRoot:"Root",TodayDate:"Today",WholeReport:"Whole Report"},Adapters:{AdapterBusinessObjects:"Data from Business Objects",AdapterConnection:"Data from {0}",AdapterCrossTabDataSource:"Data from Cross-Tab",AdapterCsvFiles:"Data from CSV Files",AdapterDataTables:"Data from DataSet, DataTables",AdapterDataViews:"Data from DataViews",AdapterDB2Connection:"Data from IBM DB2 Connection",AdapterDBaseFiles:"Data from dBase Files",AdapterFirebirdConnection:"Data from Firebird Connection",AdapterInformixConnection:"Data from Informix Connection",AdapterMySQLConnection:"Data from MySQL Connection",AdapterOdbcConnection:"Data from ODBC Connection",AdapterOleDbConnection:"Data from OLE DB Connection",AdapterOracleConnection:"Data from Oracle Connection",AdapterOracleODPConnection:"Data from Oracle ODP.NET Connection",AdapterPostgreSQLConnection:"Data from PostgreSQL Connection",AdapterSqlCeConnection:"Data from SQL CE Connection",AdapterSqlConnection:"Data from SQL Connection",AdapterSQLiteConnection:"Data from SQLite Connection",AdapterTeradataConnection:"Data from Teradata Connection",AdapterUniDirectConnection:"Data from Uni Direct Connection",AdapterUserSources:"Data from User Sources",AdapterVirtualSource:"Data from other Data Source",AdapterVistaDBConnection:"Data from VistaDB Connection"},Buttons:{Add:"Add",AddAllColumns:"Add All Columns",Attach:"Attach",Build:"Build...",Cancel:"&Cancel",Check:"Check",Close:"Close",Delete:"Delete",Design:"Design",Down:"Down",Duplicate:"Duplicate",Export:"Export",Help:"Help",LessOptions:"Less Options",LoadDataSet:"Load DataSet (*.data)",MoreOptions:"More Options",More:"More",MoveLeft:"Move Left",MoveRight:"Move Right",MoveToResource:"Move to Resource",No:"&No",Ok:"&OK",Open:"Open",Print:"Print",Publish:"Publish",QuickPrint:"Quick Print",Remove:"Remove",RemoveAll:"Remove All",Rename:"Rename",RestoreDefaults:"Restore Defaults",Reverse:"Reverse",Save:"Save",SaveCopy:"Save a Copy",SetAll:"Set All",ShowLess:"Show Less",ShowMore:"Show More",Submit:"Submit",Test:"Test",Up:"Up",Upload:"Upload",Yes:"&Yes"},BarCode:{Post:"Post",TwoDimensional:"Two-Dimensional"},Chart:{Pictorial:"Pictorial",AddCondition:"&Add Condition",AddConstantLine:"Add Constant Line",AddFilter:"&Add Filter",AddSeries:"&Add Series",AddStrip:"Add Strip",Area:"Area",SparklinesArea:"Area",SparklinesLine:"Line",SparklinesColumn:"Column",SparklinesWinLoss:"Win / Loss",Axes:"Axes",AxisReverse:"Reverse",AxisX:"Axis X",AxisY:"Axis Y",Bubble:"Bubble",Candlestick:"Candlestick",ChartConditionsCollectionForm:"Conditions",ChartEditorForm:"Chart Editor",ChartFiltersCollectionForm:"Filters",ChartType:"Chart Type",CheckBoxAutoRotation:"Auto Rotation",ClusteredBar:"Clustered Bar",ClusteredColumn:"Clustered Column",Common:"Common",ConstantLine:"Constant Line",ConstantLinesEditorForm:"Constant Lines Editor",DataColumns:"Data Columns",Doughnut:"Doughnut",Financial:"Financial",FullStackedArea:"Full-Stacked Area",FullStackedBar:"Full-Stacked Bar",FullStackedColumn:"Full-Stacked Column",FullStackedLine:"Full-Stacked Line",FullStackedSpline:"Full-Stacked Spline",FullStackedSplineArea:"Full-Stacked Spline Area",Funnel:"Funnel",FunnelWeightedSlices:"Funnel Weighted Slices",Gantt:"Gantt",GridInterlaced:"Interlaced",GridLines:"Grid Lines",LabelAlignment:"Alignment:",LabelAlignmentHorizontal:"Horizontal:",LabelAlignmentVertical:"Vertical:",LabelAngle:"Angle:",LabelArgumentDataColumn:"Argument Data Column:",LabelAutoRotation:"Auto Rotation:",LabelCloseValueDataColumn:"Close Value Data Column:",LabelEndValueDataColumn:"End Value Data Column:",LabelHighValueDataColumn:"High Value Data Column:",LabelHorizontal:"Horizontal:",LabelLowValueDataColumn:"Low Value Data Column:",LabelMinorCount:"Minor Count:",LabelOpenValueDataColumn:"Open Value Data Column:",Labels:"Labels",LabelsCenter:"Center",LabelSeriesName:"Series Name:",LabelsInside:"Inside",LabelsInsideBase:"Inside Base",LabelsInsideEnd:"Inside End",LabelsNone:"None",LabelsOutside:"Outside",LabelsOutsideBase:"Outside Base",LabelsOutsideEnd:"Outside End",LabelsTwoColumns:"Two Columns",LabelTextAfter:"Text After:",LabelTextBefore:"Text Before:",LabelTitleAlignment:"Alignment:",LabelValueDataColumn:"Value Data Column:",LabelValueType:"Value Type:",LabelVertical:"Vertical:",LabelVisible:"Visible:",Legend:"Legend",LegendSpacing:"Spacing",Line:"Line",ListOfValues:"List of Values",Marker:"Marker",MoveConstantLineDown:"Move Constant Line Down",MoveConstantLineUp:"Move Constant Line Up",MoveSeriesDown:"Move Series Down",MoveSeriesUp:"Move Series Up",MoveStripDown:"Move Strip Down",MoveStripUp:"Move Strip Up",NoConditions:"No Conditions",NoFilters:"No Filters",Pie:"Pie",Radar:"Radar",RadarArea:"Radar Area",RadarColumn:"Radar Column",RadarLine:"Radar Line",RadarPoint:"Radar Point",Range:"Range",RangeBar:"Range Bar",RemoveCondition:"&Remove Condition",RemoveConstantLine:"Remove Constant Line",RemoveFilter:"&Remove Filter",RemoveSeries:"&Remove Series",RemoveStrip:"Remove Strip",RunChartWizard:"Run Chart &Wizard",Scatter:"Scatter",ScatterLine:"Scatter Line",ScatterSpline:"Scatter Spline",Series:"Series",SeriesColorsCollectionForm:"Series Colors",SeriesEditorForm:"Series Editor",Serieses:"Series",Spline:"Spline",SplineArea:"Spline Area",SplineRange:"Spline Range",StackedArea:"Stacked Area",StackedBar:"Stacked Bar",StackedColumn:"Stacked Column",StackedLine:"Stacked Line",StackedSpline:"Stacked Spline",StackedSplineArea:"Stacked Spline Area",SteppedArea:"Stepped Area",SteppedLine:"Stepped Line",SteppedRange:"Stepped Range",Stock:"Stock",Strip:"Strip",StripsEditorForm:"Strips Editor Form",Style:"Style",Treemap:"Treemap"},ChartRibbon:{Axes:"Axes",AxesArrowStyle:"Arrow Style",AxesArrowStyleLines:"Lines",AxesArrowStyleNone:"None",AxesArrowStyleTriangle:"Triangle",AxesLabel:"Label Placement",AxesLabelsNone:"None",AxesLabelsOneLine:"One Line",AxesLabelsTwoLines:"Two Lines",AxesReverseHorizontal:"Reverse Horizontal",AxesReverseVertical:"Reverse Vertical",AxesTicks:"Ticks",AxesTicksMajor:"Major",AxesTicksMinor:"Minor",AxesTicksNone:"None",AxesVisible:"Visible",AxesXAxis:"X Axis",AxesXTopAxis:"X Top Axis",AxesYAxis:"Y Axis",AxesYRightAxis:"Y Right Axis",CenterLabels:"Center",ChangeType:"Change Type",GridLines:"Grid Lines",GridLinesHorizontal:"Grid Lines Horizontal",GridLinesVertical:"Grid Lines Vertical",HorAlCenter:"<b>Overlay Legend at Center</b><br>Show Legend at center of the chart</br><br>without resizing</br>",HorAlLeft:"<b>Overlay Legend at Left</b><br>Show Legend at left of the chart</br><br>without resizing</br>",HorAlLeftOutside:"<b>Show Legend at Left</b><br>Show Legend and align left</br>",HorAlRight:"<b>Overlay Legend at Right</b><br>Show Legend at right of the chart</br><br>without resizing</br>",HorAlRightOutside:"<b>Show Legend at Right</b><br>Show Legend and align right</br>",HorizontalMajor:"<b>Major</b><br>Display Horizontal Gridlines for Major units</br>",HorizontalMajorMinor:"<b>Major && Minor Gridlines</b><br>Display Horizontal Gridlines for Major and Minor units</br>",HorizontalMinor:"<b>Minor</b><br>Display Horizontal Gridlines for Minor units</br>",HorizontalNone:"<b>None</b><br>Do not display Horizontal Grirdlines</br>",InsideBaseLabels:"Inside Base",InsideEndLabels:"Inside End",Labels:"Series Labels",Legend:"Legend",LegendHorizontalAlignment:"Horizontal Alignment",LegendMarker:"Marker",LegendMarkerAlignmentLeft:"Left",LegendMarkerAlignmentRight:"Right",LegendMarkerVisible:"Visible",LegendVerticalAlignment:"Vertical Alignment",LegendVisible:"Visible",NoneLabels:"None",OutsideBaseLabels:"Outside Base",OutsideEndLabels:"Outside End",OutsideLabels:"Outside",ribbonBarAxis:"Axes",ribbonBarChartStyles:"Chart Styles",ribbonBarChartType:"Chart Type",ribbonBarLabels:"Labels",ribbonBarLegend:"Legend",Style:"Change Style",TwoColumnsPieLabels:"Two Columns",VertAlBottom:"<b>Overlay Legend at Bottom</b><br>Show Legend at bottom of the chart</br><br>without resizing</br>",VertAlBottomOutside:"<b>Show Legend at Bottom</b><br>Show Legend and align bottom</br>",VertAlCenter:"<b>Overlay Legend at Center</b><br>Show Legend at center of the chart</br><br>without resizing</br>",VertAlTop:"<b>Overlay Legend at Top</b><br>Show Legend at top of the chart</br><br>without resizing</br>",VertAlTopOutside:"<b>Show Legend at Top</b><br>Show Legend and align top</br>",VerticalMajor:"<b>Major</b><br>Display Vertical Gridlines for Major units</br>",VerticalMajorMinor:"<b>Major && Minor Gridlines</b><br>Display Vertical Gridlines for Major and Minor units</br>",VerticalMinor:"<b>Minor</b><br>Display Vertical Gridlines for Minor units</br>",VerticalNone:"<b>None</b><br>Do not display Vertical Gridlines</br>"},Cloud:{SavingToStimulsoftCloudPleaseWait:"Saving the report to Stimulsoft Cloud. Please wait!",ShowNotificationMessages:"Show Notification Messages",AccountSettings:"Account Settings",AddAPlace:"Add a Place",ButtonChangePassword:"Change Password",ButtonDeleteAll:"Delete All",ButtonDesign:"Design Report",ButtonLogout:"Logout",ButtonPublish:"Publish",ButtonPurchase:"Purchase",ButtonRecover:"Recover",ButtonRenew:"Renew",ButtonLater:"Later",ButtonResendEmail:"Resend Email",ButtonResetPassword:"Reset Password",ButtonRun:"Run",ButtonShare:"Share",ButtonSignUp:"Sign Up",ButtonSkip:"Skip",ButtonView:"View",ButtonWhereUsed:"Where it is used?",Cancel:"Cancel",CheckBoxMoveToRecycleBin:"Move to Recycle Bin",CheckBoxRememberMe:"Remember Me",Cloud:"Cloud",Collection:"Collection",Create:"Create",CreateError:"Error while creating report!",CreateNewCollection:"Create New Collection",CreatingReport:"Creating report...",DashboardWindowTitleNew:"New Dashboard",DeleteFile:"Delete File",ExecutionError:"Execution error",ExpiredDate:"Expired Date",FileStorageWindowTitleEdit:"Edit File Storage",FileStorageWindowTitleNew:"New File Storage",FolderWindowTitleEdit:"Edit Folder",FolderWindowTitleNew:"New Folder",ForExample:"For example",GroupBoxAttachedItems:"Attached Items",HyperlinkAgreeToTerms:"By registering you agree to Terms.",HyperlinkAlreadyHaveAccount:"Already have account",HyperlinkForgotPassword:"Forgot password",HyperlinkHavePassword:"Have password",HyperlinkRegisterAccount:"Register FREE account",labelCollectionName:"Collection Name:",LabelCreated:"Created:",LabelCreateFolder:"Create a new category in which you can place other items.",LabelCreateReportTemplate:"Create report template.",LabelCurrentPassword:"Current Password:",LabelDataFile:"Data File:",LabelDataUrl:"Data URL:",labelFileName:"File Name:",LabelForeground:"Foreground:",LabelFromReport:"From Report",LabelFromReportCode:"From Report (define in code)",LabelLastLogin:"Last Log In:",LabelLastTime:"Last Time:",LabelModified:"Modified:",LabelNewPassword:"New Password:",LabelNextTime:"Next Time:",labelPassword:"Password:",LabelPermission:"Permission:",LabelPicture:"Picture:",LabelRenderedReport:"Rendered report",LabelResponseAsFile:"Response as File",LabelSeparateReport:"Separate report (and scripts) file",LabelShowReport:"Show report:",labelUserName:"User Name:",License:"License",LicenseInformation:"License Information",Login:"Log In",NofM:"{0}: {1} of {2}",Open:"Open",OpenFile:"Open File",OperationCreate:"Create '{0}'",OperationDelete:"Delete '{0}' from Server",OperationDownload:"Download from Server",OperationGetList:"Get List of Files from Server",OperationLogin:"Log In to Server",OperationRename:"Rename '{0}' to '{1}'",OperationUpload:"Upload '{0}' to Server",page:"page",Platforms:"Platforms",Products:"Products",questionOpenThisFile:"Are you sure want to open '{0}' item?",questionOverrideItem:"Do you really want to override '{0}' item?",questionRemoveItem:"Do you really want to remove '{0}' item?",RefreshList:"Refresh List",ReportDocumentFormatNotRecognized:"Format of '{0}' item is not recognized as rendered report format!",ReportTemplateFormatNotRecognized:"Format of '{0}' item is not recognized as report template format!",RequestChangesWhenSavingToCloud:"Request Changes when Saving to Cloud",RibbonButtonAddRole:"Add Role",RibbonButtonAddUser:"Add User",RibbonButtonAddWorkspace:"Add Workspace",RibbonButtonFolder:"Folder",RibbonTabUsers:"Users",Root:"Root",RootFolder:"Root Folder",Save:"Save",SaveAccountSettings:"Save Account Settings",SaveFile:"Save File",ShareWindowTitleNew:"Share",ShowAllFiles:"Show All Files",Subscriptions:"Subscriptions",TabItemEmbedCode:"Embed Code",TabItemQRCode:"QR Code",TabItemShare:"Link to Share",TextActivated:"Activated",TextActivationDate:"Activation Date",TextDelete:"Delete",TextDeletingItems:"Deleting items...",TextDescriptionChanges:"Please, type a description of the changes:",TextFirstName:"First Name",TextFromTo:"From {0} to {1} (Total - {2})",TextItemsWorkspace:"Workspace",TextLastName:"Last Name",TextModify:"Modify",TextNoNotifications:"No Notifications",TextOwner:"Owner",TextProfile:"Profile",TextReports:"Reports",TextRestoringItems:"Restoring items...",TextRole:"Role",TextRun:"Run",TextUser:"User",TextUserName:"User Name (Email)",TimeHoursAgoFive:"Five hours ago, {0:t}",TimeHoursAgoFour:"Four hours ago, {0:t}",TimeHoursAgoOne:"One hour ago, {0:t}",TimeHoursAgoThree:"Three hours ago, {0:t}",TimeHoursAgoTwo:"Two hours ago, {0:t}",TimeMinutesAgoFive:"Five minutes ago, {0:t}",TimeMinutesAgoFour:"Four minutes ago, {0:t}",TimeMinutesAgoLessOne:"Less than a minute ago",TimeMinutesAgoN:"{0} minutes ago, {1:t}",TimeMinutesAgoOne:"One minute ago, {0:t}",TimeMinutesAgoThree:"Three minutes ago, {0:t}",TimeMinutesAgoTwo:"Two minutes ago, {0:t}",TimeToday:"Today, {0:t}",TimeYesterday:"Yesterday, {0:t}",ToolTipAddRole:"Creating a new role in the workspace.",ToolTipAddUser:"Creating a new user in the selected role.",ToolTipAspNet:"Publish the selected report to the ASP.NET application.",ToolTipAspNetMvc:"Publish the selected report to the ASP.NET MVC application.",ToolTipAttach:"Attach items to the selected report.",ToolTipCreate:"Create a new item.",ToolTipDelete:"Delete the selected items.",ToolTipDeleted:"Show deleted items",ToolTipDownload:"Download the selected item.",ToolTipEdit:"Edit the selected item.",ToolTipGridMode:"List view",ToolTipInfo:"View details",ToolTipJs:"Publish the selected report as the HTML page",ToolTipPublish:"Prepare the selected report to be deployed in your application.",ToolTipRecover:"Recover the selected items.",ToolTipRunWithoutPreview:"Render the selected report without preview",ToolTipShare:"Share the selected file.",ToolTipSort:"Sort options",ToolTipThumbnailMode:"Thumbnail View",ToolTipViewFile:"Show the selected file.",ToolTipViewReport:"Show the selected report in the viewer.",WeDidntFindAnything:"We didn't find anything to show here.",WindowDescriptionDelete:"Are you sure you want to delete the selected items?",WindowDescriptionRecover:"Selected items will be recovered from the Recycle Bin.",WindowTitleDelete:"Delete Items",WindowTitleForgotPassword:"Forgot Password",WindowTitleLogin:"Log In",WindowTitleRecover:"Recover Items",WindowTitleRoleEdit:"Edit Role",WindowTitleRoleNew:"New Role",WindowTitleSignUp:"Sign Up",WindowTitleUserEdit:"Edit User",WindowTitleUserNew:"New User",WindowTitleWorkspaceEdit:"Edit Workspace",WindowTitleWorkspaceNew:"New Workspace",WizardBlankReportDescription:"Create a blank report",WizardExcelDescription:"Create a report with Excel data.",WizardJsonDescription:"Create a report with JSON data.",WizardPrivateShare:"No Access",WizardPrivateShareDescription:"External access to the item is restricted.",WizardPublicShare:"Public Access",WizardPublicShareDescription:"External access for any unauthorized user.",WizardRegisteredShare:"Authorized Access",WizardRegisteredShareDescription:"External access only for registered users from any workspace.",WizardXmlDescription:"Create a report with XML data."},Components:{StiBarCode:"Bar Code",StiChart:"Chart",StiCheckBox:"Check Box",StiChildBand:"Child",StiClone:"Clone",StiColumnFooterBand:"Column Footer",StiColumnHeaderBand:"Column Header",StiComponent:"Component",StiContainer:"Container",StiContourText:"Contour Text",StiCrossColumn:"Cross-Column",StiCrossColumnTotal:"Cross-Column Total",StiCrossDataBand:"Cross-Data",StiCrossFooterBand:"Cross-Footer",StiCrossGroupFooterBand:"Cross-Group Footer",StiCrossGroupHeaderBand:"Cross-Group Header",StiCrossHeaderBand:"Cross-Header",StiCrossRow:"Cross-Row",StiCrossRowTotal:"Cross-Row Total",StiCrossSummary:"Cross-Summary",StiCrossSummaryHeader:"Cross-Summary Header",StiCrossTab:"Cross-Tab",StiCrossTitle:"Cross-Title",StiDashboard:"Dashboard",StiDataBand:"Data",StiEmptyBand:"Empty Data",StiProgress:"Progress",StiIndicator:"Indicator",StiFooterBand:"Footer",StiGauge:"Gauge",StiGroupFooterBand:"Group Footer",StiGroupHeaderBand:"Group Header",StiHeaderBand:"Header",StiHierarchicalBand:"Hierarchical Data",StiHorizontalLinePrimitive:"Horizontal Line",StiImage:"Image",StiMap:"Map",StiOverlayBand:"Overlay",StiPage:"Page",StiPageFooterBand:"Page Footer",StiPageHeaderBand:"Page Header",StiPanel:"Panel",StiPivot:"Pivot",StiRectanglePrimitive:"Rectangle",StiReport:"Report",StiReportSummaryBand:"Report Summary",StiReportTitleBand:"Report Title",StiRichText:"Rich Text",StiRoundedRectanglePrimitive:"Rounded Rectangle",StiShape:"Shape",StiSubReport:"Sub-Report",StiSystemText:"System Text",StiTable:"Table",StiText:"Text",StiTextInCells:"Text in Cells",StiVerticalLinePrimitive:"Vertical Line",StiWinControl:"Win Control",StiZipCode:"ZIP Code"},Dashboard:{EditExpression:"Edit Expression",RemoveField:"Remove Field",DuplicateField:"Duplicate Field",ChangeChartType:"Change Chart Type",ChangeMapType:"Change Map Type",ClearFilterFrom:"Clear Filter from '{0}'",DataBars:"Data Bars",HighLowPoints:"High / Low Points",FirstLastPoints:"First / Last Points",ColorScale:"Color Scale",Sparklines:"Sparklines",NewDimension:"New Dimension",NewMeasure:"New Measure",Indicator:"Indicator",Trend:"Trend",DataNotDefined:"Data is not defined",Dimension:"Dimension",Dimensions:"Dimensions",DragDropDataFromDictionary:"Drag&drop data from Dictionary",EmptyDashboardFooter:"Drag & drop component from ToolBox or data from Dictionary",EmptyDashboardHeader:"Dashboard is empty",ImageNotSpecified:"Image not specified",Measure:"Measure",Measures:"Measures",NumberFilters:"Number Filters",StringFilters:"String Filters"},Database:{Connection:"Connection",Database:"{0} Connection",DatabaseDB2:"IBM DB2 Connection",DatabaseFirebird:"Firebird Connection",DatabaseInformix:"Informix Connection",DatabaseJson:"JSON Data",DatabaseMySQL:"MySQL Connection",DatabaseOdbc:"ODBC Connection",DatabaseOleDb:"OLE DB Connection",DatabaseOracle:"Oracle Connection",DatabaseOracleODP:"Oracle ODP.NET Connection",DatabasePostgreSQL:"PostgreSQL Connection",DatabaseSql:"SQL Connection",DatabaseSqlCe:"SQLServerCE Connection",DatabaseSQLite:"SQLite Connection",DatabaseTeradata:"Teradata Connection",DatabaseUniDirect:"Uni Direct Connection",DatabaseVistaDB:"VistaDB Connection",DatabaseXml:"XML Data"},DatePickerRanges:{CurrentMonth:"Current Month",CurrentQuarter:"Current Quarter",CurrentWeek:"Current Week",CurrentYear:"Current Year",FirstQuarter:"First Quarter",FourthQuarter:"Fourth Quarter",MonthToDate:"Month To Date",NextMonth:"Next Month",NextQuarter:"Next Quarter",NextWeek:"Next Week",NextYear:"Next Year",PreviousMonth:"Previous Month",PreviousQuarter:"Previous Quarter",PreviousWeek:"Previous Week",PreviousYear:"Previous Year",QuarterToDate:"Quarter To Date",SecondQuarter:"Second Quarter",ThirdQuarter:"Third Quarter",Today:"Today",Tomorrow:"Tomorrow",WeekToDate:"Week To Date",YearToDate:"Year To Date",Yesterday:"Yesterday"},DesignerFx:{AlreadyExists:"'{0}' already exists.",CanNotLoadThisReportTemplate:"Can't load this report template.",CloseDataSourceEditor:"Do you want to close data source editor?",CloseEditor:"Do you want to close editor?",CompilingReport:"Compiling Report",Connecting:"Connecting to Server",ConnectionError:"Connection error",ConnectionSuccessfull:"Connection was successful",Continue:"Continue",DecryptionError:"Decryption error: Wrong password or corrupted file.",EmailSuccessfullySent:"The Email has been successfully sent.",ErrorAtSaving:"Error at saving",ErrorCode:"Error at saving. Error code: {0}",ErrorServer:"Error at saving. Server doesn't respond.",ExportingReport:"Exporting Report",LoadingCode:"Loading Code",LoadingConfiguration:"Loading Configuration",LoadingData:"Loading Data",LoadingDocument:"Loading Document",LoadingImages:"Loading Images",LoadingLanguage:"Loading Language",LoadingReport:"Loading Report",PreviewAs:"Preview as {0}",RenderingReport:"Rendering Report",ReportSuccessfullySaved:"Report is successfully saved.",RetrieveError:"Retrieve columns error",RetrievingColumns:"Retrieving Columns",SavingConfiguration:"Saving Configuration",SavingReport:"Saving Report",TestConnection:"Test Connection",TextNotFound:"The specified text was not found. Text : {0}"},Dialogs:{StiButtonControl:"Button",StiCheckBoxControl:"Check Box",StiCheckedListBoxControl:"Checked List Box",StiComboBoxControl:"Combo Box",StiDateTimePickerControl:"Date Time Picker",StiForm:"Form",StiGridControl:"Grid",StiGroupBoxControl:"Group Box",StiLabelControl:"Label",StiListBoxControl:"List Box",StiListViewControl:"List View",StiLookUpBoxControl:"LookUp Box",StiNumericUpDownControl:"Numeric Up Down",StiPanelControl:"Panel",StiPictureBoxControl:"Picture Box",StiRadioButtonControl:"Radio Button",StiReportControl:"Report Control",StiRichTextBoxControl:"Rich Text Box",StiTextBoxControl:"Text Box",StiTreeViewControl:"Tree View"},Editor:{CantFind:"Cannot find the data you're searching for.",CollapseToDefinitions:"C&ollapse to Definitions",Column:"Column: {0}",EntireScope:"&Entire Scope",Find:"&Find",FindNext:"&Find Next",FindWhat:"Find What:",FromCursor:"From Cursor",GotoLine:"Go To &Line",Line:"Line: {0}",LineNumber:"Line Number:",LineNumberIndex:"Line Number ({0} - {1})",MarkAll:"&Mark All",MatchCase:"Match &Case",MatchWholeWord:"Match &Whole Word",Outlining:"Out&lining",PromptOnReplace:"Prompt on Replace",Replace:"&Replace",ReplaceAll:"Replace &All",ReplaceWith:"Replace With:",Search:"Search",SearchHiddenText:"Hidden Text",SearchUp:"Search &Up",SelectionOnly:"Selection &Only",ShowAutoGeneratedCode:"Show Auto Generated Code",ShowLineNumbers:"Show Line Numbers",StopOutlining:"Sto&p Outlining",titleFind:"Find",titleGotoLine:"Go To Line",titleReplace:"Replace",ToggleAllOutlining:"Toggle A&ll Outlining",ToggleOutliningExpansion:"&Toggle Outlining Expansion",UseRegularExpressions:"Use &Regular Expressions"},Errors:{ComponentIsNotRelease:'Component is not release "{0}".',ContainerIsNotValidForComponent:"Container {0} is not valid for component {1}.",DataNotFound:"Data not found.",Error:"Error!",ErrorsList:"Errors List",FieldRequire:'Field "{0}" required filling.',FileNotFound:'File "{0}" not found.',IdentifierIsNotValid:"Identifier '{0}' is not valid.",ImpossibleFindDataSource:"Impossible to Find Data Source.",NameExists:"There is already an object named '{0}'. Objects must have unique names.",NoServices:"Services are not found in '{0}'",NotAssign:"Data Source is not specified.",NotCorrectFormat:"Input string was not in a correct format.",RelationsNotFound:"Relations not found.",ReportCannotBeSaveDueToErrors:"Report cannot be saved due to errors!",ServiceNotFound:"'{0}' Service not found."},Export:{AddPageBreaks:"Add Page Breaks",AllBands:"All bands",AllowAddOrModifyTextAnnotations:"Allow Add or Modify Text Annotations",AllowCopyTextAndGraphics:"Allow Copy Text and Graphics",AllowEditable:"Allow Editable:",AllowModifyContents:"Allow Modify Contents",AllowPrintDocument:"Allow Print Document",Auto:"Auto",BandsFilter:"Bands Filter:",Color:"Color",Compressed:"Compressed",CompressToArchive:"Compress to Archive",ContinuousPages:"Continuous Pages",DataAndHeadersFooters:"Data and Headers/Footers",DataOnly:"Data only",DigitalSignature:"Digital Signature",DigitalSignatureCertificateNotSelected:"Certificate is not selected",DigitalSignatureError:"Digital Signature error at step",DocumentSecurity:"Document Security",DotMatrixMode:"Dot-Matrix Mode",EmbeddedFonts:"Embedded Fonts",EmbeddedImageData:"Embedded Image Data",Encoding:"Encoding:",EncryptionError:"Encryption error at step",EscapeCodes:"Escape Codes",Exactly:"Exactly",ExceptEditableFields:"Except Editable Fields",ExportDataOnly:"Export Data Only",ExportEachPageToSheet:"Export Each Page to Sheet",ExportingCalculatingCoordinates:"Calculating Coordinates",ExportingCreatingDocument:"Creating Document",ExportingFormatingObjects:"Formatting Objects",ExportingReport:"Exporting Report",ExportMode:"Export Mode:",ExportModeFrame:"Frame",ExportModeTable:"Table",ExportObjectFormatting:"Export Object Formatting",ExportPageBreaks:"Export Page Breaks",ExportRtfTextAsImage:"Export Rich Text as Image",ExportTypeBmpFile:"BMP Image...",ExportTypeCalcFile:"OpenDocument Calc File...",ExportTypeCsvFile:"CSV File...",ExportTypeDataFile:"Data File...",ExportTypeDbfFile:"dBase DBF File...",ExportTypeDifFile:"Data Interchange Format (DIF) File...",ExportTypeExcel2007File:"Microsoft Excel 2007 File...",ExportTypeExcelFile:"Microsoft Excel File...",ExportTypeExcelXmlFile:"Microsoft Excel XML File...",ExportTypeGifFile:"GIF Image...",ExportTypeHtml5File:"HTML5 File...",ExportTypeHtmlFile:"HTML File...",ExportTypeImageFile:"Image File...",ExportTypeJpegFile:"JPEG Image...",ExportTypeMetafile:"Windows Metafile...",ExportTypeMhtFile:"MHT Web Archive...",ExportTypePcxFile:"PCX Image...",ExportTypePdfFile:"Adobe PDF File...",ExportTypePngFile:"PNG Image...",ExportTypePpt2007File:"Microsoft PowerPoint File...",ExportTypeRtfFile:"Rich Text File...",ExportTypeSvgFile:"Scalable Vector Graphics (SVG) File...",ExportTypeSvgzFile:"Compressed SVG (SVGZ) File...",ExportTypeSylkFile:"Symbolic Link (SYLK) File...",ExportTypeTiffFile:"TIFF Image...",ExportTypeTxtFile:"Text File...",ExportTypeWord2007File:"Microsoft Word File...",ExportTypeWriterFile:"OpenDocument Writer File...",ExportTypeXmlFile:"XML File...",ExportTypeXpsFile:"Microsoft XPS File...",GetCertificateFromCryptoUI:"Get Certificate from Crypto UI",ImageCompressionMethod:"Image Compression Method:",ImageCutEdges:"Cut Edges",ImageFormat:"Image Format:",ImageGrayscale:"Grayscale",ImageMonochrome:"Monochrome",ImageQuality:"Image Quality:",ImageResolution:"Image Resolution:",ImageResolutionMode:"Image Resolution Mode:",ImageType:"Image Type",labelEncryptionKeyLength:"Encryption Key Length:",labelOwnerPassword:"Owner Password:",labelSubjectNameString:"Subject Name String:",labelUserPassword:"User Password:",MonochromeDitheringType:"Monochrome Dithering Type:",MoreSettings:"More Settings",MultipleFiles:"Multiple Files",NoMoreThan:"No More Than",OpenAfterExport:"Open After Export",PdfACompliance:"PDF/A Compliance",RemoveEmptySpaceAtBottom:"Remove Empty Space at Bottom of Page",RestrictEditing:"Restrict Editing:",Scale:"Scale:",Separator:"Separator:",Settings:"Settings",SkipColumnHeaders:"Skip Column Headers",StandardPDFFonts:"Standard PDF Fonts",TiffCompressionScheme:"TIFF Compression Scheme:",title:"Export Settings",TxtBorderType:"Border Type",TxtBorderTypeDouble:"Unicode-Double",TxtBorderTypeSimple:"Simple",TxtBorderTypeSingle:"Unicode-Single",TxtCutLongLines:"Cut Long Lines",TxtDrawBorder:"Draw Border",TxtKillSpaceGraphLines:"Kill Space Graph Lines",TxtKillSpaceLines:"Kill Space Lines",TxtPutFeedPageCode:"Put Feed Page Code",Type:"Type:",UseDefaultSystemEncoding:"Use Default System Encoding",UseDigitalSignature:"Use Digital Signature",UseEscapeCodes:"Use Escape Codes",UseOnePageHeaderAndFooter:"Use One Page Header and Footer",UsePageHeadersAndFooters:"Use Page Headers and Footers",UseUnicode:"Use Unicode",X:"X:",Y:"Y:",Zoom:"Zoom:"},FileFilters:{AllFiles:"All Files",AllImageFiles:"All Image Files",BitmapFiles:"Bitmap Files",BmpFiles:"BMP Images (*.bmp)|*.bmp",CalcFiles:"OpenDocument Calc Files (*.ods)|*.ods",CsvFiles:"CSV Files (*.csv)|*.csv",DashboardTemplates:"Dashboard Templates (*.sbi)|*.sbi",DataSetXmlData:"DataSet XML Data (*.xml)|*.xml",DataSetXmlSchema:"DataSet XML Schema (*.xsd)|*.xsd",DbfFiles:"DBF Files (*.dbf)|*.dbf",DictionaryFiles:"Report Dictionaries (*.dct)|*.dct",DifFiles:"DIF Files (*.dif)|*.dif",DllFiles:"DLL Files (*.dll)|*.dll",DocumentFiles:"Report Documents (*.mdc)|*.mdc",EmfFiles:"Metafiles (*.emf)|*.emf",EncryptedDocumentFiles:"Encrypted Report Documents (*.mdx)|*.mdx",EncryptedReportFiles:"Encrypted Report Templates (*.mrx)|*.mrx",Excel2007Files:"Microsoft Excel files (*.xlsx)|*.xlsx",ExcelAllFiles:"Microsoft Excel files (*.xlsx;*.xls)|*.xlsx;*.xls",ExcelFiles:"Microsoft Excel 97-2003 files (*.xls)|*.xls",ExcelXmlFiles:"Microsoft Excel XML files (*.xml)|*.xml",ExeFiles:"EXE Files (*.exe)|*.exe",GifFiles:"GIF Image (*.gif)|*.gif",HtmlFiles:"HTML Files (*.html)|*.html",InheritedLanguageFiles:"{0} Classes for Inherited Reports (*.{1})|*.{2}",JpegFiles:"JPEG image (*.jpeg)|*.jpeg",JsonDocumentFiles:"JSON Report Documents (*.mdc)|*.mdc",JsonFiles:"JSON Files (*.json)|*.json",JsonReportFiles:"JSON Report Templates (*.mrt)|*.mrt",LanguageFiles:"{0} Classes (*.{1})|*.{2}",LanguageForSilverlightFiles:"{0} Classes for Silverlight Reports (*.{1})|*.{2}",MetaFiles:"Metafiles",MhtFiles:"MHT Web Archives (*.mht)|*.mht",PackedDocumentFiles:"Packed Report Documents (*.mdz)|*.mdz",PackedReportFiles:"Packed Report Templates (*.mrz)|*.mrz",PageFiles:"Report Pages (*.pg)|*.pg",PcxFiles:"PCX Images (*.pcx)|*.pcx",PdfFiles:"Adobe PDF Files (*.pdf)|*.pdf",PngFiles:"PNG Images (*.png)|*.png",Ppt2007Files:"Microsoft PowerPoint 2007/2013 Files (*.pptx)|*.pptx",ReportFiles:"Report Templates (*.mrt)|*.mrt",RtfFiles:"Rich Text (*.rtf)|*.rtf",StandaloneReportFiles:"Standalone Reports (*.exe)|*.exe",StylesFiles:"Report Styles (*.sts)|*.sts",SvgFiles:"SVG Images (*.svg)|*.svg",SvgzFiles:"Compressed SVG Images (*.svgz)|*.svgz",SylkFiles:"SYLK Files (*.slk)|*.slk",TiffFiles:"TIFF Images (*.tiff)|*.tiff",TxtFiles:"Plain Text Files (*.txt)|*.txt",Word2007Files:"Microsoft Word 2007/2013 Files (*.docx)|*.docx",WriterFiles:"OpenDocument Writer Files (*.odt)|*.odt",XmlFiles:"XML Files (*.xml)|*.xml",XpsFiles:"Microsoft XPS Files (*.xps)|*.xps",ZipArchives:"ZIP Archives (*.zip)|*.zip"},Formats:{custom01:"d",custom02:"D",custom03:"f",custom04:"F",custom05:"yy/MM/dd",custom06:"yyyy/MM/dd",custom07:"G",custom08:"$0.00",custom09:"$0",custom10:"c",custom11:"c1",custom12:"c2",custom13:"#.00",custom14:"#,#",custom15:"n",custom16:"n1",custom17:"n2",custom18:"(###) ### - ####",date01:"*d",date02:"*D",date03:"M.dd",date04:"yy.M.dd",date05:"yy.MM.dd",date06:"MMM.dd",date07:"yy.MMM.dd",date08:"yyyy, MMMM",date09:"*f",date10:"*F",date11:"MM.dd.yyyy",date12:"dd/MM/yyyy",time01:"*t",time02:"*T",time03:"HH:mm",time04:"H:mm",time06:"HH:mm:ss"},FormBand:{AddFilter:"&Add Filter",AddGroup:"&Add Group",AddResult:"&Add Result",AddSort:"&Add Sort",And:"and",Ascending:"Ascending",Descending:"Descending",NoFilters:"No Filters",NoSort:"No Sorting",RemoveFilter:"&Remove Filter",RemoveGroup:"&Remove Group",RemoveResult:"&Remove Result",RemoveSort:"&Remove Sort",SortBy:"Sort by",ThenBy:"Then by",title:"Data Setup"},FormColorBoxPopup:{Color:"Color",Custom:"Custom",NoColor:"No Color",Others:"Others...",System:"System",Web:"Web"},FormConditions:{AaBbCcYyZz:"AaBbCcYyZz",AddCondition:"&Add Condition",AddLevel:"Add Level",AssignExpression:"Assign Expression",BreakIfTrue:"Break if True",BreakIfTrueToolTip:"Breaks condition processing if current one is fulfilled",ChangeFont:"Change Font...",ComponentIsEnabled:"Component is Enabled",NoConditions:"No Conditions",RemoveCondition:"&Remove Condition",SelectStyle:"Select Style",title:"Conditions"},FormCrossTabDesigner:{Columns:"Columns:",DataSource:"Data Source:",Properties:"Properties:",Rows:"Rows:",Summary:"Summary:",Swap:"Swap Rows / Columns",title:"Cross-Tab Designer"},FormDatabaseEdit:{Favorites:"Favorites",ConnectionString:"Connection String:",DashboardConnections:"Dashboard Connections",DB2Edit:"Edit IBM DB2 Connection",DB2New:"New IBM DB2 Connection",EditConnection:"Edit {0} Connection",FirebirdEdit:"Edit Firebird Connection",FirebirdNew:"New Firebird Connection",FirstRowIsHeader:"First Row is Header",ImportData:"Import Data",InformixEdit:"Edit Informix Connection",InformixNew:"New Informix Connection",InitialCatalog:"Initial Catalog:",JsonEdit:"Edit JSON Data",JsonNew:"New JSON Data",MySQLEdit:"Edit MySQL Connection",MySQLNew:"New MySQL Connection",NewConnection:"New {0} Connection",OdbcEdit:"Edit ODBC Connection",OdbcNew:"New ODBC Connection",OleDbEdit:"Edit OLE DB Connection",OleDbNew:"New OLE DB Connection",OracleEdit:"Edit Oracle Connection",OracleNew:"New Oracle Connection",OracleODPEdit:"Edit Oracle ODP.NET Connection",OracleODPNew:"New Oracle ODP.NET Connection",PathData:"Path to XML Data:",PathJsonData:"Path to JSON Data:",PathSchema:"Path to XSD Schema:",PathToData:"Path to Data:",Pin:"Pin",PostgreSQLEdit:"Edit PostgreSQL Connection",PostgreSQLNew:"New PostgreSQL Connection",PromptUserNameAndPassword:"Prompt User Name and Password",RecentConnections:"Recent",ReportConnections:"Report Connections",SqlCeEdit:"Edit SQLServerCE Connection",SqlCeNew:"New SQLServerCE Connection",SqlEdit:"Edit SQL Connection",SQLiteEdit:"Edit SQLite Connection",SQLiteNew:"New SQLite Connection",SqlNew:"New SQL Connection",SelectData:"Select Data",TeradataEdit:"Edit Teradata Connection",TeradataNew:"New Teradata Connection",UniDirectEdit:"Edit Uni Direct Connection",UniDirectNew:"New Uni Direct Connection",Unpin:"Unpin",UseBearerAuthentication:"Use Bearer Authentication",VistaDBEdit:"Edit VistaDB Connection",VistaDBNew:"New VistaDB Connection",XmlEdit:"Edit XML Data",XmlNew:"New XML Data",XmlType:"XML Type:"},FormDesigner:{Code:"Code",ColumnsOne:"One",ColumnsThree:"Three",ColumnsTwo:"Two",CompilingReport:"Compiling Report",DockingPanels:"Panels",HtmlPreview:"HTML Preview",JsPreview:"JS Preview",labelPleaseSelectTypeOfInterface:"Please, select type of interface",LoadImage:"Load Image...",LocalizePropertyGrid:"Localize Property Grid",MarginsNarrow:"Narrow",MarginsNormal:"Normal",MarginsWide:"Wide",OrderToolbars:"Order Toolbars",Others:"Others",Pages:"Pages",Preview:"Preview",PropertyChange:"Change of property '{0}'",RTPreview:"WinRT Preview",SetupToolbox:"Setup Toolbox",ShowDescription:"Show Description",SLPreview:"Silverlight Preview",title:"Designer",WebPreview:"Flash Preview"},FormDictionaryDesigner:{Actions:"Actions",AutoSort:"Auto Sort",BusinessObjectEdit:"Edit Business Object",CalcColumnEdit:"Edit Calculated Column",CalcColumnNew:"New Calculated Column",CategoryEdit:"Edit Category",CategoryNew:"New Category",ChildOfBusinessObject:"Child of Business Object",ChildSource:"Child Data Source:",ClickHere:"Click here",ColumnEdit:"Edit Column",ColumnNew:"New Column",CreateNewDataSource:"to create the new data source",CreateNewReport:"to create the new report",CsvSeparatorComma:"Comma",CsvSeparatorOther:"Other",CsvSeparatorSemicolon:"Semicolon",CsvSeparatorSpace:"Space",CsvSeparatorSystem:"System",CsvSeparatorTab:"Tab",DatabaseEdit:"Edit Database",DatabaseNew:"New Database",DataParameterEdit:"Edit Parameter",DataParameterNew:"New Parameter",DataSetToBusinessObjects:"DataSet To Business Objects",DataSourceEdit:"Edit Data Source",DataSourceNew:"New Data Source",DataSourcesNew:"New Data Sources",Delete:"Delete",DesignTimeQueryText:"Design-Time Query Text",DictionaryMerge:"Merge Dictionary...",DictionaryNew:"New Dictionary...",DictionaryOpen:"Open Dictionary...",DictionarySaveAs:"Save Dictionary As...",DragNewDataSource:"drag your data directly to this panel",DragNewReport:"drag your report directly to this panel",EditQuery:"Edit Query",ExecutedSQLStatementSuccessfully:"Executed SQL statement successfully",ExpressionNew:"New Expression",GetColumnsFromAssembly:"Get Columns from Assembly",ImportRelations:"Import Relations",LabelSeparator:"Separator:",MarkUsedItems:"Mark Used Items",NewBusinessObject:"New Business Object",NewItem:"New Item",OpenAssembly:"Open Assembly",ParentSource:"Parent Data Source:",Queries:"Queries",QueryNew:"New Query",QueryText:"Query Text",QueryTimeout:"Query Timeout",RelationEdit:"Edit Relation",RelationNew:"New Relation",ResourceEdit:"Edit Resource",ResourceNew:"New Resource",RetrieveColumns:"Retrieve Columns",RetrieveColumnsAllowRun:"Allow Run StoredProc",RetrieveColumnsAndParameters:"Retrieve Columns and Parameters",RetrieveParameters:"Retrieve Parameters",RetrievingDatabaseInformation:"Retrieving database information...",Run:"Run",SelectTypeOfBusinessObject:"Select Type of Business Object",SkipSchemaWizard:"Skip Schema Wizard",SortItems:"Sort Items",Synchronize:"Synchronize",SynchronizeHint:"Synchronizes contents of the Data Store and contents of the Dictionary",TextDropDataFileHere:"Drop Data File Here",TextDropFileHere:"Drop File Here",TextDropImageHere:"Drop Image File Here",title:"Dictionary Designer",ValueNew:"New Value",VariableEdit:"Edit Variable",VariableNew:"New Variable",ViewData:"View Data",ViewQuery:"View Query"},FormFormatEditor:{Boolean:"Boolean",BooleanDisplay:"Display:",BooleanValue:"Value:",Currency:"Currency",CurrencySymbol:"Currency Symbol:",Custom:"Custom",Date:"Date",DateTimeFormat:"Date Time Format",DecimalDigits:"Decimal Digits:",DecimalSeparator:"Decimal Separator:",FormatMask:"Format Mask:",Formats:"Formats",General:"General",GroupSeparator:"Group Separator:",GroupSize:"Group Size:",nameFalse:"False",nameNo:"No",nameOff:"Off",nameOn:"On",nameTrue:"True",nameYes:"Yes",NegativePattern:"Negative Pattern:",Number:"Number",Percentage:"Percentage",PercentageSymbol:"Percentage Symbol:",PositivePattern:"Positive Pattern:",Properties:"Properties",Sample:"Sample",SampleText:"Sample Text",TextFormat:"Text Format",Time:"Time",title:"Format",UseGroupSeparator:"Use Group Separator",UseLocalSetting:"Use Local Setting"},FormGlobalizationEditor:{AddCulture:"&Add Culture",AutoLocalizeReportOnRun:"Auto Localize Report on Run",GetCulture:"Get Culture Settings from Report",qnGetCulture:"Do you really want to get culture settings from report and override current culture settings?",qnSetCulture:"Do you really want to set culture settings to report components?",RemoveCulture:"&Remove Culture",SetCulture:"Set Culture Settings to Report",title:"Globalization Editor"},FormInteraction:{HyperlinkExternalDocuments:"Hyperlink to External Document",HyperlinkUsingInteractionBookmark:"Hyperlink using Bookmark",HyperlinkUsingInteractionTag:"Hyperlink using Tag"},FormOptions:{ShowDialogForms:"Show Dialog Forms",AutoSave:"Auto Save",AutoSaveReportToReportClass:"Auto Save Report to C# or VB.NET File",Default:"Default",Drawing:"Drawing",DrawMarkersWhenMoving:"Draw Markers When Moving",EditAfterInsert:"Edit After Insert",EnableAutoSaveMode:"Enable Auto Save Mode",FillBands:"Fill Bands",FillComponents:"Fill Components",FillContainers:"Fill Containers",FillCrossBands:"Fill Cross Bands",GenerateLocalizedName:"Generate Localized Name",Grid:"Grid",GridDots:"Dots",GridLines:"Lines",GridMode:"Grid Mode",GridSize:"Grid Size",groupAutoSaveOptions:"Auto save options",groupColorScheme:"Please select color scheme of GUI",groupGridDrawingOptions:"Grid drawing options",groupGridOptions:"Grid options",groupGridSize:"Grid size",groupMainOptions:"Main options for working with report designer",groupMarkersStyle:"Marker style",groupOptionsOfQuickInfo:"Options of Quick Info",groupPleaseSelectTypeOfGui:"Please, select the type of GUI",groupReportDisplayOptions:"Report display options",labelColorScheme:"Color Scheme:",labelInfoAutoSave:"Change parameters of reports autosaving",labelInfoDrawing:"Setting parameters of report drawing",labelInfoGrid:"How Grid is shown and used in a report",labelInfoGui:"Select the mode of using GUI in the report designer",labelInfoMain:"Setting basic parameters of the report designer",labelInfoQuickInfo:"Components Quick Info on a page",Main:"Main",MarkersStyle:"Markers Style",MarkersStyleCorners:"Corners",MarkersStyleDashedRectangle:"Dashed Rectangle",MarkersStyleNone:"None",MessageLeftRightNotValid:"Left and Right value is not a valid.",MessageTopBottomNotValid:"Top and Bottom value is not a valid.",Minutes:"{0} minutes",SaveReportEvery:"Save Report Every:",SelectUILanguage:"Select UI Language",ShowDimensionLines:"Show Dimension Lines",title:"Options",UseComponentColor:"Use Component Color for Filling",UseLastFormat:"Use Last Format"},FormPageSetup:{ApplyTo:"Apply to",Bottom:"Bottom:",Columns:"Columns",groupColumns:"Page columns",groupImage:"Watermark image",groupMargins:"Page margins",groupOrientation:"Paper orientation",groupPaper:"Paper size",groupPaperSource:"Paper source",groupText:"Watermark text",Height:"Height:",labelAngle:"Angle:",labelColumnGaps:"Column Gaps:",labelColumnWidth:"Column Width:",labelImageAlignment:"Image Alignment:",labelImageTransparency:"Image Transparency:",labelInfoColumns:"Setting page columns",labelInfoPaper:"Setting size and orientation for the current page",labelInfoUnit:"Page margins are specified in the current units",labelInfoWatermark:"Setting parameters for showing watermark",labelMultipleFactor:"Multiple Factor:",labelPaperSourceOfFirstPage:"Paper Source of First Page:",labelPaperSourceOfOtherPages:"Paper Source of Other Pages:",labelSelectBrush:"Select Brush:",labelSelectColor:"Select Color:",labelSelectFont:"Select Font:",labelSelectImage:"Select Image:",labelText:"Text:",Left:"Left:",Margins:"Margins",NumberOfColumns:"Number of Columns:",Orientation:"Orientation",PageOrientationLandscape:"Landscape",PageOrientationPortrait:"Portrait",Paper:"Paper:",RebuildReport:"Rebuild Report",Right:"Right:",ScaleContent:"Scale Content",Size:"Size:",title:"Page Setup",Top:"Top:",Width:"Width:"},FormReportSetup:{groupDates:"A date of report creation and a date of the last report change",groupDescription:"Report description",groupMainParameters:"Parameters which effect on report rendering",groupNames:"Report name, report alias, and report author",groupScript:"Script language of your report",groupUnits:"Size and coordinates in a report will be in specified units",labelInfoDescription:"Indicate the information of a report",labelInfoMain:"Change of basic report parameters",labelNumberOfPass:"Number of Pass:",labelReportCacheMode:"Report Cache Mode:",ReportChanged:"Report Changed:",ReportCreated:"Report Created:",title:"Report Options"},FormRichTextEditor:{Bullets:"Bullets",FontName:"Font Name",FontSize:"Font Size",Insert:"Insert Expression",title:"Rich Text Editor"},FormStyleDesigner:{Add:"Add Style",AddCollectionName:"Add Collection Name",ApplyStyleCollectionToReportComponents:"Apply Style Collection to Report Components",ApplyStyles:"Apply Styles",ColorCollectionEditor:"Color Collection Editor",CreateStyleCollection:"Create Style Collection",Duplicate:"Duplicate Style",GetStyle:"Get Style from Selected Components",MoreStyles:"More Styles",Open:"Open Style",qnApplyStyleCollection:"Do you want to apply style collection to report components?",Remove:"Remove Style",RemoveExistingStyles:"Remove Existing Styles",Save:"Save Style",Style:"Style",StyleCollectionsNotFound:"Style Collections Not Found!",title:"Style Designer"},FormSystemTextEditor:{Condition:"Condition",LabelDataBand:"Data Band:",LabelDataColumn:"Data Column:",LabelShowInsteadNullValues:"Show Instead Null Values:",LabelSummaryFunction:"Summary Function:",pageExpression:"Expression",pageSummary:"Summary",pageSystemVariable:"System Variable",RunningTotal:"Running Total",SummaryRunning:"Summary Running",SummaryRunningByColumn:"Column",SummaryRunningByPage:"Page",SummaryRunningByReport:"Report"},FormTitles:{ChartWizardForm:"Chart Wizard",ConditionEditorForm:"Condition",ConnectionSelectForm:"Select Type of Connection",ContainerSelectForm:"Select Container",DataAdapterServiceSelectForm:"Select Type of Data",DataRelationSelectForm:"Select Data Relation",DataSetName:"Enter DataSet Name",DataSourceSelectForm:"Select Data Source",DataSourcesNewForm:"New Data Sources",DataStoreViewerForm:"Data Store Viewer",DesignerApplication:"Report Designer",EventEditorForm:"Event Editor",ExpressionEditorForm:"Expression Editor",GroupConditionForm:"Group",InteractionDrillDownPageSelectForm:"Select Drill-Down Page",MasterComponentSelectForm:"Select Master Component",PageAddForm:"Add Page",PageSizeForm:"Page Size",PagesManagerForm:"Pages Manager",PromptForm:"Enter information to logon on to the database",ReportWizard:"Report Wizard",ServiceSelectForm:"Select Service",SqlExpressionsForm:"SQL Expressions",SubReportPageSelectForm:"Select Sub-Report Page",TextEditorForm:"Text Editor",ViewDataForm:"View Data",ViewerApplication:"Report Viewer"},FormViewer:{Bookmarks:"Bookmarks",Close:"Close",CollapseAll:"Collapse All",CompressedDocumentFile:"Compressed Document File",ContextMenu:"Context Menu",DocumentFile:"Document File...",Editor:"Editor",EncryptedDocumentFile:"Encrypted Document File",ExpandAll:"Expand All",Export:"Export...",Find:"Find",FirstPage:"First Page",FullScreen:"Full Screen",GoToPage:"Go To Page",HorScrollBar:"Horizontal Scroll Bar",LabelPageN:"Page:",LastPage:"Last Page",NextPage:"Next Page",Open:"Open...",PageControl:"Page Control",PageDelete:"Delete Page",PageDesign:"Edit Page...",PageNew:"New Page",PageNofM:"Page {0} of {1}",PageofM:"of {0}",PageSize:"Page Size...",PageViewModeContinuous:"Continuous",PageViewModeMultiplePages:"Multiple Pages",PageViewModeSinglePage:"Single Page",Parameters:"Parameters",PrevPage:"Previous Page",Print:"Print...",qnPageDelete:"Do you want to delete page?",Save:"Save...",SendEMail:"Send Email...",StatusBar:"Status Bar",Thumbnails:"Thumbnails",title:"Viewer",titlePageSettings:"Page Settings",Toolbar:"Tool Bar",VerScrollBar:"Vertical Scroll Bar",ViewMode:"View Mode",Zoom:"Zoom",ZoomMultiplePages:"Multiple Pages",ZoomOnePage:"One Page",ZoomPageWidth:"Page Width",ZoomTwoPages:"Two Pages",ZoomXXPages:"{0} X {1} Pages",ZoomXXPagesCancel:"Cancel"},FormViewerFind:{Close:"Close",FindNext:"Find Next",FindPrevious:"Find Previous",FindWhat:"Find What:"},Gauge:{AddNewItem:"Add New Item",BarRangeList:"Bar Range List",GaugeEditorForm:"Gauge Editor",Kind:"Kind",LinearBar:"Linear Bar",LinearMarker:"Linear Marker",LinearRange:"Linear Range",LinearRangeList:"Linear Range List",LinearScale:"Linear Scale",LinearTickLabelCustom:"Linear Tick Label Custom",LinearTickLabelMajor:"Linear Tick Label Major",LinearTickLabelMinor:"Linear Tick Label Minor",LinearTickMarkCustom:"Linear Tick Mark Custom",LinearTickMarkMajor:"Linear Tick Mark Major",LinearTickMarkMinor:"Linear Tick Mark Minor",Needle:"Needle",RadialBar:"Radial Bar",RadialMarker:"Radial Marker",RadialRange:"Radial Range",RadialRangeList:"Radial Range List",RadialScale:"Radial Scale",RadialTickLabelCustom:"Radial Tick Label Custom",RadialTickLabelMajor:"Radial Tick Label Major",RadialTickLabelMinor:"Radial Tick Label Minor",RadialTickMarkCustom:"Radial Tick Mark Custom",RadialTickMarkMajor:"Radial Tick Mark Major",RadialTickMarkMinor:"Radial Tick Mark Minor",StateIndicator:"State Indicator",StateIndicatorFilter:"State Indicator Filter",TickCustomValue:"Tick Custom Value"},Gui:{barname_cancel:"Cancel",barname_caption:"New Toolbar",barname_msginvalidname:"Toolbar name cannot be empty.",barname_name:"&Toolbar Name:",barname_ok:"OK",barrename_caption:"Rename Toolbar",barsys_autohide_tooltip:"Auto-Hide",barsys_close_tooltip:"Close",barsys_customize_tooltip:"Customize",colorpicker_morecolors:"&More Colors...",colorpicker_nofill:"&No Fill",colorpicker_standardcolorslabel:"Standard Colors",colorpicker_themecolorslabel:"Theme Colors",colorpickerdialog_bluelabel:"&Blue:",colorpickerdialog_cancelbutton:"Cancel",colorpickerdialog_caption:"Colors",colorpickerdialog_colormodellabel:"Color Model:",colorpickerdialog_currentcolorlabel:"Current",colorpickerdialog_customcolorslabel:"Colors:",colorpickerdialog_greenlabel:"&Green:",colorpickerdialog_newcolorlabel:"New",colorpickerdialog_okbutton:"OK",colorpickerdialog_redlabel:"&Red:",colorpickerdialog_rgblabel:"RGB",colorpickerdialog_standardcolorslabel:"Colors:",colorpickerdialog_tabcustom:"Custom",colorpickerdialog_tabstandard:"Standard",cust_btn_close:"Close",cust_btn_delete:"Delete",cust_btn_keyboard:"&Keyboard...",cust_btn_new:"&New...",cust_btn_rename:"&Rename...",cust_btn_reset:"&Reset...",cust_btn_resetusage:"&Reset my usage data",cust_caption:"Customize",cust_cbo_fade:"Fade",cust_cbo_none:"(None)",cust_cbo_random:"Random",cust_cbo_slide:"Slide",cust_cbo_system:"System Default",cust_cbo_unfold:"Unfold",cust_chk_delay:"Show full menus after a short delay",cust_chk_fullmenus:"Always show full menus",cust_chk_showsk:"Show &Shortcut Keys in ScreenTips",cust_chk_showst:"Show Screen&Tips on Toolbars",cust_lbl_cats:"Cate&gories:",cust_lbl_cmds:"Comman&ds:",cust_lbl_cmdsins:"To add a command to Bar select the category and drag the command out of this box to a Bar.",cust_lbl_menuan:"Menu Animation:",cust_lbl_other:"Other:",cust_lbl_pmt:"Personalized Menus and Toolbars",cust_lbl_tlbs:"Toolb&ars:",cust_mnu_addremove:"&Add or Remove Buttons",cust_mnu_cust:"Customize...",cust_mnu_reset:"Reset Bar",cust_mnu_tooltip:"Bar Options",cust_msg_delete:"Are you sure you want to delete the <barname> toolbar?",cust_pm_begingroup:"Begin Group",cust_pm_delete:"Delete",cust_pm_name:"Name:",cust_pm_reset:"Reset",cust_pm_stydef:"Default Style",cust_pm_styimagetext:"Image and Text (Always)",cust_pm_stytextonly:"Text Only (Always)",cust_tab_commands:"Commands",cust_tab_options:"Options",cust_tab_toolbars:"Toolbars",mdisysmenu_close:"Close",mdisysmenu_maximize:"Maximize",mdisysmenu_minimize:"Minimize",mdisysmenu_move:"Move",mdisysmenu_next:"Next",mdisysmenu_restore:"Restore",mdisysmenu_size:"Size",mdisystt_close:"Close",mdisystt_minimize:"Minimize",mdisystt_restore:"Restore",monthcalendar_clearbutton:"Clear",monthcalendar_todaybutton:"Today",navbar_navpaneoptions:"Na&vigation Pane Options...",navbar_showfewerbuttons:"Show &Fewer Buttons",navbar_showmorebuttons:"Show &More Buttons",navPaneCollapseTooltip:"Collapse the Navigation Pane",navPaneExpandTooltip:"Expand the Navigation Pane",sys_custombar:"Custom Bar",sys_morebuttons:"More Buttons"},HelpComponents:{StiBarCode:"This component allows showing bar codes in a report. Bar code data are sent to an object as a string. The string may contain any symbols but only allowed symbols for the selected chart can be displayed.",StiChart:"This component allows showing charts in a report. Different types of charts are available. Among them are bar, line, pie, doughnut, lines, areas, Gantt, scatter charts etc. ",StiCheckBox:'This component allows showing a checkbox in a report. It can display two modes: "enable" or "disable".',StiChildBand:"The Child band can be used to output two bands on one data row.",StiClone:"This component is used to clone parts of a report into a required part of a report. Cloning can be applied only to the panel contents.",StiColumnFooterBand:"This band is used to output footers of columns on the Data band. The Column Footer band is output once under each column. All components which are placed on this band will also be output under each column.",StiColumnHeaderBand:"This band is used to output column headers. The Column Header band is used to output only once. All components which are placed on the band can be output above each column.",StiContainer:"This is the rectangular region where other components, including bands, can be placed. When moving the container the components in it will be moved too. The container can be placed both on a band and on a page.",StiCrossDataBand:"This band is connected to the data source. It is output as many times as there are rows in the data source. A Cross band is output from left to right.",StiCrossFooterBand:"This band is used to output footers of the Cross-Data band. The band is output once after all rows of the Data band. A Cross band is output from left to right.",StiCrossGroupFooterBand:"This band is used to output footers of a group. It is placed under the Cross-Data band. Each Cross-Footer belongs to the specified Cross-Header band. A Cross band is output from left to right.",StiCrossGroupHeaderBand:"This band is the basic one for the report rendering with grouping, when Cross-Data are used. It is impossible to create grouping without this band. The components for showing information by the group are placed on the group header. The information can be group name, date, condition of grouping etc. The band is output in the beginning of each group. A Cross band is output from left to right.",StiCrossHeaderBand:"This band is used to output headers. It is used in association with the Cross band. A Cross band is output from left to right.",StiCrossTab:"The cross-tab component is used for the structured data representation as a table.",StiDataBand:"The Data band is connected to the data source and is output as many times as there are rows in the data source.",StiEmptyBand:"This band is used to fill free space on the bottom of a page. This band fills free space on each page of a report.",StiFooterBand:"This band is used to output summary by the Data band. It is placed under the Data band and is output once after all data rows which Data band outputs.",StiGauge:"The component allows you to display a value within a predefined range. It can have different graphical representation.",StiGroupFooterBand:"The Group Footer band is used to output the group footer. This band is placed after the Data band. And this is the Data band with what the Group Header band is bound. Each Group Footer band belongs to the specified Group Header band. The Group Footer band will not be output without the Group Header band.",StiGroupHeaderBand:"This band is the basic band for rendering reports with grouping. The components for showing information by this group are placed on the group header. It can be group name, date, condition of grouping etc. This band is output once in the beginning of each group.",StiHeaderBand:"This band is used to output headers. It is used together with the data band.",StiHierarchicalBand:"This band is connected to the data source and output as many times as there are rows in the data source. Data are output as a tree.",StiHorizontalLinePrimitive:"This component is used to output a line.",StiImage:"This component is used to output images. It supports the following graphic formats, such as BMP, JPG, JPEG, GIF, TIFF, PNG, ICO, WMF, EMF.",StiMap:"This component is used to display data that is geographically targeted.",StiOverlayBand:"This band is used to output watermarks on a page.",StiPageFooterBand:"This band is used to output the information on the bottom of each page such as page numbers, dates, and other additional information.",StiPageHeaderBand:"This band is used to output the page header such as page numbers, dates, and other additional information. It is output on the top of each page.",StiPanel:"A rectangular region that can contain other components, including bands. When the panel is moved the components in it are moved too. A panel can be placed either on a band or on a page.",StiRectanglePrimitive:"This component is used to output rectangles.",StiReportSummaryBand:"This band is used to output summaries through the entire report. It is output once in the end of a report.",StiReportTitleBand:"This band is used to output the report title. It is output in the beginning of a report.",StiRichText:"This component is used to output and edit the RTF text. It also supports loading and saving files in the RTF format.",StiRoundedRectanglePrimitive:"This component is used to output rounded rectangles.",StiShape:"This component is used to insert ready-made shapes, such as arrows, diagonal line down, diagonal line up, horizontal line, left and right lines, oval, rectangle, rounded rectangle, top and bottom lines, triangle, vertical line.",StiSubReport:"This component is used to output additional data in different places of a report.",StiTable:"This component is a set of data elements that is organized using a model of vertical columns and horizontal rows.",StiText:"This component is a basic object to output data as a text.",StiTextInCells:"The component is used to output a text in cells. It is frequently used for creating forms.",StiVerticalLinePrimitive:"This component is used to output vertical lines.",StiWinControl:"The component allows showing visual controls from .NET Framework.",StiZipCode:"This component is used to output the ZIP code."},HelpDesigner:{Align:"Change the location of selected components.",AlignBottom:"Align the contents of a component to bottom.",AlignCenter:"Align the contents of a component to center.",AlignComponentBottom:"Allows you to align objects horizontally along the bottom edge of selected components.",AlignComponentCenter:"Allows you to align objects horizontally along the center edge of selected components.",AlignComponentLeft:"Allows you to align objects vertically along the left edge of selected components.",AlignComponentMiddle:"Allows you to align objects vertically along the center edge of selected components.",AlignComponentRight:"Allows you to align objects vertically along the right edge of selected components.",AlignComponentTop:"Allows you to align objects horizontally along the top edge of selected components.",AlignLeft:"Align the contents of a component to left.",AlignMiddle:"Center the contents by the top and bottom borders of a component.",AlignRight:"Align contents of a component to right.",AlignToGrid:"Align the selected components to grid nodes.",AlignTop:"Align the contents of a component to top.",AlignWidth:"Justify the contents of a component.",Angle:"Rotate the contents of the component.",AngleWatermark:"The watermark text rotation angle.",Background:"Change the background of the selected components.",biConditions:"Control list of conditions of the selected components.",BorderColor:"Select the border color of the selected component.",BorderSidesAll:"Switch on all borders sides of the selected components.",BorderSidesBottom:"Switch on bottom border side of the selected components.",BorderSidesLeft:"Switch on left border side of the selected components.",BorderSidesNone:"Switch off all borders sides of the selected components.",BorderSidesRight:"Switch on right border side of the selected components.",BorderSidesTop:"Switch on top border side of the selected components.",BorderStyle:"Select the border style of the selected components.",BringToFront:"Bring the selected component to front.",CenterHorizontally:"Allows you to align a component horizontally relative to container edges in what it is placed.",CenterVertically:"Allows you to align a component vertically relative to container edges in what it is placed.",Close:"Close the Report Designer.",Columns:"Split a page into columns.",ComponentSize:"Change the size of the selected components.",CopyStyle:"Copy Style",CopyToClipboard:"Copy to Clipboard",CurrencySymbol:"Select the currency symbol.",DataStore:"Show data, registered in a report.",DateTimeFormat:"Select the date and time format for the selected components.",DockingPanels:"Panel settings.",DockStyleBottom:"Dock selected components to the bottom side.",DockStyleFill:"Dock selected components to all sides.",DockStyleLeft:"Dock selected components to the left side.",DockStyleNone:"Undock selected components.",DockStyleRight:"Dock selected components to the right side.",DockStyleTop:"Dock selected components to the top side.",FontGrow:"Make the text size larger.",FontName:"The text font.",FontNameWatermark:"The watermark text font.",FontShrink:"Make the text size smaller.",FontSize:"Font size.",FontSizeWatermark:"Change the font size.",FontStyleBold:"Make the text bold.",FontStyleBoldWatermark:"Make the text of the watermark bold.",FontStyleItalic:"Make the text Italic.",FontStyleItalicWatermark:"Make the watermark text Italic.",FontStyleUnderline:"Make the text underlined.",FontStyleUnderlineWatermark:"Make the watermark text underlined.",FormatBoolean:"This format is used to format values of the boolean type.",FormatCurrency:"Display a value as currency. It allows you to display a number with the default currency symbol.",FormatCustom:"This type is used to show values according to custom requirements. This type allows data formatting in the Format Mask.",FormatDate:"Display a value as date. The date format is based on the regional date settings.",FormatGeneral:"Display a value without specific format.",FormatNumber:"It is used for general display of numbers.",FormatPercentage:"Display a value as percentage. Numbers are multiplied by 100 to convert them to percentages.",FormatTime:"Display a value as time. The time format is based on the regional time settings.",FormNew:"Create a new dialog form.",GridMode:"Show grid in lines or dots.",ImageAlignment:"Put a watermark image on a page.",ImageTransparency:"Change the transparency of the watermark image.",Link:"Link the component to the current container.",LoadImage:"Load watermark images from the file.",Lock:"Lock the component. The component cannot be moved and resized.",MainMenu:"Click here to see the list of possible operations with a report, including opening, closing, and previewing.",MakeHorizontalSpacingEqual:"Allows you to set equal horizontal spacing between selected components.",MakeVerticalSpacingEqual:"Allows you to set equal vertical spacing between selected components.",Margins:"Select the margins of the current page.",menuCheckIssues:"Check through a report to find errors, warnings and get recommendations.",menuDesignerOptions:"Setup report designer options.",menuEditClearContents:"Clear the contents.",menuEditCopy:"Copy the selected components and put them on the Clipboard.",menuEditCut:"Cut the selected components from a report and put them on the Clipboard.",menuEditDelete:"Delete selected components.",menuEditPaste:"Paste the contents of the Clipboard into report.",menuFAQPage:"Go to the web page with frequently asked questions.",menuGlobalizationStrings:"Call the Globalization Strings editor of the current report.",menuHelpAboutProgramm:"Get information about the version of report generator and the version of .NET Framework.",menuHomePage:"Go to the Home page of the product.",menuPageOptions:"Setup the basic parameters of the current page. All page options can be changed using the Property panel.",menuPagesManager:"Run the Pages Manager. It allows moving pages, deleting pages, and creating new pages.",menuPreviewSettings:"Call the Preview Settings editor of the current report. Settings will be applied only when viewing the current report.",menuPrint:"Select a printer, number of copies, and other printing options before printing.",menuPrintPreview:"Preview a report before printing.",menuPrintQuick:"Print a report directly to the default printer. The printing dialog is not displayed.",menuReportOptions:"Setup the basic report options. All options can be changed using the Property panel.",menuStyleDesigner:"Call the Style Designer of the current report.",menuSupport:"Go to the support page to ask a question.",menuViewAlignToGrid:"Align components to grid.",menuViewNormal:"Normal view of a page.",menuViewPageBreakPreview:"The mode of showing a page with borders of segments.",menuViewQuickInfo:"Show quick information of components: component name, alias, contents, events etc.",menuViewShowGrid:"Turn on grid lines to which you can align objects in a report.",menuViewShowHeaders:"Show headers of bands.",menuViewShowOrder:"Show order of components on a page.",menuViewShowRulers:"View the rulers, used to measure and line up objects on a page.",MoveBackward:"Move a component to one level higher in order of placing components on a page.",MoveForward:"Move a component to one level lower in order of placing components on a page.",Orientation:"Switch the pages between portrait and landscape layouts.",PageDelete:"Delete current page from a report.",PageNew:"Create a new page.",PageSetup:"Show the Page Setup dialog box.",PageSize:"Choose the paper size for the current page of a report.",PagesManager:"Run the Pages Manager.",PressF1:"Press F1 for More Details",Redo:"Redo the previously canceled change in a report.",ReportNew:"Create a new report.",ReportOpen:"Open a report in the designer.",ReportPreview:"Preview an edited report in the viewer.",ReportSave:"Save currently edited report.",SelectAll:"Select all components on the current page.",SelectUILanguage:"Select the UI language.",SendToBack:"Move the selected component to back relative to other components.",ServicesConfigurator:"Run the Services Configurator.",Shadow:"Show the shadow of a component.",ShowBehind:"Show the watermark text behind the components.",ShowImageBehind:"Put the watermark image behind all components on a page.",ShowToolbox:"Show the toolbox.",StimulsoftHelp:"Help Stimulsoft",StyleDesigner:"Run Style Designer.",TellMeMore:"Tell me more",Text:"Watermark text.",TextBrush:"Change the text color.",TextBrushWatermark:"Change the text color of the watermark.",TextColor:"Change the text color.",TextFormat:"Select the format of values.",ToolbarStyle:"Set selected style to all selected components.",Undo:"Undo the latest change in a report.",WordWrap:"Wrap the text of a component.",Zoom:"Specify the zoom level of the report."},HelpDialogs:{StiButtonControl:"Represents the Button control.",StiCheckBoxControl:"Represents the Flag control.",StiCheckedListBoxControl:"Shows the List object, in what a flag on the left is shown for each elements.",StiComboBoxControl:"Represents the ComboBox that is used to either type a value directly into the control or choose from the list of existing options.",StiDateTimePickerControl:"Represents the control that allows selecting the date and time. It also allows you to output the date and time in specified format.",StiGridControl:"Represents the Grid control that consist of rows and columns.",StiGroupBoxControl:"Represents the control that creates a container with borders and a header for the UI content.",StiLabelControl:"A label is an user interface control which displays text on a form. It is usually a static control having no interactivity.",StiListBoxControl:"Contains the list of elements for selection.",StiListViewControl:"Represents the ListView control that shows the list of data elements.",StiLookUpBoxControl:"Contains the list of elements for selection.",StiNumericUpDownControl:"Represents the control that shows numeric values.",StiPanelControl:"The Panel elements are used for placing and arrangement objects.",StiPictureBoxControl:"Represents the control for showing an image.",StiRadioButtonControl:"Represents the Radio button control that allows the user to choose only one of a predefined set of options. ",StiRichTextBoxControl:"Represents the RichText control with widen editing.",StiTextBoxControl:"Represents the Text control that is used for showing or editing a text.",StiTreeViewControl:"Represents the control that is used to show the hierachical data as a tree."},HelpViewer:{AddPageBreaks:"Visual separator of report pages.",AllowAddOrModifyTextAnnotations:"Limited access to work with annotations in the document.",AllowCopyTextAndGraphics:"Limited access to copying information.",AllowEditable:"Allows changing components with the Editable property enabled.",AllowModifyContents:"Limited access to the text editing.",AllowPrintDocument:"Limited access to the print operation.",Bookmarks:"Show the bookmark panel that is used for quick navigation to jump directly to a bookmarked location.",BorderType:"The border type of components: simple - drawing borders of components with characters +, -, |; Unicode single - drawing the borders with single box-drawing characters, Unicode double - drawing the borders with double box-drawing characters.",Close:"Close the Report Preview.",CloseDotMatrix:"Close the Dot Matrix Viewer.",Compressed:"Compression of the ready document. It is recommended to always include file compression.",CompressToArchive:"Pack all files and folders in the zip archive.",ContinuousPages:"The mode of placing report pages as a vertical strip.",CurrentPage:"Processing the current page. If this option is selected, then a selected report page will be processed.",CutEdges:"Trim the borders of report pages.",CutLongLines:"Trim the long lines (text lines) by the borders of components.",DigitalSignature:"The digital signature of the file.",DitheringType:"Dithering type: None - no dithering, Ordered, FloydSt. - with dithering.",DotMatrixMode:"This mode allows you to see how will a report look like if to print it on a dot matrix printer.",DrawBorder:"Drawing the borders of components with graphic characters.",Edit:"Edit components.",EmbeddedFonts:"Embed the font files into a PDF file.",EmbeddedImageData:"Embed images directly into the HTML file.",Encoding:"Encoding the report text after export.",EncodingData:"Encoding data file.",EncryptionKeyLength:"The length of the encryption key. The longer the length is, the more difficult it is to decrypt the document, and, accordingly, the document security is on higher priority.",ExportDataOnly:"Export only Data bands (the Table component, Hierachical band).",ExportEachPageToSheet:"Export each report page in a separate Excel sheet.",ExportMode:"Apply a filter condition when exporting. Data Only - only data bands (Table component, Hierarchical Band) will be exported. Data and Headers/Footers - data bands (Table component, Hierarchical Band) and their headers/footers will be exported. All Bands - All the report bands will be exported.",ExportModeHtml:"The way of the HTML page markup.",ExportModeRtf:"Presentation of the report data after export. The Table - the report will look like a table, where each report component is a table cell. Frame - each component will look like a single frame, but without any relationship between them.",ExportObjectFormatting:"Apply formatting to export data from Data bands (Table component, Hierachical band).",ExportPageBreaks:"Show the borders of the report pages on the Excel sheet.",ExportRtfTextAsImage:"Convert the RTF text into the image. If the option is enabled, then, when exporting, RichText decomposes into simpler primitives supported by the PDF format. RichText with complex formatting (embedded images, tables) cannot always be converted correctly. In this case it is recommended to enable this option.",Find:"Find a text in the report.",FullScreen:"Full screen reading.",GetCertificateFromCryptoUI:"Using the interface of the system cryptography library.",ImageCompressionMethod:"The compression method: JPEG - this may cause loss of quality, Flate – no quality loss, Simple, Ordered, FloydSt. - images are output in monochrome.",ImageFormat:"The image format in the finished file.",ImageQuality:"Allows you to choose the ratio of the image quality/size of the file. The higher the quality is, the larger is the size of the finished file.",ImageQualityPdf:"The option is available only in JPEG compression, and allows you to select the ratio of the image quality/size of the file. The higher the quality is, the larger is the size of the finished file.",ImageResolution:"The number of pixels per inch. The higher the number of pixels is, the better is the quality of the image. The size of the finished file is much larger.",ImageType:"The color scheme of the image: color - image after exporting will fully match the image in the viewer; gray – an image after exporting will be of the gray shade; monochrome - the images will be strictly black and white. At the same time, it should be considered that the monochrome has three modes None, Ordered, FloydSt.",KillSpaceLines:"Remove blank lines (rows) in the document.",MultipleFiles:"Each report page can be a separate file.",Open:"Open the previously saved report in the window of preview.",OpenAfterExport:"Automatic opening of the created document (after export) by the program set for these file types.",OwnerPassword:"The password to access operations with files.",PageAll:"Processing of all report pages.",PageDelete:"Delete the selected report page.",PageDesign:"Edit the selected page in the report designer.",PageFirst:"Go to the first report page.",PageGoTo:"Go to the specified report page.",PageLast:"Go to the last report page.",PageNew:"Add a new page to a report.",PageNext:"Go to the next report page.",PagePrevious:"Go to the previous report page.",PageSize:"Change the page parameters in a report.",Parameters:"Showing parameters panel which is used when report rendering.",PdfACompliance:"Support for the standard of the long-term archiving and storing of electronic documents.",Print:"Print a report.",PutFeedPageCode:"Feed pages in the final document with a special character.",RangePages:'The page numbers to be processed. You can specify a single page, a list of pages (using a comma as the separator), as well as specify the range by setting the start page of the range separated by "-" and the end page of the range. For example: 1,3,5-12.',RemoveEmptySpaceAtBottom:"Minimize the empty space at the bottom of the page.",RestrictEditing:"Limits on changes in a Word document.",Save:"Save a report for further using.",ScaleHtml:"The size (scale) of report pages and items after the export.",ScaleImage:"The size (scale) of the report after exporting. The lower scale is, the greater is the number of pixels per inch, and vice versa.",SendEMail:"Send a report via Email.",Separator:"Separator between the data in the CSV file.",SkipColumnHeaders:"Enable/disable the column headers.",StandardPdfFonts:"14 standard Adobe fonts. If this option is enabled, then only standard 14 fonts will be used in the PDF file. All report fonts are converted into them.",SubjectNameString:"Certificate identifier. The identifier is the name of the certificate owner (full line) or a part of the name (substring).",Thumbnails:"Show the thumbnails that can be used for quick navigation to find the section of the report that you want to jump to.",TiffCompressionScheme:"Compression scheme for TIFF files.",ToolEditor:"This tool allows you to edit contents of text components directly in the report viewer.",TypeExport:"The file the report will be converted into.",UseDefaultSystemEncoding:"Use system coding by default or specify the encoding by standard.",UseOnePageHeaderAndFooter:"Define the page bands Header and Footer as the header and footer of the Microsoft Word document.",UsePageHeadersAndFooters:"Define the bands Page Header and Footer as the header and footer of the document in Microsoft Word.",UserPassword:"The password required to open the document.",UseUnicode:"Extended support for encoding characters. It affects on the internal character encoding within the PDF file, and improves the copying of the text from the PDF file.",ViewModeContinuous:"Show all report pages as a vertical ribbon.",ViewModeMultiplePages:"Zoom the report so that as many pages as can be fit in window are displayed.",ViewModeSinglePage:"Show a single page in the window of preview.",ZoomMultiplePages:"Zoom the report so that the selected pages fit in the window.",ZoomOnePage:"Zoom the report so that an entire page fits in the window.",ZoomPageWidth:"Zoom the report so that the width of the page matches the width of the window.",ZoomTwoPages:"Zoom the report so that two pages fit in the window.",ZoomTxt:"The report size (scale): X - change the horizontal scale, Y - to change the vertical scale."},Interface:{Mouse:"Mouse",MouseDescription:"Optimized for used with mouse",Touch:"Touch",TouchDescription:"Optimized for used with touch"},MainMenu:{menuCheckIssues:"Check for Issues",menuContextClone:"Clone...",menuContextDesign:"Design...",menuContextTextFormat:"Text Format...",menuConvertToCheckBox:"Convert to CheckBox",menuConvertToImage:"Convert to Image",MenuConvertToRichText:"Convert to RichText",menuConvertToText:"Convert to Text",menuDeleteColumn:"Delete Column",menuDeleteRow:"Delete Row",menuEdit:"&Edit",menuEditBusinessObjectFromDataSetNew:"New Business Object From DataSet...",menuEditBusinessObjectNew:"New Business Object...",menuEditCalcColumnNew:"New Calculated Column...",menuEditCantRedo:"Can't Redo",menuEditCantUndo:"Can't Undo",menuEditCategoryNew:"New Category...",menuEditClearContents:"Clear Contents",menuEditColumnNew:"New Column...",menuEditConnectionNew:"New Connection...",menuEditCopy:"&Copy",menuEditCut:"Cu&t",menuEditDataParameterNew:"New Parameter...",menuEditDataSourceNew:"New Data Source...",menuEditDataSourcesNew:"New Data Sources...",menuEditDelete:"&Delete",menuEditEdit:"Edit",menuEditImportRelations:"Import Relations...",menuEditPaste:"&Paste",menuEditRedo:"&Redo",menuEditRedoText:"&Redo {0}",menuEditRelationNew:"New Relation...",menuEditRemoveUnused:"Remove Unused Items",menuEditResourceNew:"New Resource...",menuEditSelectAll:"Select &All",menuEditSynchronize:"Synchronize",menuEditUndo:"&Undo",menuEditUndoText:"&Undo {0}",menuEditVariableNew:"New Variable...",menuEditViewData:"View Data...",menuFile:"&File",menuFileClose:"&Close",menuFileDashboardNew:"New Dashboard",menuFileDashboardOpen:"&Open Dashboard...",menuFileDashboardSaveAs:"Save Dashboard &As...",menuFileExit:"E&xit",menuFileExportXMLSchema:"Export XML Schema...",menuFileFormNew:"New Form",menuFileImportXMLSchema:"Import XML Schema...",menuFileMerge:"Merge...",menuFileMergeXMLSchema:"Merge XML Schema...",menuFileNew:"&New",menuFileOpen:"&Open...",menuFilePageDelete:"Delete Page",menuFilePageNew:"New Page",menuFilePageOpen:"Open Page...",menuFilePageSaveAs:"Save Page As...",menuFilePageSetup:"Page Setup...",menuFileRecentDocuments:"Recent Documents",menuFileRecentLocations:"Recent Locations",menuFileReportNew:"&New Report...",menuFileReportOpen:"&Open Report...",menuFileReportOpenFromGoogleDocs:"Open Report from Google Docs...",menuFileReportPreview:"&Preview",menuFileReportSave:"&Save Report",menuFileReportSaveAs:"Save Report &As...",menuFileReportSaveAsToGoogleDocs:"Save Report As to Google Docs...",menuFileReportSetup:"Report &Setup...",menuFileReportWizardNew:"New Report with &Wizard...",menuFileSave:"&Save",menuFileSaveAs:"Save As...",menuHelp:"&Help",menuHelpAboutProgramm:"&About...",menuHelpContents:"&Contents",menuHelpFAQPage:"FAQ Page",menuHelpHowToRegister:"How to Register",menuHelpProductHomePage:"Product Home Page",menuHelpSupport:"&Support",menuInsertColumnToLeft:"Insert Column To Left",menuInsertColumnToRight:"Insert Column To Right",menuInsertRowAbove:"Insert Row Above",menuInsertRowBelow:"Insert Row Below",menuJoinCells:"Join Cells",menuSelectColumn:"Select Column",menuSelectRow:"Select Row",menuTable:"Table",menuTools:"&Tools",menuToolsDataStore:"Data &Store...",menuToolsDictionary:"&Dictionary...",menuToolsOptions:"&Options...",menuToolsPagesManager:"&Pages Manager...",menuToolsServicesConfigurator:"Services &Configurator...",menuToolsStyleDesigner:"Style &Designer...",menuView:"&View",menuViewAlignToGrid:"Align to Grid",menuViewNormal:"&Normal",menuViewOptions:"Options",menuViewPageBreakPreview:"Page &Break Preview",menuViewQuickInfo:"Quick Info",menuViewQuickInfoNone:"None",menuViewQuickInfoOverlay:"Display Over Components",menuViewQuickInfoShowAliases:"Show Aliases",menuViewQuickInfoShowComponentsNames:"Show Components Names",menuViewQuickInfoShowContent:"Show Content",menuViewQuickInfoShowEvents:"Show Events",menuViewQuickInfoShowFields:"Show Fields",menuViewQuickInfoShowFieldsOnly:"Show Fields Only",menuViewShowGrid:"Show Grid",menuViewShowHeaders:"Show Headers",menuViewShowInsertTab:"Show 'Insert' Tab",menuViewShowOrder:"Show Order",menuViewShowRulers:"Show Rulers",menuViewShowToolbox:"Show Toolbox",menuViewToolbars:"Toolbars"},Map:{GroupAsia:"Asia",GroupEurope:"Europe",GroupNorthAmerica:"North America",GroupOceania:"Oceania",GroupSouthAmerica:"South America",GroupWorld:"World",LinkDataForm:"Link Data",MapEditorForm:"Map Editor"},Messages:{MessageTimeOutExpired:"Command timeout has expired!",TextRegistrationSuccessfully:'\r\n      Registration completed successfully!\r\n\r\n      The Email was sent to "{0}".\r\n      It contains a link to confirm your registration. To complete the registration please follow the link from the email you received.\r\n    ',ThisFieldIsNotSpecified:"This Field is Not Specified!",DoNotShowAgain:"Do not show again"},Notices:{NewVersionsAvailable:"New version available!",WouldYouLikeToUpdateNow:"Would you like to update now?",AccessDenied:"Access Denied!",AccountLocked:"Your account is locked! In order to resolve it, please send your request to sales@stimulsoft.com!",ActivationExpiriedBeforeFirstRelease:"Your Subscription of Stimulsoft Reports.Ultimate expired earlier than the first version of our Stimulsoft Reports.Server was released!",ActivationLicenseIsNotCorrect:"License file is not correct! Please contact our sales department at sales@stimulsoft.com!",ActivationLockedAccount:"Your account is locked. Please contact our sales department at sales@stimulsoft.com!",ActivationMaxActivationsReached:"You reached the maximum number of activations. Please contact our sales department at sales@stimulsoft.com!",ActivationServerIsNotAvailableNow:"Stimulsoft Activation Server is not available now! Please try again later.",ActivationServerVersionNotAllowed:"You cannot activate this version of Stimulsoft Reports.Server because your Subscription Program expired! Please log in to your account and check which version of the Stimulsoft Reports.Server you can install and activate.",ActivationSomeTroublesOccurred:"An error occurred during activation. Please try again later.",ActivationUserNameOrPasswordIsWrong:"Your user name (Email) or password is wrong!",ActivationWrongAccountType:"Your account type does not allow to activate Stimulsoft Reports.Server!",AuthAccountCantBeUsedNow:"The account cannot be used now!",AuthAccountIsNotActivated:"The account is not activated yet! Please follow the instructions sent to the Email during registration.",AuthCantChangeRoleBecauseLastAdministratorUser:"The user role cannot be changed because this is the last administrator user in this workspace!",AuthCantChangeRoleBecauseLastSupervisorUser:"The user role cannot be changed because this is the last supervisor user at this server!",AuthCantChangeSystemRole:"The system role cannot be changed!",AuthCantDeleteHimselfUser:"The user cannot delete himself!",AuthCantDeleteLastAdministratorUser:"The user cannot be deleted because this is the last administrator user in this workspace!",AuthCantDeleteLastSupervisorUser:"The user cannot be deleted because this is the last supervisor user at this server!",AuthCantDeleteSystemRole:"Cannot delete this role, because it is a system role!",AuthCantDisableUserBecauseLastAdministratorUser:"The user cannot be disabled because this is the last administrator user in this workspace!",AuthCantDisableUserBecauseLastSupervisorUser:"The user cannot be disabled because this is the last supervisor user at this server!",AuthFirstNameIsNotSpecified:"The first name is not specified!",AuthLastNameIsNotSpecified:"The last name is not specified!",AuthOAuthIdNotSpecified:"The OAuth identificator is not specified!",AuthPasswordIsNotCorrect:"The password is not correct!",AuthPasswordIsNotSpecified:"The password is not specified!",AuthPasswordIsTooShort:"The password is too short (a minimum length is 6 chars)!",AuthRoleCantBeDeletedBecauseUsedByUsers:"You cannot delete the role because it is used by other users.",AuthRoleNameAlreadyExists:'The role with the specified name "{0}" already exists!',AuthRoleNameIsSystemRole:'The role with the specified name "{0}" is a system role!',AuthSendMessageWithInstructions:'A message with further instructions is sent to "{0}"!',AuthUserHasLoggedOut:"You have logged out!",AuthUserNameAlreadyExists:"The username (Email) is already in use!",AuthUserNameIsNotSpecified:"The username (Email) is not specified!",AuthUserNameOrPasswordIsNotCorrect:"The username (Email) or password is incorrect!",AuthUserNameShouldLookLikeAnEmailAddress:"The username should be similar to the Email address!",AuthWorkspaceNameAlreadyInUse:"The workspace name is already in use!",CommandTimeOut:"Waiting time of processing the command is elapsed!",Congratulations:"Congratulations!",EndDateShouldBeGreaterThanCurrentDate:"The end date should be greater than the current date!",EndDateShouldBeGreaterThanStartDate:"The end date should be greater than start date!",ExecutionError:"Execution error",IsIdentical:'"{0}" and "{1}" are identical."',IsNotAuthorized:'No access to "{0}"!',IsNotCorrect:'"{0}" is incorrect!',IsNotDeleted:'"{0}" is not deleted!',IsNotEqual:'"{0}" is not equal!',IsNotFound:'"{0}" is not found!',IsNotRecognized:'"{0}" is not recognized!',IsNotSpecified:'"{0}" is not specified!',IsRequiredFile:"You should add at least one file!",ItemCantBeAttachedToItself:"The item cannot be attached to itself!",ItemCantBeDeletedBecauseItemIsAttachedToOtherItems:'The elements "{0}" cannot be deleted because they are attached to other elements!',ItemCantBeMovedToSpecifiedPlace:"The item cannot be moved to a specified place!",ItemDoesNotSupport:'The item does not support "{0}"!',KeyAndToKeyAreEqual:"A Key and ToKey are equal!",NewProduct:"A new product is added to your subscription!",NotificationFailed:"Failed result!",NotificationFilesUploadingComplete:"The files uploaded successfully.",NotificationFileUploading:'The file "{0}" is uploading.',NotificationItemDelete:"The items are deleting.",NotificationItemDeleteComplete:"The items are deleted successfully.",NotificationItemRestore:"The items are restoring.",NotificationItemRestoreComplete:"The items are restored successfully.",NotificationItemTransfer:"The items are transferring.",NotificationItemTransferComplete:"The items are transferred successfully.",NotificationItemWaitingProcessing:"The items are waiting processing.",NotificationMailing:"Sending",NotificationMailingComplete:'The mailing "{0}" is complete.',NotificationMailingWaitingProcessing:'The mailing "{0}" is waiting processing.',NotificationOperationAborted:"Operation aborted!",NotificationRecycleBinCleaning:"The Recycle Bin is cleaning.",NotificationRecycleBinCleaningComplete:"The Recycle Bin is cleaned successfully.",NotificationRecycleBinWaitingProcessing:"The Recycle Bin cleaning is waiting processing.",NotificationReportExporting:'The report "{0}" is exporting',NotificationReportExportingComplete:'The report "{0}" is exported successfully.',NotificationReportRendering:'The report "{0}" is rendering',NotificationReportRenderingComplete:'The report "{0}" is rendered.',NotificationReportWaitingProcessing:'The report "{0}" is waiting processing.',NotificationSchedulerRunning:'The scheduler "{0}" is running.',NotificationSchedulerRunningComplete:'The scheduler "{0}" running complete.',NotificationSchedulerWaitingProcessing:'The scheduler "{0}" is waiting processing.',NotificationTitleFilesUploading:"Uploading files",NotificationTitleItemRefreshing:'Refreshing item "{0}"',NotificationTitleItemTransferring:'Transferring item "{0}"',NotificationTitleMailing:'Mailing "{0}"',NotificationTitleReportExporting:'Exporting report "{0}"',NotificationTitleReportRendering:'Rendering report "{0}"',NotificationTitleSchedulerRunning:'Running scheduler "{0}"',NotificationTransferring:'The "{0}" is tranferring to "{1}".',NotificationTransferringComplete:'The "{0}" is succesfully transffered to "{1}".',NotificationValueIsNotCorrect:"This value is not correct for the type {0}",OutOfRange:'Out of range ("{0}")!',ParsingCommandException:"An exception of processing the command in the specified xml: {0}",QuotaMaximumComputingCyclesCountExceeded:"Maximum computing cycles count exceeded.",QuotaMaximumDataRowsCountExceeded:"Maximum data rows count in one data source exceeded.",QuotaMaximumFileSizeExceeded:"Maximum file size exceeded.",QuotaMaximumItemsCountExceeded:"Maximum items count exceeded.",QuotaMaximumReportPagesCountExceeded:"Maximum report pages count exceeded.",QuotaMaximumResourcesCountExceeded:"Maximum resources count exceeded.",QuotaMaximumUsersCountExceeded:"Maximum users count exceeded.",QuotaMaximumWorkspacesCountExceeded:"Maximum workspaces count exceeded.",SchedulerCantRunItSelf:"The scheduler cannot run itself!",SessionTimeOut:"Session timeout",SnapshotAlreadyProcessed:"The report snapshot is already processed!",SpecifiedItemIsNot:'The specified item is not "{0}"!',SubscriptionExpired:"Your subscription has expired!",SubscriptionsOut10:"10 days left when the subscription expires!",SubscriptionsOut20:"The subscription period will expire in 20 days!",SuccessfullyRenewed:"Your subscription has been successfully updated!",TrialToLicense:"Thank you for choosing Stimulsoft!",VersionCopyFromItem:'Copy from item "{0}".',VersionCreatedFromFile:'Created from file "{0}".',VersionCreatedFromItem:'Created from item "{0}".',VersionLoadedFromFile:'Loaded from file "{0}".',VersionNewItemCreation:"New item creation.",Warning:"Warning",WindowClosePreventWhileUploading:"Some files are uploading now, if you close page they will lost. Are you sure you want to close page?",WithSpecifiedKeyIsNotFound:'"{0}" with the specified key is not found!',YourTimeSessionHasExpired:"Your time session has expired!",YouUsingTrialVersion:"You are using a trial version!"},NuGet:{AlreadyDownloaded:"Already Downloaded",AssemblyLoadedSuccessfully:"The assembly is loaded successfully.",AssemblyNotFound:"It is impossible to find {0} assembly to use the {1} connection!",Author:"Author",Dependencies:"Dependencies:",Download:"Download",DownloadAll:"Download All",DownloadAndInstall:"Download and Install",Downloads:"Downloads:",IAccept:"I Accept",IDecline:"I Decline",LicenceFormDesc:"The following package require that you accept their license terms before installing.",LicenceFormDesc1:'By clicking "I Accept" you agree to the license terms for the package listed above. If you do not agree to the license terms, click "I Decline".',LicenceFormTitle:"Licence Acceptance",License:"License:",ProjectUrl:"Project URL:",ReportAbuse:"Report Abuse:",RetrievingInformation:"Retrieving information...",Tags:"Tags:",Title:"Data Adapter from NuGet",ViewLicense:"View License"},Panels:{Dictionary:"Dictionary",Messages:"Messages",Properties:"Properties",ReportTree:"Report Tree"},Password:{gbPassword:"Encrypting of the file",lbPasswordLoad:"Enter the password to open the file",lbPasswordSave:"Password:",PasswordNotEntered:"The password is not entered",StiLoadPasswordForm:"Document encrypting",StiSavePasswordForm:"Password"},Permissions:{AdminAPI:"API",AdminBackgroundTasks:"Background Tasks",AdminPermissions:"Permissions",AdminRecycleBin:"Recycle Bin",AdminShare:"Share",AdminTransfers:"Transfers",ItemCalendars:"Calendars",ItemCloudStorages:"Cloud Storages",ItemContactLists:"Contact Lists",ItemDashboards:"Dashboards",ItemDataSources:"Data Sources",ItemFiles:"Files",ItemFolders:"Folders",ItemReportSnapshots:"Report Snapshots",ItemReportTemplates:"Report Templates",ItemSchedulers:"Schedulers",ReportDesignerBusinessObjects:"Business Objects",ReportDesignerDataColumns:"Data Columns",ReportDesignerDataConnections:"Data Connections",ReportDesignerDataRelations:"Data Relations",ReportDesignerDataSources:"Data Sources",ReportDesignerDictionaryActions:"Dictionary Actions",ReportDesignerRestrictions:"Restrictions",ReportDesignerVariables:"Variables",SystemBackupRestore:"Backup & Restore",SystemEmailTemplates:"Email Templates",SystemLicensing:"Licensing",SystemMonitoring:"Monitoring",SystemUpdate:"Update",SystemWorkspaces:"Workspaces",TextAdministration:"Administration",TextItems:"Items",TextReportDesigner:"Report Designer",TextSystem:"System",TextUsers:"Users",UserHimself:"Himself",UserRoles:"Roles",Users:"Users",UserWorkspace:"Workspace"},PlacementComponent:{MoveLeftFreeSpace:"Moves a component to the left side of a free space, increasing the height of the component to the height of free space.",MoveRightFreeSpace:"Moves a component to the right side of a free space, increasing the height of the component to the height of free space."},PropertyCategory:{AppearanceCategory:"Appearance",AreaCategory:"Area",ArgumentCategory:"Argument",AxisCategory:"Axis",BarCodeAdditionalCategory:"Bar Code Additional",BarCodeCategory:"Bar Code",BehaviorCategory:"Behavior",CapNeedle:"Cap Needle",CellCategory:"Cell",ChartAdditionalCategory:"Chart Additional",ChartCategory:"Chart",ChartMap:"Map",CheckCategory:"Check",ColorsCategory:"Colors",ColumnsCategory:"Columns",ControlCategory:"Control",ControlsEventsCategory:"Controls Events",CrossTabCategory:"Cross-Tab",DataCategory:"Data",DescriptionCategory:"Description",DesignCategory:"Design",DisplayCategory:"Display",ExportCategory:"Export",ExportEventsCategory:"Export Events",FooterTableCategory:"Footer Table",GridLinesCategory:"Grid Lines",HeaderTableCategory:"Header Table",HierarchicalCategory:"Hierarchical",ImageAdditionalCategory:"Image Additional",GaugeCategory:"Gauge",ImageCategory:"Image",InterlacingCategory:"Interlacing",IndicatorCategory:"Indicator",ProgressCategory:"Progress",LegendCategory:"Legend",MainCategory:"Main",MarkerCategory:"Marker",MiscCategory:"Misc",MouseEventsCategory:"Mouse Events",NavigationCategory:"Navigation",NavigationEventsCategory:"Navigation Events",Needle:"Needle",OptionsCategory:"Options",PageAdditionalCategory:"Page Additional",PageCategory:"Page",PageColumnBreakCategory:"Page and Column Break",ParametersCategory:"Parameters",PositionCategory:"Position",PrimitiveCategory:"Primitive",PrintEventsCategory:"Print Events",RenderEventsCategory:"Render Events",SeriesCategory:"Series",SeriesLabelsCategory:"Series Labels",ShapeCategory:"Shape",Size:"Size",SubReportCategory:"Sub-Report",TableCategory:"Table",TextAdditionalCategory:"Text Additional",TextCategory:"Text",TitleCategory:"Title",TrendLineCategory:"Trend Line",ValueCategory:"Value",ValueCloseCategory:"Value Close",ValueEndCategory:"Value End",ValueEventsCategory:"Value Events",ValueHighCategory:"Value High",ValueLowCategory:"Value Low",ValueOpenCategory:"Value Open",WeightCategory:"Weight",WinControlCategory:"Win Control",ZipCodeCategory:"ZIP Code"},PropertyColor:{AliceBlue:"Alice Blue",AntiqueWhite:"Antique White",Aqua:"Aqua",Aquamarine:"Aquamarine",Azure:"Azure",Beige:"Beige",Bisque:"Bisque",Black:"Black",BlanchedAlmond:"Blanched Almond",Blue:"Blue",BlueViolet:"Blue Violet",Brown:"Brown",BurlyWood:"Burly Wood",CadetBlue:"Cadet Blue",Chartreuse:"Chartreuse",Chocolate:"Chocolate",Coral:"Coral",CornflowerBlue:"Cornflower Blue",Cornsilk:"Cornsilk",Crimson:"Crimson",Cyan:"Cyan",DarkBlue:"Dark Blue",DarkCyan:"Dark Cyan",DarkGoldenrod:"Dark Goldenrod",DarkGray:"Dark Gray",DarkGreen:"Dark Green",DarkKhaki:"Dark Khaki",DarkMagenta:"Dark Magenta",DarkOliveGreen:"Dark Olive Green",DarkOrange:"Dark Orange",DarkOrchid:"Dark Orchid",DarkRed:"Dark Red",DarkSalmon:"Dark Salmon",DarkSeaGreen:"Dark Sea Green",DarkSlateBlue:"Dark Slate Blue",DarkSlateGray:"Dark Slate Gray",DarkTurquoise:"Dark Turquoise",DarkViolet:"Dark Violet",DeepPink:"Deep Pink",DeepSkyBlue:"Deep Sky Blue",DimGray:"Dim Gray",DodgerBlue:"Dodger Blue",Firebrick:"Firebrick",FloralWhite:"Floral White",ForestGreen:"Forest Green",Fuchsia:"Fuchsia",Gainsboro:"Gainsboro",GhostWhite:"Ghost White",Gold:"Gold",Goldenrod:"Goldenrod",Gray:"Gray",Green:"Green",GreenYellow:"Green Yellow",Honeydew:"Honeydew",HotPink:"Hot Pink",IndianRed:"Indian Red",Indigo:"Indigo",Ivory:"Ivory",Khaki:"Khaki",Lavender:"Lavender",LavenderBlush:"Lavender Blush",LawnGreen:"Lawn Green",LemonChiffon:"Lemon Chiffon",LightBlue:"Light Blue",LightCoral:"Light Coral",LightCyan:"Light Cyan",LightGoldenrodYellow:"Light Goldenrod Yellow",LightGray:"Light Gray",LightGreen:"Light Green",LightPink:"Light Pink",LightSalmon:"Light Salmon",LightSeaGreen:"Light Sea Green",LightSkyBlue:"Light Sky Blue",LightSlateGray:"Light Slate Gray",LightSteelBlue:"Light Steel Blue",LightYellow:"Light Yellow",Lime:"Lime",LimeGreen:"Lime Green",Linen:"Linen",Magenta:"Magenta",Maroon:"Maroon",MediumAquamarine:"Medium Aquamarine",MediumBlue:"Medium Blue",MediumOrchid:"Medium Orchid",MediumPurple:"Medium Purple",MediumSeaGreen:"Medium Sea Green",MediumSlateBlue:"Medium Slate Blue",MediumSpringGreen:"Medium Spring Green",MediumTurquoise:"Medium Turquoise",MediumVioletRed:"Medium Violet Red",MidnightBlue:"Midnight Blue",MintCream:"Mint Cream",MistyRose:"Misty Rose",Moccasin:"Moccasin",NavajoWhite:"Navajo White",Navy:"Navy",OldLace:"Old Lace",Olive:"Olive",OliveDrab:"Olive Drab",Orange:"Orange",OrangeRed:"Orange Red",Orchid:"Orchid",PaleGoldenrod:"Pale Goldenrod",PaleGreen:"Pale Green",PaleTurquoise:"Pale Turquoise",PaleVioletRed:"Pale Violet Red",PapayaWhip:"Papaya Whip",PeachPuff:"Peach Puff",Peru:"Peru",Pink:"Pink",Plum:"Plum",PowderBlue:"Powder Blue",Purple:"Purple",Red:"Red",RosyBrown:"Rosy Brown",RoyalBlue:"Royal Blue",SaddleBrown:"Saddle Brown",Salmon:"Salmon",SandyBrown:"Sandy Brown",SeaGreen:"Sea Green",SeaShell:"Sea Shell",Sienna:"Sienna",Silver:"Silver",SkyBlue:"Sky Blue",SlateBlue:"Slate Blue",SlateGray:"Slate Gray",Snow:"Snow",SpringGreen:"Spring Green",SteelBlue:"Steel Blue",Tan:"Tan",Teal:"Teal",Thistle:"Thistle",Tomato:"Tomato",Transparent:"Transparent",Turquoise:"Turquoise",Violet:"Violet",Wheat:"Wheat",White:"White",WhiteSmoke:"White Smoke",Yellow:"Yellow",YellowGreen:"Yellow Green"},PropertyEnum:{StiProgressElementModePie:"Pie",StiProgressElementModeCircle:"Circle",StiProgressElementModeDataBars:"DataBars",StiGaugeCalculationModeAuto:"Auto",StiGaugeCalculationModeCustom:"Custom",StiGaugeTypeFullCircular:"Full Circular",StiGaugeTypeHalfCircular:"Half-Circular",boolFalse:"False",boolTrue:"True",BorderStyleFixed3D:"Fixed 3D",BorderStyleFixedSingle:"Fixed Single",BorderStyleNone:"None",ChartAxesTicksAll:"All",ChartAxesTicksMajor:"Major",ChartAxesTicksNone:"None",ChartGridLinesAll:"All",ChartGridLinesMajor:"Major",ChartGridLinesNone:"None",ComboBoxStyleDropDown:"Drop Down",ComboBoxStyleDropDownList:"Drop Down List",ComboBoxStyleSimple:"Simple",ContentAlignmentBottomCenter:"Bottom Center",
ContentAlignmentBottomLeft:"Bottom Left",ContentAlignmentBottomRight:"Bottom Right",ContentAlignmentMiddleCenter:"Middle Center",ContentAlignmentMiddleLeft:"Middle Left",ContentAlignmentMiddleRight:"Middle Right",ContentAlignmentTopCenter:"Top Center",ContentAlignmentTopLeft:"Top Left",ContentAlignmentTopRight:"Top Right",DataGridLineStyleNone:"None",DataGridLineStyleSolid:"Solid",DateTimePickerFormatCustom:"Custom",DateTimePickerFormatLong:"Long",DateTimePickerFormatShort:"Short",DateTimePickerFormatTime:"Time",DialogResultAbort:"Abort",DialogResultCancel:"Cancel",DialogResultIgnore:"Ignore",DialogResultNo:"No",DialogResultNone:"None",DialogResultOK:"OK",DialogResultRetry:"Retry",DialogResultYes:"Yes",DuplexDefault:"Default",DuplexHorizontal:"Horizontal",DuplexSimplex:"Simplex",DuplexVertical:"Vertical",FormStartPositionCenterParent:"Center Parent",FormStartPositionCenterScreen:"Center Screen",FormStartPositionManual:"Manual",FormStartPositionWindowsDefaultBounds:"Windows Default Bounds",FormStartPositionWindowsDefaultLocation:"Windows Default Location",FormWindowStateMaximized:"Maximized",FormWindowStateMinimized:"Minimized",FormWindowStateNormal:"Normal",HorizontalAlignmentCenter:"Center",HorizontalAlignmentLeft:"Left",HorizontalAlignmentRight:"Right",HotkeyPrefixHide:"Hide",HotkeyPrefixNone:"None",HotkeyPrefixShow:"Show",LeftRightAlignmentLeft:"Left",LeftRightAlignmentRight:"Right",PictureBoxSizeModeAutoSize:"Auto Size",PictureBoxSizeModeCenterImage:"Center Image",PictureBoxSizeModeNormal:"Normal",PictureBoxSizeModeStretchImage:"Stretch Image",RightToLeftInherit:"Inherit",RightToLeftNo:"No",RightToLeftYes:"Yes",SelectionModeMultiExtended:"Multi Extended",SelectionModeMultiSimple:"Multi Simple",SelectionModeNone:"None",SelectionModeOne:"One",StiAnchorModeBottom:"Bottom",StiAnchorModeLeft:"Left",StiAnchorModeRight:"Right",StiAnchorModeTop:"Top",StiAngleAngle0:"0 Degrees",StiAngleAngle180:"180 Degrees",StiAngleAngle270:"270 Degrees",StiAngleAngle45:"45 Degrees",StiAngleAngle90:"90 Degrees",StiArrowStyleArc:"Arc",StiArrowStyleArcAndCircle:"Arc and Circle",StiArrowStyleCircle:"Circle",StiArrowStyleLines:"Lines",StiArrowStyleNone:"None",StiArrowStyleTriangle:"Triangle",StiBorderSidesAll:"All",StiBorderSidesBottom:"Bottom",StiBorderSidesLeft:"Left",StiBorderSidesNone:"None",StiBorderSidesRight:"Right",StiBorderSidesTop:"Top",StiBorderStyleBump:"Bump",StiBorderStyleEtched:"Etched",StiBorderStyleFlat:"Flat",StiBorderStyleNone:"None",StiBorderStyleRaised:"Raised",StiBorderStyleRaisedInner:"Raised Inner",StiBorderStyleRaisedOuter:"Raised Outer",StiBorderStyleSunken:"Sunken",StiBorderStyleSunkenInner:"Sunken Inner",StiBorderStyleSunkenOuter:"Sunken Outer",StiBrushTypeGlare:"Glare Brush",StiBrushTypeGradient0:"Gradient Brush, Angle 0",StiBrushTypeGradient180:"Gradient Brush, Angle 180",StiBrushTypeGradient270:"Gradient Brush, Angle 270",StiBrushTypeGradient45:"Gradient Brush, Angle 45",StiBrushTypeGradient90:"Gradient Brush, Angle 90",StiBrushTypeSolid:"Solid Brush",StiCalculationModeCompilation:"Compilation",StiCalculationModeInterpretation:"Interpretation",StiCapStyleArrow:"Arrow",StiCapStyleDiamond:"Diamond",StiCapStyleNone:"None",StiCapStyleOpen:"Open",StiCapStyleOval:"Oval",StiCapStyleSquare:"Square",StiCapStyleStealth:"Stealth",StiChartTitleDockBottom:"Bottom",StiChartTitleDockLeft:"Left",StiChartTitleDockRight:"Right",StiChartTitleDockTop:"Top",StiCheckStyleCheck:"Check",StiCheckStyleCheckRectangle:"Check Rectangle",StiCheckStyleCross:"Cross",StiCheckStyleCrossCircle:"Cross Circle",StiCheckStyleCrossRectangle:"Cross Rectangle",StiCheckStyleDotCircle:"Dot Circle",StiCheckStyleDotRectangle:"Dot Rectangle",StiCheckStyleNone:"None",StiCheckStyleNoneCircle:"None Circle",StiCheckStyleNoneRectangle:"None Rectangle",StiCheckSumNo:"No",StiCheckSumYes:"Yes",StiCode11CheckSumAuto:"Auto",StiCode11CheckSumNone:"None",StiCode11CheckSumOneDigit:"One Digit",StiCode11CheckSumTwoDigits:"Two Digits",StiColorScaleTypeColor2:"2-Color Scale",StiColorScaleTypeColor3:"3-Color Scale",StiColumnDirectionAcrossThenDown:"Across Then Down",StiColumnDirectionDownThenAcross:"Down Then Across",StiCrossHorAlignmentCenter:"Center",StiCrossHorAlignmentLeft:"Left",StiCrossHorAlignmentNone:"None",StiCrossHorAlignmentRight:"Right",StiDateTimeTypeDate:"Date",StiDateTimeTypeDateAndTime:"Date and Time",StiDateTimeTypeTime:"Time",StiDockStyleBottom:"Bottom",StiDockStyleFill:"Fill",StiDockStyleLeft:"Left",StiDockStyleNone:"None",StiDockStyleRight:"Right",StiDockStyleTop:"Top",StiDrillDownModeMultiPage:"Multi Page",StiDrillDownModeSinglePage:"Single Page",StiEanSupplementTypeFiveDigit:"FiveDigit",StiEanSupplementTypeNone:"None",StiEanSupplementTypeTwoDigit:"TwoDigit",StiEmptySizeModeAlignFooterToBottom:"Align Footer to Bottom",StiEmptySizeModeAlignFooterToTop:"Align Footer to Top",StiEmptySizeModeDecreaseLastRow:"Decrease Last Row",StiEmptySizeModeIncreaseLastRow:"Increase Last Row",StiEnumeratorTypeABC:"ABC",StiEnumeratorTypeArabic:"Arabic",StiEnumeratorTypeNone:"None",StiEnumeratorTypeRoman:"Roman",StiFilterConditionBeginningWith:"beginning with",StiFilterConditionBetween:"between",StiFilterConditionContaining:"containing",StiFilterConditionEndingWith:"ending with",StiFilterConditionEqualTo:"equal to",StiFilterConditionGreaterThan:"greater than",StiFilterConditionGreaterThanOrEqualTo:"greater than or equal to",StiFilterConditionIsNotNull:"is not null",StiFilterConditionIsNull:"is null",StiFilterConditionLessThan:"less than",StiFilterConditionLessThanOrEqualTo:"less than or equal to",StiFilterConditionNotBetween:"not between",StiFilterConditionNotContaining:"not containing",StiFilterConditionNotEqualTo:"not equal to",StiFilterDataTypeBoolean:"Boolean",StiFilterDataTypeDateTime:"DateTime",StiFilterDataTypeExpression:"Expression",StiFilterDataTypeNumeric:"Numeric",StiFilterDataTypeString:"String",StiFilterEngineReportEngine:"Report Engine",StiFilterEngineSQLQuery:"SQL Query",StiFilterItemArgument:"Argument",StiFilterItemExpression:"Expression",StiFilterItemValue:"Value",StiFilterItemValueClose:"Value Close",StiFilterItemValueEnd:"Value End",StiFilterItemValueHigh:"Value High",StiFilterItemValueLow:"Value Low",StiFilterItemValueOpen:"Value Open",StiFilterModeAnd:"And",StiFilterModeOr:"Or",StiFormStartModeOnEnd:"On End",StiFormStartModeOnPreview:"On Preview",StiFormStartModeOnStart:"On Start",StiGroupSortDirectionAscending:"Ascending",StiGroupSortDirectionDescending:"Descending",StiGroupSortDirectionNone:"None",StiHorAlignmentCenter:"Center",StiHorAlignmentLeft:"Left",StiHorAlignmentRight:"Right",StiImageProcessingDuplicatesTypeGlobalHide:"Global Hide",StiImageProcessingDuplicatesTypeGlobalMerge:"Global Merge",StiImageProcessingDuplicatesTypeGlobalRemoveImage:"Global Remove Image",StiImageProcessingDuplicatesTypeHide:"Hide",StiImageProcessingDuplicatesTypeMerge:"Merge",StiImageProcessingDuplicatesTypeNone:"None",StiImageProcessingDuplicatesTypeRemoveImage:"Remove Image",StiImageRotationFlipHorizontal:"Flip Horizontal",StiImageRotationFlipVertical:"Flip Vertical",StiImageRotationNone:"None",StiImageRotationRotate180:"Rotate 180°",StiImageRotationRotate90CCW:"Rotate 90° CCW",StiImageRotationRotate90CW:"Rotate 90° CW",StiKeepDetailsKeepDetailsTogether:"Keep Details Together",StiKeepDetailsKeepFirstDetailTogether:"Keep First Detail Together",StiKeepDetailsKeepFirstRowTogether:"Keep First Row Together",StiKeepDetailsNone:"None",StiLabelsPlacementNone:"None",StiLabelsPlacementOneLine:"One Line",StiLabelsPlacementTwoLines:"Two Lines",StiLegendDirectionBottomToTop:"Bottom to Top",StiLegendDirectionLeftToRight:"Left to Right",StiLegendDirectionRightToLeft:"Right to Left",StiLegendDirectionTopToBottom:"Top to Bottom",StiLegendHorAlignmentCenter:"Center",StiLegendHorAlignmentLeft:"Left",StiLegendHorAlignmentLeftOutside:"Left Outside",StiLegendHorAlignmentRight:"Right",StiLegendHorAlignmentRightOutside:"Right Outside",StiLegendVertAlignmentBottom:"Bottom",StiLegendVertAlignmentBottomOutside:"Bottom Outside",StiLegendVertAlignmentCenter:"Center",StiLegendVertAlignmentTop:"Top",StiLegendVertAlignmentTopOutside:"Top Outside",StiMapIDAustralia:"Australia",StiMapIDAustria:"Austria",StiMapIDBrazil:"Brazil",StiMapIDCanada:"Canada",StiMapIDChina:"China",StiMapIDEU:"EU",StiMapIDEurope:"Europe",StiMapIDFrance:"France",StiMapIDGermany:"Germany",StiMapIDItaly:"Italy",StiMapIDNetherlands:"Netherlands",StiMapIDRussia:"Russia",StiMapIDUK:"UK",StiMapIDUSA:"USA",StiMapIDWorld:"World",StiMapTypeGroup:"Group",StiMapTypeHeatmap:"Heatmap",StiMapTypeHeatmapWithGroup:"Heatmap With Group",StiMapTypeNone:"None",StiMapTypePoints:"Points",StiMarkerAlignmentLeft:"Left",StiMarkerAlignmentRight:"Right",StiMarkerTypeCircle:"Circle",StiMarkerTypeHexagon:"Hexagon",StiMarkerTypeRectangle:"Rectangle",StiMarkerTypeStar5:"Star 5",StiMarkerTypeStar6:"Star 6",StiMarkerTypeStar7:"Star 7",StiMarkerTypeStar8:"Star 8",StiMarkerTypeTriangle:"Triangle",StiNestedFactorHigh:"High",StiNestedFactorLow:"Low",StiNestedFactorNormal:"Normal",StiNumberOfPassDoublePass:"Double Pass",StiNumberOfPassSinglePass:"Single Pass",StiOrientationHorizontal:"Horizontal",StiOrientationHorizontalRight:"Horizontal Right",StiOrientationVertical:"Vertical",StiPageOrientationLandscape:"Landscape",StiPageOrientationPortrait:"Portrait",StiPenStyleDash:"Dash",StiPenStyleDashDot:"Dash Dot",StiPenStyleDashDotDot:"Dash Dot Dot",StiPenStyleDot:"Dot",StiPenStyleDouble:"Double",StiPenStyleNone:"None",StiPenStyleSolid:"Solid",StiPlesseyCheckSumModulo10:"Modulo10",StiPlesseyCheckSumModulo11:"Modulo11",StiPlesseyCheckSumNone:"None",StiPreviewModeDotMatrix:"Dot-Matrix",StiPreviewModeStandard:"Standard",StiPreviewModeStandardAndDotMatrix:"Standard and Dot-Matrix",StiPrintOnEvenOddPagesTypeIgnore:"Ignore",StiPrintOnEvenOddPagesTypePrintOnEvenPages:"Print on Even Pages",StiPrintOnEvenOddPagesTypePrintOnOddPages:"Print on Odd Pages",StiPrintOnTypeAllPages:"All Pages",StiPrintOnTypeExceptFirstAndLastPage:"Except First and Last Page",StiPrintOnTypeExceptFirstPage:"Except First Page",StiPrintOnTypeExceptLastPage:"Except Last Page",StiPrintOnTypeOnlyFirstAndLastPage:"Only First and Last Page",StiPrintOnTypeOnlyFirstPage:"Only First Page",StiPrintOnTypeOnlyLastPage:"Only Last Page",StiProcessAtEndOfPage:"End of Page",StiProcessAtEndOfReport:"End of Report",StiProcessAtNone:"None",StiProcessingDuplicatesTypeBasedOnTagHide:"Hide based on Tag",StiProcessingDuplicatesTypeBasedOnTagMerge:"Merge based on Tag",StiProcessingDuplicatesTypeBasedOnTagRemoveText:"Remove Text based on Tag",StiProcessingDuplicatesTypeBasedOnValueAndTagHide:"Hide based on Value and Tag",StiProcessingDuplicatesTypeBasedOnValueAndTagMerge:"Merge based on Value and Tag",StiProcessingDuplicatesTypeBasedOnValueRemoveText:"Remove based on Value Text",StiProcessingDuplicatesTypeGlobalBasedOnValueAndTagHide:"Global Hide based on Value and Tag",StiProcessingDuplicatesTypeGlobalBasedOnValueAndTagMerge:"Global Merge based on Value and Tag",StiProcessingDuplicatesTypeGlobalBasedOnValueRemoveText:"Global Remove based on Value Text",StiProcessingDuplicatesTypeGlobalHide:"Global Hide",StiProcessingDuplicatesTypeGlobalMerge:"Global Merge",StiProcessingDuplicatesTypeGlobalRemoveText:"Global Remove Text",StiProcessingDuplicatesTypeHide:"Hide",StiProcessingDuplicatesTypeMerge:"Merge",StiProcessingDuplicatesTypeNone:"None",StiProcessingDuplicatesTypeRemoveText:"Remove Text",StiRadarStyleXFCircle:"Circle",StiRadarStyleXFPolygon:"Polygon",StiReportCacheModeAuto:"Auto",StiReportCacheModeOff:"Off",StiReportCacheModeOn:"On",StiReportUnitTypeCentimeters:"Centimeters",StiReportUnitTypeHundredthsOfInch:"Hundredths of Inch",StiReportUnitTypeInches:"Inches",StiReportUnitTypeMillimeters:"Millimeters",StiReportUnitTypePixels:"Pixels",StiRestrictionsAll:"All",StiRestrictionsAllowChange:"Allow Change",StiRestrictionsAllowDelete:"Allow Delete",StiRestrictionsAllowMove:"Allow Move",StiRestrictionsAllowResize:"Allow Resize",StiRestrictionsAllowSelect:"Allow Select",StiRestrictionsNone:"None",StiSelectionModeFirst:"First",StiSelectionModeFromVariable:"From Variable",StiSelectionModeNothing:"Nothing",StiSeriesLabelsValueTypeArgument:"Argument",StiSeriesLabelsValueTypeArgumentValue:"Argument - Value",StiSeriesLabelsValueTypeSeriesTitle:"Series Title",StiSeriesLabelsValueTypeSeriesTitleArgument:"Series Title - Argument",StiSeriesLabelsValueTypeSeriesTitleValue:"Series Title - Value",StiSeriesLabelsValueTypeTag:"Tag",StiSeriesLabelsValueTypeValue:"Value",StiSeriesLabelsValueTypeValueArgument:"Value - Argument",StiSeriesLabelsValueTypeWeight:"Weight",StiSeriesSortDirectionAscending:"Ascending",StiSeriesSortDirectionDescending:"Descending",StiSeriesSortTypeArgument:"Argument",StiSeriesSortTypeNone:"None",StiSeriesSortTypeValue:"Value",StiSeriesYAxisLeftYAxis:"Left Y Axis",StiSeriesYAxisRightYAxis:"Right Y Axis",StiShapeDirectionDown:"Down",StiShapeDirectionLeft:"Left",StiShapeDirectionRight:"Right",StiShapeDirectionUp:"Up",StiShiftModeDecreasingSize:"Decreasing Size",StiShiftModeIncreasingSize:"Increasing Size",StiShiftModeNone:"None",StiShiftModeOnlyInWidthOfComponent:"Only in Width of Component",StiShowSeriesLabelsFromChart:"From Chart",StiShowSeriesLabelsFromSeries:"From Series",StiShowSeriesLabelsNone:"None",StiShowXAxisBoth:"Both",StiShowXAxisBottom:"Bottom",StiShowXAxisCenter:"Center",StiShowYAxisBoth:"Both",StiShowYAxisCenter:"Center",StiShowYAxisLeft:"Left",StiSortDirectionAsc:"Ascending",StiSortDirectionDesc:"Descending",StiSortDirectionNone:"None",StiSortTypeByDisplayValue:"by Display Value",StiSortTypeByValue:"by Value",StiSqlSourceTypeStoredProcedure:"Stored Procedure",StiSqlSourceTypeTable:"Query",StiStyleComponentTypeChart:"Chart",StiStyleComponentTypeCheckBox:"Check Box",StiStyleComponentTypeCrossTab:"Cross-Tab",StiStyleComponentTypeImage:"Image",StiStyleComponentTypePrimitive:"Primitive",StiStyleComponentTypeText:"Text",StiStyleConditionTypeComponentName:"Component Name",StiStyleConditionTypeComponentType:"Component Type",StiStyleConditionTypeLocation:"Location",StiStyleConditionTypePlacement:"Placement",StiSummaryValuesAllValues:"All Values",StiSummaryValuesSkipNulls:"Skip Nulls",StiSummaryValuesSkipZerosAndNulls:"Skip Zeros and Nulls",StiTablceCellTypeCheckBox:"CheckBox",StiTablceCellTypeImage:"Image",StiTablceCellTypeRichText:"RichText",StiTablceCellTypeText:"Text",StiTableAutoWidthNone:"None",StiTableAutoWidthPage:"Page",StiTableAutoWidthTable:"Table",StiTableAutoWidthTypeFullTable:"Full Table",StiTableAutoWidthTypeLastColumns:"Last Columns",StiTableAutoWidthTypeNone:"None",StiTextHorAlignmentCenter:"Center",StiTextHorAlignmentLeft:"Left",StiTextHorAlignmentRight:"Right",StiTextHorAlignmentWidth:"Width",StiTextPositionCenterBottom:"Center Bottom",StiTextPositionCenterTop:"Center Top",StiTextPositionLeftBottom:"Left Bottom",StiTextPositionLeftTop:"Left Top",StiTextPositionRightBottom:"Right Bottom",StiTextPositionRightTop:"Right Top",StiTextQualityStandard:"Standard",StiTextQualityTypographic:"Typographic",StiTextQualityWysiwyg:"Wysiwyg",StiTitlePositionInside:"Inside",StiTitlePositionOutside:"Outside",StiTypeModeList:"List",StiTypeModeNullableValue:"Nullable Value",StiTypeModeRange:"Range",StiTypeModeValue:"Value",StiVertAlignmentBottom:"Bottom",StiVertAlignmentCenter:"Center",StiVertAlignmentTop:"Top",StiViewModeNormal:"Normal",StiViewModePageBreakPreview:"Page Break Preview",StiXmlTypeAdoNetXml:"ADO.NET XML",StiXmlTypeXml:"XML",StringAlignmentCenter:"Center",StringAlignmentFar:"Far",StringAlignmentNear:"Near",StringTrimmingCharacter:"Character",StringTrimmingEllipsisCharacter:"Ellipsis Character",StringTrimmingEllipsisPath:"Ellipsis Path",StringTrimmingEllipsisWord:"Ellipsis Word",StringTrimmingNone:"None",StringTrimmingWord:"Word"},PropertyEvents:{AfterPrintEvent:"After Print",AfterSelectEvent:"After Select",BeforePrintEvent:"Before Print",BeginRenderEvent:"Begin Render",CheckedChangedEvent:"Checked Changed",ClickEvent:"Click",ClosedFormEvent:"Closed Form",ClosingFormEvent:"Closing Form",ColumnBeginRenderEvent:"Column Begin Render",ColumnEndRenderEvent:"Column End Render",ConnectedEvent:"ConnectedEvent",ConnectingEvent:"ConnectingEvent",DisconnectedEvent:"Disconnected",DisconnectingEvent:"Disconnecting",DoubleClickEvent:"Double Click",EndRenderEvent:"End Render",EnterEvent:"Enter",ExportedEvent:"Exported",ExportingEvent:"Exporting",GetArgumentEvent:"Get Argument",GetBookmarkEvent:"Get Bookmark",GetCollapsedEvent:"Get Collapsed",GetCrossValueEvent:"Get Cross Value",GetCutPieListEvent:"Get Cut Pie List",GetDataUrlEvent:"Get DataUrl",GetDisplayCrossValueEvent:"Get Display Cross Value",GetDrillDownReportEvent:"Get Drill-Down Report",GetExcelSheetEvent:"Get Excel Sheet",GetExcelValueEvent:"Get Excel Value",GetHyperlinkEvent:"Get Hyperlink",GetImageDataEvent:"Get Image Data",GetImageURLEvent:"Get Image URL",GetListOfArgumentsEvent:"Get List of Arguments",GetListOfHyperlinksEvent:"Get List of Hyperlinks",GetListOfTagsEvent:"Get List of Tags",GetListOfToolTipsEvent:"Get List of Tool Tips",GetListOfValuesEndEvent:"Get List of Values End",GetListOfValuesEvent:"Get List of Values",GetListOfWeights:"Get List of Weights",GetListOfWeightsEvent:"Get List of Weights",GetSummaryExpressionEvent:"Get Summary Expression",GetTagEvent:"Get Tag",GetTitleEvent:"Get Title",GetToolTipEvent:"Get Tool Tip",GetValueEndEvent:"Get Value End",GetValueEvent:"Get Value",GetWeightEvent:"Get Weight",LeaveEvent:"Leave",LoadFormEvent:"Load Form",MouseDownEvent:"Mouse Down",MouseEnterEvent:"Mouse Enter",MouseLeaveEvent:"Mouse Leave",MouseMoveEvent:"Mouse Move",MouseUpEvent:"Mouse Up",NewAutoSeriesEvent:"New Auto Series",PositionChangedEvent:"Position Changed",PrintedEvent:"Printed",PrintingEvent:"Printing",ProcessCellEvent:"Process Cell",ProcessChartEvent:"Process Chart",RenderingEvent:"Rendering",SelectedIndexChangedEvent:"Selected Index Changed",StateRestoreEvent:"State Restore",StateSaveEvent:"State Save",ValueChangedEvent:"Value Changed"},PropertyHatchStyle:{BackwardDiagonal:"Backward Diagonal",Cross:"Cross",DarkDownwardDiagonal:"Dark Downward Diagonal",DarkHorizontal:"Dark Horizontal",DarkUpwardDiagonal:"Dark Upward Diagonal",DarkVertical:"Dark Vertical",DashedDownwardDiagonal:"Dashed Downward Diagonal",DashedHorizontal:"Dashed Horizontal",DashedUpwardDiagonal:"Dashed Upward Diagonal",DashedVertical:"Dashed Vertical",DiagonalBrick:"Diagonal Brick",DiagonalCross:"Diagonal Cross",Divot:"Divot",DottedDiamond:"Dotted Diamond",DottedGrid:"Dotted Grid",ForwardDiagonal:"Forward Diagonal",Horizontal:"Horizontal",HorizontalBrick:"Horizontal Brick",LargeCheckerBoard:"Large Checker Board",LargeConfetti:"Large Confetti",LargeGrid:"Large Grid",LightDownwardDiagonal:"Light Downward Diagonal",LightHorizontal:"Light Horizontal",LightUpwardDiagonal:"Light Upward Diagonal",LightVertical:"Light Vertical",NarrowHorizontal:"Narrow Horizontal",NarrowVertical:"Narrow Vertical",OutlinedDiamond:"Outlined Diamond",Percent05:"Percent05",Percent10:"Percent10",Percent20:"Percent20",Percent25:"Percent25",Percent30:"Percent30",Percent40:"Percent40",Percent50:"Percent50",Percent60:"Percent60",Percent70:"Percent70",Percent75:"Percent75",Percent80:"Percent80",Percent90:"Percent90",Plaid:"Plaid",Shingle:"Shingle",SmallCheckerBoard:"Small Checker Board",SmallConfetti:"Small Confetti",SmallGrid:"Small Grid",SolidDiamond:"Solid Diamond",Sphere:"Sphere",Trellis:"Trellis",Vertical:"Vertical",Wave:"Wave",Weave:"Weave",WideDownwardDiagonal:"Wide Downward Diagonal",WideUpwardDiagonal:"Wide Upward Diagonal",ZigZag:"Zig Zag"},PropertyMain:{Actual:"Actual",Label:"Label",RoundValues:"Round Values",AcceptsReturn:"Accepts Return",Target:"Target",AcceptsTab:"Accepts Tab",AddClearZone:"Add Clear Zone",Advanced:"Advanced",AggregateFunction:"Aggregate Function",AggregateFunctions:"Aggregate Functions",Alias:"Alias",Alignment:"Alignment",AllowApplyBorderColor:"Allow Apply Border Color",AllowApplyBrush:"Allow Apply Brush",AllowApplyBrushNegative:"Allow Apply Brush Negative",AllowApplyColorNegative:"Allow Apply Color Negative",AllowApplyStyle:"Allow Apply Style",AllowExpressions:"Allow Expressions",AllowHtmlTags:"Allow HTML Tags",AllowSeries:"Allow Series",AllowSeriesElements:"Allow Series Elements",AllowSorting:"Allow Sorting",AllowUseBackColor:"Allow Use Back Color",AllowUseBorder:"Allow Use Border",AllowUseBorderFormatting:"Allow Use Border Formatting",AllowUseBorderSides:"Allow Use Border Sides",AllowUseBorderSidesFromLocation:"Allow Use Border Sides from Location",AllowUseBrush:"Allow Use Brush",AllowUseFont:"Allow Use Font",AllowUseForeColor:"Allow Use Fore Color",AllowUseHorAlignment:"Allow Use Hor Alignment",AllowUseImage:"Allow Use Image",AllowUserValues:"Allow User Values",AllowUseTextBrush:"Allow Use Text Brush",AllowUseTextOptions:"Allow Use Text Options",AllowUseVertAlignment:"Allow Use Vert Alignment",AllowUsingAsSqlParameter:"Allow using as SQL parameter",AlternatingBackColor:"Alternating Back Color",Anchor:"Anchor",Angle:"Angle",Antialiasing:"Antialiasing",Area:"Area",Argument:"Argument",ArgumentDataColumn:"Argument Data Column",Arguments:"Arguments",ArrowHeight:"Arrow Height",ArrowStyle:"Arrow Style",ArrowWidth:"Arrow Width",AspectRatio:"Aspect Ratio",Author:"Author",Auto:"Auto",AutoCalculateCenterPoint:"Auto Calculate Center Point",AutoDataColumns:"Auto Data Columns",AutoDataRows:"Auto Data Rows",AutoLocalizeReportOnRun:"Auto Localize Report on Run",AutoRefresh:"Auto Refresh",AutoRotate:"Auto Rotate",AutoScale:"Auto Scale",AutoSeriesColorDataColumn:"Auto Series Color Data Column",AutoSeriesKeyDataColumn:"Auto Series Key Data Column",AutoSeriesTitleDataColumn:"Auto Series Title Data Column",AutoWidth:"Auto Width",AutoWidthType:"Auto Width Type",AxisLabelsColor:"Labels Color",AxisLineColor:"Line Color",AxisTitleColor:"Title Color",AxisValue:"Axis Value",BackColor:"Back Color",Background:"Background",BackgroundColor:"Background Color",BarCodeType:"Bar Code Type",BasicStyleColor:"Basic Style Color",Blend:"Blend",Bold:"Bold",Bookmark:"Bookmark",Border:"Border",BorderBrush:"Border Brush",BorderColor:"Border Color",BorderColorNegative:"Border Color Negative",Borders:"Borders",BorderSize:"Border Size",BorderStyle:"Border Style",BorderWidth:"Border Width",Bottom:"Bottom",BottomSide:"Bottom Side",BreakIfLessThan:"Break if Less Than",Brush:"Brush",BrushNegative:"Brush Negative",BrushType:"Brush Type",BusinessObject:"Business Object",CacheAllData:"Cache All Data",CacheTotals:"Cache Totals",CalcInvisible:"Calc Invisible",CalculatedDataColumn:"Calculated Data Column",CalculationMode:"Calculation Mode",CanBreak:"Can Break",Cancel:"Cancel",CanGrow:"Can Grow",CanShrink:"Can Shrink",Categories:"Categories",Category:"Category",CategoryConnections:"Connections",CellDockStyle:"Cell Dock Style",CellHeight:"Cell Height",CellType:"Cell Type",CellWidth:"Cell Width",Center:"Center",CenterPoint:"Center Point",ChartAreaBorderColor:"Border Color",ChartAreaBrush:"Area Brush",ChartAreaShowShadow:"Show Shadow",ChartType:"Chart Type",Checked:"Checked",CheckOnClick:"Check on Click",CheckStyle:"Check Style",CheckStyleForFalse:"Check Style for False",CheckStyleForTrue:"Check Style for True",Checksum:"Checksum",CheckSum:"CheckSum",CheckSum1:"CheckSum1",CheckSum2:"CheckSum2",Child:"Child",ChildColumns:"Child Columns",ChildSource:"Child Data Source",ClearFormat:"Clear Format",CloneContainer:"Clone Container",Code:"Code",CodePage:"Code Page",Collapsed:"Collapsed",CollapseGroupFooter:"Collapse Group Footer",CollapsingEnabled:"Collapsing Enabled",Collate:"Collate",CollectionName:"Collection Name",Color:"Color",ColorEach:"Color Each",ColorScaleCondition:"Color Scale Condition",ColorScaleType:"Color Scale Type",Column:"Column",ColumnCount:"Column Count",ColumnDirection:"Column Direction",ColumnGaps:"Column Gaps",ColumnHeadersVisible:"Column Headers Visible",Columns:"Columns",ColumnWidth:"Column Width",CommandTimeout:"Command Timeout",CompanyPrefix:"Company Prefix",ComponentStyle:"Component Style",Condition:"Condition",ConditionOptions:"Condition Options",Conditions:"Conditions",ConnectionString:"Connection String",ConnectOnStart:"Connect on Start",ConstantLines:"Constant Lines",Container:"Container",ContinuousText:"Continuous Text",ContourColor:"Contour Color",Converting:"Converting",ConvertNulls:"Convert Nulls",Copies:"Copies",Count:"Count",CountData:"Count Data",Create:"Create",CreateFieldOnDoubleClick:"Create Field on Double Click",CreateLabel:"Create Label",Culture:"Culture",CustomFormat:"Custom Format",CutPieList:"Cut Pie List",Data:"Data",DataAdapter:"Data Adapter",DataAdapters:"Data Adapters",DataBarCondition:"Data Bar Condition",DataBindings:"Data Bindings",DataColumn:"Data Column",DataColumns:"Data Columns",DataField:"Data Field",DataRelation:"Data Relation",DataRows:"Data Rows",DataSource:"Data Source",DataSources:"Data Sources",DataTextField:"Data Text Field",DataType:"Data Type",DataUrl:"Data URL",DateInfo:"Date Info",DateTimeStep:"Date Time Step",Default:"Default",DefaultHeightCell:"Default Height of Cell",DefaultNamespace:"Default Namespace",DependentColumn:"Dependent Column",DependentValue:"Dependent Value",Description:"Description",DetectUrls:"Detect URLs",DialogResult:"Dialog Result",Diameter:"Diameter",Direction:"Direction",Disabled:"Disabled",DisplayValue:"Display Value",Distance:"Distance",DistanceBetweenTabs:"Distance Between Tabs",Dock:"Dock",DockableTable:"Dockable Table",DockStyle:"Dock Style",DrawBorder:"Draw Border",DrawHatch:"Draw Hatch",DrawLine:"Draw Line",DrillDown:"Drill-Down",DrillDownEnabled:"Drill-Down Enabled",DrillDownMode:"Drill-Down Mode",DrillDownPage:"Drill-Down Page",DrillDownParameter1:"Drill-Down Parameter 1",DrillDownParameter2:"Drill-Down Parameter 2",DrillDownParameter3:"Drill-Down Parameter 3",DrillDownParameter4:"Drill-Down Parameter 4",DrillDownParameter5:"Drill-Down Parameter 5",DrillDownParameters:"Drill-Down Parameters",DrillDownReport:"Drill-Down Report",DropDownAlign:"Drop Down Align",DropDownStyle:"Drop Down Style",DropDownWidth:"Drop Down Width",DropShadow:"Drop Shadow",Duplex:"Duplex",Editable:"Editable",EmptyBorderBrush:"Empty Border Brush",EmptyBorderWidth:"Empty Border Width",EmptyBrush:"Empty Brush",EmptyValue:"Empty Value",Enabled:"Enabled",EnableLog:"Enabled Log",EncodingMode:"Encoding Mode",EncodingType:"Encoding Type",EndCap:"End Cap",EndColor:"End Color",EndValue:"End Value",EndWidth:"End Width",EngineVersion:"Engine Version",EnumeratorSeparator:"Enumerator Separator",EnumeratorType:"Enumerator Type",ErrorCorrectionLevel:"Error Correction Level",ErrorsCorrectionLevel:"Errors Correction Level",EvenStyle:"Even Style",ExcelSheet:"Excel Sheet",ExcelValue:"Excel Value",Exponential:"Exponential",ExportAsImage:"Export as Image",Expression:"Expression",ExtensionDigit:"Extension Digit",FaqPage:"FAQ Page",FieldIs:"Field Is",Field:"Field",File:"File",Fill:"Fill",FillColor:"Fill Color",Filter:"Filter",FilterEngine:"Filter Engine",FilterMode:"Filter Mode",FilterOn:"Filter On",Filters:"Filters",FirstTabOffset:"First Tab Offset",FixedWidth:"Fixed Width",Flat:"Flat",FlatMode:"Flat Mode",Focus:"Focus",Font:"Font",FontBold:"Font Bold",FontItalic:"Font Italic",FontName:"Font Name",FontSize:"Font Size",FontStrikeout:"Font Strikeout",FontSubscript:"Subscript",FontSuperscript:"Superscript",FontUnderline:"Font Underline",FontUnit:"Font Unit",FooterCanBreak:"Footer Can Break",FooterCanGrow:"Footer Can Grow",FooterCanShrink:"Footer Can Shrink",FooterPrintAtBottom:"Footer Print At Bottom",FooterPrintIfEmpty:"Footer Print If Empty",FooterPrintOn:"Footer Print On",FooterPrintOnAllPages:"Footer Print On All Pages",FooterPrintOnEvenOddPages:"Footer Print On Even Odd Pages",FooterRowsCount:"Footer Rows Count",Footers:"Footers",ForeColor:"Fore Color",Format:"Format",From:"From",FullConvertExpression:"Full Convert Expression",Function:"Function",Functions:"Functions",GlobalizationStrings:"Globalization Strings",GlobalizedName:"Globalized Name",GridLineColor:"Grid Line Color",GridLinesHor:"Grid Lines Horizontal",GridLinesHorColor:"Grid Lines Horizontal Color",GridLinesHorRight:"Grid Lines Horizontal Right",GridLineStyle:"Grid Line Style",GridLinesVert:"Grid Lines Vertical",GridLinesVertColor:"Grid Lines Vertical Color",GridOutline:"Grid Outline",GrowToHeight:"Grow to Height",HeaderBackColor:"Header Back Color",HeaderCanBreak:"Header Can Break",HeaderCanGrow:"Header Can Grow",HeaderCanShrink:"Header Can Shrink",HeaderFont:"Header Font",HeaderForeColor:"Header Fore Color",HeaderPrintAtBottom:"Header Print At Bottom",HeaderPrintIfEmpty:"Header Print If Empty",HeaderPrintOn:"Header Print On",HeaderPrintOnAllPages:"Header Print On All Pages",HeaderPrintOnEvenOddPages:"Header Print On Even Odd Pages",HeaderRowsCount:"Header Rows Count",Headers:"Headers",HeaderText:"Header Text",Height:"Height",HideSeriesWithEmptyTitle:"Hide Series with Empty Title",HideZeros:"Hide Zeros",High:"High",HighlightCondition:"Highlight Condition",HorAlignment:"Horizontal Alignment",HorSpacing:"Horizontal Spacing",HotkeyPrefix:"Hotkey Prefix",HtmlTags:"HTML Tags",Hyperlink:"Hyperlink",HyperlinkDataColumn:"Hyperlink Data Column",Icon:"Icon",IconSet:"Icon Set",IconSetCondition:"Icon Set Condition",Idents:"Indents",Image:"Image",ImageAlign:"Image Align",ImageAlignment:"Image Alignment",ImageData:"Image Data",ImageHorAlignment:"Image Horizontal Alignment",ImageMultipleFactor:"Image Multiple Factor",ImageRotation:"Image Rotation",ImageStretch:"Image Stretch",ImageTiling:"Image Tiling",ImageTransparency:"Image Transparency",ImageURL:"Image URL",ImageVertAlignment:"Image Vertical Alignment",ImportRelations:"Import Relations",Increment:"Increment",Indent:"Indent",InitBy:"Init by",Insert:"Insert",Interaction:"Interaction",InterlacedBrush:"Interlaced Brush",InterlacingHor:"Interlacing Horizontal",InterlacingHorBrush:"Interlacing Horizontal Brush",InterlacingVert:"Interlacing Vertical",InterlacingVertBrush:"Interlacing Vertical Brush",Interpolation:"Interpolation",IsReversed:"Is Reversed",Italic:"Italic",Item:"Item",ItemHeight:"Item Height",Items:"Items",KeepChildTogether:"Keep Child Together",KeepCrossTabTogether:"Keep Cross-Tab Together",KeepDetails:"Keep Details",KeepDetailsTogether:"Keep Details Together",KeepFooterTogether:"Keep Footer Together",KeepGroupFooterTogether:"Keep Group Footer Together",KeepGroupHeaderTogether:"Keep Group Header Together",KeepGroupTogether:"Keep Group Together",KeepHeaderTogether:"Keep Header Together",KeepReportSummaryTogether:"Keep Report Summary Together",KeepSubReportTogether:"Keep Sub-Report Together",Key:"Key",KeyDataColumn:"Key Data Column",Keys:"Keys",LabelColor:"Label Color",LabelRotationMode:"Label Rotation Mode",Labels:"Labels",LabelsColor:"Labels Color",LabelsOffset:"Labels Offset",Language:"Language",LargeHeight:"Large Height",LargeHeightFactor:"Large Height Factor",Left:"Left",LeftSide:"Left Side",Legend:"Legend",LegendBorderColor:"Border Color",LegendBrush:"Legend Brush",LegendLabelsColor:"Labels Color",LegendTitleColor:"Title Color",LegendValueType:"Legend Value Type",Length:"Length",LengthUnderLabels:"Length under Labels",Lighting:"Lighting",Linear:"Linear",LineColor:"Line Color",LineColorNegative:"Line Color Negative",LineLimit:"Line Limit",LineMarker:"Line Marker",LinesOfUnderline:"Lines of Underline",LineStyle:"Line Style",LineWidth:"Line Width",Linked:"Linked",ListOfArguments:"List of Arguments",ListOfHyperlinks:"List of Hyperlinks",ListOfTags:"List of Tags",ListOfToolTips:"List of Tooltips",ListOfValues:"List of Values",ListOfValuesClose:"List of Values Close",ListOfValuesEnd:"List of Values End",ListOfValuesHigh:"List of Values High",ListOfValuesLow:"List of Values Low",ListOfValuesOpen:"List of Values Open",ListOfWeights:"List of Weights",Localizable:"Localizable",Location:"Location",Locked:"Locked",Logarithmic:"Logarithmic",LogarithmicScale:"Logarithmic Scale",Low:"Low",MajorInterval:"Major Interval",MapID:"Map ID",MapStyle:"Style",MapType:"Map Type",Margins:"Margins",Marker:"Marker",MarkerAlignment:"Marker Alignment",MarkerBorder:"Marker Border",MarkerColor:"Marker Color",MarkerSize:"Marker Size",MarkerType:"Marker Type",MarkerVisible:"Marker Visible",MasterComponent:"Master Component",MasterKeyDataColumn:"Master Key Data Column",MatrixSize:"Matrix Size",MaxDate:"Max Date",MaxDropDownItems:"Max Drop Down Items",MaxHeight:"Max Height",Maximum:"Maximum",MaximumValue:"Maximum Value",MaxLength:"Max Length",MaxNumberOfLines:"Max Number of Lines",MaxSize:"Max Size",MaxValue:"Max Value",MaxWidth:"Max Width",MergeDuplicates:"Merge Duplicates",MergeHeaders:"Merge Headers",Mid:"Mid",MinDate:"Min Date",MinHeight:"Min Height",Minimum:"Minimum",MinimumFontSize:"Minimum Font Size",MinimumValue:"Minimum Value",MinorColor:"Minor Color",MinorCount:"Minor Count",MinorInterval:"Minor Interval",MinorLength:"Minor Length",MinorStyle:"Minor Style",MinorVisible:"Minor Visible",MinRowsInColumn:"Min Rows in Column",MinSize:"Min Size",MinValue:"Min Value",MinWidth:"Min Width",MirrorMargins:"Mirror Margins",Mode:"Mode",Module:"Module",Move:"Move",Multiline:"Multiline",MultipleFactor:"Multiple Factor",Name:"Name",NameInSource:"Name in Source",NameParent:"Parent Name",Namespaces:"Namespaces",Negative:"Negative",NestedLevel:"Nested Level",NewColumnAfter:"New Column After",NewColumnBefore:"New Column Before",NewPageAfter:"New Page After",NewPageBefore:"New Page Before",NextPage:"Next Page",NoIcon:"No Icon",NullText:"Null Text",NumberOfColumns:"Number of Columns",NumberOfCopies:"Number of Copies",NumberOfPass:"Number of Pass",NumberOfValues:"Number of Values",OddStyle:"Odd Style",Offset:"Offset",OffsetAngle:"Offset Angle",OnlyText:"Only Text",Operation:"Operation",Options:"Options",Orientation:"Orientation",OthersText:"Others Text",PageHeight:"Page Height",PageNumbers:"Page Numbers",PageWidth:"Page Width",Paper:"Paper",PaperSize:"Paper Size",PaperSourceOfFirstPage:"Paper Source of First Page",PaperSourceOfOtherPages:"Paper Source of Other Pages",Parameter:"Parameter",Parameters:"Parameters",ParametersOrientation:"Parameters Orientation",ParentColumns:"Parent Columns",ParentSource:"Parent Data Source",ParentValue:"Parent Value",PasswordChar:"Password Char",Path:"Path",PathData:"Path Data",PathSchema:"Path Schema",Placement:"Placement",PlaceOnToolbox:"Place on Toolbox",PointAtCenter:"Point at Center",Position:"Position",Positive:"Positive",PreferredColumnWidth:"Preferred Column Width",PreferredRowHeight:"Preferred Row Height",PreventIntersection:"Prevent Intersection",PreviewMode:"Preview Mode",PreviewSettings:"Preview Settings",Printable:"Printable",PrintAtBottom:"Print at Bottom",PrinterName:"Printer Name",PrinterSettings:"Printer Settings",PrintHeadersFootersFromPreviousPage:"Print Headers and Footers from Previous Page",PrintIfDetailEmpty:"Print if Detail Empty",PrintIfEmpty:"Print if Empty",PrintIfParentDisabled:"Print if Parent Disabled",PrintOn:"Print on",PrintOnAllPages:"Print on All Pages",PrintOnEvenOddPages:"Print on Even Odd Pages",PrintOnPreviousPage:"Print on Previous Page",PrintTitleOnAllPages:"Print Title On All Pages",PrintVerticalBars:"Print Vertical Bars",ProcessAt:"Process at",ProcessAtEnd:"Process at End",ProcessingDuplicates:"Processing Duplicates",ProcessTilde:"Process Tilde",ProductHomePage:"Product Home Page",RadarStyle:"Radar Style",Radius:"Radius",RadiusMode:"Radius Mode",Range:"Range",RangeColorMode:"Range Color Mode",RangeFrom:"From",RangeScrollEnabled:"Range Scroll Enabled",RangeTo:"To",Ratio:"Ratio",RatioY:"Ratio Y",ReadOnly:"Read Only",ReconnectOnEachRow:"Reconnect on Each Row",ReferencedAssemblies:"Referenced Assemblies",Refresh:"Refresh",RefreshTime:"Refresh Time",Relation:"Relation",RelationName:"Relation Name",Relations:"Relations",RelativeHeight:"Relative Height",RelativeWidth:"Relative Width",RemoveUnusedDataBeforeStart:"Remove Unused Data Before Start",RenderTo:"Render to",ReportAlias:"Report Alias",ReportAuthor:"Report Author",ReportCacheMode:"Report Cache Mode",ReportDescription:"Report Description",ReportImage:"Report Image",ReportName:"Report Name",ReportUnit:"Report Unit",RequestFromUser:"Request from User",RequestParameters:"Request Parameters",ResetDataSource:"Reset Data Source",ResetPageNumber:"Reset Page Number",Resize:"Resize",Resource:"Resource",Resources:"Resources",Restrictions:"Restrictions",RetrieveOnlyUsedData:"Retrieve Only Used Data",ReturnValue:"Return Value",ReverseHor:"Reverse Horizontal",ReverseVert:"Reverse Vertical",Right:"Right",RightSide:"Right Side",RightToLeft:"Right to Left",Rotation:"Rotation",RotationLabels:"Rotation Labels",Round:"Round",RowCount:"Row Count",RowHeadersVisible:"Row Headers Visible",RowHeaderWidth:"Row Header Width",Scale:"Scale",ScaleHor:"Scale Hor",ScriptLanguage:"Script Language",SegmentPerHeight:"Segment per Height",SegmentPerWidth:"Segment per Width",SelectedIndex:"Selected Index",SelectedItem:"Selected Item",SelectedKey:"Selected Key",SelectedValue:"Selected Value",Selection:"Selection",SelectionBackColor:"Selection Back Color",SelectionEnabled:"Selection Enabled",SelectionForeColor:"Selection Fore Color",SelectionMode:"Selection Mode",SerialNumber:"Serial Number",Series:"Series",SeriesLabels:"Series Labels",SeriesLabelsBorderColor:"Border Color",SeriesLabelsBrush:"Labels Brush",SeriesLabelsColor:"Labels Color",SeriesLighting:"Series Lighting",SeriesShowShadow:"Series Show Shadow",Shadow:"Shadow",ShadowBrush:"Shadow Brush",ShadowColor:"Shadow Color",ShadowSize:"Shadow Size",ShapeType:"Shape Type",Shift:"Shift",ShiftMode:"Shift Mode",ShowBehind:"Show Behind",ShowDialog:"Show Dialog",ShowEdgeValues:"Show Edge Values",ShowImageBehind:"Show Image Behind",ShowInLegend:"Show in Legend",ShowInPercent:"Show in Percent",ShowLabels:"Show Labels",ShowLabelText:"Show Label Text",ShowLegend:"Show Legend",ShowMarker:"Show Marker",ShowNulls:"Show Nulls",ShowOthers:"Show Others",ShowPercents:"Show Percents",ShowQuietZoneIndicator:"Show Quiet Zone Indicator",ShowQuietZones:"Show Quiet Zones",ShowScrollBar:"Show Scroll Bar",ShowSeriesLabels:"Show Series Labels",ShowShadow:"Show Shadow",ShowTotal:"Show Total",ShowUpDown:"Show Up Down",ShowValue:"Show Value",ShowXAxis:"Show X Axis",ShowYAxis:"Show Y Axis",ShowZeros:"Show Zeros",ShrinkFontToFit:"Shrink Font to Fit",ShrinkFontToFitMinimumSize:"Shrink Font to Fit Minimum Size",Side:"Side",Sides:"Sides",Simple:"Simple",Size:"Size",SizeMode:"Size Mode",Skin:"Skin",SkipFirst:"Skip First",SkipIndices:"Skip Indices",SkipIndicesObj:"Skip Indices",SkipMajorValues:"Skip Major Values",SkipValues:"Skip Values",SkipValuesObj:"Skip Values",Smoothing:"Smoothing",Sort:"Sort",SortBy:"Sort by",SortDirection:"Sort Direction",Sorted:"Sorted",SortingColumn:"Sorting Column",SortingEnabled:"Sorting Enabled",SortType:"Sort Type",Space:"Space",Spacing:"Spacing",SqlCommand:"Sql Command",StartAngle:"Start Angle",StartCap:"Start Cap",StartColor:"Start Color",StartFromZero:"Start From Zero",StartMode:"Start Mode",StartNewPage:"Start New Page",StartNewPageIfLessThan:"Start New Page if Less Than",StartPosition:"Start Position",StartValue:"Start Value",StartWidth:"Start Width",Step:"Step",Stop:"Stop",StopBeforePage:"Stop Before Page",StopBeforePrint:"Stop Before Print",StoreImagesInResources:"Store Images in Resources",Stretch:"Stretch",StretchToPrintArea:"Stretch to Print Area",StripBrush:"Strip Brush",Strips:"Strips",StructuredAppendPosition:"Structured Append Position",StructuredAppendTotal:"Structured Append Total",Style:"Style",StyleColors:"Style Colors",Styles:"Styles",SubReportPage:"Sub Report",Summary:"Summary",SummaryExpression:"Summary Expression",SummarySortDirection:"Summary Sort Direction",SummaryType:"Summary Type",SummaryValues:"Summary Values",SupplementCode:"Supplement Code",SupplementType:"Supplement Type",SweepAngle:"Sweep Angle",SystemVariable:"System Variable",SystemVariables:"System Variables",Table:"Table",Tag:"Tag",TagDataColumn:"Tag Data Column",TagValue:"Tag Value",Tension:"Tension",Text:"Text",TextAfter:"Text After",TextAlign:"Text Align",TextAlignment:"Text Alignment",TextBefore:"Text Before",TextBrush:"Text Brush",TextColor:"Text Color",TextFormat:"Text Format",TextOnly:"Text Only",TextOptions:"Text Options",TextQuality:"Text Quality",Ticks:"Ticks",Title:"Title",TitleBeforeHeader:"Title before Header",TitleColor:"Title Color",TitleDirection:"TitleDirection",TitleFont:"Title Font",TitleVisible:"Title Visible",To:"To",Today:"Today",ToolTip:"Tool Tip",ToolTipDataColumn:"Tool Tip Data Column",Top:"Top",Topmost:"Topmost",TopmostLine:"Topmost Line",TopN:"Top N",TopSide:"Top Side",Total:"Total",Totals:"Totals",TransparentColor:"Transparent Color",TrendLine:"Trend Line",TrendLineColor:"Color",TrendLineShowShadow:"Show Shadow",Trimming:"Trimming",TrimExcessData:"Trim Excess Data",Type:"Type",TypeName:"Type Name",Types:"Types",Underline:"Underline",UndoLimit:"Undo Limit",Unit:"Unit",UnlimitedBreakable:"Unlimited Breakable",UnlimitedHeight:"Unlimited Height",UnlimitedWidth:"Unlimited Width",UseAliases:"Use Aliases",UseExternalReport:"Use External Report",UseParentStyles:"Use Parent Styles",UseRangeColor:"Use Range Color",UseRectangularSymbols:"Use Rectangular Symbols",UseSeriesColor:"Use Series Color",UseStyleOfSummaryInColumnTotal:"Use Style of Summary in Column Total",UseStyleOfSummaryInRowTotal:"Use Style of Summary in Row Total",UseValuesFromTheSpecifiedRange:"Use Values From The Specified Range",Value:"Value",ValueClose:"Value Close",ValueDataColumn:"Value Data Column",ValueDataColumnClose:"Value Data Column Close",ValueDataColumnEnd:"Value Data Column End",ValueDataColumnHigh:"Value Data Column High",ValueDataColumnLow:"Value Data Column Low",ValueDataColumnOpen:"Value Data Column Open",ValueEnd:"Value End",ValueHigh:"Value High",ValueLow:"Value Low",ValueOpen:"Value Open",Values:"Values",ValueType:"Value Type",ValueTypeSeparator:"Value Type Separator",Variable:"Variable",Variables:"Variables",Version:"Version",VertAlignment:"Vertical Alignment",VertSpacing:"Vertical Spacing",ViewMode:"View Mode",Visible:"Visible",Watermark:"Watermark",Weight:"Weight",WeightDataColumn:"Weight Data Column",Weights:"Weights",Width:"Width",WindowState:"Window State",WordWrap:"Word Wrap",Wrap:"Wrap",WrapGap:"WrapGap",XAxis:"X Axis",XTopAxis:"X Top Axis",YAxis:"Y Axis",YRightAxis:"Y Right Axis",Zoom:"Zoom"},PropertySystemColors:{ActiveBorder:"Active Border",ActiveCaption:"Active Caption",ActiveCaptionText:"Active Caption Text",AppWorkspace:"App Workspace",Control:"Control",ControlDark:"Control Dark",ControlDarkDark:"Control Dark Dark",ControlLight:"Control Light",ControlLightLight:"Control Light Light",ControlText:"Control Text",Desktop:"Desktop",GrayText:"Gray Text",Highlight:"Highlight",HighlightText:"Highlight Text",HotTrack:"Hot Track",InactiveBorder:"Inactive Border",InactiveCaption:"Inactive Caption",InactiveCaptionText:"Inactive Caption Text",Info:"Info",InfoText:"Info Text",Menu:"Menu",MenuText:"Menu Text",ScrollBar:"Scroll Bar",Window:"Window",WindowFrame:"Window Frame",WindowText:"Window Text"},QueryBuilder:{AddObject:"Add Object",AddSubQuery:"Add Derived Table",AllObjects:"(All objects)",BadFromObjectExpression:"Invalid FROM object expression!",BadObjectName:"Invalid object name!",BadSelectStatement:"Invalid SELECT statement!",Collections:"Collections",CreateLinksFromForeignKeys:"Create Links from Foreign Keys",CriteriaAlias:"Alias",CriteriaCriteria:"Criteria",CriteriaExpression:"Expression",CriteriaGroupBy:"Group By",CriteriaOr:"Or...",CriteriaOutput:"Output",CriteriaSortOrder:"Sort Order",CriteriaSortType:"Sort Type",Database:"Database",DataSourceProperties:"Data Source Properties",DialectDontSupportDatabases:"The server does not support queries with objects from different databases.",DialectDontSupportSchemas:"The server does not support schemas.",DialectDontSupportUnions:"This server does not support unions.",DialectDontSupportUnionsBrackets:"This server does not support brackets in unions.",DialectDontSupportUnionsBracketsInSubQuery:"This server doesn't support brackets in unions in subqueries.",DialectDontSupportUnionsInSubQueries:"This server does not support unions in subqueries.",Edit:"Edit",EncloseWithBrackets:"Enclose with brackets",Expressions:"Expressions",InsertEmptyItem:"Insert Empty Item",JoinExpression:"Join Expression",LabelAlias:"Alias:",LabelFilterObjectsBySchemaName:"Filter Objects by Schema Name:",LabelJoinExpression:"Join Expression:",LabelLeftColumn:"Left Column:",LabelLeftObject:"Left Object:",LabelObject:"Object:",LabelRightColumn:"Right Column:",LabelRightObject:"Right Object:",LinkProperties:"Link Properties",MetadataProviderCantExecSQL:"Used metadata provider cannot execute SQL queries.",MetaProviderCantLoadMetadata:"Used metadata provider cannot automatically load metadata.",MetaProviderCantLoadMetadataForDatabase:"Used metadata provider cannot automatically load metadata for database: {0}",MoveDown:"Move Down",MoveUp:"Move Up",NewUnionSubQuery:"New union sub-query",NoConnectionObject:"No connection object (property {0} not assigned).",NoTransactionObject:"No transaction object (property {0} not assigned).",Objects:"Objects",ProcedureParameters:"Procedure Parameters",Procedures:"Procedures",qnSaveChanges:"Do you want to save changes of query?",Query:"Query",QueryBuilder:"Query Builder",QueryParameters:"Query Parameters",QueryProperties:"Query Properties",Remove:"Remove",RemoveBrackets:"Remove brackets",RunQueryBuilder:"Run Query Builder",SelectAllFromLeft:"Select All from Left",SelectAllFromRight:"Select All from Right",SwitchToDerivedTable:"Switch to Derived Table",Tables:"Tables",UnexpectedTokenAt:'Unexpected token "{0}" at line {1}, pos {2}!',Unions:"Unions",UnionSubMenu:"Union",ViewQuery:"View Query",Views:"Views"},Questions:{qnConfiguration:"Please choose the type of configuration for the properties panel. The type of the selected configuration depends on the number of visible properties and their complexity for the developer of reports. You can always change the configuration type from the context menu of the properties panel.",qnDictionaryNew:"Do you want to create new Dictionary?",qnLanguageNew:"You have changed the language of the report. This will lead to the new report code generation. Are you certain you want to save the new language?",qnPageDelete:"Do you want to delete page?",qnRemove:"Do you want to remove?",qnRemoveService:"Do you want to remove Service?",qnRemoveServiceCategory:"Do you want to remove Category?",qnRemoveUnused:"Do you want to remove Unused?",qnReplace:"Do you want to replace the existing item {0}?",qnRestoreDefault:"Restore defaults?",qnSaveChanges:"Save changes in {0}?",qnSaveChangesToPreviewPage:"Do you want to save page changes?",qnSynchronize:"Synchronized contents of the Data Store and contents of the Dictionary?",qnSynchronizeServices:"Synchronized services?"},Report:{Address:"Address",Alphabetical:"Alphabetical",Bands:"Bands",Basic:"Basic",BasicConfiguration:"Minimal number of object properties, which are necessary for rendering the basic report types.",BusinessObjects:"Business Objects",Categorized:"Categorized",Charts:"Charts",ClickForMoreDetails:"Click for More Details",CollapseAll:"Collapse All",Collection:"Collection",CompilingReport:"Compiling Report",Complete:"Complete",Components:"Components",ConnectingToData:"Connecting to Data",CopyOf:"Copy",CreateNewReportPageForm:"Create a new report, add a page, add a form",CreatingReport:"Creating Report",CrossBands:"Cross",Dialogs:"Dialogs",EditStyles:"[Edit Styles]",Enhancements:"Enhancements",Errors:"Errors",EventsTab:"Events Tab",ExpandAll:"Expand All",FilterAnd:"And",FilterOr:"Or",FinishingReport:"Finishing Report",FirstPass:"First Pass",FixedBugs:"Fixed Bugs",Gallery:"Gallery",GenerateNewCode:"Generate New Code",History:"History",Infographics:"Infographics",InfoMessage:"{0} - {1} found.",InformationMessages:"Information Messages",LabelAlias:"Alias:",LabelAuthor:"Author:",LabelBackground:"Background:",LabelCategory:"Category:",LabelCentimeters:"Centimeters:",LabelCollectionName:"Collection Name:",LabelColor:"Color:",LabelCountData:"Count Data:",LabelDataBand:"DataBand:",LabelDataColumn:"Data Column:",LabelDefaultValue:"Default Value:",LabelExpression:"Expression:",LabelFactorLevel:"Nested Factor:",LabelFontName:"Font Name:",LabelFunction:"Function:",LabelHundredthsOfInch:"Hundredths of Inch:",LabelInches:"Inches:",LabelMillimeters:"Millimeters:",LabelName:"Name:",LabelNameInSource:"Name in Source:",LabelNestedLevel:"Nested Level:",LabelPassword:"Password:",LabelPixels:"Pixels:",LabelQueryTimeout:"Query Timeout:",LabelSystemVariable:"System Variable:",LabelTotals:"Totals",LabelType:"Type:",LabelUserName:"User Name:",LabelValue:"Value:",LoadingReport:"Loading Report",nameAssembly:"Assembly",NewFeatures:"New Features",No:"No",NoFixes:"There are no fixes or updates for this version!",NoIssues:"No Issues",NoNewVersions:"There are no new versions available!",NotAssigned:"Not Assigned",Office2010Back:"Back",PageNofM:"Page {0} of {1}",PreparingReport:"Preparing Report",Professional:"Professional",ProfessionalConfiguration:"All object properties.",PropertiesTab:"Properties Tab",RangeAll:"All",RangeCurrentPage:"Current Page",RangeInfo:"Enter page number and/or pages ranges separated by commas. For example: 1, 3, 5-12",RangePage:"Page Range",RangePages:"Pages:",ReportChecker:"Report Checker",ReportRenderingMessages:"Report Rendering Messages",RestartDesigner:"You need to restart the report designer",SaveReportPagesOrFormsFromReport:"Save the report, pages or forms",SavingReport:"Saving Report",SecondPass:"Second Pass",Shapes:"Shapes",Standard:"Standard",StandardConfiguration:"Main object properties except rarely used ones.",StiEmptyBrush:"Empty",StiGlareBrush:"Glare",StiGlassBrush:"Glass",StiGradientBrush:"Gradient",StiHatchBrush:"Hatch",StiSolidBrush:"Solid",StyleBad:"Bad",StyleGood:"Good",StyleNeutral:"Neutral",StyleNormal:"Normal",StyleNote:"Note",StyleWarning:"Warning",Warnings:"Warnings",WhatsNewInVersion:"What's New in {0}",When:"when {0} {1}",WhenAnd:"when {0} {1} and",WhenValueIs:"when value is"},ReportInfo:{CheckIssuesAdditionalDescription:"Check the report for errors and find inaccuracies in it.",EncryptWithPassword:"Encrypt with Password",EncryptWithPasswordAdditionalDescription:"Set the password to prevent unauthorized working with the report.",EncryptWithPasswordDescription:"Protect Report",Info:"Info",ReportOptions:"Report Options",ReportOptionsAdditionalDescription:"Setup the basic information and parameters in the report."},ReportOpen:{Browse:"Browse",Import:"Import"},Services:{categoryContextTools:"Context Tools",categoryDesigner:"Designer",categoryDictionary:"Dictionary",categoryExport:"Exports",categoryLanguages:"Languages",categoryPanels:"Panels",categoryRender:"Render",categoryShapes:"Shapes",categorySL:"Save / Load",categorySystem:"System",categoryTextFormat:"Text Format"},Shapes:{Arrow:"Arrow",BasicShapes:"Basic Shapes",BentArrow:"Bent Arrow",BlockArrows:"Block Arrows",Chevron:"Chevron",ComplexArrow:"Complex Arrow",DiagonalDownLine:"Diagonal Line Down",DiagonalUpLine:"Diagonal Line Up",Division:"Division",Equal:"Equal",EquationShapes:"Equation Shapes",Flowchart:"Flowchart",FlowchartCard:"Flowchart: Card",FlowchartCollate:"Flowchart: Collate",FlowchartDecision:"Flowchart: Decision",FlowchartManualInput:"Flowchart: Manual Input",FlowchartOffPageConnector:"Flowchart: Off Page Connector",FlowchartPreparation:"Flowchart: Preparation",FlowchartSort:"Flowchart: Sort",Frame:"Frame",HorizontalLine:"Horizontal Line",InsertShapes:"Insert Shapes",LeftAndRightLine:"Left and Right Line",Lines:"Lines",Minus:"Minus",Multiply:"Multiply",Octagon:"Octagon",Oval:"Oval",Parallelogram:"Parallelogram",Plus:"Plus",Rectangle:"Rectangle",Rectangles:"Rectangles",RegularPentagon:"Regular: Pentagon",RoundedRectangle:"Rounded Rectangle",ServiceCategory:"Shapes",ShapeStyles:"Shape Styles",SnipDiagonalSideCornerRectangle:"Snip Diagonal Side Corner Rectangle",SnipSameSideCornerRectangle:"Snip Same Side Corner Rectangle",TopAndBottomLine:"Top and Bottom Line",Trapezoid:"Trapezoid",Triangle:"Triangle",VerticalLine:"Vertical Line"},SystemVariables:{Column:"Returns the current column number (starts from 1).",GroupLine:"Returns the current group line number (starts from 1).",IsFirstPage:"Returns true, if, in the current moment, the first page of a report is printed.",IsFirstPageThrough:"Returns true, if, in the current moment, the first report page is printed. When calculating the IsFirstPageThrough, all ResetPageNumber properties are ignored and numbering starts from the beginning of report. For correct calculation of a variable it is required to execute two passes.",IsLastPage:"Returns true, if, in the current moment, the last page of a report is printed. For correct calculation of a variable it is required to execute two passes.",IsLastPageThrough:"Returns true, if, in the current moment, the last page of a report is printed. When calculating the IsLastPageThrough, all properties ResetPageNumber are ignored and numbering starts from the beginning of report. For correct calculation of a variable it is required to execute two passes.",Line:"Returns the current line number (starts from 1).",LineABC:"Returns the alphabetical analogue of the current line number.",LineRoman:"Returns the current line number in Roman numerals.",LineThrough:"Returns the current line number (starts from 1). When calculating the number, all groupings are ignored and numbering starts from the beginning of printing.",PageCopyNumber:"Return a number of a current copy of a page (starts from 1).",PageNofM:'Returns a localized string, showing "Page N of M" where N is the current page number and M is the TotalPageCount of a report.',PageNofMThrough:'Returns a localized string, showing "Page N of M" where N is the current page number and M is the TotalPageCount of a report. When calculating the PageNofMThrough, all properties ResetPageNumber are ignored and numbering starts from the beginning of a report.',PageNumber:"Returns the current page number (starts from 1).",PageNumberThrough:"Returns the current page number (starts from 1). When calculating the PageNumberThrough, all properties ResetPageNumber are ignored and numbering starts from the beginning of a report.",ReportAlias:"Returns the report alias. You can change the ReportAlias with help of the ReportAlias property of a report.",ReportAuthor:"Returns the report author. You can change ReportAuthor with help of the ReportAuthor property of a report.",ReportChanged:"The Date when a report was changed.",ReportCreated:"The Date when a report was created.",ReportDescription:"Returns the report description. You can change the ReportName with help of the ReportDescription property of a report.",ReportName:"Returns the report name. You can change the ReportName with help of the ReportName property of a report.",Time:"Returns the current time.",Today:"Returns the current date.",TotalPageCount:"Returns the number of pages in a report.",TotalPageCountThrough:"Returns the number of pages in a report. When calculating the TotalPageCountThrough, all properties ResetPageNumber are ignored and numbering starts from the beginning of report."},TableRibbon:{BuiltIn:"Built-In",Delete:"Delete",DeleteColumns:"Delete Columns",DeleteRows:"Delete Rows",DeleteTable:"Delete Table",DistributeColumns:"Distribute Columns",DistributeRows:"Distribute Rows",InsertAbove:"Insert Above",InsertBelow:"Insert Below",InsertLeft:"Insert Left",InsertRight:"Insert Right",PlainTables:"Plain Tables",ribbonBarRowsColumns:"Rows and Columns",ribbonBarTable:"Table",ribbonBarTableStyles:"Table Styles",Select:"Select",SelectColumn:"Select Column",SelectRow:"Select Row",SelectTable:"Select Table"},Toolbars:{Align:"Align",AlignBottom:"Align Bottom",AlignCenter:"Align Center",AlignLeft:"Align Left",AlignMiddle:"Align Middle",AlignRight:"Align Right",AlignToGrid:"Align to Grid",AlignTop:"Align Top",AlignWidth:"Justify",BringToFront:"Bring to Front",CenterHorizontally:"Center Horizontally",CenterVertically:"Center Vertically",Conditions:"Conditions",FontGrow:"Grow Font",FontName:"Font Name",FontShrink:"Shrink Font",FontSize:"Font Size",FontStyleBold:"Font Style Bold",FontStyleItalic:"Font Style Italic",FontStyleUnderline:"Font Style Underline",Link:"Link",Lock:"Lock",MakeHorizontalSpacingEqual:"Make Horizontal Spacing Equal",MakeSameHeight:"Make Same Height as {0}",MakeSameSize:"Make Same Size as {0}",MakeSameWidth:"Make Same Width as {0}",MakeVerticalSpacingEqual:"Make Vertical Spacing Equal",MoveBackward:"Move Backward",MoveForward:"Move Forward",Order:"Order",SendToBack:"Send to Back",Size:"Size",StyleDesigner:"Style Designer",Styles:"List of the styles",TabHome:"Home",TabLayout:"Layout",TabPage:"Page",TabView:"View",TextBrush:"Text Brush",ToolbarAlignment:"Alignment",ToolbarArrange:"Arrange",ToolbarBorders:"Borders",ToolbarClipboard:"Clipboard",ToolbarDockStyle:"Dock Style",ToolbarFont:"Font",ToolbarFormatting:"Formatting",ToolbarLayout:"Layout",ToolbarPageSetup:"Page Setup",ToolbarStandard:"Standard",ToolbarStyle:"Style",ToolbarTextFormat:"Text Format",ToolbarTools:"Tools",ToolbarViewOptions:"View Options",ToolbarWatermarkImage:"Watermark Image",ToolbarWatermarkText:"Watermark Text"},Toolbox:{Create:"Creation components",Hand:"Hand",Select:"Select",Style:"Copy Style",TextEditor:"Text Editor",title:"Toolbox"},Wizards:{SelectTemplate:"Template",Mapping:"Mapping",Company:"Company",BlankDashboard:"Blank Dashboard",BlankReport:"Blank Report",ButtonBack:"< &Back",ButtonCancel:"Cancel",ButtonFinish:"&Finish",ButtonNext:"&Next >",ColumnsOrder:"Columns Order",Custom:"Custom",DataRelation:"Relation",DataSource:"Data Source",DataSources:"Data Sources",DefaultThemes:"Default Themes",Filters:"Filters",FromReportTemplate:"From Report Template",groupCreateNewDashboard:"Create a New Dashboard",groupCreateNewPageOrForm:"Create a New Page or Form",groupCreateNewReport:"Create a New Report",Groups:"Groups",groupTemplates:"Templates",groupWizards:"Wizards",infoSelectTemplate:"Choose the appropriate template for your needs.",infoLanguages:"Select the report culture.",infoCompanyInfo:"Enter your company information.",infoColumnsOrder:"Arrange columns in the necessary order.",infoDataSource:"Select one Data Source from available.",infoDataSources:"Select Data Sources from available. The first selected one will be the Master data source.",infoFilters:"Filter Data for your report",infoGroups:"Select columns on which necessary to group.",infoLabelSettings:"Set the settings of labels.",infoLayout:"Specify layout of report.",infoRelation:"Select one Data Relation from available.",infoSelectColumns:"Select columns from which the information will be displayed.",infoSort:"Set the sorting of data. You can sort immediately on multiple columns.",infoThemes:"Select theme for your report.",infoTotals:"Add summary information to your report.",LabelDirection:"Direction:",LabelHeight:"Height:",LabelHorizontalGap:"Horizontal Gap:",LabelLabelType:"Label Type:",LabelLeftMargin:"Left Margin:",LabelNumberOfColumns:"Number of Columns:",LabelNumberOfRows:"Number of Rows:",LabelPageHeight:"Page Height:",LabelPageWidth:"Page Width:",LabelReport:"Label Report",LabelSettings:"Label Settings",LabelSize:"Size:",LabelTopMargin:"Top Margin:",LabelVerticalGap:"Vertical Gap:",LabelWidth:"Width:",Layout:"Layout",MarkAll:"Mark &All",MasterDetailReport:"Master-Detail Report",NoFunction:"[None]",OpenExistingReport:"Open Existing File",Preview:"Preview",Reset:"&Reset",Results:"Results",SelectColumns:"Select Columns",Sort:"Sort",StandardReport:"Standard Report",Themes:"Themes",title:"New Report",Totals:"Totals",UsingReportWizard:"Using Report Wizard"},Zoom:{EmptyValue:"Empty Value",MultiplePages:"Multiple Pages",OnePage:"One Page",PageHeight:"Page Height",PageWidth:"Page Width",TwoPages:"Two Pages",ZoomTo100:"Zoom to 100%"}},o._cultureName="",o}();o.StiLocalization=i}(o=t.Localization||(t.Localization={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.ActivationMaxActivationsReached=1]="ActivationMaxActivationsReached",e[e.ActivationExpiriedBeforeFirstRelease=2]="ActivationExpiriedBeforeFirstRelease",e[e.ActivationLicenseIsNotCorrect=3]="ActivationLicenseIsNotCorrect",e[e.ActivationLockedAccount=4]="ActivationLockedAccount",e[e.ActivationServerVersionNotAllowed=5]="ActivationServerVersionNotAllowed",e[e.ActivationServerIsNotAvailableNow=6]="ActivationServerIsNotAvailableNow",e[e.ActivationSomeTroublesOccurred=7]="ActivationSomeTroublesOccurred",e[e.ActivationUserNameOrPasswordIsWrong=8]="ActivationUserNameOrPasswordIsWrong",e[e.ActivationWrongAccountType=9]="ActivationWrongAccountType",e[e.AuthAccountCantBeUsedNow=10]="AuthAccountCantBeUsedNow",e[e.AuthAccountIsNotActivated=11]="AuthAccountIsNotActivated",e[e.AuthCantChangeSystemRole=12]="AuthCantChangeSystemRole",e[e.AuthCantChangeRoleBecauseLastAdministratorUser=13]="AuthCantChangeRoleBecauseLastAdministratorUser",e[e.AuthCantChangeRoleBecauseLastSupervisorUser=14]="AuthCantChangeRoleBecauseLastSupervisorUser",e[e.AuthCantDeleteHimselfUser=15]="AuthCantDeleteHimselfUser",e[e.AuthCantDeleteLastAdministratorUser=16]="AuthCantDeleteLastAdministratorUser",e[e.AuthCantDeleteLastSupervisorUser=17]="AuthCantDeleteLastSupervisorUser",e[e.AuthCantDeleteSystemRole=18]="AuthCantDeleteSystemRole",e[e.AuthCantDisableUserBecauseLastAdministratorUser=19]="AuthCantDisableUserBecauseLastAdministratorUser",e[e.AuthCantDisableUserBecauseLastSupervisorUser=20]="AuthCantDisableUserBecauseLastSupervisorUser",e[e.AuthOAuthIdNotSpecified=21]="AuthOAuthIdNotSpecified",e[e.AuthPasswordIsTooShort=22]="AuthPasswordIsTooShort",e[e.AuthPasswordIsNotSpecified=23]="AuthPasswordIsNotSpecified",e[e.AuthPasswordIsNotCorrect=24]="AuthPasswordIsNotCorrect",e[e.AuthRequestsLimitIsExceeded=25]="AuthRequestsLimitIsExceeded",e[e.AuthRoleCantBeDeletedBecauseUsedByUsers=26]="AuthRoleCantBeDeletedBecauseUsedByUsers",e[e.AuthRoleNameAlreadyExists=27]="AuthRoleNameAlreadyExists",e[e.AuthRoleNameIsSystemRole=28]="AuthRoleNameIsSystemRole",e[e.AuthUserHasLoggedOut=29]="AuthUserHasLoggedOut",e[e.AuthUserNameAlreadyExists=30]="AuthUserNameAlreadyExists",e[e.AuthUserNameIsNotSpecified=31]="AuthUserNameIsNotSpecified",e[e.AuthUserNameOrPasswordIsNotCorrect=32]="AuthUserNameOrPasswordIsNotCorrect",e[e.AuthUserNameShouldLookLikeAnEmailAddress=33]="AuthUserNameShouldLookLikeAnEmailAddress",e[e.AuthWorkspaceNameAlreadyInUse=34]="AuthWorkspaceNameAlreadyInUse",e[e.CommandTimeOut=35]="CommandTimeOut",e[e.CustomMessage=36]="CustomMessage",e[e.ExecutionError=37]="ExecutionError",e[e.IsNotAuthorized=38]="IsNotAuthorized",e[e.IsNotDeleted=39]="IsNotDeleted",e[e.IsNotCorrect=40]="IsNotCorrect",e[e.IsNotEqual=41]="IsNotEqual",e[e.IsNotFound=42]="IsNotFound",e[e.IsNotRecognized=43]="IsNotRecognized",e[e.IsNotSpecified=44]="IsNotSpecified",e[e.ItemCantBeDeletedBecauseItemIsAttachedToOtherItems=45]="ItemCantBeDeletedBecauseItemIsAttachedToOtherItems",e[e.ItemCantBeMovedToSpecifiedPlace=46]="ItemCantBeMovedToSpecifiedPlace",e[e.ItemDoesNotSupport=47]="ItemDoesNotSupport",e[e.KeyAndToKeyIsEqual=48]="KeyAndToKeyIsEqual",e[e.NotificationFailed=49]="NotificationFailed",e[e.NotificationFileUploading=50]="NotificationFileUploading",e[e.NotificationFilesUploadingComplete=51]="NotificationFilesUploadingComplete",e[e.NotificationItemDelete=52]="NotificationItemDelete",e[e.NotificationItemDeleteComplete=53]="NotificationItemDeleteComplete",e[e.NotificationItemRestore=54]="NotificationItemRestore",e[e.NotificationItemRestoreComplete=55]="NotificationItemRestoreComplete",e[e.NotificationItemTransfer=56]="NotificationItemTransfer",e[e.NotificationItemTransferComplete=57]="NotificationItemTransferComplete",e[e.NotificationItemWaitingProcessing=58]="NotificationItemWaitingProcessing",e[e.NotificationOperationAborted=59]="NotificationOperationAborted",e[e.NotificationRecycleBinCleaning=60]="NotificationRecycleBinCleaning",e[e.NotificationRecycleBinCleaningComplete=61]="NotificationRecycleBinCleaningComplete",e[e.NotificationRecycleBinWaitingProcessing=62]="NotificationRecycleBinWaitingProcessing",e[e.NotificationReportCompiling=63]="NotificationReportCompiling",e[e.NotificationReportDataProcessing=64]="NotificationReportDataProcessing",e[e.NotificationReportExporting=65]="NotificationReportExporting",e[e.NotificationReportExportingComplete=66]="NotificationReportExportingComplete",e[e.NotificationReportRendering=67]="NotificationReportRendering",e[e.NotificationReportRenderingComplete=68]="NotificationReportRenderingComplete",e[e.NotificationReportSaving=69]="NotificationReportSaving",e[e.NotificationReportWaitingProcessing=70]="NotificationReportWaitingProcessing",e[e.NotificationSchedulerRunning=71]="NotificationSchedulerRunning",e[e.NotificationSchedulerRunningComplete=72]="NotificationSchedulerRunningComplete",e[e.NotificationSchedulerWaitingProcessing=73]="NotificationSchedulerWaitingProcessing",e[e.NotificationTransferring=74]="NotificationTransferring",e[e.NotificationTransferringComplete=75]="NotificationTransferringComplete",e[e.NotificationTitleFilesUploading=76]="NotificationTitleFilesUploading",e[e.NotificationTitleItemRefreshing=77]="NotificationTitleItemRefreshing",e[e.NotificationTitleItemTransferring=78]="NotificationTitleItemTransferring",e[e.NotificationTitleReportExporting=79]="NotificationTitleReportExporting",e[e.NotificationTitleReportRendering=80]="NotificationTitleReportRendering",e[e.NotificationTitleSchedulerRunning=81]="NotificationTitleSchedulerRunning",e[e.QuotaMaximumComputingCyclesCountExceeded=82]="QuotaMaximumComputingCyclesCountExceeded",e[e.QuotaMaximumFileSizeExceeded=83]="QuotaMaximumFileSizeExceeded",e[e.QuotaMaximumItemsCountExceeded=84]="QuotaMaximumItemsCountExceeded",e[e.QuotaMaximumReportPagesCountExceeded=85]="QuotaMaximumReportPagesCountExceeded",e[e.QuotaMaximumUsersCountExceeded=86]="QuotaMaximumUsersCountExceeded",e[e.QuotaMaximumWorkspacesCountExceeded=87]="QuotaMaximumWorkspacesCountExceeded",e[e.AccessDenied=88]="AccessDenied",e[e.OutOfRange=89]="OutOfRange",e[e.ParsingCommandException=90]="ParsingCommandException",e[e.SchedulerCantRunItSelf=91]="SchedulerCantRunItSelf",e[e.SessionTimeOut=92]="SessionTimeOut",e[e.SnapshotAlreadyProcessed=93]="SnapshotAlreadyProcessed",e[e.SpecifiedItemIsNot=94]="SpecifiedItemIsNot",e[e.WithSpecifiedKeyIsNotFound=95]="WithSpecifiedKeyIsNotFound",e[e.VersionCopyFromItem=96]="VersionCopyFromItem",e[e.VersionCreatedFromFile=97]="VersionCreatedFromFile",e[e.VersionCreatedFromItem=98]="VersionCreatedFromItem",e[e.VersionNewItemCreation=99]="VersionNewItemCreation",e[e.VersionLoadedFromFile=100]="VersionLoadedFromFile"}(t=e.StiNoticeIdent||(e.StiNoticeIdent={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.StiNotice=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Collections.Hashtable,r=e.System.ICloneable,i=function(){function e(){this.items=null,this.valueBoolFalse=!1,this.valueBoolTrue=!0}return e.prototype.implements=function(){return[r]},e.prototype.clone=function(){var t=new e;return null!=this.items&&(t.items=this.items.clone()),t},e.prototype.setNumber=function(e,t,r){if(t==r){if(null==this.items)return;null!=this.items.get(e)&&this.items.remove(e)}else null==this.items&&(this.items=new o),this.items.set(e,t)},e.prototype.getNumber=function(e,t){if(null==this.items)return t;var o=this.items.get(e);return null==o?t:o},e.prototype.setBool=function(e,t,r){if(t==r){if(null==this.items)return;null!=this.items.get(e)&&this.items.remove(e)}else null==this.items&&(this.items=new o),t?this.items.set(e,this.valueBoolTrue):this.items.set(e,this.valueBoolFalse)},e.prototype.getBool=function(e,t){if(null==this.items)return t;var o=this.items.get(e);if(o==this.valueBoolFalse)return!1;if(o==this.valueBoolTrue)return!0;return t},e.prototype.set=function(e,t,r){if(null==this.items&&(this.items=new o),null==t||t==r)return void(null!=this.items.get(e)&&this.items.remove(e));this.items.set(e,t)},e.prototype.get=function(e,t){if(null==this.items)return t;var o=this.items.get(e);if(null==o)return t;return o},e.prototype.isPresent=function(e){if(null==this.items)return!1;return this.items.containsKey(e)},e}();t.StiRepositoryItems=i}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.Base.StiRepositoryItems,r=e.System.ICloneable,i=function(){function e(){this._properties=null}return e.prototype.clone=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=!0),this.memberwiseClone()},e.prototype.implements=function(){return[r]},e.prototype.isPropertyPresent=function(e){if(null==this.properties)return!1;return this.properties.isPresent(e)},Object.defineProperty(e.prototype,"properties",{get:function(){return null==this._properties&&(this._properties=new o),this._properties},set:function(e){this._properties=e},enumerable:!0,configurable:!0}),e.prototype.isPropertiesInitializedProtected=function(){return null!=this.properties},Object.defineProperty(e.prototype,"serviceCategory",{get:function(){return"Misc"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serviceName",{get:function(){return this.getStiType().getStiTypeName()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serviceInfo",{get:function(){return String.empty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serviceType",{get:function(){return this.getStiType()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serviceEnabled",{get:function(){return this.properties.getBool("ServiceEnabled",!0)},set:function(e){this.properties.setBool("ServiceEnabled",e,!0)},enumerable:!0,configurable:!0}),e}();t.StiService=i}(o=t.Services||(t.Services={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(e){e[e.FText=1]="FText",e[e.FHcrc=2]="FHcrc",e[e.FExtra=4]="FExtra",e[e.FName=8]="FName",e[e.FComment=16]="FComment"}(o||(o={}));var r=function(){function t(){}return Object.defineProperty(t,"crcTable",{get:function(){if(null==this._crcTable){this._crcTable=new Array(256);for(var e=void 0,t=0;t<256;t++){e=t;for(var o=0;o<8;o++)e=0!=(1&e)?3988292384^e>>>1:e>>>1;this._crcTable[t]=e}}return this._crcTable},enumerable:!0,configurable:!0}),t.crc32=function(e){for(var t=0^-1,o=0;o<e.length;o++)t=t>>>8^this.crcTable[255&(t^e[o])];return(-1^t)>>>0},t.putByte=function(e,t){t.push(255&e)},t.putShort=function(e,t){t.push(255&e),t.push(e>>>8)},t.putLong=function(e,o){t.putShort(65535&e,o),t.putShort(e>>>16,o)},t.putString=function(e,o){for(var r=0;r<e.length;r+=1)t.putByte(e.charCodeAt(r),o)},t.readByte=function(e){return e.shift()},t.readShort=function(e){return e.shift()|e.shift()<<8},t.readLong=function(e){var o=t.readShort(e),r=t.readShort(e);if(r>32768)return((r-=32768)<<16|o)+32768*Math.pow(2,16);return r<<16|o},t.readString=function(e){var t=[];while(0!==e[0])t.push(String.fromCharCode(e.shift()));return e.shift(),t.join("")},t.readBytes=function(e,t){for(var o=[],r=0;r<t;r+=1)o.push(e.shift());return o},t.pack=function(r,i){if(null==r||void 0===r)return null;var n=0,a=[],s=r;r.sti_is(String)&&(s=r.toUnicodeString().toBytesArray()),t.putByte(t.ID1,a),t.putByte(t.ID2,a),t.putByte(t.DefaultMethod,a),String.isNullOrEmpty(i)||(n|=o.FName),t.putByte(n,a),t.putLong(parseInt((Date.now()/1e3).toString(),10),a),1==t.DefaultLevel?t.putByte(4,a):9==t.DefaultLevel?t.putByte(2,a):t.putByte(0,a),-1!=navigator.appVersion.indexOf("Win")?t.putByte(11,a):t.putByte(3,a),String.isNullOrEmpty(i)||(t.putString(i.substring(i.lastIndexOf("/")+1),a),t.putByte(0,a));for(var l=JSZip.compressions.DEFLATE.compress(s,{level:6}),u=0,c=l;u<c.length;u++){var d=c[u];t.putByte(d,a)}if(t.putLong(t.crc32(s),a),t.putLong(s.length,a),r.sti_is(Array))return a;return e.System.Convert.toBase64String(a)},t.unpack=function(r){var i=r;if(r.sti_is(String)&&(i=e.System.Convert.fromBase64String(r)),t.readByte(i)!==t.ID1||t.readByte(i)!==t.ID2)throw"Not a GZIP file";if(8!==t.readByte(i))throw"Unsupported compression method";var n=t.readByte(i),a=t.readLong(i),s=t.readByte(i),l=t.readByte(i);if(n&o.FExtra){var u=t.readShort(i);t.readBytes(i,u)}n&o.FName&&t.readString(i),n&o.FComment&&t.readString(i),n&o.FHcrc&&t.readShort(i);var c=JSZip.compressions.DEFLATE.uncompress(i.splice(0,i.length-8));if(r.sti_is(Array))return c;for(var d=String.empty,m=0,p=c;m<p.length;m++){var h=p[m];d+=String.fromCharCode(h)}return d.fromUnicodeString()},t.DefaultLevel=6,t.DefaultMethod=8,t.ID1=31,t.ID2=139,t._crcTable=null,t}();t.StiGZipHelper=r}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o;!function(t){var o=e.System.Text.Encoding,r=function(){function e(){this._mainStream=null,this.zip=null,this._mainStream=null}return e.convertToArray=function(e,t){if(null==t)return[];return e?o.UTF8.getBytes(t):o.Default.getBytes(t)},e.getDosTime=function(e){return(e.year-1980&127)<<25|e.month<<21|e.day<<16|e.hour<<11|e.minute<<5|e.second>>1},e.prototype.begin=function(e,t){if(this._mainStream=e,null==this._mainStream)throw"Output stream is null";this.zip=new JSZip},e.prototype.addFile=function(e,t,o){void 0===o&&(o=!1),this.zip.file(e,t.toArray())},e.prototype.end=function(){for(var e=this.zip.generate({type:"arraybuffer",compression:"DEFLATE"}),t=new Int8Array(e),o=[],r=0;r<t.length;r++)o.push(t[r]);this._mainStream.write(o,0,o.length),this._mainStream=null},e}();t.StiZipWriter20=r}(o=t.Zip||(t.Zip={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e[e.Opacity=0]="Opacity",e[e.Scale=1]="Scale",e[e.Translation=2]="Translation",e[e.Rotation=3]="Rotation",e[e.Column=4]="Column",e[e.Points=5]="Points",e[e.PieSegment=6]="PieSegment"}(t=e.StiAnimationType||(e.StiAnimationType={}));var o;!function(e){e[e.Basic=0]="Basic",e[e.Standard=1]="Standard",e[e.Professional=2]="Professional"}(o=e.StiLevel||(e.StiLevel={}))}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=function(){function t(){}return t.createObject=function(t){if(t.prototype instanceof e.System.StimulsoftList)return[];return new t},t}();t.StiActivator=o}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.alignToMaxGrid=function(e,t,o){if(o){var r=Math.round(e/t)*t;e>r&&(r+=t),e=r}return e},e.alignToMinGrid=function(e,t,o){if(o){var r=Math.round(e/t)*t;e<r&&(r-=t),e=r}return e},e.alignToGrid=function(e,t,o){if(o){e=Math.round(e/t)*t}return e},e}();e.StiAlignValue=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=function(){function t(){}return t.changeType=function(t,o,r){void 0===r&&(r=!0);try{if(null==t||t==e.System.Data.DBNull){if(o===String)return String.empty;if(o===Boolean)return!1;if(o===e.System.Guid)return e.System.Guid.empty;if(o===e.System.DateTime)return String.empty}if(o===String){if(t.sti_is(Array))return e.System.Convert.fromBase64StringText(e.System.Convert.toBase64String(t));return t.toString()}if(o===Number||o===e.System.Decimal||o===e.System.Double||o===e.System.Float||o===e.System.NullableDecimal||o===e.System.NullableDouble||o===e.System.NullableFloat||o===e.System.Int||o===e.System.Int16||o===e.System.Int32||o===e.System.Int64||o===e.System.Long||o===e.System.Byte||o===e.System.Short||o===e.System.UInt||o===e.System.UInt16||o===e.System.UInt32||o===e.System.UInt64||o===e.System.ULong||o===e.System.SByte||o===e.System.UShort||o===e.System.NullableInt||o===e.System.NullableInt16||o===e.System.NullableInt32||o===e.System.NullableInt64||o===e.System.NullableLong||o===e.System.NullableByte||o===e.System.NullableShort||o===e.System.NullableUInt||o===e.System.NullableUInt16||o===e.System.NullableUInt32||o===e.System.NullableUInt64||o===e.System.NullableULong||o===e.System.NullableSByte||o===e.System.NullableUShort){var i=null==t?"":t.toString(),n=e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator;return i=i.replaceAll(".",",").replaceAll(",",n),t=i.trim(),0==i.length&&(t="0"),t.toNumber()}if(o===Boolean)return t.toBoolean();if(o===e.System.DateTime){if(t.sti_is(String))return e.System.DateTime.fromString(t);if(t.sti_is(e.System.DateTime))return t}return t}catch(o){return e.System.StiError.showError(o,!1),t}},t}();t.StiConvert=o}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Convert,r=e.System.Text.Encoding,i=e.System.IO.MemoryStream,n=function(){function e(){}return e.encrypt=function(e,t){return this.encryptAdv(e,t)},e.encrypt2=function(e,t){var o=this.getKeyFromPassword(t);return this.encryptAdv(e,o)},e.encryptS=function(e,t){if(null==e)return null;var i=r.UTF8.getBytes(e),n=this.getKeyFromPassword(t),a=this.encryptAdv(i,n);return o.toBase64String(a)},e.decrypt=function(e,t){return this.decryptAdv(e,t)},e.decrypt2=function(e,t){var o=this.getKeyFromPassword(t);return this.decryptAdv(e,o)},e.decryptS=function(e,t){var i=o.fromBase64String(e),n=this.getKeyFromPassword(t),a=this.decryptAdv(i,n);return r.UTF8.getString(a)},e.generateRandomKey=function(){for(var e=[],t=0;t<32;t++)e[t]=Math.floor(256*Math.random());return e},e.encryptAdv=function(e,t){if(null==e)return null;var o=[];return o=this.cryptRandom(e,t,!0),o=this.cryptXor(o,t),o=this.cryptShift(o,t,!0)},e.decryptAdv=function(e,t){if(null==e)return null;var o=[];return o=this.cryptShift(e,t,!1),o=this.cryptXor(o,t),o=this.cryptRandom(o,t,!1)},e.cryptXor=function(e,t){var o=[],r=0,i=0;while(r<e.length)i>=t.length&&(i=0),o[r]=e[r]^t[i],r++,i++;return o},e.cryptShift=function(e,t,o){var r=[],i=0,n=0;while(i<e.length)n>=t.length&&(n=0),r[i]=o?this.shiftLeft(e[i],t[n]):this.shiftRight(e[i],t[n]),i++,n++;return r},e.shiftLeft=function(e,t){var o=e<<(7&t);return o=255&o|(65280&o)>>8},e.shiftRight=function(e,t){var o=e<<8-(7&t);return o=255&o|(65280&o)>>8},e.cryptRandom=function(e,t,o){var r=[],i=0;this.setRandomSeed(t);var n=this.getMixArray(e.length);while(i<e.length)o?r[i]=e[n[i]]:r[n[i]]=e[i],i++;return r},e.getMixArray=function(e){for(var t=[],o=[],r=0;r<e;r++)t[r]=r;for(var i=0;i<e;i++){var n=this.getRandom(0,e-i-1);o[i]=t[n],t[n]=t[e-i-1]}return o},e.setRandomSeed=function(e){this.randomSeed=e[0]|e[1]<<8|e[e.length-2]<<16|e[e.length-1]<<24,this.randomSeed<0&&(this.randomSeed=4294967296+this.randomSeed),this.randomSeed=this.randomSeed%this.rand_m,this.randomSeed<0&&(this.randomSeed=16777215-this.randomSeed&16777215)},e.getRandom=function(e,t){return this.randomSeed=(this.randomSeed*this.rand_a+this.rand_c)%this.rand_m,e+(t-e+1)*this.randomSeed/this.rand_m&4294967295},e.getKeyFromPassword=function(e){var o=new i,r=t.StiMD5Helper.MD5(e);o.write(r);var n=r.length;while(n<e.length)r=t.StiMD5Helper.MD5(e.substring(0,n)),o.write(r,0,n+r.length<e.length?r.length:e.length-n),n+=r.length;var a=o.toArray();return o.close(),o=null,a},e.randomSeed=0,e.rand_m=714025,e.rand_a=4096,e.rand_c=150889,e}();t.StiEncryption=n}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Collections.Hashtable,r=e.System.Drawing.FontFamily,i=e.System.Drawing.FontStyle,n=function(){function t(){}return t.addOpentypeFont=function(t,n,a,s,l){if(void 0===n&&(n=null),void 0===a&&(a=null),void 0===s&&(s=null),void 0===l&&(l=i.Regular),null==n&&(n=t.names.fontFamily.en),e.System.Drawing.Graphics.opentypeFonts.containsKey(n)){e.System.Drawing.Graphics.opentypeFonts.get(n).set(l,{font:t,data:a,filePath:s})}else{var u=new o;u.set(l,{font:t,data:a,filePath:s}),e.System.Drawing.Graphics.opentypeFonts.add(n,u),r.families.add(new r(n))}},t.addOpentypeFontFile=function(o,r,n){void 0===r&&(r=null),void 0===n&&(n=i.Regular);var a=e.System.IO.File.getFile(o,!0),s=e.System.Drawing.Graphics.opentypeClass.parse(a.buffer);t.addOpentypeFont(s,r,a,o,n)},t.addOpentypeFontFileAsync=function(o,r,n,a){void 0===n&&(n=null),void 0===a&&(a=i.Regular),e.System.IO.File.getFileAsync(function(i){var s=e.System.Drawing.Graphics.opentypeClass.parse(i.buffer);t.addOpentypeFont(s,n,i,r,a),o()},r,!0)},t.getFontFamilies=function(){return r.families.orderBy(function(e){return e.name})},t.getBinFont=function(t,o){if(void 0===o&&(o=i.Regular),e.System.Drawing.Graphics.opentypeFonts.containsKey(t)){return e.System.Drawing.Graphics.opentypeFonts.get(t).get(o)}return null},t.getBinFonts=function(){return e.System.Drawing.Graphics.opentypeFonts.keys},t}();t.StiFontCollection=n}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=function(){function t(){}return t.newGuid=function(){return e.System.Guid.newGuid().toString().replaceAll("-","")},t}();t.StiGuidUtils=o}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.MD5=function(e){function t(e,t){return e<<t|e>>>32-t}function o(e,t){var o,r,i,n,a;if(i=2147483648&e,n=2147483648&t,o=1073741824&e,r=1073741824&t,a=(1073741823&e)+(1073741823&t),o&r)return 2147483648^a^i^n;return o|r?1073741824&a?3221225472^a^i^n:1073741824^a^i^n:a^i^n}function r(e,t,o){return e&t|~e&o}function i(e,t,o){return e&o|t&~o}function n(e,t,o){return e^t^o}function a(e,t,o){return t^(e|~o)}function s(e,i,n,a,s,l,u){return e=o(e,o(o(r(i,n,a),s),u)),o(t(e,l),i)}function l(e,r,n,a,s,l,u){return e=o(e,o(o(i(r,n,a),s),u)),o(t(e,l),r)}function u(e,r,i,a,s,l,u){return e=o(e,o(o(n(r,i,a),s),u)),o(t(e,l),r)}function c(e,r,i,n,s,l,u){return e=o(e,o(o(a(r,i,n),s),u)),o(t(e,l),r)}function d(e){var t,o=e.length,r=o+8,i=(r-r%64)/64,n=16*(i+1),a=Array(n-1),s=0,l=0;while(l<o)t=(l-l%4)/4,s=l%4*8,a[t]=a[t]|e.charCodeAt(l)<<s,l++;return t=(l-l%4)/4,s=l%4*8,a[t]=a[t]|128<<s,a[n-2]=o<<3,a[n-1]=o>>>29,a}function m(e){var t="",o="",r,i;for(i=0;i<=3;i++)r=e>>>8*i&255,o="0"+r.toString(16),t+=o.substr(o.length-2,2);return t}function p(e,t,o){t[o]=255&e,t[o+1]=e>>8&255,t[o+2]=e>>16&255,t[o+3]=e>>24&255}function h(e){e=e.replace(/\r\n/g,"\n");for(var t="",o=0;o<e.length;o++){var r=e.charCodeAt(o);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t}var S=Array(),g,f,y,C,b,v,T,w,D,P=7,B=12,A=17,F=22,R=5,E=9,L=14,N=20,x=4,O=11,k=16,M=23,G=6,I=10,_=15,j=21;for(e=h(e),S=d(e),v=1732584193,T=4023233417,w=2562383102,D=271733878,g=0;g<S.length;g+=16)f=v,y=T,C=w,b=D,v=s(v,T,w,D,S[g+0],P,3614090360),D=s(D,v,T,w,S[g+1],B,3905402710),w=s(w,D,v,T,S[g+2],A,606105819),T=s(T,w,D,v,S[g+3],F,3250441966),v=s(v,T,w,D,S[g+4],P,4118548399),D=s(D,v,T,w,S[g+5],B,1200080426),w=s(w,D,v,T,S[g+6],A,2821735955),T=s(T,w,D,v,S[g+7],F,4249261313),v=s(v,T,w,D,S[g+8],P,1770035416),D=s(D,v,T,w,S[g+9],B,2336552879),w=s(w,D,v,T,S[g+10],A,4294925233),T=s(T,w,D,v,S[g+11],F,2304563134),v=s(v,T,w,D,S[g+12],P,1804603682),D=s(D,v,T,w,S[g+13],B,4254626195),w=s(w,D,v,T,S[g+14],A,2792965006),T=s(T,w,D,v,S[g+15],F,1236535329),v=l(v,T,w,D,S[g+1],R,4129170786),D=l(D,v,T,w,S[g+6],E,3225465664),w=l(w,D,v,T,S[g+11],L,643717713),T=l(T,w,D,v,S[g+0],N,3921069994),v=l(v,T,w,D,S[g+5],R,3593408605),D=l(D,v,T,w,S[g+10],E,38016083),w=l(w,D,v,T,S[g+15],L,3634488961),T=l(T,w,D,v,S[g+4],N,3889429448),v=l(v,T,w,D,S[g+9],R,568446438),D=l(D,v,T,w,S[g+14],E,3275163606),w=l(w,D,v,T,S[g+3],L,4107603335),T=l(T,w,D,v,S[g+8],N,1163531501),v=l(v,T,w,D,S[g+13],R,2850285829),D=l(D,v,T,w,S[g+2],E,4243563512),w=l(w,D,v,T,S[g+7],L,1735328473),T=l(T,w,D,v,S[g+12],N,2368359562),v=u(v,T,w,D,S[g+5],x,4294588738),D=u(D,v,T,w,S[g+8],O,2272392833),w=u(w,D,v,T,S[g+11],k,1839030562),T=u(T,w,D,v,S[g+14],M,4259657740),v=u(v,T,w,D,S[g+1],x,2763975236),D=u(D,v,T,w,S[g+4],O,1272893353),w=u(w,D,v,T,S[g+7],k,4139469664),T=u(T,w,D,v,S[g+10],M,3200236656),v=u(v,T,w,D,S[g+13],x,681279174),D=u(D,v,T,w,S[g+0],O,3936430074),w=u(w,D,v,T,S[g+3],k,3572445317),T=u(T,w,D,v,S[g+6],M,76029189),v=u(v,T,w,D,S[g+9],x,3654602809),D=u(D,v,T,w,S[g+12],O,3873151461),w=u(w,D,v,T,S[g+15],k,530742520),T=u(T,w,D,v,S[g+2],M,3299628645),v=c(v,T,w,D,S[g+0],G,4096336452),D=c(D,v,T,w,S[g+7],I,1126891415),w=c(w,D,v,T,S[g+14],_,2878612391),T=c(T,w,D,v,S[g+5],j,4237533241),v=c(v,T,w,D,S[g+12],G,1700485571),D=c(D,v,T,w,S[g+3],I,2399980690),w=c(w,D,v,T,S[g+10],_,4293915773),T=c(T,w,D,v,S[g+1],j,2240044497),v=c(v,T,w,D,S[g+8],G,1873313359),D=c(D,v,T,w,S[g+15],I,4264355552),w=c(w,D,v,T,S[g+6],_,2734768916),T=c(T,w,D,v,S[g+13],j,1309151649),v=c(v,T,w,D,S[g+4],G,4149444226),D=c(D,v,T,w,S[g+11],I,3174756917),w=c(w,D,v,T,S[g+2],_,718787259),T=c(T,w,D,v,S[g+9],j,3951481745),v=o(v,f),T=o(T,y),w=o(w,C),D=o(D,b);var H=[];return p(v,H,0),p(T,H,4),p(w,H,8),p(D,H,12),H},e}();e.StiMD5Helper=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=function(){function t(){}return t.convertToNumber=function(t){try{if(null==t)return 0;if(t.sti_is(String)){if(0==t.length)return 0;return t.replaceAll(".",",").replaceAll(",",".").toNumber()}return t.toNumber()}catch(t){return e.System.StiError.showError(t,!1),0}},t}();t.StiObjectConverter=o}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.get=function(e,t){var o=" "+document.cookie,r=" "+e+"=",i=t,n=0,a=0;return o.length>0&&-1!=(n=o.indexOf(r))&&(n+=r.length,a=o.indexOf(";",n),-1==a&&(a=o.length),i=unescape(o.substring(n,a))),i},e.set=function(e,t){var o=new Date;o.setTime(o.getTime()+365*24*3600*1e3),document.cookie=e+"="+escape(t)+"; expires="+o.toString()},e}();e.StiSettings=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=e.System.Collections.Hashtable,r=function(){function t(){}return t.getCorrectTypeName=function(e){if(e.startsWith("System.Nullable`1")){var t=e.indexOf(",");if(t<0)return e;e=e.substring(0,t).replaceAll("[[","[")+"]"}return e},t.getStiType=function(t){for(var o=0,r=e.System.TypeHelper.getTypes();o<r.length;o++){var i=r[o];if(i.getStiNetTypeName()==this.getCorrectTypeName(t))return i}},t.addTypeFF=function(e,t,r){if(null==e||null==t)return;var i=this.findTypes.get(e);null==i&&(i=new o,this.findTypes.set(e,i)),i.containsKey(t)||i.set(t,r)},t.getTypeFF=function(e,t){if(null==e)return null;var o=this.findTypes.get(e);if(null==o)return null;return o.get(t)},t.findType=function(e,t){if(null==e)return!1;if("object"==typeof t)return!0;var o=this.getTypeFF(e,t);if(null!=o)return o;while("object"!=typeof e){if(e==t)return this.addTypeFF(e,t,!0),!0;if(null==e.__proto__)return this.addTypeFF(e,t,!1),!1;e=e.__proto__}return this.addTypeFF(e,t,!1),!1},t.findTypes=new o,t}();t.StiTypeFinder=r}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var o=function(){function t(e){this._type=e}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return t.toString(this._type)},t.toString=function(t){if(null==t)return"null";if(t===Boolean)return"bool";if(t===e.System.Byte)return"byte";if(t===e.System.ByteArray)return"byte[]";if(t===e.System.Char)return"char";if(t===e.System.DateTime)return"datetime";if(t===e.System.Decimal)return"decimal";if(t===e.System.Double)return"double";if(t===e.System.Guid)return"guid";if(t===e.System.Short)return"short";if(t===e.System.Int)return"int";if(t===e.System.Long)return"long";if(t===e.System.SByte)return"sbyte";if(t===e.System.Single)return"float";if(t===String)return"string";if(t===e.System.TimeSpan)return"timespan";if(t===e.System.UShort)return"ushort";if(t===e.System.UInt)return"uint";if(t===e.System.ULong)return"ulong";if(t===e.System.Drawing.Image)return"image";if(t===e.System.NullableBoolean)return"bool (Nullable)";if(t===e.System.NullableByte)return"byte (Nullable)";if(t===e.System.NullableChar)return"char (Nullable)";if(t===e.System.NullableDateTime)return"datetime (Nullable)";if(t===e.System.NullableDecimal)return"decimal (Nullable)";if(t===e.System.NullableDouble)return"double (Nullable)";if(t===e.System.NullableGuid)return"guid (Nullable)";if(t===e.System.NullableShort)return"short (Nullable)";if(t===e.System.NullableInt)return"int (Nullable)";if(t===e.System.NullableLong)return"long (Nullable)";if(t===e.System.NullableSByte)return"sbyte (Nullable)";if(t===e.System.NullableSingle)return"float (Nullable)";if(t===e.System.NullableTimeSpan)return"timespan (Nullable)";if(t===e.System.NullableUShort)return"ushort (Nullable)";if(t===e.System.NullableUInt)return"uint (Nullable)";if(t===e.System.NullableULong)return"ulong (Nullable)";if(t===Object)return"object";return t.getStiType().getStiNetTypeName()},Object.defineProperty(t,"simpleTypes",{get:function(){return null==t._simpleTypes&&(t._simpleTypes.add(String),t._simpleTypes.add(e.System.Single),t._simpleTypes.add(e.System.Double),t._simpleTypes.add(e.System.Decimal),t._simpleTypes.add(e.System.DateTime),t._simpleTypes.add(e.System.TimeSpan),t._simpleTypes.add(e.System.SByte),t._simpleTypes.add(e.System.Byte),t._simpleTypes.add(e.System.ByteArray),t._simpleTypes.add(e.System.Short),t._simpleTypes.add(e.System.UShort),t._simpleTypes.add(e.System.Int),t._simpleTypes.add(e.System.UInt),t._simpleTypes.add(e.System.Long),t._simpleTypes.add(e.System.ULong),t._simpleTypes.add(Boolean),t._simpleTypes.add(e.System.Char),t._simpleTypes.add(e.System.Guid),t._simpleTypes.add(Object),t._simpleTypes.add(e.System.Drawing.Image),t._simpleTypes.add(e.System.NullableSingle),t._simpleTypes.add(e.System.NullableDouble),t._simpleTypes.add(e.System.NullableDecimal),t._simpleTypes.add(e.System.NullableDateTime),t._simpleTypes.add(e.System.NullableTimeSpan),t._simpleTypes.add(e.System.NullableSByte),t._simpleTypes.add(e.System.NullableByte),t._simpleTypes.add(e.System.NullableShort),t._simpleTypes.add(e.System.NullableUShort),t._simpleTypes.add(e.System.NullableInt),t._simpleTypes.add(e.System.NullableUInt),t._simpleTypes.add(e.System.NullableLong),t._simpleTypes.add(e.System.NullableULong),t._simpleTypes.add(e.System.NullableBoolean),t._simpleTypes.add(e.System.NullableChar),t._simpleTypes.add(e.System.NullableGuid)),t._simpleTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t,"simpleBaseTypes",{get:function(){return null==t._simpleBaseTypes&&(t._simpleBaseTypes.add(String),t._simpleBaseTypes.add(e.System.Single),t._simpleBaseTypes.add(e.System.Double),t._simpleBaseTypes.add(e.System.Decimal),t._simpleBaseTypes.add(e.System.DateTime),t._simpleBaseTypes.add(e.System.TimeSpan),t._simpleBaseTypes.add(e.System.SByte),t._simpleBaseTypes.add(e.System.Byte),t._simpleBaseTypes.add(e.System.Short),t._simpleBaseTypes.add(e.System.UShort),t._simpleBaseTypes.add(e.System.Int),t._simpleBaseTypes.add(e.System.UInt),t._simpleBaseTypes.add(e.System.Long),t._simpleBaseTypes.add(e.System.ULong),t._simpleBaseTypes.add(Boolean),t._simpleBaseTypes.add(e.System.Char),t._simpleBaseTypes.add(e.System.Guid),t._simpleBaseTypes.add(Object),t._simpleBaseTypes.add(e.System.Drawing.Image)),t._simpleBaseTypes},enumerable:!0,configurable:!0}),t.getTypeWrappers=function(){for(var e=[],o=0,r=0,i=t.simpleTypes;r<i.length;r++){var n=i[r];e[o++]=new t(n)}return e},t}();t.StiTypeWrapper=o}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t=function(){function e(){}return e.combine=function(e){var t=String.empty;if(null!=e&&e.count>0){var o=["\\","/"];null==e[0]&&(e[0]=String.empty),t=e[0].trimEnd(o[0]),t=t.trimEnd(o[1]);for(var r=1;r<e.count;r++){var i=String.empty;null!=e[r]&&(i=e[r].trimStart(o[0]),i=i.trimStart(o[1])),t=t.trimEnd(o[0]),t=t.trimEnd(o[1]),t=String.stiFormat("{0}/{1}",t,i)}}return t},e}();e.StiUrl=t}(t=e.Base||(e.Base={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t=function(){function t(){}return t.platform=function(){return navigator.appName+" * "+navigator.userAgent},t.version="2018.1.6",t.creationDate="2018.01.20",t.created=5==t.creationDate.length?new e.System.DateTime(2017,1,1,0,0,0,0):e.System.DateTime.fromString(t.creationDate),t.versionInfo="Version= "+"2018.1.6"+".0, Culture = neutral",t.copyright="Copyright (C) 2003-2017 Stimulsoft",t}();e.StiVersion=t}(Stimulsoft||(Stimulsoft={}));;
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.copy=function(t,e,i,r,n){for(var o=0;o<i.length;o++)void 0===i[o]&&(i[o]=0);for(var o=0;o<n;o++)i[r+o]=t[e+o]},t}();t.ArrayHelper=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=function(){function i(){this.sizeInBits=0,this.array=Array.create(Number,32)}return i.prototype.at=function(t){return(255&this.array[t>>3])>>7-(7&t)&1},i.prototype.size=function(){return this.sizeInBits},i.prototype.sizeInBytes=function(){return this.sizeInBits+7>>3},i.prototype.appendBit=function(t){var e=7&this.sizeInBits;0==e&&(this.appendByte(0),this.sizeInBits-=8),this.array[this.sizeInBits>>3]|=t<<7-e,++this.sizeInBits},i.prototype.appendBits=function(t,e){var i=e;while(i>0)if(0==(7&this.sizeInBits)&&i>=8){var r=t>>i-8&255;this.appendByte(r),i-=8}else{var n=t>>i-1&1;this.appendBit(n),--i}},i.prototype.appendBitVector=function(t){for(var e=t.size(),i=0;i<e;++i)this.appendBit(t.at(i))},i.prototype.xor=function(t){for(var e=this.sizeInBits+7>>3,i=0;i<e;++i)this.array[i]^=t.array[i]},i.prototype.toString=function(){for(var e=new t.System.Text.StringBuilder,i=0;i<this.sizeInBits;i++)0==this.at(i)?e.append("0"):1==this.at(i)&&e.append("1");return e.toString()},i.prototype.getArray=function(){return this.array},i.prototype.appendByte=function(t){if(this.sizeInBits>>3==this.array.length){var i=new Array(this.array.length<<1);e.ArrayHelper.copy(this.array,0,i,0,this.array.length),this.array=i}this.array[this.sizeInBits>>3]=t,this.sizeInBits+=8},i}();e.BitVector=i}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}return t.prototype.getDataBytes=function(){return this.dataBytes},t.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},t}();t.BlockPair=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(t,e){void 0===t&&(t=0),void 0===e&&(e=null),null==e?(this._bytes=new Array(this._size),this._size=t):(this._bytes=e,this._size=this._bytes.length)}return e.prototype.at=function(t){return 255&this._bytes[t]},e.prototype.set=function(t,e){this._bytes[t]=e},e.prototype.size=function(){return this._size},e.prototype.isEmpty=function(){return 0==this._size},e.prototype.appendByte=function(t){if(0==this._size||this._size>=this._bytes.length){var i=Math.max(e.INITIAL_SIZE,this._size<<1);this.reserve(i)}this._bytes[this._size]=t,this._size++},e.prototype.reserve=function(e){if(null==this._bytes||this._bytes.length<e){var i=new Array(e);null!=this._bytes&&t.ArrayHelper.copy(this._bytes,0,i,0,this._bytes.length),this._bytes=i}},e.prototype.set1=function(t,e,i){this._bytes=new Array(i),this._size=i;for(var r=0;r<i;r++)this._bytes[r]=t[e+r]},e.INITIAL_SIZE=32,e}();t.ByteArray=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=function(){function e(e,i){this._bytes=Array.create(t.System.SByte,i);for(var r=0;r<i;r++)this._bytes[r]=Array.create(t.System.SByte,e);this._width=e,this._height=i}return e.prototype.getValueString=function(){for(var t="",e=0;e<this._width;e++)for(var i=0;i<this._height;i++)t+=this._bytes[e][i].toString();return t},e.prototype.getHeight=function(){return this._height},e.prototype.getWidth=function(){return this._width},e.prototype.get=function(t,e){return this._bytes[e][t]},e.prototype.getArray=function(){return this._bytes},e.prototype.set=function(t,e,i){this._bytes[e][t]=i},e.prototype.set2=function(t,e,i){this._bytes[e][t]=i},e.prototype.clear=function(t){for(var e=0;e<this._height;e++)for(var i=0;i<this._width;i++)this._bytes[e][i]=t},e}();e.ByteMatrix=i}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(t,e){this._value=t,this._encodingName=e}return Object.defineProperty(t,"NAME_TO_ECI",{get:function(){return null==this._name_to_eci&&t.Initialize(),this._name_to_eci},set:function(t){this._name_to_eci=t},enumerable:!0,configurable:!0}),t.Initialize=function(){var e=new i;t.addCharacterSet(0,"Cp437",e),t.addCharacterSet(1,"ISO-8859-1",e),t.addCharacterSet(2,"Cp437",e),t.addCharacterSet(3,"ISO-8859-1",e),t.addCharacterSet(4,"ISO-8859-2",e),t.addCharacterSet(5,"ISO-8859-3",e),t.addCharacterSet(6,"ISO-8859-4",e),t.addCharacterSet(7,"ISO-8859-5",e),t.addCharacterSet(8,"ISO-8859-6",e),t.addCharacterSet(9,"ISO-8859-7",e),t.addCharacterSet(10,"ISO-8859-8",e),t.addCharacterSet(11,"ISO-8859-9",e),t.addCharacterSet(13,"ISO-8859-11",e),t.addCharacterSet(15,"ISO-8859-13",e),t.addCharacterSet(17,"ISO-8859-15",e),t.addCharacterSet(20,"Shift_JIS",e),t.addCharacterSet(21,"Windows-1250",e),t.addCharacterSet(22,"Windows-1251",e),t.addCharacterSet(23,"Windows-1252",e),t.addCharacterSet(24,"Windows-1256",e),t.addCharacterSet(26,"UTF-8",e),this._name_to_eci=e},t.prototype.getEncodingName=function(){return this._encodingName},t.prototype.getValue=function(){return this._value},t.addCharacterSet=function(e,i,r){var n=new t(e,i);r.set(i,n)},t.getCharacterSetECIByName=function(t){return this.NAME_TO_ECI.get(t)},t.GetEncodingByNumber=function(e,i){for(var r=0,n=this.NAME_TO_ECI.values;r<n.length;r++){var o=n[r],a=o.sti_as(t);if(a._value==e)return a._encodingName}return i},t.lockNAME_TO_ECI=new Object,t._name_to_eci=null,t}();e.CharacterSetECI=r}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e,i){this._ordinal=t,this._bits=e,this._name=i}return t.prototype.ordinal=function(){return this._ordinal},t.prototype.getBits=function(){return this._bits},t.prototype.getName=function(){return this._name},t.prototype.toString=function(){return this._name},t.forBits=function(t){switch(t){case 0:return this.M;case 1:return this.L;case 2:return this.H;case 3:return this.Q}},t.L=new t(0,1,"L"),t.M=new t(1,0,"M"),t.Q=new t(2,3,"Q"),t.H=new t(3,2,"H"),t}();t.ErrorCorrectionLevel=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(e){this.FORMAT_INFO_MASK_QR=21522,this.errorCorrectionLevel=t.ErrorCorrectionLevel.forBits(e>>3&3),this.dataMask=7&e}return e.numBitsDiffering=function(t,e){return t^=e,this.BITS_SET_IN_HALF_BYTE[15&t]+this.BITS_SET_IN_HALF_BYTE[t>>4&15]+this.BITS_SET_IN_HALF_BYTE[t>>8&15]+this.BITS_SET_IN_HALF_BYTE[t>>12&15]+this.BITS_SET_IN_HALF_BYTE[t>>16&15]+this.BITS_SET_IN_HALF_BYTE[t>>20&15]+this.BITS_SET_IN_HALF_BYTE[t>>24&15]+this.BITS_SET_IN_HALF_BYTE[t>>28&15]},e.decodeFormatInformation=function(t,i){var r=e.doDecodeFormatInformation(t,i);if(null!=r)return r;return this.doDecodeFormatInformation(21522^t,21522^i)},e.doDecodeFormatInformation=function(t,i){for(var r=2147483647,n=0,o=0;o<this.FORMAT_INFO_DECODE_LOOKUP.getStiLength(0);o++){var a=this.FORMAT_INFO_DECODE_LOOKUP[o],s=a[0];if(s==t||s==i)return new e(a[1]);var l=e.numBitsDiffering(t,s);l<r&&(n=a[1],r=l),t!=i&&(l=e.numBitsDiffering(i,s))<r&&(n=a[1],r=l)}if(r<=3)return new e(n);return null},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getDataMask=function(){return this.dataMask},e.prototype.stiEquals=function(t){if(!(t instanceof e))return!1;var i=t;return this.errorCorrectionLevel==i.errorCorrectionLevel&&this.dataMask==i.dataMask},e.FORMAT_INFO_DECODE_LOOKUP=[[21522,0],[20773,1],[24188,2],[23371,3],[17913,4],[16590,5],[20375,6],[19104,7],[30660,8],[29427,9],[32170,10],[30877,11],[26159,12],[25368,13],[27713,14],[26998,15],[5769,16],[5054,17],[7399,18],[6608,19],[1890,20],[597,21],[3340,22],[2107,23],[13663,24],[12392,25],[16177,26],[14854,27],[9396,28],[8579,29],[11994,30],[11245,31]],e.BITS_SET_IN_HALF_BYTE=[0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4],e}();t.FormatInformation=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(t){this._zero=null,this._one=null,this._expTable=new Array(256),this._logTable=new Array(256);for(var e=1,i=0;i<256;i++)this._expTable[i]=e,(e<<=1)>=256&&(e^=t);for(var i=0;i<255;i++)this._logTable[this._expTable[i]]=i}return e.prototype.getZero=function(){return new t.GF256Poly(this,[0])},e.prototype.getOne=function(){return new t.GF256Poly(this,[1])},e.prototype.buildMonomial=function(e,i){if(0==i)return new t.GF256Poly(this,[0]);var r=new Array(e+1);return r[0]=i,new t.GF256Poly(this,r)},e.addOrSubtract=function(t,e){return t^e},e.prototype.exp=function(t){return this._expTable[t]},e.prototype.log=function(t){return this._logTable[t]},e.prototype.inverse=function(t){return this._expTable[255-this._logTable[t]]},e.prototype.multiply=function(t,e){if(0==t||0==e)return 0;if(1==t)return e;if(1==e)return t;return this._expTable[(this._logTable[t]+this._logTable[e])%255]},e.QR_CODE_FIELD=new e(285),e.DATA_MATRIX_FIELD=new e(301),e}();t.GF256=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(e,i){this._field=e;var r=i.length;if(r>1&&0==i[0]){var n=1;while(n<r&&0==i[n])n++;n==r?this._coefficients=e.getZero()._coefficients:(this._coefficients=new Array(r-n),t.ArrayHelper.copy(i,n,this._coefficients,0,this._coefficients.length))}else this._coefficients=i}return e.prototype.getCoefficients=function(){return this._coefficients},e.prototype.getDegree=function(){return this._coefficients.length-1},e.prototype.isZero=function(){return 0==this._coefficients[0]},e.prototype.getCoefficient=function(t){return this._coefficients[this._coefficients.length-1-t]},e.prototype.evaluateAt=function(e){if(0==e)return this.getCoefficient(0);var i=this._coefficients.length;if(1==e){for(var r=0,n=0;n<i;n++)r=t.GF256.addOrSubtract(r,this._coefficients[n]);return r}for(var o=this._coefficients[0],n=1;n<i;n++)o=t.GF256.addOrSubtract(this._field.multiply(e,o),this._coefficients[n]);return o},e.prototype.addOrSubtract=function(i){if(this.isZero())return i;if(i.isZero())return this;var r=this._coefficients,n=i._coefficients;if(r.length>n.length){var o=r;r=n,n=o}var a=new Array(n.length),s=n.length-r.length;t.ArrayHelper.copy(n,0,a,0,s);for(var l=s;l<n.length;l++)a[l]=t.GF256.addOrSubtract(r[l-s],n[l]);return new e(this._field,a)},e.prototype.multiply=function(i){if(this.isZero()||i.isZero())return this._field.getZero();for(var r=this._coefficients,n=r.length,o=i._coefficients,a=o.length,s=new Array(n+(a-1)),l=0;l<n;l++)for(var u=r[l],c=0;c<a;c++)s[l+c]=t.GF256.addOrSubtract(s[l+c],this._field.multiply(u,o[c]));return new e(this._field,s)},e.prototype.multiply1=function(t){if(0==t)return this._field.getZero();if(1==t)return this;for(var i=this._coefficients.length,r=new Array(i),n=0;n<i;n++)r[n]=this._field.multiply(this._coefficients[n],t);return new e(this._field,r)},e.prototype.multiplyByMonomial=function(t,i){if(0==i)return this._field.getZero();for(var r=this._coefficients.length,n=new Array(r+t),o=0;o<r;o++)n[o]=this._field.multiply(this._coefficients[o],i);return new e(this._field,n)},e.prototype.divide=function(t){var e=this._field.getZero(),i=this,r=t.getCoefficient(t.getDegree()),n=this._field.inverse(r);while(i.getDegree()>=t.getDegree()&&!i.isZero()){if(9==i.getDegree())var o=1;var a=i.getDegree()-t.getDegree(),s=this._field.multiply(i.getCoefficient(i.getDegree()),n),l=t.multiplyByMonomial(a,s),u=this._field.buildMonomial(a,s);e=e.addOrSubtract(u),i=i.addOrSubtract(l)}return[e,i]},e}();t.GF256Poly=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.applyMaskPenaltyRule1=function(e){return t.ApplyMaskPenaltyRule1Internal(e,!0)+t.ApplyMaskPenaltyRule1Internal(e,!1)},t.applyMaskPenaltyRule2=function(t){for(var e=0,i=t.getArray(),r=t.getWidth(),n=t.getHeight(),o=0;o<n-1;o++)for(var a=0;a<r-1;a++){var s=i[o][a];s==i[o][a+1]&&s==i[o+1][a]&&s==i[o+1][a+1]&&(e+=3)}return e},t.applyMaskPenaltyRule3=function(t){for(var e=0,i=t.getArray(),r=t.getWidth(),n=t.getHeight(),o=0;o<n;o++)for(var a=0;a<r;a++)a+6<r&&1==i[o][a]&&0==i[o][a+1]&&1==i[o][a+2]&&1==i[o][a+3]&&1==i[o][a+4]&&0==i[o][a+5]&&1==i[o][a+6]&&(a+10<r&&0==i[o][a+7]&&0==i[o][a+8]&&0==i[o][a+9]&&0==i[o][a+10]||a-4>=0&&0==i[o][a-1]&&0==i[o][a-2]&&0==i[o][a-3]&&0==i[o][a-4])&&(e+=40),o+6<n&&1==i[o][a]&&0==i[o+1][a]&&1==i[o+2][a]&&1==i[o+3][a]&&1==i[o+4][a]&&0==i[o+5][a]&&1==i[o+6][a]&&(o+10<n&&0==i[o+7][a]&&0==i[o+8][a]&&0==i[o+9][a]&&0==i[o+10][a]||o-4>=0&&0==i[o-1][a]&&0==i[o-2][a]&&0==i[o-3][a]&&0==i[o-4][a])&&(e+=40);return e},t.applyMaskPenaltyRule4=function(t){for(var e=0,i=t.getArray(),r=t.getWidth(),n=t.getHeight(),o=0;o<n;o++)for(var a=0;a<r;a++)1==i[o][a]&&e++;var s=t.getHeight()*t.getWidth(),l=e/s;return Math.abs(100*l-50)/(5*10)},t.getDataMaskBit=function(t,e,i){var r,n;switch(t){case 0:n=i+e&1;break;case 1:n=1&i;break;case 2:n=e%3;break;case 3:n=(i+e)%3;break;case 4:n=(i>>1)+e/3&1;break;case 5:r=i*e,n=(1&r)+r%3;break;case 6:r=i*e,n=(1&r)+r%3&1;break;case 7:r=i*e,n=r%3+(i+e&1)&1;break}return 0==n},t.ApplyMaskPenaltyRule1Internal=function(t,e){for(var i=0,r=0,n=-1,o=e?t.getHeight():t.getWidth(),a=e?t.getWidth():t.getHeight(),s=t.getArray(),l=0;l<o;++l){for(var u=0;u<a;++u){var c=e?s[l][u]:s[u][l];c==n?(r+=1,5==r?i+=3:r>5&&(i+=1)):(r=1,n=c)}r=0}return i},t}();t.MaskUtil=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(){}return e.ClearMatrix=function(t){t.clear(-1)},e.BuildMatrix=function(t,i,r,n,o){e.ClearMatrix(o),e.EmbedBasicPatterns(r,o),e.EmbedTypeInfo(i,n,o),e.MaybeEmbedVersionInfo(r,o),e.EmbedDataBits(t,n,o)},e.EmbedBasicPatterns=function(t,i){e.EmbedPositionDetectionPatternsAndSeparators(i),e.EmbedDarkDotAtLeftBottomCorner(i),e.MaybeEmbedPositionAdjustmentPatterns(t,i),e.EmbedTimingPatterns(i)},e.EmbedTypeInfo=function(i,r,n){var o=new t.BitVector;e.MakeTypeInfoBits(i,r,o);for(var a=0;a<o.size();a++){var s=o.at(o.size()-1-a),l=this.TYPE_INFO_COORDINATES[a][0],u=this.TYPE_INFO_COORDINATES[a][1];if(n.set(l,u,s),a<8){var c=n.getWidth()-a-1,p=8;n.set(c,p,s)}else{var c=8,p=n.getHeight()-7+(a-8);n.set(c,p,s)}}},e.MaybeEmbedVersionInfo=function(i,r){if(i<7)return;var n=new t.BitVector;e.MakeVersionInfoBits(i,n);for(var o=6*3-1,a=0;a<6;++a)for(var s=0;s<3;++s){var l=n.at(o);o--,r.set(a,r.getHeight()-11+s,l),r.set(r.getHeight()-11+s,a,l)}},e.EmbedDataBits=function(i,r,n){var o=0,a=-1,s=n.getWidth()-1,l=n.getHeight()-1;while(s>0){6==s&&(s-=1);while(l>=0&&l<n.getHeight()){for(var u=0;u<2;++u){var c=s-u;if(10==c&&8==l)var p=1;if(!e.IsEmpty(n.get(c,l)))continue;var h=void 0;o<i.size()?(h=i.at(o),++o):h=0,-1!=r&&t.MaskUtil.getDataMaskBit(r,c,l)&&(h^=1),n.set(c,l,h)}l+=a}a=-a,l+=a,s-=2}},e.FindMSBSet=function(t){var e=t,i=0;while(0!=e)e>>=1,++i;return i},e.CalculateBCHCode=function(t,i){var r=e.FindMSBSet(i);t<<=r-1;while(this.FindMSBSet(t)>=r)t^=i<<this.FindMSBSet(t)-r;return t},e.MakeTypeInfoBits=function(i,r,n){var o=i.getBits()<<3|r;n.appendBits(o,5);var a=e.CalculateBCHCode(o,this.TYPE_INFO_POLY);n.appendBits(a,10);var s=new t.BitVector;s.appendBits(this.TYPE_INFO_MASK_PATTERN,15),n.xor(s)},e.MakeVersionInfoBits=function(t,i){i.appendBits(t,6);var r=e.CalculateBCHCode(t,this.VERSION_INFO_POLY);i.appendBits(r,12)},e.IsEmpty=function(t){return-1==t},e.IsValidValue=function(t){return-1==t||0==t||1==t},e.EmbedTimingPatterns=function(t){for(var i=8;i<t.getWidth()-8;i++){var r=Math.floor((i+1)%2);e.IsEmpty(t.get(i,6))&&t.set(i,6,r),e.IsEmpty(t.get(6,i))&&t.set(6,i,r)}},e.EmbedDarkDotAtLeftBottomCorner=function(t){t.set(8,t.getHeight()-8,1)},e.EmbedHorizontalSeparationPattern=function(t,e,i){for(var r=0;r<8;++r)i.set(t+r,e,this.HORIZONTAL_SEPARATION_PATTERN[0][r])},e.EmbedVerticalSeparationPattern=function(t,e,i){for(var r=0;r<7;++r)i.set(t,e+r,this.VERTICAL_SEPARATION_PATTERN[r][0])},e.EmbedPositionAdjustmentPattern=function(t,e,i){for(var r=0;r<5;r++)for(var n=0;n<5;n++)i.set(t+n,e+r,this.POSITION_ADJUSTMENT_PATTERN[r][n])},e.EmbedPositionDetectionPattern=function(t,e,i){for(var r=0;r<7;r++)for(var n=0;n<7;n++)i.set(t+n,e+r,this.POSITION_DETECTION_PATTERN[r][n])},e.EmbedPositionDetectionPatternsAndSeparators=function(t){var i=this.POSITION_DETECTION_PATTERN[0].length;e.EmbedPositionDetectionPattern(0,0,t),e.EmbedPositionDetectionPattern(t.getWidth()-i,0,t),e.EmbedPositionDetectionPattern(0,t.getWidth()-i,t);var r=this.HORIZONTAL_SEPARATION_PATTERN[0].length;e.EmbedHorizontalSeparationPattern(0,r-1,t),e.EmbedHorizontalSeparationPattern(t.getWidth()-r,r-1,t),e.EmbedHorizontalSeparationPattern(0,t.getWidth()-r,t);var n=this.VERTICAL_SEPARATION_PATTERN.length;e.EmbedVerticalSeparationPattern(n,0,t),e.EmbedVerticalSeparationPattern(t.getHeight()-n-1,0,t),e.EmbedVerticalSeparationPattern(n,t.getHeight()-n,t)},e.MaybeEmbedPositionAdjustmentPatterns=function(t,i){if(t<2)return;for(var r=t-1,n=this.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],o=this.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r].length,a=0;a<o;a++)for(var s=0;s<o;s++){var l=n[a],u=n[s];if(-1==u||-1==l)continue;e.IsEmpty(i.get(u,l))&&e.EmbedPositionAdjustmentPattern(u-2,l-2,i)}},e.POSITION_DETECTION_PATTERN=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,1,1,1,0,1],[1,0,1,1,1,0,1],[1,0,1,1,1,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],e.HORIZONTAL_SEPARATION_PATTERN=[[0,0,0,0,0,0,0,0]],e.VERTICAL_SEPARATION_PATTERN=[[0],[0],[0],[0],[0],[0],[0]],e.POSITION_ADJUSTMENT_PATTERN=[[1,1,1,1,1],[1,0,0,0,1],[1,0,1,0,1],[1,0,0,0,1],[1,1,1,1,1]],e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=[[-1,-1,-1,-1,-1,-1,-1],[6,18,-1,-1,-1,-1,-1],[6,22,-1,-1,-1,-1,-1],[6,26,-1,-1,-1,-1,-1],[6,30,-1,-1,-1,-1,-1],[6,34,-1,-1,-1,-1,-1],[6,22,38,-1,-1,-1,-1],[6,24,42,-1,-1,-1,-1],[6,26,46,-1,-1,-1,-1],[6,28,50,-1,-1,-1,-1],[6,30,54,-1,-1,-1,-1],[6,32,58,-1,-1,-1,-1],[6,34,62,-1,-1,-1,-1],[6,26,46,66,-1,-1,-1],[6,26,48,70,-1,-1,-1],[6,26,50,74,-1,-1,-1],[6,30,54,78,-1,-1,-1],[6,30,56,82,-1,-1,-1],[6,30,58,86,-1,-1,-1],[6,34,62,90,-1,-1,-1],[6,28,50,72,94,-1,-1],[6,26,50,74,98,-1,-1],[6,30,54,78,102,-1,-1],[6,28,54,80,106,-1,-1],[6,32,58,84,110,-1,-1],[6,30,58,86,114,-1,-1],[6,34,62,90,118,-1,-1],[6,26,50,74,98,122,-1],[6,30,54,78,102,126,-1],[6,26,52,78,104,130,-1],[6,30,56,82,108,134,-1],[6,34,60,86,112,138,-1],[6,30,58,86,114,142,-1],[6,34,62,90,118,146,-1],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],e.TYPE_INFO_COORDINATES=[[8,0],[8,1],[8,2],[8,3],[8,4],[8,5],[8,7],[8,8],[7,8],[5,8],[4,8],[3,8],[2,8],[1,8],[0,8]],e.VERSION_INFO_POLY=7973,e.TYPE_INFO_POLY=1335,e.TYPE_INFO_MASK_PATTERN=21522,e}();t.MatrixUtil=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e,i){this.characterCountBitsForVersions=t,this.bits=e,this.name=i}return t.ForBits=function(t){switch(t){case 0:return this.TERMINATOR;case 1:return this.NUMERIC;case 2:return this.ALPHANUMERIC;case 3:return this.STRUCTURED_APPEND;case 4:return this.BYTE;case 5:return this.FNC1_FIRST_POSITION;case 7:return this.ECI;case 8:return this.KANJI;case 9:return this.FNC1_SECOND_POSITION}},t.prototype.GetCharacterCountBits=function(t){var e=t.getVersionNumber(),i;return i=e<=9?0:e<=26?1:2,this.characterCountBitsForVersions[i]},t.prototype.GetBits=function(){return this.bits},t.prototype.GetName=function(){return this.name},t.prototype.ToString=function(){return this.name},t.TERMINATOR=new t([0,0,0],0,"TERMINATOR"),t.NUMERIC=new t([10,12,14],1,"NUMERIC"),t.ALPHANUMERIC=new t([9,11,13],2,"ALPHANUMERIC"),t.STRUCTURED_APPEND=new t([0,0,0],3,"STRUCTURED_APPEND"),t.BYTE=new t([8,16,16],4,"BYTE"),t.ECI=new t(null,7,"ECI"),t.KANJI=new t([8,10,12],8,"KANJI"),t.FNC1_FIRST_POSITION=new t(null,5,"FNC1_FIRST_POSITION"),t.FNC1_SECOND_POSITION=new t(null,9,"FNC1_SECOND_POSITION"),t}();t.Mode=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.Encoding,r=function(){function r(){}return r.CalculateMaskPenalty=function(t){var i=0;return i+=e.MaskUtil.applyMaskPenaltyRule1(t),i+=e.MaskUtil.applyMaskPenaltyRule2(t),i+=e.MaskUtil.applyMaskPenaltyRule3(t),i+=e.MaskUtil.applyMaskPenaltyRule4(t)},r.Encode=function(t,i,n){var o=r.BYTE_MODE_UTF8,a=o,s=r.ChooseMode1(t,a);s==e.Mode.BYTE&&o!=r.BYTE_MODE_UTF8&&(a=r.GetEncodingName(t,o));var l=new e.BitVector;r.AppendBytes(t,s,l,a);var u=l.sizeInBytes();r.InitQRCode(u,i,s,n);var c=new e.BitVector;if(s==e.Mode.BYTE&&!r.defaultECIByteModeEncoding.stiEquals(a)&&a!=r.BYTE_MODE_UTF8){var p=e.CharacterSetECI.getCharacterSetECIByName(a);null!=p&&r.AppendECI(p,c)}r.AppendModeInfo(s,c);var h=s.stiEquals(e.Mode.BYTE)?l.sizeInBytes():t.length;r.AppendLengthInfo(h,n.GetVersion(),s,c),c.appendBitVector(l),r.TerminateBits(n.GetNumDataBytes(),c);var g=new e.BitVector;r.InterleaveWithECBytes(c,n.GetNumTotalBytes(),n.GetNumDataBytes(),n.GetNumRSBlocks(),g);var m=new e.ByteMatrix(n.GetMatrixWidth(),n.GetMatrixWidth());n.SetMaskPattern(r.ChooseMaskPattern(g,n.GetECLevel(),n.GetVersion(),m)),e.MatrixUtil.BuildMatrix(g,n.GetECLevel(),n.GetVersion(),n.GetMaskPattern(),m),n.SetMatrix(m)},r.GetEncodingName=function(t,e){return e},r.GetAlphanumericCode=function(t){if(t<r.ALPHANUMERIC_TABLE.length)return r.ALPHANUMERIC_TABLE[t];return-1},r.ChooseMode=function(t){return r.ChooseMode1(t,null)},r.ChooseMode1=function(t,i){for(var n=!1,o=!1,a=0;a<t.length;a++){var s=t[a];if(s>="0"&&s<="9")n=!0;else{if(-1==r.GetAlphanumericCode(s.charCodeAt(0)))return e.Mode.BYTE;o=!0}}if(o)return e.Mode.ALPHANUMERIC;if(n)return e.Mode.NUMERIC;return e.Mode.BYTE},r.ChooseMaskPattern=function(t,i,n,o){for(var a=2147483647,s=-1,l=0;l<e.StiQRCode.NUM_MASK_PATTERNS;l++){e.MatrixUtil.BuildMatrix(t,i,n,l,o);var u=r.CalculateMaskPenalty(o);u<a&&(a=u,s=l)}return s},r.InitQRCode=function(t,i,r,n){n.SetECLevel(i),n.SetMode(r);for(var o=1;o<=40;o++){var a=e.Version.getVersionForNumber(o),s=a.getTotalCodewords(),l=a.getECBlocksForLevel(i),u=l.getTotalECCodewords(),c=l.getNumBlocks(),p=s-u;if(p>=t+4)return n.SetVersion(o),n.SetNumTotalBytes(s),n.SetNumDataBytes(p),n.SetNumRSBlocks(c),n.SetNumECBytes(u),void n.SetMatrixWidth(a.getDimensionForVersion())}},r.TerminateBits=function(t,e){for(var i=t<<3,r=0;r<4&&e.size()<i;r++)e.appendBit(0);var n=e.size()%8;if(n>0)for(var o=8-n,r=0;r<o;r++)e.appendBit(0);for(var a=t-e.sizeInBytes(),r=0;r<a;r++)r%2==0?e.appendBits(236,8):e.appendBits(17,8)},r.GetNumDataBytesAndNumECBytesForBlockID=function(t,e,i,r,n,o){var a=Math.trunc(t%i),s=Math.trunc(i-a),l=Math.trunc(t/i),u=Math.trunc(l+1),c=Math.trunc(e/i),p=Math.trunc(c+1),h=Math.trunc(l-c),g=Math.trunc(u-p);r<s?(n[0]=c,o[0]=h):(n[0]=p,o[0]=g)},r.InterleaveWithECBytes=function(t,i,n,o,a){for(var s=0,l=0,u=0,c=Array.create(e.BlockPair,o),p=0;p<o;p++){var h=new Array(1),g=new Array(1);r.GetNumDataBytesAndNumECBytesForBlockID(i,n,o,p,h,g);var m=new e.ByteArray;m.set1(t.getArray(),s,h[0]);var d=r.GenerateECBytes(m,g[0]);c[p]=new e.BlockPair(m,d),l=Math.max(l,m.size()),u=Math.max(u,d.size()),s+=h[0]}for(var p=0;p<l;p++)for(var S=0;S<c.count;S++){var m=c[S].getDataBytes();p<m.size()&&a.appendBits(m.at(p),8)}for(var p=0;p<u;p++)for(var S=0;S<c.count;S++){var d=c[S].getErrorCorrectionBytes();p<d.size()&&a.appendBits(d.at(p),8)}},r.GenerateECBytes=function(t,i){for(var r=t.size(),n=new Array(r+i),o=0;o<r;o++)n[o]=t.at(o);new e.ReedSolomonEncoder(e.GF256.QR_CODE_FIELD).Encode(n,i);for(var a=new e.ByteArray(i),o=0;o<i;o++)a.set(o,n[r+o]);return a},r.AppendModeInfo=function(t,e){e.appendBits(t.GetBits(),4)},r.AppendLengthInfo=function(t,i,r,n){var o=r.GetCharacterCountBits(e.Version.getVersionForNumber(i));n.appendBits(t,o)},r.AppendBytes=function(t,i,n,o){i.stiEquals(e.Mode.NUMERIC)?r.AppendNumericBytes(t,n):i.stiEquals(e.Mode.ALPHANUMERIC)?r.AppendAlphanumericBytes(t,n):i.stiEquals(e.Mode.BYTE)?r.Append8BitBytes(t,n,o):i.stiEquals(e.Mode.KANJI)&&r.AppendKanjiBytes(t,n)},r.AppendNumericBytes=function(t,e){var i=t.length,r=0;while(r<i){var n=t.charCodeAt(r)-48;if(r+2<i){var o=t.charCodeAt(r+1)-48,a=t.charCodeAt(r+2)-48;e.appendBits(100*n+(10*o+a),10),r+=3}else if(r+1<i){var o=t.charCodeAt(r+1)-48;e.appendBits(10*n+o,7),r+=2}else e.appendBits(n,4),r++}},r.AppendAlphanumericBytes=function(t,e){var i=t.length,n=0;while(n<i){var o=r.GetAlphanumericCode(t.charCodeAt(n));if(n+1<i){var a=r.GetAlphanumericCode(t.charCodeAt(n+1));e.appendBits(45*o+a,11),n+=2}else e.appendBits(o,6),n++}},r.Append8BitBytes=function(e,n,o){var a;try{a=i.UTF8.getBytes(e)}catch(e){t.System.StiError.showError(e.message,!1)}o==r.BYTE_MODE_UTF8&&(n.appendBits(239,8),n.appendBits(187,8),n.appendBits(191,8));for(var s=0;s<a.length;s++)n.appendBits(a[s],8)},r.AppendKanjiBytes=function(t,e){for(var i,r=i.length,n=0;n<r;n+=2){var o=255&i[n],a=255&i[n+1],s=o+8|a,l=-1;s>=33088&&s<=40956?l=s-33088:s>=57408&&s<=60351&&(l=s-49472);var u=192*(l>>8)+(255&l);e.appendBits(u,13)}},r.AppendECI=function(t,i){i.appendBits(e.Mode.ECI.GetBits(),4),i.appendBits(t.getValue(),8)},r.ALPHANUMERIC_TABLE=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1],r.defaultECIByteModeEncoding="ISO-8859-1",r.BYTE_MODE_UTF8="UTF-8",r.QUESTION_MARK_CHAR=63,r}();e.QREncoder=r}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(e){this.field=e,this.cachedGenerators=[],this.cachedGenerators.add(new t.GF256Poly(this.field,[1]))}return e.prototype.BuildGenerator=function(e){if(e>=this.cachedGenerators.count)for(var i=this.cachedGenerators[this.cachedGenerators.count-1],r=this.cachedGenerators.count;r<=e;r++){var n=i.multiply(new t.GF256Poly(this.field,[1,this.field.exp(r-1)]));this.cachedGenerators.add(n),i=n}return this.cachedGenerators[e]},e.prototype.Encode=function(e,i){var r=e.length-i,n=this.BuildGenerator(i),o=new Array(r);t.ArrayHelper.copy(e,0,o,0,r);var a=new t.GF256Poly(this.field,o);a=a.multiplyByMonomial(i,1);for(var s=a.divide(n)[1],l=s.getCoefficients(),u=i-l.length,c=0;c<u;c++)e[r+c]=0;for(var p=0;p<l.length;p++)e[r+u+p]=l[p]},e}();t.ReedSolomonEncoder=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){this._mode=null,this._ecLevel=null,this._version=-1,this._matrixWidth=-1,this._maskPattern=-1,this._numTotalBytes=-1,this._numDataBytes=-1,this._numECBytes=-1,this._numRSBlocks=-1,this._matrix=null}return t.prototype.GetMode=function(){return this._mode},t.prototype.GetECLevel=function(){return this._ecLevel},t.prototype.GetVersion=function(){return this._version},t.prototype.GetMatrixWidth=function(){return this._matrixWidth},t.prototype.GetMaskPattern=function(){return this._maskPattern},t.prototype.GetNumTotalBytes=function(){return this._numTotalBytes},t.prototype.GetNumDataBytes=function(){return this._numDataBytes},t.prototype.GetNumECBytes=function(){return this._numECBytes},t.prototype.GetNumRSBlocks=function(){return this._numRSBlocks},t.prototype.GetMatrix=function(){return this._matrix},t.prototype.At=function(t,e){return this._matrix.get(t,e)},t.prototype.IsValid=function(){return null!=this._mode&&null!=this._ecLevel&&-1!=this._version&&-1!=this._matrixWidth&&-1!=this._maskPattern&&-1!=this._numTotalBytes&&-1!=this._numDataBytes&&-1!=this._numECBytes&&-1!=this._numRSBlocks&&t.IsValidMaskPattern(this._maskPattern)&&this._numTotalBytes==this._numDataBytes+this._numECBytes&&null!=this._matrix&&this._matrixWidth==this._matrix.getWidth()&&this._matrix.getWidth()==this._matrix.getHeight()},t.prototype.SetMode=function(t){this._mode=t},t.prototype.SetECLevel=function(t){this._ecLevel=t},t.prototype.SetVersion=function(t){this._version=t},t.prototype.SetMatrixWidth=function(t){this._matrixWidth=t},t.prototype.SetMaskPattern=function(t){this._maskPattern=t},t.prototype.SetNumTotalBytes=function(t){this._numTotalBytes=t},t.prototype.SetNumDataBytes=function(t){this._numDataBytes=t},t.prototype.SetNumECBytes=function(t){this._numECBytes=t},t.prototype.SetNumRSBlocks=function(t){this._numRSBlocks=t},t.prototype.SetMatrix=function(t){this._matrix=t},t.IsValidMaskPattern=function(t){return t>=0&&t<this.NUM_MASK_PATTERNS},t.NUM_MASK_PATTERNS=8,t}();t.StiQRCode=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=function(){function t(t,e){this._count=t,this._dataCodewords=e}return t.prototype.getCount=function(){return this._count},t.prototype.getDataCodewords=function(){return this._dataCodewords},t}();e.ECB=i;var r=function(){function t(t,e,r){void 0===r&&(r=new i(0,0)),this.ecCodewordsPerBlock=t,this.ecBlocks=[e,r]}return t.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},t.prototype.getNumBlocks=function(){for(var t=0,e=0;e<this.ecBlocks.length;e++)t+=this.ecBlocks[e].getCount();return t},t.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},t.prototype.getECBlocks=function(){return this.ecBlocks},t}();e.ECBlocks=r;var n=function(){function n(t,e,i,r,n,o){this._versionNumber=t,this._alignmentPatternCenters=e,this._ecBlocks=[i,r,n,o];for(var a=0,s=i.getECCodewordsPerBlock(),l=i.getECBlocks(),u=0;u<l.length;u++){var c=l[u];a+=c.getCount()*(c.getDataCodewords()+s)}this._totalCodewords=a}return n.BuildVersions=function(){return[new n(1,[],new r(7,new i(1,19)),new r(10,new i(1,16)),new r(13,new i(1,13)),new r(17,new i(1,9))),new n(2,[6,18],new r(10,new i(1,34)),new r(16,new i(1,28)),new r(22,new i(1,22)),new r(28,new i(1,16))),new n(3,[6,22],new r(15,new i(1,55)),new r(26,new i(1,44)),new r(18,new i(2,17)),new r(22,new i(2,13))),new n(4,[6,26],new r(20,new i(1,80)),new r(18,new i(2,32)),new r(26,new i(2,24)),new r(16,new i(4,9))),new n(5,[6,30],new r(26,new i(1,108)),new r(24,new i(2,43)),new r(18,new i(2,15),new i(2,16)),new r(22,new i(2,11),new i(2,12))),new n(6,[6,34],new r(18,new i(2,68)),new r(16,new i(4,27)),new r(24,new i(4,19)),new r(28,new i(4,15))),new n(7,[6,22,38],new r(20,new i(2,78)),new r(18,new i(4,31)),new r(18,new i(2,14),new i(4,15)),new r(26,new i(4,13),new i(1,14))),new n(8,[6,24,42],new r(24,new i(2,97)),new r(22,new i(2,38),new i(2,39)),new r(22,new i(4,18),new i(2,19)),new r(26,new i(4,14),new i(2,15))),new n(9,[6,26,46],new r(30,new i(2,116)),new r(22,new i(3,36),new i(2,37)),new r(20,new i(4,16),new i(4,17)),new r(24,new i(4,12),new i(4,13))),new n(10,[6,28,50],new r(18,new i(2,68),new i(2,69)),new r(26,new i(4,43),new i(1,44)),new r(24,new i(6,19),new i(2,20)),new r(28,new i(6,15),new i(2,16))),new n(11,[6,30,54],new r(20,new i(4,81)),new r(30,new i(1,50),new i(4,51)),new r(28,new i(4,22),new i(4,23)),new r(24,new i(3,12),new i(8,13))),new n(12,[6,32,58],new r(24,new i(2,92),new i(2,93)),new r(22,new i(6,36),new i(2,37)),new r(26,new i(4,20),new i(6,21)),new r(28,new i(7,14),new i(4,15))),new n(13,[6,34,62],new r(26,new i(4,107)),new r(22,new i(8,37),new i(1,38)),new r(24,new i(8,20),new i(4,21)),new r(22,new i(12,11),new i(4,12))),new n(14,[6,26,46,66],new r(30,new i(3,115),new i(1,116)),new r(24,new i(4,40),new i(5,41)),new r(20,new i(11,16),new i(5,17)),new r(24,new i(11,12),new i(5,13))),new n(15,[6,26,48,70],new r(22,new i(5,87),new i(1,88)),new r(24,new i(5,41),new i(5,42)),new r(30,new i(5,24),new i(7,25)),new r(24,new i(11,12),new i(7,13))),new n(16,[6,26,50,74],new r(24,new i(5,98),new i(1,99)),new r(28,new i(7,45),new i(3,46)),new r(24,new i(15,19),new i(2,20)),new r(30,new i(3,15),new i(13,16))),new n(17,[6,30,54,78],new r(28,new i(1,107),new i(5,108)),new r(28,new i(10,46),new i(1,47)),new r(28,new i(1,22),new i(15,23)),new r(28,new i(2,14),new i(17,15))),new n(18,[6,30,56,82],new r(30,new i(5,120),new i(1,121)),new r(26,new i(9,43),new i(4,44)),new r(28,new i(17,22),new i(1,23)),new r(28,new i(2,14),new i(19,15))),new n(19,[6,30,58,86],new r(28,new i(3,113),new i(4,114)),new r(26,new i(3,44),new i(11,45)),new r(26,new i(17,21),new i(4,22)),new r(26,new i(9,13),new i(16,14))),new n(20,[6,34,62,90],new r(28,new i(3,107),new i(5,108)),new r(26,new i(3,41),new i(13,42)),new r(30,new i(15,24),new i(5,25)),new r(28,new i(15,15),new i(10,16))),new n(21,[6,28,50,72,94],new r(28,new i(4,116),new i(4,117)),new r(26,new i(17,42)),new r(28,new i(17,22),new i(6,23)),new r(30,new i(19,16),new i(6,17))),new n(22,[6,26,50,74,98],new r(28,new i(2,111),new i(7,112)),new r(28,new i(17,46)),new r(30,new i(7,24),new i(16,25)),new r(24,new i(34,13))),new n(23,[6,30,54,74,102],new r(30,new i(4,121),new i(5,122)),new r(28,new i(4,47),new i(14,48)),new r(30,new i(11,24),new i(14,25)),new r(30,new i(16,15),new i(14,16))),new n(24,[6,28,54,80,106],new r(30,new i(6,117),new i(4,118)),new r(28,new i(6,45),new i(14,46)),new r(30,new i(11,24),new i(16,25)),new r(30,new i(30,16),new i(2,17))),new n(25,[6,32,58,84,110],new r(26,new i(8,106),new i(4,107)),new r(28,new i(8,47),new i(13,48)),new r(30,new i(7,24),new i(22,25)),new r(30,new i(22,15),new i(13,16))),new n(26,[6,30,58,86,114],new r(28,new i(10,114),new i(2,115)),new r(28,new i(19,46),new i(4,47)),new r(28,new i(28,22),new i(6,23)),new r(30,new i(33,16),new i(4,17))),new n(27,[6,34,62,90,118],new r(30,new i(8,122),new i(4,123)),new r(28,new i(22,45),new i(3,46)),new r(30,new i(8,23),new i(26,24)),new r(30,new i(12,15),new i(28,16))),new n(28,[6,26,50,74,98,122],new r(30,new i(3,117),new i(10,118)),new r(28,new i(3,45),new i(23,46)),new r(30,new i(4,24),new i(31,25)),new r(30,new i(11,15),new i(31,16))),new n(29,[6,30,54,78,102,126],new r(30,new i(7,116),new i(7,117)),new r(28,new i(21,45),new i(7,46)),new r(30,new i(1,23),new i(37,24)),new r(30,new i(19,15),new i(26,16))),new n(30,[6,26,52,78,104,130],new r(30,new i(5,115),new i(10,116)),new r(28,new i(19,47),new i(10,48)),new r(30,new i(15,24),new i(25,25)),new r(30,new i(23,15),new i(25,16))),new n(31,[6,30,56,82,108,134],new r(30,new i(13,115),new i(3,116)),new r(28,new i(2,46),new i(29,47)),new r(30,new i(42,24),new i(1,25)),new r(30,new i(23,15),new i(28,16))),new n(32,[6,34,60,86,112,138],new r(30,new i(17,115)),new r(28,new i(10,46),new i(23,47)),new r(30,new i(10,24),new i(35,25)),new r(30,new i(19,15),new i(35,16))),new n(33,[6,30,58,86,114,142],new r(30,new i(17,115),new i(1,116)),new r(28,new i(14,46),new i(21,47)),new r(30,new i(29,24),new i(19,25)),new r(30,new i(11,15),new i(46,16))),new n(34,[6,34,62,90,118,146],new r(30,new i(13,115),new i(6,116)),new r(28,new i(14,46),new i(23,47)),new r(30,new i(44,24),new i(7,25)),new r(30,new i(59,16),new i(1,17))),new n(35,[6,30,54,78,102,126,150],new r(30,new i(12,121),new i(7,122)),new r(28,new i(12,47),new i(26,48)),new r(30,new i(39,24),new i(14,25)),new r(30,new i(22,15),new i(41,16))),new n(36,[6,24,50,76,102,128,154],new r(30,new i(6,121),new i(14,122)),new r(28,new i(6,47),new i(34,48)),new r(30,new i(46,24),new i(10,25)),new r(30,new i(2,15),new i(64,16))),new n(37,[6,28,54,80,106,132,158],new r(30,new i(17,122),new i(4,123)),new r(28,new i(29,46),new i(14,47)),new r(30,new i(49,24),new i(10,25)),new r(30,new i(24,15),new i(46,16))),new n(38,[6,32,58,84,110,136,162],new r(30,new i(4,122),new i(18,123)),new r(28,new i(13,46),new i(32,47)),new r(30,new i(48,24),new i(14,25)),new r(30,new i(42,15),new i(32,16))),new n(39,[6,26,54,82,110,138,166],new r(30,new i(20,117),new i(4,118)),new r(28,new i(40,47),new i(7,48)),new r(30,new i(43,24),new i(22,25)),new r(30,new i(10,15),new i(67,16))),new n(40,[6,30,58,86,114,142,170],new r(30,new i(19,118),new i(6,119)),new r(28,new i(18,47),new i(31,48)),new r(30,new i(34,24),new i(34,25)),new r(30,new i(20,15),new i(61,16)))]},n.prototype.getVersionNumber=function(){return this._versionNumber},n.prototype.getAlignmentPatternCenters=function(){return this._alignmentPatternCenters},n.prototype.getTotalCodewords=function(){return this._totalCodewords},n.prototype.getDimensionForVersion=function(){return 17+4*this._versionNumber},n.prototype.getECBlocksForLevel=function(t){return this._ecBlocks[t.ordinal()]},n.getProvisionalVersionForDimension=function(e){try{return this.getVersionForNumber(e-17>>2)}catch(e){throw t.System.StiError.showError(e.message,!1),e}},n.getVersionForNumber=function(t){return n.VERSIONS[t-1]},n.decodeVersionInformation=function(t){for(var i=2147483647,r=0,o=0;o<this.VERSION_DECODE_INFO.length;o++){var a=this.VERSION_DECODE_INFO[o];if(a==t)return n.getVersionForNumber(o+7);var s=e.FormatInformation.numBitsDiffering(t,a);s<i&&(r=o+7,i=s)}if(i<=3)return n.getVersionForNumber(r);return null},n.prototype.toString=function(){return this._versionNumber.toString()},n.VERSION_DECODE_INFO=[31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017],n.VERSIONS=n.BuildVersions(),n}();e.Version=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.None=0]="None",t[t.A=1]="A",t[t.B=2]="B",t[t.C=3]="C"}(e=t.CodeSet||(t.CodeSet={}));var i;!function(t){t[t.FNC1=129]="FNC1",t[t.FNC2=130]="FNC2",t[t.FNC3=131]="FNC3",t[t.FNC4=132]="FNC4",t[t.CodeA=133]="CodeA",t[t.CodeB=134]="CodeB",t[t.CodeC=135]="CodeC",t[t.Shift=136]="Shift"}(i=t.ControlCodes||(t.ControlCodes={}));var r;!function(t){t[t.FNC1=102]="FNC1",t[t.FNC2=97]="FNC2",t[t.FNC3=96]="FNC3",t[t.FNC4A=101]="FNC4A",t[t.FNC4B=100]="FNC4B",t[t.CodeA=101]="CodeA",t[t.CodeB=100]="CodeB",t[t.CodeC=99]="CodeC",t[t.Shift=98]="Shift",t[t.StartA=103]="StartA",t[t.StartB=104]="StartB",t[t.StartC=105]="StartC",t[t.Stop=106]="Stop"}(r=t.BarcodeCommands||(t.BarcodeCommands={}));var n;!function(t){t[t.Yes=0]="Yes",t[t.No=1]="No"}(n=t.StiCheckSum||(t.StiCheckSum={}));var o;!function(t){t[t.None=0]="None",t[t.Modulo10=1]="Modulo10",t[t.Modulo11=2]="Modulo11"}(o=t.StiPlesseyCheckSum||(t.StiPlesseyCheckSum={}));var a;!function(t){t[t.Automatic=-1]="Automatic",t[t.s10x10=0]="s10x10",t[t.s12x12=1]="s12x12",t[t.s8x18=2]="s8x18",t[t.s14x14=3]="s14x14",t[t.s8x32=4]="s8x32",t[t.s16x16=5]="s16x16",t[t.s12x26=6]="s12x26",t[t.s18x18=7]="s18x18",t[t.s20x20=8]="s20x20",t[t.s12x36=9]="s12x36",t[t.s22x22=10]="s22x22",t[t.s16x36=11]="s16x36",t[t.s24x24=12]="s24x24",t[t.s26x26=13]="s26x26",t[t.s16x48=14]="s16x48",t[t.s32x32=15]="s32x32",t[t.s36x36=16]="s36x36",t[t.s40x40=17]="s40x40",t[t.s44x44=18]="s44x44",t[t.s48x48=19]="s48x48",t[t.s52x52=20]="s52x52",t[t.s64x64=21]="s64x64",t[t.s72x72=22]="s72x72",t[t.s80x80=23]="s80x80",t[t.s88x88=24]="s88x88",t[t.s96x96=25]="s96x96",t[t.s104x104=26]="s104x104",t[t.s120x120=27]="s120x120",t[t.s132x132=28]="s132x132",t[t.s144x144=29]="s144x144"}(a=t.StiDataMatrixSize||(t.StiDataMatrixSize={}));var s;!function(t){t[t.Ascii=0]="Ascii",t[t.C40=1]="C40",t[t.Text=2]="Text",t[t.X12=3]="X12",t[t.Edifact=4]="Edifact",t[t.Binary=5]="Binary"}(s=t.StiDataMatrixEncodingType||(t.StiDataMatrixEncodingType={}));var l;!function(t){t[t.Text=0]="Text",t[t.Numeric=1]="Numeric",t[t.Byte=2]="Byte"}(l=t.StiPdf417EncodingMode||(t.StiPdf417EncodingMode={}));var u;!function(t){t[t.Automatic=-1]="Automatic",t[t.Level0=0]="Level0",t[t.Level1=1]="Level1",t[t.Level2=2]="Level2",t[t.Level3=3]="Level3",t[t.Level4=4]="Level4",t[t.Level5=5]="Level5",t[t.Level6=6]="Level6",t[t.Level7=7]="Level7",t[t.Level8=8]="Level8"}(u=t.StiPdf417ErrorsCorrectionLevel||(t.StiPdf417ErrorsCorrectionLevel={}));var c;!function(t){t[t.None=0]="None",t[t.TwoDigit=1]="TwoDigit",t[t.FiveDigit=2]="FiveDigit"}(c=t.StiEanSupplementType||(t.StiEanSupplementType={}));var p;!function(t){t[t.None=0]="None",t[t.OneDigit=1]="OneDigit",t[t.TwoDigits=2]="TwoDigits",t[t.Auto=3]="Auto"}(p=t.StiCode11CheckSum||(t.StiCode11CheckSum={}));var h;!function(t){t[t.Automatic=0]="Automatic",t[t.v1=1]="v1",t[t.v2=2]="v2",t[t.v3=3]="v3",t[t.v4=4]="v4",t[t.v5=5]="v5",t[t.v6=6]="v6",t[t.v7=7]="v7",t[t.v8=8]="v8",t[t.v9=9]="v9",t[t.v10=10]="v10",t[t.v11=11]="v11",t[t.v12=12]="v12",t[t.v13=13]="v13",t[t.v14=14]="v14",t[t.v15=15]="v15",t[t.v16=16]="v16",t[t.v17=17]="v17",t[t.v18=18]="v18",t[t.v19=19]="v19",t[t.v20=20]="v20",t[t.v21=21]="v21",t[t.v22=22]="v22",t[t.v23=23]="v23",t[t.v24=24]="v24",t[t.v25=25]="v25",t[t.v26=26]="v26",t[t.v27=27]="v27",t[t.v28=28]="v28",t[t.v29=29]="v29",t[t.v30=30]="v30",t[t.v31=31]="v31",t[t.v32=32]="v32",t[t.v33=33]="v33",t[t.v34=34]="v34",t[t.v35=35]="v35",t[t.v36=36]="v36",t[t.v37=37]="v37",t[t.v38=38]="v38",t[t.v39=39]="v39",t[t.v40=40]="v40"}(h=t.StiQRCodeSize||(t.StiQRCodeSize={}));var g;!function(t){t[t.Level1=0]="Level1",t[t.Level2=1]="Level2",t[t.Level3=2]="Level3",t[t.Level4=3]="Level4"}(g=t.StiQRCodeErrorCorrectionLevel||(t.StiQRCodeErrorCorrectionLevel={}));var m;!function(t){t[t.Cp437=2]="Cp437",t[t.ISO_8859_1=3]="ISO_8859_1",t[t.ISO_8859_2=4]="ISO_8859_2",t[t.ISO_8859_3=5]="ISO_8859_3",t[t.ISO_8859_4=6]="ISO_8859_4",t[t.ISO_8859_5=7]="ISO_8859_5",t[t.ISO_8859_6=8]="ISO_8859_6",t[t.ISO_8859_7=9]="ISO_8859_7",t[t.ISO_8859_8=10]="ISO_8859_8",t[t.ISO_8859_9=11]="ISO_8859_9",t[t.ISO_8859_11=13]="ISO_8859_11",t[t.ISO_8859_13=15]="ISO_8859_13",t[t.ISO_8859_15=17]="ISO_8859_15",t[t.Shift_JIS=20]="Shift_JIS",t[t.Windows_1250=21]="Windows_1250",t[t.Windows_1251=22]="Windows_1251",t[t.Windows_1252=23]="Windows_1252",t[t.Windows_1256=24]="Windows_1256",t[t.UTF_8=26]="UTF_8"}(m=t.StiQRCodeECIMode||(t.StiQRCodeECIMode={}));var d;!function(t){t[t.Mode2=2]="Mode2",t[t.Mode3=3]="Mode3",t[t.Mode4=4]="Mode4",t[t.Mode5=5]="Mode5",t[t.Mode6=6]="Mode6"}(d=t.StiMaxicodeMode||(t.StiMaxicodeMode={}))}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBarCode="IStiBarCode"}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.None=0]="None",t[t.DecimalDigits=1]="DecimalDigits",t[t.DecimalSeparator=2]="DecimalSeparator",t[t.GroupSeparator=4]="GroupSeparator",t[t.GroupSize=8]="GroupSize",t[t.PositivePattern=16]="PositivePattern",t[t.NegativePattern=32]="NegativePattern",t[t.CurrencySymbol=64]="CurrencySymbol",t[t.PercentageSymbol=128]="PercentageSymbol"}(e=t.StiTextFormatState||(t.StiTextFormatState={}));var i;!function(t){t[t.None=0]="None",t[t.Full=1]="Full",t[t.ArrowsColored3=2]="ArrowsColored3",t[t.ArrowsColored4=3]="ArrowsColored4",t[t.ArrowsColored5=4]="ArrowsColored5",t[t.ArrowsGray3=5]="ArrowsGray3",t[t.ArrowsGray4=6]="ArrowsGray4",t[t.ArrowsGray5=7]="ArrowsGray5",t[t.Flags3=8]="Flags3",t[t.Latin4=9]="Latin4",t[t.Quarters5=10]="Quarters5",t[t.QuartersGreen5=11]="QuartersGreen5",t[t.QuartersRed5=12]="QuartersRed5",t[t.Ratings3=13]="Ratings3",t[t.Ratings4=14]="Ratings4",t[t.Ratings5=15]="Ratings5",t[t.RedToBlack4=16]="RedToBlack4",t[t.Signs3=17]="Signs3",t[t.Squares5=18]="Squares5",t[t.Stars3=19]="Stars3",t[t.Stars5=20]="Stars5",t[t.SymbolsCircled3=21]="SymbolsCircled3",t[t.SymbolsUncircled3=22]="SymbolsUncircled3",t[t.TrafficLights4=23]="TrafficLights4",t[t.TrafficLightsRimmed3=24]="TrafficLightsRimmed3",t[t.TrafficLightsUnrimmed3=25]="TrafficLightsUnrimmed3",t[t.Triangles3=26]="Triangles3"}(i=t.StiIconSet||(t.StiIconSet={}));var r;!function(t){t[t.None=0]="None",t[t.ArrowRightDownGray=1]="ArrowRightDownGray",t[t.ArrowRightUpGray=2]="ArrowRightUpGray",t[t.ArrowDownGray=3]="ArrowDownGray",t[t.ArrowRightGray=4]="ArrowRightGray",t[t.ArrowUpGray=5]="ArrowUpGray",t[t.ArrowUpGreen=6]="ArrowUpGreen",t[t.ArrowDownRed=7]="ArrowDownRed",t[t.ArrowRightYellow=8]="ArrowRightYellow",t[t.ArrowRightDownYellow=9]="ArrowRightDownYellow",t[t.ArrowRightUpYellow=10]="ArrowRightUpYellow",t[t.CheckGreen=11]="CheckGreen",t[t.CircleBlack=12]="CircleBlack",t[t.CircleGreen=13]="CircleGreen",t[t.CircleCheckGreen=14]="CircleCheckGreen",t[t.CircleRed=15]="CircleRed",t[t.CircleCrossRed=16]="CircleCrossRed",t[t.CircleYellow=17]="CircleYellow",t[t.CircleExclamationYellow=18]="CircleExclamationYellow",t[t.CrossRed=19]="CrossRed",t[t.ExclamationYellow=20]="ExclamationYellow",t[t.FlagGreen=21]="FlagGreen",t[t.FlagRed=22]="FlagRed",t[t.FlagYellow=23]="FlagYellow",t[t.FromRedToBlackGray=24]="FromRedToBlackGray",t[t.FromRedToBlackPink=25]="FromRedToBlackPink",t[t.FromRedToBlackRed=26]="FromRedToBlackRed",t[t.Latin1=27]="Latin1",t[t.Latin2=28]="Latin2",t[t.Latin3=29]="Latin3",t[t.Latin4=30]="Latin4",t[t.LightsGreen=31]="LightsGreen",t[t.LightsRed=32]="LightsRed",t[t.LightsYellow=33]="LightsYellow",t[t.MinusYellow=34]="MinusYellow",t[t.QuarterFull=35]="QuarterFull",t[t.QuarterFullGreen=36]="QuarterFullGreen",t[t.QuarterFullRed=37]="QuarterFullRed",t[t.QuarterHalf=38]="QuarterHalf",t[t.QuarterHalfGreen=39]="QuarterHalfGreen",t[t.QuarterHalfRed=40]="QuarterHalfRed",t[t.QuarterNone=41]="QuarterNone",t[t.QuarterNoneGreen=42]="QuarterNoneGreen",t[t.QuarterNoneRed=43]="QuarterNoneRed",t[t.QuarterQuarter=44]="QuarterQuarter",t[t.QuarterQuarterGreen=45]="QuarterQuarterGreen",t[t.QuarterQuarterRed=46]="QuarterQuarterRed",t[t.QuarterThreeFourth=47]="QuarterThreeFourth",t[t.QuarterThreeFourthGreen=48]="QuarterThreeFourthGreen",t[t.QuarterThreeFourthRed=49]="QuarterThreeFourthRed",t[t.Rating0=50]="Rating0",t[t.Rating1=51]="Rating1",t[t.Rating2=52]="Rating2",t[t.Rating3=53]="Rating3",t[t.Rating4=54]="Rating4",t[t.RhombRed=55]="RhombRed",t[t.Square0=56]="Square0",t[t.Square1=57]="Square1",t[t.Square2=58]="Square2",t[t.Square3=59]="Square3",t[t.Square4=60]="Square4",t[t.StarFull=61]="StarFull",t[t.StarHalf=62]="StarHalf",t[t.StarNone=63]="StarNone",t[t.StarQuarter=64]="StarQuarter",t[t.StarThreeFourth=65]="StarThreeFourth",t[t.TriangleGreen=66]="TriangleGreen",t[t.TriangleRed=67]="TriangleRed",t[t.TriangleYellow=68]="TriangleYellow"}(r=t.StiIcon||(t.StiIcon={}));var n;!function(t){t[t.MoreThan=0]="MoreThan",t[t.MoreThanOrEqual=1]="MoreThanOrEqual"}(n=t.StiIconSetOperation||(t.StiIconSetOperation={}));var o;!function(t){t[t.Value=0]="Value",t[t.Percent=1]="Percent"}(o=t.StiIconSetValueType||(t.StiIconSetValueType={}));var a;!function(t){t[t.None=0]="None",t[t.EndOfReport=1]="EndOfReport",t[t.EndOfPage=2]="EndOfPage"}(a=t.StiProcessAt||(t.StiProcessAt={}));var s;!function(t){t[t.Auto=0]="Auto",t[t.Value=1]="Value",t[t.Percent=2]="Percent",t[t.Minimum=3]="Minimum"}(s=t.StiMinimumType||(t.StiMinimumType={}));var l;!function(t){t[t.Auto=0]="Auto",t[t.Value=1]="Value",t[t.Percent=2]="Percent"}(l=t.StiMidType||(t.StiMidType={}));var u;!function(t){t[t.Auto=0]="Auto",t[t.Value=1]="Value",t[t.Percent=2]="Percent",t[t.Maximum=3]="Maximum"}(u=t.StiMaximumType||(t.StiMaximumType={}));var c;!function(t){t[t.SinglePage=0]="SinglePage",t[t.MultiPage=1]="MultiPage"}(c=t.StiDrillDownMode||(t.StiDrillDownMode={}));var p;!function(t){t[t.None=0]="None",t[t.All=15]="All",t[t.Top=1]="Top",t[t.Left=2]="Left",t[t.Right=4]="Right",t[t.Bottom=8]="Bottom",t[t.NotAssigned=16]="NotAssigned"}(p=t.StiConditionBorderSides||(t.StiConditionBorderSides={}));var h;!function(t){t[t.None=0]="None",t[t.Font=1]="Font",t[t.FontSize=2]="FontSize",t[t.FontStyleBold=4]="FontStyleBold",t[t.FontStyleItalic=8]="FontStyleItalic",t[t.FontStyleUnderline=16]="FontStyleUnderline",t[t.FontStyleStrikeout=32]="FontStyleStrikeout",t[t.TextColor=64]="TextColor",t[t.BackColor=128]="BackColor",t[t.Borders=256]="Borders",t[t.All=511]="All"}(h=t.StiConditionPermissions||(t.StiConditionPermissions={}));var g;!function(t){t[t.None=0]="None",t[t.ShowComponentsNames=1]="ShowComponentsNames",t[t.ShowAliases=2]="ShowAliases",t[t.ShowFieldsOnly=3]="ShowFieldsOnly",t[t.ShowFields=4]="ShowFields",t[t.ShowEvents=5]="ShowEvents",t[t.ShowContent=6]="ShowContent"}(g=t.StiQuickInfoType||(t.StiQuickInfoType={}));var m;!function(t){t[t.Angle0=0]="Angle0",t[t.Angle90=90]="Angle90",t[t.Angle180=180]="Angle180",t[t.Angle270=270]="Angle270"}(m=t.StiAngle||(t.StiAngle={}));var d;!function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Top=2]="Top",t[t.Bottom=3]="Bottom",t[t.None=4]="None",t[t.Fill=5]="Fill"}(d=t.StiDockStyle||(t.StiDockStyle={}));var S;!function(t){t[t.EqualTo=0]="EqualTo",t[t.NotEqualTo=1]="NotEqualTo",t[t.GreaterThan=2]="GreaterThan",t[t.GreaterThanOrEqualTo=3]="GreaterThanOrEqualTo",t[t.LessThan=4]="LessThan",t[t.LessThanOrEqualTo=5]="LessThanOrEqualTo",t[t.Between=6]="Between",t[t.NotBetween=7]="NotBetween",t[t.Containing=8]="Containing",t[t.NotContaining=9]="NotContaining",t[t.BeginningWith=10]="BeginningWith",t[t.EndingWith=11]="EndingWith",t[t.IsNull=12]="IsNull",t[t.IsNotNull=13]="IsNotNull"}(S=t.StiFilterCondition||(t.StiFilterCondition={}));var f;!function(t){t[t.Argument=0]="Argument",t[t.Value=1]="Value",t[t.ValueEnd=2]="ValueEnd",t[t.Expression=3]="Expression",t[t.ValueOpen=4]="ValueOpen",t[t.ValueClose=5]="ValueClose",t[t.ValueLow=6]="ValueLow",t[t.ValueHigh=7]="ValueHigh"}(f=t.StiFilterItem||(t.StiFilterItem={}));var y;!function(t){t[t.String=0]="String",t[t.Numeric=1]="Numeric",t[t.DateTime=2]="DateTime",t[t.Boolean=3]="Boolean",t[t.Expression=4]="Expression"}(y=t.StiFilterDataType||(t.StiFilterDataType={}));var b;!function(t){t[t.And=0]="And",t[t.Or=1]="Or"}(b=t.StiFilterMode||(t.StiFilterMode={}));var C;!function(t){t[t.ReportEngine=0]="ReportEngine",t[t.SQLQuery=1]="SQLQuery"}(C=t.StiFilterEngine||(t.StiFilterEngine={}));var v;!function(t){t[t.None=0]="None",t[t.KeepFirstRowTogether=1]="KeepFirstRowTogether",t[t.KeepFirstDetailTogether=2]="KeepFirstDetailTogether",t[t.KeepDetailsTogether=3]="KeepDetailsTogether"}(v=t.StiKeepDetails||(t.StiKeepDetails={}));var I;!function(t){t[t.AllPages=0]="AllPages",t[t.ExceptFirstPage=1]="ExceptFirstPage",t[t.ExceptLastPage=2]="ExceptLastPage",t[t.ExceptFirstAndLastPage=3]="ExceptFirstAndLastPage",t[t.OnlyFirstPage=4]="OnlyFirstPage",t[t.OnlyLastPage=8]="OnlyLastPage",t[t.OnlyFirstAndLastPage=12]="OnlyFirstAndLastPage"}(I=t.StiPrintOnType||(t.StiPrintOnType={}));var A;!function(t){t[t.Ignore=0]="Ignore",t[t.PrintOnEvenPages=1]="PrintOnEvenPages",t[t.PrintOnOddPages=2]="PrintOnOddPages"}(A=t.StiPrintOnEvenOddPagesType||(t.StiPrintOnEvenOddPagesType={}));var w;!function(t){t[t.None=0]="None",t[t.IncreasingSize=1]="IncreasingSize",t[t.DecreasingSize=2]="DecreasingSize",t[t.OnlyInWidthOfComponent=4]="OnlyInWidthOfComponent"}(w=t.StiShiftMode||(t.StiShiftMode={}));var T;!function(t){t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=4]="Left",t[t.Right=8]="Right"}(T=t.StiAnchorMode||(t.StiAnchorMode={}));var B;!function(t){t[t.None=0]="None",t[t.Merge=1]="Merge",t[t.Hide=2]="Hide",t[t.RemoveText=3]="RemoveText",t[t.BasedOnTagMerge=4]="BasedOnTagMerge",t[t.BasedOnTagHide=5]="BasedOnTagHide",t[t.BasedOnTagRemoveText=6]="BasedOnTagRemoveText",t[t.GlobalMerge=7]="GlobalMerge",t[t.GlobalHide=8]="GlobalHide",t[t.GlobalRemoveText=9]="GlobalRemoveText",t[t.BasedOnValueRemoveText=10]="BasedOnValueRemoveText",t[t.BasedOnValueAndTagMerge=11]="BasedOnValueAndTagMerge",t[t.BasedOnValueAndTagHide=12]="BasedOnValueAndTagHide",t[t.GlobalBasedOnValueRemoveText=13]="GlobalBasedOnValueRemoveText",t[t.GlobalBasedOnValueAndTagMerge=14]="GlobalBasedOnValueAndTagMerge",t[t.GlobalBasedOnValueAndTagHide=15]="GlobalBasedOnValueAndTagHide"}(B=t.StiProcessingDuplicatesType||(t.StiProcessingDuplicatesType={}));var R;!function(t){t[t.None=0]="None",t[t.Merge=1]="Merge",t[t.Hide=2]="Hide",t[t.RemoveImage=3]="RemoveImage",t[t.GlobalMerge=4]="GlobalMerge",t[t.GlobalHide=5]="GlobalHide",t[t.GlobalRemoveImage=6]="GlobalRemoveImage"}(R=t.StiImageProcessingDuplicatesType||(t.StiImageProcessingDuplicatesType={}));var P;!function(t){t[t.Cross=0]="Cross",t[t.Check=1]="Check",t[t.CrossRectangle=2]="CrossRectangle",t[t.CheckRectangle=3]="CheckRectangle",t[t.CrossCircle=4]="CrossCircle",t[t.DotCircle=5]="DotCircle",t[t.DotRectangle=6]="DotRectangle",t[t.NoneCircle=7]="NoneCircle",t[t.NoneRectangle=8]="NoneRectangle",t[t.None=9]="None"}(P=t.StiCheckStyle||(t.StiCheckStyle={}));var F;!function(t){t[t.Bands=0]="Bands",t[t.Cross=1]="Cross",t[t.Components=2]="Components",t[t.Shapes=3]="Shapes",t[t.Controls=4]="Controls"}(F=t.StiToolboxCategory||(t.StiToolboxCategory={}));var x;!function(t){t[t.Component=0]="Component",t[t.ReportTitleBand=1]="ReportTitleBand",t[t.ReportSummaryBand=2]="ReportSummaryBand",t[t.PageHeaderBand=3]="PageHeaderBand",t[t.PageFooterBand=4]="PageFooterBand",t[t.GroupHeaderBand=5]="GroupHeaderBand",t[t.GroupFooterBand=6]="GroupFooterBand",t[t.HeaderBand=7]="HeaderBand",t[t.FooterBand=8]="FooterBand",t[t.ColumnHeaderBand=9]="ColumnHeaderBand",t[t.ColumnFooterBand=10]="ColumnFooterBand",t[t.DataBand=11]="DataBand",t[t.HierarchicalBand=13]="HierarchicalBand",t[t.ChildBand=14]="ChildBand",t[t.EmptyBand=15]="EmptyBand",t[t.OverlayBand=16]="OverlayBand",t[t.CrossGroupHeaderBand=21]="CrossGroupHeaderBand",t[t.CrossGroupFooterBand=22]="CrossGroupFooterBand",t[t.CrossHeaderBand=23]="CrossHeaderBand",t[t.CrossFooterBand=24]="CrossFooterBand",t[t.CrossDataBand=25]="CrossDataBand",t[t.Text=101]="Text",t[t.TextInCells=102]="TextInCells",t[t.SystemText=103]="SystemText",t[t.ContourText=104]="ContourText",t[t.RichText=105]="RichText",t[t.Image=106]="Image",t[t.BarCode=107]="BarCode",t[t.Shape=108]="Shape",t[t.Line=109]="Line",t[t.Container=110]="Container",t[t.Panel=110]="Panel",t[t.Clone=112]="Clone",t[t.CheckBox=113]="CheckBox",t[t.SubReport=114]="SubReport",t[t.WinControl=115]="WinControl",t[t.ZipCode=116]="ZipCode",t[t.HorizontalLinePrimitive=150]="HorizontalLinePrimitive",t[t.VerticalLinePrimitive=151]="VerticalLinePrimitive",t[t.RectanglePrimitive=152]="RectanglePrimitive",t[t.RoundedRectanglePrimitive=153]="RoundedRectanglePrimitive",t[t.Chart=200]="Chart",t[t.Table=201]="Table",t[t.CrossTab=202]="CrossTab",t[t.Map=210]="Map",t[t.Gauge=220]="Gauge",t[t.TextElement=300]="TextElement",t[t.ImageElement=301]="ImageElement",t[t.ChartElement=302]="ChartElement",t[t.GaugeElement=303]="GaugeElement",t[t.MapElement=304]="MapElement",t[t.IndicatorElement=305]="IndicatorElement",t[t.ListElement=320]="ListElement",t[t.XText=400]="XText",t[t.XTitle=401]="XTitle",t[t.XSubTitle=402]="XSubTitle",t[t.XHeader=403]="XHeader",t[t.XBody=404]="XBody",t[t.XImage=405]="XImage",t[t.XBarCode=406]="XBarCode",t[t.XShape=407]="XShape",t[t.XData=408]="XData",t[t.UserCode=1e3]="UserCode"}(x=t.StiComponentToolboxPosition||(t.StiComponentToolboxPosition={}));var D;!function(t){t[t.Component=0]="Component",t[t.CrossTab=1500]="CrossTab",t[t.SubReportsV1=1500]="SubReportsV1",t[t.SubReportsV2=0]="SubReportsV2",t[t.Container=0]="Container",t[t.Panel=0]="Panel",t[t.ReportTitleBandBefore=-400]="ReportTitleBandBefore",t[t.ReportTitleBandAfterV1=-200]="ReportTitleBandAfterV1",t[t.ReportTitleBandAfterV2=200]="ReportTitleBandAfterV2",t[t.ReportSummaryBand=500]="ReportSummaryBand",t[t.PageHeaderBandBefore=-200]="PageHeaderBandBefore",t[t.PageHeaderBandAfter=-400]="PageHeaderBandAfter",t[t.PageFooterBandBottom=-300]="PageFooterBandBottom",t[t.PageFooterBandTop=1e3]="PageFooterBandTop",t[t.GroupHeaderBand=300]="GroupHeaderBand",t[t.GroupFooterBand=300]="GroupFooterBand",t[t.HeaderBand=300]="HeaderBand",t[t.FooterBand=300]="FooterBand",t[t.ColumnHeaderBand=300]="ColumnHeaderBand",t[t.ColumnFooterBand=300]="ColumnFooterBand",t[t.DataBand=300]="DataBand",t[t.Table=300]="Table",t[t.ChildBand=300]="ChildBand",t[t.EmptyBand=300]="EmptyBand",t[t.OverlayBand=700]="OverlayBand",t[t.Primitive=1500]="Primitive",t[t.CrossGroupHeaderBand=300]="CrossGroupHeaderBand",t[t.CrossGroupFooterBand=300]="CrossGroupFooterBand",t[t.CrossHeaderBand=300]="CrossHeaderBand",t[t.CrossFooterBand=300]="CrossFooterBand",t[t.CrossDataBand=300]="CrossDataBand"}(D=t.StiComponentPriority||(t.StiComponentPriority={}));var k;!function(t){t[t.Simple=0]="Simple",t[t.Master=1]="Master",t[t.Detail=2]="Detail",t[t.Static=3]="Static"}(k=t.StiComponentType||(t.StiComponentType={}));var E;!function(t){t[t.None=0]="None",t[t.AllowMove=1]="AllowMove",t[t.AllowResize=2]="AllowResize",t[t.AllowSelect=4]="AllowSelect",t[t.AllowChange=8]="AllowChange",t[t.AllowDelete=16]="AllowDelete",t[t.All=31]="All"}(E=t.StiRestrictions||(t.StiRestrictions={}));var G;!function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show",t[t.Active=2]="Active"}(G=t.StiHighlightState||(t.StiHighlightState={}));var _;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Top=3]="Top",t[t.Middle=4]="Middle",t[t.Bottom=5]="Bottom"}(_=t.StiAligning||(t.StiAligning={}));var L;!function(t){t[t.DownThenAcross=0]="DownThenAcross",t[t.AcrossThenDown=1]="AcrossThenDown"}(L=t.StiColumnDirection||(t.StiColumnDirection={}));var N;!function(t){t[t.IncreaseLastRow=0]="IncreaseLastRow",t[t.DecreaseLastRow=1]="DecreaseLastRow",t[t.AlignFooterToBottom=2]="AlignFooterToBottom",t[t.AlignFooterToTop=3]="AlignFooterToTop"}(N=t.StiEmptySizeMode||(t.StiEmptySizeMode={}));var O;!function(t){t[t.Ascending=0]="Ascending",t[t.Descending=1]="Descending",t[t.None=2]="None"}(O=t.StiGroupSortDirection||(t.StiGroupSortDirection={}));var Z;!function(t){t[t.Avg=0]="Avg",t[t.AvgDate=1]="AvgDate",t[t.AvgTime=2]="AvgTime",t[t.Count=3]="Count",t[t.CountDistinct=4]="CountDistinct",t[t.MaxDate=5]="MaxDate",t[t.MaxTime=6]="MaxTime",t[t.Max=7]="Max",t[t.MinDate=8]="MinDate",t[t.MinTime=9]="MinTime",t[t.Min=10]="Min",t[t.Median=11]="Median",t[t.Mode=12]="Mode",t[t.Sum=13]="Sum",t[t.SumTime=14]="SumTime"}(Z=t.StiGroupSummaryType||(t.StiGroupSummaryType={}));var M;!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(M=t.StiPageOrientation||(t.StiPageOrientation={}));var H;!function(t){t[t.Standard=0]="Standard",t[t.Typographic=1]="Typographic",t[t.Wysiwyg=2]="Wysiwyg"}(H=t.StiTextQuality||(t.StiTextQuality={}));var W;!function(t){t[t.Totals=0]="Totals",t[t.SystemVariables=1]="SystemVariables",t[t.Expression=2]="Expression",t[t.DataColumn=3]="DataColumn",t[t.None=4]="None"}(W=t.StiSystemTextType||(t.StiSystemTextType={}));var V;!function(t){t[t.Solid=0]="Solid",t[t.Gradient=1]="Gradient"}(V=t.StiBrushType||(t.StiBrushType={}));var Y;!function(t){t[t.Color2=0]="Color2",t[t.Color3=1]="Color3"}(Y=t.StiColorScaleType||(t.StiColorScaleType={}));var j;!function(t){t[t.Default=0]="Default",t[t.LeftToRight=1]="LeftToRight",t[t.RighToLeft=2]="RighToLeft"}(j=t.StiDataBarDirection||(t.StiDataBarDirection={}));var X;!function(t){t[t.Ascending=0]="Ascending",t[t.Descending=1]="Descending",t[t.None=2]="None"}(X=t.StiInteractionSortDirection||(t.StiInteractionSortDirection={}));var J;!function(t){t[t.None=0]="None",t[t.Rotate90CW=1]="Rotate90CW",t[t.Rotate90CCW=2]="Rotate90CCW",t[t.Rotate180=3]="Rotate180",t[t.FlipHorizontal=4]="FlipHorizontal",t[t.FlipVertical=5]="FlipVertical"}(J=t.StiImageRotation||(t.StiImageRotation={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.StringFormat,r=t.System.Drawing.Point,n=t.System.Drawing.GraphicsUnit,o=t.Base.Drawing.StiSolidBrush,a=t.System.Drawing.Rectangle,s=t.Base.StiJson,l=t.Base.Services.StiService,u=t.System.Text.StringBuilder,c=t.System.Drawing.StringAlignment,p=t.System.Drawing.Font,h=t.Report.Components.StiAngle,g=t.System.Drawing.Color,m=t.Base.Drawing.StiVertAlignment,d=t.Base.Drawing.StiHorAlignment,S=function(l){function S(){var t=null!==l&&l.apply(this,arguments)||this;return t.visiblePropertiesCount=27,t._barCodeData=new e.StiBarCodeData,t.rectWindow=new a(0,0,0,0),t.defaultLabelFontHeight=8,t}return __extends(S,l),S.loadFromJsonObjectInternal=function(t){var e=t.properties().firstOrDefault(function(t){return"Ident"==t.name}).value.toString(),i=StiOptions.Services.barCodes.firstOrDefault(function(t){return t.getStiType().getStiTypeName()==e});if(null==i)throw String.stiFormat("Type {0}.sti_is(not) found!",e);var r=i.createNew();return r.loadFromJsonObject(t),r},S.loadFromXmlInternal=function(t){if(null==t.attributes)return;var e=t.attributes.getNamedItem("type"),i=StiOptions.Services.barCodes.firstOrDefault(function(t){return t.getStiType().getStiNetTypeName()==e.value});if(null==i)throw String.stiFormat("Type {0}.sti_is(not) found!",e.value);var r=i.createNew();return r.loadFromXmlObject(t),r},S.prototype.saveToJsonObject=function(t){var e=new s;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e},S.prototype.loadFromJsonObject=function(t){},Object.defineProperty(S.prototype,"componentId",{get:function(){return null},enumerable:!0,configurable:!0}),S.prototype.loadFromXmlObject=function(t){},Object.defineProperty(S.prototype,"visibleProperties",{get:function(){return this._visibleProperties},set:function(t){this._visibleProperties=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"defaultCodeValue",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"customPainter",{get:function(){return this._customPainter},set:function(t){this._customPainter=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"mainWidth",{get:function(){return this.barCodeData.mainWidth},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"mainHeight",{get:function(){return this.barCodeData.mainHeight},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"barCodeData",{get:function(){return this._barCodeData},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"module",{get:function(){return null},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"height",{get:function(){return null},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"textAlignment",{get:function(){return c.Center},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"textSpacing",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"labelFontHeight",{get:function(){return null},enumerable:!0,configurable:!0}),S.prototype.checkCodeSymbols=function(t,e){var i=new u;if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];-1!=e.indexOf(n)&&i.append(n)}return i.toString()},S.prototype.getCode=function(t){return t.getBarCodeString()},S.prototype.getCombinedCode=function(){return null},S.prototype.getSymbolWidth=function(t){var e;switch(t){case"0":case"4":case"8":case"c":case"d":case"e":case"f":e=1;break;case"1":case"5":case"9":e=1*this.barCodeData.wideToNarrowRatio;break;case"2":case"6":case"a":e=1.5*this.barCodeData.wideToNarrowRatio;break;case"3":case"7":case"b":e=2*this.barCodeData.wideToNarrowRatio;break;default:e=1;break}return e},S.prototype.isSymbolLong=function(t){var e;switch(t){case"8":case"9":case"a":case"b":case"c":case"e":e=!0;break;default:e=!1;break}return e},S.prototype.isSymbolSpace=function(t){var e;switch(t){case"0":case"1":case"2":case"3":e=!0;break;default:e=!1;break}return e},S.prototype.isSymbolPostDescend=function(t){var e;switch(t){case"e":case"f":e=!0;break;default:e=!1;break}return e},S.prototype.getSymbolsStringWidth=function(t){for(var e=0,i=0;i<t.length;i++)e+=this.getSymbolWidth(t[i]);return e},S.prototype.drawBars=function(t,e,i){for(var r=this.barCodeData.spaceLeft,n=this.barCodeData.spaceTop,o=0,a=0;a<e.length;a++){var s=e[a];if(0==this.isSymbolSpace(s)){var l=this.barCodeData.lineHeightShort;1==this.isSymbolLong(s)&&(l=this.barCodeData.lineHeightLong);var u=0;1==this.isSymbolPostDescend(s)&&(u=this.barCodeData.lineHeightLong-this.barCodeData.lineHeightShort),this.baseFillRectangle(t,i,r+this.barCodeData.lineWidth*o,n+u,this.barCodeData.lineWidth*this.getSymbolWidth(s),l-u)}o+=this.getSymbolWidth(s)}},S.prototype.drawBarCode=function(t,e,i){this.drawBarCode1(t,e,i,null)},S.prototype.drawBarCode1=function(t,e,r,s){var l=new p(r.font.name,r.font.size*(r.barCodeType.labelFontHeight/8)*this.barCodeData.fullZoomY,r.font.style,n.Pixel);this.translateRect(t,e,r);var h=new o(r.foreColor),g=new o(r.backColor);if(this.baseFillRectangle(t,g,0,0,this.barCodeData.mainWidth,this.barCodeData.mainHeight),this.drawBars(t,this.barCodeData.barsArray,h),r.showLabelText&&this.barCodeData.textString.length>0){var m=new u;if(this.textSpacing){for(var d=0;d<this.barCodeData.textString.length;d++)m.append(this.barCodeData.textString[d]),m.append(" ");m.length=m.length-1}else m.append(this.barCodeData.textString);var S=m.toString(),f=this.baseMeasureString3(t,S,l),y=this.getSymbolsStringWidth(this.barCodeData.barsArray);f.width>y*this.barCodeData.lineWidth+this.barCodeData.spaceLeft+this.barCodeData.spaceRight&&(S=this.barCodeData.textString);var b=this.barCodeData.textPosition,C=new i;C.alignment=this.textAlignment,C.formatFlags=0,this.textAlignment==c.Center?this.baseDrawString2(t,S,l,h,new a(0,b,y*this.barCodeData.lineWidth+this.barCodeData.spaceLeft+this.barCodeData.spaceRight,2*this.barCodeData.textHeight),C):this.baseDrawString2(t,this.barCodeData.textString,l,h,new a(this.barCodeData.spaceLeft,b,y*this.barCodeData.lineWidth,2*this.barCodeData.textHeight),C)}null!=s&&s(t,h,this),this.rollbackTransform(t)},S.prototype.calculateSizeFull=function(t,i,r,n,o,s,l,u,c,p,g,m,d,S,f,y,b){this.barCodeData.wideToNarrowRatio=g,this.barCodeData.code=d,this.barCodeData.textString=S,this.barCodeData.barsArray=f,b.showQuietZones||this.sti_is(e.StiAustraliaPost4StateBarCodeType)||this.sti_is(e.StiITF14BarCodeType)||(t=0,i=0,r=0,n=0),this.rectWindow=new a(0,0,y.width,y.height),b.angle!=h.Angle90&&b.angle!=h.Angle270||(this.rectWindow=new a(0,0,y.height,y.width));var C=this.module/10*m,v=C,I=p*(1-this.height);b.autoScale&&(C=this.rectWindow.width/(this.getSymbolsStringWidth(f)+t+i),I=-(this.rectWindow.height/v-c),!b.showLabelText&&l>p&&(I-=u)),this.barCodeData.fullZoomY=v,this.barCodeData.spaceLeft=t*C,this.barCodeData.spaceRight=i*C,this.barCodeData.lineWidth=1*C,this.barCodeData.mainWidth=(this.getSymbolsStringWidth(f)+t+i)*C,this.barCodeData.spaceTop=r*v,this.barCodeData.spaceBottom=n*v,this.barCodeData.lineHeightShort=(o-I)*v,this.barCodeData.lineHeightLong=(s-I)*v,l>r&&(l-=I),this.barCodeData.textPosition=l*v,this.barCodeData.mainHeight=(c-I)*v,this.barCodeData.textHeight=u*v},S.prototype.calculateSize2=function(t,e,i,r,n,o,a,s,l,u,c,p,h,g){this.calculateSizeFull(t,e,i,r,n,o,a,s,l,n,u,c,"","",p,h,g)},S.prototype.draw2DBarCode=function(t,e,i,r){this.rectWindow=new a(0,0,e.width,e.height),i.angle!=h.Angle90&&i.angle!=h.Angle270||(this.rectWindow=new a(0,0,e.height,e.width));var n=2;i.showQuietZones||(n=0);var s=this.module/10*r,l=s;i.autoScale&&(s=this.rectWindow.width/(this.barCodeData.matrixWidth+2*n),l=this.rectWindow.height/(this.barCodeData.matrixHeight*this.barCodeData.matrixRatioY+2*n),s=Math.min(s,l),l=s),this.barCodeData.mainWidth=(this.barCodeData.matrixWidth+2*n)*s,this.barCodeData.mainHeight=(this.barCodeData.matrixHeight*this.barCodeData.matrixRatioY+2*n)*l,this.barCodeData.spaceLeft=n*s,this.barCodeData.spaceTop=n*l,this.translateRect(t,e,i);var u=new o(i.foreColor),c=new o(i.backColor);this.baseFillRectangle(t,c,0,0,this.barCodeData.mainWidth,this.barCodeData.mainHeight);for(var p=this.barCodeData.spaceLeft,g=this.barCodeData.spaceTop,m=0;m<this.barCodeData.matrixHeight;m++)for(var d=0;d<this.barCodeData.matrixWidth;d++)0!=this.barCodeData.matrixGrid[d+m*this.barCodeData.matrixWidth]&&this.baseFillRectangle2D(t,u,p+d*s,g+m*l*this.barCodeData.matrixRatioY,s,l*this.barCodeData.matrixRatioY);this.rollbackTransform(t)},S.prototype.drawMaxicode=function(t,e,i,n){this.rectWindow=new a(0,0,e.width,e.height),i.angle!=h.Angle90&&i.angle!=h.Angle270||(this.rectWindow=new a(0,0,e.height,e.width));var s=100,l=s/29,u=1.1547*l,c=.866*l,p=1.5*l,m=c+u/2,d=n,S=32*l,f=34*c+u;i.autoScale&&(d=Math.min(this.rectWindow.height,this.rectWindow.width)/S),this.barCodeData.mainWidth=S*d,this.barCodeData.mainHeight=f*d,this.translateRect(t,e,i);var y=new o(i.foreColor),b=new o(i.backColor.a<64?g.white:i.backColor);this.baseFillRectangle(t,b,0,0,this.barCodeData.mainWidth,this.barCodeData.mainHeight);for(var C=[0,l/2,l/2,0,-l/2,-l/2],v=[u/2,u/4,-u/4,-u/2,-u/4,u/4],I=.87,A=0;A<33;A++)for(var w=0;w<30;w++)if(1==this.barCodeData.matrixGrid[30*A+w]){var T=p+w*l;0!=(1&A)&&(T+=l/2);for(var B=m+c*A,R=[],P=0;P<6;P++)R[P]=new r((T+C[P]*I)*d,(B+v[P]*I)*d);this.baseFillPolygon(t,y,R)}for(var F=p+14*l,x=m+16*c,D=[15.236,12.598,9.96,7.32,4.646,2.008],P=0;P<D.length;P++){var k=new a((F-D[P])*d,(x-D[P])*d,2*D[P]*d,2*D[P]*d);this.baseFillEllipse(t,(1&P)>0?b:y,k.x,k.y,k.width,k.height)}this.rollbackTransform(t)},S.prototype.drawBarCodeError=function(t,e,i){this.drawBarCodeError2(t,e,i,null)},S.prototype.drawBarCodeError2=function(t,e,i,r){var n=new o(i.backColor);this.baseFillRectangle(t,n,e.x,e.y,e.width,e.height),this.baseDrawRectangle(t,g.red,4,e.x,e.y,e.width,e.height);var a=new p("Arial",8);String.isNullOrEmpty(r)?this.baseDrawString(t,"Not valid data",a,new o(g.red),e.x+1,e.y+1):this.baseDrawString(t,r,a,new o(g.red),e.x+1,e.y+1)},S.prototype.draw=function(t,e,i,r){},S.prototype.translateRect=function(t,e,i){var r,n,o,a,s;switch(i.horAlignment){case d.Right:a=this.rectWindow.width-this.barCodeData.mainWidth;break;case d.Center:a=(this.rectWindow.width-this.barCodeData.mainWidth)/2;break;default:a=0;break}switch(i.vertAlignment){case m.Bottom:s=this.rectWindow.height-this.barCodeData.mainHeight;break;case m.Center:s=(this.rectWindow.height-this.barCodeData.mainHeight)/2;break;default:s=0;break}switch(i.angle){case h.Angle90:r=-90,n=e.x,o=e.y+e.height;break;case h.Angle180:r=-180,n=e.x+e.width,o=e.y+e.height;break;case h.Angle270:r=-270,n=e.x+e.width,o=e.y;break;default:r=0,n=e.x,o=e.y;break}this.baseTransform(t,n,o,r,a,s)},S.prototype.rollbackTransform=function(t){this.baseRollbackTransform(t)},S.prototype.baseDrawString=function(t,e,i,r,n,o){this.baseDrawString2(t,e,i,r,new a(n,o,0,0),null)},S.prototype.baseTransform=function(e,i,r,n,o,a){var s=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?s=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(s=this.customPainter),s.baseTransform(e,i,r,n,o,a)},S.prototype.baseRollbackTransform=function(e){var i=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?i=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(i=this.customPainter),i.baseRollbackTransform(e)},S.prototype.baseFillRectangle=function(e,i,r,n,o,a){var s=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?s=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(s=this.customPainter),s.baseFillRectangle(e,i,r,n,o,a)},S.prototype.baseFillRectangle2D=function(e,i,r,n,o,a){var s=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?s=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(s=this.customPainter),s.baseFillRectangle2D(e,i,r,n,o,a)},S.prototype.baseFillPolygon=function(e,i,r){var n=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?n=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(n=this.customPainter),n.baseFillPolygon(e,i,r)},S.prototype.baseFillEllipse=function(e,i,r,n,o,a){var s=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?s=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(s=this.customPainter),s.baseFillEllipse(e,i,r,n,o,a)},S.prototype.baseDrawRectangle=function(e,i,r,n,o,a,s){var l=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?l=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(l=this.customPainter),l.baseDrawRectangle(e,i,r,n,o,a,s)},S.prototype.baseDrawImage=function(e,i,r,n,o,a,s){var l=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?l=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(l=this.customPainter),l.baseDrawImage(e,i,r,n,o,a,s)},S.prototype.baseDrawString2=function(e,i,r,n,o,a){var s=null;e.sti_is(t.Report.Export.StiBarCodeExportPainter)?s=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(s=this.customPainter),s.baseDrawString(e,i,r,n,o,a)},S.prototype.baseMeasureString3=function(e,i,r){var n=null;return e.sti_is(t.Report.Export.StiBarCodeExportPainter)?n=e.sti_as(t.Report.Export.StiBarCodeExportPainter):null!=this.customPainter&&(n=this.customPainter),n.baseMeasureString(e,i,r)},S.prototype.createNew=function(){return null},S}(l);e.StiBarCodeTypeService=S}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.StringAlignment,n=t.System.Text.StringBuilder,o=function(t){function i(e,i){void 0===e&&(e=20),void 0===i&&(i=1);var r=t.call(this)||this;return r.australiaPost4StateSymbolsC="ABC DEF#GHIabcdeJKLfMNOgPQRhijklSTUmVWXnYZ0opqrs123t456u789vwxyz",r.australiaPost4StateSymbolsN="012_345_678_9",r.australiaPost4StateStartCode="13",r.australiaPost4StateStopCode="13",r._module=20,r._height=1,r.australiaPost4StateSpaceLeft=11.8,r.australiaPost4StateSpaceRight=11.8,r.australiaPost4StateSpaceTop=3.9+7,r.australiaPost4StateSpaceBottom=3.9,r.australiaPost4StateLineHeightLong=10,r.australiaPost4StateLineHeightShort=.62*r.australiaPost4StateLineHeightLong,r.australiaPost4StateTextPosition=1,r.australiaPost4StateTextHeight=5,r.australiaPost4StateMainHeight=r.australiaPost4StateSpaceTop+r.australiaPost4StateLineHeightLong+r.australiaPost4StateSpaceBottom,r.australiaPost4StateLineHeightForCut=r.australiaPost4StateLineHeightLong,r.mult=Array.create(Number,64,64),r.gen=[0,0,0,0,0],r._module=e,r._height=i,r}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,20),i.addPropertyNumber("Height",this.height,1),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this._module=r.value.toNumber();break;case"Height":this._height=r.value.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiAustraliaPost4StateBarCodeType},enumerable:!0,configurable:!0}),i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Angle":this.module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Australia Post 4-state"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"1139987520"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<20&&(this._module=20),t>20&&(this._module=20)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<1&&(this._height=1),t>1&&(this._height=1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.australiaPost4StateTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[13]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textAlignment",{get:function(){return r.Near},enumerable:!0,configurable:!0}),i.prototype.rSInitialise=function(){for(var t=67,e=64,i=0;i<64;i++)this.mult[0][i]=0,this.mult[1][i]=i;for(var r=1,i=1;i<64;i++){var n=r<<1;0!=(n&e)&&(n^=t);for(var o=0;o<64;o++)this.mult[n][o]=this.mult[r][o]<<1,0!=(this.mult[n][o]&e)&&(this.mult[n][o]^=t);r=n}this.gen[0]=48,this.gen[1]=17,this.gen[2]=29,this.gen[3]=30,this.gen[4]=1},i.prototype.rSEncode=function(t){0==this.gen[0]&&this.rSInitialise();for(var e=Array.create(Number,31),i=t.length,r=0;r<4;r++)e[r]=0;for(var r=0;r<i;r++)e[r+4]=t[i-1-r];for(var r=i-1;r>=0;r--)for(var n=0;n<=4;n++){var o=this.gen[n],a=e[4+r],s=this.mult[o][a];e[r+n]=e[r+n]^s}for(var l=Array.create(Number,4),r=0;r<4;r++)l[r]=e[3-r];return l},i.prototype.charTo4State=function(t,e){var i=new n;if(e){var r=this.australiaPost4StateSymbolsC.indexOf(t);i.append(String.fromCharCode((r>>4&3)+48)),i.append(String.fromCharCode((r>>2&3)+48)),i.append(String.fromCharCode((3&r)+48))}else{var r=this.australiaPost4StateSymbolsN.indexOf(t);i.append(String.fromCharCode((r>>2&3)+48)),i.append(String.fromCharCode((3&r)+48))}return i.toString()},i.prototype.stateToBar=function(t){for(var e=new n,i=0;i<t.length;i++){switch(t[i]){case"0":e.append("c");break;case"1":e.append("d");break;case"2":e.append("e");break;case"3":e.append("f");break}e.append("0")}return e.toString()},i.prototype.makeBarsArray=function(t,e,i){var r=t.ref,o=e.ref,a=i.ref;if(r.length<10)return a="Data too short",!1;var s=r.substr(0,2),l=r.substr(2,8),u=r.substr(10),c=-1;switch(s){case"11":case"87":case"45":case"92":c=0;break;case"59":c=16;break;case"62":case"44":c=31;break}if(c<0)return a="Unknown FCC",!1;var p=c/3;if(u.length>p)return a="CustomerInfo too long",!1;p>u.length&&(p=u.length);var h=new n;h.append(this.charTo4State(s[0],!1)),h.append(this.charTo4State(s[1],!1)),h.append(this.charTo4State(l[0],!1)),h.append(this.charTo4State(l[1],!1)),h.append(this.charTo4State(l[2],!1)),h.append(this.charTo4State(l[3],!1)),h.append(this.charTo4State(l[4],!1)),h.append(this.charTo4State(l[5],!1)),h.append(this.charTo4State(l[6],!1)),h.append(this.charTo4State(l[7],!1));for(var g=0;g<p;g++)h.append(this.charTo4State(u[g],!0));if(h.length<21+c)for(var m=21+c-h.length,g=0;g<m;g++)h.append("3");h.toString().charCodeAt(0);for(var d=Math.floor(h.length/3),S=Array.create(Number,d),g=0;g<d;g++)S[g]=(h.toString().charCodeAt(3*g+0)-48<<4)+(h.toString().charCodeAt(3*g+1)-48<<2)+(h.toString().charCodeAt(3*g+2)-48);for(var f=this.rSEncode(S),g=0;g<4;g++)h.append(String.fromCharCode((f[g]>>4&3)+48)),h.append(String.fromCharCode((f[g]>>2&3)+48)),h.append(String.fromCharCode((3&f[g])+48));return o=this.stateToBar(this.australiaPost4StateStartCode+h.toString()+this.australiaPost4StateStopCode),r=String.stiFormat("{0} {1} {2} {3} {4} {5} {6}",s,l,u.substr(0,p),f[0],f[1],f[2],f[3]),t.ref=r,e.ref=o,i.ref=a,!0},i.prototype.draw=function(t,e,i,r){var n=this.getCode(e);n=this.checkCodeSymbols(n,this.australiaPost4StateSymbolsC);var o=String.empty,a=String.empty,s={ref:n},l={ref:o},u={ref:a};this.makeBarsArray(s,l,u)?(n=s.ref,o=l.ref,a=u.ref,this.calculateSizeFull(this.australiaPost4StateSpaceLeft,this.australiaPost4StateSpaceRight,this.australiaPost4StateSpaceTop,this.australiaPost4StateSpaceBottom,this.australiaPost4StateLineHeightShort,this.australiaPost4StateLineHeightLong,this.australiaPost4StateTextPosition,this.australiaPost4StateTextHeight,this.australiaPost4StateMainHeight,this.australiaPost4StateLineHeightForCut,1,r,n,n,o,i,e),this.drawBarCode(t,i,e)):a.length>0?this.drawBarCodeError2(t,i,e,a):this.drawBarCodeError(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiAustraliaPost4StateBarCodeType=o}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBorder="IStiBorder"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiEnumAngle="IStiEnumAngle"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiHorAlignment="IStiHorAlignment"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiVertAlignment="IStiVertAlignment"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiForeColor="IStiForeColor"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBackColor="IStiBackColor"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.ICloneable,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.Base.StiJson,o=function(){function e(t){void 0===t&&(t=String.empty),this.val=String.empty,this.parentComponent=null,this.fullConvert=!0,this.applyFormat=!0,this.genAddEvent=!0,this.val=t}return e.prototype.implements=function(){return[i,r]},e.prototype.saveToJsonObject=function(t){var e=new n;return e.addPropertyStringNullOfEmpty("Value",this.value),e},e.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Value":this.value=r.value;break}}},e.prototype.loadFromXml=function(t){this.value=t.textContent},Object.defineProperty(e.prototype,"value",{get:function(){return this.getValueProp()},set:function(t){this.setValueProp(t)},enumerable:!0,configurable:!0}),e.prototype.getValueProp=function(){return this.val},e.prototype.setValueProp=function(e){this.val!=e&&(null!=this.parentComponent&&this.parentComponent.sti_is(t.Report.Components.StiText),this.val=e)},e.prototype.toString=function(){return this.value},e.prototype.clone=function(){return this.memberwiseClone()},e}();e.StiExpression=o}(i=e.Expressions||(e.Expressions={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.ICloneable,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiJson,a=t.System.Text.XMLConvert,s=t.System.Enum,l=t.System.Text.StiReportObjectStringConverter,u=function(i){function u(){return null!==i&&i.apply(this,arguments)||this}return __extends(u,i),u.prototype.implements=function(){return i.prototype.implements.call(this).concat([r,n])},u.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new o,i=0,r=0,n=this.list;r<n.length;r++){var a=n[r];e.addPropertyJObject(i.toString(),a.saveToJsonObject(t)),i++}return e},u.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i],o=null,a=n.value;switch(a.properties().firstOrDefault(function(t){return"Ident"==t.name}).value){case"StiBaseCondition":o=new e.StiBaseCondition;break;case"StiCondition":o=new e.StiCondition;break;case"StiIconSetCondition":o=new e.StiIconSetCondition;break;case"StiColorScaleCondition":o=new e.StiColorScaleCondition;break;case"StiDataBarCondition":o=new e.StiDataBarCondition;break;case"StiMultiCondition":o=new e.StiMultiCondition;break}o.loadFromJsonObject(a),this.list.add(o)}},u.prototype.isBorderSides=function(t){return"False"!=(t=a.decodeName(t))&&"True"!=t&&(t.contains("Left")||t.contains("Top")||t.contains("Bottom")||t.contains("Right")||t.contains("All")||t.contains("None")||t.contains("NotAssigned"))},u.prototype.convertIconSetItemFromString=function(t){if("null"==t)return null;var i=t.split(",");return new e.StiIconSetItem(s.parse(e.StiIcon,a.decodeName(i[0])),s.parse(e.StiIconSetOperation,a.decodeName(i[1])),s.parse(e.StiIconSetValueType,a.decodeName(i[2])),a.decodeName(i[3]).toNumber())},u.prototype.loadFromXml=function(i){for(var r=0;r<i.childNodes.length;r++){var n=i.childNodes[r];if("value"==n.nodeName){var o=n.textContent,u=!1;o.startsWith("BreakIfTrue,")&&(u=!0,o=o.replaceAll("BreakIfTrue,",""));var c=o.split(",");if("DataBar"==c[0]){var p=new e.StiDataBarCondition(a.decodeName(c[1]),s.parse(e.StiBrushType,a.decodeName(c[2])),l.convertStringToColor(c[3]),l.convertStringToColor(c[4]),"true"==c[5].toLower(),l.convertStringToColor(c[6]),l.convertStringToColor(c[7]),s.parse(e.StiDataBarDirection,a.decodeName(c[8])),s.parse(e.StiMinimumType,a.decodeName(c[9])),c[10].toNumber(),s.parse(e.StiMaximumType,a.decodeName(c[11])),c[12].toNumber());this.list.add(p);continue}if("ColorScale"==c[0]){var p=new e.StiColorScaleCondition(a.decodeName(c[1]),s.parse(e.StiColorScaleType,a.decodeName(c[2])),l.convertStringToColor(c[3]),l.convertStringToColor(c[4]),l.convertStringToColor(c[5]),s.parse(e.StiMinimumType,a.decodeName(c[6])),c[7].toNumber(),s.parse(e.StiMidType,a.decodeName(c[8])),c[9].toNumber(),s.parse(e.StiMaximumType,a.decodeName(c[10])),c[11].toNumber());this.list.add(p);continue}if("IconSet"==c[0]){var p=new e.StiIconSetCondition(a.decodeName(c[1]),s.parse(e.StiIconSet,a.decodeName(c[2])),s.parse(t.System.Drawing.ContentAlignment,a.decodeName(c[3])),this.convertIconSetItemFromString(a.decodeName(c[4])),this.convertIconSetItemFromString(a.decodeName(c[5])),this.convertIconSetItemFromString(a.decodeName(c[6])),this.convertIconSetItemFromString(a.decodeName(c[7])),this.convertIconSetItemFromString(a.decodeName(c[8])));this.list.add(p);continue}if(n.textContent.startsWith("Multi<"),5==c.length){var p=new e.StiCondition(e.StiFilterItem.Value,String.empty,e.StiFilterCondition.EqualTo,String.empty,String.empty,e.StiFilterDataType.String,a.decodeName(c[0]),l.convertStringToColor(c[1]),l.convertStringToColor(c[2]),t.System.Convert.toFont(a.decodeName(c[3])),"true"==c[4].toLower());this.list.add(p);continue}if(6==c.length){var p=new e.StiCondition(e.StiFilterItem.Value,String.empty,e.StiFilterCondition.EqualTo,String.empty,String.empty,e.StiFilterDataType.String,a.decodeName(c[0]),l.convertStringToColor(c[1]),l.convertStringToColor(c[2]),t.System.Convert.toFont(a.decodeName(c[3])),"true"==c[4].toLower(),"true"==c[5].toLower(),String.empty);this.list.add(p);continue}if(7==c.length){var p=new e.StiCondition(e.StiFilterItem.Value,String.empty,e.StiFilterCondition.EqualTo,String.empty,String.empty,e.StiFilterDataType.String,a.decodeName(c[0]),l.convertStringToColor(c[1]),l.convertStringToColor(c[2]),t.System.Convert.toFont(a.decodeName(c[3])),"true"==c[4].toLower(),"true"==c[5].toLower(),a.decodeName(c[6]));this.list.add(p);continue}if(9==c.length&&this.isBorderSides(c[8])){var p=new e.StiCondition(e.StiFilterItem.Expression,String.empty,e.StiFilterCondition.EqualTo,String.empty,String.empty,e.StiFilterDataType.String,a.decodeName(c[0]),l.convertStringToColor(c[1]),l.convertStringToColor(c[2]),t.System.Convert.toFont(a.decodeName(c[3])),"true"==c[4].toLower(),"true"==c[5].toLower(),a.decodeName(c[6]),a.decodeName(c[7]),s.parse(e.StiConditionBorderSides,a.decodeName(c[8])));p.breakIfTrue=u,this.list.add(p);continue}if(10==c.length&&this.isBorderSides(c[8])){var p=new e.StiCondition(e.StiFilterItem.Expression,String.empty,e.StiFilterCondition.EqualTo,String.empty,String.empty,e.StiFilterDataType.String,a.decodeName(c[0]),l.convertStringToColor(c[1]),l.convertStringToColor(c[2]),t.System.Convert.toFont(a.decodeName(c[3])),"true"==c[4].toLower(),"true"==c[5].toLower(),a.decodeName(c[6]),a.decodeName(c[7]),s.parse(e.StiConditionBorderSides,a.decodeName(c[8])),s.parse(e.StiConditionPermissions,a.decodeName(c[9])));p.breakIfTrue=u,this.list.add(p);continue}var h=c[1];if("GreaterThen"==h&&(h="GreaterThan"),"GreaterThenOrEqualTo"==h&&(h="GreaterThanOrEqualTo"),"LessThen"==h&&(h="LessThan"),"LessThenOrEqualTo"==h&&(h="LessThanOrEqualTo"),9==c.length){var p=new e.StiCondition(e.StiFilterItem.Value,a.decodeName(c[0]),s.parse(e.StiFilterCondition,h),a.decodeName(c[2]),a.decodeName(c[3]),s.parse(e.StiFilterDataType,c[4]),String.empty,l.convertStringToColor(c[5]),l.convertStringToColor(c[6]),t.System.Convert.toFont(a.decodeName(c[7])),"true"==c[8].toLower());p.breakIfTrue=u,this.list.add(p);continue}if(11==c.length){var p=new e.StiCondition(e.StiFilterItem.Value,a.decodeName(c[0]),s.parse(e.StiFilterCondition,h),a.decodeName(c[2]),a.decodeName(c[3]),s.parse(e.StiFilterDataType,c[4]),String.empty,l.convertStringToColor(c[5]),l.convertStringToColor(c[6]),t.System.Convert.toFont(a.decodeName(c[7])),"true"==c[8].toLower(),"true"==c[9].toLower(),a.decodeName(c[10]));p.breakIfTrue=u,this.list.add(p);continue}if(13==c.length){var p=new e.StiCondition(e.StiFilterItem.Value,a.decodeName(c[0]),s.parse(e.StiFilterCondition,h),a.decodeName(c[2]),a.decodeName(c[3]),s.parse(e.StiFilterDataType,c[4]),String.empty,l.convertStringToColor(c[5]),l.convertStringToColor(c[6]),t.System.Convert.toFont(a.decodeName(c[7])),"true"==c[8].toLower(),"true"==c[9].toLower(),a.decodeName(c[10]),a.decodeName(c[11]),s.parse(e.StiConditionBorderSides,a.decodeName(c[12])));p.breakIfTrue=u,this.list.add(p);continue}if(14==c.length){var p=new e.StiCondition(e.StiFilterItem.Value,a.decodeName(c[0]),s.parse(e.StiFilterCondition,h),a.decodeName(c[2]),a.decodeName(c[3]),s.parse(e.StiFilterDataType,c[4]),String.empty,l.convertStringToColor(c[5]),l.convertStringToColor(c[6]),t.System.Convert.toFont(a.decodeName(c[7])),"true"==c[8].toLower(),"true"==c[9].toLower(),a.decodeName(c[10]),a.decodeName(c[11]),s.parse(e.StiConditionBorderSides,a.decodeName(c[12])),s.parse(e.StiConditionPermissions,a.decodeName(c[13])));p.breakIfTrue=u,this.list.add(p);continue}}}},u.prototype.clone=function(){for(var t=new u,e=0,i=this.list;e<i.length;e++){var r=i[e];t.add(r.clone())}return t},u.prototype.add=function(t){this.list.add(t)},u.prototype.addRange=function(t,e){void 0===e&&(e=!1);for(var i=0,r=t._list;i<r.length;i++){var n=r[i];if(e)if(0==this.list.count)this.add(n);else for(var o=0,a=this.list;o<a.length;o++){var s=a[o];if(!s.stiEquals(n)){this.add(n);break}}else this.add(n)}},u.prototype.contains=function(t){return this.list.contains(t)},u.prototype.indexOf=function(t){return this.list.indexOf(t)},u.prototype.insert=function(t,e){this.list.insert(t,e)},u.prototype.remove=function(t){this.list.remove(t)},u.prototype.getByIndex=function(t){return this.list[t]},u.prototype.setByIndex=function(t,e){this.list[t]=e},u}(i);e.StiConditionsCollection=u}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Base.Services.StiService,r=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._name=String.empty,e}return __extends(i,t),i.prototype.memberwiseClone=function(){var e=t.prototype.memberwiseClone.call(this);return e._name=this._name,e},Object.defineProperty(i.prototype,"name",{get:function(){return this.getName()},set:function(t){this.setName(t)},enumerable:!0,configurable:!0}),i.prototype.getName=function(){return this._name},i.prototype.setName=function(t){this._name=t},i.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiName])},Object.defineProperty(i.prototype,"localizedName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedCategory",{get:function(){return this.name},enumerable:!0,configurable:!0}),i}(i);e.StiBase=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.ICloneable,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.Base.StiJson,o=function(){function t(t){void 0===t&&(t=String.empty),this._script=String.empty,this.parent=null,"string"==typeof t?this._script=t:this.parent=t}return t.prototype.implements=function(){return t.ImplementsStiEvent||(t.ImplementsStiEvent=[i,r]),t.ImplementsStiEvent},t.prototype.saveToJsonObject=function(t){if(String.isNullOrEmpty(this.script))return null;var e=new n;return e.addPropertyStringNullOfEmpty("Script",this.script),e},t.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];"Script"==r.name&&(this.script=r.value.toString())}},t.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(t.prototype,"propertyName",{get:function(){return this.toString()+"Event"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"script",{get:function(){if(null!=this.parent)return this.parent.properties.get(this.propertyName,String.empty);return this._script},set:function(t){null!=this.parent?this.parent.properties.set(this.propertyName,t,String.empty):this._script=t},enumerable:!0,configurable:!0}),t.prototype.set=function(t,e){this.parent=t,this.script=e},t}();e.StiEvent=o}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetToolTip"},e}(t.StiEvent);t.StiGetToolTipEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetHyperlink"},e}(t.StiEvent);t.StiGetHyperlinkEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetTag"},e}(t.StiEvent);t.StiGetTagEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetBookmark"},e}(t.StiEvent);t.StiGetBookmarkEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"BeforePrint"},e}(t.StiEvent);t.StiBeforePrintEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"AfterPrint"},e}(t.StiEvent);t.StiAfterPrintEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetDrillDownReport"},e}(t.StiEvent);t.StiGetDrillDownReportEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Click"},e}(t.StiEvent);t.StiClickEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"DoubleClick"},e}(t.StiEvent);t.StiDoubleClickEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"MouseEnter"},e}(t.StiEvent);t.StiMouseEnterEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"MouseLeave"},e}(t.StiEvent);t.StiMouseLeaveEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiValueEventHandler=new i("sender: Object, e: StiValueEventArgs");var n=function(t){function e(e){void 0===e&&(e=null);var i=t.call(this)||this;return i.value=e,i}return __extends(e,t),e}(r);e.StiValueEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.EventHandler,n=t.Report.Events.StiValueEventHandler,o=t.Report.Events.StiGetToolTipEvent,a=t.Report.Events.StiGetHyperlinkEvent,s=t.Report.Events.StiGetTagEvent,l=t.Report.Events.StiGetBookmarkEvent,u=t.Report.Events.StiBeforePrintEvent,c=t.Report.Events.StiAfterPrintEvent,p=t.Report.Events.StiGetDrillDownReportEvent,h=t.Report.Events.StiClickEvent,g=t.Report.Events.StiDoubleClickEvent,m=t.Report.Events.StiMouseEnterEvent,d=t.Report.Events.StiMouseLeaveEvent,S=t.Report.Events.StiValueEventArgs,f=t.Report.Expressions.StiExpression,y=t.Base.Drawing.StiSolidBrush,b=t.Base.StiJsonSaveMode,C=t.Report.StiBase,v=t.System.Guid,I=t.Report.Components.StiConditionsCollection,A=t.System.Collections.Hashtable,w=t.Base.StiJson,T=t.Base.StiJsonReportObjectHelper,B=t.System.Drawing.Rectangle,R=t.System.Drawing.Size,P=t.Base.JsonReportObject.IStiJsonReportObject,F=t.System.ICloneable,x=t.System.Enum,D=t.Base.Drawing.StiGradientBrush,k=t.Base.Drawing.StiGlareBrush,E=t.Base.Drawing.StiHatchBrush,G=t.Base.Drawing.StiGlassBrush,_=function(){function t(t,e,r,n,o,a,s,l,u){this.bookmarkValue=null,this.toolTipValue=null,this.hyperlinkValue=null,this.tagValue=null,this.enabled=!0,this.highlightState=i.StiHighlightState.Hide,this.ignoreNamingRule=!1,this._dockStyle=i.StiDockStyle.None,this.printable=!0,this.bookmarkValue=t,this.toolTipValue=e,this.hyperlinkValue=r,this.tagValue=n,this.enabled=o,this.highlightState=a,this.ignoreNamingRule=s,this.dockStyle=l,this.printable=u}return t.prototype.implements=function(){return[F]},t.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(t.prototype,"dockStyle",{get:function(){return this.getDockStyle()},set:function(t){this.setDockStyle(t)},enumerable:!0,configurable:!0}),t.prototype.getDockStyle=function(){return this._dockStyle},t.prototype.setDockStyle=function(t){this._dockStyle=t},t}(),L=function(C){function F(t,e){void 0===t&&(t=B.empty),void 0===e&&(e=!1);var r=C.call(this)||this;return r._infographicsDisplayRectangle=new B(0,0,0,0),r._isSelected=!1,r._states=null,r._shiftMode=i.StiShiftMode.IncreasingSize,r._guid=null,r._printOn=i.StiPrintOnType.AllPages,r._canShrink=!1,r._canGrow=!1,r._growToHeight=!1,r._anchor=i.StiAnchorMode.Left|i.StiAnchorMode.Top,r._conditions=null,r._isRendered=!1,r.disableCheckWidthHeight=!1,r._alias="",r._componentPlacement=String.empty,r._drillDownParameters=null,r.lockOnResize=!0,e||r.construct(t),r}return __extends(F,C),F.prototype.implements=function(){return F.ImplementsStiComponent||(F.ImplementsStiComponent=C.prototype.implements.call(this).concat([i.IStiComponentGuid,i.IStiCanGrow,i.IStiCanShrink,i.IStiUnitConvert,i.IStiShift,i.IStiGrowToHeight,i.IStiAnchor,i.IStiConditions,i.IStiPrintOn,e.IStiInherited,e.IStiStateSaveRestore,P,i.IStiComponent])),F.ImplementsStiComponent},F.prototype.saveToJsonObject=function(t){var e=new w;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyEnum("ShiftMode",i.StiShiftMode,this.shiftMode,i.StiShiftMode.IncreasingSize),e.addPropertyStringNullOfEmpty("Guid",this.guid),e.addPropertyEnum("PrintOn",i.StiPrintOnType,this.printOn,i.StiPrintOnType.AllPages),e.addPropertyBool("CanShrink",this.canShrink),e.addPropertyBool("CanGrow",this.canGrow),e.addPropertyBool("GrowToHeight",this.growToHeight),e.addPropertyEnum("Anchor",i.StiAnchorMode,this.anchor,i.StiAnchorMode.Left|i.StiAnchorMode.Top),e.addPropertyBool("Inherited",this.inherited),e.addPropertyBool("Printable",this.printable,!0),e.addPropertyEnum("DockStyle",i.StiDockStyle,this.dockStyle,i.StiDockStyle.None),e.addPropertyStringNullOfEmpty("MinSize",T.Serialize.sizeD(this.minSize)),e.addPropertyStringNullOfEmpty("MaxSize",T.Serialize.sizeD(this.maxSize)),e.addPropertyStringNullOfEmpty("ClientRectangle",T.Serialize.rectangleD(this.clientRectangle)),e.addPropertyJObject("GetToolTipEvent",this.getToolTipEvent.saveToJsonObject(t)),e.addPropertyJObject("GetHyperlinkEvent",this.getHyperlinkEvent.saveToJsonObject(t)),e.addPropertyJObject("GetTagEvent",this.getTagEvent.saveToJsonObject(t)),e.addPropertyJObject("GetBookmarkEvent",this.getBookmarkEvent.saveToJsonObject(t)),e.addPropertyJObject("BeforePrintEvent",this.beforePrintEvent.saveToJsonObject(t)),e.addPropertyJObject("AfterPrintEvent",this.afterPrintEvent.saveToJsonObject(t)),e.addPropertyJObject("GetDrillDownReportEvent",this.getDrillDownReportEvent.saveToJsonObject(t)),e.addPropertyJObject("ClickEvent",this.clickEvent.saveToJsonObject(t)),e.addPropertyJObject("DoubleClickEvent",this.doubleClickEvent.saveToJsonObject(t)),e.addPropertyJObject("MouseEnterEvent",this.mouseEnterEvent.saveToJsonObject(t)),e.addPropertyJObject("MouseLeaveEvent",this.mouseLeaveEvent.saveToJsonObject(t)),e.addPropertyStringNullOfEmpty("Alias",this.alias),e.addPropertyEnum("Restrictions",i.StiRestrictions,this.restrictions,i.StiRestrictions.All),e.addPropertyStringNullOfEmpty("ComponentPlacement",this.componentPlacement),e.addPropertyStringNullOfEmpty("ComponentStyle",this.componentStyle),e.addPropertyBool("Locked",this.locked),e.addPropertyBool("Linked",this.linked),e.addPropertyBool("Enabled",this.enabled,!0),e.addPropertyBool("UseParentStyles",this.useParentStyles),t==b.Report&&(e.addPropertyJObject("Conditions",this.conditions.saveToJsonObject(t)),null!=this.interaction&&e.addPropertyJObject("Interaction",this.interaction.saveToJsonObject(t)),e.addPropertyJObject("Bookmark",new f(this.bookmark).saveToJsonObject(t)),e.addPropertyJObject("ToolTip",new f(this.toolTip).saveToJsonObject(t)),e.addPropertyJObject("Hyperlink",new f(this.hyperlink).saveToJsonObject(t)),e.addPropertyJObject("Tag",new f(this.tag).saveToJsonObject(t))),e},F.prototype.loadFromJsonObject=function(t){for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"Name":this.name=n.value;break;case"ShiftMode":this._shiftMode=x.parse(i.StiShiftMode,n.value);break;case"Guid":this._guid=n.value;break;case"PrintOn":this._printOn=x.parse(i.StiPrintOnType,n.value);break;case"CanShrink":this._canShrink=n.value.toBoolean();break;case"CanGrow":this._canGrow=n.value.toBoolean();break;case"GrowToHeight":this._growToHeight=n.value.toBoolean();break;case"Anchor":this._anchor=x.parse(i.StiAnchorMode,n.value.toString());break;case"Conditions":this.conditions.loadFromJsonObject(n.value);break;case"Inherited":this.inherited=n.value.toBoolean();break;case"Interaction":this.interaction=i.StiInteraction.loadInteractionFromJsonObject(n.value);break;case"Printable":this.printable=n.value.toBoolean();break;case"DockStyle":this.dockStyle=x.parse(i.StiDockStyle,n.value);break;case"MinSize":this.minSize=T.Deserialize.sizeD(n.value);break;case"MaxSize":this.maxSize=T.Deserialize.sizeD(n.value);break;case"ClientRectangle":this.clientRectangle=T.Deserialize.rectangleD(n.value);break;case"GetToolTipEvent":var S=new o;S.loadFromJsonObject(n.value),this.getToolTipEvent=S;break;case"GetHyperlinkEvent":var S=new a;S.loadFromJsonObject(n.value),this.getHyperlinkEvent=S;break;case"GetTagEvent":var S=new s;S.loadFromJsonObject(n.value),this.getTagEvent=S;break;case"GetBookmarkEvent":var S=new l;S.loadFromJsonObject(n.value),this.getBookmarkEvent=S;break;case"BeforePrintEvent":var S=new u;S.loadFromJsonObject(n.value),this.beforePrintEvent=S;break;case"AfterPrintEvent":var S=new c;S.loadFromJsonObject(n.value),this.afterPrintEvent=S;break;case"GetDrillDownReportEvent":var S=new p;S.loadFromJsonObject(n.value),this.getDrillDownReportEvent=S;break;case"ClickEvent":var S=new h;S.loadFromJsonObject(n.value),this.clickEvent=S;break;case"DoubleClickEvent":var S=new g;S.loadFromJsonObject(n.value),this.doubleClickEvent=S;break;case"MouseEnterEvent":var S=new m;S.loadFromJsonObject(n.value),this.mouseEnterEvent=S;break;case"MouseLeaveEvent":var S=new d;S.loadFromJsonObject(n.value),this.mouseLeaveEvent=S;break;case"Bookmark":var y=new f;y.loadFromJsonObject(n.value),this.bookmark=y.value;break;case"ToolTip":var y=new f;y.loadFromJsonObject(n.value),this.toolTip=y.value;break;case"Hyperlink":var y=new f;y.loadFromJsonObject(n.value),this.hyperlink=y.value;break;case"Tag":var y=new f;y.loadFromJsonObject(n.value),this.tag=y.value;break;case"Alias":this._alias=n.value;break;case"Restrictions":this.restrictions=x.parse(i.StiRestrictions,n.value);break;case"ComponentPlacement":this._componentPlacement=n.value;break;case"ComponentStyle":this.componentStyle=n.value;break;case"Locked":this.locked=n.value.toBoolean();break;case"Linked":this.linked=n.value.toBoolean();break;case"Enabled":this.enabled=n.value.toBoolean();break;case"UseParentStyles":this.useParentStyles=n.value.toBoolean();break}}},F.prototype.loadRectangleDFromXml=function(t){var e=t.split(",");return new B(e[0].toNumber(),e[1].toNumber(),e[2].toNumber(),e[3].toNumber())},F.prototype.loadFromXml=function(t,e){for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if("#text"==n.nodeName)continue;switch(n.nodeName){case"Name":this.name=n.textContent;break;case"ShiftMode":this._shiftMode=x.parse(i.StiShiftMode,n.textContent);break;case"Guid":this._guid=n.textContent;break;case"PrintOn":this._printOn=x.parse(i.StiPrintOnType,n.textContent);break;case"CanShrink":this._canShrink=n.textContent.toBoolean();break;case"CanGrow":this._canGrow=n.textContent.toBoolean();break;case"GrowToHeight":this._growToHeight=n.textContent.toBoolean();break;case"Anchor":this._anchor=x.parse(i.StiAnchorMode,n.textContent.toString());break;case"Conditions":this.conditions.loadFromXml(n);break;case"Inherited":this.inherited=n.textContent.toBoolean();break;case"Interaction":this.interaction=i.StiInteraction.loadInteractionFromXml(n);break;case"Printable":this.printable=n.textContent.toBoolean();break;case"DockStyle":this.dockStyle=x.parse(i.StiDockStyle,n.textContent);break;case"MinSize":this.minSize=R.convertFromXml(n.textContent);break;case"MaxSize":this.maxSize=R.convertFromXml(n.textContent);break;case"ClientRectangle":case"rc":this.clientRectangle=this.loadRectangleDFromXml(n.textContent);break;case"GetToolTipEvent":break;case"GetHyperlinkEvent":break;case"GetTagEvent":break;case"GetBookmarkEvent":break;case"BeforePrintEvent":var o=new u;this.beforePrintEvent=o,o.script=n.textContent;break;case"AfterPrintEvent":break;case"GetDrillDownReportEvent":break;case"ClickEvent":break;case"DoubleClickEvent":break;case"MouseEnterEvent":break;case"MouseLeaveEvent":break;case"Bookmark":this.bookmark=n.textContent;break;case"ToolTip":this.toolTip=n.textContent;break;case"Hyperlink":this.hyperlink=n.textContent;break;case"Tag":this.tag=n.textContent;break;case"Alias":this._alias=n.textContent;break;case"Restrictions":this.restrictions=x.parse(i.StiRestrictions,n.textContent);break;case"ComponentPlacement":case"pl":this._componentPlacement=n.textContent;break;case"ComponentStyle":this.componentStyle=n.textContent;break;case"Locked":this.locked=n.textContent.toBoolean();break;case"Linked":this.linked=n.textContent.toBoolean();break;case"Enabled":this.enabled=n.textContent.toBoolean();break;case"UseParentStyles":this.useParentStyles=n.textContent.toBoolean();break}}},Object.defineProperty(F.prototype,"componentId",{get:function(){return e.StiComponentId.StiComponent},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"infographicsDisplayRectangle",{get:function(){return this._infographicsDisplayRectangle},set:function(t){this._infographicsDisplayRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isSelected",{get:function(){return this._isSelected},set:function(t){this._isSelected=t},enumerable:!0,configurable:!0}),F.prototype.select=function(){this.isSelected=!0},F.prototype.invert=function(){this.isSelected=!this.isSelected},F.prototype.reset=function(){this._isSelected=!1},F.prototype.saveState=function(t){},F.prototype.restoreState=function(t){},Object.defineProperty(F.prototype,"states",{get:function(){return this.getStates()},enumerable:!0,configurable:!0}),F.prototype.getStates=function(){return null==this._states&&(this._states=new e.StiStatesManager),this._states},F.prototype.clearAllStates=function(){},Object.defineProperty(F.prototype,"shift",{get:function(){return this.getShift()},set:function(t){this.shiftMode=i.StiShiftMode.IncreasingSize},enumerable:!0,configurable:!0}),F.prototype.getShift=function(){return this.shiftMode==i.StiShiftMode.IncreasingSize},Object.defineProperty(F.prototype,"shiftMode",{get:function(){return this._shiftMode},set:function(t){this._shiftMode=t,t!=i.StiShiftMode.None&&(this.anchor=i.StiAnchorMode.Left|i.StiAnchorMode.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"guid",{get:function(){return this._guid},set:function(t){this._guid=t},enumerable:!0,configurable:!0}),F.prototype.newGuid=function(){this.guid=v.newGuid().toString().replaceAll("-","")},Object.defineProperty(F.prototype,"printOn",{get:function(){return this._printOn},set:function(t){this._printOn=t},enumerable:!0,configurable:!0}),F.prototype.clone=function(t,e){void 0===t&&(t=!0);var i=C.prototype.clone.call(this);return null!=this._conditions?i._conditions=this._conditions.clone():i._conditions=null,null!=this._interaction?i._interaction=this._interaction.clone():i._interaction=null,null!=i._interaction&&(i._interaction.parentComponent=i),t&&(i.properties=this.properties.clone()),null!=this.bits&&(i.bits=this.bits.clone()),i},F.prototype.memberwiseClone=function(){var t=C.prototype.memberwiseClone.call(this);return t._alias=this._alias,t._canGrow=this._canGrow,t._canShrink=this._canShrink,t._componentPlacement=this._componentPlacement,t._conditions=this._conditions,t._currentBookmark=this._currentBookmark,t._events=this._events,t._growToHeight=this._growToHeight,t._guid=this._guid,t._height=this._height,t._interaction=this._interaction,t._isRendered=this._isRendered,t._isSelected=this._isSelected,t._left=this._left,t._page=this._page,t._parent=this._parent,t._parentBookmark=this._parentBookmark,t._printOn=this._printOn,t._shiftMode=this._shiftMode,t._states=this._states,t._top=this._top,t._width=this._width,t},F.prototype.convert=function(t,e,i){void 0===i&&(i=!1),this.disableCheckWidthHeight=!0;var r=this.right,n=this.bottom;this.left=e.convertFromHInches(t.convertToHInches(this.left)),this.top=e.convertFromHInches(t.convertToHInches(this.top)),this.width=Math.round(e.convertFromHInches(t.convertToHInches(r)),2)-this.left,this.height=Math.round(e.convertFromHInches(t.convertToHInches(n)),2)-this.top,this.disableCheckWidthHeight=!1,i||(this.minSize=e.convertFromHInches(t.convertToHInches(this.minSize)),this.maxSize=e.convertFromHInches(t.convertToHInches(this.maxSize)))},Object.defineProperty(F.prototype,"canShrink",{get:function(){return this.getCanShrink()},set:function(t){this._canShrink=t},enumerable:!0,configurable:!0}),F.prototype.getCanShrink=function(){return this._canShrink},Object.defineProperty(F.prototype,"canGrow",{get:function(){return this.getCanGrow()},set:function(t){this.setCanGrow(t)},enumerable:!0,configurable:!0}),F.prototype.getCanGrow=function(){return this._canGrow},F.prototype.setCanGrow=function(t){this._canGrow=t},Object.defineProperty(F.prototype,"growToHeight",{get:function(){return this.getGrowToHeight()},set:function(t){this._growToHeight=t,t&&(this.anchor=i.StiAnchorMode.Left|i.StiAnchorMode.Top)},enumerable:!0,configurable:!0}),F.prototype.getGrowToHeight=function(){return this._growToHeight},Object.defineProperty(F.prototype,"anchor",{get:function(){return this._anchor},set:function(t){this._anchor=t,this._anchor!=(i.StiAnchorMode.Left|i.StiAnchorMode.Top)&&(this.growToHeight=!1,this.shiftMode=i.StiShiftMode.None)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"conditions",{get:function(){return this.getConditions()},set:function(t){this.setConditions(t)},enumerable:!0,configurable:!0}),F.prototype.getConditions=function(){return null==this._conditions&&(this._conditions=new I),this._conditions},F.prototype.setConditions=function(t){this._conditions=t},Object.defineProperty(F.prototype,"inherited",{get:function(){return this.properties.getBool(F.propertyInherited,!1)},set:function(t){this.properties.setBool(F.propertyInherited,t,!1)},enumerable:!0,configurable:!0}),F.prototype.getActualSize=function(){return new R(this.width,this.height)},F.prototype.getReport=function(){return this.report},Object.defineProperty(F.prototype,"report",{get:function(){if(null!=this.page)return this.page.report;return null},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"interaction",{get:function(){return this._interaction},set:function(t){this._interaction!=t&&(this._interaction=t,null!=t&&(this._interaction.parentComponent=this))},enumerable:!0,configurable:!0}),F.prototype.doBookmark=function(){this.doGetBookmark()},F.prototype.doGetBookmark=function(){var i=!0,r=x.getName(e.StiCalculationMode,this.report.calculationMode);if(null!=this.report&&(i=this.report.calculationMode==e.StiCalculationMode.Compilation),i&&null!=this.events.get(F.eventGetBookmark)||!i&&null==this.bookmarkValue&&this.bookmark.length>0){var n=new S;if(i)this.invokeGetBookmark(this,n);else{var o=t.Report.Engine.StiParser.StiParser.parseTextValue(this.bookmark,this);n.value=this.report.toString2(o)}if(n.value.sti_is(String)&&n.value.length>0){this.newGuid();var a=n.value;if(a.length>2&&"%"==a[0]){var s=a.substr(0,1),l=a[1];a=a.substr(2);for(var u=a.split(l),c=this.report.bookmark,p=0;p<u.length;p++){var h=u[p];s+=l+h,c=t.Report.Engine.StiBookmarksHelper.getBookmark(c,h),p==u.length-1&&(c.componentGuid=this.guid)}this.currentBookmark=c}else this.currentBookmark=t.Report.Engine.StiBookmarksHelper.createBookmark(a,this.guid),null!=this.parentBookmark&&this.parentBookmark.bookmarks.add(this.currentBookmark)}else this.currentBookmark=this.parentBookmark}else this.currentBookmark=this.parentBookmark},Object.defineProperty(F.prototype,"printable",{get:function(){return null==this.bits||this.bits.printable},set:function(t){if(t&&null==this.bits)return;null!=this.bits?this.bits.printable=t:this.bits=new _(this.bookmarkValue,this.toolTipValue,this.hyperlinkValue,this.tagValue,this.enabled,this.highlightState,this.ignoreNamingRule,this.dockStyle,t)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isRendered",{get:function(){return this._isRendered},set:function(t){this._isRendered=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"renderedCount",{get:function(){return this.properties.getNumber(F.propertyRenderedCount,0)},set:function(t){this.properties.setNumber(F.propertyRenderedCount,t,0)},enumerable:!0,configurable:!0}),F.prototype.allowPrintOn=function(){if(this.printOn==i.StiPrintOnType.AllPages)return!0;if(null!=this.report){var t=this.report.pageNumber,r=this.report.totalPageCount;if(!StiOptions.Engine.useAdvancedPrint){if((this.printOn&i.StiPrintOnType.ExceptFirstPage)>0&&1==t)return!1;if(this.printOn==i.StiPrintOnType.OnlyFirstPage&&t>1)return!1;return!0}if((this.page.segmentPerWidth>1||this.page.segmentPerHeight>1)&&(t+=this.page.segmentPerWidth*this.page.segmentPerHeight-1),this.report.reportPass==e.StiReportPass.First){if((this.printOn&i.StiPrintOnType.OnlyLastPage)>0)return!1;if((this.printOn&i.StiPrintOnType.ExceptLastPage)>0)return!0}if((this.printOn&i.StiPrintOnType.ExceptFirstPage)>0&&1==t)return!1;if(this.printOn==i.StiPrintOnType.OnlyFirstAndLastPage)return!(t>1&&t<r);if((this.printOn&i.StiPrintOnType.OnlyFirstPage)>0&&t>1)return!1;if((this.printOn&i.StiPrintOnType.OnlyLastPage)>0&&t<r)return!1;if((this.printOn&i.StiPrintOnType.ExceptLastPage)>0&&t==r)return!1;return!0}return!0},Object.defineProperty(F.prototype,"isEnabled",{get:function(){return this.enabled&&this.allowPrintOn()},enumerable:!0,configurable:!0}),F.prototype.prepare=function(){t.Report.Engine.StiBuilder.getBuilder(this.getStiType()).prepare(this)},F.prototype.unPrepare=function(){t.Report.Engine.StiBuilder.getBuilder(this.getStiType()).unPrepare(this)},F.prototype.setReportVariables=function(){t.Report.Engine.StiBuilder.getBuilder(this.getStiType()).setReportVariables(this)},F.prototype.internalRender=function(){return t.Report.Engine.StiBuilder.getBuilder(this.getStiType()).internalRender(this)},F.prototype.render=function(){return t.Report.Engine.StiBuilder.getBuilder(this.getStiType()).render(this)},F.prototype.paint=function(t){},Object.defineProperty(F.prototype,"dockStyle",{get:function(){return this.getDockStyle()},set:function(t){if(t==i.StiDockStyle.None&&null==this.bits)return;null!=this.bits?this.bits.dockStyle=t:this.bits=new _(this.bookmarkValue,this.toolTipValue,this.hyperlinkValue,this.tagValue,this.enabled,this.highlightState,this.ignoreNamingRule,t,this.printable)},enumerable:!0,configurable:!0}),F.prototype.getDockStyle=function(){return null==this.bits?i.StiDockStyle.None:this.bits.dockStyle},Object.defineProperty(F.prototype,"isAutomaticDock",{get:function(){return!1},enumerable:!0,configurable:!0}),F.prototype.getDockRegion=function(t,e){if(void 0===e&&(e=!0),null!=t){var r=t.clientRectangle,n=t;this.componentType!=i.StiComponentType.Static&&null!=n&&n.columns>1&&e&&(r.width=n.getColumnWidth());var o=t;this.componentType!=i.StiComponentType.Static&&null!=o&&o.columns>1&&e&&(r.width=o.getColumnWidth()),t.isSelected&&(r=F.doOffsetRect(t,r,t.page.offsetRectangle)),r.x=0,r.y=0;for(var a=t,s=0,l=a.components.list;s<l.length;s++){var u=l[s];if(u.dockable&&(this.isDesigning||u.enabled)){if(u==this)break;var c=u.displayRectangle;switch(u.dockStyle){case i.StiDockStyle.Left:r.x+=c.width,r.width-=c.width;break;case i.StiDockStyle.Right:r.width-=c.width;break;case i.StiDockStyle.Top:r.y+=c.height,r.height-=c.height;break;case i.StiDockStyle.Bottom:r.height-=c.height;break}}}return r}return this.clientRectangle},F.prototype.dockToContainer=function(){this.dockStyle!=i.StiDockStyle.None&&this.dockable&&(this.isDesigning||this.enabled)&&(this.isCross?this.clientRectangle=this.dockToContainer2(this.clientRectangle):this.displayRectangle=this.dockToContainer2(this.displayRectangle));var t=this.sti_as(i.StiContainer);if(null!=t)for(var e=0,r=t.components.list;e<r.length;e++){var n=r[e];n.dockToContainer()}},F.prototype.dockToContainer2=function(t){if(null!=this.parent&&this.dockStyle!=i.StiDockStyle.None&&this.dockable){var e=void 0;switch(e=this.getDockRegion(this.parent),1e11==this.parent.height&&this.dockStyle!=i.StiDockStyle.Top&&(e.y=0,e.height=t.height),this.dockStyle){case i.StiDockStyle.Left:t.x=e.x,t.y=e.y,t.height=e.height;break;case i.StiDockStyle.Right:t.x=e.right-t.width,t.y=e.y,t.height=e.height;break;case i.StiDockStyle.Top:t.x=e.x,t.y=e.y,t.width=e.width;break;case i.StiDockStyle.Bottom:t.x=e.x,t.y=e.bottom-t.height,t.width=e.width;break;case i.StiDockStyle.Fill:t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height;break}}return t},F.prototype.checkWidth=function(t){return this.disableCheckWidthHeight||(0!=this.minSize.width&&(t=Math.max(this.minSize.width,t)),0!=this.maxSize.width&&(t=Math.min(this.maxSize.width,t))),t},F.prototype.checkHeight=function(t){return this.disableCheckWidthHeight||(0!=this.minSize.height&&(t=Math.max(this.minSize.height,t)),0!=this.maxSize.height&&(t=Math.min(this.maxSize.height,t))),t},Object.defineProperty(F.prototype,"minSize",{get:function(){return this.getMinSize()},set:function(t){this.setMinSize(t)},enumerable:!0,configurable:!0}),F.prototype.getMinSize=function(){return this.properties.get(F.propertyMinSize,R.empty)},F.prototype.setMinSize=function(t){var e=this.minSize;e.width==t.width&&e.height==t.height||(this.properties.set(F.propertyMinSize,t,R.empty),this._width=this.checkWidth(this._width),this._height=this.checkHeight(this._height))},Object.defineProperty(F.prototype,"maxSize",{get:function(){return this.getMaxSize()},set:function(t){this.setMaxSize(t)},enumerable:!0,configurable:!0}),F.prototype.getMaxSize=function(){return this.properties.get(F.propertyMaxSize,R.empty)},F.prototype.setMaxSize=function(t){var e=this.maxSize;e.width==t.width&&e.height==t.height||(this.properties.set(F.propertyMaxSize,t,R.empty),this._width=this.checkWidth(this._width),this._height=this.checkHeight(this._height))},Object.defineProperty(F.prototype,"left",{get:function(){return this.getLeft()},set:function(t){this.setLeft(t)},enumerable:!0,configurable:!0}),F.prototype.getLeft=function(){return this._left},F.prototype.setLeft=function(t){this._left=Math.round(t,2)},Object.defineProperty(F.prototype,"top",{get:function(){return this.getTop()},set:function(t){this.setTop(t)},enumerable:!0,configurable:!0}),F.prototype.getTop=function(){return this._top},F.prototype.setTop=function(t){this._top=Math.round(t,2)},Object.defineProperty(F.prototype,"width",{get:function(){return this.getWidth()},set:function(t){this.setWidth(t)},enumerable:!0,configurable:!0}),F.prototype.getWidth=function(){return this._width},F.prototype.setWidth=function(t){var e=this._width;this._width=this.checkWidth(Math.round(t,2)),this._width!=e&&this.invokeOnResizeComponent(new R(e,this._height),new R(this._width,this._height))},Object.defineProperty(F.prototype,"height",{get:function(){return this.getHeight()},set:function(t){this.setHeight(t)},enumerable:!0,configurable:!0}),F.prototype.getHeight=function(){return this._height},F.prototype.setHeight=function(t){var e=this._height;this._height=this.checkHeight(Math.round(t,2)),this._height!=e&&this.invokeOnResizeComponent(new R(this._width,e),new R(this._width,this._height))},Object.defineProperty(F.prototype,"right",{get:function(){return this.left+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!0,configurable:!0}),F.prototype.getBottom=function(){return this.bottom},Object.defineProperty(F.prototype,"clientRectangle",{get:function(){return new B(this.left,this.top,this.width,this.height)},set:function(t){this.setClientRectangle(t)},enumerable:!0,configurable:!0}),F.prototype.setClientRectangle=function(t){var e=this._width,i=this._height;this._left=Math.round(t.left,2),this._top=Math.round(t.top,2),this._width=this.checkWidth(Math.round(t.width,2)),this._height=this.checkHeight(Math.round(t.height,2)),this._width==e&&this._height==i||this.invokeOnResizeComponent(new R(e,i),new R(this._width,this._height))},Object.defineProperty(F.prototype,"displayRectangle",{get:function(){return this.getDisplayRectangle()},set:function(t){this.setDisplayRectangle(t)},enumerable:!0,configurable:!0}),F.prototype.getDisplayRectangle=function(){return new B(this.left,this.top,this.width,this.height)},F.prototype.setDisplayRectangle=function(t){var e=this._width,i=this._height;this._left=Math.round(t.left,2),this._top=Math.round(t.top,2),this._width=this.checkWidth(Math.round(t.width,2)),this._height=this.checkHeight(Math.round(t.height,2)),this._width==e&&this._height==i||this.invokeOnResizeComponent(new R(e,i),new R(this._width,this._height))},F.prototype.setDirectDisplayRectangle=function(t){var e=this._width,i=this._height;this._left=t.left,this._top=t.top,this._width=t.width,this._height=t.height,this._width==e&&this._height==i||this.invokeOnResizeComponent(new R(e,i),new R(this._width,this._height))},Object.defineProperty(F.prototype,"selectRectangle",{get:function(){return this.displayRectangle},set:function(t){this.displayRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"defaultClientRectangle",{get:function(){return new B(0,0,60,20)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"parentBookmark",{get:function(){return this._parentBookmark},set:function(t){this._parentBookmark=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"currentBookmark",{get:function(){return this._currentBookmark},set:function(t){this._currentBookmark=t},enumerable:!0,configurable:!0}),F.prototype.invokeEvents=function(){try{var i=t.Report.Engine.StiParser.StiParser,r=!0;if(null!=this.report&&(r=this.report.calculationMode==e.StiCalculationMode.Compilation),r){if(null!=this.events.get(F.eventGetBookmark)&&null==this.bookmarkValue){var n=new S;this.invokeGetBookmark(this,n),this.bookmarkValue=n.value}}else{if(null==this.bookmarkValue&&this.bookmark.length>0){var o=i.parseTextValue(this.bookmark,this);this.bookmarkValue=this.report.toString2(o)}if(null!=this.events.get(F.eventGetBookmark)&&null==this.bookmarkValue){var n=new S;this.invokeGetBookmark(this,n),this.bookmarkValue=n.value}}if(r){if(null!=this.events.get(F.eventGetTag)&&null==this.tagValue){var a=new S;this.invokeGetTag(this,a),this.tagValue=a.value}}else{if(null==this.tagValue&&this.tag.length>0){var o=i.parseTextValue(this.tag,this);this.tagValue=this.report.toString2(o)}if(null!=this.events.get(F.eventGetTag)&&null==this.tagValue){var a=new S;this.invokeGetTag(this,a),this.tagValue=a.value}}if(r){if(null!=this.events.get(F.eventGetToolTip)&&null==this.toolTipValue){var s=new S;this.invokeGetToolTip(this,s),this.toolTipValue=s.value}}else{if(null==this.toolTipValue&&this.toolTip.length>0){var o=i.parseTextValue(this.toolTip,this);this.toolTipValue=this.report.toString2(o)}if(null!=this.events.get(F.eventGetToolTip)&&null==this.toolTipValue){var s=new S;this.invokeGetToolTip(this,s),this.toolTipValue=s.value}}if(r){if(null!=this.events.get(F.eventGetHyperlink)&&null==this.hyperlinkValue){var l=new S;this.invokeGetHyperlink(this,l),this.hyperlinkValue=l.value}}else{if(null==this.hyperlinkValue&&this.hyperlink.length>0){var o=i.parseTextValue(this.hyperlink,this);this.hyperlinkValue=this.report.toString2(o)}if(null!=this.events.get(F.eventGetHyperlink)&&null==this.hyperlinkValue){var l=new S;this.invokeGetHyperlink(this,l),this.hyperlinkValue=l.value}}}catch(e){var u=String.stiFormat("'{0}'.Events error: {1}",this.name,e.message);t.System.StiError.showError(u,!1),this.report.writeToReportRenderingMessages(u)}},Object.defineProperty(F.prototype,"isGetToolTipHandlerEmpty",{get:function(){return null==this.events.get(F.eventGetToolTip)},enumerable:!0,configurable:!0}),F.prototype.onGetToolTip=function(){},F.prototype.invokeGetToolTip=function(t,e){this.onGetToolTip();var i=this.events.get(F.eventGetToolTip);if(null!=i)try{i(t,e)}catch(e){}},Object.defineProperty(F.prototype,"getToolTipEvent",{get:function(){return new o(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(F.eventGetToolTip,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isGetHyperlinkHandlerEmpty",{get:function(){return null==this.events.get(F.eventGetHyperlink)},enumerable:!0,configurable:!0}),F.prototype.onGetHyperlink=function(t){},F.prototype.invokeGetHyperlink=function(t,e){try{this.onGetHyperlink(e);var i=this.events.get(F.eventGetHyperlink);null!=i&&i(t,e)}catch(t){}},Object.defineProperty(F.prototype,"getHyperlinkEvent",{get:function(){return new a(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(F.eventGetHyperlink,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isGetTagHandlerEmpty",{get:function(){return null==this.events.get(F.eventGetTag)},enumerable:!0,configurable:!0}),F.prototype.onGetTag=function(t){},F.prototype.invokeGetTag=function(t,e){try{this.onGetTag(e);var i=this.events.get(F.eventGetTag);null!=i&&i(t,e)}catch(t){}},Object.defineProperty(F.prototype,"getTagEvent",{get:function(){return new s(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(F.eventGetTag,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isGetBookmarkHandlerEmpty",{get:function(){return null==this.events.get(F.eventGetBookmark)},enumerable:!0,configurable:!0}),F.prototype.onGetBookmark=function(){},F.prototype.invokeGetBookmark=function(t,e){this.onGetBookmark();var i=this.events.get(F.eventGetBookmark);null!=i&&i(t)},Object.defineProperty(F.prototype,"getBookmarkEvent",{get:function(){return new l(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(F.eventGetBookmark,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),F.prototype.onBeforePrint=function(t){},F.prototype.invokeBeforePrint=function(i,r){try{this.onBeforePrint(r);var n=!0;if(null!=this.report&&(n=this.report.calculationMode==e.StiCalculationMode.Compilation),n){var o=this.events.get(F.eventBeforePrint);if(null!=o)try{o(i,r)}catch(r){}}else{var o=this.events.get(F.eventBeforePrint);if(null!=o)try{o(i,r)}catch(r){}if(null!=this.report&&null!=this.report.engine){var a=this.report.engine.parserConversionStore.get("*StiConditionExpression*"+this.name);null==a||this.sti_is(t.Report.CrossTab.StiCrossCell)||this.applyConditions(i,a)}if(null!=this.interaction){var s=i;s.drillDownParameters=[],this.interaction.drillDownParameter1.isDefault()||s.drillDownParameters.add({name:this.interaction.drillDownParameter1.name,value:t.Report.Engine.StiParser.StiParser.parseTextValue("{"+this.interaction.drillDownParameter1.expression.value+"}",this,i)}),this.interaction.drillDownParameter2.isDefault()||s.drillDownParameters.add({name:this.interaction.drillDownParameter2.name,value:t.Report.Engine.StiParser.StiParser.parseTextValue("{"+this.interaction.drillDownParameter2.expression.value+"}",this,i)}),this.interaction.drillDownParameter3.isDefault()||s.drillDownParameters.add({name:this.interaction.drillDownParameter3.name,value:t.Report.Engine.StiParser.StiParser.parseTextValue("{"+this.interaction.drillDownParameter3.expression.value+"}",this,i)}),this.interaction.drillDownParameter4.isDefault()||s.drillDownParameters.add({name:this.interaction.drillDownParameter4.name,value:t.Report.Engine.StiParser.StiParser.parseTextValue("{"+this.interaction.drillDownParameter4.expression.value+"}",this,i)}),this.interaction.drillDownParameter5.isDefault()||s.drillDownParameters.add({name:this.interaction.drillDownParameter5.name,value:t.Report.Engine.StiParser.StiParser.parseTextValue("{"+this.interaction.drillDownParameter5.expression.value+"}",this,i)})}}}catch(r){var l=String.stiFormat("{0}.BeforePrint event error: {1}",this.name,r.message);t.System.StiError.showError(l,!1)}},F.prototype.applyConditions=function(e,r){if(null==r)return;for(var n=0,o=r;n<o.length;n++){var a=o[n],s=t.Report.Engine.StiParser.StiParser.parseTextValue(a.value,this,e);if(null!=s&&s.sti_is(Boolean)&&s.toBoolean()){var l=a.key;if(String.isNullOrEmpty(l.style)){var u=e.sti_as(i.IStiBrush);null!=u&&(l.permissions&i.StiConditionPermissions.BackColor)>0&&(u.brush=new y(l.backColor));var c=e.sti_as(i.IStiBorder);null!=c&&(l.permissions&i.StiConditionPermissions.Borders)>0&&0==(l.borderSides&i.StiConditionBorderSides.NotAssigned)&&(c.border=c.border.clone(),c.border.side=l.borderSides);var p=e.sti_as(i.IStiTextBrush);null!=p&&(l.permissions&i.StiConditionPermissions.TextColor)>0&&(p.textBrush=new y(l.textColor));null!=e.sti_as(i.IStiFont)&&i.StiConditionHelper.applyFont(e,l.font,l.permissions)}else t.Report.Components.StiConditionHelper.apply(e,l.style);if(e.enabled=l.enabled,l.breakIfTrue)break}}},Object.defineProperty(F.prototype,"beforePrintEvent",{get:function(){return new u(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(F.eventBeforePrint,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),F.prototype.onAfterPrint=function(t){},F.prototype.invokeAfterPrint=function(t,e){this.onAfterPrint(e);var i=this.events.get(F.eventAfterPrint);if(null!=i)try{i(t,e)}catch(e){}},Object.defineProperty(F.prototype,"afterPrintEvent",{get:function(){return new c(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(F.eventAfterPrint,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),F.prototype.onGetDrillDownReport=function(t){},F.prototype.invokeGetDrillDownReport=function(t,e){this.onGetDrillDownReport(e);var i=this.events.get(F.eventGetDrillDownReport);if(null!=i)try{i(t,e)}catch(e){}},Object.defineProperty(F.prototype,"getDrillDownReportEvent",{get:function(){return new p(this)},set:function(e){null!=e&&e.set(this,e.script),this.events.set(F.eventGetDrillDownReport,t.Report.Events.StiGetDrillDownReportEventHandler.create(e.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isClickHandlerEmpty",{get:function(){return null==this.events.get(F.eventClick)},enumerable:!0,configurable:!0}),F.prototype.onClick=function(t){},F.prototype.invokeClick=function(t,e){this.onClick(e)},Object.defineProperty(F.prototype,"clickEvent",{get:function(){return new h(this)},set:function(t){null!=t&&t.set(this,t.script)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isDoubleClickHandlerEmpty",{get:function(){return null==this.events.get(F.eventDoubleClick)},enumerable:!0,configurable:!0}),F.prototype.onDoubleClick=function(t){},F.prototype.invokeDoubleClick=function(t,e){this.onDoubleClick(e)},Object.defineProperty(F.prototype,"doubleClickEvent",{get:function(){return new g(this)},set:function(t){null!=t&&t.set(this,t.script)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isMouseEnterHandlerEmpty",{get:function(){return null==this.events.get(F.eventMouseEnter)},enumerable:!0,configurable:!0}),F.prototype.onMouseEnter=function(t){},F.prototype.invokeMouseEnter=function(t,e){this.onMouseEnter(e)},Object.defineProperty(F.prototype,"mouseEnterEvent",{get:function(){return new m(this)},set:function(t){null!=t&&t.set(this,t.script)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isMouseLeaveHandlerEmpty",{get:function(){return null==this.events.get(F.eventMouseLeave)},enumerable:!0,configurable:!0}),F.prototype.onMouseLeave=function(t){},F.prototype.invokeMouseLeave=function(t,e){this.onMouseLeave(e)},Object.defineProperty(F.prototype,"mouseLeaveEvent",{get:function(){return new d(this)},set:function(t){null!=t&&t.set(this,t.script)},enumerable:!0,configurable:!0}),F.prototype.onPainting=function(t){},F.prototype.invokePainting=function(t,e){this.onPainting(e)},F.prototype.onPainted=function(t){},F.prototype.invokePainted=function(t,e){this.onPainted(e)},Object.defineProperty(F.prototype,"bookmarkValue",{get:function(){return null==this.bits?null:this.bits.bookmarkValue},set:function(t){if(null==t&&null==this.bits)return;null!=this.bits?this.bits.bookmarkValue=t:this.bits=new _(t,this.toolTipValue,this.hyperlinkValue,this.tagValue,this.enabled,this.highlightState,this.ignoreNamingRule,this.dockStyle,this.printable)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"bookmark",{get:function(){return this.properties.get("Bookmark",String.empty)},set:function(t){null!=t&&this.properties.set("Bookmark",t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"toolTipValue",{get:function(){return null==this.bits?null:this.bits.toolTipValue},set:function(t){if(null==t&&null==this.bits)return;null!=this.bits?this.bits.toolTipValue=t:this.bits=new _(this.bookmarkValue,t,this.hyperlinkValue,this.tagValue,this.enabled,this.highlightState,this.ignoreNamingRule,this.dockStyle,this.printable)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"toolTip",{get:function(){return this.properties.get("ToolTip",String.empty)},set:function(t){null!=t&&this.properties.set("ToolTip",t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"hyperlinkValue",{get:function(){return null==this.bits?null:this.bits.hyperlinkValue},set:function(t){if(null==t&&null==this.bits)return;null!=this.bits?this.bits.hyperlinkValue=t:this.bits=new _(this.bookmarkValue,this.toolTipValue,t,this.tagValue,this.enabled,this.highlightState,this.ignoreNamingRule,this.dockStyle,this.printable)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"hyperlink",{get:function(){return this.properties.get("Hyperlink",String.empty)},set:function(t){null!=t&&this.properties.set("Hyperlink",t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"tagValue",{get:function(){return null==this.bits?null:this.bits.tagValue},set:function(t){if(null==t&&null==this.bits)return;null!=this.bits?this.bits.tagValue=t:this.bits=new _(this.bookmarkValue,this.toolTipValue,this.hyperlinkValue,t,this.enabled,this.highlightState,this.ignoreNamingRule,this.dockStyle,this.printable)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"tag",{get:function(){return this.properties.get("Tag",String.empty)},set:function(t){null!=t&&this.properties.set("Tag",t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"events",{get:function(){return null==this._events&&(this._events=new A),this._events},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"restrictions",{get:function(){return this.getRestrictions()},set:function(t){this.setRestrictions(t)},enumerable:!0,configurable:!0}),F.prototype.getRestrictions=function(){return this.properties.get(F.propertyRestrictions,i.StiRestrictions.All)},F.prototype.setRestrictions=function(t){this.properties.set(F.propertyRestrictions,t,i.StiRestrictions.All)},Object.defineProperty(F.prototype,"ignoreNamingRule",{get:function(){return null!=this.bits&&this.bits.ignoreNamingRule},set:function(t){if(0==t&&null==this.bits)return;null!=this.bits?this.bits.ignoreNamingRule=t:this.bits=new _(this.bookmarkValue,this.toolTipValue,this.hyperlinkValue,this.tagValue,this.enabled,this.highlightState,t,this.dockStyle,this.printable)},enumerable:!0,configurable:!0}),F.prototype.setName=function(t){this.ignoreNamingRule||null==this.report?C.prototype.setName.call(this,t):C.prototype.setName.call(this,e.StiNameValidator.correctName(t))},Object.defineProperty(F.prototype,"placeOnToolbox",{get:function(){return this.properties.getBool(F.propertyPlaceOnToolbox,!1)},set:function(t){this.properties.setBool(F.propertyPlaceOnToolbox,t,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isPrinting",{get:function(){if(null!=this.report)return this.report.isPrinting;return!1},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isExporting",{get:function(){if(null!=this.report)return this.report.isExporting;return!1},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isDesigning",{get:function(){if(null!=this.report)return this.report.isDesigning;return!1},enumerable:!0,configurable:!0}),F.prototype.allowDelete=function(){return!this.inherited},Object.defineProperty(F.prototype,"priority",{get:function(){return i.StiComponentPriority.Component},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"componentType",{get:function(){return i.StiComponentType.Simple},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"dockable",{get:function(){return this.properties.getBool(F.propertyDockable,!0)},set:function(t){this.properties.setBool(F.propertyDockable,t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"highlightState",{get:function(){return null==this.bits?i.StiHighlightState.Hide:this.bits.highlightState},set:function(t){if(t==i.StiHighlightState.Hide&&null==this.bits)return;null!=this.bits?this.bits.highlightState=t:this.bits=new _(this.bookmarkValue,this.toolTipValue,this.hyperlinkValue,this.tagValue,this.enabled,t,this.ignoreNamingRule,this.dockStyle,this.printable)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"componentPlacement",{get:function(){return this._componentPlacement},set:function(t){this._componentPlacement=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"drillDownParameters",{get:function(){return this._drillDownParameters},set:function(t){this._drillDownParameters!=t&&(this._drillDownParameters=t)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"componentStyle",{get:function(){return this.getComponentStyle()},set:function(t){this.setComponentStyle(t)},enumerable:!0,configurable:!0}),F.prototype.getComponentStyle=function(){return this.properties.get(F.propertyComponentStyle,String.empty)},F.prototype.setComponentStyle=function(t){if(this.properties.set(F.propertyComponentStyle,t,String.empty),null!=this.report&&null!=t){var e=this.report.styles.getByName(t);null!=e&&e.setStyleToComponent(this)}this.sti_is(i.StiContainer)&&this.sti_as(i.StiContainer).setParentStylesToChilds()},Object.defineProperty(F.prototype,"locked",{get:function(){return this.properties.getBool(F.propertyLocked,!1)},set:function(t){this.properties.setBool(F.propertyLocked,t,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"linked",{get:function(){return this.getLinked()},set:function(t){this.setLinked(t)},enumerable:!0,configurable:!0}),F.prototype.getLinked=function(){return this.properties.getBool(F.propertyLinked,!1)},F.prototype.setLinked=function(t){this.properties.setBool(F.propertyLinked,t,!1)},Object.defineProperty(F.prototype,"enabled",{get:function(){return null==this.bits||this.bits.enabled},set:function(t){if(t&&null==this.bits)return;null!=this.bits?this.bits.enabled=t:this.bits=new _(this.bookmarkValue,this.toolTipValue,this.hyperlinkValue,this.tagValue,t,this.highlightState,this.ignoreNamingRule,this.dockStyle,this.printable),t||this.dockStyle==i.StiDockStyle.None||null==this.parent||this.sti_is(i.StiBand)&&null!=e&&!StiOptions.Engine.checkDockToContainerIfComponentDisabled||this.parent.dockToContainer()},enumerable:!0,configurable:!0}),F.prototype.getEnabled=function(){return this.enabled},F.prototype.setEnabled=function(t){this.enabled=t},Object.defineProperty(F.prototype,"useParentStyles",{get:function(){return this.getUseParentStyles()},set:function(t){this.setUseParentStyles(t)},enumerable:!0,configurable:!0}),F.prototype.getUseParentStyles=function(){return this.properties.getBool(F.propertyUseParentStyles,!1)},F.prototype.setUseParentStyles=function(t){this.useParentStyles!=t&&(this.properties.setBool(F.propertyUseParentStyles,t,!1),t&&null!=this.parent&&this.parent.setParentStylesToChilds())},Object.defineProperty(F.prototype,"page",{get:function(){return this.getPage()},set:function(t){this.setPage(t)},enumerable:!0,configurable:!0}),F.prototype.getPage=function(){return this._page},F.prototype.setPage=function(t){this._page=t},Object.defineProperty(F.prototype,"parent",{get:function(){return this._parent},set:function(t){this._parent=t},enumerable:!0,configurable:!0}),F.prototype.isExportAsImage=function(t){var r=this.sti_as(i.IStiBrush),n=this.sti_as(i.IStiTextBrush);if(null!=r){var o=r.brush;if(t==e.StiExportFormat.Pdf&&(o.sti_is(D)||o.sti_is(k)||o.sti_is(E)||o.sti_is(G)))return!1;if(t==e.StiExportFormat.Xps&&o.sti_is(D)&&(null==n||!n.textBrush.sti_is(D)))return!1;if(t==e.StiExportFormat.ImageSvg&&(o.sti_is(D)||o.sti_is(k)||o.sti_is(E)||o.sti_is(G)))return!1;if(o.sti_is(D)||o.sti_is(k)||o.sti_is(G)||o.sti_is(E))return!0}if(null!=n){var a=n.textBrush;if(t==e.StiExportFormat.Pdf&&(a.sti_is(D)||a.sti_is(k)||a.sti_is(E)))return!1;if(a.sti_is(D)||a.sti_is(k)||a.sti_is(G)||a.sti_is(E))return!0}return!1},F.prototype.invokeOnResizeComponent=function(t,e){this.lockOnResize||this.onResizeComponent(t,e)},F.prototype.onResizeComponent=function(t,e){var r=this.sti_as(i.StiContainer);if(null==r)return;for(var n=e.width-t.width,o=e.height-t.height,a=0,s=r.components.list;a<s.length;a++){var l=s[a];0!=n&&((l.anchor&i.StiAnchorMode.Left)>0&&(l.anchor&i.StiAnchorMode.Right)>0&&(l._width=l._width+n),0==(l.anchor&i.StiAnchorMode.Left)&&(l.anchor&i.StiAnchorMode.Right)>0&&(l._left=l._left+n)),0!=o&&((l.anchor&i.StiAnchorMode.Top)>0&&(l.anchor&i.StiAnchorMode.Bottom)>0&&(l._height=l._height+o),0==(l.anchor&i.StiAnchorMode.Top)&&(l.anchor&i.StiAnchorMode.Bottom)>0&&(l._top=l._top+o))}},F.prototype.clearContents=function(){var t=this.sti_as(i.IStiText);null!=t&&this.isSelected&&t.setTextInternal(String.empty);var e=this.sti_as(i.StiContainer);if(null!=e)for(var r=0,n=e.components.list;r<n.length;r++){var o=n[r];o.clearContents()}},F.prototype.toString=function(){if(String.isNullOrEmpty(this.alias))return this.name;if(StiOptions.Dictionary.showOnlyAliasForComponents)return this.alias;return this.name+" ["+this.alias+"]"},Object.defineProperty(F.prototype,"isCross",{get:function(){return!1},enumerable:!0,configurable:!0}),F.prototype.canContainIn=function(t){if(t.sti_is(i.IStiCrossTab)){if(this.sti_is(i.IStiCrossTabField))return!0;return!1}if(!t.sti_is(i.StiContainer))return!1;if(t.sti_is(i.StiSubReport))return!1;return!0},F.prototype.componentToPage=function(t){return null!=(null==this.parent?null:this.parent.sti_as(i.StiContainer))?this.parent.containerToPage(t):t},F.prototype.pageToComponent=function(t){return null!=(null==this.parent?null:this.parent.sti_as(i.StiContainer))?this.parent.pageToContainer(t):t},F.isParentSelect=function(t){var e=t.parent;while(null!=e&&!e.sti_is(i.StiPage)){if(e.isSelected)return!0;e=e.parent}return!1},F.doOffsetRect=function(t,e,r){if(t.sti_is(i.StiPage))return e;return!this.isParentSelect(t)&&t.isSelected&&(e=e.offsetRect(r)),e},F.prototype.getPaintRectangle=function(t,e,r){if(void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),null!=this.page){r&&(this.isCross?this.clientRectangle=this.dockToContainer2(this.clientRectangle):this.dockStyle!=i.StiDockStyle.None&&this.dockable&&(this.displayRectangle=this.dockToContainer2(this.displayRectangle)));var n=this.clientRectangle.clone(),o=this.page.offsetRectangle;if(n=F.doOffsetRect(this,n,this.page.offsetRectangle),n=this.componentToPage(n),n=n.normalize(),!t)return e?n.multiply(this.page.zoom):n;return e?this.page.unit.convertToHInches(n).multiply(this.page.zoom):this.page.unit.convertToHInches(n)}return B.empty},F.prototype.setPaintRectangle=function(t){t=this.pageToComponent(t),t=t.normalize(),this.clientRectangle=t},F.prototype.getDisplayRectangle2=function(){var t=this.displayRectangle,e=this.page.offsetRectangle;return t=F.doOffsetRect(this,t,this.page.offsetRectangle),t=this.componentToPage(t),t=t.normalize()},F.prototype.getDataBand=function(){var e=this.parent;if(null==e)return null;while(null!=e&&!e.sti_is(i.StiDataBand)&&!e.sti_is(i.StiPage)){var r=e.sti_as(i.StiReportTitleBand);if(null!=r){var n=r.getMaster();if(null!=n)return n}var o=e.sti_as(i.StiPageHeaderBand);if(null!=o){var a=o.getMaster();if(null!=a)return a}var s=e.sti_as(i.StiReportSummaryBand);if(null!=s){var l=s.getMaster();if(null!=l)return l}var u=e.sti_as(i.StiPageFooterBand);if(null!=u){var c=u.getMaster();if(null!=c)return c}var p=e.sti_as(i.StiHeaderBand);if(null!=p){var h=t.Report.Engine.StiHeaderBandBuilder.getMaster(p);if(null!=h)return h}var g=e.sti_as(i.StiFooterBand);if(null!=g){var m=t.Report.Engine.StiFooterBandBuilder.getMaster(g);if(null!=m)return m}e=e.parent}if(e.sti_is(i.StiDataBand))return e;return null},F.prototype.getGroupHeaderBand=function(){var e=null;if(null==(e=this.sti_is(i.StiGroupFooterBand)?this:this.parent))return null;if(e.sti_is(i.StiChildBand)&&null!=e.parent){var r=e.parent.components.indexOf(e)-1;while(r>0&&e.parent.components.getByIndex(r).sti_is(i.StiChildBand))r--;r>=0&&(e=e.parent.components.getByIndex(r))}while(!(null==e||e.sti_is(i.StiDataBand)||e.sti_is(i.StiGroupHeaderBand)||e.sti_is(i.StiGroupFooterBand)||e.sti_is(i.StiPage)))e=e.parent;if(e.sti_is(i.StiGroupHeaderBand))return e;if(e.sti_is(i.StiGroupFooterBand)||e.sti_is(i.StiDataBand)){var n=null;if(e.sti_is(i.StiDataBand))n=e.sti_as(i.StiDataBand);else for(var r=e.parent.components.indexOf(e)-1,o=r;o>=0;o--){var a=e.parent.components.getByIndex(o).sti_as(i.StiDataBand);if(null!=a){n=a;break}}if(null!=n){var s=t.Report.Engine.StiBuilder.getBuilder(i.StiDataBand);if(n.dataBandInfo.groupHeaderComponents=s.getGroupHeaders(n),n.dataBandInfo.groupFooterComponents=s.getGroupFooters(n),s.groupsComparison(n),e.sti_is(i.StiGroupFooterBand))return e.groupFooterBandInfo.groupHeader;if(n.dataBandInfo.groupHeaderComponents.count>0)return n.dataBandInfo.groupHeaderComponents.getByIndex(n.dataBandInfo.groupHeaderComponents.count-1)}}return null},F.prototype.getContainer=function(){var t=this.parent;if(null==t)return null;while(null!=t&&!t.sti_is(i.StiContainer)&&!t.sti_is(i.StiPage))t=t.parent;if(t.sti_is(i.StiContainer))return t;if(t.sti_is(i.StiPage))return t;return t.page},F.prototype.checkForParentComponent=function(t){if(null==this.parent)return!1;if(this.parent==t)return!0;return this.parent.checkForParentComponent(t)},F.prototype.getComponentStyle2=function(){if(String.isNullOrWhiteSpace(this.componentStyle)||null==this.report)return null;return this.report.styles.getByName(this.componentStyle)},F.prototype.construct=function(e){void 0===e&&(e=B.empty),this.clientRectangle=e,this.lockOnResize=!1,this.sti_is(i.StiDataBand)||this.sti_is(i.StiGroupHeaderBand)?this.interaction=new i.StiBandInteraction:this.sti_is(t.Report.CrossTab.StiCrossHeader)?this.interaction=new i.StiCrossHeaderInteraction:this.interaction=new i.StiInteraction},F.propertyInherited=Math.random().toString().substr(2),F.propertyRenderedCount=Math.random().toString().substr(2),F.propertyMinSize=Math.random().toString().substr(2),F.propertyMaxSize=Math.random().toString().substr(2),F.eventGetToolTip={},F.eventGetHyperlink={},F.eventGetTag={},F.eventGetBookmark={},F.eventBeforePrint={},F.eventAfterPrint={},F.eventGetDrillDownReport={},F.eventClick={},F.eventDoubleClick={},F.eventMouseEnter={},F.eventMouseLeave={},F.eventPainting={},F.eventPainted={},F.propertyRestrictions=Math.random().toString().substr(2),F.propertyPlaceOnToolbox=Math.random().toString().substr(2),F.propertyDockable=Math.random().toString().substr(2),F.propertyComponentStyle=Math.random().toString().substr(2),F.propertyLocked=Math.random().toString().substr(2),F.propertyLinked=Math.random().toString().substr(2),F.propertyUseParentStyles=Math.random().toString().substr(2),F}(C);i.StiComponent=L}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Events.StiValueEventHandler,n=t.Report.Components.StiComponent,o=t.Base.StiJsonReportObjectHelper,a=t.Base.StiJsonSaveMode,s=t.Base.Localization.StiLocalization,l=t.System.Enum,u=t.System.Drawing.Color,c=t.System.Drawing.Rectangle,p=t.Base.Drawing.StiVertAlignment,h=t.Base.Drawing.StiHorAlignment,g=t.Report.Expressions.StiExpression,m=t.System.Drawing.Font,d=t.Report.Events.StiValueEventArgs,S=t.System.Drawing.FontStyle,f=t.System.Drawing.GraphicsUnit,y=t.Report.Components.StiAngle,b=t.Base.Drawing.StiBorder,C=t.Report.Components.IStiBackColor,v=t.Report.Components.IStiForeColor,I=t.Report.Components.IStiHorAlignment,A=t.Report.Components.IStiVertAlignment,w=t.Report.Components.IStiBorder,T=t.Report.Components.IStiEnumAngle,B=function(n){function B(t){void 0===t&&(t=c.empty);var e=n.call(this,t)||this;return e._angle=y.Angle0,e._border=new b,e._foreColor=u.black,e._backColor=u.white,e._autoScale=!1,e._showLabelText=!0,e._showQuietZones=!0,e._barCodeType=new i.StiEAN13BarCodeType,e._font=null,e._horAlignment=h.Left,e._vertAlignment=p.Top,e._codeValue=null,e._code=null,e.code="1234567890123",e}return __extends(B,n),B.prototype.implements=function(){return B.implementsStiBarCode||(B.implementsStiBarCode=n.prototype.implements.call(this).concat([i.IStiBarCode,C,v,A,I,T,w])),B.implementsStiBarCode},B.prototype.saveToJsonObject=function(t){var e=n.prototype.saveToJsonObject.call(this,t);return e.removeProperty("CanShrink"),e.removeProperty("CanGrow"),e.addPropertyEnum("Angle",y,this.angle,y.Angle0),e.addPropertyStringNullOfEmpty("Border",o.Serialize.jBorder(this.border)),e.addPropertyStringNullOfEmpty("ForeColor",o.Serialize.jColor(this.foreColor,u.black)),e.addPropertyStringNullOfEmpty("BackColor",o.Serialize.jColor(this.backColor,u.white)),e.addPropertyBool("AutoScale",this.autoScale),e.addPropertyBool("ShowLabelText",this.showLabelText,!0),e.addPropertyBool("ShowQuietZones",this.showQuietZones,!0),e.addPropertyStringNullOfEmpty("Font",o.Serialize.font(this.font,"Arial",8,S.Bold,f.Pixel)),e.addPropertyEnum("HorAlignment",h,this.horAlignment,h.Left),e.addPropertyEnum("VertAlignment",p,this.vertAlignment,p.Top),e.addPropertyJObject("GetBarCodeEvent",this.getBarCodeEvent.saveToJsonObject(t)),e.addPropertyJObject("BarCodeType",this.barCodeType.saveToJsonObject(t)),t==a.Document?e.addPropertyStringNullOfEmpty("CodeValue",this.codeValue):e.addPropertyJObject("Code",new g(this.code).saveToJsonObject(t)),e},B.prototype.loadFromJsonObject=function(e){n.prototype.loadFromJsonObject.call(this,e);for(var r=0,a=e.properties();r<a.length;r++){var s=a[r];switch(s.name){case"Angle":this._angle=l.parse(y,s.value.toString());break;case"Border":this._border=o.Deserialize.border(s.value.toString());break;case"ForeColor":this._foreColor=o.Deserialize.color(s.value.toString());break;case"BackColor":this._backColor=o.Deserialize.color(s.value.toString());break;case"AutoScale":this._autoScale=s.value.toBoolean();break;case"ShowLabelText":this._showLabelText=s.value.toBoolean();break;case"ShowQuietZones":this._showQuietZones=s.value.toBoolean();break;case"Font":this._font=o.Deserialize.font(s.value.toString(),this.font);break;case"HorAlignment":this._horAlignment=l.parse(h,s.value.toString());break;case"VertAlignment":this._vertAlignment=l.parse(p,s.value.toString());break;case"CodeValue":this._codeValue=s.value.toString();break;case"Code":var u=new g;u.loadFromJsonObject(s.value),this.code=u.value;break;case"GetBarCodeEvent":var c=new t.Report.Events.StiGetBarCodeEvent;c.loadFromJsonObject(s.value),this.getBarCodeEvent=c;break;case"BarCodeType":this._barCodeType=i.StiBarCodeTypeService.loadFromJsonObjectInternal(s.value);break}}},B.prototype.loadFromXml=function(e,r){n.prototype.loadFromXml.call(this,e,r);for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];switch(a.nodeName){case"Angle":this._angle=l.parse(y,a.textContent);break;case"Border":case"br":this._border=b.loadFromXml(a.textContent);break;case"ForeColor":this._foreColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"BackColor":this._backColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"AutoScale":this._autoScale=a.textContent.toBoolean();break;case"ShowLabelText":this._showLabelText=a.textContent.toBoolean();break;case"ShowQuietZones":this._showQuietZones=a.textContent.toBoolean();break;case"Font":case"fn":this._font=t.System.Convert.toFont(a.textContent);break;case"HorAlignment":case"ha":this._horAlignment=l.parse(h,a.textContent);break;case"VertAlignment":case"va":this._vertAlignment=l.parse(p,a.textContent);break;case"CodeValue":this.codeValue=a.textContent;break;case"Code":this.code=a.textContent;break;case"BarCodeType":this.barCodeType=i.StiBarCodeTypeService.loadFromXmlInternal(a),this.barCodeType.loadFromXmlObject(a);break}}},Object.defineProperty(B.prototype,"componentId",{get:function(){return e.StiComponentId.StiBarCode},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"helpUrl",{get:function(){return"user-manual/report_internals_barcodes.htm"},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"localizedCategory",{get:function(){return s.get("Report","Components")},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"localizedName",{get:function(){return s.get("Components","StiBarCode")},enumerable:!0,configurable:!0}),B.prototype.isExportAsImage=function(t){return!1},Object.defineProperty(B.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"foreColor",{get:function(){return this._foreColor},set:function(t){this._foreColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"backColor",{get:function(){return this._backColor},set:function(t){this._backColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"autoScale",{get:function(){return this._autoScale},set:function(t){this._autoScale=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"showLabelText",{get:function(){return this._showLabelText},set:function(t){this._showLabelText=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"showQuietZones",{get:function(){return this._showQuietZones},set:function(t){this._showQuietZones=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"barCodeType",{get:function(){return this._barCodeType},set:function(t){this._barCodeType=t},enumerable:!0,configurable:!0}),B.prototype.getBarCodeString=function(){if(null!=this.codeValue)return this.codeValue;return this.code},Object.defineProperty(B.prototype,"font",{get:function(){return null==this._font&&(this._font=new m("Arial",8,S.Bold,f.Pixel)),this._font},set:function(t){this._font=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"horAlignment",{get:function(){return this._horAlignment},set:function(t){this._horAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"vertAlignment",{get:function(){return this._vertAlignment},set:function(t){this._vertAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"codeValue",{get:function(){return this._codeValue},set:function(t){this._codeValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"code",{get:function(){return this._code},set:function(t){this._code=t},enumerable:!0,configurable:!0}),B.prototype.invokeEvents=function(){n.prototype.invokeEvents.call(this);try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){if(null!=this.events.get(B.eventGetBarCode)&&null==this._codeValue){var i=new d;this.invokeGetBarCode(this,i),null!=i.value&&(this._codeValue=i.value.toString())}}else if(null==this.codeValue){var i=new d;this.invokeGetBarCode(this,i),null!=i.value&&(this.codeValue=i.value.toString())}}catch(i){t.System.StiError.showError(i,!1)}},B.prototype.onGetBarCode=function(t){},B.prototype.invokeGetBarCode=function(i,r){try{if(this.onGetBarCode(r),this.report.calculationMode==e.StiCalculationMode.Compilation){var n=this.events.get(B.eventGetBarCode);if(null!=n)try{n(i,r)}catch(r){}}else{var o=t.Report.Engine.StiParser.StiParser.parseTextValue(this.code,this,i);null!=o&&(r.value=o);var n=this.events.get(B.eventGetBarCode);if(null!=n)try{n(i,r)}catch(r){}}}catch(e){t.System.StiError.showError(e.message,!1)}},Object.defineProperty(B.prototype,"getBarCodeEvent",{get:function(){return new t.Report.Events.StiGetBarCodeEvent(this)},set:function(t){t.set(this,t.script),this.events.set(B.eventGetBarCode,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),B.prototype.createNew=function(){return new B(c.empty)},Object.defineProperty(B.prototype,"defaultClientRectangle",{get:function(){return new c(0,0,240,110)},enumerable:!0,configurable:!0}),B.eventGetBarCode={},B}(n);i.StiBarCode=B}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t}();t.StiBarCodeData=e}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i,r){void 0===e&&(e=13),void 0===i&&(i=1),void 0===r&&(r=2.2);var n=t.call(this)||this;return n.codabarSymbols="0123456789-$:/.+ABCD",n.codabarTable=["11111221","11112211","11121121","22111111","11211211","21111211","12111121","12112111","12211111","21121111","11122111","11221111","21112121","21211121","21212111","11222221","11221211","11121221","12121121","11122211"],n._module=13,n._height=1,n._ratio=2.2,n.codabarSpaceLeft=7,n.codabarSpaceRight=7,n.codabarSpaceTop=0,n.codabarSpaceBottom=1,n.codabarLineHeightShort=45,n.codabarLineHeightLong=n.codabarLineHeightShort,n.codabarTextPosition=n.codabarLineHeightShort+n.codabarSpaceBottom,n.codabarTextHeight=8.33,n.codabarMainHeight=55,n.codabarLineHeightForCut=n.codabarLineHeightShort,n._module=e,n._height=i,n._ratio=r,n}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,13),i.addPropertyNumber("Height",this.height,1),i.addPropertyNumber("Ratio",this.ratio,2.2),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this.module=r.value.toNumber();break;case"Height":this.height=r.value.toNumber();break;case"Ratio":this.ratio=r.value.toNumber();break}}},i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this.module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break;case"Ratio":this.ratio=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCodabarBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Codabar"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"A12345678B"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<7.5&&(this._module=7.5),t>40&&(this._module=40),this.ratio=this.ratio},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ratio",{get:function(){return this._ratio},set:function(t){this._ratio=t;var e=this.module>20?2:2.2;t<e&&(this._ratio=e),t>3&&(this._ratio=3)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.codabarTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[15]=!0,t},enumerable:!0,configurable:!0}),i.prototype.codeToBar=function(t){for(var e=new r,i=!0,n=0;n<t.length;n++){var o=void 0;o=1==i?"1"==t[n]?"4":"5":"1"==t[n]?"0":"1",e.append(o),i=!i}return e.toString()},i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,this.codabarSymbols);for(var a=Array.create(Number,o.length),s=0;s<o.length;s++)a[s]=this.codabarSymbols.indexOf(o[s]);for(var l=new r,s=0;s<a.length;s++)l.append(this.codeToBar(this.codabarTable[a[s]]));this.calculateSizeFull(this.codabarSpaceLeft,this.codabarSpaceRight,this.codabarSpaceTop,this.codabarSpaceBottom,this.codabarLineHeightShort,this.codabarLineHeightLong,this.codabarTextPosition,this.codabarTextHeight,this.codabarMainHeight,this.codabarLineHeightForCut,this.ratio,n,o,o,l.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiCodabarBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function n(e,r,n){void 0===e&&(e=8),void 0===r&&(r=1),void 0===n&&(n=i.StiCode11CheckSum.Auto);var o=t.call(this)||this;return o.code11Symbols="0123456789-",o.code11StartStopSymbolIndex=11,o.code11Table=["40405","50405","41405","51404","40505","50504","41504","40415","50414","50404","40504","40514"],o.code11SpaceLeft=5,o.code11SpaceRight=5,o.code11SpaceTop=0,o.code11SpaceBottom=1,o.code11LineHeightShort=40,o.code11LineHeightLong=o.code11LineHeightShort,o.code11TextPosition=o.code11LineHeightShort+o.code11SpaceBottom,o.code11TextHeight=8,o.code11MainHeight=50,o.code11LineHeightForCut=o.code11LineHeightShort,o.defaultCode11Module=8,o._module=o.defaultCode11Module,o._height=1,o._checksum=i.StiCode11CheckSum.Auto,o._module=e,o._height=r,o._checksum=n,o}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,8),i.addPropertyNumber("Height",this.height,1),i},n.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this._module=r.value.toNumber();break;case"Height":this._height=r.value.toNumber();break}}},n.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this._module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode11BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"serviceName",{get:function(){return"Code11"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultCodeValue",{get:function(){return"A12345678B"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<4&&(this._module=4),t>40&&(this._module=40)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.2&&(this._height=.2),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checksum",{get:function(){return this._checksum},set:function(t){this._checksum=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelFontHeight",{get:function(){return this.code11TextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[3]=!0,t[11]=!0,t[13]=!0,t},enumerable:!0,configurable:!0}),n.prototype.draw=function(t,e,n,o){var a=this.getCode(e);a=this.checkCodeSymbols(a,this.code11Symbols);var s=0;this.checksum==i.StiCode11CheckSum.Auto&&(s=a.length>=10?2:1),this.checksum==i.StiCode11CheckSum.OneDigit&&(s=1),this.checksum==i.StiCode11CheckSum.TwoDigits&&(s=2);var l=Array.create(Number,a.length+2+s);l[0]=this.code11StartStopSymbolIndex;for(var u=0;u<a.length;u++)l[u+1]=this.code11Symbols.indexOf(a[u]);for(var c=0,p=1,u=a.length;u>0;u--)c+=l[u]*p,++p>10&&(p=1);if(l[a.length+1]=c%11,2==s){c=0,p=1;for(var u=a.length+1;u>0;u--)c+=l[u]*p,++p>9&&(p=1);l[a.length+2]=c%9}l[l.length-1]=l[0];for(var h=new r,u=0;u<l.length;u++)h.append(this.code11Table[l[u]]),u!=l.length-1&&h.append("0");this.calculateSizeFull(this.code11SpaceLeft,this.code11SpaceRight,this.code11SpaceTop,this.code11SpaceBottom,this.code11LineHeightShort,this.code11LineHeightLong,this.code11TextPosition,this.code11TextHeight,this.code11MainHeight,this.code11LineHeightForCut,2,o,a,a,h.toString(),n,e),this.drawBarCode(t,n,e)},n.prototype.createNew=function(){return new n},n}(i.StiBarCodeTypeService);i.StiCode11BarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=function(t){function r(i,r){void 0===i&&(i=20),void 0===r&&(r=1);var n=t.call(this)||this;return n.code128Table=["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"],n._module=13,n._height=1,n.code128SpaceLeft=10,n.code128SpaceRight=10,n.code128SpaceTop=0,n.code128SpaceBottom=1,n.code128LineHeightShort=45,n.code128LineHeightLong=n.code128LineHeightShort,n.code128TextPosition=n.code128LineHeightShort+n.code128SpaceBottom,n.code128TextHeight=8.33,n.code128MainHeight=55,n.code128LineHeightForCut=n.code128LineHeightShort,n.defaultCodeSetAB=e.CodeSet.B,n.module=i,n.height=r,n}return __extends(r,t),r.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,13),i.addPropertyNumber("Height",this.height,1),i},r.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this.module=r.value.toNumber();break;case"Height":this.height=r.value.toNumber();break}}},r.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this.module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break}}},Object.defineProperty(r.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<9.84&&(this._module=9.84),t>40&&(this._module=40)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"labelFontHeight",{get:function(){return this.code128TextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t},enumerable:!0,configurable:!0}),r.prototype.codeToBar=function(t){for(var e=new i,r=!0,n=0;n<t.length;n++){var o=void 0;if(1==r)switch(t[n]){case"1":o="4";break;case"2":o="5";break;case"3":o="6";break;case"4":o="7";break;default:o="4";break}else switch(t[n]){case"1":o="0";break;case"2":o="1";break;case"3":o="2";break;case"4":o="3";break;default:o="0";break}e.append(o),r=!r}return e.toString()},r.prototype.encodeAuto=function(t,r){for(var n=new i,o=new i,a=0;a<t.length;a++){var s=t.charAt(a),l=new Number(s).valueOf();(l<128||l>=e.ControlCodes.FNC1&&l<=e.ControlCodes.FNC4)&&o.append(s)}var u=this.getSet(o,0,e.CodeSet.None);u==e.CodeSet.A?n.append(String.fromCharCode(e.BarcodeCommands.StartA)):u==e.CodeSet.B?n.append(String.fromCharCode(e.BarcodeCommands.StartB)):n.append(String.fromCharCode(e.BarcodeCommands.StartC)),r&&n.append(String.fromCharCode(e.BarcodeCommands.FNC1));var c=0;while(c<o.length){var p=this.getSet(o,c,u);p!=u&&(p==e.CodeSet.A?n.append(String.fromCharCode(e.BarcodeCommands.CodeA)):p==e.CodeSet.B?n.append(String.fromCharCode(e.BarcodeCommands.CodeB)):n.append(String.fromCharCode(e.BarcodeCommands.CodeC)),u=p);var l=o.toString().charCodeAt(c);if(l>=e.ControlCodes.FNC1&&l<=e.ControlCodes.FNC4&&(l==e.ControlCodes.FNC1?n.append(String.fromCharCode(e.BarcodeCommands.FNC1)):l==e.ControlCodes.FNC2?n.append(String.fromCharCode(e.BarcodeCommands.FNC2)):l==e.ControlCodes.FNC3?n.append(String.fromCharCode(e.BarcodeCommands.FNC3)):u==e.CodeSet.A?n.append(String.fromCharCode(e.BarcodeCommands.FNC4A)):n.append(String.fromCharCode(e.BarcodeCommands.FNC4B))),u==e.CodeSet.A)n.append(String.fromCharCode(l>=32?l-32:l+64));else if(u==e.CodeSet.B)n.append(String.fromCharCode(l-32));else{var h=o.toString().charCodeAt(c+1),g=10*(l-48)+(h-48);n.append(String.fromCharCode(g)),c++}c++}return n.append(String.fromCharCode(0)),n.append(String.fromCharCode(e.BarcodeCommands.Stop)),n.toString()},r.prototype.isDigit=function(t){var e=t.charCodeAt(0);if(e>47&&e<58)return!0;return!1},r.prototype.getSet=function(t,i,r){if(0==t.length||i>t.length-1)return e.CodeSet.A;var n=new Number(t.charAt(i)).valueOf();if(n>=e.ControlCodes.FNC1&&n<=e.ControlCodes.FNC4){if(r==e.CodeSet.None)return this.defaultCodeSetAB;if(n==e.ControlCodes.FNC1)return r;return r==e.CodeSet.C?this.defaultCodeSetAB:r}if(n<32)return e.CodeSet.A;if(n>=96)return e.CodeSet.B;if(this.isDigit(t.toString().charAt(i)))if(r==e.CodeSet.C){if(i+1<t.length&&this.isDigit(t.toString().charAt(i+1)))return e.CodeSet.C}else if(i+3<t.length&&this.isDigit(t.toString().charAt(i+1))&&this.isDigit(t.toString().charAt(i+2))&&this.isDigit(t.toString().charAt(i+3)))return e.CodeSet.C;return r!=e.CodeSet.None&&r!=e.CodeSet.C?r:this.defaultCodeSetAB},r}(e.StiBarCodeTypeService);e.StiCode128BarCodeType=r}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode128AutoBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Code128 Auto"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"123456780123"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){for(var o=this.getCode(e),a=new r,s=0;s<o.length;s++){var l=o.charCodeAt(s);a.append(l>=32&&129!=l?String.fromCharCode(l):String.fromCharCode(8226))}for(var u=this.encodeAuto(o,!1),c=Array.create(Number,u.length),s=0;s<u.length;s++)c[s]=u.toString().charCodeAt(s);for(var p=c[0],s=0;s<u.length-3;s++)p+=c[s+1]*(s+1);c[c.length-2]=p%103;for(var h=new r,s=0;s<c.length;s++)h.append(this.codeToBar(this.code128Table[c[s]]));var g=a.toString();this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,g,h.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiCode128AutoBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode128aBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Code128a"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"ABC123"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o," !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"+"\0\b\t\n\v\f\r"+""+"");var a=new r,s=Array.create(Number,o.length+3);s[0]=103;for(var l=s[0],u=0;u<o.length;u++){var c=o.charCodeAt(u);s[u+1]=c>=32?c-32:c+64,129==c&&(s[u+1]=102),l+=s[u+1]*(u+1),a.append(c>=32&&129!=c?String.fromCharCode(c):String.fromCharCode(8729))}s[s.length-2]=l%103,s[s.length-1]=106;for(var p=new r,u=0;u<s.length;u++)p.append(this.codeToBar(this.code128Table[s[u]]));var h=a.toString();this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,h,p.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiCode128aBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode128bBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Code128b"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"ABCabc123"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o," !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"+""+"");var a=new r,s=Array.create(Number,o.length+3);s[0]=104;for(var l=s[0],u=0;u<o.length;u++){var c=o.charCodeAt(u);s[u+1]=c-32,129==c&&(s[u+1]=102),l+=s[u+1]*(u+1),a.append(129!=c?String.fromCharCode(c):String.fromCharCode(8729))}s[s.length-2]=l%103,s[s.length-1]=106;for(var p=new r,u=0;u<s.length;u++)p.append(this.codeToBar(this.code128Table[s[u]]));var h=a.toString();this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,h,p.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiCode128bBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode128cBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Code128c"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"0123456789012345"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,"0123456789"+"");for(var a=[],s=new r,l=String.empty,u=0;u<o.length;u++){var c=o.charCodeAt(u);129==c?(a.add(l),l=String.empty,s.append(String.fromCharCode(8226))):(l+=String.fromCharCode(c),s.append(c))}l.length>0&&a.add(l),0==a.count&&a.add(l);for(var p=new r,u=0;u<a.count;u++){for(var h=a[u],g=Math.floor(h.length/2),m=0;m<g;m++){var d=new Number(h.substr(2*m,2)).valueOf();p.append(String.fromCharCode(d))}if(h.length%2==1){p.append(String.fromCharCode(100));var d=h.charCodeAt(h.length-1);p.append(String.fromCharCode(d-32)),u<a.count-1&&p.append(String.fromCharCode(99))}u<a.count-1&&p.append(String.fromCharCode(102))}var S=Array.create(Number,p.length+3);S[0]=105;for(var u=0;u<p.length;u++)S[u+1]=p.toString().charCodeAt(u);for(var f=S[0],u=0;u<S.length-3;u++)f+=S[u+1]*(u+1);S[S.length-2]=f%103,S[S.length-1]=106;for(var y=new r,u=0;u<S.length;u++)y.append(this.codeToBar(this.code128Table[S[u]]));for(var b=new r,u=0;u<s.length;u++){var d=new Number(s.toString().substr(u,2)).valueOf();b.append(String.fromCharCode(d)),u++}this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,b.toString(),y.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiCode128cBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=t.System.Text.StringBuilder,o=function(t){function o(e,r,n,o){void 0===e&&(e=13),void 0===r&&(r=1),void 0===n&&(n=2.2),void 0===o&&(o=i.StiCheckSum.Yes);var a=t.call(this)||this;return a.code39Symbols="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",a.code39StartStopSymbolIndex=43,a.code39Table=["1112212111","2112111121","1122111121","2122111111","1112211121","2112211111","1122211111","1112112121","2112112111","1122112111","2111121121","1121121121","2121121111","1111221121","2111221111","1121221111","1111122121","2111122111","1121122111","1111222111","2111111221","1121111221","2121111211","1111211221","2111211211","1121211211","1111112221","2111112211","1121112211","1111212211","2211111121","1221111121","2221111111","1211211121","2211211111","1221211111","1211112121","2211112111","1221112111","1212121111","1212111211","1211121211","1112121211","1211212111"],a._checkSum=i.StiCheckSum.Yes,a._module=13,a._height=1,a._ratio=2.2,a.code39SpaceLeft=10,a.code39SpaceRight=10,a.code39SpaceTop=0,a.code39SpaceBottom=1,a.code39LineHeightShort=45,a.code39LineHeightLong=a.code39LineHeightShort,a.code39TextPosition=a.code39LineHeightShort+a.code39SpaceBottom,a.code39TextHeight=8.33,a.code39MainHeight=55,a.code39LineHeightForCut=a.code39LineHeightShort,a._module=e,a._height=r,a._ratio=n,a._checkSum=o,a}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyNumber("Module",this.module,13),r.addPropertyNumber("Height",this.height,1),r.addPropertyEnum("CheckSum",i.StiCheckSum,this.checkSum,i.StiCheckSum.Yes),r.addPropertyNumber("Ratio",this.ratio,2.2),r},o.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Module":this.module=o.value.toNumber();break;case"Height":this.height=o.value.toNumber();break;case"CheckSum":this.checkSum=r.parse(i.StiCheckSum,o.value.toString());break;case"Ratio":this.ratio=o.value.toNumber();break}}},o.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Module":this.module=o.textContent.toNumber();break;case"Height":this.height=o.textContent.toNumber();break;case"CheckSum":this.checkSum=r.parse(i.StiCheckSum,o.textContent);break;case"Ratio":this.ratio=o.textContent.toNumber();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode39BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"serviceName",{get:function(){return"Code39"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"defaultCodeValue",{get:function(){return"ABC123"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"checkSum",{get:function(){return this._checkSum},set:function(t){this._checkSum=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<2&&(this._module=2),t>40&&(this._module=40),this.ratio=this.ratio},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"ratio",{get:function(){return this._ratio},set:function(t){this._ratio=t;var e=this.module>20?2:2.2;t<e&&(this._ratio=e),t>3&&(this._ratio=3)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelFontHeight",{get:function(){return this.code39TextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[15]=!0,t[23]=!0,t},enumerable:!0,configurable:!0}),o.prototype.codeToBar=function(t){for(var e=new n,i=!0,r=0;r<t.length;r++){var o=void 0;o=1==i?"1"==t[r]?"4":"5":"1"==t[r]?"0":"1",e.append(o),i=!i}return e.toString()},o.prototype.draw=function(t,e,r,o){var a=this.getCode(e);a=this.checkCodeSymbols(a,this.code39Symbols);var s=Array.create(Number,a.length+(this.checkSum==i.StiCheckSum.Yes?3:2));s[0]=this.code39StartStopSymbolIndex;for(var l=0,u=0;u<a.length;u++)s[u+1]=this.code39Symbols.indexOf(a[u]),l+=s[u+1];this.checkSum==i.StiCheckSum.Yes&&(s[s.length-2]=l%43),s[s.length-1]=s[0];for(var c=new n,u=0;u<s.length;u++)c.append(this.codeToBar(this.code39Table[s[u]]));this.calculateSizeFull(this.code39SpaceLeft,this.code39SpaceRight,this.code39SpaceTop,this.code39SpaceBottom,this.code39LineHeightShort,this.code39LineHeightLong,this.code39TextPosition,this.code39TextHeight,this.code39MainHeight,this.code39LineHeightForCut,this.ratio,o,a,a,c.toString(),r,e),this.drawBarCode(t,r,e)},o.prototype.createNew=function(){return new o},o}(i.StiBarCodeTypeService);i.StiCode39BarCodeType=o}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function n(e,r,n,o){void 0===e&&(e=13),void 0===r&&(r=1),void 0===n&&(n=2.2),void 0===o&&(o=i.StiCheckSum.Yes);var a=t.call(this,e,r,n,o)||this;return a.code39ExtTable=["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"],a}return __extends(n,t),Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode39ExtBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"serviceName",{get:function(){return"Code39 Extended"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultCodeValue",{get:function(){return"Abc123"},enumerable:!0,configurable:!0}),n.prototype.draw=function(t,e,n,o){var a=this.getCode(e);null==a&&(a=String.empty);for(var s=new r,l=new r,u=0;u<a.length;u++){var c=a.charCodeAt(u);c<128&&(s.append(this.code39ExtTable[c]),l.append(String.fromCharCode(c)))}a=s.toString();var p=Array.create(Number,a.length+(this.checkSum==i.StiCheckSum.Yes?3:2));p[0]=this.code39StartStopSymbolIndex;for(var h=0,u=0;u<a.length;u++)p[u+1]=this.code39Symbols.indexOf(a[u]),h+=p[u+1];this.checkSum==i.StiCheckSum.Yes&&(p[p.length-2]=h%43),p[p.length-1]=p[0];for(var g=new r,u=0;u<p.length;u++)g.append(this.codeToBar(this.code39Table[p[u]]));this.calculateSizeFull(this.code39SpaceLeft,this.code39SpaceRight,this.code39SpaceTop,this.code39SpaceBottom,this.code39LineHeightShort,this.code39LineHeightLong,this.code39TextPosition,this.code39TextHeight,this.code39MainHeight,this.code39LineHeightForCut,this.ratio,o,a,l.toString(),g.toString(),n,e),this.drawBarCode(t,n,e)},n.prototype.createNew=function(){return new n},n}(i.StiCode39BarCodeType);i.StiCode39ExtBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i,r){void 0===e&&(e=13),void 0===i&&(i=1),void 0===r&&(r=2.2);var n=t.call(this)||this;return n.code93Symbols="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",n.code93Table=["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141","1111411"],n._module=13,n._height=1,n._ratio=2.2,n.code93SpaceLeft=10,n.code93SpaceRight=10,n.code93SpaceTop=0,n.code93SpaceBottom=1,n.code93LineHeightShort=45,n.code93LineHeightLong=n.code93LineHeightShort,n.code93TextPosition=n.code93LineHeightShort+n.code93SpaceBottom,n.code93TextHeight=8.33,n.code93MainHeight=55,n.code93LineHeightForCut=n.code93LineHeightShort,n._module=e,n._height=i,n._ratio=r,n}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,13),i.addPropertyNumber("Height",this.height,1),i.addPropertyNumber("Ratio",this.ratio,2.2),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this.module=r.value.toNumber();break;case"Height":this.height=r.value.toNumber();break;case"Ratio":this.ratio=r.value.toNumber();break}}},i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this.module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break;case"Ratio":this.ratio=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode93BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Code93"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"ABC123"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<2&&(this._module=2),t>40&&(this._module=40),this.ratio=this.ratio},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ratio",{get:function(){return this._ratio},set:function(t){this._ratio=t;var e=this.module>20?2:2.2;t<e&&(this._ratio=e),t>3&&(this._ratio=3)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.code93TextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[15]=!0,t},enumerable:!0,configurable:!0}),i.prototype.codeToBar=function(t){for(var e=new r,i=!0,n=0;n<t.length;n++){var o=void 0;if(1==i)switch(t[n]){case"1":o="4";break;case"2":o="5";break;case"3":o="6";break;case"4":o="7";break;default:o="4";break}else switch(t[n]){case"1":o="0";break;case"2":o="1";break;case"3":o="2";break;case"4":o="3";break;default:o="0";break}e.append(o),i=!i}return e.toString()},i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,this.code93Symbols);for(var a=Array.create(Number,o.length+4),s=0;s<o.length;s++)a[s+1]=this.code93Symbols.indexOf(o[s]);for(var l=0,u=1,s=o.length-1;s>=0;s--)l+=a[s+1]*u,++u>20&&(u=1);a[a.length-3]=l%47;var c=0;u=1;for(var s=o.length;s>=0;s--)c+=a[s+1]*u,++u>15&&(u=1);a[a.length-2]=c%47,a[0]=this.code93Table.length-2,a[a.length-1]=this.code93Table.length-1;for(var p=new r,s=0;s<a.length;s++)p.append(this.codeToBar(this.code93Table[a[s]]));this.calculateSizeFull(this.code93SpaceLeft,this.code93SpaceRight,this.code93SpaceTop,this.code93SpaceBottom,this.code93LineHeightShort,this.code93LineHeightLong,this.code93TextPosition,this.code93TextHeight,this.code93MainHeight,this.code93LineHeightForCut,this.ratio,n,o,o,p.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiCode93BarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i,r){void 0===e&&(e=13),void 0===i&&(i=1),void 0===r&&(r=2.2);var n=t.call(this,e,i,r)||this;return n.code93ExtSymbols="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%<]>[",n.code93ExtTable=["]U","<A","<B","<C","<D","<E","<F","<G","<H","<I","<J","<K","<L","<M","<N","<O","<P","<Q","<R","<S","<T","<U","<V","<W","<X","<Y","<Z","]A","]B","]C","]D","]E"," ",">A",">B",">C",">D",">E",">F",">G",">H",">I",">J",">K",">L","-",".",">O","0","1","2","3","4","5","6","7","8","9",">Z","]F","]G","]H","]I","]J","]V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","]K","]L","]M","]N","]O","]W","[A","[B","[C","[D","[E","[F","[G","[H","[I","[J","[K","[L","[M","[N","[O","[P","[Q","[R","[S","[T","[U","[V","[W","[X","[Y","[Z","]P","]Q","]R","]S","]T"],n}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCode93ExtBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Code93 Extended"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"Abc123"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);null==o&&(o=String.empty);for(var a=new r,s=new r,l=0;l<o.length;l++){var u=o.charCodeAt(l);u<128&&(a.append(this.code93ExtTable[u]),s.append(String.fromCharCode(u)))}o=a.toString();for(var c=Array.create(Number,o.length+4),l=0;l<o.length;l++)c[l+1]=this.code93ExtSymbols.indexOf(o[l]);for(var p=0,h=1,l=o.length-1;l>=0;l--)p+=c[l+1]*h,++h>20&&(h=1);c[c.length-3]=p%47;var g=0;h=1;for(var l=o.length;l>=0;l--)g+=c[l+1]*h,++h>15&&(h=1);c[c.length-2]=g%47,c[0]=this.code93Table.length-2,c[c.length-1]=this.code93Table.length-1;for(var m=new r,l=0;l<c.length;l++)m.append(this.codeToBar(this.code93Table[c[l]]));this.calculateSizeFull(this.code93SpaceLeft,this.code93SpaceRight,this.code93SpaceTop,this.code93SpaceBottom,this.code93LineHeightShort,this.code93LineHeightLong,this.code93TextPosition,this.code93TextHeight,this.code93MainHeight,this.code93LineHeightForCut,this.ratio,n,o,s.toString(),m.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode93BarCodeType);i.StiCode93ExtBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n;!function(t){t[t.Padding=129]="Padding",t[t.ModeC40=230]="ModeC40",t[t.ModeBinary=231]="ModeBinary",t[t.ModeX12=238]="ModeX12",t[t.ModeText=239]="ModeText",t[t.ModeEdifact=240]="ModeEdifact",t[t.EscapeToAscii=254]="EscapeToAscii"}(n||(n={}));var o=function(){function t(t){this.log=null,this.alog=null,this.rspoly=null,this.logmod=255,this.log=Array.create(Number,this.logmod+1),this.alog=Array.create(Number,this.logmod);for(var e=1,i=0;i<this.logmod;i++)this.alog[i]=e,this.log[e]=i,(e<<=1)>255&&(e^=301);this.rlen=t,this.rspoly=Array.create(Number,t+1);var r=1;this.rspoly[0]=1;for(var n=1;n<=t;n++){this.rspoly[n]=1;for(var o=n-1;o>0;o--)0!=this.rspoly[o]&&(this.rspoly[o]=this.alog[(this.log[this.rspoly[o]]+r)%this.logmod]),this.rspoly[o]^=this.rspoly[o-1];this.rspoly[0]=this.alog[(this.log[this.rspoly[0]]+r)%this.logmod],r++}}return t.prototype.encode=function(t,e){for(var i=Array.create(Number,this.rlen),r=0;r<t;r++){for(var n=i[this.rlen-1]^e[r],o=this.rlen-1;o>0;o--)0!=n&&0!=this.rspoly[o]?i[o]=i[o-1]^this.alog[(this.log[n]+this.log[this.rspoly[o]])%this.logmod]:i[o]=i[o-1];0!=n&&0!=this.rspoly[0]?i[0]=this.alog[(this.log[n]+this.log[this.rspoly[0]])%this.logmod]:i[0]=0}return i},t}(),a=function(){function t(t,e,i,r,n,o,a){this.height=t,this.width=e,this.fh=i,this.fw=r,this.bytes=n,this.datablock=o,this.rsblock=a}return t}(),s=function(){function t(e,r,n,o){this.gridWidth=0,this.gridHeight=0,this.grid=null,this._errorMessage=null,this.ecc200List=null;var s=t.convertStringToBytes(e);this.gridWidth=0,this.gridHeight=0;var l=null;if(o!=i.StiDataMatrixSize.Automatic&&(n=!0),this.ecc200List=n?[new a(10,10,10,10,3,3,5),new a(12,12,12,12,5,5,7),new a(8,18,8,18,5,5,7),new a(14,14,14,14,8,8,10),new a(8,32,8,16,10,10,11),new a(16,16,16,16,12,12,12),new a(12,26,12,26,16,16,14),new a(18,18,18,18,18,18,14),new a(20,20,20,20,22,22,18),new a(12,36,12,18,22,22,18),new a(22,22,22,22,30,30,20),new a(16,36,16,18,32,32,24),new a(24,24,24,24,36,36,24),new a(26,26,26,26,44,44,28),new a(16,48,16,24,49,49,28),new a(32,32,16,16,62,62,36),new a(36,36,18,18,86,86,42),new a(40,40,20,20,114,114,48),new a(44,44,22,22,144,144,56),new a(48,48,24,24,174,174,68),new a(52,52,26,26,204,102,42),new a(64,64,16,16,280,140,56),new a(72,72,18,18,368,92,36),new a(80,80,20,20,456,114,48),new a(88,88,22,22,576,144,56),new a(96,96,24,24,696,174,68),new a(104,104,26,26,816,136,56),new a(120,120,20,20,1050,175,68),new a(132,132,22,22,1304,163,62),new a(144,144,24,24,1558,156,62)]:[new a(10,10,10,10,3,3,5),new a(12,12,12,12,5,5,7),new a(14,14,14,14,8,8,10),new a(16,16,16,16,12,12,12),new a(18,18,18,18,18,18,14),new a(20,20,20,20,22,22,18),new a(22,22,22,22,30,30,20),new a(24,24,24,24,36,36,24),new a(26,26,26,26,44,44,28),new a(32,32,16,16,62,62,36),new a(36,36,18,18,86,86,42),new a(40,40,20,20,114,114,48),new a(44,44,22,22,144,144,56),new a(48,48,24,24,174,174,68),new a(52,52,26,26,204,102,42),new a(64,64,16,16,280,140,56),new a(72,72,18,18,368,92,36),new a(80,80,20,20,456,114,48),new a(88,88,22,22,576,144,56),new a(96,96,24,24,696,174,68),new a(104,104,26,26,816,136,56),new a(120,120,20,20,1050,175,68),new a(132,132,22,22,1304,163,62),new a(144,144,24,24,1558,156,62)],o!=i.StiDataMatrixSize.Automatic){var u=this.ecc200List[o];this.gridWidth=u.width,this.gridHeight=u.height}try{var c={ref:this.gridWidth},p={ref:this.gridHeight};l=this.makeGrid(s,c,p,r),this.gridWidth=c.ref,this.gridHeight=p.ref}catch(t){this._errorMessage=t.message}if(null!=l){this.grid=Array.create(Number,this.gridWidth*this.gridHeight);for(var h=0;h<this.gridHeight;h++)for(var g=h*this.gridWidth,m=(this.gridHeight-h-1)*this.gridWidth,d=0;d<this.gridWidth;d++)this.grid[m+d]=l[g+d]}}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.grid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.gridWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.gridHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:!0,configurable:!0}),t.prototype.dataMatrixPlacementbit=function(t,e,i,r,n,o,a){r<0&&(r+=e,n+=4-(e+4)%8),n<0&&(n+=i,r+=4-(i+4)%8),t[r*i+n]=(o<<3)+a},t.prototype.dataMatrixPlacementBlock=function(t,e,i,r,n,o){this.dataMatrixPlacementbit(t,e,i,r-2,n-2,o,7),this.dataMatrixPlacementbit(t,e,i,r-2,n-1,o,6),this.dataMatrixPlacementbit(t,e,i,r-1,n-2,o,5),this.dataMatrixPlacementbit(t,e,i,r-1,n-1,o,4),this.dataMatrixPlacementbit(t,e,i,r-1,n-0,o,3),this.dataMatrixPlacementbit(t,e,i,r-0,n-2,o,2),this.dataMatrixPlacementbit(t,e,i,r-0,n-1,o,1),this.dataMatrixPlacementbit(t,e,i,r-0,n-0,o,0)},t.prototype.dataMatrixPlacementCornerA=function(t,e,i,r){this.dataMatrixPlacementbit(t,e,i,e-1,0,r,7),this.dataMatrixPlacementbit(t,e,i,e-1,1,r,6),this.dataMatrixPlacementbit(t,e,i,e-1,2,r,5),this.dataMatrixPlacementbit(t,e,i,0,i-2,r,4),this.dataMatrixPlacementbit(t,e,i,0,i-1,r,3),this.dataMatrixPlacementbit(t,e,i,1,i-1,r,2),this.dataMatrixPlacementbit(t,e,i,2,i-1,r,1),this.dataMatrixPlacementbit(t,e,i,3,i-1,r,0)},t.prototype.dataMatrixPlacementCornerB=function(t,e,i,r){this.dataMatrixPlacementbit(t,e,i,e-3,0,r,7),this.dataMatrixPlacementbit(t,e,i,e-2,0,r,6),this.dataMatrixPlacementbit(t,e,i,e-1,0,r,5),this.dataMatrixPlacementbit(t,e,i,0,i-4,r,4),this.dataMatrixPlacementbit(t,e,i,0,i-3,r,3),this.dataMatrixPlacementbit(t,e,i,0,i-2,r,2),this.dataMatrixPlacementbit(t,e,i,0,i-1,r,1),this.dataMatrixPlacementbit(t,e,i,1,i-1,r,0)},t.prototype.dataMatrixPlacementCornerC=function(t,e,i,r){this.dataMatrixPlacementbit(t,e,i,e-3,0,r,7),this.dataMatrixPlacementbit(t,e,i,e-2,0,r,6),this.dataMatrixPlacementbit(t,e,i,e-1,0,r,5),this.dataMatrixPlacementbit(t,e,i,0,i-2,r,4),this.dataMatrixPlacementbit(t,e,i,0,i-1,r,3),this.dataMatrixPlacementbit(t,e,i,1,i-1,r,2),this.dataMatrixPlacementbit(t,e,i,2,i-1,r,1),this.dataMatrixPlacementbit(t,e,i,3,i-1,r,0)},t.prototype.dataMatrixPlacementCornerD=function(t,e,i,r){this.dataMatrixPlacementbit(t,e,i,e-1,0,r,7),this.dataMatrixPlacementbit(t,e,i,e-1,i-1,r,6),this.dataMatrixPlacementbit(t,e,i,0,i-3,r,5),this.dataMatrixPlacementbit(t,e,i,0,i-2,r,4),this.dataMatrixPlacementbit(t,e,i,0,i-1,r,3),this.dataMatrixPlacementbit(t,e,i,1,i-3,r,2),this.dataMatrixPlacementbit(t,e,i,1,i-2,r,1),this.dataMatrixPlacementbit(t,e,i,1,i-1,r,0)},t.prototype.dataMatrixPlacement=function(t,e){var i=Array.create(Number,e*t),r=4,n=0,o=1;do{r==t&&0==n&&this.dataMatrixPlacementCornerA(i,t,e,o++),r==t-2&&0==n&&e%4!=0&&this.dataMatrixPlacementCornerB(i,t,e,o++),r==t-2&&0==n&&e%8==4&&this.dataMatrixPlacementCornerC(i,t,e,o++),r==t+4&&2==n&&e%8==0&&this.dataMatrixPlacementCornerD(i,t,e,o++);do{r<t&&n>=0&&0==i[r*e+n]&&this.dataMatrixPlacementBlock(i,t,e,r,n,o++),r-=2,n+=2}while(r>=0&&n<e);r++,n+=3;do{r>=0&&n<e&&0==i[r*e+n]&&this.dataMatrixPlacementBlock(i,t,e,r,n,o++),r+=2,n-=2}while(r<t&&n>=0);r+=3,n++}while(r<t||n<e);return 0==i[t*e-1]&&(i[t*e-1]=i[t*e-e-2]=1),i},t.prototype.makeEcc200Blocks=function(t,e,i,r){for(var n=new o(r),a=Math.floor((e+2)/i),s=0;s<a;s++){for(var l=Array.create(Number,256),u=0,c=s;c<e;c+=a)l[u++]=t[c];var p=n.encode(u,l);u=r-1;for(var c=s;c<r*a;c+=a)t[e+c]=p[u--]}},t.prototype.dataMatrixEncode=function(t,e,r,o){var a=0,s=0;if(r.length>0)switch(o){case i.StiDataMatrixEncodingType.C40:case i.StiDataMatrixEncodingType.Text:case i.StiDataMatrixEncodingType.X12:var l={res:s},u={res:a};this.encodeCTX(t,e,r,o,l,u),s=l.res,a=u.res;break;case i.StiDataMatrixEncodingType.Edifact:var l={res:s},u={res:a};this.encodeE(t,e,r,l,u),s=l.res,a=u.res;break;case i.StiDataMatrixEncodingType.Ascii:var l={res:s},u={res:a};this.encodeA(t,e,r,l,u),s=l.res,a=u.res;break;case i.StiDataMatrixEncodingType.Binary:var l={res:s},u={res:a};this.encodeB(t,e,r,l,u),s=l.res,a=u.res;break}var c=a;a<e&&o!=i.StiDataMatrixEncodingType.Ascii&&(t[a++]=n.EscapeToAscii),a<e&&(t[a++]=n.Padding);while(a<e){var p=129+149*(a+1)%253+1;p>254&&(p-=254),t[a++]=p}if(a>e||s<r.length)return 0;return c},t.prototype.encodeB=function(t,e,i,r,o){var a=r.res,s=o.res;a=0,s=0,t[s++]=n.ModeBinary,i.length<250?t[s++]=i.length:(t[s++]=249+i.length/250,t[s++]=i.length%250);do{t[s]=i[a++]+149*(s+1)%255+1,s++}while(a<i.length&&s<e);r.res=a,o.res=s},t.prototype.encodeA=function(e,i,r,n,o){var a=n.res,s=o.res;a=0,s=0;do{r.length-a>=2&&t.isDigit(r[a])&&t.isDigit(r[a+1])?(e[s++]=10*(r[a]-"0".charCodeAt(0))+r[a+1]-"0".charCodeAt(0)+130,a+=2):r[a]>127?(e[s++]=235,e[s++]=r[a++]-127):e[s++]=r[a++]+1}while(a<r.length&&s<i);n.res=a,o.res=s},t.prototype.encodeE=function(t,e,i,r,o){var a=r.res,s=o.res,l=Array.create(Number,4);a=0,s=0,t[s++]=n.ModeEdifact;do{l[0]=0,l[1]=0,l[2]=0,l[3]=0;var u=0;while(a<i.length&&u<4)l[u++]=i[a++];u<4&&(l[u++]=31),t[s]=(63&l[0])<<2,t[s++]|=(48&l[1])>>4,t[s]=(15&l[1])<<4,2==u?s++:(t[s++]|=(60&l[2])>>2,t[s]=(3&l[2])<<6,t[s++]|=63&l[3])}while(a<i.length&&s<e);r.res=a,o.res=s},t.prototype.encodeCTX=function(t,e,r,o,a,s){var l=a.res,u=s.res,c=Array.create(Number,6),p=0;u=0,l=0;var h="!\"#$%&'()*+,-./:;<=>?@[\\]_",g="",m="";o==i.StiDataMatrixEncodingType.C40&&(t[u++]=n.ModeC40,m=" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",g="`abcdefghijklmnopqrstuvwxyz{|}~7"),o==i.StiDataMatrixEncodingType.Text&&(t[u++]=n.ModeText,m=" 0123456789abcdefghijklmnopqrstuvwxyz",g="`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~7"),o==i.StiDataMatrixEncodingType.X12&&(t[u++]=n.ModeX12,m=" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\r*>");do{var d=r[l++];if(0!=(128&d)){if(o==i.StiDataMatrixEncodingType.X12)throw String.stiFormat("Cannot encode char 0x{0:X2} in X12",d);d&=127,c[p++]=1,c[p++]=30}var S=m.indexOf(String.fromCharCode(d));if(S>=0)c[p++]=(S+3)%40;else{if(o==i.StiDataMatrixEncodingType.X12)throw String.stiFormat("Cannot encode char 0x{0:X2} in X12",d);if(d<32)c[p++]=0,c[p++]=d;else if((S=h.indexOf(String.fromCharCode(d)))>=0)c[p++]=1,c[p++]=S;else{if(!((S=g.indexOf(String.fromCharCode(d)))>=0))throw String.stiFormat("Cannot encode char 0x{0:X2}",d);c[p++]=2,c[p++]=S}}l==r.length&&p%3!=0&&(c[p++]=n.EscapeToAscii,p%3==2&&(c[p++]=0));while(p>=3){var f=1600*c[0]+40*c[1]+c[2]+1;t[u++]=f>>8,t[u++]=255&f,p-=3,c[0]=c[3],c[1]=c[4],c[2]=c[5],c[3]=0,c[4]=0,c[5]=0}}while(l<r.length&&u<e);a.res=l,s.res=u},t.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},t.convertStringToBytes=function(t){for(var e=Array.create(Number,t.length),i=0;i<t.length;i++)e[i]=t[i].charCodeAt(0);return e},t.prototype.makeGrid=function(t,e,i,r){var n=e.ref,o=i.ref,a=n,s=o,l=Array.create(Number,3200),u=null,c=0;if(0!=a){for(c=0;c<this.ecc200List.length;c++)if(this.ecc200List[c].width==a&&this.ecc200List[c].height==s)break;if(c==this.ecc200List.length)throw String.stiFormat("Invalid size {0}x{1}",a,s)}else{var p=this.dataMatrixEncode(l,1558,t,r);for(c=0;c<this.ecc200List.length;c++)if(p<=this.ecc200List[c].bytes)break;if(c==this.ecc200List.length||0==p&&t.length>0)throw"Cannot find suitable size, barcode too long";a=this.ecc200List[c].width,s=this.ecc200List[c].height}if(0==this.dataMatrixEncode(l,this.ecc200List[c].bytes,t,r)&&t.length>0)throw String.stiFormat("Barcode too long for {0}x{1}",a,s);this.makeEcc200Blocks(l,this.ecc200List[c].bytes,this.ecc200List[c].datablock,this.ecc200List[c].rsblock);var h=a-2*(a/this.ecc200List[c].fw),g=s-2*(s/this.ecc200List[c].fh),m=this.dataMatrixPlacement(g,h);u=Array.create(Number,a*s);var d=0,S=0;for(S=0;S<s;S+=this.ecc200List[c].fh){for(d=0;d<a;d++)u[S*a+d]=1;for(d=0;d<a;d+=2)u[(S+this.ecc200List[c].fh-1)*a+d]=1}for(d=0;d<a;d+=this.ecc200List[c].fw){for(S=0;S<s;S++)u[S*a+d]=1;for(S=0;S<s;S+=2)u[S*a+d+this.ecc200List[c].fw-1]=1}for(S=0;S<g;S++)for(d=0;d<h;d++){var f=m[(g-S-1)*h+d];(1==f||f>7&&0!=(l[(f>>3)-1]&1<<(7&f)))&&(u[(1+S+2*Math.floor(S/(this.ecc200List[c].fh-2)))*a+1+d+2*Math.floor(d/(this.ecc200List[c].fw-2))]=1)}return n=a,o=s,e.ref=n,i.ref=o,u},t}();i.StiDataMatrix=s;var l=function(t){function n(e,r,n,o){void 0===e&&(e=40),void 0===r&&(r=i.StiDataMatrixEncodingType.Ascii),void 0===n&&(n=!1),void 0===o&&(o=i.StiDataMatrixSize.Automatic);var a=t.call(this)||this;return a._module=40,a._height=1,a._encodingType=i.StiDataMatrixEncodingType.Ascii,a._matrixSize=i.StiDataMatrixSize.Automatic,a._useRectangularSymbols=!1,a.module=e,a.encodingType=r,a.useRectangularSymbols=n,a.matrixSize=o,a}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyNumber("Height",this.height,1),r.addPropertyNumber("Module",this.module,40),r.addPropertyEnum("EncodingType",i.StiDataMatrixEncodingType,this.encodingType,i.StiDataMatrixEncodingType.Ascii),r.addPropertyEnum("MatrixSize",i.StiDataMatrixSize,this.matrixSize,i.StiDataMatrixSize.Automatic),r.addPropertyBool("UseRectangularSymbols",this.useRectangularSymbols),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Module":this.module=o.value.toNumber();break;case"Height":this.height=o.value.toNumber();break;case"EncodingType":this.encodingType=r.parse(i.StiDataMatrixEncodingType,o.value.toString());break;case"MatrixSize":this.matrixSize=r.parse(i.StiDataMatrixSize,o.value.toString());break;case"UseRectangularSymbols":this.useRectangularSymbols=o.value.toBoolean();break}}},n.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Module":this.module=o.textContent.toNumber();break;case"Height":this.height=o.textContent.toNumber();break;case"EncodingType":this.encodingType=r.parse(i.StiDataMatrixEncodingType,o.textContent);break;case"MatrixSize":this.matrixSize=r.parse(i.StiDataMatrixSize,o.textContent);break;case"UseRectangularSymbols":this.useRectangularSymbols=o.textContent.toBoolean();break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiDataMatrixBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"serviceName",{get:function(){return"DataMatrix"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultCodeValue",{get:function(){return"12345678901"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<2&&(this._module=2),t>400&&(this._module=400)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"encodingType",{get:function(){return this._encodingType},set:function(t){this._encodingType=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"matrixSize",{get:function(){return this._matrixSize},set:function(t){this._matrixSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useRectangularSymbols",{get:function(){return this._useRectangularSymbols},set:function(t){this._useRectangularSymbols=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelFontHeight",{get:function(){return this.defaultLabelFontHeight},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[9]=!0,t[12]=!0,t[13]=!0,t[21]=!0,t},enumerable:!0,configurable:!0}),n.prototype.draw=function(t,e,i,r){var n=this.getCode(e);this.barCodeData.code=n;var o=new s(n,this.encodingType,this.useRectangularSymbols,this.matrixSize);this.barCodeData.matrixGrid=o.matrix,this.barCodeData.matrixWidth=o.width,this.barCodeData.matrixHeight=o.height,this.barCodeData.matrixRatioY=1,null==o.errorMessage?this.draw2DBarCode(t,i,e,r):this.drawBarCodeError2(t,i,e,o.errorMessage)},n.prototype.createNew=function(){return new n},n}(i.StiBarCodeTypeService);i.StiDataMatrixBarCodeType=l}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.StringAlignment,n=t.System.Text.StringBuilder,o=function(t){function i(e,i){void 0===e&&(e=20),void 0===i&&(i=1);var r=t.call(this)||this;return r.dutchKIXSymbols="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",r.dutchKIXCodes=["3300","3210","3201","2310","2301","2211","3120","3030","3021","2130","2121","2031","3102","3012","3003","2112","2103","2013","1320","1230","1221","0330","0321","0231","1302","1212","1203","0312","0303","0213","1122","1032","1023","0132","0123","0033"],r._module=20,r._height=1,r.dutchKIXSpaceLeft=3.9,r.dutchKIXSpaceRight=3.9,r.dutchKIXSpaceTop=3.9,r.dutchKIXSpaceBottom=2,r.dutchKIXLineHeightLong=10,r.dutchKIXLineHeightShort=.62*r.dutchKIXLineHeightLong,r.dutchKIXTextPosition=r.dutchKIXSpaceTop+r.dutchKIXLineHeightLong+r.dutchKIXSpaceBottom+1,r.dutchKIXTextHeight=5,r.dutchKIXMainHeight=r.dutchKIXSpaceTop+r.dutchKIXLineHeightLong+r.dutchKIXSpaceBottom+7,r.dutchKIXLineHeightForCut=r.dutchKIXLineHeightLong,r._module=e,r._height=i,r}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,20),i.addPropertyNumber("Height",this.height,1),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this._module=r.value.toNumber();break;case"Height":this._height=r.value.toNumber();break}}},i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this._module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiDutchKIXBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Royal TPG Post KIX 4-State"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"2500GG30250"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<15&&(this._module=15),t>25&&(this._module=25)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<1&&(this._height=1),t>1&&(this._height=1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.dutchKIXTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[13]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textAlignment",{get:function(){return r.Center},enumerable:!0,configurable:!0}),i.prototype.charTo4State=function(t){var e=this.dutchKIXSymbols.indexOf(t);return this.dutchKIXCodes[e]},i.prototype.stateToBar=function(t){for(var e=new n,i=0;i<t.length;i++){switch(t[i]){case"0":e.append("c");break;case"1":e.append("d");break;case"2":e.append("e");break;case"3":e.append("f");break}e.append("0")}return e.toString()},i.prototype.makeBarsArray=function(t,e,i){for(var r=t.ref,o=e.ref,a=i.ref,s=new n,l=0;l<r.length;l++)s.append(this.charTo4State(r[l]));return o=this.stateToBar(s.toString()),t.ref=r,e.ref=o,i.ref=a,!0},i.prototype.draw=function(t,e,i,r){var n=this.getCode(e);n=this.checkCodeSymbols(n,this.dutchKIXSymbols);var o=String.empty,a=String.empty,s={ref:n},l={ref:o},u={ref:a};this.makeBarsArray(s,l,u)?(n=s.ref,o=l.ref,a=u.ref,this.calculateSizeFull(this.dutchKIXSpaceLeft,this.dutchKIXSpaceRight,this.dutchKIXSpaceTop,this.dutchKIXSpaceBottom,this.dutchKIXLineHeightShort,this.dutchKIXLineHeightLong,this.dutchKIXTextPosition,this.dutchKIXTextHeight,this.dutchKIXMainHeight,this.dutchKIXLineHeightForCut,1,r,n,n,o,i,e),this.drawBarCode(t,i,e)):a.length>0?this.drawBarCodeError2(t,i,e,a):this.drawBarCodeError(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiDutchKIXBarCodeType=o}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiEAN128AutoBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"EAN-128 Auto"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"1234567890123"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){for(var o=this.getCode(e),a=new r,s=0;s<o.length;s++){var l=o.charCodeAt(s);a.append(l>=32&&129!=l?String.fromCharCode(l):String.fromCharCode(8729))}for(var u=this.encodeAuto(o,!0),c=Array.create(Number,u.length),s=0;s<u.length;s++)c[s]=u.toString().charCodeAt(s);for(var p=c[0]+c[1],s=0;s<u.length-4;s++)p+=c[s+2]*(s+2);c[c.length-2]=p%103;for(var h=new r,s=0;s<c.length;s++)h.append(this.codeToBar(this.code128Table[c[s]]));var g=a.toString();this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,g,h.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiEAN128AutoBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiEAN128aBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"EAN-128a"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"ABC123"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o," !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"+"\0\b\t\n\v\f\r"+""+"");var a=new r,s=Array.create(Number,o.length+4);s[0]=103,s[1]=102;for(var l=s[0]+s[1],u=0;u<o.length;u++){var c=o.charCodeAt(u);s[u+2]=c>=32?c-32:c+64,129==c&&(s[u+2]=102),l+=s[u+2]*(u+2),a.append(c>=32&&129!=c?String.fromCharCode(c):String.fromCharCode(8729))}s[s.length-2]=l%103,s[s.length-1]=106;for(var p=new r,u=0;u<s.length;u++)p.append(this.codeToBar(this.code128Table[s[u]]));var h=a.toString();this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,h,p.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiEAN128aBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiEAN128bBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"EAN-128b"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"ABCabc123"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o," !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"+"F"+"");var a=new r,s=Array.create(Number,o.length+4);s[0]=104,s[1]=102;for(var l=s[0]+s[1],u=0;u<o.length;u++){var c=o.charCodeAt(u);s[u+2]=c-32,129==c&&(s[u+2]=102),l+=s[u+2]*(u+2),a.append(129!=c?String.fromCharCode(c):String.fromCharCode(8729))}s[s.length-2]=l%103,s[s.length-1]=106;for(var p=new r,u=0;u<s.length;u++)p.append(this.codeToBar(this.code128Table[s[u]]));var h=a.toString();this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,h,p.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiEAN128bBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){return void 0===e&&(e=13),void 0===i&&(i=1),t.call(this,e,i)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiEAN128cBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"EAN-128c"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"0123456789012345"},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,"0123456789"+"");for(var a=[],s=new r,l=String.empty,u=0;u<o.length;u++){var c=o.charCodeAt(u);129==c?(a.add(l),l=String.empty,s.append(String.fromCharCode(8226))):(l+=String.fromCharCode(c),s.append(c))}l.length>0&&a.add(l),0==a.count&&a.add(l);for(var p=new r,u=0;u<a.count;u++){for(var h=a[u],g=Math.floor(h.length/2),m=0;m<g;m++){var d=new Number(h.substr(2*m,2)).valueOf();p.append(String.fromCharCode(d))}if(h.length%2==1){p.append(String.fromCharCode(100));var d=h.charCodeAt(h.length-1);p.append(String.fromCharCode(d-32)),u<a.count-1&&p.append(String.fromCharCode(99))}u<a.count-1&&p.append(String.fromCharCode(102))}var S=Array.create(Number,p.length+4);S[0]=105,S[1]=102;for(var u=0;u<p.length;u++)S[u+2]=p.toString().charCodeAt(u);for(var f=S[0]+S[1],u=0;u<S.length-4;u++)f+=S[u+2]*(u+2);S[S.length-2]=f%103,S[S.length-1]=106;for(var y=new r,u=0;u<S.length;u++)y.append(this.codeToBar(this.code128Table[S[u]]));for(var b=new r,u=0;u<s.length;u++){var d=new Number(s.toString().substr(u,2)).valueOf();b.append(String.fromCharCode(d)),u++}this.calculateSizeFull(this.code128SpaceLeft,this.code128SpaceRight,this.code128SpaceTop,this.code128SpaceBottom,this.code128LineHeightShort,this.code128LineHeightLong,this.code128TextPosition,this.code128TextHeight,this.code128MainHeight,this.code128LineHeightForCut,2,n,o,b.toString(),y.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiCode128BarCodeType);i.StiEAN128cBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.StringAlignment,n=t.System.Drawing.GraphicsUnit,o=t.Report.Components.StiAngle,a=t.System.Text.StringBuilder,s=t.System.Drawing.Rectangle,l=t.Base.Drawing.StiSolidBrush,u=t.System.Drawing.Font,c=t.System.Drawing.StringFormat,p=t.System.Enum,h=function(){function t(t,e,i,r){void 0===r&&(r=!1),this.symbolType=t,this.symbolText=e,this.textAtTop=i,this.makeLonger=r}return t}();i.EanBarInfo=h;var g;!function(t){t[t.ComboA0=0]="ComboA0",t[t.ComboA1=1]="ComboA1",t[t.ComboA2=2]="ComboA2",t[t.ComboA3=3]="ComboA3",t[t.ComboA4=4]="ComboA4",t[t.ComboA5=5]="ComboA5",t[t.ComboA6=6]="ComboA6",t[t.ComboA7=7]="ComboA7",t[t.ComboA8=8]="ComboA8",t[t.ComboA9=9]="ComboA9",t[t.ComboB0=10]="ComboB0",t[t.ComboB1=11]="ComboB1",t[t.ComboB2=12]="ComboB2",t[t.ComboB3=13]="ComboB3",t[t.ComboB4=14]="ComboB4",t[t.ComboB5=15]="ComboB5",t[t.ComboB6=16]="ComboB6",t[t.ComboB7=17]="ComboB7",t[t.ComboB8=18]="ComboB8",t[t.ComboB9=19]="ComboB9",t[t.ComboC0=20]="ComboC0",t[t.ComboC1=21]="ComboC1",t[t.ComboC2=22]="ComboC2",t[t.ComboC3=23]="ComboC3",t[t.ComboC4=24]="ComboC4",t[t.ComboC5=25]="ComboC5",t[t.ComboC6=26]="ComboC6",t[t.ComboC7=27]="ComboC7",t[t.ComboC8=28]="ComboC8",t[t.ComboC9=29]="ComboC9",t[t.GuardLeft=30]="GuardLeft",t[t.GuardCenter=31]="GuardCenter",t[t.GuardRight=32]="GuardRight",t[t.GuardSpecial=33]="GuardSpecial",t[t.GuardAddLeft=34]="GuardAddLeft",t[t.GuardAddDelineator=35]="GuardAddDelineator",t[t.SpaceLeft=36]="SpaceLeft",t[t.SpaceRight=37]="SpaceRight",t[t.SpaceBeforeAdd=38]="SpaceBeforeAdd"}(g=i.Ean13Symbol||(i.Ean13Symbol={}));var m=function(t){function m(e,r,n,o,a){void 0===e&&(e=13),void 0===r&&(r=1),void 0===n&&(n=i.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0);var s=t.call(this)||this;return s._module=13,s._height=1,s._supplementType=i.StiEanSupplementType.None,s._supplementCodeValue=null,s._showQuietZoneIndicator=!0,s.symComboSet=["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],s.symParitySetAdd2=["oo","oe","eo","ee"],s.symParitySetAdd5=["eeooo","eoeoo","eooeo","eoooe","oeeoo","ooeeo","oooee","oeoeo","oeooe","ooeoe"],s.ean13SymData=["2504","1514","1415","0704","0425","0524","0407","0605","0506","2405","0416","0515","1505","0434","1604","0614","3404","1424","2414","1406","6140","5150","5051","4340","4061","4160","4043","4241","4142","6041","808","08080","808","080808","809","08","x","y","z"],s.module=e,s.height=r,s.supplementType=n,s._supplementCodeValue=o,s.showQuietZoneIndicator=a,s}return __extends(m,t),m.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyNumber("Module",this.module,13),r.addPropertyNumber("Height",this.height,1),r.addPropertyEnum("SupplementType",i.StiEanSupplementType,this.supplementType,i.StiEanSupplementType.None),r.addPropertyStringNullOfEmpty("SupplementCode",this.supplementCode),r.addPropertyBool("ShowQuietZoneIndicator",this.showQuietZoneIndicator,!0),r},m.prototype.loadFromJsonObject=function(t){for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"Module":this.module=n.value.toNumber();break;case"Height":this.height=n.value.toNumber();break;case"SupplementType":this.supplementType=p.parse(i.StiEanSupplementType,n.value.toString());break;case"SupplementCode":this._supplementCodeValue=n.value.toString();break;case"ShowQuietZoneIndicator":this.showQuietZoneIndicator=n.value.toBoolean();break}}},m.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"Module":this.module=n.textContent.toNumber();break;case"Height":this.height=n.textContent.toNumber();break;case"SupplementType":this.supplementType=p.parse(i.StiEanSupplementType,n.textContent.toString());break;case"SupplementCode":this._supplementCodeValue=n.textContent.toString();break;case"ShowQuietZoneIndicator":this.showQuietZoneIndicator=n.textContent.toBoolean();break}}},Object.defineProperty(m.prototype,"componentId",{get:function(){return e.StiComponentId.StiEAN13BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"serviceName",{get:function(){return"EAN-13"},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"defaultCodeValue",{get:function(){return"0123456789012"},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[17]=!0,t[19]=!0,t[20]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<10.4&&(this._module=10.4),t>26&&(this._module=26)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>1&&(this._height=1)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"supplementType",{get:function(){return this._supplementType},set:function(t){this._supplementType=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"supplementCode",{get:function(){return this._supplementCodeValue},set:function(t){this._supplementCodeValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"showQuietZoneIndicator",{get:function(){return this._showQuietZoneIndicator},set:function(t){this._showQuietZoneIndicator=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"labelFontHeight",{get:function(){return this.eanTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanSpaceLeft",{get:function(){return 11},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanSpaceRight",{get:function(){return 8},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanSpaceTop",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanSpaceBottom",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanSpaceBeforeAdd",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanSpaceTextTop",{get:function(){return 10},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanLineHeightShort",{get:function(){return 69.2},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanLineHeightLong",{get:function(){return this.eanLineHeightShort+5},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanTextPositionTop",{get:function(){return.5},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanTextPositionBottom",{get:function(){return this.eanLineHeightShort+this.eanSpaceBottom},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanTextHeight",{get:function(){return 8.33},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanMainHeight",{get:function(){return 78.58},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanLineHeightForCut",{get:function(){return this.eanLineHeightShort},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"eanWideToNarrowRatio",{get:function(){return 2},enumerable:!0,configurable:!0}),m.prototype.calculateSizeEan=function(t,e,i,r,n){this.barCodeData.wideToNarrowRatio=2,this.barCodeData.eanBarsArray=i;for(var l=new a,u=0,c=i;u<c.length;u++){var p=c[u];l.append(this.ean13SymData[p.symbolType])}var h=this.getSymbolsStringWidth(l.toString());this.rectWindow=new s(0,0,r.width,r.height),n.angle!=o.Angle90&&n.angle!=o.Angle270||(this.rectWindow=new s(0,0,r.height,r.width));var g=this.module/10*e,m=g,d=this.eanLineHeightForCut*(1-this.height),S=this.eanSpaceTextTop;n.autoScale&&(g=this.rectWindow.width/h,d=-(this.rectWindow.height/m-(this.eanMainHeight+t)),n.showLabelText||(d-=this.eanTextHeight,S-=this.eanTextHeight)),this.barCodeData.fullZoomY=m,this.barCodeData.spaceLeft=this.eanSpaceLeft*g,this.barCodeData.spaceRight=this.eanSpaceRight*g,this.barCodeData.spaceBeforeAdd=this.eanSpaceBeforeAdd*g,this.barCodeData.lineWidth=1*g,this.barCodeData.mainWidth=h*g,this.barCodeData.spaceTop=this.eanSpaceTop*m,this.barCodeData.spaceBottom=this.eanSpaceBottom*m,this.barCodeData.spaceTextTop=S*m,this.barCodeData.lineHeightShort=(this.eanLineHeightShort-d)*m,this.barCodeData.lineHeightLong=(this.eanLineHeightLong-d)*m,this.barCodeData.textPositionTop=this.eanTextPositionTop*m,this.barCodeData.textPositionBottom=(this.eanTextPositionBottom-d)*m,this.barCodeData.mainHeight=(this.eanMainHeight+t-d)*m,this.barCodeData.textHeight=this.eanTextHeight*m,this.barCodeData.offsetY=t*m},m.prototype.drawEanBars=function(t,e,i){var o=new l(i.backColor),a=new l(i.foreColor);this.baseFillRectangle(t,o,0,0,this.barCodeData.mainWidth,this.barCodeData.mainHeight);var p=0,h=this.barCodeData.offsetY+this.barCodeData.spaceTop,g=new c,m=new u(i.font.name,i.font.size*(i.barCodeType.labelFontHeight/8)*this.barCodeData.fullZoomY,i.font.style,n.Pixel);g.alignment=r.Center,g.lineAlignment=r.Near;for(var d=0,S=e;d<S.length;d++){var f=S[d],y=0,b=this.ean13SymData[f.symbolType];f.makeLonger&&(b=this.makeLonger(b));for(var C=0;C<b.length;C++){var v=b[C];if(0==this.isSymbolSpace(v)){var I=this.barCodeData.lineHeightShort;(this.isSymbolLong(v)||f.textAtTop)&&(I=this.barCodeData.lineHeightLong);var A=0;f.textAtTop&&(A=this.barCodeData.spaceTextTop),this.baseFillRectangle(t,a,p+this.barCodeData.lineWidth*y,h+A,this.barCodeData.lineWidth*this.getSymbolWidth(v),I-A)}y+=this.getSymbolWidth(v)}if(i.showLabelText&&" "!=f.symbolText){var w=null;w=f.textAtTop?new s(p,h+this.barCodeData.textPositionTop,y*this.barCodeData.lineWidth,this.barCodeData.spaceTextTop):new s(p,h+this.barCodeData.textPositionBottom,y*this.barCodeData.lineWidth,this.barCodeData.spaceTextTop),this.baseDrawString2(t,f.symbolText.toString(),m,a,w,g)}p+=this.barCodeData.lineWidth*y}},m.prototype.makeEan13Bars=function(t,e){for(var i=t.ref,r=Array.create(Number,12),n=0;n<12;n++)r[n]=new Number(i.charAt(n)).valueOf();var o=3*(r[1]+r[3]+r[5]+r[7]+r[9]+r[11])+r[0]+r[2]+r[4]+r[6]+r[8]+r[10],a=10-o%10;10==a&&(a=0),i=i.substr(0,12)+String.fromCharCode(a+48);var s=[];s.add(new h(g.SpaceLeft,i[0],!1)),s.add(new h(g.GuardLeft," ",!1));for(var l=new Number(i.charAt(0)).valueOf(),u=0;u<6;u++){var c=new Number(i.charAt(1+u)).valueOf(),p=new h(g.ComboA0+c,i[1+u],!1);"0"!=this.symComboSet[l][u]&&(p.symbolType=g.ComboB0+c),s.add(p)}s.add(new h(g.GuardCenter," ",!1));for(var u=0;u<6;u++){var c=new Number(i.charAt(7+u)).valueOf(),p=new h(g.ComboC0+c,i[7+u],!1);s.add(p)}return s.add(new h(g.GuardRight," ",!1)),e?s.add(new h(g.SpaceRight,this.showQuietZoneIndicator?">":" ",!1)):s.add(new h(g.SpaceBeforeAdd," ",!1)),t.ref=i,s},m.prototype.makeEanAdd2Bars=function(t,e,i){var r=null!=e?e:[];r.add(new h(g.GuardAddLeft," ",!0));for(var n=2,o=this.symParitySetAdd2[parseInt(t.substr(0,2))%4],a=0;a<n;a++){var s=parseInt(t[a].toString()),l=o[a],u=new h(g.ComboA0+s,t[a],!0);"o"!=l&&(u.symbolType=g.ComboB0+s),r.add(u),a<n-1&&r.add(new h(g.GuardAddDelineator," ",!0))}return i?r.add(new h(g.SpaceRight,this.showQuietZoneIndicator?">":" ",!0)):r.add(new h(g.SpaceBeforeAdd," ",!0)),r},m.prototype.makeEanAdd5Bars=function(t,e,i){var r=null!=e?e:[];r.add(new h(g.GuardAddLeft," ",!0));for(var n=3*parseInt(t[0].toString())+9*parseInt(t[1].toString())+3*parseInt(t[2].toString())+9*parseInt(t[3].toString())+3*parseInt(t[4].toString()),o=this.symParitySetAdd5[n%10],a=5,s=0;s<a;s++){var l=parseInt(t[s].toString()),u=o[s],c=new h(g.ComboA0+l,t[s],!0);"o"!=u&&(c.symbolType=g.ComboB0+l),r.add(c),s<a-1&&r.add(new h(g.GuardAddDelineator," ",!0))}return i?r.add(new h(g.SpaceRight,this.showQuietZoneIndicator?">":" ",!0)):r.add(new h(g.SpaceBeforeAdd," ",!0)),r},m.prototype.makeLonger=function(t){for(var e=new a,i=0;i<t.length;i++){var r=t[i];switch(r){case"4":r="8";break;case"5":r="9";break;case"6":r="a";break;case"7":r="b";break}e.append(r)}return e.toString()},m.prototype.getSymbolWidth=function(t){var e;switch(t){case"0":case"4":case"8":case"c":case"d":case"e":case"f":e=1;break;case"1":case"5":case"9":e=1*this.eanWideToNarrowRatio;break;case"2":case"6":case"a":e=1.5*this.eanWideToNarrowRatio;break;case"3":case"7":case"b":e=2*this.eanWideToNarrowRatio;break;case"x":e=this.eanSpaceLeft;break;case"y":e=this.eanSpaceRight;break;case"z":e=this.eanSpaceBeforeAdd;break;default:e=1;break}return e},m.prototype.isSymbolSpace=function(t){var e;switch(t){case"0":case"1":case"2":case"3":e=!0;break;case"x":case"y":case"z":e=!0;break;default:e=!1;break}return e},m.prototype.draw=function(t,e,r,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,"0123456789")+"0000000000000";var a=this.checkCodeSymbols(this.supplementCode,"0123456789")+"00000",s=null;if(this.supplementType==i.StiEanSupplementType.None){var l={ref:o};s=this.makeEan13Bars(l,!0),o=l.ref}else{var l={ref:o};s=this.makeEan13Bars(l,!1),o=l.ref,this.supplementType==i.StiEanSupplementType.TwoDigit?this.makeEanAdd2Bars(a,s,!0):this.makeEanAdd5Bars(a,s,!0)}this.calculateSizeEan(0,n,s,r,e),this.translateRect(t,r,e),this.drawEanBars(t,s,e),this.rollbackTransform(t)},m.prototype.createNew=function(){return new m},m}(i.StiBarCodeTypeService);i.StiEAN13BarCodeType=m}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,r,n,o,a){return void 0===t&&(t=13),void 0===r&&(r=1),void 0===n&&(n=e.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0),i.call(this,t,r,n,o,a)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiEAN8BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"EAN-8"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultCodeValue",{get:function(){return"12345678"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanSpaceLeft",{get:function(){return 7},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanSpaceRight",{get:function(){return 7},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanLineHeightShort",{get:function(){return 55.2},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanMainHeight",{get:function(){return 64.58},enumerable:!0,configurable:!0}),r.prototype.makeEan8Bars=function(t,i){for(var r=Array.create(Number,8),n=0;n<7;n++)r[n]=parseInt(t.charAt(n));var o=3*(r[0]+r[2]+r[4]+r[6])+r[1]+r[3]+r[5],a=10-o%10;10==a&&(a=0),t=t.substr(0,7)+String.fromCharCode(a+48);var s=[];s.add(new e.EanBarInfo(e.Ean13Symbol.SpaceLeft,this.showQuietZoneIndicator?"<":" ",!1)),s.add(new e.EanBarInfo(e.Ean13Symbol.GuardLeft," ",!1));for(var l=0;l<4;l++){var u=parseInt(t.charAt(0+l)),c=new e.EanBarInfo(e.Ean13Symbol.ComboA0+u,t.charAt(0+l),!1);s.add(c)}s.add(new e.EanBarInfo(e.Ean13Symbol.GuardCenter," ",!1));for(var l=0;l<4;l++){var u=parseInt(t.charAt(4+l)),c=new e.EanBarInfo(e.Ean13Symbol.ComboC0+u,t.charAt(4+l),!1);s.add(c)}return s.add(new e.EanBarInfo(e.Ean13Symbol.GuardRight," ",!1)),i?s.add(new e.EanBarInfo(e.Ean13Symbol.SpaceRight,this.showQuietZoneIndicator?">":" ",!1)):s.add(new e.EanBarInfo(e.Ean13Symbol.SpaceBeforeAdd," ",!1)),s},r.prototype.draw=function(t,i,r,n){var o=this.getCode(i);o=this.checkCodeSymbols(o,"0123456789")+"00000000";var a=this.checkCodeSymbols(this.supplementCode,"0123456789")+"00000",s=[];this.supplementType==e.StiEanSupplementType.None?s=this.makeEan8Bars(o,!0):(s=this.makeEan8Bars(o,!1),this.supplementType==e.StiEanSupplementType.TwoDigit?this.makeEanAdd2Bars(a,s,!0):this.makeEanAdd5Bars(a,s,!0)),this.calculateSizeEan(0,n,s,r,i),this.translateRect(t,r,i),this.drawEanBars(t,s,i),this.rollbackTransform(t)},r.prototype.createNew=function(){return new r},r}(e.StiEAN13BarCodeType);e.StiEAN8BarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(t,i,r){void 0===t&&(t=31.25),void 0===i&&(i=1),void 0===r&&(r=!1);var n=e.call(this)||this;return n.fIMSymbols="abcd",n.fIMTable=["4040114011404","40140401404014","40401401401404","404040140140404"],n.defaultFIMModule=31.25,n._module=n.defaultFIMModule,n._height=1,n._addClearZone=!1,n.fIMSpaceTop=0,n.fIMSpaceBottom=0,n.fIMLineHeightShort=20,n.fIMLineHeightLong=n.fIMLineHeightShort,n.fIMTextPosition=0,n.fIMTextHeight=8,n.fIMMainHeight=n.fIMLineHeightShort,n.fIMLineHeightForCut=n.fIMLineHeightShort,n._module=t,n._height=i,n._addClearZone=r,n}return __extends(i,e),i.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyNumber("Module",this.module,this.defaultFIMModule),i.addPropertyNumber("Height",this.height,1),i.addPropertyBool("AddClearZone",this.addClearZone),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this._module=r.value.toNumber();break;case"Height":this._height=r.value.toNumber();break;case"AddClearZone":this._addClearZone=r.value.toBoolean();break}}},i.prototype.loadFromXmlObject=function(t){e.prototype.loadFromXmlObject.call(this,t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"Module":this._module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break;case"AddClearZone":this._addClearZone=r.textContent.toBoolean();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiFIMBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"FIM"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"A"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[22]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=this.defaultFIMModule},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"addClearZone",{get:function(){return this._addClearZone},set:function(t){this._addClearZone=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.fIMTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fIMSpaceLeft",{get:function(){return this.addClearZone?16:1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fIMSpaceRight",{get:function(){return this.addClearZone?7:1},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,r){var n=this.getCode(e).toLower();n=this.checkCodeSymbols(n,this.fIMSymbols)+"a";var o=String.empty;switch(n[0]){case"a":o=this.fIMTable[0];break;case"b":o=this.fIMTable[1];break;case"c":o=this.fIMTable[2];break;case"d":o=this.fIMTable[3];break}this.calculateSizeFull(this.fIMSpaceLeft,this.fIMSpaceRight,this.fIMSpaceTop,this.fIMSpaceBottom,this.fIMLineHeightShort,this.fIMLineHeightLong,this.fIMTextPosition,this.fIMTextHeight,this.fIMMainHeight,this.fIMLineHeightForCut,2,r,n,String.empty,o,i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(e.StiBarCodeTypeService);e.StiFIMBarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=t.Base.Drawing.StiSolidBrush,o=function(t){function o(e,i,r,n){void 0===e&&(e=13),void 0===i&&(i=1),void 0===r&&(r=2.5),void 0===n&&(n=!1);var o=t.call(this)||this;return o._module=40,o._height=1,o._ratio=2.5,o._printVerticalBars=!1,o.symTableSet=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010","0000","100"],o.itf14BearerBarWidth=2,o.itf14SpaceLeft=10,o.itf14SpaceRight=10,o.itf14SpaceTop=o.itf14BearerBarWidth,o.itf14SpaceBottom=o.itf14BearerBarWidth+1,o.itf14LineHeightShort=31.25,o.itf14LineHeightLong=o.itf14LineHeightShort,o.itf14TextHeight=8.33,o.itf14MainHeight=51.75,o.itf14TextPosition=o.itf14SpaceTop+o.itf14LineHeightShort+o.itf14SpaceBottom,o.itf14LineHeightForCut=o.itf14LineHeightShort,o.module=e,o.height=i,o.ratio=r,o.printVerticalBars=n,o}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,40),i.addPropertyNumber("Height",this.height,1),i.addPropertyNumber("Ratio",this.ratio,2.5),i.addPropertyBool("PrintVerticalBars",this.printVerticalBars),i},o.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this.module=r.value.toNumber();break;case"Height":this.height=r.value.toNumber();break;case"Ratio":this.ratio=r.value.toNumber();break;case"PrintVerticalBars":this.printVerticalBars=r.value.toBoolean();break}}},o.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this.module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break;case"Ratio":this.ratio=r.textContent.toNumber();break;case"PrintVerticalBars":this.printVerticalBars=r.textContent.toBoolean();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return e.StiComponentId.StiITF14BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"serviceName",{get:function(){return"ITF-14"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"defaultCodeValue",{get:function(){return"15400141288763"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<10&&(this._module=10),t>40&&(this._module=40),this.ratio=this.ratio},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"ratio",{get:function(){return this._ratio},set:function(t){this._ratio=t,t<2.25&&(this._ratio=2.25),t>3&&(this._ratio=3)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"printVerticalBars",{get:function(){return this._printVerticalBars},set:function(t){this._printVerticalBars=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelFontHeight",{get:function(){return this.itf14TextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[14]=!0,t[15]=!0,t},enumerable:!0,configurable:!0}),o.prototype.draw=function(t,e,o,a){var s=this.getCode(e);s=this.checkCodeSymbols(s,"0123456789")+String.fill("0",14);for(var l=Array.create(Number,14),u=0;u<14;u++)l[u]=s[u].toNumber();var c=3*(l[0]+l[2]+l[4]+l[6]+l[8]+l[10]+l[12])+l[1]+l[3]+l[5]+l[7]+l[9]+l[11],p=10-c%10;10==p&&(p=0),l[13]=p,s=s.substr(0,13)+String.fromCharCode(p+48);var h=new r;h.append(this.symTableSet[10]);for(var g=0;g<7;g++){var m=this.symTableSet[l[2*g+0]],d=this.symTableSet[l[2*g+1]],S=m[0]+d[0]+m[1]+d[1]+m[2]+d[2]+m[3]+d[3]+m[4]+d[4];h.append(S)}h.append(this.symTableSet[11]);for(var f=h.toString(),y=new r,b=!0,g=0;g<f.length;g++){var C=void 0;C=1==b?"0"==f[g]?"4":"5":"0"==f[g]?"0":"1",y.append(C),b=!b}this.calculateSizeFull(this.itf14SpaceLeft+(this.printVerticalBars?this.itf14BearerBarWidth:0),this.itf14SpaceRight+(this.printVerticalBars?this.itf14BearerBarWidth:0),this.itf14SpaceTop,this.itf14SpaceBottom,this.itf14LineHeightShort,this.itf14LineHeightLong,this.itf14TextPosition,this.itf14TextHeight,this.itf14MainHeight,this.itf14LineHeightForCut,this.ratio,a,s,s,y.toString(),o,e);var v=function(t,e,r){r.baseFillRectangle(t,e,0,0,r.barCodeData.mainWidth,r.barCodeData.spaceTop),r.baseFillRectangle(t,e,0,r.barCodeData.spaceTop+r.barCodeData.lineHeightShort,r.barCodeData.mainWidth,r.barCodeData.spaceTop),r.sti_as(i.StiBarCodeTypeService).printVerticalBars&&(r.baseFillRectangle(t,e,0,0,r.barCodeData.spaceTop,r.barCodeData.lineHeightShort+2*r.barCodeData.spaceTop),r.baseFillRectangle(t,e,r.barCodeData.mainWidth-r.barCodeData.spaceTop,0,r.barCodeData.spaceTop,r.barCodeData.lineHeightShort+2*r.barCodeData.spaceTop))};this.drawBarCode1(t,o,e,v);var I=new n(e.foreColor)},o.prototype.createNew=function(){return new o},o}(i.StiBarCodeTypeService);i.StiITF14BarCodeType=o}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._module=13,e._height=1,e._ratio=2.2,e.symTableSet=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010","0000","100"],e.interleaved2of5SpaceLeft=10,e.interleaved2of5SpaceRight=10,e.interleaved2of5SpaceTop=0,e.interleaved2of5SpaceBottom=1,e.interleaved2of5LineHeightShort=40,e.interleaved2of5LineHeightLong=e.interleaved2of5LineHeightShort,e.interleaved2of5TextHeight=8.33,e.interleaved2of5MainHeight=50,e.interleaved2of5TextPosition=e.interleaved2of5LineHeightShort+e.interleaved2of5SpaceBottom,e.interleaved2of5LineHeightForCut=e.interleaved2of5LineHeightShort,e}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,13),i.addPropertyNumber("Height",this.height,1),i.addPropertyNumber("Ratio",this.ratio,2.2),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this.module=r.value.toNumber();break;case"Height":this.height=r.value.toNumber();break;case"Ratio":this.ratio=r.value.toNumber();break}}},i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this.module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break;case"Ratio":this.ratio=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiInterleaved2of5BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"2of5 Interleaved"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"12345678"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<7.5&&(this._module=7.5),t>40&&(this._module=40)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ratio",{get:function(){return this._ratio},set:function(t){this._ratio=t;var e=this.module>20?2:2.2;t<e&&(this._ratio=e),t>3&&(this._ratio=3)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return 8.33},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[15]=!0,t},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,"0123456789"),o.length%2==1&&(o="0"+o);var a=new r;if(a.append(this.symTableSet[10]),o.length>0)for(var s=0;s<o.length/2;s++){var l=this.symTableSet[parseInt(o[2*s+0].toString())],u=this.symTableSet[parseInt(o[2*s+1].toString())],c=new r;c.append(l[0]),c.append(u[0]),c.append(l[1]),c.append(u[1]),c.append(l[2]),c.append(u[2]),c.append(l[3]),c.append(u[3]),c.append(l[4]),c.append(u[4]),a.append(c.toString())}a.append(this.symTableSet[11]);for(var p=!0,h=a.toString(),g=new r,s=0;s<h.length;s++){var m=void 0;m=1==p?"0"==h.charAt(s)?"4":"5":"0"==h.charAt(s)?"0":"1",g.append(m),p=!p}this.calculateSizeFull(this.interleaved2of5SpaceLeft,this.interleaved2of5SpaceRight,this.interleaved2of5SpaceTop,this.interleaved2of5SpaceBottom,this.interleaved2of5LineHeightShort,this.interleaved2of5LineHeightLong,this.interleaved2of5TextPosition,this.interleaved2of5TextHeight,this.interleaved2of5MainHeight,this.interleaved2of5LineHeightForCut,this.ratio,n,o,o,g.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i.prototype.StiInterleaved2of5BarCodeType=function(t,e,i){void 0===t&&(t=13),void 0===e&&(e=1),void 0===i&&(i=2.2),this.module=t,this.height=e,this.ratio=i},i}(i.StiBarCodeTypeService);i.StiInterleaved2of5BarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiSolidBrush,n=t.System.Drawing.Rectangle,o=t.System.Drawing.Font,a=t.System.Drawing.StringFormat,s=t.System.Drawing.StringAlignment,l=t.System.Drawing.GraphicsUnit,u=function(t){function u(e,r,n,o,a){void 0===e&&(e=13),void 0===r&&(r=1),void 0===n&&(n=i.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0);var s=t.call(this,e,r,n,o,a)||this;return s.isbnOffsetY=10,s}return __extends(u,t),Object.defineProperty(u.prototype,"componentId",{get:function(){return e.StiComponentId.StiIsbn13BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"serviceName",{get:function(){return"ISBN-13"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"defaultCodeValue",{get:function(){return"978-0-7356-2153-4"},enumerable:!0,configurable:!0}),u.prototype.draw=function(t,e,u,c){var p=this.getCode(e),h=this.checkCodeSymbols(p,"0123456789")+"0000000000000",g=this.checkCodeSymbols(this.supplementCode,"0123456789")+"00000",m=[];if(this.supplementType==i.StiEanSupplementType.None){var d={ref:h};m=this.makeEan13Bars(d,!0),h=d.ref}else{var d={ref:h};m=this.makeEan13Bars(d,!1),h=d.ref,this.supplementType==i.StiEanSupplementType.TwoDigit?this.makeEanAdd2Bars(g,m,!0):this.makeEanAdd5Bars(g,m,!0)}this.calculateSizeEan(this.isbnOffsetY,c,m,u,e),this.translateRect(t,u,e),this.drawEanBars(t,m,e);var S=new r(e.foreColor),f=new a,y=new o(e.font.name,e.font.size*(e.barCodeType.labelFontHeight/8)*this.barCodeData.fullZoomY,e.font.style,l.Pixel),b="ISBN "+p;f.lineAlignment=s.Center,f.alignment=s.Center,this.baseDrawString2(t,b,y,S,new n(0,0,this.barCodeData.mainWidth,this.barCodeData.spaceTextTop),f),this.rollbackTransform(t)},u.prototype.createNew=function(){return new u},u}(i.StiEAN13BarCodeType);i.StiIsbn13BarCodeType=u}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiSolidBrush,n=t.System.Drawing.StringAlignment,o=t.System.Drawing.Rectangle,a=t.System.Drawing.Font,s=t.System.Drawing.StringFormat,l=t.System.Drawing.GraphicsUnit,u=function(t){function u(e,r,n,o,a){return void 0===e&&(e=13),void 0===r&&(r=1),void 0===n&&(n=i.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0),t.call(this,e,r,n,o,a)||this}return __extends(u,t),Object.defineProperty(u.prototype,"componentId",{get:function(){return e.StiComponentId.StiIsbn10BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[17]=!0,t[19]=!0,t[20]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"serviceName",{get:function(){return"ISBN-10"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"defaultCodeValue",{get:function(){return"0-7356-2153-5"},enumerable:!0,configurable:!0}),u.prototype.draw=function(t,e,u,c){var p=this.getCode(e),h="978"+this.checkCodeSymbols(p,"0123456789")+"0000000000000",g=this.checkCodeSymbols(this.supplementCode,"0123456789")+"00000",m=[];if(this.supplementType==i.StiEanSupplementType.None){var d={ref:h};m=this.makeEan13Bars(d,!0),h=d.ref}else{var d={ref:h};m=this.makeEan13Bars(d,!1),h=d.ref,this.supplementType==i.StiEanSupplementType.TwoDigit?this.makeEanAdd2Bars(g,m,!0):this.makeEanAdd5Bars(g,m,!0)}this.calculateSizeEan(this.isbnOffsetY,c,m,u,e),this.translateRect(t,u,e),this.drawEanBars(t,m,e);var S=new r(e.foreColor),f=new s,y=new a(e.font.name,e.font.size*(e.barCodeType.labelFontHeight/8)*this.barCodeData.fullZoomY,e.font.style,l.Pixel),b="ISBN "+p;f.lineAlignment=n.Center,f.alignment=n.Center,this.baseDrawString2(t,b,y,S,new o(0,0,this.barCodeData.mainWidth,this.barCodeData.spaceTextTop),f),this.rollbackTransform(t)},u.prototype.createNew=function(){return new u},u}(i.StiIsbn13BarCodeType);i.StiIsbn10BarCodeType=u}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,r,n,o,a){return void 0===t&&(t=13),void 0===r&&(r=1),void 0===n&&(n=e.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0),i.call(this,t,r,n,o,a)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiJan13BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"JAN-13"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultCodeValue",{get:function(){return"4523456789012"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[17]=!0,t[19]=!0,t[20]=!0,t},enumerable:!0,configurable:!0}),r.prototype.draw=function(t,i,r,n){var o=this.getCode(i),a=this.checkCodeSymbols(o,"0123456789")+"0000000000000",s=this.checkCodeSymbols(this.supplementCode,"0123456789")+"00000";if(!a.startsWith("45")&&!a.startsWith("49"))return void this.drawBarCodeError(t,r,i);var l=[];if(this.supplementType==e.StiEanSupplementType.None){var u={ref:a};l=this.makeEan13Bars(u,!0),a=u.ref}else{var u={ref:a};l=this.makeEan13Bars(u,!1),a=u.ref,this.supplementType==e.StiEanSupplementType.TwoDigit?this.makeEanAdd2Bars(s,l,!0):this.makeEanAdd5Bars(s,l,!0)}this.calculateSizeEan(0,n,l,r,i),this.translateRect(t,r,i),this.drawEanBars(t,l,i),this.rollbackTransform(t)},r.prototype.createNew=function(){return new r},r}(e.StiEAN13BarCodeType);e.StiJan13BarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,r,n,o,a){return void 0===t&&(t=13),void 0===r&&(r=1),void 0===n&&(n=e.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0),i.call(this,t,r,n,o,a)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiJan8BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"JAN-8"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultCodeValue",{get:function(){return"4523456789012"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[17]=!0,t[19]=!0,t[20]=!0,t},enumerable:!0,configurable:!0}),r.prototype.draw=function(t,i,r,n){var o=this.getCode(i),a=this.checkCodeSymbols(o,"0123456789")+"0000000000000",s=this.checkCodeSymbols(this.supplementCode,"0123456789")+"00000";if(!a.startsWith("45")&&!a.startsWith("49"))return void this.drawBarCodeError(t,r,i);var l=[];this.supplementType==e.StiEanSupplementType.None?l=this.makeEan8Bars(a,!0):(l=this.makeEan8Bars(a,!1),this.supplementType==e.StiEanSupplementType.TwoDigit?this.makeEanAdd2Bars(s,l,!0):this.makeEanAdd5Bars(s,l,!0)),this.calculateSizeEan(0,n,l,r,i),this.translateRect(t,r,i),this.drawEanBars(t,l,i),this.rollbackTransform(t)},r.prototype.createNew=function(){return new r},r}(e.StiEAN8BarCodeType);e.StiJan8BarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=t.Report.BarCodes.StiMaxicodeMode,o=t.System.Text.Encoding,a=function(){function t(t,e,i){this.log=null,this.alog=null,this.rspoly=null;var r=0,n=0;for(n=1;n<=t;n<<=1)r++;n>>=1,r--,this.logmod=(1<<r)-1,this.log=Array.create(Number,this.logmod+1),this.alog=Array.create(Number,this.logmod);for(var o=1,a=0;a<this.logmod;a++)this.alog[a]=o,this.log[o]=a,0!=((o<<=1)&n)&&(o^=t);this.rlen=e,this.rspoly=Array.create(Number,e+1),this.rspoly[0]=1;for(var s=1;s<=e;s++){this.rspoly[s]=1;for(var l=s-1;l>0;l--)0!=this.rspoly[l]&&(this.rspoly[l]=this.alog[(this.log[this.rspoly[l]]+i)%this.logmod]),this.rspoly[l]^=this.rspoly[l-1];this.rspoly[0]=this.alog[(this.log[this.rspoly[0]]+i)%this.logmod],i++}}return t.prototype.encode=function(t,e){for(var i=Array.create(Number,this.rlen),r=0;r<t;r++){for(var n=i[this.rlen-1]^e[r],o=this.rlen-1;o>0;o--)0!=n&&0!=this.rspoly[o]?i[o]=i[o-1]^this.alog[(this.log[n]+this.log[this.rspoly[o]])%this.logmod]:i[o]=i[o-1];0!=n&&0!=this.rspoly[0]?i[0]=this.alog[(this.log[n]+this.log[this.rspoly[0]])%this.logmod]:i[0]=0}return i},t}(),s=function(){function t(e,i,r,o,a){this.structuredAppendPosition=1,this.structuredAppendTotal=1,this.data_Postcode=null,this.data_Country=0,this.data_Service=0,this.content=null,this.eciMode=3,this.codewords=null,this.set=Array.create(Number,144),this.character=Array.create(Number,144),this.grid=Array.create(Boolean,33,30),this.errorMessage=null;try{if(r<1||r>8)throw"Invalid structured append position: "+r;if(o<1||o>8)throw"Invalid structured append total: "+o;this.mode=i,this.structuredAppendPosition=r,this.structuredAppendTotal=o;var s=a?this.unpackTilde(e):e;if(this.mode==n.Mode2||this.mode==n.Mode3){var l=null;if(s.startsWith(t.formatHeader)){if(!s.endsWith(t.formatTrailer))throw"Unexpected end of input data";l=s.substr(7,2),s=s.substr(9,s.length-11)}var u=this.extractPrimaryParts(s);if(u.count<4)throw"Invalid message format";if(this.data_Postcode=u[0].trim(),this.data_Country=u[1].trim().toNumber(),isNaN(this.data_Country))throw"Invalid country data";if(this.data_Service=u[2].trim().toNumber(),isNaN(this.data_Service))throw"Invalid service data";if(this.content=u[3].trim(),null!=l&&(this.content=t.formatHeader+l+this.content+t.formatTrailer),this.mode==n.Mode2)for(var c=0;c<this.data_Postcode.length;c++)if(this.data_Postcode[c]<"0"||this.data_Postcode[c]>"9"){this.mode=n.Mode3;break}}else this.content=s;this.encode()}catch(t){this.errorMessage=t.message}}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.gridToMatrix()},enumerable:!0,configurable:!0}),t.prototype.getEciEncoding=function(){if(this.tryCodePage(20127))return 3;return this.tryCodePage(65001),26},t.prototype.tryCodePage=function(t){try{var e=o.getEncoding(t);this.sourceBytes=e.getBytes(this.content);var i=e.getString(this.sourceBytes);if(this.content==i)return!0}catch(t){}return!1},t.prototype.unpackTilde=function(t){var e=0,i="";while(e<t.length){var r=t[e++],n=!1;if("~"==r&&e+2<t.length){var o=t.substr(e,3),a=o.toNumber();isNaN(a)||a>=0&&a<255&&(i+=String.fromCharCode(a),n=!0,e+=3)}n||(i+=r)}return i},t.prototype.extractPrimaryParts=function(e){var i=[],r=0,n="";while(r<e.length){var o=e[r++];if(o==t.com_GS){if(i.add(n),3==i.count){i.add(e.substr(r));break}n=""}else n+=o}return n.length>0&&i.add(n),i},t.prototype.gridToMatrix=function(){for(var t=Array.create(Number,33*30),e=0;e<33;e++)for(var i=0;i<30;i++)this.grid[e][i]&&(t[30*e+i]=1);return t},t.prototype.findBestSet=function(t,e,i,r,n,o,a){void 0===n&&(n=-1),void 0===o&&(o=-1),void 0===a&&(a=-1);var s=this.set[t-1],l=s==i||s==r||s==n||s==o||s==a;if(t+1<e){var u=this.set[t+1],c=u==i||u==r||u==n||u==o||u==a;if(l&&c)return Math.min(s,u);if(l)return s;if(c)return u}else if(l)return s;return i},t.prototype.insertSymbol=function(t,e){for(var i=143;i>t;i--)this.set[i]=this.set[i-1],this.character[i]=this.character[i-1];this.character[t]=e},t.prototype.processTextToSymbols=function(){var e=this.sourceBytes.length,i,r;if(e>138)return!1;for(var o=0;o<144;o++)this.set[o]=-1,this.character[o]=0;for(var o=0;o<e;o++)this.set[o]=t.codeSet_Map[this.sourceBytes[o]],this.character[o]=t.charToSym_Map[this.sourceBytes[o]];for(0==this.set[0]&&(13==this.character[0]&&(this.character[0]=0),this.set[0]=1),i=1;i<e;i++)0==this.set[i]&&(13==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,5),5==this.set[i]?this.character[i]=13:this.character[i]=0):28==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,2,3,4,5),5==this.set[i]&&(this.character[i]=32)):29==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,2,3,4,5),5==this.set[i]&&(this.character[i]=33)):30==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,2,3,4,5),5==this.set[i]&&(this.character[i]=34)):32==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,2,3,4,5),1==this.set[i]?this.character[i]=32:2==this.set[i]?this.character[i]=47:this.character[i]=59):44==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,2),2==this.set[i]&&(this.character[i]=48)):46==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,2),2==this.set[i]&&(this.character[i]=49)):47==this.character[i]?(this.set[i]=this.findBestSet(i,e,1,2),2==this.set[i]&&(this.character[i]=50)):58==this.character[i]&&(this.set[i]=this.findBestSet(i,e,1,2),2==this.set[i]&&(this.character[i]=51)));for(i=e;i<this.set.length;i++)2==this.set[e-1]?this.set[i]=2:this.set[i]=1,this.character[i]=33;r=this.mode==n.Mode2||this.mode==n.Mode3?9:0;var a=0;for(i=r;i<143;i++)1==this.set[i]&&this.character[i]>=48&&this.character[i]<=57?a++:a=0,9==a&&(this.set[i]=6,this.set[i-1]=6,this.set[i-2]=6,this.set[i-3]=6,this.set[i-4]=6,this.set[i-5]=6,this.set[i-6]=6,this.set[i-7]=6,this.set[i-8]=6,a=0);var s=1;i=0;do{if(this.set[i]!=s&&6!=this.set[i]){switch(this.set[i]){case 1:i+1<this.set.length&&1==this.set[i+1]?i+2<this.set.length&&1==this.set[i+2]?i+3<this.set.length&&1==this.set[i+3]?(this.insertSymbol(i,63),s=1,e++,i+=3):(this.insertSymbol(i,57),e++,i+=2):(this.insertSymbol(i,56),e++,i++):(this.insertSymbol(i,59),e++);break;case 2:i+1<this.set.length&&2==this.set[i+1]?(this.insertSymbol(i,63),s=2,e++,i++):(this.insertSymbol(i,59),e++);break;case 3:i+3<this.set.length&&3==this.set[i+1]&&3==this.set[i+2]&&3==this.set[i+3]?(this.insertSymbol(i,60),this.insertSymbol(i,60),s=3,e++,i+=3):(this.insertSymbol(i,60),e++);break;case 4:i+3<this.set.length&&4==this.set[i+1]&&4==this.set[i+2]&&4==this.set[i+3]?(this.insertSymbol(i,61),this.insertSymbol(i,61),s=4,e++,i+=3):(this.insertSymbol(i,61),e++);break;case 5:i+3<this.set.length&&5==this.set[i+1]&&5==this.set[i+2]&&5==this.set[i+3]?(this.insertSymbol(i,62),this.insertSymbol(i,62),s=5,e++,i+=3):(this.insertSymbol(i,62),e++);break;default:throw"Encoding: unexpected set "+this.set[i]+" at index "+i+"."}i++}i++}while(i<this.set.length);i=0;do{if(6==this.set[i]){var l=0;for(r=0;r<9;r++)l*=10,l+=this.character[i+r]-"0".charCodeAt(0);for(this.character[i]=31,this.character[i+1]=(1056964608&l)>>24,this.character[i+2]=(16515072&l)>>18,this.character[i+3]=(258048&l)>>12,this.character[i+4]=(4032&l)>>6,this.character[i+5]=63&l,i+=6,r=i;r<140;r++)this.set[r]=this.set[r+3],this.character[r]=this.character[r+3];e-=3}else i++}while(i<this.set.length);if(3!=this.eciMode&&(this.insertSymbol(0,27),this.insertSymbol(1,31&this.eciMode),e+=2),(this.mode==n.Mode2||this.mode==n.Mode3)&&e>84)return!1;if((this.mode==n.Mode4||this.mode==n.Mode6)&&e>93)return!1;if(this.mode==n.Mode5&&e>77)return!1;return!0},t.getErrorCorrectionCodewords=function(t,e){for(var i=new a(67,e,1),r=i.encode(t.length,t),n=Array.create(Number,e),o=0;o<e;o++)n[o]=r[e-1-o];return n},t.prototype.getPrimaryCodewords=function(){return this.mode==n.Mode2?t.getMode2PrimaryCodewords(this.data_Postcode,this.data_Country,this.data_Service):t.getMode3PrimaryCodewords(this.data_Postcode,this.data_Country,this.data_Service)},t.getMode2PrimaryCodewords=function(t,e,i){var r=t.toNumber(),n=Array.create(Number,10);return n[0]=(3&r)<<4|2,n[1]=(252&r)>>2,n[2]=(16128&r)>>8,n[3]=(1032192&r)>>14,n[4]=(66060288&r)>>20,n[5]=(1006632960&r)>>26|(3&t.length)<<4,n[6]=(60&t.length)>>2|(3&e)<<4,n[7]=(252&e)>>2,n[8]=(768&e)>>8|(15&i)<<2,n[9]=(1008&i)>>4,n},t.getMode3PrimaryCodewords=function(t,e,i){var r=Array.create(Number,t.length);t=t.toUpper();for(var n=0;n<r.length;n++)r[n]=t[n].charCodeAt(0),t[n]>="A"&&t[n]<="Z"&&(r[n]-=64),(27==r[n]||31==r[n]||33==r[n]||r[n]>=59)&&(r[n]=32);var o=Array.create(Number,10);return o[0]=(3&r[5])<<4|3,o[1]=(3&r[4])<<4|(60&r[5])>>2,o[2]=(3&r[3])<<4|(60&r[4])>>2,o[3]=(3&r[2])<<4|(60&r[3])>>2,o[4]=(3&r[1])<<4|(60&r[2])>>2,o[5]=(3&r[0])<<4|(60&r[1])>>2,o[6]=(60&r[0])>>2|(3&e)<<4,o[7]=(252&e)>>2,o[8]=(768&e)>>8|(15&i)<<2,o[9]=(1008&i)>>4,o},t.prototype.encode=function(){if(this.eciMode=this.getEciEncoding(),!this.processTextToSymbols())throw"Input data too long";if(this.codewords=[],this.codewords.addRange(this.character),this.mode==n.Mode2||this.mode==n.Mode3?this.codewords.splice(0,0,this.getPrimaryCodewords()):this.codewords.insert(0,this.mode),this.structuredAppendTotal>1){var e=Array.create(Number,2);e[0]=33,e[1]=this.structuredAppendPosition-1<<3|this.structuredAppendTotal-1;var i=void 0;i=this.mode==n.Mode2||this.mode==n.Mode3?10:1,this.codewords.splice(i,0,e)}var r,o;this.mode==n.Mode5?(r=68,o=56):(r=84,o=40);var a=r+10;this.codewords.count>a&&this.codewords.removeRange(a,this.codewords.count-a);var s=Array.create(Number,10);Array.copy(this.codewords.toArray(),0,s,10),this.codewords=this.codewords.slice(0,10).concat(t.getErrorCorrectionCodewords(s,10)).concat(this.codewords.slice(10));var l=Array.create(Number,this.codewords.count-20);this.codewords.slice(20).copyTo(l);for(var u=Array.create(Number,l.length/2),c=Array.create(Number,l.length/2),p=0;p<l.length;p++)0!=(1&p)?u[(p-1)/2]=l[p]:c[p/2]=l[p];for(var h=t.getErrorCorrectionCodewords(u,o/2),g=t.getErrorCorrectionCodewords(c,o/2),p=0;p<g.length;p++)this.codewords.add(g[p]),this.codewords.add(h[p]);for(var m=Array.create(Number,7),p=0;p<33;p++)for(var d=0;d<30;d++){var S=Math.floor((t.grid_Map[30*p+d]+5)/6),f=(t.grid_Map[30*p+d]+5)%6;0!=S&&(m[0]=(32&this.codewords[S-1])>>5,m[1]=(16&this.codewords[S-1])>>4,m[2]=(8&this.codewords[S-1])>>3,m[3]=(4&this.codewords[S-1])>>2,m[4]=(2&this.codewords[S-1])>>1,m[5]=1&this.codewords[S-1],0!=m[f]?this.grid[p][d]=!0:this.grid[p][d]=!1)}this.grid[0][28]=!0,this.grid[0][29]=!0,this.grid[9][10]=!0,this.grid[9][11]=!0,this.grid[10][11]=!0,this.grid[15][7]=!0,this.grid[16][8]=!0,this.grid[16][20]=!0,this.grid[17][20]=!0,this.grid[22][10]=!0,this.grid[23][10]=!0,this.grid[22][17]=!0,this.grid[23][17]=!0},t.com_RS=String.fromCharCode(30),t.com_GS=String.fromCharCode(29),t.formatHeader="[)>"+t.com_RS+"01"+t.com_GS,t.formatTrailer=""+t.com_RS+String.fromCharCode(4),t.grid_Map=[122,121,128,127,134,133,140,139,146,145,152,151,158,157,164,163,170,169,176,175,182,181,188,187,194,193,200,199,0,0,124,123,130,129,136,135,142,141,148,147,154,153,160,159,166,165,172,171,178,177,184,183,190,189,196,195,202,201,817,0,126,125,132,131,138,137,144,143,150,149,156,155,162,161,168,167,174,173,180,179,186,185,192,191,198,197,204,203,819,818,284,283,278,277,272,271,266,265,260,259,254,253,248,247,242,241,236,235,230,229,224,223,218,217,212,211,206,205,820,0,286,285,280,279,274,273,268,267,262,261,256,255,250,249,244,243,238,237,232,231,226,225,220,219,214,213,208,207,822,821,288,287,282,281,276,275,270,269,264,263,258,257,252,251,246,245,240,239,234,233,228,227,222,221,216,215,210,209,823,0,290,289,296,295,302,301,308,307,314,313,320,319,326,325,332,331,338,337,344,343,350,349,356,355,362,361,368,367,825,824,292,291,298,297,304,303,310,309,316,315,322,321,328,327,334,333,340,339,346,345,352,351,358,357,364,363,370,369,826,0,294,293,300,299,306,305,312,311,318,317,324,323,330,329,336,335,342,341,348,347,354,353,360,359,366,365,372,371,828,827,410,409,404,403,398,397,392,391,80,79,0,0,14,13,38,37,3,0,45,44,110,109,386,385,380,379,374,373,829,0,412,411,406,405,400,399,394,393,82,81,41,0,16,15,40,39,4,0,0,46,112,111,388,387,382,381,376,375,831,830,414,413,408,407,402,401,396,395,84,83,42,0,0,0,0,0,6,5,48,47,114,113,390,389,384,383,378,377,832,0,416,415,422,421,428,427,104,103,56,55,17,0,0,0,0,0,0,0,21,20,86,85,434,433,440,439,446,445,834,833,418,417,424,423,430,429,106,105,58,57,0,0,0,0,0,0,0,0,23,22,88,87,436,435,442,441,448,447,835,0,420,419,426,425,432,431,108,107,60,59,0,0,0,0,0,0,0,0,0,24,90,89,438,437,444,443,450,449,837,836,482,481,476,475,470,469,49,0,31,0,0,0,0,0,0,0,0,0,0,1,54,53,464,463,458,457,452,451,838,0,484,483,478,477,472,471,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,465,460,459,454,453,840,839,486,485,480,479,474,473,52,51,32,0,0,0,0,0,0,0,0,0,0,2,0,43,468,467,462,461,456,455,841,0,488,487,494,493,500,499,98,97,62,61,0,0,0,0,0,0,0,0,0,27,92,91,506,505,512,511,518,517,843,842,490,489,496,495,502,501,100,99,64,63,0,0,0,0,0,0,0,0,29,28,94,93,508,507,514,513,520,519,844,0,492,491,498,497,504,503,102,101,66,65,18,0,0,0,0,0,0,0,19,30,96,95,510,509,516,515,522,521,846,845,560,559,554,553,548,547,542,541,74,73,33,0,0,0,0,0,0,11,68,67,116,115,536,535,530,529,524,523,847,0,562,561,556,555,550,549,544,543,76,75,0,0,8,7,36,35,12,0,70,69,118,117,538,537,532,531,526,525,849,848,564,563,558,557,552,551,546,545,78,77,0,34,10,9,26,25,0,0,72,71,120,119,540,539,534,533,528,527,850,0,566,565,572,571,578,577,584,583,590,589,596,595,602,601,608,607,614,613,620,619,626,625,632,631,638,637,644,643,852,851,568,567,574,573,580,579,586,585,592,591,598,597,604,603,610,609,616,615,622,621,628,627,634,633,640,639,646,645,853,0,570,569,576,575,582,581,588,587,594,593,600,599,606,605,612,611,618,617,624,623,630,629,636,635,642,641,648,647,855,854,728,727,722,721,716,715,710,709,704,703,698,697,692,691,686,685,680,679,674,673,668,667,662,661,656,655,650,649,856,0,730,729,724,723,718,717,712,711,706,705,700,699,694,693,688,687,682,681,676,675,670,669,664,663,658,657,652,651,858,857,732,731,726,725,720,719,714,713,708,707,702,701,696,695,690,689,684,683,678,677,672,671,666,665,660,659,654,653,859,0,734,733,740,739,746,745,752,751,758,757,764,763,770,769,776,775,782,781,788,787,794,793,800,799,806,805,812,811,861,860,736,735,742,741,748,747,754,753,760,759,766,765,772,771,778,777,784,783,790,789,796,795,802,801,808,807,814,813,862,0,738,737,744,743,750,749,756,755,762,761,768,767,774,773,780,779,786,785,792,791,798,797,804,803,810,809,816,815,864,863],t.codeSet_Map=[5,5,5,5,5,5,5,5,5,5,5,5,5,0,5,5,5,5,5,5,5,5,5,5,5,5,5,5,0,0,0,5,0,2,1,1,1,1,1,1,1,1,1,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,0,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,4,5,5,5,5,5,5,4,5,3,4,3,5,5,4,4,3,3,3,4,3,5,4,4,3,3,4,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],t.charToSym_Map=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,30,28,29,30,35,32,53,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,37,38,39,40,41,52,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,42,43,44,45,46,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,32,54,34,35,36,48,49,50,51,52,53,54,55,56,57,47,48,49,50,51,52,53,54,55,56,57,48,49,50,51,52,53,54,55,56,57,36,37,37,38,39,40,41,42,43,38,44,37,39,38,45,46,40,41,39,40,41,42,42,47,43,44,43,44,45,45,46,47,46,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,32,33,34,35,36,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,32,33,34,35,36],t}(),l=function(t){function i(e,i,r,o){void 0===e&&(e=n.Mode4),void 0===i&&(i=1),void 0===r&&(r=1),void 0===o&&(o=!0);var a=t.call(this)||this;return a._mode=n.Mode4,a._processTilde=!0,a._structuredAppendPosition=1,a._structuredAppendTotal=1,a.mode=e,a.structuredAppendPosition=i,a.structuredAppendTotal=r,a.processTilde=o,a}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyEnum("Mode",n,this.mode,n.Mode2),i.addPropertyNumber("StructuredAppendPosition",this.structuredAppendPosition,1),i.addPropertyNumber("StructuredAppendTotal",this.structuredAppendTotal,1),i.addPropertyBool("ProcessTilde",this.processTilde),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var o=i[e];switch(o.name){case"Mode":this.mode=r.parse(n,o.toString());break;case"StructuredAppendPosition":this.structuredAppendPosition=o.value.toNumber();break;case"StructuredAppendTotal":this.structuredAppendTotal=o.value.toNumber();break;case"ProcessTilde":this.processTilde=o.value.toBoolean();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiMaxicodeBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Maxicode"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"ABC abc 123"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return 10},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerHeight",{set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"processTilde",{get:function(){return this._processTilde},set:function(t){this._processTilde=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"structuredAppendPosition",{get:function(){return this._structuredAppendPosition},set:function(t){this._structuredAppendPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"structuredAppendTotal",{get:function(){return this._structuredAppendTotal},set:function(t){this._structuredAppendTotal=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.defaultLabelFontHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[9]=!0,t[12]=!0,t[13]=!0,t[21]=!0,t},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,r){var n=this.getCode(e);this.barCodeData.code=n;var o=new s(n,this.mode,this.structuredAppendPosition,this.structuredAppendTotal,this.processTilde);this.barCodeData.matrixGrid=o.matrix,null==o.errorMessage?this.drawMaxicode(t,i,e,r):this.drawBarCodeError2(t,i,e,o.errorMessage)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiMaxicodeBarCodeType=l}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=t.System.Text.StringBuilder,o=function(t){function o(e,r,n,o){void 0===e&&(e=8),void 0===r&&(r=1),void 0===n&&(n=i.StiPlesseyCheckSum.None),void 0===o&&(o=i.StiPlesseyCheckSum.None);var a=t.call(this)||this;return a.plesseySymbols="0123456789ABCDEF",a.plesseyTable=["0000","1000","0100","1100","0010","1010","0110","1110","0001","1001","0101","1101","0011","1011","0111","1111"],a.plesseyStartCode="1101",a.plesseyStopCode="11",a._module=8,a._height=1,a._checkSum1=i.StiPlesseyCheckSum.None,a._checkSum2=i.StiPlesseyCheckSum.None,a.plesseySpaceLeft=4*5,a.plesseySpaceRight=4*5,a.plesseySpaceTop=0,a.plesseySpaceBottom=1,a.plesseyLineHeightShort=70,a.plesseyLineHeightLong=a.plesseyLineHeightShort,a.plesseyTextPosition=a.plesseyLineHeightShort+a.plesseySpaceBottom,a.plesseyTextHeight=11.5,a.plesseyMainHeight=84,a.plesseyLineHeightForCut=a.plesseyLineHeightShort,a._module=e,a._height=r,a._checkSum1=n,a._checkSum2=o,a}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyNumber("Module",this.module,8),r.addPropertyNumber("Height",this.height,1),r.addPropertyEnum("CheckSum1",i.StiPlesseyCheckSum,this.checkSum1,i.StiPlesseyCheckSum.None),r.addPropertyEnum("CheckSum2",i.StiPlesseyCheckSum,this.checkSum2,i.StiPlesseyCheckSum.None),r},o.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Module":this._module=o.value.toNumber();break;case"Height":this._height=o.value.toNumber();break;case"CheckSum1":this._checkSum1=r.parse(i.StiPlesseyCheckSum,o.value.toString());break;case"CheckSum2":this._checkSum2=r.parse(i.StiPlesseyCheckSum,o.value.toString());break}}},o.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Module":this._module=o.textContent.toNumber();break;case"Height":this.height=o.textContent.toNumber();break;case"CheckSum1":this._checkSum1=r.parse(i.StiPlesseyCheckSum,o.textContent);break;case"CheckSum2":this._checkSum2=r.parse(i.StiPlesseyCheckSum,o.textContent);break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return e.StiComponentId.StiPlesseyBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"serviceName",{get:function(){return"Plessey"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"defaultCodeValue",{get:function(){return"1234567"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<1&&(this._module=1),t>40&&(this._module=40)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"checkSum1",{get:function(){return this._checkSum1},set:function(t){this._checkSum1=t,this._checkSum1==i.StiPlesseyCheckSum.None&&(this.checkSum2=i.StiPlesseyCheckSum.None)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"checkSum2",{get:function(){return this._checkSum2},set:function(t){this._checkSum2=t,this._checkSum2!=i.StiPlesseyCheckSum.None&&this.checkSum1==i.StiPlesseyCheckSum.None&&(this.checkSum1=i.StiPlesseyCheckSum.Modulo10)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelFontHeight",{get:function(){return this.plesseyTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[4]=!0,t[5]=!0,t[11]=!0,t[13]=!0,t},enumerable:!0,configurable:!0}),o.prototype.codeToBar=function(t){for(var e=new n,i=0;i<t.length;i++){var r=new n;"1"==t[i]?r.append("71"):r.append("53"),e.append(r)}return e.toString()},o.prototype.draw=function(t,e,r,o){var a=this.getCode(e);a=this.checkCodeSymbols(a,this.plesseySymbols);var s=new n(a),l=a.length;this.checkSum1!=i.StiPlesseyCheckSum.None&&l++,this.checkSum2!=i.StiPlesseyCheckSum.None&&l++;for(var u=Array.create(Number,l),c=0;c<a.length;c++)u[c]=this.plesseySymbols.indexOf(a.charAt(c));if(this.checkSum1!=i.StiPlesseyCheckSum.None){var p=0;if(this.checkSum1==i.StiPlesseyCheckSum.Modulo10){for(var h=0,g=0,m=1,d=!1,c=a.length-1;c>=0;c--)0==d?(h+=u[c]*m,m*=10):g+=u[c],d=!d;h*=2;var S=0;while(h>=10)S+=h%10,h=Math.floor(h/10);S+=h,p=(S+g)%10,0!=p&&(p=10-p)}if(this.checkSum1==i.StiPlesseyCheckSum.Modulo11){for(var h=0,m=2,c=a.length-1;c>=0;c--)h+=u[c]*m,++m>7&&(m=2);p=h%11,0!=p&&(p=11-p)}u[a.length]=p,s.append(this.plesseySymbols[p])}if(this.checkSum2!=i.StiPlesseyCheckSum.None){var p=0;if(this.checkSum2==i.StiPlesseyCheckSum.Modulo10){for(var h=0,g=0,m=1,d=!1,c=a.length;c>=0;c--)0==d?(h+=u[c]*m,m*=10):g+=u[c],d=!d;h*=2;var S=0;while(h>=10)S+=h%10,h=Math.floor(h/10);S+=h,p=(S+g)%10,0!=p&&(p=10-p)}if(this.checkSum2==i.StiPlesseyCheckSum.Modulo11){for(var h=0,m=2,c=a.length;c>=0;c--)h+=u[c]*m,++m>7&&(m=2);p=h%11,0!=p&&(p=11-p)}u[a.length+1]=p,s.append(this.plesseySymbols[p])}var f=new n;f.append(this.plesseyStartCode);for(var c=0;c<u.length;c++)f.append(this.plesseyTable[u[c]]);f.append(this.plesseyStopCode);var y=new n(this.codeToBar(f.toString()));this.calculateSizeFull(this.plesseySpaceLeft,this.plesseySpaceRight,this.plesseySpaceTop,this.plesseySpaceBottom,this.plesseyLineHeightShort,this.plesseyLineHeightLong,this.plesseyTextPosition,this.plesseyTextHeight,this.plesseyMainHeight,this.plesseyLineHeightForCut,1.667,o,a,s.toString(),y.toString(),r,e),this.drawBarCode(t,r,e)},o.prototype.createNew=function(){return new o},o}(i.StiBarCodeTypeService);i.StiPlesseyBarCodeType=o}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function n(e,r,n,o){void 0===e&&(e=8),void 0===r&&(r=1),void 0===n&&(n=i.StiPlesseyCheckSum.Modulo10),void 0===o&&(o=i.StiPlesseyCheckSum.None);var a=t.call(this,e,r,n,o)||this;return a.msiTable=["0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"],a.msiStartCode="1",a.msiStopCode="00",a}return __extends(n,t),Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiMsiBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"serviceName",{get:function(){return"Msi"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultCodeValue",{get:function(){return"1234567"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[4]=!0,t[5]=!0,t[11]=!0,t[13]=!0,t},enumerable:!0,configurable:!0}),n.prototype.codeToBarMsi=function(t){for(var e=new r,i=0;i<t.length;i++){var n=new r;"1"==t[i]?n.append("71"):n.append("53"),e.append(n)}return e.toString()},n.prototype.draw=function(t,e,n,o){var a=this.getCode(e);a=this.checkCodeSymbols(a,this.plesseySymbols);var s=new r(a),l=a.length;this.checkSum1!=i.StiPlesseyCheckSum.None&&l++,this.checkSum2!=i.StiPlesseyCheckSum.None&&l++;for(var u=Array.create(Number,l),c=0;c<a.length;c++)u[c]=this.plesseySymbols.indexOf(a.charAt(c));if(this.checkSum1!=i.StiPlesseyCheckSum.None){var p=0;if(this.checkSum1==i.StiPlesseyCheckSum.Modulo10){for(var h=0,g=0,m=1,d=!1,c=a.length-1;c>=0;c--)0==d?(h+=u[c]*m,m*=10):g+=u[c],d=!d;h*=2;var S=0;while(h>=10)S+=h%10,h=Math.floor(h/10);S+=h,p=(S+g)%10,0!=p&&(p=10-p)}if(this.checkSum1==i.StiPlesseyCheckSum.Modulo11){for(var h=0,m=2,c=a.length-1;c>=0;c--)h+=u[c]*m,++m>7&&(m=2);p=h%11,0!=p&&(p=11-p)}u[a.length]=p,s.append(this.plesseySymbols[p])}if(this.checkSum2!=i.StiPlesseyCheckSum.None){var p=0;if(this.checkSum2==i.StiPlesseyCheckSum.Modulo10){for(var h=0,g=0,m=1,d=!1,c=a.length;c>=0;c--)0==d?(h+=u[c]*m,m*=10):g+=u[c],d=!d;h*=2;var S=0;while(h>=10)S+=h%10,h=Math.floor(h/10);S+=h,p=(S+g)%10,0!=p&&(p=10-p)}if(this.checkSum2==i.StiPlesseyCheckSum.Modulo11){for(var h=0,m=2,c=a.length;c>=0;c--)h+=u[c]*m,++m>7&&(m=2);p=h%11,0!=p&&(p=11-p)}u[a.length+1]=p,s.append(this.plesseySymbols[p])}var f=new r;f.append(this.msiStartCode);for(var c=0;c<u.length;c++)f.append(this.msiTable[u[c]]);f.append(this.msiStopCode);var y=new r(this.codeToBarMsi(f.toString()));this.calculateSizeFull(this.plesseySpaceLeft,this.plesseySpaceRight,this.plesseySpaceTop,this.plesseySpaceBottom,this.plesseyLineHeightShort,this.plesseyLineHeightLong,this.plesseyTextPosition,this.plesseyTextHeight,this.plesseyMainHeight,this.plesseyLineHeightForCut,1.667,o,a,s.toString(),y.toString(),n,e),this.drawBarCode(t,n,e)},n.prototype.createNew=function(){return new n},n}(i.StiPlesseyBarCodeType);i.StiMsiBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n;!function(t){t[t.Text=0]="Text",t[t.Numeric=1]="Numeric",t[t.Byte=2]="Byte"}(n||(n={}));var o;!function(t){t[t.TextMode=900]="TextMode",t[t.NumericMode=902]="NumericMode",t[t.ByteMode=901]="ByteMode",t[t.ByteMode6=924]="ByteMode6"}(o||(o={}));var a;!function(t){t[t.None=0]="None",t[t.Upper=1]="Upper",t[t.Lower=2]="Lower",t[t.Mixed=4]="Mixed",t[t.Punctuation=8]="Punctuation"}(a||(a={}));var s;!function(t){t[t.None=-1]="None",t[t.Punctuation=25]="Punctuation",t[t.Space=26]="Space",t[t.Lower=27]="Lower",t[t.TempUpper=27]="TempUpper",t[t.Mixed=28]="Mixed",t[t.UpperFromMixed=28]="UpperFromMixed",t[t.TempPunctuation=29]="TempPunctuation",t[t.UpperFromPunctuation=29]="UpperFromPunctuation"}(s||(s={}));var l=function(){function t(t,e,i){this.type=t,this.start=e,this.length=i}return t}(),u=function(){function t(){this.list=[]}return t.prototype.addSegment=function(t,e,i){this.list.add(new l(t,e,i))},t.prototype.getSegment=function(t){return this.list[t]},Object.defineProperty(t.prototype,"size",{get:function(){return this.list.count},enumerable:!0,configurable:!0}),t}(),c=function(){function t(t,e,r,a,s,l,c,p,h){void 0===r&&(r=i.StiPdf417ErrorsCorrectionLevel.Automatic),void 0===a&&(a=0),void 0===s&&(s=0),void 0===l&&(l=!0),void 0===c&&(c=!0),void 0===p&&(p=1),void 0===h&&(h=3),this.max_data_codewords=926,this.codeWordLength=17,this.startPatternCode=130728,this.stopPatternCode=260649,this._matrix=null,this.text=null,this.codewords=null,this._errorMessage=null,this.codeColumns=1,this.codeRows=3,this.errorLevel=0,this.aspectRatio=1,this.ratioY=3,this.codeColumns=a,this.codeRows=s,this.aspectRatio=p,this.ratioY=h,r!=i.StiPdf417ErrorsCorrectionLevel.Automatic&&(this.errorLevel=r),this.codewords=Array.create(Number,2*this.max_data_codewords+2);try{if(null==t)throw"Input data cannot be null.";this.text=Array.create(Number,t.length);for(var g=0;g<t.length;g++){if(t[g].charCodeAt(0)>255)throw"Input data not valid for this barcode.";this.text[g]=t[g].charCodeAt(0)}var m=new u;switch(e){case i.StiPdf417EncodingMode.Text:for(var d=0;d<this.text.length;d++){var S=this.text[d];if(S>=32&&S<=127||9==S||10==S||13==S)continue;throw"Input data not valid for current encoding mode."}m.addSegment(n.Text,0,this.text.length);break;case i.StiPdf417EncodingMode.Numeric:for(var d=0;d<this.text.length;d++){if(this.text[d]>="0".charCodeAt(0)&&this.text[d]<="9".charCodeAt(0))continue;throw"Input data not valid for current encoding mode."}m.addSegment(n.Numeric,0,this.text.length);break;case i.StiPdf417EncodingMode.Byte:m.addSegment(n.Byte,0,this.text.length);break}var f=this.dataCompaction(m);m=null;var y=f;if(y>this.max_data_codewords)throw"Too many data.";var b=this.max_data_codewords+2-y,C=8,v=512;while(C>0){if(b>=v)break;C--,v>>=1}if(r==i.StiPdf417ErrorsCorrectionLevel.Automatic&&(this.errorLevel=5,y<=320&&(this.errorLevel=4),y<=160&&(this.errorLevel=3),y<=40&&(this.errorLevel=2)),this.errorLevel>C)throw"Too many data - \r\n No space for error correction.";var I=2<<this.errorLevel,A=y+I;if(l&&c){var w=(Math.sqrt(A*h*p*4/17+16)-4)/2;this.codeColumns=Math.trunc(w+.5),this.codeColumns<1&&(this.codeColumns=1),this.codeColumns>30&&(this.codeColumns=30),this.codeRows=Math.floor((A-1)/this.codeColumns)+1,this.codeRows<3&&(this.codeRows=3),this.codeRows>90&&(this.codeRows=90,this.codeColumns=Math.floor((A-1)/this.codeRows)+1)}else if(l)this.codeColumns=Math.floor((A-1)/this.codeRows)+1,this.codeColumns<1&&(this.codeColumns=1),this.codeColumns>30&&(this.codeColumns=30,this.codeRows=Math.floor((A-1)/this.codeColumns)+1);else if(c)this.codeRows=Math.floor((A-1)/this.codeColumns)+1,this.codeRows<3&&(this.codeRows=3),this.codeRows>90&&(this.codeRows=90,this.codeColumns=Math.floor((A-1)/this.codeRows)+1);else if(this.codeColumns*this.codeRows<A)throw"Size is too small for data.";this.codeColumns*this.codeRows>this.max_data_codewords+2&&(this.codeColumns=29,this.codeRows=32);var T=this.codeColumns*this.codeRows-I-y;f=y;while(0!=T)this.codewords[f++]=o.TextMode,T--;y=f,this.codewords[0]=y,this.calculateErrorCorrection(y),this.makeOutBits(),this.codewords=null,this.text=null}catch(t){this._errorMessage=t.message}}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this._matrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrixWidth",{get:function(){return this._matrixWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrixHeight",{get:function(){return this.codeRows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:!0,configurable:!0}),t.prototype.makeOutBits=function(){var e=0;this._matrixWidth=(1+1+this.codeColumns+1+1)*this.codeWordLength+1,this._matrix=Array.create(Number,this.matrixWidth*this.codeRows);for(var i=0,r={ref:i},n=0;n<this.codeRows;n++){this.outCodeword(this.startPatternCode,r,this.codeWordLength);var o=n%3,a=30*Math.floor(n/3);switch(o){case 0:a+=Math.floor((this.codeRows-1)/3);break;case 1:a+=3*this.errorLevel+(this.codeRows-1)%3;break;default:a+=this.codeColumns-1;break}this.outCodeword(t.clustersData[o][a],r,this.codeWordLength);for(var s=0;s<this.codeColumns;s++)this.outCodeword(t.clustersData[o][this.codewords[e++]],r,this.codeWordLength);switch(a=30*Math.floor(n/3),o){case 0:a+=this.codeColumns-1;break;case 1:a+=Math.floor((this.codeRows-1)/3);break;default:a+=3*this.errorLevel+(this.codeRows-1)%3;break}this.outCodeword(t.clustersData[o][a],r,this.codeWordLength),this.outCodeword(this.stopPatternCode,r,this.codeWordLength+1)}},t.prototype.outCodeword=function(t,e,i){for(var r=e.ref,n=0;n<i;n++){var o=r+i-n-1;this.matrix[o]=0!=(1&t)?1:0,t>>=1}r+=i,e.ref=r},t.prototype.calculateErrorCorrection=function(e){for(var i=e,r=929,n=2<<this.errorLevel,o=0;o<n;o++)this.codewords[i+o]=0;for(var a=n-1,s=0;s<e;s++)for(var l=this.codewords[s]+this.codewords[i],u=0;u<=a;u++){var c=l*t.errorLevelData[this.errorLevel][a-u]%r,p=r-c;this.codewords[i+u]=((u==a?0:this.codewords[i+u+1])+p)%r}for(var o=0;o<n;o++)this.codewords[i+o]=(r-this.codewords[i+o])%r},t.prototype.dataCompaction=function(t){for(var e=1,i={ref:e},r=0;r<t.size;r++){var o=t.getSegment(r);switch(o.type){case n.Text:this.textCompaction(o,i);break;case n.Numeric:this.numberCompaction(o,i);break;case n.Byte:this.byteCompaction(o,i);break}}return e=i.ref},t.prototype.getSubMode=function(t,e){var i=this.text[t];if(i>="A".charCodeAt(0)&&i<="Z".charCodeAt(0))return e.ref=i-"A".charCodeAt(0),a.Upper;if(i>="a".charCodeAt(0)&&i<="z".charCodeAt(0))return e.ref=i-"a".charCodeAt(0),a.Lower;if(i==" ".charCodeAt(0))return e.ref=s.Space,a.Upper|a.Lower|a.Mixed;var r="0123456789&\r\t,:#-.$/+%*=^".indexOf(String.fromCharCode(i)),n=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'".indexOf(String.fromCharCode(i));if(-1==r&&-1==n)return e.ref=0,a.None;if(r==n)return e.ref=r,a.Mixed|a.Punctuation;if(-1!=r)return e.ref=r,a.Mixed;return e.ref=n,a.Punctuation},t.prototype.textCompaction=function(t,e){var i=e.ref;1!=i&&(this.codewords[i++]=o.TextMode);for(var r=t.start,n=t.length,l=Array.create(Number,3*n),u=a.Upper,c=0,p=r;p<r+n;p++){var h=void 0,g=s.None,m=s.None,d={ref:h},S=this.getSubMode(p,d);if(h=d.ref,0!=(S&u)){l[c++]=h;continue}var f=a.None;if(p+2<n){var y=void 0,b={ref:y};f=this.getSubMode(p+1,b)&this.getSubMode(p+2,b)}switch(u){case a.Upper:0!=(S&a.Lower)?(g=s.Lower,u=a.Lower):0!=(S&a.Mixed)?(g=s.Mixed,u=a.Mixed):0!=(f&a.Punctuation)?(g=s.Mixed,m=s.Punctuation,u=a.Punctuation):g=s.TempPunctuation;break;case a.Lower:0!=(S&a.Upper)?0!=(f&a.Upper)?(g=s.Mixed,m=s.UpperFromMixed,u=a.Upper):g=s.TempUpper:0!=(S&a.Mixed)?(g=s.Mixed,u=a.Mixed):0!=(f&a.Punctuation)?(g=s.Mixed,m=s.Punctuation,u=a.Punctuation):g=s.TempPunctuation;break;case a.Mixed:0!=(S&a.Lower)?(g=s.Lower,u=a.Lower):0!=(S&a.Upper)?(g=s.UpperFromMixed,u=a.Upper):0!=(f&a.Punctuation)?(g=s.Punctuation,u=a.Punctuation):g=s.TempPunctuation;break;case a.Punctuation:l[c++]=s.UpperFromPunctuation,u=a.Upper,p--;continue}g!=s.None&&(l[c++]=g),m!=s.None&&(l[c++]=m),l[c++]=h}0!=(1&c)&&(l[c++]=s.TempPunctuation);var C=c;c=0;while(c<C)this.codewords[i++]=30*l[c]+l[c+1],c+=2;e.ref=i},t.prototype.numberCompaction=function(t,e){var i=e.ref;this.codewords[i++]=o.NumericMode;var r=t.start,n=t.length;while(n>0){for(var a=n<44?n:44,s=Math.floor(a/3),l=0;l<=s;l++)this.codewords[i+l]=0;this.codewords[i+s]=1;for(var u=r;u<r+a;u++){for(var l=s;l>=0;l--)this.codewords[i+l]*=10;this.codewords[i+s]+=this.text[u]-"0".charCodeAt(0);for(var l=s;l>0;l--){var c=this.codewords[i+l];c>=900&&(this.codewords[i+l-1]+=Math.floor(c/900),this.codewords[i+l]=c%900)}}i+=s+1,r+=a,n-=a}e.ref=i},t.prototype.byteCompaction=function(t,e){var i=e.ref;this.codewords[i++]=t.length%6!=0?o.ByteMode:o.ByteMode6;var r=t.start,n=t.length;while(n>=6){var a=this.text[r];a*=256,a+=this.text[r+1],a*=256,a+=this.text[r+2],a*=256,a+=this.text[r+3],a*=256,a+=this.text[r+4],a*=256,a+=this.text[r+5],this.codewords[i+4]=Math.trunc(a%900),a=Math.floor(a/900),this.codewords[i+3]=Math.trunc(a%900),a=Math.floor(a/900),this.codewords[i+2]=Math.trunc(a%900),a=Math.floor(a/900),this.codewords[i+1]=Math.trunc(a%900),a=Math.floor(a/900),this.codewords[i+0]=Math.trunc(a%900),i+=5,r+=6,n-=6}if(n>0)for(var s=0;s<n;s++)this.codewords[i++]=this.text[r+s];e.ref=i},
t.clustersData=[[120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420],[128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702],[109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714]],t.errorLevelData=[[27,917],[522,568,723,809],[237,308,436,284,646,653,428,379],[274,562,232,755,599,524,801,132,295,116,442,428,295,42,176,65],[361,575,922,525,176,586,640,321,536,742,677,742,687,284,193,517,273,494,263,147,593,800,571,320,803,133,231,390,685,330,63,410],[539,422,6,93,862,771,453,106,610,287,107,505,733,877,381,612,723,476,462,172,430,609,858,822,543,376,511,400,672,762,283,184,440,35,519,31,460,594,225,535,517,352,605,158,651,201,488,502,648,733,717,83,404,97,280,771,840,629,4,381,843,623,264,543],[521,310,864,547,858,580,296,379,53,779,897,444,400,925,749,415,822,93,217,208,928,244,583,620,246,148,447,631,292,908,490,704,516,258,457,907,594,723,674,292,272,96,684,432,686,606,860,569,193,219,129,186,236,287,192,775,278,173,40,379,712,463,646,776,171,491,297,763,156,732,95,270,447,90,507,48,228,821,808,898,784,663,627,378,382,262,380,602,754,336,89,614,87,432,670,616,157,374,242,726,600,269,375,898,845,454,354,130,814,587,804,34,211,330,539,297,827,865,37,517,834,315,550,86,801,4,108,539],[524,894,75,766,882,857,74,204,82,586,708,250,905,786,138,720,858,194,311,913,275,190,375,850,438,733,194,280,201,280,828,757,710,814,919,89,68,569,11,204,796,605,540,913,801,700,799,137,439,418,592,668,353,859,370,694,325,240,216,257,284,549,209,884,315,70,329,793,490,274,877,162,749,812,684,461,334,376,849,521,307,291,803,712,19,358,399,908,103,511,51,8,517,225,289,470,637,731,66,255,917,269,463,830,730,433,848,585,136,538,906,90,2,290,743,199,655,903,329,49,802,580,355,588,188,462,10,134,628,320,479,130,739,71,263,318,374,601,192,605,142,673,687,234,722,384,177,752,607,640,455,193,689,707,805,641,48,60,732,621,895,544,261,852,655,309,697,755,756,60,231,773,434,421,726,528,503,118,49,795,32,144,500,238,836,394,280,566,319,9,647,550,73,914,342,126,32,681,331,792,620,60,609,441,180,791,893,754,605,383,228,749,760,213,54,297,134,54,834,299,922,191,910,532,609,829,189,20,167,29,872,449,83,402,41,656,505,579,481,173,404,251,688,95,497,555,642,543,307,159,924,558,648,55,497,10],[352,77,373,504,35,599,428,207,409,574,118,498,285,380,350,492,197,265,920,155,914,299,229,643,294,871,306,88,87,193,352,781,846,75,327,520,435,543,203,666,249,346,781,621,640,268,794,534,539,781,408,390,644,102,476,499,290,632,545,37,858,916,552,41,542,289,122,272,383,800,485,98,752,472,761,107,784,860,658,741,290,204,681,407,855,85,99,62,482,180,20,297,451,593,913,142,808,684,287,536,561,76,653,899,729,567,744,390,513,192,516,258,240,518,794,395,768,848,51,610,384,168,190,826,328,596,786,303,570,381,415,641,156,237,151,429,531,207,676,710,89,168,304,402,40,708,575,162,864,229,65,861,841,512,164,477,221,92,358,785,288,357,850,836,827,736,707,94,8,494,114,521,2,499,851,543,152,729,771,95,248,361,578,323,856,797,289,51,684,466,533,820,669,45,902,452,167,342,244,173,35,463,651,51,699,591,452,578,37,124,298,332,552,43,427,119,662,777,475,850,764,364,578,911,283,711,472,420,245,288,594,394,511,327,589,777,699,688,43,408,842,383,721,521,560,644,714,559,62,145,873,663,713,159,672,729,624,59,193,417,158,209,563,564,343,693,109,608,563,365,181,772,677,310,248,353,708,410,579,870,617,841,632,860,289,536,35,777,618,586,424,833,77,597,346,269,757,632,695,751,331,247,184,45,787,680,18,66,407,369,54,492,228,613,830,922,437,519,644,905,789,420,305,441,207,300,892,827,141,537,381,662,513,56,252,341,242,797,838,837,720,224,307,631,61,87,560,310,756,665,397,808,851,309,473,795,378,31,647,915,459,806,590,731,425,216,548,249,321,881,699,535,673,782,210,815,905,303,843,922,281,73,469,791,660,162,498,308,155,422,907,817,187,62,16,425,535,336,286,437,375,273,610,296,183,923,116,667,751,353,62,366,691,379,687,842,37,357,720,742,330,5,39,923,311,424,242,749,321,54,669,316,342,299,534,105,667,488,640,672,576,540,316,486,721,610,46,656,447,171,616,464,190,531,297,321,762,752,533,175,134,14,381,433,717,45,111,20,596,284,736,138,646,411,877,669,141,919,45,780,407,164,332,899,165,726,600,325,498,655,357,752,768,223,849,647,63,310,863,251,366,304,282,738,675,410,389,244,31,121,303,263]],t}(),p=function(t){function n(e,r,n,o,a,s,l,u,c){void 0===e&&(e=25),void 0===r&&(r=i.StiPdf417EncodingMode.Text),void 0===n&&(n=i.StiPdf417ErrorsCorrectionLevel.Automatic),void 0===o&&(o=5),void 0===a&&(a=3),void 0===s&&(s=!0),void 0===l&&(l=!0),void 0===u&&(u=1),void 0===c&&(c=3);var p=t.call(this)||this;return p._module=20,p._height=1,p._encodingMode=i.StiPdf417EncodingMode.Text,p._errorsCorrectionLevel=i.StiPdf417ErrorsCorrectionLevel.Automatic,p._dataColumns=4,p._dataRows=7,p._autoDataColumns=!0,p._autoDataRows=!0,p._aspectRatio=3,p._ratioY=3,p._module=e,p._encodingMode=r,p._errorsCorrectionLevel=n,p._dataColumns=o,p._dataRows=a,p._autoDataColumns=s,p._autoDataRows=l,p._aspectRatio=u,p._ratioY=c,p}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyNumber("Module",this.module,20),r.addPropertyNumber("Height",this.height,1),r.addPropertyEnum("EncodingMode",i.StiPdf417EncodingMode,this.encodingMode,i.StiPdf417EncodingMode.Text),r.addPropertyEnum("ErrorsCorrectionLevel",i.StiPdf417ErrorsCorrectionLevel,this.errorsCorrectionLevel,i.StiPdf417ErrorsCorrectionLevel.Automatic),r.addPropertyNumber("DataColumns",this.dataColumns,4),r.addPropertyNumber("DataRows",this.dataRows,7),r.addPropertyBool("AutoDataColumns",this.autoDataColumns,!0),r.addPropertyBool("AutoDataRows",this.autoDataRows,!0),r.addPropertyNumber("AspectRatio",this.aspectRatio,3),r.addPropertyNumber("RatioY",this.ratioY,3),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Module":this.module=o.value.toNumber();break;case"Height":this.height=o.value.toNumber();break;case"EncodingMode":this.encodingMode=r.parse(i.StiPdf417EncodingMode,o.value.toString());break;case"ErrorsCorrectionLevel":this.errorsCorrectionLevel=r.parse(i.StiPdf417ErrorsCorrectionLevel,o.value.toString());break;case"DataColumns":this.dataColumns=o.value.toNumber();break;case"DataRows":this.dataRows=o.value.toNumber();break;case"AutoDataColumns":this.autoDataColumns=o.value.toBoolean();break;case"AutoDataRows":this.autoDataRows=o.value.toBoolean();break;case"AspectRatio":this.aspectRatio=o.value.toNumber();break;case"RatioY":this.ratioY=o.value.toNumber();break}}},n.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Module":this.module=o.textContent.toNumber();break;case"Height":this.height=o.textContent.toNumber();break;case"EncodingMode":this.encodingMode=r.parse(i.StiPdf417EncodingMode,o.textContent.toString());break;case"ErrorsCorrectionLevel":this.errorsCorrectionLevel=r.parse(i.StiPdf417ErrorsCorrectionLevel,o.textContent.toString());break;case"DataColumns":this.dataColumns=o.textContent.toNumber();break;case"DataRows":this.dataRows=o.textContent.toNumber();break;case"AutoDataColumns":this.autoDataColumns=o.textContent.toBoolean();break;case"AutoDataRows":this.autoDataRows=o.textContent.toBoolean();break;case"AspectRatio":this.aspectRatio=o.textContent.toNumber();break;case"RatioY":this.ratioY=o.textContent.toNumber();break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiPdf417BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"serviceName",{get:function(){return"Pdf417"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultCodeValue",{get:function(){return"12345678901"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<2&&(this._module=2),t>400&&(this._module=400)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"encodingMode",{get:function(){return this._encodingMode},set:function(t){this._encodingMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"errorsCorrectionLevel",{get:function(){return this._errorsCorrectionLevel},set:function(t){this._errorsCorrectionLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataColumns",{get:function(){return this._dataColumns},set:function(t){t<1&&(t=1),t>30&&(t=30),this._dataColumns=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataRows",{get:function(){return this._dataRows},set:function(t){t<3&&(t=3),t>90&&(t=90),this._dataRows=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoDataColumns",{get:function(){return this._autoDataColumns},set:function(t){this._autoDataColumns=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoDataRows",{get:function(){return this._autoDataRows},set:function(t){this._autoDataRows=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(t){t<.01&&(t=.01),t>100&&(t=100),this._aspectRatio=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ratioY",{get:function(){return this._ratioY},set:function(t){t<2&&(t=2),t>5&&(t=5),this._ratioY=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelFontHeight",{get:function(){return this.defaultLabelFontHeight},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[0]=!0,t[1]=!0,t[2]=!0,t[6]=!0,t[7]=!0,t[8]=!0,t[13]=!0,t[16]=!0,t},enumerable:!0,configurable:!0}),n.prototype.draw=function(t,e,i,r){var n=this.getCode(e);this.barCodeData.code=n;var o=new c(n,this.encodingMode,this.errorsCorrectionLevel,this.dataColumns,this.dataRows,this.autoDataColumns,this.autoDataRows,this.aspectRatio,this.ratioY);this.barCodeData.matrixGrid=o.matrix,this.barCodeData.matrixWidth=o.matrixWidth,this.barCodeData.matrixHeight=o.matrixHeight,this.barCodeData.matrixRatioY=this.ratioY,null==o.errorMessage?this.draw2DBarCode(t,i,e,r):this.drawBarCodeError2(t,i,e,o.errorMessage)},n.prototype.createNew=function(){return new n},n}(i.StiBarCodeTypeService);i.StiPdf417BarCodeType=p}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i){void 0===e&&(e=20),void 0===i&&(i=1);var r=t.call(this)||this;return r.pharmacodeSymbols="0123456789",r.defaultPharmacodeModule=20,r._module=20,r._height=1,r.pharmacodeSpaceLeft=1,r.pharmacodeSpaceRight=1,r.pharmacodeSpaceTop=0,r.pharmacodeSpaceBottom=.5,r.pharmacodeLineHeightShort=16,r.pharmacodeLineHeightLong=r.pharmacodeLineHeightShort,r.pharmacodeTextPosition=r.pharmacodeLineHeightShort+r.pharmacodeSpaceBottom,r.pharmacodeTextHeight=5,r.pharmacodeMainHeight=22,r.pharmacodeLineHeightForCut=r.pharmacodeLineHeightShort,r._module=e,r._height=i,r}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,20),i.addPropertyNumber("Height",this.height,1),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this._module=r.value.toNumber();break;case"Height":this._height=r.value.toNumber();break}}},i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this._module=r.textContent.toNumber();break;case"Height":this._height=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiPharmacodeBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Pharmacode"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"1256"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=20},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.pharmacodeTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,this.pharmacodeSymbols),o.length>6&&(o="131070"),o.length<1&&(o="3");var a=parseInt(o);a>131070&&(a=131070),a<3&&(a=3);var s=new r,l=a-3,u=2,c=3;while(l>c)l-=c+1,u++,c=(1<<u)-1;for(var p=u-1;p>=0;p--)(l&1<<p)>0?s.append("6"):s.append("4"),0!=p&&s.append("1");this.calculateSizeFull(this.pharmacodeSpaceLeft,this.pharmacodeSpaceRight,this.pharmacodeSpaceTop,this.pharmacodeSpaceBottom,this.pharmacodeLineHeightShort,this.pharmacodeLineHeightLong,this.pharmacodeTextPosition,this.pharmacodeTextHeight,this.pharmacodeMainHeight,this.pharmacodeLineHeightForCut,2,n,o,a.toString(),s.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiPharmacodeBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i,r){void 0===e&&(e=20),void 0===i&&(i=1),void 0===r&&(r=26);var n=t.call(this)||this;return n.postnetSymbols="0123456789",n.postnetTable=["11000","00011","00101","00110","01001","01010","01100","10001","10010","10100"],n.postnetStartCode="1",n.postnetStopCode="1",n._module=20,n._space=26,n._height=1,n.postnetSpaceLeft=1,n.postnetSpaceRight=1,n.postnetSpaceTop=0,n.postnetSpaceBottom=1,n.postnetLineHeightLong=6.25,n.postnetLineHeightShort=2*n.postnetLineHeightLong/5,n.postnetTextPosition=n.postnetLineHeightLong+n.postnetSpaceBottom,n.postnetTextHeight=5.5,n.postnetMainHeight=14,n.postnetLineHeightForCut=n.postnetLineHeightLong,n._module=e,n._height=i,n._space=r,n}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,20),i.addPropertyNumber("Height",this.height,1),i.addPropertyNumber("Space",this.space,26),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this._module=r.value.toNumber();break;case"Height":this._height=r.value.toNumber();break;case"Space":this._space=r.value.toNumber();break}}},i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this._module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break;case"Space":this._space=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiPostnetBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"Postnet"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"12345"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<20&&(this._module=20),t>20&&(this._module=20)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"space",{get:function(){return this._space},set:function(t){this._space=t,t<12&&(this._space=12),t>40&&(this._space=40)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<1&&(this._height=1),t>4&&(this._height=4)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.postnetTextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[18]=!0,t},enumerable:!0,configurable:!0}),i.prototype.codeToBar=function(t){for(var e=new r,i=0;i<t.length;i++){var n=new r;"1"==t[i]?n.append("81"):n.append("e1"),e.append(n)}return e.toString()},i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);switch(o=this.checkCodeSymbols(o,this.postnetSymbols),o.length>11&&(o=o.substr(0,11)),o.length){case 0:o="00000";break;case 1:o+="0000";break;case 2:case 6:o+="000";break;case 3:case 7:o+="00";break;case 4:case 8:case 10:o+="0";break}var a=new r(o);11==o.length&&a.insert(9,"-"),o.length>5&&a.insert(5,"-");for(var s=Array.create(Number,o.length+1),l=0;l<o.length;l++)s[l]=this.postnetSymbols.indexOf(o[l]);for(var u=0,l=0;l<o.length;l++)u+=s[l];u%=10,0!=u&&(u=10-u),s[o.length]=u;var c=new r;c.append(this.postnetStartCode);for(var l=0;l<s.length;l++)c.append(this.postnetTable[s[l]]);c.append(this.postnetStopCode);var p=new r(this.codeToBar(c.toString()));this.calculateSizeFull(this.postnetSpaceLeft,this.postnetSpaceRight,this.postnetSpaceTop,this.postnetSpaceBottom,this.postnetLineHeightShort,this.postnetLineHeightLong,this.postnetTextPosition,this.postnetTextHeight,this.postnetMainHeight,this.postnetLineHeightForCut,this.space/this.module,n,o,a.toString(),p.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiPostnetBarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiImageConverter,n=t.System.Enum,o=function(o){function a(t,e,r,n,a){void 0===t&&(t=40),void 0===e&&(e=i.StiQRCodeErrorCorrectionLevel.Level1),void 0===r&&(r=i.StiQRCodeSize.Automatic),void 0===n&&(n=null),void 0===a&&(a=0);var s=o.call(this)||this;return s._module=40,s._height=1,s._errorCorrectionLevel=i.StiQRCodeErrorCorrectionLevel.Level1,s._matrixSize=i.StiQRCodeSize.Automatic,s._image=null,s._imageMultipleFactor=1,s.module=t,s.errorCorrectionLevel=e,s.matrixSize=r,s.image=n,s.imageMultipleFactor=a,s}return __extends(a,o),a.prototype.saveToJsonObject=function(t){var e=o.prototype.saveToJsonObject.call(this,t);return e.addPropertyNumber("Height",this.height,1),e.addPropertyNumber("Module",this.module,40),e.addPropertyEnum("ErrorCorrectionLevel",i.StiQRCodeErrorCorrectionLevel,this.errorCorrectionLevel,i.StiQRCodeErrorCorrectionLevel.Level1),e.addPropertyEnum("MatrixSize",i.StiQRCodeSize,this.matrixSize,i.StiQRCodeSize.Automatic),e.addPropertyNumber("ImageMultipleFactor",this.imageMultipleFactor,1),e.addPropertyStringNullOfEmpty("Image",r.imageToString(this.image)),e},a.prototype.loadFromJsonObject=function(t){for(var e=0,o=t.properties();e<o.length;e++){var a=o[e];switch(a.name){case"Module":this.module=a.value.toNumber();break;case"Height":this.height=a.value.toNumber();break;case"ErrorCorrectionLevel":this.errorCorrectionLevel=n.parse(typeof i.StiQRCodeErrorCorrectionLevel,a.value.toString());break;case"MatrixSize":this.matrixSize=n.parse(typeof i.StiQRCodeSize,a.value.toString());break;case"ImageMultipleFactor":this.imageMultipleFactor=a.value.toNumber();break;case"Image":this.image=r.stringToImage(a.value);break}}},a.prototype.loadFromXmlObject=function(t){o.prototype.loadFromXmlObject.call(this,t);for(var e=0;e<t.childNodes.length;e++){var a=t.childNodes[e];switch(a.nodeName){case"Module":this.module=a.textContent.toNumber();break;case"Height":this.height=a.textContent.toNumber();break;case"ErrorCorrectionLevel":this.errorCorrectionLevel=n.parse(typeof i.StiQRCodeErrorCorrectionLevel,a.textContent);break;case"MatrixSize":this.matrixSize=n.parse(typeof i.StiQRCodeSize,a.textContent);break;case"ImageMultipleFactor":this.imageMultipleFactor=a.textContent.toNumber();break;case"Image":this.image=r.stringToImage(a.textContent);break}}},Object.defineProperty(a.prototype,"componentId",{get:function(){return e.StiComponentId.StiQRCodeBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"serviceName",{get:function(){return"QR Code"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultCodeValue",{get:function(){return"12345678901"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<2&&(this._module=2),t>400&&(this._module=400)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errorCorrectionLevel",{get:function(){return this._errorCorrectionLevel},set:function(t){this._errorCorrectionLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"matrixSize",{get:function(){return this._matrixSize},set:function(t){this._matrixSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"image",{get:function(){return this._image},set:function(t){this._image!=t&&(this._image=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"imageMultipleFactor",{get:function(){return this._imageMultipleFactor},set:function(t){this._imageMultipleFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"labelFontHeight",{get:function(){return 8},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[10]=!0,t[12]=!0,t[13]=!0,t},enumerable:!0,configurable:!0}),a.prototype.draw=function(e,r,n,o){var a=this.getCode(r);this.barCodeData.code=a;var s=i.ErrorCorrectionLevel.L;this.errorCorrectionLevel==i.StiQRCodeErrorCorrectionLevel.Level2&&(s=i.ErrorCorrectionLevel.M),this.errorCorrectionLevel==i.StiQRCodeErrorCorrectionLevel.Level3&&(s=i.ErrorCorrectionLevel.Q),this.errorCorrectionLevel==i.StiQRCodeErrorCorrectionLevel.Level4&&(s=i.ErrorCorrectionLevel.H);try{var l=new i.StiQRCode;i.QREncoder.Encode(a,s,l);for(var u=l.GetMatrix(),c=Array.create(Number,u.getWidth()*u.getHeight()),p=0;p<u.getHeight();p++)for(var h=p*u.getWidth(),g=0;g<u.getWidth();g++)c[h+g]=u.get(g,p);this.barCodeData.matrixGrid=c,this.barCodeData.matrixWidth=u.getWidth(),this.barCodeData.matrixHeight=u.getHeight(),this.barCodeData.matrixRatioY=1,this.draw2DBarCode(e,n,r,o)}catch(i){t.System.StiError.showError(i,!1),this.drawBarCodeError(e,n,r)}},a.prototype.createNew=function(){return new a},a}(i.StiBarCodeTypeService);i.StiQRCodeBarCodeType=o}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=t.System.Drawing.StringAlignment,o=t.System.Enum,a=function(t){function a(e,r,n){void 0===e&&(e=20),void 0===r&&(r=1),void 0===n&&(n=i.StiCheckSum.Yes);var o=t.call(this)||this;return o.royalMail4StateSymbols="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",o.royalMail4StateStartCode="1",o.royalMail4StateStopCode="0",o.royalMail4StateCodes=["3300","3210","3201","2310","2301","2211","3120","3030","3021","2130","2121","2031","3102","3012","3003","2112","2103","2013","1320","1230","1221","0330","0321","0231","1302","1212","1203","0312","0303","0213","1122","1032","1023","0132","0123","0033"],o._module=20,o._height=1,o._checkSum=i.StiCheckSum.Yes,o.royalMail4StateSpaceLeft=3.9,o.royalMail4StateSpaceRight=3.9,o.royalMail4StateSpaceTop=3.9,o.royalMail4StateSpaceBottom=3.9,o.royalMail4StateLineHeightLong=10,o.royalMail4StateLineHeightShort=.62*o.royalMail4StateLineHeightLong,o.royalMail4StateTextPosition=o.royalMail4StateSpaceTop+o.royalMail4StateLineHeightLong+o.royalMail4StateSpaceBottom+1,o.royalMail4StateTextHeight=5,o.royalMail4StateMainHeight=o.royalMail4StateSpaceTop+o.royalMail4StateLineHeightLong+o.royalMail4StateSpaceBottom+7,o.royalMail4StateLineHeightForCut=o.royalMail4StateLineHeightLong,o._module=e,o._height=r,o._checkSum=n,o}return __extends(a,t),a.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyNumber("Module",this.module,20),r.addPropertyNumber("Height",this.height,1),r.addPropertyEnum("CheckSum",i.StiCheckSum,this.checkSum,i.StiCheckSum.Yes),r},a.prototype.loadFromJsonObject=function(t){for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"Module":this._module=n.value.toNumber();break;case"Height":this._height=n.value.toNumber();break;case"CheckSum":this.checkSum=o.parse(i.StiCheckSum,n.value.toString());break}}},a.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"Module":this._module=n.textContent.toNumber();break;case"Height":this.height=n.textContent.toNumber();break;case"CheckSum":this.checkSum=o.parse(i.StiCheckSum,n.textContent);break}}},Object.defineProperty(a.prototype,"componentId",{get:function(){return e.StiComponentId.StiRoyalMail4StateBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"serviceName",{get:function(){return"Royal Mail 4-state"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"defaultCodeValue",{get:function(){return"529508A"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<20&&(this._module=20),t>20&&(this._module=20)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<1&&(this._height=1),t>1&&(this._height=1)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"checkSum",{get:function(){return this._checkSum},set:function(t){this._checkSum=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"labelFontHeight",{get:function(){return 5},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[13]=!0,t[23]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"textAlignment",{get:function(){return n.Center},enumerable:!0,configurable:!0}),a.prototype.charTo4State=function(t){var e=this.royalMail4StateSymbols.indexOf(t);return this.royalMail4StateCodes[e]},a.prototype.stateToBar=function(t){for(var e=new r,i=0;i<t.length;i++){switch(t[i]){case"0":e.append("c");break;case"1":e.append("d");break;case"2":e.append("e");break;case"3":e.append("f");break}e.append("0")}return e.toString()},a.prototype.makeBarsArray=function(t,e,n){for(var o=t.ref,a=e.ref,s=n.ref,l=new r,u=0,c=0,p=0;p<o.length;p++){var h=this.charTo4State(o[p]);"0"!=h[0]&&"1"!=h[0]||(u+=4),"0"!=h[0]&&"2"!=h[0]||(c+=4),"0"!=h[1]&&"1"!=h[1]||(u+=2),"0"!=h[1]&&"2"!=h[1]||(c+=2),"0"!=h[2]&&"1"!=h[2]||(u+=1),"0"!=h[2]&&"2"!=h[2]||(c+=1),l.append(h)}u%=6,c%=6,0==u&&(u=6),0==c&&(c=6);var g=6*(u-1)+(c-1);return this.checkSum==i.StiCheckSum.Yes&&l.append(this.charTo4State(this.royalMail4StateSymbols[g])),a=this.stateToBar(this.royalMail4StateStartCode+l.toString()+this.royalMail4StateStopCode),t.ref=o,e.ref=a,n.ref=s,!0},a.prototype.draw=function(t,e,i,r){var n=this.getCode(e);n=this.checkCodeSymbols(n,this.royalMail4StateSymbols);var o=String.empty,a=String.empty,s={ref:n},l={ref:o},u={ref:a};this.makeBarsArray(s,l,u)?(n=s.ref,o=l.ref,a=u.ref,this.calculateSizeFull(this.royalMail4StateSpaceLeft,this.royalMail4StateSpaceRight,this.royalMail4StateSpaceTop,this.royalMail4StateSpaceBottom,this.royalMail4StateLineHeightShort,this.royalMail4StateLineHeightLong,this.royalMail4StateTextPosition,this.royalMail4StateTextHeight,this.royalMail4StateMainHeight,this.royalMail4StateLineHeightForCut,1,r,n,n,o,i,e),this.drawBarCode(t,i,e)):a.length>0?this.drawBarCodeError2(t,i,e,a):this.drawBarCodeError(t,i,e)},a.prototype.createNew=function(){return new a},a}(i.StiBarCodeTypeService);i.StiRoyalMail4StateBarCodeType=a}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(t,i){void 0===t&&(t=13),void 0===i&&(i=1);var r=e.call(this,t,i)||this;return r._companyPrefix="0123456",r._serialNumber="000000001",r._extensionDigit="0",r}return __extends(i,e),i.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyString("CompanyPrefix",this.companyPrefix,"0123456"),i.addPropertyString("SerialNumber",this.serialNumber,"000000001"),i.addPropertyString("ExtensionDigit",this.extensionDigit,"0"),i},i.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"CompanyPrefix":this._companyPrefix=n.value.toString();break;case"SerialNumber":this._serialNumber=n.value.toString();break;case"ExtensionDigit":this._extensionDigit=n.value.toString();break}}},i.prototype.loadFromXmlObject=function(t){e.prototype.loadFromXmlObject.call(this,t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"CompanyPrefix":this._companyPrefix=r.textContent;break;case"SerialNumber":this._serialNumber=r.textContent;break;case"ExtensionDigit":this._serialNumber=r.textContent;break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiSSCC18BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"SSCC"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"(00)001234560000000018"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"companyPrefix",{get:function(){return this._companyPrefix},set:function(t){this._companyPrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serialNumber",{get:function(){return this._serialNumber},set:function(t){this._serialNumber=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extensionDigit",{get:function(){return this._extensionDigit},set:function(t){this._extensionDigit=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textSpacing",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[24]=!0,t[25]=!0,t[26]=!0,t},enumerable:!0,configurable:!0}),i.prototype.getCombinedCode=function(){return String.stiFormat("(00){0}{1}{0}{2}{0}{3}{0}{4}","",this.extensionDigit,this.companyPrefix,this.serialNumber,this.getCheckDigit(this.checkCodeSymbols(this.extensionDigit+this.companyPrefix+this.serialNumber+String.fill("0",17),"0123456789")))},i.prototype.getCheckDigit=function(t){for(var e=Array.create(Number,17),i=0;i<17;i++)e[i]=parseInt(t[i].toString());var r=e[1]+e[3]+e[5]+e[7]+e[9]+e[11]+e[13]+e[15]+3*(e[0]+e[2]+e[4]+e[6]+e[8]+e[10]+e[12]+e[14]+e[16]),n=10-r%10;return 10==n&&(n=0),String.fromCharCode(n+48)},i.prototype.checkContens=function(t,e){if(5!=e.length)return!0;if("00"!=e[0])return!0;if(1!=e[1].length)return!0;var i=e[2].length;if(i<7||i>10)return!0;if(e[3].length+i!=16)return!0;if(24!=t.length)return!0;return!1},i.prototype.createNew=function(){return new i},i}(e.StiCode128cBarCodeType);e.StiSSCC18BarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=function(t){function i(e,i,r){void 0===e&&(e=13),void 0===i&&(i=1),void 0===r&&(r=2.2);var n=t.call(this)||this;return n._module=13,n._height=1,n._ratio=2.2,n.symTableSet=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010","101000","10001"],n.standard2of5SpaceLeft=10,n.standard2of5SpaceRight=10,n.standard2of5SpaceTop=0,n.standard2of5SpaceBottom=1,n.standard2of5LineHeightShort=40,n.standard2of5LineHeightLong=n.standard2of5LineHeightShort,n.standard2of5TextHeight=8.33,n.standard2of5MainHeight=50,n.standard2of5TextPosition=n.standard2of5LineHeightShort+n.standard2of5SpaceBottom,n.standard2of5LineHeightForCut=n.standard2of5LineHeightShort,n.module=e,n.height=i,n.ratio=r,n}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Module",this.module,13),i.addPropertyNumber("Height",this.height,1),i.addPropertyNumber("Ratio",this.ratio,2.2),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Module":this.module=r.value.toNumber();break;case"Height":this.height=r.value.toNumber();break;case"Ratio":this.ratio=r.value.toNumber();break}}},i.prototype.loadFromXmlObject=function(e){t.prototype.loadFromXmlObject.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"Module":this.module=r.textContent.toNumber();break;case"Height":this.height=r.textContent.toNumber();break;case"Ratio":this.ratio=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiStandard2of5BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceName",{get:function(){return"2of5 Standard"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultCodeValue",{get:function(){return"12345678"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"module",{get:function(){return this._module},set:function(t){this._module=t,t<7.5&&(this._module=7.5),t>40&&(this._module=40),this.ratio=this.ratio},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,t<.5&&(this._height=.5),t>2&&(this._height=2)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ratio",{get:function(){return this._ratio},set:function(t){this._ratio=t;var e=this.module>20?2:2.2;t<e&&(this._ratio=e),t>3&&(this._ratio=3)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelFontHeight",{get:function(){return this.standard2of5TextHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[15]=!0,t},enumerable:!0,configurable:!0}),i.prototype.draw=function(t,e,i,n){var o=this.getCode(e);o=this.checkCodeSymbols(o,"0123456789");var a=new r;if(a.append(this.symTableSet[10]),o.length>0)for(var s=0;s<o.length;s++){var l=this.symTableSet[parseInt(o[s].toString())],u=l[0]+"0"+l[1]+"0"+l[2]+"0"+l[3]+"0"+l[4]+"0";a.append(u)}a.append(this.symTableSet[11]);for(var c=a.toString(),p=new r,h=!0,s=0;s<c.length;s++){var g=void 0;g=1==h?"0"==c[s]?"4":"5":"0"==c[s]?"0":"1",p.append(g),h=!h}this.calculateSizeFull(this.standard2of5SpaceLeft,this.standard2of5SpaceRight,this.standard2of5SpaceTop,this.standard2of5SpaceBottom,this.standard2of5LineHeightShort,this.standard2of5LineHeightLong,this.standard2of5TextPosition,this.standard2of5TextHeight,this.standard2of5MainHeight,this.standard2of5LineHeightForCut,this.ratio,n,o,o,p.toString(),i,e),this.drawBarCode(t,i,e)},i.prototype.createNew=function(){return new i},i}(i.StiBarCodeTypeService);i.StiStandard2of5BarCodeType=n}(i=e.BarCodes||(e.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,r,n,o,a){return void 0===t&&(t=13),void 0===r&&(r=1),void 0===n&&(n=e.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0),i.call(this,t,r,n,o,a)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiUpcABarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"UPC-A"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanSpaceLeft",{get:function(){return 9},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanSpaceRight",{get:function(){return 9},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultCodeValue",{get:function(){return"4523456789012"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[19]=!0,t[20]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showQuietZoneIndicator",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),r.prototype.makeUpcABars=function(t,i){for(var r=Array.create(Number,12),n=0;n<12;n++)r[n]=parseInt(t[n].toString());var o=3*(r[1]+r[3]+r[5]+r[7]+r[9]+r[11])+r[0]+r[2]+r[4]+r[6]+r[8]+r[10],a=10-o%10;10==a&&(a=0),t=t.substr(0,12)+String.fromCharCode(a+48);var s=[];s.add(new e.EanBarInfo(e.Ean13Symbol.SpaceLeft,t[1],!1)),s.add(new e.EanBarInfo(e.Ean13Symbol.GuardLeft," ",!1)),s.add(new e.EanBarInfo(e.Ean13Symbol.ComboA0+parseInt(t[1].toString())," ",!1,!0));for(var l=0;l<5;l++){var u=parseInt(t[2+l].toString()),c=new e.EanBarInfo(e.Ean13Symbol.ComboA0+u,t[2+l],!1);s.add(c)}s.add(new e.EanBarInfo(e.Ean13Symbol.GuardCenter," ",!1));for(var l=0;l<5;l++){var u=parseInt(t[7+l].toString()),c=new e.EanBarInfo(e.Ean13Symbol.ComboC0+u,t[7+l],!1);s.add(c)}return s.add(new e.EanBarInfo(e.Ean13Symbol.ComboC0+parseInt(t[12].toString())," ",!1,!0)),s.add(new e.EanBarInfo(e.Ean13Symbol.GuardRight," ",!1)),i?s.add(new e.EanBarInfo(e.Ean13Symbol.SpaceRight,t[12],!1)):s.add(new e.EanBarInfo(e.Ean13Symbol.SpaceBeforeAdd,t[12],!1)),s},r.prototype.draw=function(t,i,r,n){var o=this.getCode(i);o="0"+this.checkCodeSymbols(o,"0123456789")+"000000000000";var a=this.checkCodeSymbols(this.supplementCode,"0123456789")+"00000",s=[];this.supplementType==e.StiEanSupplementType.None?s=this.makeUpcABars(o,!0):(s=this.makeUpcABars(o,!1),this.supplementType==e.StiEanSupplementType.TwoDigit?this.makeEanAdd2Bars(a,s,!0):this.makeEanAdd5Bars(a,s,!0)),this.calculateSizeEan(0,n,s,r,i),this.translateRect(t,r,i),this.drawEanBars(t,s,i),this.rollbackTransform(t)},r.prototype.createNew=function(){return new r},r}(e.StiEAN13BarCodeType);e.StiUpcABarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,r,n,o,a){void 0===t&&(t=13),void 0===r&&(r=1),void 0===n&&(n=e.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0);var s=i.call(this,t,r,n,o,a)||this;return s.symParitySet=["eeeooo","eeoeoo","eeooeo","eeoooe","eoeeoo","eooeeo","eoooee","eoeoeo","eoeooe","eooeoe"],s}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiUpcEBarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"UPC-E"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanSpaceLeft",{get:function(){return 9},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eanSpaceRight",{get:function(){return 7},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultCodeValue",{get:function(){return"01234567"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[19]=!0,t[20]=!0,t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showQuietZoneIndicator",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),r.prototype.makeUpcEBars=function(t,i){var r=[];r.add(new e.EanBarInfo(e.Ean13Symbol.SpaceLeft,t[0],!1)),r.add(new e.EanBarInfo(e.Ean13Symbol.GuardLeft," ",!1));for(var n=this.symParitySet[t[7].toNumber()],o=0;o<6;o++){var a=t[1+o].toNumber(),s=n[o];"0"!=t[0]&&(s="o"==s?"e":"o");var l=new e.EanBarInfo(e.Ean13Symbol.ComboA0+a,t[1+o],!1);"o"!=s&&(l.symbolType=e.Ean13Symbol.ComboB0+a),r.add(l)}return r.add(new e.EanBarInfo(e.Ean13Symbol.GuardSpecial," ",!1)),r.add(new e.EanBarInfo(i?e.Ean13Symbol.SpaceRight:e.Ean13Symbol.SpaceBeforeAdd,t[7],!1)),r},r.prototype.createNew=function(){return new r},r}(e.StiEAN13BarCodeType);e.StiUpcEBarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,r,n,o,a){return void 0===t&&(t=13),void 0===r&&(r=1),void 0===n&&(n=e.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0),i.call(this,t,r,n,o,a)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiUpcSup2BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"UPC-Supp2"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultCodeValue",{get:function(){return"02"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[17]=!0,t},enumerable:!0,configurable:!0}),r.prototype.draw=function(t,e,i,r){var n=this.getCode(e);n=this.checkCodeSymbols(n,"0123456789")+"00";var o=this.makeEanAdd2Bars(n,null,!0);this.calculateSizeEan(0,r,o,i,e),this.translateRect(t,i,e),this.drawEanBars(t,o,e),this.rollbackTransform(t)},r.prototype.createNew=function(){return new r},r}(e.StiEAN13BarCodeType);e.StiUpcSup2BarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,r,n,o,a){return void 0===t&&(t=13),void 0===r&&(r=1),void 0===n&&(n=e.StiEanSupplementType.None),void 0===o&&(o=null),void 0===a&&(a=!0),i.call(this,t,r,n,o,a)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiUpcSup5BarCodeType},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"UPC-Supp5"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultCodeValue",{get:function(){return"00321"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visibleProperties",{get:function(){var t=Array.create(Boolean,this.visiblePropertiesCount);return t[11]=!0,t[13]=!0,t[17]=!0,t},enumerable:!0,configurable:!0}),r.prototype.draw=function(t,e,i,r){var n=this.getCode(e);n=this.checkCodeSymbols(n,"0123456789")+"00000";var o=this.makeEanAdd5Bars(n,null,!0);this.calculateSizeEan(0,r,o,i,e),this.translateRect(t,i,e),this.drawEanBars(t,o,e),this.rollbackTransform(t)},r.prototype.createNew=function(){return new r},r}(e.StiEAN13BarCodeType);e.StiUpcSup5BarCodeType=i}(e=t.BarCodes||(t.BarCodes={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBubbleArea="IStiBubbleArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCandlestickArea="IStiCandlestickArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiClusteredBarArea="IStiClusteredBarArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAreaArea="IStiAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiClusteredColumnArea="IStiClusteredColumnArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLineArea="IStiLineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSplineArea="IStiSplineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSplineAreaArea="IStiSplineAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSteppedAreaArea="IStiSteppedAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSteppedLineArea="IStiSteppedLineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiDoughnutArea="IStiDoughnutArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedBarArea="IStiFullStackedBarArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedAreaArea="IStiFullStackedAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedColumnArea="IStiFullStackedColumnArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedLineArea="IStiFullStackedLineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedSplineArea="IStiFullStackedSplineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedSplineAreaArea="IStiFullStackedSplineAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFunnelArea="IStiFunnelArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGanttArea="IStiGanttArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPictorialArea="IStiPictorialArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPieArea="IStiPieArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarArea="IStiRadarArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarAreaArea="IStiRadarAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarLineArea="IStiRadarLineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarPointArea="IStiRadarPointArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRangeArea="IStiRangeArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRangeBarArea="IStiRangeBarArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSplineRangeArea="IStiSplineRangeArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSteppedRangeArea="IStiSteppedRangeArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiScatterArea="IStiScatterArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedBarArea="IStiStackedBarArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedAreaArea="IStiStackedAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedColumnArea="IStiStackedColumnArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedLineArea="IStiStackedLineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedSplineArea="IStiStackedSplineArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedSplineAreaArea="IStiStackedSplineAreaArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStockArea="IStiStockArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTreemapArea="IStiTreemapArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiArea="IStiArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAreaCoreXF="IStiAreaCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisArea="IStiAxisArea"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisAreaCoreXF="IStiAxisAreaCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStripLineXF="IStiStripLineXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStripLinesXF="IStiStripLinesXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStripPositionXF="IStiStripPositionXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxis="IStiAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisCoreXF="IStiAxisCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisDateTimeStep="IStiAxisDateTimeStep"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisInfoXF="IStiAxisInfoXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisInteraction="IStiAxisInteraction"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisLabels="IStiAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisLabelsCoreXF="IStiAxisLabelsCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisRange="IStiAxisRange"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisTicks="IStiAxisTicks"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisTitle="IStiAxisTitle"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisTitleCoreXF="IStiAxisTitleCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiXAxis="IStiXAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiXBottomAxis="IStiXBottomAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiXTopAxis="IStiXTopAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiYAxis="IStiYAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiYLeftAxis="IStiYLeftAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiYRightAxis="IStiYRightAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartTitle="IStiChartTitle"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartTitleCoreXF="IStiChartTitleCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartCondition="IStiChartCondition"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartConditionsCollection="IStiChartConditionsCollection"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiConstantLines="IStiConstantLines"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiConstantLinesCollection="IStiConstantLinesCollection"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiConstantLinesCoreXF="IStiConstantLinesCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartFilter="IStiChartFilter"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartFiltersCollection="IStiChartFiltersCollection"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGridLines="IStiGridLines"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGridLinesCoreXF="IStiGridLinesCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGridLinesHor="IStiGridLinesHor"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGridLinesVert="IStiGridLinesVert"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarGridLines="IStiRadarGridLines"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarGridLinesCoreXF="IStiRadarGridLinesCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarGridLinesHor="IStiRadarGridLinesHor"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarGridLinesVert="IStiRadarGridLinesVert"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiInterlacing="IStiInterlacing"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiInterlacingCoreXF="IStiInterlacingCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiInterlacingHor="IStiInterlacingHor"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiInterlacingVert="IStiInterlacingVert"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLegend="IStiLegend"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLegendCoreXF="IStiLegendCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLegendMarker="IStiLegendMarker"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLineMarker="IStiLineMarker"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiMarker="IStiMarker"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiMarkerCoreXF="IStiMarkerCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarAxis="IStiRadarAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarAxisCoreXF="IStiRadarAxisCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarAxisLabels="IStiRadarAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarAxisLabelsCoreXF="IStiRadarAxisLabelsCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiXRadarAxis="IStiXRadarAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiXRadarAxisCoreXF="IStiXRadarAxisCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiYRadarAxis="IStiYRadarAxis"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiYRadarAxisCoreXF="IStiYRadarAxisCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAxisSeriesLabels="IStiAxisSeriesLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCenterAxisLabels="IStiCenterAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiInsideBaseAxisLabels="IStiInsideBaseAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiInsideEndAxisLabels="IStiInsideEndAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLeftAxisLabels="IStiLeftAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiOutsideAxisLabels="IStiOutsideAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiOutsideBaseAxisLabels="IStiOutsideBaseAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiOutsideEndAxisLabels="IStiOutsideEndAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRightAxisLabels="IStiRightAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiValueAxisLabels="IStiValueAxisLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCenterFunnelLabels="IStiCenterFunnelLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFunnelSeriesLabels="IStiFunnelSeriesLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiOutsideLeftFunnelLabels="IStiOutsideLeftFunnelLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiOutsideRightFunnelLabels="IStiOutsideRightFunnelLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCenterPieLabels="IStiCenterPieLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiInsideEndPieLabels="IStiInsideEndPieLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiOutsidePieLabels="IStiOutsidePieLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPieSeriesLabels="IStiPieSeriesLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTwoColumnsPieLabels="IStiTwoColumnsPieLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarSeriesLabels="IStiRadarSeriesLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTangentRadarLabels="IStiTangentRadarLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiNoneLabels="IStiNoneLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSeriesLabels="IStiSeriesLabels"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSeriesLabelsCoreXF="IStiSeriesLabelsCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBubbleSeries="IStiBubbleSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiClusteredBarSeries="IStiClusteredBarSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAreaSeries="IStiAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBaseLineSeries="IStiBaseLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiClusteredColumnSeries="IStiClusteredColumnSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLineSeries="IStiLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSplineAreaSeries="IStiSplineAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSplineSeries="IStiSplineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSteppedAreaSeries="IStiSteppedAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSteppedLineSeries="IStiSteppedLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiDoughnutSeries="IStiDoughnutSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCandlestickSeries="IStiCandlestickSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFinancialSeries="IStiFinancialSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStockSeries="IStiStockSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedBarSeries="IStiFullStackedBarSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedAreaSeries="IStiFullStackedAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedColumnSeries="IStiFullStackedColumnSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedLineSeries="IStiFullStackedLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedSplineAreaSeries="IStiFullStackedSplineAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFullStackedSplineSeries="IStiFullStackedSplineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFunnelSeries="IStiFunnelSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFunnelWeightedSlicesSeries="IStiFunnelWeightedSlicesSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGanttSeries="IStiGanttSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPictorialSeries="IStiPictorialSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPieSeries="IStiPieSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarAreaSeries="IStiRadarAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarLineSeries="IStiRadarLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarPointSeries="IStiRadarPointSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRadarSeries="IStiRadarSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiLineRangeSeries="IStiLineRangeSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRangeBarSeries="IStiRangeBarSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRangeSeries="IStiRangeSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSplineRangeSeries="IStiSplineRangeSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSteppedRangeSeries="IStiSteppedRangeSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiScatterLineSeries="IStiScatterLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiScatterSeries="IStiScatterSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiScatterSplineSeries="IStiScatterSplineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedBarSeries="IStiStackedBarSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedAreaSeries="IStiStackedAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedBaseLineSeries="IStiStackedBaseLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedColumnSeries="IStiStackedColumnSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedLineSeries="IStiStackedLineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedSplineAreaSeries="IStiStackedSplineAreaSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStackedSplineSeries="IStiStackedSplineSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTreemapSeries="IStiTreemapSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAllowApplyBorderColor="IStiAllowApplyBorderColor"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAllowApplyBrush="IStiAllowApplyBrush"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAllowApplyBrushNegative="IStiAllowApplyBrushNegative"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAllowApplyColorNegative="IStiAllowApplyColorNegative"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSeries="IStiSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSeriesCollection="IStiSeriesCollection"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSeriesCoreXF="IStiSeriesCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStrips="IStiStrips"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStripsCollection="IStiStripsCollection"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStripsCoreXF="IStiStripsCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartStyle="IStiChartStyle"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCustomStyle="IStiCustomStyle"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCustomStyleCoreXF="IStiCustomStyleCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiStyleCoreXF="IStiStyleCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartTable="IStiChartTable"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartTableCoreXF="IStiTrendLineCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartTableDataCells="IStiChartTableDataCells"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartTableHeader="IStiChartTableHeader"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSeriesTopN="IStiSeriesTopN"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTrendLine="IStiTrendLine"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTrendLineCoreXF="IStiTrendLineCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTrendLineExponential="IStiTrendLineExponential"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTrendLineLinear="IStiTrendLineLinear"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTrendLineLogarithmic="IStiTrendLineLogarithmic"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTrendLineNone="IStiTrendLineNone"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiApplyStyle="IStiApplyStyle"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiApplyStyleSeries="IStiApplyStyleSeries"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCellGeom="IStiCellGeom"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChart="IStiChart"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartCoreXF="IStiChartCoreXF"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiChartInfo="IStiChartInfo"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGeomInteraction="IStiGeomInteraction"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSeriesInteraction="IStiSeriesInteraction"}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){this.lineColor=90,this.lineStyle=100,this.lineWidth=110,this.showShadow=120}return t}();t.StiTrendLinePropertyOrder=e;var i=function(){function t(){this.allowApplyStyle=90,this.angle=100,this.antialiasing=110,this.autoRotate=120,this.conditions=125,this.drawBorder=130,this.borderColor=140,this.brush=150,this.font=160,this.format=170,this.labelColor=180,this.legendValueType=190,this.lineColor=200,this.lineColorNegative=201,this.lineLength=205,this.markerAlignment=210,this.markerSize=220,this.markerVisible=230,this.preventIntersection=240,this.showInPercent=250,this.showNulls=255,this.showValue=260,this.showZeros=270,this.step=280,this.textAfter=290,this.textBefore=300,this.useSeriesColor=310,this.valueType=320,this.valueTypeSeparator=330,this.visible=340,this.width=350,this.wordWrap=360}return t}();t.StiSeriesLabelsPropertyOrder=i;var r=function(){function t(){this.allowSeries=90,this.allowSeriesElements=95,this.drillDownEnabled=100,this.drillDownPage=110,this.drillDownReport=120,this.hyperlinkDataColumn=130,this.tagDataColumn=140,this.toolTipDataColumn=150,this.weightDataColumn=160,this.hyperlink=170,this.tag=180,this.toolTip=190,this.weight=200,this.listOfHyperlinks=210,this.listOfTags=220,this.listOfToolTips=230,this.listOfWeights=240,this.valueValueDataColumn=100,this.valueValue=110,this.valueListOfValues=120,this.valueValueDataColumnEnd=100,this.valueValueEnd=110,this.valueListOfValuesEnd=120,this.valueValueDataColumnOpen=1,this.valueValueOpen=2,this.valueListOfValuesOpen=3,this.valueValueDataColumnClose=100,this.valueValueClose=110,this.valueListOfValuesClose=120,this.valueValueDataColumnHigh=100,this.valueValueHigh=110,this.valueListOfValuesHigh=120,this.valueValueDataColumnLow=100,this.valueValueLow=110,this.valueListOfValuesLow=120,this.argumentArgumentDataColumn=130,this.argumentArgument=140,this.argumentListOfArguments=150,this.weightWeightDataColumn=100,this.weightWeight=110,this.weightListOfWeights=120,this.appearanceAllowApplyBorderColor=130,this.appearanceAllowApplyBrush=135,this.appearanceAllowApplyBrushNegative=136,this.appearanceAllowApplyColorNegative=137,this.appearanceDiameter=140,this.appearanceBorderColor=145,this.appearanceBrush=150,this.appearanceBrushNegative=151,this.appearanceLighting=155,this.appearanceShowShadow=160,this.appearanceTopmostLine=170,this.appearanceFunnelSliceMode=180,this.dataConditions=210,this.dataFilters=220,this.dataFilterMode=230,this.dataTopN=235,this.dataFormat=240,this.dataSortBy=250,this.dataSortDirection=260,this.dataAutoSeriesKeyDataColumn=270,this.dataAutoSeriesColorDataColumn=280,this.dataAutoSeriesTitleDataColumn=290}return t}();t.StiSeriesPropertyOrder=r;var n;!function(t){t[t.Top=0]="Top",t[t.Right=90]="Right",t[t.Bottom=180]="Bottom",t[t.Left=270]="Left"}(n=t.StiChartTitleDock||(t.StiChartTitleDock={}));var o;!function(t){t[t.LeftToRight=0]="LeftToRight",t[t.RightToLeft=1]="RightToLeft",t[t.TopToBottom=2]="TopToBottom",t[t.BottomToTop=3]="BottomToTop"}(o=t.StiLegendDirection||(t.StiLegendDirection={}));var a;!function(t){t[t.LeftToRight=0]="LeftToRight",t[t.RightToLeft=1]="RightToLeft",t[t.TopToBottom=2]="TopToBottom",t[t.BottomToTop=3]="BottomToTop"}(a=t.StiDirection||(t.StiDirection={}));var s;!function(t){t[t.LeftOutside=0]="LeftOutside",t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right",t[t.RightOutside=4]="RightOutside"}(s=t.StiLegendHorAlignment||(t.StiLegendHorAlignment={}));var l;!function(t){t[t.TopOutside=0]="TopOutside",t[t.Top=1]="Top",t[t.Center=2]="Center",t[t.Bottom=3]="Bottom",t[t.BottomOutside=4]="BottomOutside"}(l=t.StiLegendVertAlignment||(t.StiLegendVertAlignment={}));var u;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(u=t.StiMarkerAlignment||(t.StiMarkerAlignment={}));var c;!function(t){t[t.ClusteredColumn=0]="ClusteredColumn",t[t.StackedColumn=1]="StackedColumn",t[t.FullStackedColumn=2]="FullStackedColumn",t[t.ClusteredBar=10]="ClusteredBar",t[t.StackedBar=11]="StackedBar",t[t.FullStackedBar=12]="FullStackedBar",t[t.Pie=20]="Pie",t[t.Doughnut=21]="Doughnut",t[t.Line=30]="Line",t[t.SteppedLine=31]="SteppedLine",t[t.StackedLine=32]="StackedLine",t[t.FullStackedLine=33]="FullStackedLine",t[t.Spline=40]="Spline",t[t.StackedSpline=41]="StackedSpline",t[t.FullStackedSpline=42]="FullStackedSpline",t[t.Area=50]="Area",t[t.SteppedArea=51]="SteppedArea",t[t.StackedArea=52]="StackedArea",t[t.FullStackedArea=53]="FullStackedArea",t[t.SplineArea=60]="SplineArea",t[t.StackedSplineArea=61]="StackedSplineArea",t[t.FullStackedSplineArea=62]="FullStackedSplineArea",t[t.Gantt=70]="Gantt",t[t.Scatter=80]="Scatter",t[t.Bubble=81]="Bubble",t[t.RadarPoint=82]="RadarPoint",t[t.RadarLine=83]="RadarLine",t[t.RadarArea=84]="RadarArea",t[t.Range=90]="Range",t[t.SteppedRange=91]="SteppedRange",t[t.RangeBar=92]="RangeBar",t[t.SplineRange=93]="SplineRange",t[t.Funnel=100]="Funnel",t[t.Candlestick=110]="Candlestick",t[t.Stock=120]="Stock",t[t.Treemap=130]="Treemap",t[t.Pictorial=131]="Pictorial"}(c=t.StiChartAreaPosition||(t.StiChartAreaPosition={}));var p;!function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical"}(p=t.StiChartSeriesOrientation||(t.StiChartSeriesOrientation={}));var h;!function(t){t[t.None=0]="None",t[t.Triangle=1]="Triangle",t[t.Lines=2]="Lines",t[t.Circle=3]="Circle",t[t.Arc=4]="Arc",t[t.ArcAndCircle=5]="ArcAndCircle"}(h=t.StiArrowStyle||(t.StiArrowStyle={}));var g;!function(t){t[t.None=0]="None",t[t.OneLine=1]="OneLine",t[t.TwoLines=2]="TwoLines"}(g=t.StiLabelsPlacement||(t.StiLabelsPlacement={}));var m;!function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"}(m=t.StiXAxisDock||(t.StiXAxisDock={}));var d;!function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(d=t.StiYAxisDock||(t.StiYAxisDock={}));var S;!function(t){t[t.Inside=0]="Inside",t[t.Outside=1]="Outside"}(S=t.StiTitlePosition||(t.StiTitlePosition={}));var f;!function(t){t[t.None=0]="None",t[t.InsideEndAxis=1]="InsideEndAxis",t[t.InsideBaseAxis=2]="InsideBaseAxis",t[t.CenterAxis=3]="CenterAxis",t[t.OutsideEndAxis=4]="OutsideEndAxis",t[t.OutsideBaseAxis=5]="OutsideBaseAxis",t[t.OutsideAxis=6]="OutsideAxis",t[t.Left=7]="Left",t[t.Value=8]="Value",t[t.Right=9]="Right",t[t.InsideEndPie=10]="InsideEndPie",t[t.CenterPie=11]="CenterPie",t[t.OutsidePie=12]="OutsidePie",t[t.TwoColumnsPie=13]="TwoColumnsPie",t[t.CenterFunnel=14]="CenterFunnel",t[t.OutsideRightFunnel=15]="OutsideRightFunnel",t[t.OutsideLeftFunnel=16]="OutsideLeftFunnel",t[t.CenterTreemap=17]="CenterTreemap"}(f=t.StiSeriesLabelsPosition||(t.StiSeriesLabelsPosition={}));var y;!function(t){t[t.Axis=1]="Axis",t[t.Pie=2]="Pie",t[t.Doughnut=4]="Doughnut",t[t.Radar=8]="Radar",t[t.Funnel=10]="Funnel",t[t.Treemap=12]="Treemap",t[t.All=15]="All"}(y=t.StiSeriesLabelsType||(t.StiSeriesLabelsType={}));var b;!function(t){t[t.Value=0]="Value",t[t.SeriesTitle=1]="SeriesTitle",t[t.Argument=2]="Argument",t[t.Tag=3]="Tag",t[t.Weight=4]="Weight",t[t.ValueArgument=5]="ValueArgument",t[t.ArgumentValue=6]="ArgumentValue",t[t.SeriesTitleValue=7]="SeriesTitleValue",t[t.SeriesTitleArgument=8]="SeriesTitleArgument"}(b=t.StiSeriesLabelsValueType||(t.StiSeriesLabelsValueType={}));var C;!function(t){t[t.Rectangle=0]="Rectangle",t[t.Triangle=1]="Triangle",t[t.Circle=2]="Circle",t[t.Star5=3]="Star5",t[t.Star6=4]="Star6",t[t.Star7=5]="Star7",t[t.Star8=6]="Star8",t[t.Hexagon=7]="Hexagon"}(C=t.StiMarkerType||(t.StiMarkerType={}));var v;!function(t){t[t.Value=0]="Value",t[t.Argument=1]="Argument",t[t.None=2]="None"}(v=t.StiSeriesSortType||(t.StiSeriesSortType={}));var I;!function(t){t[t.Ascending=0]="Ascending",t[t.Descending=1]="Descending"}(I=t.StiSeriesSortDirection||(t.StiSeriesSortDirection={}));var A;!function(t){t[t.LeftYAxis=0]="LeftYAxis",t[t.RightYAxis=1]="RightYAxis"}(A=t.StiSeriesYAxis||(t.StiSeriesYAxis={}));var w;!function(t){t[t.None=0]="None",t[t.FromChart=1]="FromChart",t[t.FromSeries=2]="FromSeries"}(w=t.StiShowSeriesLabels||(t.StiShowSeriesLabels={}));var T;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Both=2]="Both"}(T=t.StiShowYAxis||(t.StiShowYAxis={}));var B;!function(t){t[t.Bottom=0]="Bottom",t[t.Center=1]="Center",t[t.Both=2]="Both"}(B=t.StiShowXAxis||(t.StiShowXAxis={}));var R;!function(t){t[t.Polygon=0]="Polygon",t[t.Circle=1]="Circle"}(R=t.StiRadarStyle||(t.StiRadarStyle={}));var P;!function(t){t[t.None=0]="None",t[t.Second=1]="Second",t[t.Minute=2]="Minute",t[t.Hour=3]="Hour",t[t.Day=4]="Day",t[t.Month=5]="Month",t[t.Year=6]="Year"}(P=t.StiTimeDateStep||(t.StiTimeDateStep={}));var F;!function(t){t[t.None=0]="None",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom"}(F=t.StiTopNMode||(t.StiTopNMode={}));var x;!function(t){t[t.StiStyle01=0]="StiStyle01",t[t.StiStyle02=1]="StiStyle02",t[t.StiStyle03=2]="StiStyle03",t[t.StiStyle04=3]="StiStyle04",t[t.StiStyle05=4]="StiStyle05",t[t.StiStyle06=5]="StiStyle06",t[t.StiStyle07=6]="StiStyle07",t[t.StiStyle08=7]="StiStyle08",t[t.StiStyle09=8]="StiStyle09",t[t.StiStyle10=9]="StiStyle10",t[t.StiStyle11=10]="StiStyle11",t[t.StiStyle12=11]="StiStyle12",t[t.StiStyle13=12]="StiStyle13",t[t.StiStyle14=13]="StiStyle14",t[t.StiStyle15=14]="StiStyle15",t[t.StiStyle16=15]="StiStyle16",t[t.StiStyle17=16]="StiStyle17",t[t.StiStyle18=17]="StiStyle18",t[t.StiStyle19=18]="StiStyle19",t[t.StiStyle20=19]="StiStyle20",t[t.StiStyle21=20]="StiStyle21",t[t.StiStyle22=21]="StiStyle22",t[t.StiStyle23=22]="StiStyle23",t[t.StiStyle24=23]="StiStyle24",t[t.StiStyle25=24]="StiStyle25",t[t.StiStyle26=25]="StiStyle26",t[t.StiStyle27=26]="StiStyle27",t[t.StiStyle28=27]="StiStyle28",t[t.StiStyle29=28]="StiStyle29",t[t.StiStyle30=29]="StiStyle30"}(x=t.StiChartStyleId||(t.StiChartStyleId={}));var D;!function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical",t[t.HorizontalRight=2]="HorizontalRight"}(D=t.StiStrips_StiOrientation||(t.StiStrips_StiOrientation={}));var k;!function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical",t[t.HorizontalRight=2]="HorizontalRight"}(k=t.StiConstantLines_StiOrientation||(t.StiConstantLines_StiOrientation={}));var E;!function(t){t[t.LeftTop=0]="LeftTop",t[t.LeftBottom=1]="LeftBottom",t[t.CenterTop=2]="CenterTop",t[t.CenterBottom=3]="CenterBottom",t[t.RightTop=4]="RightTop",t[t.RightBottom=5]="RightBottom"}(E=t.StiConstantLines_StiTextPosition||(t.StiConstantLines_StiTextPosition={}))}(e=t.Chart||(t.Chart={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=function(){function t(){}return t.parseRtf=function(t,e){if(null!=e){var r=t.toString(),n=!1,o=r.lastIndexOf("__LP__");-1==o&&(o=0);for(var a=t.length-1;a>o;a--){if(" "==t.toString()[a]){n=!0;break}if("\\"==t.toString()[a])break}if(!n){var s=new i;return s.append('"'),s.append(t),s.append(" "),s.append('"'),s}}if(t.length>0){var s=new i;return s.append('"'),s.append(t),s.append('"'),s}return new i},t.readString=function(t,e,r,n,o,a,s){var l=e.ref,u=r.ref,c=o.ref;u=u.append(n[l++]);var p=new i;while(l!=n.length&&'"'!=n[l]){if("\\"==n[l]&&l+1!=n.length){if("\\"==n[l+1]){p.append("\\\\"),l+=2;continue}'"'==n[l+1]&&l++}p.append(n[l++])}var h;null!=t?(p=this.replaceBackslash(p,a,s),h=t.quoteSnippetString(p.toString())):h=p.toString(),u=h.startsWith('"')&&h.endsWith('"')&&h.length>1?u.append(h.substr(1,h.length-2)):u.append(h),l!=n.length&&(u=u.append(n[l]),l++),l==n.length&&(u.length>0&&c.add(u.toString()),u=new i),l--,e.ref=l,r.ref=u,o.ref=c},t.readChar=function(t,e,i){var r=t.ref,n=e.ref;n=n.append(i[r++]),r!=i.length&&(n=n.append(i[r++])),r!=i.length&&(n=n.append(i[r])),t.ref=r,e.ref=n},t.getLexemSimple=function(t,e,r){var n=[],o=new i,a=!1,s=0;while(s<e.length){if(0==a)if("{"==e[s]){if(a=!0,o=this.parseRtf(o,r),o.length>0){var l=o.toString().substr(1,o.length-2);null!=t&&(l=t.quoteSnippetString(l)),n.add(l)}o=new i}else o=o.append(e[s]);else if('"'==e[s]){var u={ref:s},c={ref:o},p={ref:n};this.readString(t,u,c,e,p,null!=r,!1),s=u.ref,o=c.ref,n=p.ref}else if("'"==e[s]){var u={ref:s},c={ref:o};this.readChar(u,c,e),s=u.ref,o=c.ref}else if("}"==e[s]){if(a=!1,null==t){var l=o.toString();o=new i,o=o.append("{"),o=o.append(l),o=o.append("}")}o.length>0&&n.add(o.toString()),o=new i}else o=o.append(e[s]);s++}if(0==a){if(o=this.parseRtf(o,r),o.length>0){var l=o.toString().substr(1,o.length-2);null!=t&&(l=t.quoteSnippetString(l)),n.add(l)}}else n.clear();return n},t.getLexem=function(t){return this.getLexemSimple(null,t,null)},t.replaceBackslash=function(t,e,r){for(var n=new i,o=0;o<t.length;o++)if("\\"==t.toString()[o]&&o<t.length-1){o++;var a=t.toString()[o];switch(a){case"\\":e&&!r&&o+1<t.length&&"n"==t.toString()[o+1]?(n.append("\n"),o++):n.append("\\");break;case"'":e?n.append("\\'"):n.append("'");break;case"0":n.append("\0");break;case"n":n.append("\n");break;case"r":n.append("\r");break;case"t":n.append("\t");break;case"x":var s=new i,l=0;while(o<t.length-1&&l<4&&-1!="0123456789abcdefABCDEF".indexOf(t.toString()[o+1]))s.append(t.toString()[o+1]),o++,l++;var u=s.toNumber();n.append(String.fromCharCode(u));break;default:n.append("\\"+a);break}}else n.append(t.toString()[o]);return n},t}();e.StiCodeDomExpressionHelper=r}(i=e.CodeDom||(e.CodeDom={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.prototype.quoteSnippetString=function(t){return""},t}();t.StiCodeGenerator=e}(e=t.CodeDom||(t.CodeDom={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiBorderSides,r=t.System.Drawing.Graphics,n=t.System.Char,o=function(){function o(){}return o.breakText=function(t,e,i,o,a,s,l,u){null!=u&&u.report;var c=i.ref;if(!String.isNullOrWhiteSpace(c)){var p=r.measureString(c,o,e.width);if(p.height<=e.height)return i.ref="",c;if(p=r.measureString("A",o),p.height>e.height)return i.ref=c,"";var h=0,g=c.length;while(g-h>1){var m=(h+g)/2|0;p=r.measureString(c.substr(0,m),o,e.width),p.height>e.height?g=m:h=m}g=h;while(h>0&&n.isLetterOrDigit(c,h)&&n.isLetterOrDigit(c,h-1))h--;return 0==h&&(h=g),i.ref=c.substr(h),c.substr(0,h)}return""},o.breakContainer=function(r,n){if(StiOptions.Engine.allowBreakContainerOptimization)return this.breakContainerV2(r,n);var o=n.clone(!1,!1),a=o.components,s=n.components,l=r,u=0,c=!1,p=!1,h=!0;while(h){h=!1;for(var g=0,m=s.list;g<m.length;g++){var d=m[g];if(d.top<l&&d.top+d.height>l){var S=d.sti_as(e.IStiBreakable);if(null!=S&&S.canBreak){var f=d.height,y=l-d.top;d.height=y;var b=d.clone(),C=null;C=d.sti_is(e.StiContainer)?d.sti_as(e.StiContainer).clone(!0,!1).sti_as(e.StiComponent):d.sti_as(e.StiComponent).clone();var v=b.sti_as(e.IStiBreakable),I={ref:u};if(v.break(C,y/f,I)){if(u=I.ref,u>l&&(l=u),d.height=f,!p&&b.bottom<l){c?(l=r,p=!0):(l=b.bottom,c=!0),h=!0;break}continue}u=I.ref,d.height=f}if(d.sti_is(t.Report.Engine.StiNewPageContainer)){l=d.bottom,c=!0,h=!0;break}l=Math.min(l,d.top),h=!0}}}var A=0,w=[];while(A<s.count){var d=s.list[A];if(d.top+d.height>l){var S=d.sti_as(e.IStiBreakable);if(!(d.top<l&&null!=S&&S.canBreak)){d.top-=l,s.remove(d),A++,a.add(d);continue}var y=l-d.top,C=null;C=d.sti_is(e.StiContainer)?d.sti_as(e.StiContainer).clone(!0,!1).sti_as(e.StiComponent):d.clone();var f=d.height;C.height=d.height-y,C.top=0,C.sti_is(e.StiImage)?(C.canGrow=!1,C.canShrink=!1):(C.canGrow=!0,C.canShrink=!1),a.add(C),d.height=y;var I={ref:u};if(!S.break(C,y/f,I)){u=I.ref,s.remove(d),A++,C.canGrow=!1;continue}u=I.ref}w.add(d),A++}if(w.count!=s.count){for(var T=0;T<w.count;T++)s.list[T]=w[T];while(s.count>w.count)s.removeAt(s.count-1)}return StiOptions.Engine.removeBottomBorderOfSplitContainer&&a.count>0&&(n.border=n.border.clone(),n.border.side&=i.Left|i.Right|i.Top),n.height=l,o},o.breakContainerV2=function(t,r){var n=r.clone(!1,!1),o=n.components,a=r.components,s=t;s=this.getDivideLine(r,s);var l=Math.round(1e3*s),u=0,c=[];while(u<a.count){var p=a.list[u],h=Math.round(1e3*p.top);if(Math.round(1e3*(p.top+p.height))>l){var g=p.sti_as(e.IStiBreakable);if(!(h<l&&null!=g&&g.canBreak)){p.top-=s,u++,o.add(p);continue}var m=s-p.top,d=null;d=p.sti_is(e.StiContainer)?p.sti_as(e.StiContainer).clone(!0,!1).sti_as(e.StiComponent):p.clone();var S=p.height;d.height=p.height-m,d.top=0,d.sti_is(e.StiImage)?(d.canGrow=!1,d.canShrink=!1):(d.canGrow=!0,d.canShrink=!1),o.add(d),p.height=m;var f=s;if(!g.break(d,m/S,{ref:f})){u++,d.canGrow=!1;continue}}c.add(p),u++}if(c.count!=a.count){for(var y=0;y<c.count;y++)a.list[y]=c[y];while(a.count>c.count)a.removeAt(a.count-1)}return StiOptions.Engine.removeBottomBorderOfSplitContainer&&o.count>0&&(r.border=r.border.clone(),r.border.side&=i.Left|i.Right|i.Top),r.height=s,n},o.getDivideLine=function(t,e){var i=2,r={ref:i},n=this.searchDivideLine(t,e,e,r);if(i=r.ref,n==e)return e;while(n>0){var o={ref:i},a=this.searchDivideLine(t,n,e,o);if(i=o.ref,a==n)return n;n=a}return 0},o.searchDivideLine=function(i,r,n,o){for(var a=o.ref,s=0,l=Math.round(1e3*r),u=0,c=i.components.list;u<c.length;u++){var p=c[u],h=Math.round(1e3*p.top),g=Math.round(1e3*(p.top+p.height));if(h<l&&g>l){var m=p.sti_as(e.IStiBreakable);if(null!=m&&m.canBreak){if(0==a)continue;var d=p.height,S=r-p.top;if(p.sti_is(e.StiContainer)){if((s=this.getDivideLine(p,S))<S&&(a--,o.ref=a,0==a))return n;if(s!=S)return p.top+s;continue}var f=p.clone(),y=p.clone();f.height=S,y.height=S;var b=f.sti_as(e.IStiBreakable),C={ref:s};if(b.break(y,S/d,C)){if(f.bottom<r)return f.bottom;continue}s=C.ref}if(p.sti_is(t.Report.Engine.StiNewPageContainer))return p.bottom;r=p.top}}return r},o}();e.StiComponentDivider=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiActionUtils,n=t.System.Collections.Hashtable,o=t.Base.Drawing.StiBorder,a=t.Base.Drawing.StiBrush,s=t.Base.Drawing.StiSolidBrush,l=t.System.Drawing.Color,u=t.Report.Components.StiDockStyle,c=t.Report.Components.StiComponentDivider,p=t.System.Drawing.Rectangle,h=t.System.Drawing.Size,g=t.Base.JsonReportObject.IStiJsonReportObject,m=t.Base.StiJsonReportObjectHelper,d=t.System.Drawing.Point,S=function(S){function f(t,e){void 0===t&&(t=p.empty),void 0===e&&(e=!1);var i=S.call(this,t,!0)||this;return i._border=new o,i._brush=new s(l.transparent),i._containerInfo=null,i.parentComponentIsBand=!1,i.parentComponentIsCrossBand=!1,i._collapsedValue=null,i._collapsingIndex=0,i._collapsingTreePath=null,e||i.construct(t),i}return __extends(f,S),f.prototype.implements=function(){return f.ImplementsStiContainer||(f.ImplementsStiContainer=S.prototype.implements.call(this).concat([i.IStiBorder,i.IStiBrush,i.IStiBreakable,e.IStiIgnoryStyle,g])),f.ImplementsStiContainer},f.prototype.saveToJsonObject=function(t){var e=S.prototype.saveToJsonObject.call(this,t);return e.addPropertyBool("CanBreak",this.canBreak),e.addPropertyStringNullOfEmpty("Border",m.Serialize.jBorder(this.border)),e.addPropertyStringNullOfEmpty("Brush",m.Serialize.jBrush(this.brush)),e.addPropertyJObject("Components",this.components.saveToJsonObject(t)),e},f.prototype.loadFromJsonObject=function(t){S.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"CanBreak":this.canBreak=r.value.toBoolean();break;case"Border":this.border=m.Deserialize.border(r.value);break;case"Brush":this.brush=m.Deserialize.brush(r.value);break;case"Components":this.components.loadFromJsonObject(r.value);break}}},f.prototype.parseContainerFromXml=function(t){null!=t.attributes.getNamedItem("name")&&(this.name=t.attributes.getNamedItem("name").value),null!=t.attributes.getNamedItem("guid")&&(this.guid=t.attributes.getNamedItem("guid").value),null!=t.attributes.getNamedItem("pr")&&(this.printable=!1),null!=t.attributes.getNamedItem("bookmark")&&(this.bookmarkValue=t.attributes.getNamedItem("bookmark").value),null!=t.attributes.getNamedItem("hyperlink")&&(this.hyperlinkValue=t.attributes.getNamedItem("hyperlink").value),null!=t.attributes.getNamedItem("tag")&&(this.tagValue=t.attributes.getNamedItem("tag").value),null!=t.attributes.getNamedItem("toolTip")&&(this.toolTipValue=t.attributes.getNamedItem("toolTip").value),null!=t.attributes.getNamedItem("rc")&&(this.clientRectangle=this.loadRectangleDFromXml(t.attributes.getNamedItem("rc").value)),null!=t.attributes.getNamedItem("bh")&&(this.brush=a.loadFromXml(t.attributes.getNamedItem("bh").value)),null!=t.attributes.getNamedItem("br")&&(this.border=o.loadFromXml(t.attributes.getNamedItem("br").value))},f.prototype.loadFromXml=function(t,e){S.prototype.loadFromXml.call(this,t,e),this.parseContainerFromXml(t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"Components":e?this.components.loadDocumentFromXml(r):this.components.loadFromXml(r,e);break;case"CanBreak":this.canBreak=r.textContent.toBoolean();break;case"Border":case"br":this.border=o.loadFromXml(r.textContent);break;case"Brush":case"bh":this.brush=a.loadFromXml(r.textContent);break}}},Object.defineProperty(f.prototype,"componentId",{get:function(){return e.StiComponentId.StiContainer},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"canBreak",{get:function(){return this.properties.getBool(f.propertyCanBreak,!1)},set:function(t){this.properties.setBool(f.propertyCanBreak,t,!1)},enumerable:!0,configurable:!0}),f.prototype.break=function(e,r,n){var o=c.breakContainer(this.height,this);e.components.clear(),e.components.addRange(o.components);var a=this.height;if(StiOptions.Engine.usePrintOnAllPagesPropertyOfHeadersInSubreports){for(var s=[],l=[],u=[],p=0,h=this.components.list;p<h.length;p++){var g=h[p];if(g.sti_is(f)){var m=g.containerInfo.parentBand;null!=m&&m.sti_is(t.Report.Components.StiHeaderBand)&&m.sti_as(i.IStiPrintOnAllPages).printOnAllPages&&(s.contains(m)||(s.add(m.sti_as(t.Report.Components.StiHeaderBand)),l.add(g.clone().sti_as(f)),null!=m.parent?u.add(t.Report.Engine.StiHeaderBandBuilder.getMaster(m.sti_as(t.Report.Components.StiHeaderBand))):u.add(m)))}}if(s.count>0){for(var d=e.components,S=[],y=s.count,b=0,C=d.list;b<C.length;b++){var g=C[b];if(g.sti_is(f)){var m=g.containerInfo.parentBand,v=m.sti_as(t.Report.Components.StiDataBand);if(null!=v){var I=m;if(m.sti_is(t.Report.Components.Table.StiTable)&&null!=v.dataBandInfo.headers)for(var A=0,w=v.dataBandInfo.headers.list;A<w.length;A++){var T=w[A];if(T.sti_is(t.Report.Components.StiHeaderBand)&&T.name==m.name.substr(0,m.name.length-3)+"_Hd"){I=T.sti_as(t.Report.Components.StiBand);break}}for(var B=s.count-1;B>=0;B--)if(null!=s[B]&&(m==u[B]||I==u[B])){for(var R=!0,P=0;P<s.count;P++){var F=null;P<d.count&&(F=d.list[P].sti_as(f)),null!=F&&F.containerInfo.parentBand==s[B]&&(R=!1)}R&&S.add(l[B]),s[B]=null,y--}if(0==y)break}}}if(S.count>0)for(var x=0,D=S;x<D.length;x++){for(var k=D[x],E=0,G=d.list;E<G.length;E++){var T=G[E];T.top+=k.height}k.top=0,d.insert(0,k)}}}return n.ref=a,!0},f.prototype.clone=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var r=S.prototype.clone.call(this,t);if(r._containerInfo=this.containerInfo.clone(),null!=this._border?r._border=this._border.clone():r._border=null,null!=this._brush?r._brush=this._brush.clone():r._brush=null,r._components=new i.StiComponentsCollection(r),e)for(var n=0,o=this._components.list;n<o.length;n++){var a=o[n];r._components.add(a.clone())}return r},f.prototype.convert=function(t,e,i,r){if(void 0===i&&(i=!1),void 0===r&&(r=!0),S.prototype.convert.call(this,t,e,i),r)for(var n=0,o=this._components.list;n<o.length;n++){var a=o[n];a.convert(t,e,i)}},Object.defineProperty(f.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),f.prototype.getActualSize=function(e,r){void 0===e&&(e=!1),void 0===r&&(r={ref:!1});var n=r.ref,o=new h(this.width,this.height);if(this.canGrow||this.canShrink){var a=0,s=0;if(!this.sti_is(i.StiPage)){for(var l=0,c=this.components.list;l<c.length;l++){var p=c[l];if(!p.enabled)continue;if(p.sti_is(t.Report.Components.StiPointPrimitive)){a=Math.max(p.top,a),s=Math.max(p.left,s);continue}if(p.sti_is(t.Report.Components.StiPrimitive)&&!p.sti_is(t.Report.Components.StiHorizontalLinePrimitive))continue;if(0!=p.width&&0!=p.height){var g=new h(p.clientRectangle.width,p.clientRectangle.height);p.dockStyle!=u.None&&p.dockable&&(e||(p.dockToContainer(),StiOptions.Engine.allowCacheForGetActualSize&&null!=p.report&&null!=p.report.engine&&null!=p.report.engine.hashCheckSize&&p.report.engine.hashCheckSize.set(p,null),g=p.getActualSize()),n=!0),a=p.sti_is(t.Report.Components.StiHorizontalLinePrimitive)?Math.max(p.top,a):Math.max(p.bottom,a),s=Math.max(p.right,s)}}this.canGrow&&(o.width=Math.max(s,o.width),o.height=Math.max(a,o.height)),this.canShrink&&(o.width=Math.min(s,o.width),o.height=Math.min(a,o.height))}}if((this.sti_is(i.StiPage)&&this.sti_as(i.StiPage)).unlimitedHeight){for(var a=0,s=0,m=0,d=this.components.list;m<d.length;m++){var p=d[m];if(!p.enabled)continue;if(p.sti_is(t.Report.Components.StiPointPrimitive)){a=Math.max(p.top,a),s=Math.max(p.left,s);continue}if(p.sti_is(t.Report.Components.StiPrimitive)&&!p.sti_is(t.Report.Components.StiHorizontalLinePrimitive))continue;0!=p.width&&0!=p.height&&(a=p.sti_is(t.Report.Components.StiHorizontalLinePrimitive)?Math.max(p.top,a):Math.max(p.bottom,a),s=Math.max(p.right,s))}o.width=Math.max(s,o.width),o.height=Math.max(a,o.height)}return r.ref=n,o},Object.defineProperty(f.prototype,"containerInfo",{get:function(){return null==this._containerInfo&&(this._containerInfo=new i.StiContainerInfo),this._containerInfo},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"priority",{get:function(){return i.StiComponentPriority.Container},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"toolboxPosition",{get:function(){return i.StiComponentToolboxPosition.Container},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"toolboxCategory",{get:function(){return i.StiToolboxCategory.Components},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"componentType",{get:function(){return null!=this._containerInfo&&null!=this._containerInfo.parentBand?this._containerInfo.parentBand.componentType:i.StiComponentType.Simple},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"collapsedValue",{get:function(){return this._collapsedValue},set:function(t){this._collapsedValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"collapsingIndex",{get:function(){return this._collapsingIndex},set:function(t){this._collapsingIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"collapsingTreePath",{get:function(){return this._collapsingTreePath},set:function(t){this._collapsingTreePath=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"hasSelected",{get:function(){for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t];if(i.isSelected)return!0;var r=i.sti_as(f);if(null!=r&&r.hasSelected)return!0}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"defaultClientRectangle",{get:function(){return new p(0,0,100,100)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"components",{get:function(){return this._components},set:function(t){this._components=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"blocked",{get:function(){return this.properties.get(f.propertyBlocked,!1)},set:function(t){this.properties.set(f.propertyBlocked,t,!1)},enumerable:!0,configurable:!0}),f.prototype.setParentStylesToChilds=function(e){if(void 0===e&&(e=null),null==e)for(var i=!0,r=0,n=this.components.list;r<n.length;r++){var o=n[r];o.useParentStyles&&(i&&(e=t.Report.Styles.StiBaseStyle.getStyle(this),i=!1),null!=e&&e.setStyleToComponent(o))}else for(var a=0,s=this.components.list;a<s.length;a++){var o=s[a];o.useParentStyles&&e.setStyleToComponent(o)}},f.prototype.offsetLocation=function(t,e){for(var i=0,r=this.components.list;i<r.length;i++){var n=r[i];n.left+=t,n.top+=e}},f.prototype.changePosition=function(t){for(var e=0,r=this.components.list;e<r.length;e++){var n=r[e];if(n.isSelected)n.displayRectangle=i.StiComponent.doOffsetRect(n,n.displayRectangle,t);else{var o=n.sti_as(f);null!=o&&o.changePosition(t)}}},f.prototype.normalize=function(){for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t];i.isSelected&&(i.clientRectangle=i.clientRectangle.normalize());var r=i.sti_as(f);null!=r&&r.normalize()}},f.prototype.sortByPriority=function(){this.components.sortByPriority();for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t],r=i.sti_as(f);null!=r&&r.sortByPriority()}},f.prototype.bringToFront=function(){var t=this.components.count,e=0;while(e<t){var r=this.components.list[e].sti_as(i.StiComponent),n=r.sti_as(f);null!=n&&n.bringToFront(),r.isSelected?(this.components.remove(r),this.components.add(r),t--):e++}this.sortByPriority()},f.prototype.sendToBack=function(){var t=this.components.count,e=0;while(e<t){var r=this.components.list[e].sti_as(i.StiComponent),n=r.sti_as(f);null!=n&&n.sendToBack(),r.isSelected&&(this.components.remove(r),this.components.insert(0,r)),e++}this.sortByPriority()},f.prototype.moveForward=function(){var t=this.components.count-1;while(t>=0){var e=this.components.list[t].sti_as(i.StiComponent),r=e.sti_as(f);if(null!=r&&r.moveForward(),e.isSelected){var n=this.components.indexOf(e);n<this.components.count-1&&(this.components.remove(e),this.components.insert(n+1,e))}t--}this.sortByPriority()},f.prototype.moveBackward=function(){var t=this.components.count,e=0;while(e<t){var r=this.components.list[e].sti_as(i.StiComponent),n=r.sti_as(f);if(null!=n&&n.moveBackward(),r.isSelected){var o=this.components.indexOf(r);o>0&&(this.components.remove(r),this.components.insert(o-1,r))}e++}this.sortByPriority()},f.prototype.alignTo=function(t){var e=this.getSelectedComponents();e.clone().sortBySelectionTick();var r=this.getSelectedRectangle();switch(t){case i.StiAligning.Left:e.sortByLeftPosition();for(var n=0;n<e.count;n++)e.list[n].left=r.left;break;case i.StiAligning.Center:for(var n=0;n<e.count;n++)e.list[n].left=r.left+(r.width-e.list[n].width)/2;break;case i.StiAligning.Right:e.sortByRightPosition();for(var n=0;n<e.count;n++)e.list[n].left=r.right-e.list[n].width;break;case i.StiAligning.Top:e.sortByTopPosition();for(var n=0;n<e.count;n++)e.list[n].top=r.top;break;case i.StiAligning.Middle:for(var n=0;n<e.count;n++)e.list[n].top=r.top+(r.height-e.list[n].height)/2;break;case i.StiAligning.Bottom:e.sortByBottomPosition();for(var n=0;n<e.count;n++)e.list[n].top=r.bottom-e.list[n].height;break}},f.prototype.getContainerInRectPrivate=function(n,o){for(var a=null,s=this.pageToContainer(n),l=this.getComponents(),u=l.count-1;u>=0;u--){var c=l.getByIndex(u);if(c!=o&&!c.checkForParentComponent(o)){var h=c.sti_as(f);if(null!=h&&o.canContainIn(h)){var g=this.pageToContainer(c.componentToPage(c.clientRectangle));if(g.intersectsWith(s)&&o.isCross&&(a=h),c.sti_is(t.Report.Components.StiBand)&&!c.isCross){var m=this.page.unit.convertFromHInches(1);if(o.sti_is(t.Report.Components.StiPrimitive)&&(g.width+=m),null!=e&&this.report.info.showHeaders){g.height+=m;var d=this.page.unit.convertFromHInches(c.headerSize);g=g.offsetRect(new p(0,d,0,d))}}if(o.sti_is(i.StiEndPointPrimitive)||o.sti_is(i.StiStartPointPrimitive)){var S=Math.round(s.x,2),y=Math.round(s.y,2),b=Math.round(g.left,2),C=Math.round(g.top,2),v=Math.round(g.right,2),I=Math.round(g.bottom,2);C<=y&&I>=y&&b<=S&&v>=S&&(a=h)}r.pointInRect(s.x,s.y,g)&&(a=h);var A=h.getContainerInRectPrivate(n,o);null!=A&&(a=A)}}}if(o.isCross)return a;if(o.sti_is(t.Report.Components.Table.StiTable)&&a.sti_is(t.Report.Components.Table.StiTable))return null;if(o.sti_is(t.Report.Components.Table.StiTable)&&a.sti_is(t.Report.Components.StiDataBand))return a;if(!o.sti_is(t.Report.Components.Table.IStiTableCell)&&a.sti_is(t.Report.Components.Table.StiTable))return null;if(o.sti_is(t.Report.Components.Table.IStiTableCell)&&!a.sti_is(t.Report.Components.Table.StiTable))return null;if(o.sti_is(t.Report.Components.StiBand)&&null!=a&&a.sti_is(t.Report.Components.StiBand))return null;return a},f.prototype.getContainerInRect=function(e,i){if(null!=i.page&&i.sti_is(t.Report.Components.StiBand)){var r=i.page.unit.convertFromHInches(i.headerSize);e=e.offsetRect(new p(0,r,0,r))}var n=this.getContainerInRectPrivate(e,i);if(null==n)return this.page;if(n.checkForParentComponent(i))return this.page;return n},f.prototype.getSizesTable=function(t){var e=new n,i=new p;return this.getNodeSize(e,t,{ref:i}),e},f.prototype.getNodeSize=function(e,i,r){var n=r.ref,o=this.containerToPage(i.clientRectangle);if(null!=i.page&&i.sti_is(t.Report.Components.StiBand)&&!i.isCross){var a=i.page.unit.convertFromHInches(i.headerSize);o=o.offsetRect(new p(0,a,0,a));var s=this.page.unit.convertFromHInches(1);o.width+=s,null!=this.report&&this.report.info.showHeaders&&(o.height+=s)}var l=i.sti_as(f);if(null!=l)for(var u=0,c=l.components.list;u<c.length;u++){var h=c[u],g={ref:o};l.getNodeSize(e,h,g),o=g.ref}o.x<n.x&&(n.width+=n.x-o.x,n.x=o.x),o.y<n.y&&(n.height+=n.y-o.y,n.y=o.y),o.x+o.width>n.x+n.width&&(n.width=o.x+o.width-n.x),o.y+o.height>n.y+n.height&&(n.height=o.y+o.height-n.y),e.set(i,o),r.ref=n},f.prototype.getContainerInRect2Private=function(i,n,o){var a=null,s=o.get(this);if(!r.pointInRect(i.x,i.y,s))return null;if(this==n||this.checkForParentComponent(n))return null;for(var l=this.components,u=l.count-1;u>=0;u--){var c=l.getByIndex(u);if(c==n)continue;if((0==c.width||0==c.height)&&u<l.count-1&&l.getByIndex(u+1).left==c.left&&l.getByIndex(u+1).top==c.top)continue;var h=c.sti_as(f);if(null!=h){var g=o.get(c);if(!r.pointInRect(i.x,i.y,g))continue;var m=h.getContainerInRect2Private(i,n,o);if(null!=m){a=m;break}}}if(null==a&&null!=this.parent&&n.canContainIn(this)){if(s=this.parent.containerToPage(this.clientRectangle),null!=this.page&&this.sti_is(t.Report.Components.StiBand)&&!this.isCross){var d=this.page.unit.convertFromHInches(this.sti_as(t.Report.Components.StiBand).headerSize);s=s.offsetRect(new p(0,d,0,d));var S=this.page.unit.convertFromHInches(1);n.sti_is(t.Report.Components.StiPrimitive)&&(s.width+=S),null!=e&&this.report.info.showHeaders&&(s.height+=S)}r.pointInRect(i.x,i.y,s)&&(a=this)}if(n.isCross)return a;if(n.sti_is(t.Report.Components.Table.StiTable)&&null!=a&&a.sti_is(t.Report.Components.Table.StiTable))return null;if(n.sti_is(t.Report.Components.Table.StiTable)&&null!=a&&a.sti_is(t.Report.Components.StiDataBand))return a;if(!n.sti_is(t.Report.Components.Table.IStiTableCell)&&null!=a&&a.sti_is(t.Report.Components.Table.StiTable))return null;if(n.sti_is(t.Report.Components.Table.IStiTableCell)&&(null==a||!a.sti_is(t.Report.Components.Table.StiTable)))return null;if(n.sti_is(t.Report.Components.StiBand)&&null!=a&&null!=a&&a.sti_is(t.Report.Components.StiBand))return null;return a},f.prototype.getContainerInRect2=function(e,r,n){var o=r.sti_is(i.StiCrossDataBand)||r.sti_is(i.StiCrossHeaderBand)||r.sti_is(i.StiCrossFooterBand)||r.sti_is(i.StiCrossGroupHeaderBand)||r.sti_is(i.StiCrossGroupFooterBand);if(null!=r.page&&r.sti_is(t.Report.Components.StiBand)&&!o){var a=r.page.unit.convertFromHInches(r.headerSize);e=e.offsetRect(new p(0,a,0,a))}var s=this.getContainerInRect2Private(e,r,n);if(null==s)return this.page;if(s.checkForParentComponent(r))return this.page;return s},f.prototype.getIncorrect2=function(t,e){void 0===e&&(e=null);var r=new i.StiComponentsCollection;null==e&&(e=this.getSizesTable(this));for(var n=0,o=this.components.list;n<o.length;n++){var a=o[n];if(!(a.linked||a.inherited)&&(!t||t&&a.isSelected)){var s=this.containerToPage(a.clientRectangle),l=this.page.getContainerInRect2(s,a,e);if(l==a.parent||l.checkForParentComponent(a))a.isCross&&!a.canContainIn(a.parent)&&r.add(a);else{var c=this.containerToPage(l.clientRectangle),p=this.containerToPage(a.clientRectangle);0==a.left&&c.left==p.left&&a.dockStyle!=u.None||r.add(a)}}var h=a.sti_as(f);null!=h&&r.addRange(h.getIncorrect2(t,e))}return r},f.prototype.correct2=function(t){for(var e=this.getSizesTable(this),r=this.getIncorrect2(t,e),n=0,o=r.list;n<o.length;n++){var a=o[n];if(null==a.parent)continue;a.clientRectangle=a.componentToPage(a.clientRectangle);var s=a.parent;a.parent.components.remove(a);var l=void 0;l=this.getContainerInRect2(a.clientRectangle,a,e),null==l&&(l=this.page),a.canContainIn(l)?(a.clientRectangle=l.pageToContainer(a.clientRectangle),l.components.add(a)):s.sti_is(i.StiPage)||(a.clientRectangle=a.pageToComponent(a.clientRectangle),s.components.add(a))}this.dockToContainer(),this.sortByPriority()},f.prototype.getIncorrect=function(t){void 0===t&&(t=!1);for(var e=new i.StiComponentsCollection,r=0,n=this.components.list;r<n.length;r++){var o=n[r];if(!(o.linked||o.inherited)){var a=this.containerToPage(new d(o.left,o.top)),s=this.containerToPage(o.clientRectangle),l=this.page.getContainerInRect(s,o);if(l==o.parent||l.checkForParentComponent(o))o.isCross&&!o.canContainIn(o.parent)&&e.add(o);else{var c=this.containerToPage(l.clientRectangle),p=this.containerToPage(o.clientRectangle);0==o.left&&c.left==p.left&&o.dockStyle!=u.None||e.add(o)}}var h=o.sti_as(f);null!=h&&e.addRange(h.getIncorrect(t))}return e},f.prototype.correct=function(t){if(void 0===t&&(t=!1),StiOptions.Designer.useComponentPlacementOptimization)return this.correct2(t),void this.checkLargeHeight();for(var e=this.getIncorrect(t),r=0,n=e.list;r<n.length;r++){var o=n[r];if(null==o.parent)continue;o.clientRectangle=o.componentToPage(o.clientRectangle);var a=o.parent;o.parent.components.remove(o);var s=void 0;s=this.getContainerInRect(o.clientRectangle,o),null==s&&(s=this.page),o.canContainIn(s)?(o.clientRectangle=s.pageToContainer(o.clientRectangle),s.components.add(o)):a.sti_is(i.StiPage)||(o.clientRectangle=o.pageToComponent(o.clientRectangle),a.components.add(o))}this.dockToContainer(),this.sortByPriority(),this.checkLargeHeight()},f.prototype.checkLargeHeight=function(e){void 0===e&&(e=!1);var r=this.sti_as(i.StiPage);if(null==r)return;if(r.largeHeight||!StiOptions.Designer.autoLargeHeight||!this.isDesigning)return;var n=0,o=r.height;if(e)for(var a=0,s=r.components.list;a<s.length;a++){var l=s[a];l.sti_is(t.Report.Components.StiBand)&&!l.isCross&&(l.sti_is(i.StiPageFooterBand)?o-=l.displayRectangle.height:n+=l.displayRectangle.height)}else for(var u=0,c=r.components.list;u<c.length;u++){var l=c[u];l.sti_is(t.Report.Components.StiBand)&&!l.isCross&&(l.sti_is(i.StiPageFooterBand)?o=Math.min(o,l.top):n=Math.max(n,l.bottom))}var p=.2,h=r.unit.convertFromHInches(30*3);while(r.pageHeight*p<h)p+=.2;var g=r.largeHeightAutoFactor;while(r.largeHeightAutoFactor<49&&o-n<r.pageHeight*p){var m=r.height;r.largeHeightAutoFactor+=p,o+=r.height-m}while(o-n>r.pageHeight*(2*p)&&r.largeHeightAutoFactor>1){var m=r.height;r.largeHeightAutoFactor-=p,o-=m-r.height}r.largeHeightAutoFactor},f.prototype.resetSelection=function(){this.reset();for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t];i.reset();var r=i.sti_as(f);null!=r&&r.resetSelection()}},f.prototype.getSelectedComponents=function(){for(var t=new i.StiComponentsCollection,e=0,r=this.components.list;e<r.length;e++){var n=r[e];n.isSelected&&t.add(n);var o=n.sti_as(f);if(null!=o){var a={ref:t};o.getSelectedComponents2(a),t=a.ref}}return t},f.prototype.getSelectedComponents2=function(t){for(var e=t.ref,i=0,r=this.components.list;i<r.length;i++){var n=r[i];n.isSelected&&e.add(n);var o=n.sti_as(f);if(null!=o){var a={ref:e};o.getComponents2(a),e=a.ref}}t.ref=e},f.prototype.getSelectedRectangle=function(){for(var t=p.empty,e=0,i=this.components.list;e<i.length;e++){var r=i[e];r.isSelected&&(t=t.isEmpty?r.getDisplayRectangle2():t.fitToRectangle(r.getDisplayRectangle2()));var n=r.sti_as(f);if(null!=n){var o=n.getSelectedRectangle();o.isEmpty||(t=t.fitToRectangle(o))}}return t},f.prototype.makeHorizontalSpacingEqual=function(){for(var t=this.getSelectedComponents(),e=this.getSelectedRectangle(),i=0,r=0,n=t.list;r<n.length;r++){i+=n[r].width}var o=(e.width-i)/Math.max(t.count-1,1);t.sortByLeftPosition();for(var a=t.list[0].right+o,s=1;s<t.count-1;s++)t.list[s].left=a,a=t.list[s].right+o},f.prototype.makeVerticalSpacingEqual=function(){for(var t=this.getSelectedComponents(),e=this.getSelectedRectangle(),i=0,r=0,n=t.list;r<n.length;r++){i+=n[r].height}var o=(e.height-i)/Math.max(t.count-1,1);t.sortByTopPosition();for(var a=t.list[0].bottom+o,s=1;s<t.count-1;s++)t.list[s].top=a,a=t.list[s].bottom+o},f.prototype.makeSameSize=function(t){for(var e=this.getSelectedComponents(),i=0,r=e.list;i<r.length;i++){var n=r[i];n.width=t.width,n.height=t.height}},f.prototype.makeSameWidth=function(t){for(var e=this.getSelectedComponents(),i=0,r=e.list;i<r.length;i++){r[i].width=t}},f.prototype.makeSameHeight=function(t){for(var e=this.getSelectedComponents(),i=0,r=e.list;i<r.length;i++){r[i].height=t}},f.prototype.setCenterHorizontally=function(){for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t];i.isSelected&&(i.left=(i.parent.width-i.width)/2);var r=i.sti_as(f);null!=r&&r.setCenterHorizontally()}},f.prototype.setCenterVertically=function(){for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t];i.isSelected&&(i.top=(i.parent.height-i.height)/2);var r=i.sti_as(f);null!=r&&r.setCenterVertically()}},f.prototype.selectAll=function(){for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t];i.select();var r=i.sti_as(f);null!=r&&r.selectAll()}},f.prototype.containerToPage=function(t){if(t.sti_is(d))return this.containerToPagePoint(t);return this.containerToPageRectangle(t)},f.prototype.containerToPageRectangle=function(t){var e=this;while(null!=e&&!e.sti_is(i.StiPage)){var r=e.clientRectangle;e.isSelected&&(r=i.StiComponent.doOffsetRect(e,r,this.page.offsetRectangle)),t.x+=r.left,t.y+=r.top,e=e.parent}return t},f.prototype.containerToPagePoint=function(t){var e=this;while(null!=e){var r=e.clientRectangle;e.isSelected&&(r=i.StiComponent.doOffsetRect(e,r,this.page.offsetRectangle)),t.x=t.x+r.left,t.y=t.y+r.top,e=e.parent}return t},f.prototype.pageToContainer=function(t){var e=this;if(t.sti_is(d)){var r=t.sti_as(d);while(null!=e){var n=e.clientRectangle;e.isSelected&&(n=i.StiComponent.doOffsetRect(e,n,this.page.offsetRectangle)),r.x-=n.left,r.y-=n.top,e=e.parent}return r}if(t.sti_is(p)){var o=t.sti_as(p);while(null!=e){var n=e.clientRectangle;e.isSelected&&(n=i.StiComponent.doOffsetRect(e,n,this.page.offsetRectangle)),o.x-=n.left,o.y-=n.top,e=e.parent}return o}return null},f.prototype.getComponents=function(){var t=new i.StiComponentsCollection;t.addRange(this.components);for(var e=0,r=this.components.list;e<r.length;e++){var n=r[e],o=n.sti_as(f);if(null!=o){var a={ref:t};o.getComponents2(a),t=a.ref}}return t},f.prototype.getComponents2=function(t){var e=t.ref;e.addRange(this.components);for(var i=0,r=this.components.list;i<r.length;i++){var n=r[i],o=n.sti_as(f);if(null!=o){var a={ref:e};o.getComponents2(a),e=a.ref}}t.ref=e},f.prototype.getComponentsList=function(){for(var t=new Array,e=0,i=this.components.list;e<i.length;e++){var r=i[e];t.add(r);var n=r.sti_as(f);null!=n&&t.addRange(n.getComponentsList())}return t},f.prototype.moveComponentsToPage=function(){for(var t=this.getComponentsList(),e=0,i=t;e<i.length;e++){var r=i[e];r.parent!=r.page&&(r.setDirectDisplayRectangle(r.componentToPage(r.displayRectangle)),r.page.components.add(r))}for(var n=0,o=t;n<o.length;n++){var r=o[n],a=r.sti_as(f);null!=a&&a.components.count>0&&a.components.clear()}},f.prototype.construct=function(t){void 0===t&&(t=p.empty),S.prototype.construct.call(this,t),this._components=new i.StiComponentsCollection(this)},f.propertyCanBreak=Math.random().toString().substr(2),f.propertyBlocked=Math.random().toString().substr(2),f}(i.StiComponent);i.StiContainer=S}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.System.Drawing.Size,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiAlignValue,a=function(a){function s(t){void 0===t&&(t=i.empty);var r=a.call(this,t)||this;return r._resetPageNumber=!1,r._rectangleMoveComponent=null,r.canGrow=!0,r.dockStyle=e.StiDockStyle.Top,r}return __extends(s,a),s.prototype.implements=function(){return s.ImplementsStiBand||(s.ImplementsStiBand=a.prototype.implements.call(this).concat([e.IStiResetPageNumber,n,e.IStiCanGrow,e.IStiConditions])),s.ImplementsStiBand},s.prototype.saveToJsonObject=function(t){var e=a.prototype.saveToJsonObject.call(this,t);return e.addPropertyBool("CanGrow",this.canGrow,!0),e.removeProperty("GrowToHeight"),e.removeProperty("ShiftMode"),e.removeProperty("Printable"),e.removeProperty("DockStyle"),e.removeProperty("MinSize"),e.removeProperty("MaxSize"),e.addPropertyBool("ResetPageNumber",this.resetPageNumber),e.addPropertyNumber("MinHeight",this.minHeight,0),e.addPropertyNumber("MaxHeight",this.maxHeight,0),e},s.prototype.loadFromJsonObject=function(t){a.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"ResetPageNumber":this._resetPageNumber=r.value.toBoolean();break;case"MinHeight":this.minHeight=r.value.toNumber();break;case"MaxHeight":this.maxHeight=r.value.toNumber();break}}},s.prototype.loadFromXml=function(t,e){a.prototype.loadFromXml.call(this,t,e);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"ResetPageNumber":this._resetPageNumber=r.textContent.toBoolean();break;case"MinHeight":this.minHeight=r.textContent.toNumber();break;case"MaxHeight":this.maxHeight=r.textContent.toNumber();break}}},s.prototype.canContainIn=function(e){if(this.isCross&&e.sti_is(s))return!0;if(this.sti_is(t.Report.Components.Table.StiTable)&&e.sti_is(s))return!0;if(e.sti_is(s))return!1;return a.prototype.canContainIn.call(this,e)},Object.defineProperty(s.prototype,"componentType",{get:function(){return this.getComponentType()},enumerable:!0,configurable:!0}),s.prototype.getComponentType=function(){return e.StiComponentType.Master},s.prototype.clone=function(t,e){var i=a.prototype.clone.call(this,t,e);return i._bandInfo=this.bandInfo.clone(),i},Object.defineProperty(s.prototype,"resetPageNumber",{get:function(){return this._resetPageNumber},set:function(t){this._resetPageNumber=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"bandInfo",{get:function(){return null==this._bandInfo&&(this._bandInfo=new e.StiBandInfo),this._bandInfo},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printable",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),s.prototype.getDockStyle=function(){return StiOptions.Engine.dockPageFooterToBottom&&this.sti_is(e.StiPageFooterBand)?e.StiDockStyle.Bottom:e.StiDockStyle.Top},s.prototype.setDockStyle=function(t){},Object.defineProperty(s.prototype,"isAutomaticDock",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"minHeight",{get:function(){return this.getMinHeight()},set:function(t){this.setMinHeight(t)},enumerable:!0,configurable:!0}),s.prototype.getMinHeight=function(){return a.prototype.getMinSize.call(this).height},s.prototype.setMinHeight=function(t){a.prototype.getMinSize.call(this).height!=t&&a.prototype.setMinSize.call(this,new r(0,t))},Object.defineProperty(s.prototype,"maxHeight",{get:function(){return this.getMaxHeight()},set:function(t){this.setMaxHeight(t)},enumerable:!0,configurable:!0}),s.prototype.getMaxHeight=function(){return a.prototype.getMaxSize.call(this).height},s.prototype.setMaxHeight=function(t){a.prototype.getMaxSize.call(this).height!=t&&a.prototype.setMaxSize.call(this,new r(0,t))},Object.defineProperty(s.prototype,"defaultClientRectangle",{get:function(){return new i(0,0,300,30)},enumerable:!0,configurable:!0}),s.prototype.getDisplayRectangle=function(){if(null!=this.report&&this.report.isRendering)return new i(this.left,this.top,this.width,this.height);var t=0,e=0;return null!=this.page&&null!=this.report&&this.report.info.showHeaders&&(t=this.page.unit.convertFromHInches(this.headerSize),e=this.page.unit.convertFromHInches(this.footerSize)),new i(this.left,this.top-t,this.width,this.height+t+e)},s.prototype.setDisplayRectangle=function(t){if(null!=this.report&&this.report.isRendering)this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height;else{var e=this.page.unit.convertFromHInches(this.headerSize),i=this.page.unit.convertFromHInches(this.footerSize);null==this.report||this.report.info.showHeaders||(e=0,i=0),this.left=t.left,this.top=t.top+e,this.width=t.width,this.height=t.height-e-i}},s.prototype.setDirectDisplayRectangle=function(t){this.displayRectangle=t},Object.defineProperty(s.prototype,"selectRectangle",{get:function(){var t=this.page.unit.convertFromHInches(this.headerSize);return this.dockStyle==e.StiDockStyle.Left||this.dockStyle==e.StiDockStyle.Right?new i(this.left-t,this.top,this.width+t,this.height):new i(this.left,this.top-t,this.width,this.height+t)},set:function(t){var i=this.page.unit.convertFromHInches(this.headerSize);this.dockStyle==e.StiDockStyle.Left||this.dockStyle==e.StiDockStyle.Right?(this.left=t.left+i,this.top=t.top,this.width=t.width-i,this.height=t.height):(this.left=t.left,this.top=t.top+i,this.width=t.width,this.height=t.height-i)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"nestedLevel",{get:function(){var i=this.sti_as(e.StiPageHeaderBand);if(null!=i){for(var r=1,n=0,o=this.page.components.list;n<o.length;n++){var a=o[n];if(a==i)return r;a.sti_is(e.StiPageHeaderBand)&&r++}return r}var s=this.sti_as(e.StiPageFooterBand);if(null!=s){for(var r=1,l=0,u=this.page.components.list;l<u.length;l++){var a=u[l];if(a==s)return r;a.sti_is(e.StiPageFooterBand)&&r++}return r}var c=this.sti_as(e.StiReportTitleBand);if(null!=c){for(var r=1,p=0,h=this.page.components.list;p<h.length;p++){var a=h[p];if(a==c)return r;a.sti_is(e.StiReportTitleBand)&&r++}return r}var g=this.sti_as(e.StiReportSummaryBand);if(null!=g){for(var r=1,m=this.page.components.count-1;m>=0;m--){var a=this.page.components.getByIndex(m);if(a==g)return r;a.sti_is(e.StiReportSummaryBand)&&r++}return r}var d=this.sti_as(e.StiEmptyBand);if(null!=d){for(var r=1,S=0,f=this.page.components.list;S<f.length;S++){var a=f[S];if(a==d)return r;a.sti_is(e.StiEmptyBand)&&r++}return r}var y=this.sti_as(e.StiOverlayBand);if(null!=y){for(var r=1,b=0,C=this.page.components.list;b<C.length;b++){var a=C[b];if(a==y)return r;a.sti_is(e.StiOverlayBand)&&r++}return r}var v=this.sti_as(e.StiDataBand);if(null!=v){var I=v.masterComponent?v.masterComponent.sti_as(e.StiDataBand):null,r=1;while(null!=I)I=I.masterComponent?I.masterComponent.sti_as(e.StiDataBand):null,r++;return r}var A=this.sti_as(e.StiHeaderBand);if(null!=A){var I=t.Report.Engine.StiHeaderBandBuilder.getMaster(A);if(null==I)return 1;return I.nestedLevel}var w=this.sti_as(e.StiFooterBand);if(null!=w){var I=t.Report.Engine.StiFooterBandBuilder.getMaster(w);if(null==I)return 1;return I.nestedLevel}var T=this.sti_as(e.StiGroupHeaderBand);if(null!=T){var I=t.Report.Engine.StiGroupHeaderBandBuilder.getMaster(T);if(null==I)return 1;return I.nestedLevel}var B=this.sti_as(e.StiGroupFooterBand);if(null!=B){var I=t.Report.Engine.StiGroupFooterBandBuilder.getMaster(B);if(null==I)return 1;return I.nestedLevel}var R=this.sti_as(e.StiChildBand);if(null!=R){var P=R.getMaster();return null==P?1:P.nestedLevel}return 0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rectangleMoveComponent",{get:function(){return this._rectangleMoveComponent},set:function(t){this._rectangleMoveComponent=t},enumerable:!0,configurable:!0}),s.prototype.getHeaderText=function(){return this.toString()},Object.defineProperty(s.prototype,"headerSize",{get:function(){return null!=this.report&&this.report.info.showHeaders?o.alignToMaxGrid(15,+this.page.unit.convertToHInches(this.page.gridSize),!0):0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"footerSize",{get:function(){return null!=this.report&&this.report.info.showHeaders?o.alignToMaxGrid(15,this.page.unit.convertToHInches(this.page.gridSize),!0):0},enumerable:!0,configurable:!0}),s}(e.StiContainer);e.StiBand=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.System.Drawing.Rectangle,n=function(t){function n(e){void 0===e&&(e=r.empty);var i=t.call(this,e)||this;return i._printAtBottom=!1,i._newPageBefore=!1,i._newPageAfter=!1,i._newColumnBefore=!1,i._newColumnAfter=!1,i._skipFirst=!0,i._breakIfLessThan=100,i}return __extends(n,t),n.prototype.implements=function(){return this._implementsStiDynamicBand||(this._implementsStiDynamicBand=t.prototype.implements.call(this).concat([e.IStiPageBreak,e.IStiBreakable,e.IStiPrintAtBottom,i])),this._implementsStiDynamicBand},n.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyBool("PrintAtBottom",this.printAtBottom),i.addPropertyBool("NewPageBefore",this.newPageBefore),i.addPropertyBool("NewPageAfter",this.newPageAfter),i.addPropertyBool("NewColumnBefore",this.newColumnBefore),i.addPropertyBool("NewColumnAfter",this.newColumnAfter),i.addPropertyBool("SkipFirst",this.skipFirst,!0),i.addPropertyNumber("BreakIfLessThan",this.breakIfLessThan,100),i},n.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"PrintAtBottom":this._printAtBottom=n.value.toBoolean();break;case"NewPageBefore":this._newPageBefore=n.value.toBoolean();break;case"NewPageAfter":this._newPageAfter=n.value.toBoolean();break;case"NewColumnBefore":this._newColumnBefore=n.value.toBoolean();break;case"NewColumnAfter":this._newColumnAfter=n.value.toBoolean();break;case"SkipFirst":this._skipFirst=n.value.toBoolean();break;case"BreakIfLessThan":this._breakIfLessThan=n.value.toNumber();break}}},n.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"PrintAtBottom":this._printAtBottom=n.textContent.toBoolean();break;case"NewPageBefore":this._newPageBefore=n.textContent.toBoolean();break;case"NewPageAfter":this._newPageAfter=n.textContent.toBoolean();break;case"NewColumnBefore":this._newColumnBefore=n.textContent.toBoolean();break;case"NewColumnAfter":this._newColumnAfter=n.textContent.toBoolean();break;case"SkipFirst":this._skipFirst=n.textContent.toBoolean();break;case"BreakIfLessThan":this._breakIfLessThan=n.textContent.toNumber();break}}},Object.defineProperty(n.prototype,"printAtBottom",{get:function(){return this._printAtBottom},set:function(t){this._printAtBottom!=t&&(this._printAtBottom=t)},enumerable:!0,configurable:!0}),n.prototype.break=function(t,e,i){return!1},Object.defineProperty(n.prototype,"newPageBefore",{get:function(){return this._newPageBefore},set:function(t){this._newPageBefore=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"newPageAfter",{get:function(){return this._newPageAfter},set:function(t){this._newPageAfter=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"newColumnBefore",{get:function(){return this._newColumnBefore},set:function(t){this._newColumnBefore=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"newColumnAfter",{get:function(){return this._newColumnAfter},set:function(t){this._newColumnAfter=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"skipFirst",{get:function(){return this._skipFirst},set:function(t){this._skipFirst!=t&&(this._skipFirst=t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"breakIfLessThan",{get:function(){return this._breakIfLessThan},set:function(t){this._breakIfLessThan!=t&&t>=0&&t<=100&&(this._breakIfLessThan=t)},enumerable:!0,configurable:!0}),n}(e.StiBand);e.StiDynamicBand=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.System.Drawing.Color,n=t.Base.Drawing.StiColorUtils,o=t.System.Drawing.Rectangle,a=function(t){function a(e){void 0===e&&(e=o.empty);var i=t.call(this,e)||this;return i._keepChildTogether=!0,i._printIfParentDisabled=!1,i}return __extends(a,t),a.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiKeepChildTogether,i])},a.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyBool("KeepChildTogether",this.keepChildTogether,!0),i.addPropertyBool("PrintIfParentDisabled",this.printIfParentDisabled),i},a.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"KeepChildTogether":this._keepChildTogether=n.value.toBoolean();break;case"PrintIfParentDisabled":this._printIfParentDisabled=n.value.toBoolean();break}}},a.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"KeepChildTogether":this._keepChildTogether=n.textContent.toBoolean();break;case"PrintIfParentDisabled":this._printIfParentDisabled=n.textContent.toBoolean();break}}},Object.defineProperty(a.prototype,"keepChildTogether",{get:function(){return this._keepChildTogether},set:function(t){this._keepChildTogether!=t&&(this._keepChildTogether=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerStartColor",{get:function(){var t=this.getMaster();return null!=t?n.light(t.headerStartColor,50):r.white},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerEndColor",{get:function(){var t=this.getMaster();return null!=t?n.light(t.headerEndColor,50):r.white},enumerable:!0,configurable:!0}),a.prototype.getComponentType=function(){return e.StiComponentType.Detail},Object.defineProperty(a.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.ChildBand},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"priority",{get:function(){return e.StiComponentPriority.ChildBand},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"printIfParentDisabled",{get:function(){return this._printIfParentDisabled},set:function(t){this._printIfParentDisabled!=t&&(this._printIfParentDisabled=t)},enumerable:!0,configurable:!0}),a.prototype.createNew=function(){return new a},a.prototype.getMaster=function(){var t=this.parent.components.indexOf(this)-1;while(t>=0){if(this.parent.components.getByIndex(t).sti_is(e.StiBand)&&!this.parent.components.getByIndex(t).sti_is(a))return this.parent.components.getByIndex(t).sti_as(e.StiBand);t--}return null},a}(e.StiDynamicBand);e.StiChildBand=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventArgs,r=t.System.Enum,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.System.Drawing.Color,a=t.System.Drawing.Rectangle,s=function(t){function s(i){void 0===i&&(i=a.empty);var r=t.call(this,i)||this;return r._keepFooterTogether=!0,r._startNewPage=!1,r._printIfEmpty=!0,r._printOnEvenOddPages=e.StiPrintOnEvenOddPagesType.Ignore,r._printOnAllPages=!1,r}return __extends(s,t),s.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiPrintOnAllPages,e.IStiPrintIfEmpty,e.IStiKeepFooterTogether,e.IStiPrintOnEvenOddPages,n])},s.prototype.saveToJsonObject=function(i){var r=t.prototype.saveToJsonObject.call(this,i);return r.addPropertyBool("CanBreak",this.canBreak),r.addPropertyBool("KeepFooterTogether",this.keepFooterTogether,!0),r.addPropertyBool("StartNewPage",this.startNewPage),r.addPropertyNumber("StartNewPageIfLessThan",this.startNewPageIfLessThan,100),r.addPropertyBool("PrintIfEmpty",this.printIfEmpty),r.addPropertyEnum("PrintOnEvenOddPages",e.StiPrintOnEvenOddPagesType,this.printOnEvenOddPages,e.StiPrintOnEvenOddPagesType.Ignore),r.addPropertyBool("PrintOnAllPages",this.printOnAllPages),r},s.prototype.loadFromJsonObject=function(i){t.prototype.loadFromJsonObject.call(this,i);for(var n=0,o=i.properties();n<o.length;n++){var a=o[n];switch(a.name){case"KeepFooterTogether":this._keepFooterTogether=a.value.toBoolean();break;case"StartNewPage":this._startNewPage=a.value.toBoolean();break;case"StartNewPageIfLessThan":this.startNewPageIfLessThan=a.value.toNumber();break;case"PrintIfEmpty":this._printIfEmpty=a.value.toBoolean();break;case"PrintOnEvenOddPages":this._printOnEvenOddPages=r.parse(e.StiPrintOnEvenOddPagesType,a.value);break;case"PrintOnAllPages":this._printOnAllPages=a.value.toBoolean();break}}},s.prototype.loadFromXml=function(i,n){t.prototype.loadFromXml.call(this,i,n);for(var o=0;o<i.childNodes.length;o++){var a=i.childNodes[o];switch(a.nodeName){case"KeepFooterTogether":this._keepFooterTogether=a.textContent.toBoolean();break;case"StartNewPage":this._startNewPage=a.textContent.toBoolean();break;case"StartNewPageIfLessThan":this.startNewPageIfLessThan=a.textContent.toNumber();break;case"PrintIfEmpty":this._printIfEmpty=a.textContent.toBoolean();break;case"PrintOnEvenOddPages":this._printOnEvenOddPages=r.parse(e.StiPrintOnEvenOddPagesType,a.textContent);break;case"PrintOnAllPages":this._printOnAllPages=a.textContent.toBoolean();break}}},Object.defineProperty(s.prototype,"keepFooterTogether",{get:function(){return this._keepFooterTogether},set:function(t){this._keepFooterTogether!=t&&(this._keepFooterTogether=t)},enumerable:!0,configurable:!0}),s.prototype.clone=function(e,i){var r=t.prototype.clone.call(this,e,i);return r._footerBandInfo=this.footerBandInfo.clone(),r},Object.defineProperty(s.prototype,"startNewPage",{get:function(){return this._startNewPage},set:function(t){this._startNewPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPageIfLessThan",{get:function(){return this.breakIfLessThan},set:function(t){this.breakIfLessThan=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printIfEmpty",{get:function(){return this._printIfEmpty},set:function(t){this._printIfEmpty!=t&&(this._printIfEmpty=t)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printOnEvenOddPages",{get:function(){return this._printOnEvenOddPages},set:function(t){this._printOnEvenOddPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printOnAllPages",{get:function(){return this._printOnAllPages},set:function(t){this._printOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"footerBandInfo",{get:function(){return null==this._footerBandInfo&&(this._footerBandInfo=new e.StiFooterBandInfo),this._footerBandInfo},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerStartColor",{get:function(){return o.fromArgb(178,197,223)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerEndColor",{get:function(){return o.fromArgb(178,197,223)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.FooterBand},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"priority",{get:function(){return e.StiComponentPriority.ColumnFooterBand},enumerable:!0,configurable:!0}),s.prototype.getComponentType=function(){return e.StiComponentType.Detail},s.prototype.onMoveFooterToBottom=function(t){},s.prototype.invokeMoveFooterToBottom=function(){this.onMoveFooterToBottom(i.empty)},s.prototype.createNew=function(){return new s},s.eventMoveFooterToBottom={},s}(e.StiDynamicBand);e.StiFooterBand=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.System.Drawing.Color,n=t.System.Drawing.Rectangle,o=function(t){function o(e){return void 0===e&&(e=n.empty),t.call(this,e)||this}return __extends(o,t),o.prototype.implements=function(){return t.prototype.implements.call(this).concat([i])},o.prototype.saveToJsonObject=function(i){var r=t.prototype.saveToJsonObject.call(this,i);return r.addPropertyBool("KeepFooterTogether",this.keepFooterTogether,!0),r.addPropertyBool("StartNewPage",this.startNewPage),r.addPropertyNumber("StartNewPageIfLessThan",this.startNewPageIfLessThan,100),r.addPropertyBool("PrintIfEmpty",this.printIfEmpty),r.addPropertyEnum("PrintOnEvenOddPages",e.StiPrintOnEvenOddPagesType,this.printOnEvenOddPages,e.StiPrintOnEvenOddPagesType.Ignore),r.addPropertyBool("PrintOnAllPages",this.printOnAllPages),r},o.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e)},Object.defineProperty(o.prototype,"headerStartColor",{get:function(){return r.fromArgb(239,109,73)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerEndColor",{get:function(){return r.fromArgb(239,109,73)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.ColumnFooterBand},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"priority",{get:function(){return e.StiComponentPriority.ColumnFooterBand},enumerable:!0,configurable:!0}),o}(e.StiFooterBand);e.StiColumnFooterBand=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Enum,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.System.Drawing.Color,o=t.System.Drawing.Rectangle,a=function(t){function a(i){void 0===i&&(i=o.empty);var r=t.call(this,i)||this;return r._keepHeaderTogether=!0,r._startNewPage=!1,r._printIfEmpty=!1,r._printOnAllPages=!0,r._printOnEvenOddPages=e.StiPrintOnEvenOddPagesType.Ignore,r}return __extends(a,t),a.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiPrintIfEmpty,e.IStiPrintOnAllPages,e.IStiPrintOnEvenOddPages,e.IStiKeepHeaderTogether,r])},a.prototype.saveToJsonObject=function(i){var r=t.prototype.saveToJsonObject.call(this,i);return r.addPropertyBool("CanBreak",this.canBreak),r.addPropertyBool("KeepHeaderTogether",this.keepHeaderTogether,!0),r.addPropertyBool("StartNewPage",this.startNewPage),r.addPropertyNumber("StartNewPageIfLessThan",this.startNewPageIfLessThan,100),r.addPropertyBool("PrintIfEmpty",this.printIfEmpty),r.addPropertyBool("PrintOnAllPages",this.printOnAllPages,!0),r.addPropertyEnum("PrintOnEvenOddPages",e.StiPrintOnEvenOddPagesType,this.printOnEvenOddPages,e.StiPrintOnEvenOddPagesType.Ignore),r},a.prototype.loadFromJsonObject=function(r){t.prototype.loadFromJsonObject.call(this,r);for(var n=0,o=r.properties();n<o.length;n++){var a=o[n];switch(a.name){case"KeepHeaderTogether":this._keepHeaderTogether=a.value.toBoolean();break;case"StartNewPage":this._startNewPage=a.value.toBoolean();break;case"StartNewPageIfLessThan":this.startNewPageIfLessThan=a.value.toNumber();break;case"PrintIfEmpty":this._printIfEmpty=a.value.toBoolean();break;case"PrintOnAllPages":this._printOnAllPages=a.value.toBoolean();break;case"PrintOnEvenOddPages":this._printOnEvenOddPages=i.parse(e.StiPrintOnEvenOddPagesType,a.value);break}}},a.prototype.loadFromXml=function(r,n){t.prototype.loadFromXml.call(this,r,n);for(var o=0;o<r.childNodes.length;o++){var a=r.childNodes[o];switch(a.nodeName){case"KeepHeaderTogether":this._keepHeaderTogether=a.textContent.toBoolean();break;case"StartNewPage":this._startNewPage=a.textContent.toBoolean();break;case"StartNewPageIfLessThan":this.startNewPageIfLessThan=a.textContent.toNumber();break;case"PrintIfEmpty":this._printIfEmpty=a.textContent.toBoolean();break;case"PrintOnAllPages":this._printOnAllPages=a.textContent.toBoolean();break;case"PrintOnEvenOddPages":this._printOnEvenOddPages=i.parse(e.StiPrintOnEvenOddPagesType,a.textContent);break}}},a.prototype.clone=function(e,i){var r=t.prototype.clone.call(this,e,i);return r._headerBandInfo=this.headerBandInfo.clone(),r},Object.defineProperty(a.prototype,"keepHeaderTogether",{get:function(){return this._keepHeaderTogether},set:function(t){this._keepHeaderTogether!=t&&(this._keepHeaderTogether=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"startNewPage",{get:function(){return this._startNewPage},set:function(t){this._startNewPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"startNewPageIfLessThan",{get:function(){return this.breakIfLessThan},set:function(t){this.breakIfLessThan=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"printIfEmpty",{get:function(){return this._printIfEmpty},set:function(t){this._printIfEmpty=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"printOnAllPages",{get:function(){return this._printOnAllPages},set:function(t){this._printOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"printOnEvenOddPages",{get:function(){return this._printOnEvenOddPages},set:function(t){this._printOnEvenOddPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerBandInfo",{get:function(){return null==this._headerBandInfo&&(this._headerBandInfo=new e.StiHeaderBandInfo),this._headerBandInfo},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerStartColor",{get:function(){return n.fromArgb(178,197,223)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerEndColor",{get:function(){return n.fromArgb(178,197,223)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.HeaderBand},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"priority",{get:function(){return e.StiComponentPriority.HeaderBand},enumerable:!0,configurable:!0}),a.prototype.getComponentType=function(){return e.StiComponentType.Detail},a.prototype.createNew=function(){return new a},a}(e.StiDynamicBand);e.StiHeaderBand=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.System.Drawing.Rectangle,n=function(t){function n(e){return void 0===e&&(e=r.empty),t.call(this,e)||this}return __extends(n,t),Object.defineProperty(n.prototype,"headerStartColor",{get:function(){return i.fromArgb(239,109,73)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerEndColor",{get:function(){return i.fromArgb(239,109,73)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.ColumnHeaderBand},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(e.StiHeaderBand);e.StiColumnHeaderBand=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Collections.CollectionBase,n=t.System.ICloneable,o=t.System.Collections.IComparer,a=t.System.Collections.Hashtable,s=t.Base.JsonReportObject.IStiJsonReportObject,l=t.Base.StiJson,u=function(t){function r(e,i){var r=t.call(this)||this;return r.directionFactor=1,r.dictionary=e,r.parentBusinessObject=i,r}return __extends(r,t),r.prototype.implements=function(){return[n,s,o]},r.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new l,i=0,r=0,n=this.list;r<n.length;r++){var o=n[r];e.addPropertyJObject(i.toString(),o.saveToJsonObject(t)),i++}return e},r.prototype.loadFromJsonObject=function(t){for(var e=0,r=t.properties();e<r.length;e++){var n=r[e],o=new i.StiBusinessObject;o.dictionary=this.dictionary,o.loadFromJsonObject(n.value),this.list.add(o)}},r.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(null==r.attributes)continue;if(null!=r.attributes.getNamedItem("type")){var n=new i.StiBusinessObject;n.dictionary=this.dictionary,n.loadFromXml(r),this.list.add(n)}}},r.prototype.compare=function(t,e){var i=t,r=e;return i.name.compareTo(r.name)*this.directionFactor},Object.defineProperty(r.prototype,"toList",{get:function(){return this._list},enumerable:!0,configurable:!0}),r.prototype.onSet=function(t,e,i){var r=i;null!=this.dictionary&&(r.dictionary=this.dictionary),null!=this.parentBusinessObject&&(r.parentBusinessObject=this.parentBusinessObject)},r.prototype.onInsert=function(t,e){var i=e;null!=this.dictionary&&(i.dictionary=this.dictionary),null!=this.parentBusinessObject&&(i.parentBusinessObject=this.parentBusinessObject)},r.prototype.add=function(t){this.list.add(t)},r.prototype.addRange=function(t){if(t.sti_is(r))for(var e=0,i=t.list;e<i.length;e++){var n=i[e];this.add(n)}else this.list.addRange(t)},r.prototype.contains=function(t){return this.list.contains(t)},r.prototype.indexOf=function(t){return this.list.indexOf(t)},r.prototype.insert=function(t,e){this.list.insert(t,e)},r.prototype.onClear=function(){t.prototype.clear.call(this),null!=this._cachedBusinessObjects&&(this._cachedBusinessObjects.clear(),this._cachedBusinessObjects=null)},r.prototype.remove=function(t){this.list.remove(t);var e=t.name.toLower();null!=this.cachedBusinessObjects.get(e)&&this.cachedBusinessObjects.remove(e)},r.prototype.getByIndex=function(t){return this.list[t]},r.prototype.setByIndex=function(t,e){this.list[t]=e},Object.defineProperty(r.prototype,"cachedBusinessObjects",{get:function(){return null==this._cachedBusinessObjects&&(this._cachedBusinessObjects=new a),this._cachedBusinessObjects},enumerable:!0,configurable:!0}),r.prototype.getByName=function(t){t=t.toLower();var i=this.cachedBusinessObjects.get(t);if(null!=i)return i;for(var r=0,n=this.list;r<n.length;r++){var o=n[r];if(o.name.toLower()==t)return this.cachedBusinessObjects.set(t,o),o;if(e.StiNameValidator.correctName(o.name.toLower())==e.StiNameValidator.correctName(t))return this.cachedBusinessObjects.set(t,o),o}return null},r.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].name.toLower()==t)return void(this.list[i]=e)}this.add(e)},r.prototype.clone=function(){for(var t=new r(this.dictionary,this.parentBusinessObject),e=0,i=this.list;e<i.length;e++){var n=i[e];t.add(n.clone())}return t},r.prototype.sort=function(t,e){if(void 0===t&&(t=i.StiSortOrder.Asc),void 0===e&&(e=!0),t==i.StiSortOrder.Asc?this.directionFactor=1:this.directionFactor=-1,this.list.sort(),e)for(var r=0,n=this.list;r<n.length;r++){var o=n[r];o.columns.sort(t);var a=o.businessObjects;null!=a&&a.count>0&&a.sort(t)}},r.prototype.connect=function(){for(var t=0,e=this.list;t<e.length;t++){e[t].connect()}},r.prototype.disconnect=function(){for(var t=0,e=this.list;t<e.length;t++){e[t].disconnect()}},r}(r);i.StiBusinessObjectsCollection=u}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Type,n=t.Report.Dictionary.StiBusinessObjectsCollection,o=function(){function t(){}return t.getElementType=function(t){return null},t.getElement=function(t){if(null==t)return null;var e=t.getStiType();return this.getElementType(e)},t.getAlias=function(t){return null},t.isAllowUseProperty=function(t){return!0},t.getType=function(t){return t},t.getDataColumn=function(t,e,r){return null==e&&(e=t),new i.StiDataColumn(t,e,e,this.getType(r))},t.getDataColumn2=function(t){return new i.StiDataColumn(t.columnName,t.caption,t.caption,t.dataType)},t.getColumnsFromObject=function(t){var e=new i.StiDataColumnsCollection;if(null==t)return e;var n=this.getElement(t);return null==n&&(n=t),n.sti_is(r),this.getColumnsFromClass(n)},t.getColumnsFromClass=function(t){var e=new i.StiDataColumnsCollection;if(StiOptions.BusinessObjects.allowUseProperties)for(var r=Object.keys(t),n=0,o=r;n<o.length;n++){var a=o[n],s=this.getDataColumn(a,this.getAlias(a),Object);e.add(s)}return StiOptions.BusinessObjects.allowUseFields,e},t.getColumnsFromData=function(t,e){void 0===e&&(e=!1);var r=this.getColumnsFromObject(t);if(e)return r;for(var n=new i.StiDataColumnsCollection,o=0,a=r.list;o<a.length;o++){var s=a[o];if(!this.isDataColumn(s.type))continue;n.add(s)}return n},t.isDataColumn=function(t){return!1},t.getBusinessObjectFromGuid=function(e,i){var r=t.getBusinessObjectsFromReport(e);if(null==r)return null;for(var n=0,o=r;n<o.length;n++){var a=o[n];if(a.guid==i)return a}return null},t.getBusinessObjectsFromReport=function(t){if(t.sti_is(n)){for(var i=t,r=null,o=0,a=i.list;o<a.length;o++){var s=a[o],l=this.getBusinessObjectsFromReport(s.businessObjects);if(null!=l){null==r&&(r=new Array);for(var u=0,c=l;u<c.length;u++){var p=c[u];r.add(p)}}null==r&&(r=new Array),r.add(s)}return r}if(t.sti_is(e.StiReport)){var h=t;return this.getBusinessObjectsFromReport(h.dictionary.businessObjects)}return null},t}();i.StiBusinessObjectHelper=o}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetCollapsed"},e}(t.StiEvent);t.StiGetCollapsedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"EndRender"},e}(t.StiEvent);t.StiEndRenderEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Rendering"},e}(t.StiEvent);t.StiRenderingEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"BeginRender"},e}(t.StiEvent);t.StiBeginRenderEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.EventArgs,n=t.System.EventHandler,o=t.Report.Events.StiValueEventHandler,a=t.Report.Events.StiGetCollapsedEvent,s=t.Report.Events.StiEndRenderEvent,l=t.Report.Events.StiRenderingEvent,u=t.Report.Events.StiBeginRenderEvent,c=t.Base.StiJsonSaveMode,p=t.System.Drawing.Rectangle,h=t.Base.StiJsonReportObjectHelper,g=t.System.Enum,m=t.Base.JsonReportObject.IStiJsonReportObject,d=t.Report.Dictionary.IStiEnumerator,S=t.System.Drawing.Color,f=t.Base.Localization.StiLocalization,y=function(y){function b(t){void 0===t&&(t=p.empty);var e=y.call(this,t)||this;return e._masterComponent=null,e._keepDetails=i.StiKeepDetails.None,e._sort=[],e._printOnAllPages=!1,e._printIfDetailEmpty=!1,e._dataSourceName=String.empty,e._businessObjectGuid=String.empty,e.isEofValue=!1,e.isBofValue=!1,e._dataRelationName="",e._filterMode=i.StiFilterMode.And,e._filterEngine=i.StiFilterEngine.ReportEngine,e._filters=new i.StiFiltersCollection,e._filterOn=!0,e._collapsed="",e._rightToLeft=!1,e._columnGaps=0,e._columnWidth=0,e._columns=0,e._minRowsInColumn=0,e._columnDirection=i.StiColumnDirection.AcrossThenDown,e._lineThrough=1,e._line=1,e._selectedLine=1,e._resetDataSource=!1,e._calcInvisible=!1,e._countData=0,e.printIfDetailEmpty=StiOptions.Engine.printIfDetailEmptyDefaultValue,e}return __extends(b,y),b.prototype.implements=function(){return b.ImplementsStiDataBand||(b.ImplementsStiDataBand=y.prototype.implements.call(this).concat([i.IStiDataSource,d,i.IStiMasterComponent,i.IStiDataRelation,i.IStiOddEvenStyles,i.IStiSort,i.IStiFilter,i.IStiPrintOnAllPages,i.IStiPrintIfDetailEmpty,i.IStiKeepDetailsTogether,i.IStiResetPageNumber,i.IStiRenderMaster,i.IStiBusinessObject,m])),b.ImplementsStiDataBand},b.prototype.saveToJsonObject=function(t){var e=y.prototype.saveToJsonObject.call(this,t);return e.addPropertyEnum("KeepDetails",i.StiKeepDetails,this.keepDetails,i.StiKeepDetails.None),e.addPropertyBool("PrintOnAllPages",this.printOnAllPages),e.addPropertyBool("PrintIfDetailEmpty",this.printIfDetailEmpty),e.addPropertyStringNullOfEmpty("DataSourceName",this.dataSourceName),e.addPropertyStringNullOfEmpty("BusinessObjectGuid",this.businessObjectGuid),e.addPropertyStringNullOfEmpty("DataRelationName",this.dataRelationName),e.addPropertyEnum("FilterMode",i.StiFilterMode,this.filterMode,i.StiFilterMode.And),e.addPropertyEnum("FilterEngine",i.StiFilterEngine,this.filterEngine,i.StiFilterEngine.ReportEngine),e.addPropertyBool("FilterOn",this.filterOn,!0),e.addPropertyStringNullOfEmpty("EvenStyle",this.evenStyle),e.addPropertyStringNullOfEmpty("OddStyle",this.oddStyle),e.addPropertyJObject("BeginRenderEvent",this.beginRenderEvent.saveToJsonObject(t)),e.addPropertyJObject("RenderingEvent",this.renderingEvent.saveToJsonObject(t)),e.addPropertyJObject("EndRenderEvent",this.endRenderEvent.saveToJsonObject(t)),e.addPropertyJObject("GetCollapsedEvent",this.getCollapsedEvent.saveToJsonObject(t)),e.addPropertyBool("RightToLeft",this.rightToLeft),e.addPropertyNumber("ColumnGaps",this.columnGaps,0),e.addPropertyNumber("ColumnWidth",this.columnWidth,0),e.addPropertyNumber("Columns",this.columns),e.addPropertyNumber("MinRowsInColumn",this.minRowsInColumn),e.addPropertyEnum("ColumnDirection",i.StiColumnDirection,this.columnDirection,i.StiColumnDirection.AcrossThenDown),e.addPropertyBool("ResetDataSource",this.resetDataSource),e.addPropertyBool("CalcInvisible",this.calcInvisible),e.addPropertyNumber("CountData",this.countData),e.addPropertyBool("KeepDetailsTogether",this.keepDetailsTogether),null!=this.masterComponent&&e.addPropertyStringNullOfEmpty("MasterComponent",this.masterComponent.name),t==c.Report&&(e.addPropertyJObject("Sort",h.Serialize.stringArray(this.sort)),e.addPropertyJObject("Filters",this.filters.saveToJsonObject(t))),e},b.prototype.loadFromJsonObject=function(t){y.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"StartNewPage":break;case"StartNewPageIfLessThan":break;case"KeepGroupTogether":break;case"KeepHeaderTogether":break;case"KeepFooterTogether":break;case"KeepChildTogether":break;case"KeepDetails":this._keepDetails=g.parse(i.StiKeepDetails,n.value);break;case"Sort":this._sort=h.Deserialize.stringArray(n.value);break;case"PrintOnAllPages":this._printOnAllPages=n.value.toBoolean();break;case"PrintIfDetailEmpty":this._printIfDetailEmpty=n.value.toBoolean();break;case"DataSourceName":this._dataSourceName=n.value;break;case"BusinessObjectGuid":this._businessObjectGuid=n.value;break;case"DataRelationName":this._dataRelationName=n.value;break;case"FilterMode":this._filterMode=g.parse(i.StiFilterMode,n.value);break;case"FilterEngine":this._filterEngine=g.parse(i.StiFilterEngine,n.value);break;case"Filters":null==this._filters&&(this._filters=new i.StiFiltersCollection),this._filters.loadFromJsonObject(n.value);break;case"FilterOn":this._filterOn=n.value.toBoolean();break;case"EvenStyle":this.evenStyle=n.value;break;case"OddStyle":this.oddStyle=n.value;break;case"BeginRenderEvent":var o=new u;o.loadFromJsonObject(n.value),this.beginRenderEvent=o;break;case"RenderingEvent":var o=new l;o.loadFromJsonObject(n.value),this.renderingEvent=o;break;case"EndRenderEvent":var o=new s;o.loadFromJsonObject(n.value),this.endRenderEvent=o;break;case"GetCollapsedEvent":var o=new a;o.loadFromJsonObject(n.value),this.getCollapsedEvent=o;break;case"Collapsed":break;case"RightToLeft":this._rightToLeft=n.value.toBoolean();break;case"ColumnGaps":this._columnGaps=n.value.toNumber();break;case"ColumnWidth":this._columnWidth=n.value.toNumber();break;case"Columns":this._columns=n.value.toNumber();break;case"MinRowsInColumn":this._minRowsInColumn=n.value.toNumber();break;case"ColumnDirection":this._columnDirection=g.parse(i.StiColumnDirection,n.value);break;case"ResetDataSource":this._resetDataSource=n.value.toBoolean();break;case"CalcInvisible":this._calcInvisible=n.value.toBoolean();break;case"CountData":this._countData=n.value.toNumber();break;case"MasterComponent":this.jsonMasterComponentTemp=n.value,this.report.jsonLoaderHelper.masterComponents.add(this);break}}},b.prototype.loadFromXml=function(t,e){y.prototype.loadFromXml.call(this,t,e);var r=t.getAttribute("Ref");String.isNullOrEmpty(r)||(this.report.jsonLoaderHelper.refNames[r.toNumber()]=t.nodeName);for(var n=0;n<t.childNodes.length;n++){var o=t.childNodes[n];switch(o.nodeName){case"StartNewPage":break;case"StartNewPageIfLessThan":break;case"KeepGroupTogether":break;case"KeepHeaderTogether":break;case"KeepFooterTogether":break;case"KeepChildTogether":break;case"KeepChildTogether":break;case"KeepDetails":this._keepDetails=g.parse(i.StiKeepDetails,o.textContent);break;case"Sort":this._sort=b.loadXmlSort(o);break;case"PrintOnAllPages":this._printOnAllPages=o.textContent.toBoolean();break;case"PrintIfDetailEmpty":this._printIfDetailEmpty=o.textContent.toBoolean();break;case"DataSourceName":this._dataSourceName=o.textContent;break;case"BusinessObjectGuid":this._businessObjectGuid=o.textContent;break;case"DataRelationName":this._dataRelationName=o.textContent;break;case"FilterMode":this._filterMode=g.parse(i.StiFilterMode,o.textContent);break;case"FilterEngine":this._filterEngine=g.parse(i.StiFilterEngine,o.textContent);break;case"Filters":null==this._filters&&(this._filters=new i.StiFiltersCollection),this._filters.loadFromXml(o);break;case"FilterOn":this._filterOn=o.textContent.toBoolean();break;case"EvenStyle":this.evenStyle=o.textContent;break;case"OddStyle":this.oddStyle=o.textContent;break;case"BeginRenderEvent":break;case"RenderingEvent":var a=new l;a.script=o.textContent,this.renderingEvent=a;break;case"EndRenderEvent":break;case"GetCollapsedEvent":break;case"Collapsed":break;case"RightToLeft":this._rightToLeft=o.textContent.toBoolean();break;case"ColumnGaps":this._columnGaps=o.textContent.toNumber();break;case"ColumnWidth":this._columnWidth=o.textContent.toNumber();break;case"Columns":this._columns=o.textContent.toNumber();break;case"MinRowsInColumn":this._minRowsInColumn=o.textContent.toNumber();break;case"ColumnDirection":this._columnDirection=g.parse(i.StiColumnDirection,o.textContent);break;case"ResetDataSource":this._resetDataSource=o.textContent.toBoolean();break;case"CalcInvisible":this._calcInvisible=o.textContent.toBoolean();break;case"CountData":this._countData=o.textContent.toNumber();break;case"MasterComponent":this.jsonMasterComponentTemp=o.getAttribute("isRef"),this.report.jsonLoaderHelper.masterComponents.add(this);break}}},b.loadXmlSort=function(t){for(var e=[],i=0,r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];"value"==n.nodeName&&(e[i]=n.textContent,i++)}return e},b.prototype.saveState=function(t){null!=this.report&&(this.states.pushInt(t,this,"positionValue",this.positionValue),this.states.pushBool(t,this,"isEofValue",this.isEofValue),this.states.pushBool(t,this,"isBofValue",this.isBofValue),null!=this.dataSource&&this.dataSource.saveState(t),String.isNullOrEmpty(this.businessObjectGuid)||this.businessObject.saveState(t))},b.prototype.restoreState=function(e){null!=this.report&&(this.isBofValue=this.states.popBool(e,this,"isBofValue"),this.isEofValue=this.states.popBool(e,this,"isEofValue"),this.positionValue=this.states.popInt(e,this,"positionValue"),null!=this.dataSource&&this.dataSource.restoreState(e),String.isNullOrEmpty(this.businessObjectGuid)||this.businessObject.restoreState(e),t.Report.Engine.StiDataBandBuilder.prepareGroupResults(this))},Object.defineProperty(b.prototype,"masterComponent",{get:function(){return this._masterComponent},set:function(t){this._masterComponent=t},enumerable:!0,configurable:!0}),b.prototype.convert=function(t,e,i){void 0===i&&(i=!1),y.prototype.convert.call(this,t,e,i),this._columnGaps=e.convertFromHInches(t.convertToHInches(this.columnGaps)),this._columnWidth=e.convertFromHInches(t.convertToHInches(this.columnWidth))},Object.defineProperty(b.prototype,"keepDetailsTogether",{get:function(){return this._keepDetails==i.StiKeepDetails.KeepDetailsTogether},set:function(t){var e=t?i.StiKeepDetails.KeepDetailsTogether:i.StiKeepDetails.None;this._keepDetails!=e&&(this._keepDetails=e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"keepDetails",{get:function(){return this._keepDetails},set:function(t){this._keepDetails!=t&&(this._keepDetails=t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"sort",{get:function(){return this._sort},set:function(t){this._sort=t},enumerable:!0,configurable:!0}),b.prototype.clone=function(t,e){var i=y.prototype.clone.call(this,t,e);return i._dataBandInfo=this.dataBandInfo.clone(),i._masterComponent=null,null!=this._sort?i._sort=this._sort.clone():i._sort=null,null!=this._filters?i._filters=this._filters.clone():i._filters=null,i},Object.defineProperty(b.prototype,"printOnAllPages",{get:function(){return this._printOnAllPages},set:function(t){this._printOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"printIfDetailEmpty",{get:function(){return this._printIfDetailEmpty},set:function(t){this._printIfDetailEmpty=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isDataSourceEmpty",{get:function(){return String.isNullOrEmpty(this.dataSourceName)||null==this.dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dataSource",{get:function(){if(null==this.page||null==this.report||null==this.report.dataSources||null==this.dataSourceName||0==this.dataSourceName.length)return null;return this.report.dataSources.getByName(this.dataSourceName)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dataSourceName",{get:function(){return this._dataSourceName},set:function(t){this._dataSourceName!=t&&(this._dataSourceName=t,String.isNullOrEmpty(t)||(this._businessObjectGuid=null),String.isNullOrEmpty(t)||(this._countData=0))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isBusinessObjectEmpty",{get:function(){return String.isNullOrEmpty(this.businessObjectGuid)||null==this.businessObject},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"businessObject",{get:function(){if(null==this.page||null==this.report||null==this.businessObjectGuid||0==this.businessObjectGuid.length)return null;return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"businessObjectGuid",{get:function(){return this._businessObjectGuid},set:function(t){this._businessObjectGuid!=t&&(this._businessObjectGuid=t,String.isNullOrEmpty(t)||(this.dataSourceName=null))},enumerable:!0,configurable:!0}),b.prototype.first=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!1,this.isBofValue=!0,this.positionValue=0):this.dataSource.first():this.businessObject.first(),t.Report.Engine.StiDataBandBuilder.setDetails(this)},b.prototype.prior=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue<=0?this.isBofValue=!0:this.positionValue--):this.dataSource.prior():this.businessObject.prior(),t.Report.Engine.StiDataBandBuilder.setDetails(this)},b.prototype.next=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue>=this._countData-1?this.isEofValue=!0:this.positionValue++):this.dataSource.next():this.businessObject.next(),t.Report.Engine.StiDataBandBuilder.setDetails(this)},b.prototype.last=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!0,this.isBofValue=!1,this.positionValue=this._countData-1):this.dataSource.last():this.businessObject.last(),t.Report.Engine.StiDataBandBuilder.setDetails(this)},Object.defineProperty(b.prototype,"isEof",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue:this.dataSource.isEof:this.businessObject.isEof},set:function(t){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue=t:this.dataSource.isEof=t:this.businessObject.isEof=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isBof",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue:this.dataSource.isBof:this.businessObject.isBof},set:function(t){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue=t:this.dataSource.isBof=t:this.businessObject.isBof=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"isEmpty",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?0==this.countData:this.dataSource.isEmpty:this.businessObject.isEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"position",{get:function(){if(!this.isBusinessObjectEmpty)return this.businessObject.position;if(!this.isDataSourceEmpty)return this.dataSource.position;return this.positionValue},set:function(t){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.positionValue=t:this.dataSource.position=t:this.businessObject.position=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"count",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this._countData:this.dataSource.count:this.businessObject.count},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dataRelation",{get:function(){if(null==this.page||null==this.report||null==this.report.dictionary||null==this.report.dictionary.relations||null==this.dataRelationName||0==this.dataRelationName.length)return null;return this.report.dictionary.relations.getByName(this.dataRelationName)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"dataRelationName",{get:function(){return this._dataRelationName},set:function(t){this._dataRelationName=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filterMode",{get:function(){return this._filterMode},set:function(t){this._filterMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filterEngine",{get:function(){return this._filterEngine},set:function(t){this._filterEngine=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filterMethodHandler",{get:function(){return this._filterMethodHandler},set:function(t){this._filterMethodHandler=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filters",{get:function(){return this._filters},set:function(t){this._filters=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filter",{get:function(){return 0==this.filters.count&&this.filters.add(new t.Report.Components.StiFilter),this.filters.getByIndex(0).item=i.StiFilterItem.Expression,this.filters.getByIndex(0).expression},set:function(e){0==this.filters.count&&this.filters.add(new t.Report.Components.StiFilter),this.filters.getByIndex(0).item=i.StiFilterItem.Expression,this.filters.getByIndex(0).expression=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filterOn",{get:function(){return this._filterOn},set:function(t){this._filterOn=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"evenStyle",{get:function(){return this.properties.get(b.propertyEvenStyle,String.empty)},set:function(t){this.properties.set(b.propertyEvenStyle,t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"oddStyle",{get:function(){return this.properties.get(b.propertyOddStyle,String.empty)},set:function(t){this.properties.set(b.propertyOddStyle,t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"headerStartColor",{get:function(){return S.fromArgb(239,155,52)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"headerEndColor",{get:function(){return S.fromArgb(239,155,52)},enumerable:!0,configurable:!0}),b.prototype.getHeaderText=function(){var t=this.businessObject;if(null!=t){return this.toString()+"; "+f.get("PropertyMain","BusinessObject")+": "+t.getFullName()}var e=this.toString()+"; "+f.get("PropertyMain","DataSource")+": ";if(null==this.dataSource){if(this.countData>0)return e+this.countData.toString();return e+f.get("Report","NotAssigned")}return e+this.dataSource.toString()},b.prototype.doBookmark=function(){null!=this.report&&y.prototype.doBookmark.call(this)},b.prototype.invokeGroupRendering=function(){if(null!=this.report)for(var t=0,e=this.dataBandInfo.groupHeaders.list;t<e.length;t++){var i=e[t];i.invokeRendering()}},Object.defineProperty(b.prototype,"dataBandInfo",{get:function(){return null==this._dataBandInfo&&(this._dataBandInfo=new i.StiDataBandInfo),this._dataBandInfo},enumerable:!0,configurable:!0}),b.prototype.render=function(){return null},b.prototype.renderMaster=function(){t.Report.Engine.StiBuilder.getBuilder(this.getStiType()).renderMaster(this)},Object.defineProperty(b.prototype,"toolboxPosition",{get:function(){return i.StiComponentToolboxPosition.DataBand},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toolboxCategory",{get:function(){return i.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"priority",{get:function(){return i.StiComponentPriority.DataBand},enumerable:!0,configurable:!0}),b.prototype.getComponentType=function(){if(null==this._masterComponent)return i.StiComponentType.Master;if(null!=this._masterComponent){if(this.page.skip&&this._masterComponent.page!=this.page)return i.StiComponentType.Master;if(this.parent!=this._masterComponent.parent)return i.StiComponentType.Master}return i.StiComponentType.Detail},b.prototype.onBeginRender=function(){},b.prototype.invokeBeginRender=function(){this.onBeginRender();var t=this.events.get(b.eventBeginRender);null!=t&&t(this,r.empty)},Object.defineProperty(b.prototype,"beginRenderEvent",{get:function(){return new u(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(b.eventBeginRender,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),b.prototype.onRendering=function(){},b.prototype.invokeRendering=function(){if(null!=this.report){try{this.onRendering();var e=this.events.get(b.eventRendering);null!=e&&e(this)}catch(t){}t.Report.Engine.StiRenderProvider.StiRenderProviderV2_AddAnchor_Rendering(this,null)}},Object.defineProperty(b.prototype,"renderingEvent",{get:function(){return new l(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(b.eventRendering,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),b.prototype.onEndRender=function(){},b.prototype.invokeEndRender=function(){this.onEndRender();var t=this.events.get(b.eventEndRender);null!=t&&t(this)},Object.defineProperty(b.prototype,"endRenderEvent",{get:function(){return new s(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(b.eventEndRender,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),b.prototype.onGetCollapsed=function(t){},b.prototype.invokeGetCollapsed=function(i){try{this.onGetCollapsed(i),null!=this.report&&this.report.calculationMode==e.StiCalculationMode.Interpretation&&this.collapsed.length>0&&(i.value=t.Report.Engine.StiParser.StiParser.parseTextValue(this.collapsed,this));var r=this.events.get(b.eventGetCollapsed);null!=r&&r(this,i)}catch(i){}},Object.defineProperty(b.prototype,"getCollapsedEvent",{get:function(){return new a(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(b.eventGetCollapsed,o.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"collapsed",{get:function(){return this._collapsed},set:function(t){null!=t&&(this._collapsed=t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rightToLeft",{get:function(){return this.getRightToLeft()},set:function(t){this.setRightToLeft(t)},enumerable:!0,configurable:!0}),b.prototype.getRightToLeft=function(){return this._rightToLeft},b.prototype.setRightToLeft=function(t){this._rightToLeft!=t&&(this._rightToLeft=t)},b.prototype.getColumnWidth=function(){var t=this.columnWidth;if(0==t){if(0==this.columns)return this.width;t=this.width/this.columns-this.columnGaps}return t},Object.defineProperty(b.prototype,"columnGaps",{get:function(){return this._columnGaps},set:function(t){this._columnGaps!=t&&(this._columnGaps=t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"columnWidth",{get:function(){return this._columnWidth},set:function(t){this._columnWidth!=t&&(this._columnWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"columns",{get:function(){return this._columns},set:function(t){this._columns!=t&&(this._columns=t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"minRowsInColumn",{get:function(){return this._minRowsInColumn},set:function(t){this._minRowsInColumn!=t&&(this._minRowsInColumn=t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"columnDirection",{get:function(){return this._columnDirection},set:function(t){this._columnDirection!=t&&(this._columnDirection=t)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"lineThrough",{get:function(){return this._lineThrough},set:function(t){this._lineThrough=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"selectedLine",{get:function(){return this._selectedLine},set:function(t){this._selectedLine=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"resetDataSource",{get:function(){return this._resetDataSource},set:function(t){this._resetDataSource=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"calcInvisible",{get:function(){return this._calcInvisible},set:function(t){this._calcInvisible=t},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"countData",{get:function(){return this._countData},set:function(t){this._countData!=t&&(this._countData=t,t>0&&(this.dataSourceName=String.empty))},enumerable:!0,configurable:!0}),b.prototype.createNew=function(){return new b},b.propertyEvenStyle=Math.random().toString().substr(2),b.propertyOddStyle=Math.random().toString().substr(2),b.eventBeginRender={},b.eventRendering={},b.eventEndRender={},b.eventGetCollapsed={},b}(i.StiDynamicBand);i.StiDataBand=y}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs,n=t.Report.Events.StiEndRenderEvent,o=t.Report.Events.StiRenderingEvent,a=t.Report.Events.StiBeginRenderEvent,s=t.System.Enum,l=t.Base.JsonReportObject.IStiJsonReportObject,u=t.System.Drawing.Color,c=t.System.Drawing.Rectangle,p=function(t){function p(i){void 0===i&&(i=c.empty);var r=t.call(this,i)||this;return r._sizeMode=e.StiEmptySizeMode.AlignFooterToTop,r}return __extends(p,t),p.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiOddEvenStyles,l])},p.prototype.saveToJsonObject=function(i){var r=t.prototype.saveToJsonObject.call(this,i);return r.addPropertyStringNullOfEmpty("EvenStyle",this.evenStyle),r.addPropertyStringNullOfEmpty("OddStyle",this.oddStyle),r.addPropertyJObject("BeginRenderEvent",this.beginRenderEvent.saveToJsonObject(i)),r.addPropertyJObject("RenderingEvent",this.renderingEvent.saveToJsonObject(i)),r.addPropertyJObject("EndRenderEvent",this.endRenderEvent.saveToJsonObject(i)),r.addPropertyEnum("SizeMode",e.StiEmptySizeMode,this.sizeMode,e.StiEmptySizeMode.AlignFooterToTop),r},p.prototype.loadFromJsonObject=function(i){t.prototype.loadFromJsonObject.call(this,i);for(var r=0,l=i.properties();r<l.length;r++){var u=l[r];switch(u.name){case"EvenStyle":this.evenStyle=u.value;break;case"OddStyle":this.oddStyle=u.value;break;case"BeginRenderEvent":var c=new a;c.loadFromJsonObject(u.value),this.beginRenderEvent=c;break;case"RenderingEvent":var c=new o;c.loadFromJsonObject(u.value),this.renderingEvent=c;break;case"EndRenderEvent":var c=new n;c.loadFromJsonObject(u.value),this.endRenderEvent=c;break;case"SizeMode":this._sizeMode=s.parse(e.StiEmptySizeMode,u.value);break}}},p.prototype.loadFromXml=function(i,r){t.prototype.loadFromXml.call(this,i,r);for(var n=0;n<i.childNodes.length;n++){var o=i.childNodes[n];switch(o.nodeName){case"EvenStyle":this.evenStyle=o.textContent;break;case"OddStyle":this.oddStyle=o.textContent;break;case"BeginRenderEvent":break;case"RenderingEvent":break;case"EndRenderEvent":break;case"SizeMode":this._sizeMode=s.parse(e.StiEmptySizeMode,o.textContent);break}}},p.prototype.getHeaderText=function(){return this.toString()},Object.defineProperty(p.prototype,"headerStartColor",{get:function(){return u.fromArgb(186,235,137)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"headerEndColor",{get:function(){return u.fromArgb(186,235,137)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.EmptyBand},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"priority",{get:function(){return e.StiComponentPriority.EmptyBand},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"evenStyle",{get:function(){return this.properties.get(e.StiDataBand.propertyEvenStyle,String.empty)},set:function(t){this.properties.set(e.StiDataBand.propertyEvenStyle,t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"oddStyle",{get:function(){return this.properties.get(e.StiDataBand.propertyOddStyle,String.empty)},set:function(t){this.properties.set(e.StiDataBand.propertyOddStyle,t,String.empty)},enumerable:!0,configurable:!0}),p.prototype.onBeginRender=function(t){},p.prototype.invokeBeginRender=function(){this.onBeginRender(r.empty);var t=this.events.get(p.eventBeginRender);null!=t&&t(this,r.empty)},Object.defineProperty(p.prototype,"beginRenderEvent",{get:function(){return new a(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(p.eventBeginRender,i.create(t.script,this.report))},enumerable:!0,configurable:!0}),p.prototype.onRendering=function(t){},p.prototype.invokeRendering=function(){this.onRendering(r.empty);var t=this.events.get(p.eventRendering);null!=t&&t(this,r.empty)},Object.defineProperty(p.prototype,"renderingEvent",{get:function(){return new o(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(p.eventRendering,i.create(t.script,this.report))},enumerable:!0,configurable:!0}),p.prototype.onEndRender=function(t){},p.prototype.invokeEndRender=function(){this.onEndRender(r.empty);var t=this.events.get(p.eventEndRender);null!=t&&t(this,r.empty)},Object.defineProperty(p.prototype,"endRenderEvent",{get:function(){return new n(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(p.eventEndRender,i.create(t.script,this.report))},enumerable:!0,configurable:!0}),p.prototype.createNew=function(){return new p},Object.defineProperty(p.prototype,"sizeMode",{get:function(){return this._sizeMode},set:function(t){this._sizeMode=t},enumerable:!0,configurable:!0}),p.eventBeginRender={},p.eventRendering={},p.eventEndRender={},p}(e.StiBand);e.StiEmptyBand=p}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.System.Drawing.Color,n=t.System.Drawing.Rectangle,o=function(t){function o(e){void 0===e&&(e=n.empty);var i=t.call(this,e)||this;return i._keepGroupFooterTogether=!0,i}return __extends(o,t),o.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiKeepGroupFooterTogether,i])},o.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyBool("KeepGroupFooterTogether",this.keepGroupFooterTogether,!0),i},o.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"KeepGroupFooterTogether":this._keepGroupFooterTogether=n.value.toBoolean();break}}},o.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"KeepGroupFooterTogether":this._keepGroupFooterTogether=n.textContent.toBoolean();break}}},o.prototype.clone=function(e,i){var r=t.prototype.clone.call(this,e,i);return r._groupFooterBandInfo=this.groupFooterBandInfo.clone(),r},Object.defineProperty(o.prototype,"keepGroupFooterTogether",{get:function(){return this._keepGroupFooterTogether},set:function(t){this._keepGroupFooterTogether!=t&&(this._keepGroupFooterTogether=t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"groupFooterBandInfo",{get:function(){return null==this._groupFooterBandInfo&&(this._groupFooterBandInfo=new e.StiGroupFooterBandInfo),this._groupFooterBandInfo},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"line",{get:function(){if(null!=this.groupFooterBandInfo.groupHeader)return this.groupFooterBandInfo.groupHeader.line;return 1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerStartColor",{get:function(){return r.fromArgb(239,155,52)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerEndColor",{get:function(){return r.fromArgb(239,155,52)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.GroupFooterBand},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),o.prototype.getComponentType=function(){return e.StiComponentType.Detail},Object.defineProperty(o.prototype,"priority",{get:function(){return e.StiComponentPriority.GroupFooterBand},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(e.StiDynamicBand);e.StiGroupFooterBand=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetSummaryExpression"},e}(t.StiEvent);t.StiGetSummaryExpressionEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetValue"},e}(t.StiEvent);t.StiGetGroupConditionEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGetExcelValueEventHandler=new i("sender: Object, e: StiGetExcelValueEventArgs");var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(r);e.StiGetExcelValueEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.Base.Services.StiService,r=t.Base.StiJson,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.System.TimeSpan,a=t.System.DateTime,s=function(i){function s(){var t=null!==i&&i.apply(this,arguments)||this;return t._stringFormat=String.empty,t}return __extends(s,i),s.prototype.implements=function(){return[n]},s.prototype.saveToJsonObject=function(t){var e=new r;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e.addPropertyStringNullOfEmpty("StringFormat",this.stringFormat),e},s.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"StringFormat":this._stringFormat=r.value;break}}},s.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"StringFormat":this._stringFormat=i.textContent;break}}},s.loadFormatFromXml=function(t){if(null!=t.attributes.getNamedItem("type"))switch(t.attributes.getNamedItem("type").value){case"BooleanFormat":var i=new e.StiBooleanFormatService;return i.loadFromXml(t),i;case"CurrencyFormat":var r=new e.StiCurrencyFormatService;return r.loadFromXml(t),r;case"CustomFormat":var n=new e.StiCustomFormatService;return n.loadFromXml(t),n;case"DateFormat":var o=new e.StiDateFormatService;return o.loadFromXml(t),o;case"GeneralFormat":var a=new e.StiGeneralFormatService;return a.loadFromXml(t),a;case"NumberFormat":var s=new e.StiNumberFormatService;return s.loadFromXml(t),s;case"PercentageFormat":var l=new e.StiPercentageFormatService;return l.loadFromXml(t),l;case"TimeFormat":var u=new e.StiTimeFormatService;return u.loadFromXml(t),u}},s.loadFromJsonObjectInternal=function(t){var e=StiOptions.Services.formats,i=t.properties().firstOrDefault(function(t){return"Ident"==t.name}).value,r=e.firstOrDefault(function(t){return t.getStiType().getStiTypeName()==i});return r.loadFromJsonObject(t),r},Object.defineProperty(s.prototype,"position",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"sample",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"nativeFormatString",{get:function(){return"{0}"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isFormatStringFromVariable",{get:function(){if(this.sti_is(e.StiCustomFormatService)&&null!=this.stringFormat){var t=this.stringFormat.trim();return t.length>2&&t.startsWith("{")&&t.endsWith("}")}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"stringFormat",{get:function(){return this._stringFormat},set:function(t){this._stringFormat=t},enumerable:!0,configurable:!0}),s.prototype.format=function(t){return this.format2(this.stringFormat,t)},s.prototype.format2=function(e,i){try{if(null==i)return String.empty;if(String.isNullOrEmpty(e)){if(i.sti_is(Number))return Math.round(i,6).toString();return i.toString()}var r=!1;if(i.sti_is(o)){var n=i.sti_as(o),s=a.today;n.ticks<0&&(n=n.negate(),r=!0),s=new a(s.year,s.month,s.day,n.hours,n.minutes,n.seconds,n.milliseconds),i=s}return String.stiFormat("{0}{1:"+e+"}",r?"-":"",i)}catch(e){return t.System.StiError.showError(e,!1),null==i?String.empty:i.toString()}},s}(i);e.StiFormatService=s}(i=e.TextFormats||(e.TextFormats={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(e){void 0===e&&(e=String.empty);var i=t.call(this)||this;return i.stringFormat=e,i}return __extends(e,t),Object.defineProperty(e.prototype,"sample",{get:function(){return String.empty},enumerable:!0,configurable:!0}),e}(t.StiFormatService);t.StiCustomFormatService=e}(e=t.TextFormats||(t.TextFormats={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.Data.DBNull,r=t.System.DateTime,n=t.System.TimeSpan,o=function(t){function e(e){void 0===e&&(e="t");var i=t.call(this)||this;return i.stringFormat=e,i}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyString("StringFormat",this.stringFormat,"t"),i},Object.defineProperty(e.prototype,"sample",{get:function(){return r.now},enumerable:!0,configurable:!0}),e.prototype.format=function(t){return this.format2(this.stringFormat,t)},e.prototype.format2=function(t,e){if(null==e||e.sti_is(i))return"";if(String.isNullOrEmpty(t)&&(t="H:mm:ss"),e.sti_is(String)&&null!=r.fromString(e.toString())&&(e=r.fromString(e.toString())),e.sti_is(r))return e.sti_as(r).toString(t);if(e.sti_is(n))return e.sti_as(n).toString(t);return e.toString()},e}(e.StiFormatService);e.StiTimeFormatService=o}(i=e.TextFormats||(e.TextFormats={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.Data.DBNull,r=t.System.DateTime,n=t.System.TimeSpan,o=function(t){function e(e,i){void 0===e&&(e="d"),void 0===i&&(i=" ");var r=t.call(this)||this;return r._nullDisplay=" ",r.stringFormat=e,r._nullDisplay=i,r}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyString("StringFormat",this.stringFormat,"d"),i.addPropertyString("NullDisplay",this.nullDisplay," "),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"NullDisplay":this.nullDisplay=n.value;break}}},e.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"NullDisplay":this.nullDisplay=r.textContent;break}}},Object.defineProperty(e.prototype,"sample",{get:function(){return r.now},enumerable:!0,configurable:!0}),e.prototype.format=function(t){return this.format2(this.stringFormat,t)},e.prototype.format2=function(t,e){if(null==e||e.sti_is(i))return this.nullDisplay;if(String.isNullOrEmpty(t))return e.toString();if(e.sti_is(String)&&null!=r.fromString(e.toString())&&(e=r.fromString(e.toString())),e.sti_is(r))return e.sti_as(r).toString(t);if(e.sti_is(n))return e.sti_as(n).toString(t);return""},Object.defineProperty(e.prototype,"nullDisplay",{get:function(){return this._nullDisplay},set:function(t){this._nullDisplay=t},enumerable:!0,configurable:!0}),e}(e.StiFormatService);e.StiDateFormatService=o}(i=e.TextFormats||(e.TextFormats={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.ICloneable,r=t.System.Globalization.NumberFormatInfo,n=t.System.Globalization.CultureInfo,o=t.Report.Components.StiTextFormatState,a=t.System.Enum,s=function(){function t(t,e,i,r,n,o,a,s,l){this.negativePattern=t,this.decimalSeparator=e,this.decimalDigits=i,this.groupSeparator=r,this.groupSize=n,this.useGroupSeparator=o,this.useLocalSetting=a,this.nullDisplay=s,this.states=l}return t.prototype.implements=function(){return[i]},t.prototype.clone=function(){return this.memberwiseClone()},t}(),l=function(t){function e(e,i,r,a,s,l,u,c,p,h){void 0===e&&(e=n.currentCulture.numberFormat.numberNegativePattern),void 0===i&&(i=0),void 0===r&&(r=n.currentCulture.numberFormat.numberDecimalSeparator),void 0===a&&(a=n.currentCulture.numberFormat.numberDecimalDigits),void 0===s&&(s=n.currentCulture.numberFormat.numberGroupSeparator),void 0===l&&(l=n.currentCulture.numberFormat.numberGroupSizes[0]),void 0===u&&(u=!0),void 0===c&&(c=!0),void 0===p&&(p=" "),void 0===h&&(h=o.None);var g=t.call(this)||this;return g.decimalDigits=a,g.decimalSeparator=r,g.groupSeparator=s,g.groupSize=l,g.negativePattern=e,g.useGroupSeparator=u,g.useLocalSetting=c,g.nullDisplay=p,g.state=h,g}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("StringFormat"),i.addPropertyNumber("NegativePattern",this.negativePattern,1),i.addPropertyString("DecimalSeparator",this.decimalSeparator,"."),i.addPropertyNumber("DecimalDigits",this.decimalDigits,2),i.addPropertyString("GroupSeparator",this.groupSeparator),i.addPropertyNumber("GroupSize",this.groupSize,3),i.addPropertyBool("UseGroupSeparator",this.useGroupSeparator,!0),i.addPropertyBool("UseLocalSetting",this.useLocalSetting,!0),i.addPropertyString("NullDisplay",this.nullDisplay," "),i.addPropertyString("State",a.getName(o,this.state),"None"),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"NegativePattern":this.negativePattern=n.value.toNumber();break;case"DecimalSeparator":this.decimalSeparator=n.value;break;case"DecimalDigits":this.decimalDigits=n.value.toNumber();break;case"GroupSeparator":this.groupSeparator=n.value;break;case"GroupSize":this.groupSize=n.value.toNumber();break;case"UseGroupSeparator":this.useGroupSeparator=n.value.toBoolean();break;case"UseLocalSetting":this.useLocalSetting=n.value.toBoolean();break;case"NullDisplay":this.nullDisplay=n.value;break;case"State":this.state=a.parse(o,n.value);break}}},e.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"NegativePattern":this.negativePattern=r.textContent.toNumber();break;case"DecimalSeparator":this.decimalSeparator=r.textContent;break;case"DecimalDigits":this.decimalDigits=r.textContent.toNumber();break;case"GroupSeparator":this.groupSeparator=r.textContent;break;case"GroupSize":this.groupSize=r.textContent.toNumber();break;case"UseGroupSeparator":this.useGroupSeparator=r.textContent.toBoolean();break;case"UseLocalSetting":this.useLocalSetting=r.textContent.toBoolean();break;case"NullDisplay":this.nullDisplay=r.textContent;break;case"State":this.state=a.parse(o,r.textContent);break}}},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return null!=this.bits&&(e.bits=this.bits.clone()),e},Object.defineProperty(e.prototype,"nullDisplay",{get:function(){return null==this.bits?" ":this.bits.nullDisplay},set:function(t){if(" "==t&&null==this.bits)return;null!=this.bits?this.bits.nullDisplay=t:this.bits=new s(this.negativePattern,this.decimalSeparator,this.decimalDigits,this.groupSeparator,this.groupSize,this.useGroupSeparator,this.useLocalSetting,t,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"negativePattern",{get:function(){return null==this.bits?1:this.bits.negativePattern},set:function(t){if(1==t&&null==this.bits)return;null!=this.bits?this.bits.negativePattern=t:this.bits=new s(t,this.decimalSeparator,this.decimalDigits,this.groupSeparator,this.groupSize,this.useGroupSeparator,this.useLocalSetting,this.nullDisplay,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return null==this.bits?".":this.bits.decimalSeparator},set:function(t){if("."==t&&null==this.bits)return;null!=this.bits?this.bits.decimalSeparator=t:this.bits=new s(this.negativePattern,t,this.decimalDigits,this.groupSeparator,this.groupSize,this.useGroupSeparator,this.useLocalSetting,this.nullDisplay,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalDigits",{get:function(){return null==this.bits?2:this.bits.decimalDigits},set:function(t){if(2==t&&null==this.bits)return;null!=this.bits?this.bits.decimalDigits=t:this.bits=new s(this.negativePattern,this.decimalSeparator,t,this.groupSeparator,this.groupSize,this.useGroupSeparator,this.useLocalSetting,this.nullDisplay,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupSeparator",{get:function(){return null==this.bits?" ":this.bits.groupSeparator},set:function(t){if(" "==t&&null==this.bits)return;null!=this.bits?this.bits.groupSeparator=t:this.bits=new s(this.negativePattern,this.decimalSeparator,this.decimalDigits,t,this.groupSize,this.useGroupSeparator,this.useLocalSetting,this.nullDisplay,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupSize",{get:function(){return null==this.bits?3:this.bits.groupSize},set:function(t){if(3==t&&null==this.bits)return;t>9&&(t=9),null!=this.bits?this.bits.groupSize=t:this.bits=new s(this.negativePattern,this.decimalSeparator,this.decimalDigits,this.groupSeparator,t,this.useGroupSeparator,this.useLocalSetting,this.nullDisplay,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useGroupSeparator",{get:function(){return null==this.bits||this.bits.useGroupSeparator},set:function(t){if(t&&null==this.bits)return;null!=this.bits?this.bits.useGroupSeparator=t:this.bits=new s(this.negativePattern,this.decimalSeparator,this.decimalDigits,this.groupSeparator,this.groupSize,t,this.useLocalSetting,this.nullDisplay,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useLocalSetting",{get:function(){return null==this.bits||this.bits.useLocalSetting},set:function(t){if(t&&null==this.bits)return;null!=this.bits?this.bits.useLocalSetting=t:this.bits=new s(this.negativePattern,this.decimalSeparator,this.decimalDigits,this.groupSeparator,this.groupSize,this.useGroupSeparator,t,this.nullDisplay,this.state)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sample",{get:function(){return-1234.123456789},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeFormatString",{get:function(){return"{0:N2}"},enumerable:!0,configurable:!0}),e.prototype.stiEquals=function(t){var e=t;if(null==e)return!1;if(this.nullDisplay!=e.nullDisplay)return!1;if(this.negativePattern!=e.negativePattern)return!1;if(this.decimalDigits!=e.decimalDigits)return!1;if(this.decimalSeparator!=e.decimalSeparator)return!1;if(this.groupSeparator!=e.groupSeparator)return!1;if(this.groupSize!=e.groupSize)return!1;if(this.useGroupSeparator!=e.useGroupSeparator)return!1;if(this.useLocalSetting!=e.useLocalSetting)return!1;if(this.stringFormat!=e.stringFormat)return!1;return!0},Object.defineProperty(e.prototype,"state",{get:function(){return null==this.bits?o.None:this.bits.states},set:function(t){if(t==o.None&&null==this.bits)return;null!=this.bits?this.bits.states=t:this.bits=new s(this.negativePattern,this.decimalSeparator,this.decimalDigits,this.groupSeparator,this.groupSize,this.useGroupSeparator,this.useLocalSetting,this.nullDisplay,t)},enumerable:!0,configurable:!0}),e.prototype.fillLocalSetting=function(t){t.numberDecimalDigits=n.currentCulture.numberFormat.numberDecimalDigits,t.numberDecimalSeparator=n.currentCulture.numberFormat.numberDecimalSeparator,t.numberGroupSeparator=n.currentCulture.numberFormat.numberGroupSeparator,t.numberGroupSizes=n.currentCulture.numberFormat.numberGroupSizes,t.numberNegativePattern=n.currentCulture.numberFormat.numberNegativePattern,t.currencyDecimalDigits=n.currentCulture.numberFormat.currencyDecimalDigits,t.currencyDecimalSeparator=n.currentCulture.numberFormat.currencyDecimalSeparator,t.currencyGroupSeparator=n.currentCulture.numberFormat.currencyGroupSeparator,t.currencyGroupSizes=n.currentCulture.numberFormat.currencyGroupSizes,t.currencyNegativePattern=n.currentCulture.numberFormat.currencyNegativePattern,t.currencyPositivePattern=n.currentCulture.numberFormat.currencyPositivePattern,t.currencySymbol=n.currentCulture.numberFormat.currencySymbol,t.percentDecimalDigits=n.currentCulture.numberFormat.percentDecimalDigits,t.percentDecimalSeparator=n.currentCulture.numberFormat.percentDecimalSeparator,t.percentGroupSeparator=n.currentCulture.numberFormat.percentGroupSeparator,t.percentGroupSizes=n.currentCulture.numberFormat.percentGroupSizes,t.percentNegativePattern=n.currentCulture.numberFormat.percentNegativePattern,t.percentPositivePattern=n.currentCulture.numberFormat.percentPositivePattern,t.percentSymbol=n.currentCulture.numberFormat.percentSymbol,t.perMilleSymbol=n.currentCulture.numberFormat.perMilleSymbol,t.positiveInfinitySymbol=n.currentCulture.numberFormat.positiveInfinitySymbol,t.positiveSign=n.currentCulture.numberFormat.positiveSign,t.NaNSymbol=n.currentCulture.numberFormat.NaNSymbol,t.negativeInfinitySymbol=n.currentCulture.numberFormat.negativeInfinitySymbol,t.negativeSign=n.currentCulture.numberFormat.negativeSign},e.prototype.format=function(t){return this.format2(this.stringFormat,t)},e.prototype.format2=function(t,e){if(null==e)return this.nullDisplay;var i=new r;return this.useLocalSetting?(this.fillLocalSetting(i),(this.state&o.DecimalDigits)>0&&(i.numberDecimalDigits=this.decimalDigits),(this.state&o.DecimalSeparator)>0&&!String.isNullOrEmpty(this.decimalSeparator)&&(i.numberDecimalSeparator=this.decimalSeparator),(this.state&o.GroupSeparator)>0&&!String.isNullOrEmpty(this.groupSeparator)&&(i.numberGroupSeparator=this.groupSeparator),(this.state&o.GroupSize)>0&&(i.numberGroupSizes=[this.groupSize]),(this.state&o.NegativePattern)>0&&(i.numberNegativePattern=this.negativePattern)):(String.isNullOrEmpty(this.decimalSeparator)?i.numberDecimalSeparator=n.currentCulture.numberFormat.numberDecimalSeparator:i.numberDecimalSeparator=this.decimalSeparator,i.numberDecimalDigits=this.decimalDigits,null!=this.groupSeparator&&(i.numberGroupSeparator=this.groupSeparator),i.numberGroupSizes=[this.groupSize],i.numberNegativePattern=this.negativePattern),this.useGroupSeparator||(i.numberGroupSeparator=String.empty),this.formatStr(i,e)},e.prototype.formatStr=function(t,e){var i=0;try{i=parseFloat(e.toString())}catch(t){return e.toString()}if(isNaN(i))return e.toString();var r="",n=i<0,o=Math.abs(i),a=Math.floor(o),s=Math.pow(10,t.numberDecimalDigits),l=Math.round(Math.round(Math.round(o-a,t.numberDecimalDigits+1),t.numberDecimalDigits)*s);l>=s&&(a++,l=0);var u=a.toString();if(t.numberGroupSizes[0]>0&&this.useGroupSeparator){var c=u.length-t.numberGroupSizes[0];while(c>=0)r=(c>0?t.numberGroupSeparator:"")+u.substr(c,t.numberGroupSizes[0])+r,c-=t.numberGroupSizes[0];c<0&&(r=u.substring(0,c+t.numberGroupSizes[0])+r)}else r=u;if(t.numberDecimalDigits>0){u=l.toString();while(u.length<t.numberDecimalDigits)u="0"+u;r+=t.numberDecimalSeparator+u}if(n)switch(t.numberNegativePattern){case 0:r="("+r+")";break;case 2:r=t.negativeSign+" "+r;break;case 3:r+=t.negativeSign;break;case 4:r=r+" "+t.negativeSign;break;default:r=t.negativeSign+r;break}return r},e}(e.StiFormatService);e.StiNumberFormatService=l}(i=e.TextFormats||(e.TextFormats={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(i){var r=t.System.Data.DBNull,n=t.System.Globalization.NumberFormatInfo,o=t.System.Globalization.CultureInfo,a=function(t){function i(i,r,n,a,s,l,u,c,p,h,g,m){void 0===i&&(i=o.currentCulture.numberFormat.currencyPositivePattern),void 0===r&&(r=o.currentCulture.numberFormat.currencyNegativePattern),void 0===n&&(n=0),void 0===a&&(a=o.currentCulture.numberFormat.currencyDecimalSeparator),void 0===s&&(s=o.currentCulture.numberFormat.currencyDecimalDigits),void 0===l&&(l=o.currentCulture.numberFormat.currencyGroupSeparator),void 0===u&&(u=o.currentCulture.numberFormat.currencyGroupSizes[0]),void 0===c&&(c=o.currentCulture.numberFormat.currencySymbol),void 0===p&&(p=!0),void 0===h&&(h=!0),void 0===g&&(g=" "),void 0===m&&(m=e.StiTextFormatState.None);var d=t.call(this)||this;return d._positivePattern=1,d._symbol="$",d.decimalDigits=s,d.decimalSeparator=a,d.groupSeparator=l,d.groupSize=u,d.negativePattern=r,d.positivePattern=i,d.symbol=c,d.useGroupSeparator=p,d.useLocalSetting=h,d.nullDisplay=g,d.state=m,d}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("StringFormat"),i.addPropertyNumberNoDefaultValue("PositivePattern",this.positivePattern),i.addPropertyString("Symbol",this.symbol,"$"),i},i.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"PositivePattern":this.positivePattern=n.value.toNumber();break;case"Symbol":this.symbol=n.value;break}}},i.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"PositivePattern":this.positivePattern=r.textContent.toNumber();break;case"Symbol":this.symbol=r.textContent;break}}},Object.defineProperty(i.prototype,"positivePattern",{get:function(){return this._positivePattern},set:function(t){this._positivePattern=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"symbol",{get:function(){return this._symbol},set:function(t){this._symbol=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nativeFormatString",{get:function(){return"{0:C2}"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sample",{get:function(){return-1234.12345679},enumerable:!0,configurable:!0}),i.prototype.stiEquals=function(e){var i=e;if(null==i)return!1;if(!t.prototype.stiEquals.call(this,i))return!1;if(this.positivePattern!=i.positivePattern)return!1;if(this.symbol!=i.symbol)return!1;return!0},i.prototype.format=function(t){return this.format2(this.stringFormat,t)},i.prototype.format2=function(t,i){if(null==i)return this.nullDisplay;if(null==i||i.sti_is(r))return this.nullDisplay;var a=new n;return this.useLocalSetting?(this.fillLocalSetting(a),(this.state&e.StiTextFormatState.DecimalDigits)>0&&(a.currencyDecimalDigits=this.decimalDigits),(this.state&e.StiTextFormatState.DecimalSeparator)>0&&!String.isNullOrEmpty(this.decimalSeparator)&&(a.currencyDecimalSeparator=this.decimalSeparator),(this.state&e.StiTextFormatState.GroupSeparator)>0&&!String.isNullOrEmpty(this.groupSeparator)&&(a.currencyGroupSeparator=this.groupSeparator),(this.state&e.StiTextFormatState.GroupSize)>0&&(a.currencyGroupSizes=[this.groupSize]),(this.state&e.StiTextFormatState.NegativePattern)>0&&(a.currencyNegativePattern=this.negativePattern),(this.state&e.StiTextFormatState.PositivePattern)>0&&(a.currencyPositivePattern=this.positivePattern),(this.state&e.StiTextFormatState.CurrencySymbol)>0&&(a.currencySymbol=this.symbol)):(String.isNullOrEmpty(this.decimalSeparator)?a.currencyDecimalSeparator=o.currentCulture.numberFormat.currencyDecimalSeparator:a.currencyDecimalSeparator=this.decimalSeparator,a.currencyDecimalDigits=this.decimalDigits,null!=this.groupSeparator&&(a.currencyGroupSeparator=this.groupSeparator),a.currencyGroupSizes=[this.groupSize],a.currencyPositivePattern=this.positivePattern,a.currencyNegativePattern=this.negativePattern,null!=this.symbol&&(a.currencySymbol=this.symbol)),this.useGroupSeparator||(a.currencyGroupSeparator=String.empty),this.formatStr(a,i)},i.prototype.formatStr=function(t,e){var i=0;try{i=parseFloat(e.toString())}catch(t){return e.toString()}if(isNaN(i))return e.toString();var r="",n=Math.abs(i),o=i<0,a=Math.floor(n),s=Math.pow(10,t.currencyDecimalDigits),l=Math.round(Math.round(Math.round(n-a,t.currencyDecimalDigits+1),t.currencyDecimalDigits)*s);l>=s&&(a++,l=0);var u=a.toString();if(t.currencyGroupSizes[0]>0&&this.useGroupSeparator){var c=u.length-t.currencyGroupSizes[0];while(c>=0)r=(c>0?t.currencyGroupSeparator:"")+u.substr(c,t.currencyGroupSizes[0])+r,c-=t.currencyGroupSizes[0];c<0&&(r=u.substring(0,c+t.currencyGroupSizes[0])+r)}else r=u;if(t.currencyDecimalDigits>0){u=l.toString();while(u.length<t.currencyDecimalDigits)u="0"+u;r+=t.currencyDecimalSeparator+u}if(o)switch(t.currencyNegativePattern){case 0:r="("+t.currencySymbol+r+")";break;case 1:r="-"+t.currencySymbol+r;break;case 2:r=t.currencySymbol+"-"+r;break;case 3:r=t.currencySymbol+r+"-";break;case 4:r="("+r+t.currencySymbol+")";break;case 6:r=r+"-"+t.currencySymbol;break;case 7:r=r+t.currencySymbol+"-";break;case 8:r="-"+r+" "+t.currencySymbol;break;case 9:r=r+" "+t.currencySymbol+"-";break;case 10:r=t.currencySymbol+" "+r+"-";break;case 11:r=t.currencySymbol+" "+"-"+r;break;case 12:r=r+"- "+t.currencySymbol;break;case 13:r="("+t.currencySymbol+" "+r+")";break;case 14:r="("+r+" "+t.currencySymbol+")";break;case 15:r="("+t.currencySymbol+" "+r+")";break;case 16:r="("+r+" "+t.currencySymbol+")";break;default:r="-"+r+t.currencySymbol;break}else switch(t.currencyPositivePattern){case 0:r=t.currencySymbol+r;break;case 1:r+=t.currencySymbol;break;case 2:r=t.currencySymbol+" "+r;break;case 3:r=r+" "+t.currencySymbol;break}return r},i}(i.StiNumberFormatService);i.StiCurrencyFormatService=a}(i=e.TextFormats||(e.TextFormats={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(i){var r=t.System.Data.DBNull,n=t.System.Globalization.NumberFormatInfo,o=t.System.Globalization.CultureInfo,a=function(t){function i(i,r,n,a,s,l,u,c,p,h,g,m){void 0===i&&(i=o.currentCulture.numberFormat.percentPositivePattern),void 0===r&&(r=o.currentCulture.numberFormat.percentNegativePattern),void 0===n&&(n=0),void 0===a&&(a=o.currentCulture.numberFormat.percentDecimalSeparator),void 0===s&&(s=o.currentCulture.numberFormat.percentDecimalDigits),void 0===l&&(l=o.currentCulture.numberFormat.percentGroupSeparator),void 0===u&&(u=o.currentCulture.numberFormat.percentGroupSizes[0]),void 0===c&&(c=o.currentCulture.numberFormat.percentSymbol),void 0===p&&(p=!0),void 0===h&&(h=!0),void 0===g&&(g=" "),void 0===m&&(m=e.StiTextFormatState.None);var d=t.call(this)||this;return d.decimalDigits=s,d.decimalSeparator=a,d.groupSeparator=l,d.groupSize=u,d.negativePattern=r,d.positivePattern=i,d.symbol=c,d.useGroupSeparator=p,d.useLocalSetting=h,d.nullDisplay=g,d.state=m,d}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("StringFormat"),i},i.prototype.format=function(t){return this.format2(this.stringFormat,t)},i.prototype.format2=function(t,i){if(null==i||i.sti_is(r))return this.nullDisplay;var a=new n;return this.useLocalSetting?(this.fillLocalSetting(a),(this.state&e.StiTextFormatState.DecimalDigits)>0&&(a.percentDecimalDigits=this.decimalDigits),(this.state&e.StiTextFormatState.DecimalSeparator)>0&&!String.isNullOrEmpty(this.decimalSeparator)&&(a.percentDecimalSeparator=this.decimalSeparator),(this.state&e.StiTextFormatState.GroupSeparator)>0&&!String.isNullOrEmpty(this.groupSeparator)&&(a.percentGroupSeparator=this.groupSeparator),(this.state&e.StiTextFormatState.GroupSize)>0&&(a.percentGroupSizes=[this.groupSize]),(this.state&e.StiTextFormatState.NegativePattern)>0&&(a.percentNegativePattern=this.negativePattern),(this.state&e.StiTextFormatState.PositivePattern)>0&&(a.percentPositivePattern=this.positivePattern),(this.state&e.StiTextFormatState.PercentageSymbol)>0&&(a.percentSymbol=this.symbol)):(String.isNullOrEmpty(this.decimalSeparator)?a.percentDecimalSeparator=o.currentCulture.numberFormat.percentDecimalSeparator:a.percentDecimalSeparator=this.decimalSeparator,a.percentDecimalDigits=this.decimalDigits,a.percentGroupSeparator=this.groupSeparator,a.percentGroupSizes=[this.groupSize],a.percentPositivePattern=this.positivePattern,a.percentNegativePattern=this.negativePattern,a.percentSymbol=this.symbol),this.useGroupSeparator||(a.percentGroupSeparator=String.empty),this.formatStr(a,i)},i.prototype.formatStr=function(t,e){var i=0;try{i=parseFloat(e.toString())}catch(t){return e.toString()}if(isNaN(i))return e.toString();var r="";i*=100;var n=i<0,o=Math.abs(i),a=Math.floor(o),s=Math.pow(10,t.percentDecimalDigits),l=Math.round(Math.round(Math.round(o-a,t.percentDecimalDigits+1),t.percentDecimalDigits)*s);l>=s&&(a++,l=0);var u=a.toString();if(t.percentGroupSizes[0]>0&&this.useGroupSeparator){var c=u.length-t.percentGroupSizes[0];while(c>=0)r=(c>0?t.percentGroupSeparator:"")+u.substr(c,t.percentGroupSizes[0])+r,c-=t.percentGroupSizes[0];c<0&&(r=u.substring(0,c+t.percentGroupSizes[0])+r)}else r=u;if(t.percentDecimalDigits>0){u=l.toString();while(u.length<t.percentDecimalDigits)u="0"+u;r+=t.percentDecimalSeparator+u}if(n)switch(t.percentNegativePattern){case 0:r="-"+r+" "+t.percentSymbol;break;case 2:r="-"+t.percentSymbol+r;break;default:r="-"+r+t.percentSymbol;break}else switch(t.percentPositivePattern){case 0:r=r+" "+t.percentSymbol;break;case 2:r=t.percentSymbol+r;break;default:r+=t.percentSymbol;break}return r},i}(i.StiCurrencyFormatService);i.StiPercentageFormatService=a}(i=e.TextFormats||(e.TextFormats={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){var e=t.call(this)||this;return e.stringFormat=String.empty,e}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("StringFormat"),i},Object.defineProperty(e.prototype,"sample",{get:function(){return""},enumerable:!0,configurable:!0}),e.prototype.stiEquals=function(t){if(null==t)return!1;return!0},e.default=new e,e}(t.StiFormatService);t.StiGeneralFormatService=e}(e=t.TextFormats||(t.TextFormats={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetValue"},e}(t.StiEvent);t.StiGetValueEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGetValueEventHandler=new i("sender: Object, e: StiGetValueEventArgs");var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(r);e.StiGetValueEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiEditable="IStiEditable"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiText="IStiText"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Events.StiGetValueEventHandler,n=t.Report.Events.StiGetExcelValueEventArgs,o=t.Report.Events.StiGetValueEvent,a=t.System.Enum,s=t.Report.Components.IStiEditable,l=t.Base.Drawing.StiPenStyle,u=t.Report.Events.StiGetValueEventArgs,c=t.Report.Events.StiValueEventArgs,p=t.System.Drawing.Rectangle,h=t.Report.Expressions.StiExpression,g=t.Report.Components.TextFormats.StiCurrencyFormatService,m=function(m){function d(t,e){void 0===t&&(t=p.empty),void 0===e&&(e=!1);var i=m.call(this)||this;return i._linesOfUnderline=l.None,i._hideZeros=!1,i._editable=!1,i._text=String.empty,i._totalValueHelp=null,e||i.construct(),i}return __extends(d,m),d.prototype.implements=function(){return d.ImplementsStiSimpleText||(d.ImplementsStiSimpleText=m.prototype.implements.call(this).concat([i.IStiText,s])),d.ImplementsStiSimpleText},d.prototype.saveToJsonObject=function(t){var e=m.prototype.saveToJsonObject.call(this,t);return e.addPropertyStringNullOfEmpty("GlobalizedName",this.globalizedName),e.addPropertyEnum("LinesOfUnderline",l,this.linesOfUnderline,l.None),e.addPropertyBool("HideZeros",this.hideZeros),e.addPropertyEnum("ProcessingDuplicates",i.StiProcessingDuplicatesType,this.processingDuplicates,i.StiProcessingDuplicatesType.None),e.addPropertyNumber("MaxNumberOfLines",this.maxNumberOfLines),e.addPropertyBool("OnlyText",this.onlyText),e.addPropertyBool("Editable",this.editable),e.addPropertyBool("ProcessAtEnd",this.processAtEnd),e.addPropertyEnum("ProcessAt",i.StiProcessAt,this.processAt,i.StiProcessAt.None),e.addPropertyJObject("Text",new h(this.text).saveToJsonObject(t)),e.addPropertyJObject("GetValueEvent",this.getValueEvent.saveToJsonObject(t)),e.addPropertyStringNullOfEmpty("TotalValueHelp",this.totalValueHelp),e},d.prototype.loadFromJsonObject=function(t){m.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"GlobalizedName":this.globalizedName=n.value;break;case"LinesOfUnderline":this._linesOfUnderline=a.parse(l,n.value);break;case"HideZeros":this._hideZeros=n.value.toBoolean();break;case"ProcessingDuplicates":this.processingDuplicates=a.parse(i.StiProcessingDuplicatesType,n.value);break;case"MaxNumberOfLines":this.maxNumberOfLines=n.value.toNumber();break;case"OnlyText":this.onlyText=n.value.toBoolean();break;case"Editable":this._editable=n.value.toBoolean();break;case"ProcessAtEnd":this.processAtEnd=n.value.toBoolean();break;case"ProcessAt":this.processAt=a.parse(i.StiProcessAt,n.value);break;case"Text":var s=new h;s.loadFromJsonObject(n.value),this._text=s.value;break;case"GetValueEvent":var u=new o;u.loadFromJsonObject(n.value),this.getValueEvent=u;break;case"TotalValueHelp":this._totalValueHelp=n.value;break}}},d.prototype.loadFromXml=function(t,e){m.prototype.loadFromXml.call(this,t,e);for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];switch(n.nodeName){case"GlobalizedName":this.globalizedName=n.textContent;break;case"LinesOfUnderline":this._linesOfUnderline=a.parse(l,n.textContent);break;case"HideZeros":this._hideZeros=n.textContent.toBoolean();break;case"ProcessingDuplicates":this.processingDuplicates=a.parse(i.StiProcessingDuplicatesType,n.textContent);break;case"MaxNumberOfLines":this.maxNumberOfLines=n.textContent.toNumber();break;case"OnlyText":this.onlyText=n.textContent.toBoolean();break;case"Editable":this._editable=n.textContent.toBoolean();break;case"ProcessAtEnd":this.processAtEnd=n.textContent.toBoolean();break;case"ProcessAt":this.processAt=a.parse(i.StiProcessAt,n.textContent);break;case"Text":var o=new h;o.loadFromXml(n),this._text=o.value;break;case"GetValueEvent":break;case"TotalValueHelp":this._totalValueHelp=n.textContent;break}}},Object.defineProperty(d.prototype,"globalizedName",{get:function(){return this.properties.get(d.propertyGlobalizedName,String.empty)},set:function(t){this.properties.set(d.propertyGlobalizedName,t,String.empty)},enumerable:!0,configurable:!0}),d.prototype.clone=function(t){var e=m.prototype.clone.call(this,t);return null!=this._text?e._text=this._text:e._text=null,e},d.prototype.memberwiseClone=function(){var t=m.prototype.memberwiseClone.call(this);return t._editable=this._editable,t._hideZeros=this._hideZeros,t._linesOfUnderline=this._linesOfUnderline,t._text=this._text,t._textValue=this._textValue,t._totalValueHelp=this._totalValueHelp,t},d.prototype.getTextWithoutZero=function(e){if(!this.hideZeros)return e;if("0"==e)return this.canShrink?"":" ";if(null==e||0==e.trim().length)return e;var r=t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator,n=e.trim();try{if(-1!=String.indexOfAny(n,["1","2","3","4","5","6","7","8","9"]))return e;if(-1==n.indexOf("0"))return e;var o="$";this.sti_is(i.StiText)&&this.sti_as(i.StiText).textFormat.sti_is(g)&&(o=this.sti_as(i.StiText).textFormat.symbol),n.startsWith(o)&&(n=n.substr(o.length)),n.endsWith(o)&&(n=n.substr(0,n.length-o.length)),n=n.replaceAll(".",",").replaceAll(",",r);var a=parseInt(n);if(0==a)return this.canShrink?"":" "}catch(e){t.System.StiError.showError(e.message,!1),n=n.replaceAll("%",String.empty);var a=parseInt(n);if(null!=a&&0==a)return this.canShrink?"":" "}return e},d.prototype.setText=function(e,r){void 0===e&&(e=null),void 0===r&&(r=null);var n=null,o=null;if(null!=this._text){var a=this.name;null!=o&&(a+="Excel");var s=this.report.totals.get(a);if(null!=s&&s.count>0){for(var l=0,u=s;l<u.length;l++){var c=u[l],p=c.pageIndex;if(null!=this.report.engine&&(this.report.engine.indexPageForPageTotal=p-1),p--,this.report.renderedPages.cacheMode&&p<this.report.renderedPages.count){var h=this.report.renderedPages.getByIndex(p);if(this.report.renderedPages.getPage(this.page),this.report.renderedPages.isNotSavedPage(this.page)){this.setTextTo(c.textBox,c,e,r);continue}for(var g=h.getComponents(),m=0,S=g.list;m<S.length;m++){var f=S[m],y=f.sti_as(d);null!=y&&f.name==this.name&&null==y.totalValueHelp&&this.setTextTo(f,c,e,r)}this.report.renderedPages.markPageAsNotSaved(h)}else this.setTextTo(c.textBox,c,e,r)}s.clear()}else if(null!=r)this._text=r;else try{null!=n&&(this._text=n(this)),null!=o&&(this.sti_as(i.StiText).excelDataValue=o(this))}catch(e){t.System.StiError.showError(e.message,!1)}}null==o&&(this._textValue=this.processText(this.getTextWithoutZero(this._text)))},d.prototype.setTextTo=function(r,o,a,s){var l=r.sti_as(i.IStiText);if(null!=l){var p=null,h=null;r.totalValueHelp="1";var g=this.report.pageNumber,m=new e.StiRuntimeVariables(this.report);o.setVariables(this.report);var d=String.empty,S="-",f=!0;if(null!=this.report&&(f=this.report.calculationMode==e.StiCalculationMode.Compilation),null!=s)this._text=s;else{if(f){if(null!=p)try{d=p(r)}catch(e){t.System.StiError.showError(e.message,!1)}}else try{var y=r.sti_as(i.StiText),b=null!=y&&null!=y.excelValue&&y.excelValue.length>0,C=y.text;this.report.totals.contains("#%#"+r.name)&&(C=this.report.totals.get("#%#"+r.name));var v=!1,I={ref:v},A=t.Report.Engine.StiParser.StiParser.parseTextValue(C,this,y,I,!0);v=I.ref,d=null!=y&&null!=y.format&&"G"!=y.format?b?y.textFormat.format(A):y.textFormat.format(this.report.checkExcelValue(r,A)):this.report.toString(r,A,!b)}catch(e){t.System.StiError.showError(String.stiFormat("Expression in Text property of '{0}' can't be evaluated! {1}",this.name,e.message),!1)}if(null!=h)try{S=h(r)}catch(e){t.System.StiError.showError(String.stiFormat("Expression in Text property of '{0}' can't be evaluated! {1}",this.name,e.message),!1)}}if(m.setVariables(this.report),this.report.pageNumber=g,f){if(null!=p){var w=new u;w.value=d,l.invokeGetValue(l,w),w.storeToPrinted&&(String.isNullOrEmpty(w.value)||w.value.startsWith("#%#"))&&(w.value=d);var T=new c(w.value);this.invokeTextProcess(r,T);var B=this.processText(this.getTextWithoutZero(T.value));l.setTextInternal(B)}}else{var w=new u;w.value=d,l.invokeGetValue(l,w),(w.storeToPrinted&&String.isNullOrEmpty(w.value)||w.value.startsWith("#%#"))&&(w.value=d);var T=new c(w.value);this.invokeTextProcess(r,T);var B=this.processText(this.getTextWithoutZero(T.value));l.setTextInternal(B)}if(null!=h){var w=new n;w.value=S,l.invokeGetExcelValue(l,w),w.storeToPrinted&&(String.isNullOrEmpty(w.value)||w.value.startsWith("#%#"))&&(w.value=S),l.excelDataValue=w.value}}},Object.defineProperty(d.prototype,"linesOfUnderline",{get:function(){return this._linesOfUnderline},set:function(t){this._linesOfUnderline=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"linesOfUnderlining",{get:function(){return this.linesOfUnderline!=l.None},set:function(t){this.linesOfUnderline=t?l.Solid:l.None},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hideZeros",{get:function(){return this._hideZeros},set:function(t){this._hideZeros=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"mergeDuplicates",{get:function(){return this.processingDuplicates==i.StiProcessingDuplicatesType.Merge},set:function(t){this.processingDuplicates=i.StiProcessingDuplicatesType.Merge},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"processingDuplicates",{get:function(){return this.properties.get(d.propertyProcessingDuplicates,i.StiProcessingDuplicatesType.None)},set:function(t){this.properties.set(d.propertyProcessingDuplicates,t,i.StiProcessingDuplicatesType.None)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"maxNumberOfLines",{get:function(){return this.properties.getNumber(d.propertyMaxNumberOfLines,0)},set:function(t){this.properties.setNumber(d.propertyMaxNumberOfLines,t,0)},enumerable:!0,configurable:!0}),d.prototype.processText=function(t){return t},Object.defineProperty(d.prototype,"onlyText",{get:function(){return this.properties.getBool(d.propertyOnlyText,!1)},set:function(t){this.properties.setBool(d.propertyOnlyText,t,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"editable",{get:function(){return this._editable},set:function(t){this._editable=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"processAtEnd",{get:function(){return this.processAt==i.StiProcessAt.EndOfReport},set:function(t){this.processAt=t?i.StiProcessAt.EndOfReport:i.StiProcessAt.None},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"processAt",{get:function(){return this.properties.get(d.propertyProcessAt,i.StiProcessAt.None)},set:function(t){this.properties.set(d.propertyProcessAt,t,i.StiProcessAt.None)},enumerable:!0,configurable:!0}),d.prototype.invokeRenderTo=function(t){},Object.defineProperty(d.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!0,configurable:!0}),d.prototype.getTextInternal=function(){return this.text},d.prototype.setTextInternal=function(t){this.text=t},Object.defineProperty(d.prototype,"textValue",{get:function(){return this._textValue},set:function(t){this._textValue!=t&&(this._textValue=t)},enumerable:!0,configurable:!0}),d.prototype.onGetValue=function(t){},d.prototype.invokeGetValue=function(r,n){try{if(this.onGetValue(n),this.report.calculationMode==e.StiCalculationMode.Interpretation){var o=r,a=null!=o&&!String.isNullOrEmpty(o.excelValue),s=!1,l=null;if(o.onlyText)l=o.text;else{var u=this.sti_as(i.StiText);if(null==u||u.type!=i.StiSystemTextType.DataColumn||String.isNullOrEmpty(u.nullValue)){var c={ref:s};l=t.Report.Engine.StiParser.StiParser.parseTextValue(o.text,o,null,c,!1),s=c.ref}else{var p=o.text;if(p.startsWith("{")&&p.endsWith("}")&&p.length>2)if(p=p.substr(1,p.length-2),e.StiNullValuesHelper.isNull(this.report,p))l=u.nullValue;else{var c={ref:s};l=t.Report.Engine.StiParser.StiParser.parseTextValue(o.text,o,null,c,!1),s=c.ref}}}s&&(n.storeToPrinted=!0,l="#%#"+o.text),null!=o&&null!=o.format&&"G"!=o.format?n.value=a?o.textFormat.format2(o.textFormat.stringFormat,l):o.textFormat.format2(o.textFormat.stringFormat,this.report.checkExcelValue(r,l)):n.value=this.report.toString(r,l,!a)}var h=this.events.get(d.eventGetValue);if(null!=h)try{h(r,n)}catch(n){}}catch(e){var g=String.stiFormat("Expression in Text property of '{0}' can't be evaluated! {1}",this.name,e.message);t.System.StiError.showError(g,!1),this.report.writeToReportRenderingMessages(g)}},d.prototype.checkDuplicates=function(e,r){try{var n=e,o=this.processingDuplicates;if(o==i.StiProcessingDuplicatesType.BasedOnValueAndTagMerge||o==i.StiProcessingDuplicatesType.BasedOnValueAndTagHide||o==i.StiProcessingDuplicatesType.BasedOnValueRemoveText){var a=o==i.StiProcessingDuplicatesType.BasedOnValueAndTagMerge||o==i.StiProcessingDuplicatesType.BasedOnValueAndTagHide?t.System.Convert.toString(n.tagValue):null;this.report.engine.checkForDuplicate(this.name,r.value,a)&&(r.value=String.empty)}if(o==i.StiProcessingDuplicatesType.GlobalBasedOnValueAndTagMerge||o==i.StiProcessingDuplicatesType.GlobalBasedOnValueAndTagHide||o==i.StiProcessingDuplicatesType.GlobalBasedOnValueRemoveText){var a=o==i.StiProcessingDuplicatesType.GlobalBasedOnValueAndTagMerge||o==i.StiProcessingDuplicatesType.GlobalBasedOnValueAndTagHide?t.System.Convert.toString(n.tagValue):null;this.report.engine.checkForDuplicate(String.stiFormat("{0}_{1}",this.left,this.width),r.value,a)&&(r.value=String.empty)}}catch(r){}},Object.defineProperty(d.prototype,"getValueEvent",{get:function(){return new o(this)},set:function(t){t.set(this,t.script),this.events.set(d.eventGetValue,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),d.prototype.onTextProcess=function(t){},d.prototype.invokeTextProcess=function(i,r){try{this.onTextProcess(r);var n=!0;if(null!=this.report&&(n=this.report.calculationMode==e.StiCalculationMode.Compilation),n){var o=this.events.get(d.eventTextProcess);if(null!=o)try{o(i,r)}catch(r){}}else{var o=this.events.get(d.eventTextProcess);if(null!=o)try{o(i,r)}catch(r){}if(null!=this.report&&null!=this.report.engine){var a=this.report.engine.parserConversionStore.get("*StiConditionExpression*"+this.name);null!=a&&(this.report.engine.lastInvokeTextProcessValueEventArgsValue=r.value,this.applyConditionsAssignExpression(i,a),this.sti_is(t.Report.CrossTab.StiCrossCell)&&this.applyConditions(i,a))}}}catch(e){t.System.StiError.showError(e.message,!1),null!=this.report&&this.report.writeToReportRenderingMessages(this.name+" InvokeTextProcess error: "+e.message)}},d.prototype.applyConditionsAssignExpression=function(e,i){if(null==i)return;for(var r=0,n=i;r<n.length;r++){var o=n[r],a=o.key;if(a.canAssignExpression&&null!=a.assignExpression&&a.assignExpression.trim().length>0){var s=t.Report.Engine.StiParser.StiParser.parseTextValue(o.value,this,e);if(s.sti_is(Boolean)&&s.toBoolean()){var l=t.Report.Engine.StiParser.StiParser.parseTextValue("{"+a.assignExpression+"}",this,e);e.textValue=this.report.toString2(l)}}}},Object.defineProperty(d.prototype,"totalValueHelp",{get:function(){return this._totalValueHelp},set:function(t){this._totalValueHelp=t},enumerable:!0,configurable:!0}),d.prototype.construct=function(){m.prototype.construct.call(this)},d.propertyGlobalizedName=Math.random().toString().substr(2),d.propertyProcessingDuplicates=Math.random().toString().substr(2),d.propertyMaxNumberOfLines=Math.random().toString().substr(2),d.propertyOnlyText=Math.random().toString().substr(2),d.propertyProcessAt=Math.random().toString().substr(2),d.eventGetValue={},d.eventTextProcess={},d}(i.StiComponent);i.StiSimpleText=m}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetExcelValue"},e}(t.StiEvent);t.StiGetExcelValueEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Events.StiGetExcelValueEventHandler,n=t.Report.Events.StiGetExcelValueEvent,o=t.Report.Components.IStiEditable,a=t.System.Enum,s=t.Base.StiJsonSaveMode,l=t.System.Drawing.Font,u=t.Base.Drawing.StiTextHorAlignment,c=t.Base.Drawing.StiVertAlignment,p=t.Base.Drawing.StiBorder,h=t.Base.Drawing.StiBrush,g=t.Base.Drawing.StiSolidBrush,m=t.System.Drawing.Color,d=t.Base.Drawing.StiTextOptions,S=t.Report.Components.TextFormats.StiFormatService,f=t.Report.Components.TextFormats.StiGeneralFormatService,y=t.Report.Components.TextFormats.StiPercentageFormatService,b=t.Report.Components.TextFormats.StiCurrencyFormatService,C=t.Report.Components.TextFormats.StiDateFormatService,v=t.Report.Components.TextFormats.StiNumberFormatService,I=t.Report.Components.TextFormats.StiTimeFormatService,A=t.Report.Components.TextFormats.StiCustomFormatService,w=t.Report.Events.StiGetExcelValueEventArgs,T=t.System.Drawing.Rectangle,B=t.System.Drawing.Size,R=t.Base.Drawing.StiAdvancedBorder,P=t.Base.StiJsonReportObjectHelper,F=t.Base.Drawing.StiTextRenderer,x=t.Base.Drawing.StiPenStyle,D=function(D){function k(t,e){void 0===t&&(t=T.empty),void 0===e&&(e=!1);var i=D.call(this,t)||this;return i._horAlignment=u.Left,i._vertAlignment=c.Top,i._font=new l("Arial",8),i._border=new p,i._brush=new g(m.transparent),i._textBrush=new g(m.black),i._textFormat=null,i._format=String.empty,i._textOptions=new d,e||i.construct(),i}return __extends(k,D),k.prototype.implements=function(){return k.ImplementsStiText||(k.ImplementsStiText=D.prototype.implements.call(this).concat([i.IStiTextOptions,i.IStiAutoWidth,i.IStiTextHorAlignment,i.IStiVertAlignment,i.IStiBorder,i.IStiFont,i.IStiBrush,i.IStiTextBrush,i.IStiBreakable,e.IStiGlobalizationProvider,o])),k.ImplementsStiText},k.prototype.saveToJsonObject=function(t){var e=D.prototype.saveToJsonObject.call(this,t);return null!=this.indicator&&e.addPropertyJObject("Indicator",this.indicator.saveToJsonObject(t)),e.addPropertyBool("CanBreak",this.canBreak),e.addPropertyBool("AutoWidth",this.autoWidth),e.addPropertyStringNullOfEmpty("RenderTo",this.renderTo),e.addPropertyEnum("HorAlignment",u,this.horAlignment,u.Left),e.addPropertyEnum("VertAlignment",c,this.vertAlignment,c.Top),e.addPropertyStringNullOfEmpty("Font",P.Serialize.fontDefault(this.font)),e.addPropertyStringNullOfEmpty("Border",P.Serialize.jBorder(this.border)),e.addPropertyStringNullOfEmpty("Brush",P.Serialize.jBrush(this.brush)),e.addPropertyStringNullOfEmpty("TextBrush",P.Serialize.jBrush(this.textBrush)),e.addPropertyJObject("TextOptions",this.textOptions.saveToJsonObject()),e.addPropertyJObject("GetExcelValueEvent",this.getExcelValueEvent.saveToJsonObject(t)),e.addPropertyStringNullOfEmpty("NullValue",this.nullValue),e.addPropertyEnum("Type",i.StiSystemTextType,this.type,i.StiSystemTextType.None),e.addPropertyBool("ExportAsImage",this.exportAsImage),e.addPropertyEnum("TextQuality",i.StiTextQuality,this.textQuality,i.StiTextQuality.Standard),e.addPropertyBool("AllowHtmlTags",this.allowHtmlTags,!1),e.addPropertyJObject("Margins",this.margins.saveToJsonObject(t,0,0,0,0)),e.addPropertyBool("ShrinkFontToFit",this.shrinkFontToFit,!1),e.addPropertyNumber("ShrinkFontToFitMinimumSize",this.shrinkFontToFitMinimumSize,1),t==s.Report?this.textFormat.sti_is(i.TextFormats.StiGeneralFormatService)||e.addPropertyJObject("TextFormat",this.textFormat.saveToJsonObject(t)):e.addPropertyStringNullOfEmpty("Format",this.format),e},k.prototype.loadFromJsonObject=function(t){D.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var o=r[e];switch(o.name){case"Indicator":this._indicator=i.StiIndicator.loadFromJsonObjectInternal(o.value);break;case"CanBreak":this.canBreak=o.value.toBoolean();break;case"AutoWidth":this.autoWidth=o.value.toBoolean();break;case"RenderTo":this.renderTo=o.value;break;case"HorAlignment":this._horAlignment=a.parse(u,o.value);break;case"VertAlignment":this._vertAlignment=a.parse(c,o.value);break;case"Font":this._font=P.Deserialize.font(o.value,this._font);break;case"Border":this._border=P.Deserialize.border(o.value);break;case"Brush":this._brush=P.Deserialize.brush(o.value);break;case"TextBrush":this._textBrush=P.Deserialize.brush(o.value);break;case"TextFormat":this.textFormat=S.loadFromJsonObjectInternal(o.value);break;case"Format":this._format=o.value;break;case"TextOptions":this._textOptions.loadFromJsonObject(o.value);break;case"ExcelValue":break;case"GetExcelValueEvent":var s=new n;s.loadFromJsonObject(o.value),this.getExcelValueEvent=s;break;case"NullValue":this.nullValue=o.value;break;case"Type":this.type=a.parse(i.StiSystemTextType,o.value);break;case"ExportAsImage":this.exportAsImage=o.value.toBoolean();break;case"TextQuality":this.textQuality=a.parse(i.StiTextQuality,o.value);break;case"AllowHtmlTags":this.allowHtmlTags=o.value.toBoolean();break;case"Margins":var l=new i.StiMargins;l.loadFromJsonObject(o.value),this.margins=l;break;case"ShrinkFontToFit":this.shrinkFontToFit=o.value.toBoolean();break;case"ShrinkFontToFitMinimumSize":this.shrinkFontToFitMinimumSize=o.value.toNumber();break}}},k.prototype.parseTextFromXml=function(e){null!=e.attributes.getNamedItem("name")&&(this.name=e.attributes.getNamedItem("name").value),null!=e.attributes.getNamedItem("text")&&(this.text=e.attributes.getNamedItem("text").value),null!=e.attributes.getNamedItem("ha")&&(this.horAlignment=a.parse(u,e.attributes.getNamedItem("ha").value)),null!=e.attributes.getNamedItem("va")&&(this.vertAlignment=a.parse(c,e.attributes.getNamedItem("va").value)),null!=e.attributes.getNamedItem("tq")&&(this.textQuality=a.parse(i.StiTextQuality,e.attributes.getNamedItem("tq").value)),null!=e.attributes.getNamedItem("ed")&&(this.editable="true"==e.attributes.getNamedItem("ed").value.toLower()),null!=e.attributes.getNamedItem("html")&&(this.allowHtmlTags="true"==e.attributes.getNamedItem("html").value.toLower()),null!=e.attributes.getNamedItem("enabled")&&(this.enabled="true"==e.attributes.getNamedItem("enabled").value.toLower()),null!=e.attributes.getNamedItem("pr")&&(this.printable="true"==e.attributes.getNamedItem("pr").value.toLower()),null!=e.attributes.getNamedItem("lou")&&(this.linesOfUnderlining="true"==e.attributes.getNamedItem("lou").value.toLower()),null!=e.attributes.getNamedItem("lu")&&(this.linesOfUnderline=a.parse(x,e.attributes.getNamedItem("lu").value)),null!=e.attributes.getNamedItem("guid")&&(this.guid=e.attributes.getNamedItem("guid").value),null!=e.attributes.getNamedItem("tvh")&&(this.totalValueHelp=e.attributes.getNamedItem("tvh").value),null!=e.attributes.getNamedItem("bookmark")&&(this.bookmarkValue=e.attributes.getNamedItem("bookmark").value),null!=e.attributes.getNamedItem("hyperlink")&&(this.hyperlinkValue=e.attributes.getNamedItem("hyperlink").value),null!=e.attributes.getNamedItem("tag")&&(this.tagValue=e.attributes.getNamedItem("tag").value),null!=e.attributes.getNamedItem("toolTip")&&(this.toolTipValue=e.attributes.getNamedItem("toolTip").value),null!=e.attributes.getNamedItem("excelvalue")&&(this.excelDataValue=e.attributes.getNamedItem("excelvalue").value),null!=e.attributes.getNamedItem("format")&&(this.format=e.attributes.getNamedItem("format").value),null!=e.attributes.getNamedItem("pl")&&(this.componentPlacement=e.attributes.getNamedItem("pl").value),null!=e.attributes.getNamedItem("style")&&(this.componentStyle=e.attributes.getNamedItem("style").value),null!=e.attributes.getNamedItem("rc")&&(this.clientRectangle=this.loadRectangleDFromXml(e.attributes.getNamedItem("rc").value)),null!=e.attributes.getNamedItem("fn")&&(this.font=t.System.Convert.toFont(e.attributes.getNamedItem("fn").value)),null!=e.attributes.getNamedItem("tb")&&(this.textBrush=h.loadFromXml(e.attributes.getNamedItem("tb").value)),null!=e.attributes.getNamedItem("bh")&&(this.brush=h.loadFromXml(e.attributes.getNamedItem("bh").value)),null!=e.attributes.getNamedItem("to")&&(this.textOptions=d.loadFromXml(e.attributes.getNamedItem("to").value)),null!=e.attributes.getNamedItem("br")&&(this.border=p.loadFromXml(e.attributes.getNamedItem("br").value)),null!=e.attributes.getNamedItem("mr")&&(this.margins=i.StiMargins.loadFromText(e.attributes.getNamedItem("mr").value)),null!=e.attributes.getNamedItem("indicator")&&(this.indicator=i.StiIndicator.loadFromXml(e.attributes.getNamedItem("indicator").value))},k.prototype.loadFromXml=function(e,r){D.prototype.loadFromXml.call(this,e,r);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"CanBreak":this.canBreak=o.textContent.toBoolean();break;case"AutoWidth":this.autoWidth=o.textContent.toBoolean();break;case"RenderTo":this.renderTo=o.textContent;break;case"HorAlignment":case"ha":this._horAlignment=a.parse(u,o.textContent);break;case"VertAlignment":case"va":this._vertAlignment=a.parse(c,o.textContent);break;case"Font":case"fn":this._font=t.System.Convert.toFont(o.textContent);break;case"Border":case"br":this._border=p.loadFromXml(o.textContent);break;case"Brush":case"bh":this._brush=h.loadFromXml(o.textContent);break;case"TextBrush":case"tb":this._textBrush=h.loadFromXml(o.textContent);break;case"TextFormat":this.textFormat=S.loadFormatFromXml(o);break;case"Format":this._format=o.textContent;break;case"TextOptions":this._textOptions.loadFromXml(o);break;case"ExcelValue":break;case"GetExcelValueEvent":case"NullValue":this.nullValue=o.textContent;break;case"Type":this.type=a.parse(i.StiSystemTextType,o.textContent);break;case"ExportAsImage":this.exportAsImage=o.textContent.toBoolean();break;case"TextQuality":this.textQuality=a.parse(i.StiTextQuality,o.textContent);break;case"AllowHtmlTags":this.allowHtmlTags=o.textContent.toBoolean();break;case"Margins":this.margins=i.StiMargins.loadFromXml(o);break;case"ShrinkFontToFit":this.shrinkFontToFit=o.textContent.toBoolean();break;case"ShrinkFontToFitMinimumSize":this.shrinkFontToFitMinimumSize=o.textContent.toNumber();break}}},Object.defineProperty(k.prototype,"componentId",{get:function(){return e.StiComponentId.StiText},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"indicator",{get:function(){return this._indicator},set:function(t){this._indicator=t},enumerable:!0,configurable:!0}),k.prototype.getImage=function(t,i){return void 0===i&&(i=e.StiExportFormat.None),null},k.prototype.isExportAsImage=function(t){var i=D.prototype.isExportAsImage.call(this,t);if(i)return i;if(this.checkAllowHtmlTags()){var r=t==e.StiExportFormat.Html||t==e.StiExportFormat.HtmlDiv||t==e.StiExportFormat.HtmlSpan||t==e.StiExportFormat.HtmlTable||t==e.StiExportFormat.Rtf||t==e.StiExportFormat.RtfTabbedText||t==e.StiExportFormat.RtfFrame||t==e.StiExportFormat.RtfWinWord||t==e.StiExportFormat.RtfTable||t==e.StiExportFormat.Text||t==e.StiExportFormat.Pdf||t==e.StiExportFormat.ImageSvg||t==e.StiExportFormat.Excel2007&&!StiOptions.Export.Excel.RenderHtmlTagsAsImage;if(!r)return!0}if(this.linesOfUnderlining){var r=t==e.StiExportFormat.Dif||t==e.StiExportFormat.Pdf||t==e.StiExportFormat.Sylk||t==e.StiExportFormat.Text;if(!r)return!0}return this.exportAsImage},k.prototype.setString=function(t,e){if("Text"==t)this.setTextInternal(e);else if("ToolTip"==t)this.toolTip=e;else if("Tag"==t)this.tag=e;else{if("Hyperlink"!=t)throw String.stiFormat("Property with name {0}",t);this.hyperlink=e}},k.prototype.getString=function(t){if("Text"==t)return this.getTextInternal();if("Tag"==t)return this.tag;if("ToolTip"==t)return this.toolTip;if("Hyperlink"==t)return this.hyperlink;throw String.stiFormat("Property with name {0}",t)},k.prototype.getAllStrings=function(){var t=[];return StiOptions.Engine.Globalization.allowUseText&&t.add("Text"),StiOptions.Engine.Globalization.allowUseTag&&t.add("Tag"),StiOptions.Engine.Globalization.allowUseToolTip&&t.add("ToolTip"),StiOptions.Engine.Globalization.allowUseHyperlink&&t.add("Hyperlink"),t},Object.defineProperty(k.prototype,"canBreak",{get:function(){return this.properties.getBool(k.propertyCanBreak,!1)},set:function(t){this.properties.setBool(k.propertyCanBreak,t,!1)},enumerable:!0,configurable:!0}),k.prototype.break=function(t,e,r){var n=0,o=!0;if(null!=this.getTextInternal()&&this.getTextInternal().length>0){var a=this.getTextInternal(),s=this.report.unit.convertToHInches(this.clientRectangle);s=this.convertTextMargins(s,!1),s=this.convertTextBorders(s,!1);var l=String.empty;if(s.height>=0){var u={ref:a};l=i.StiComponentDivider.breakText(null,s,u,this.font,this.textOptions,this.textQuality,this.checkAllowHtmlTags(),this),a=u.ref}this.setTextInternal(l),this.growToHeight||null!=this.getTextInternal()&&0!=this.getTextInternal().length||(o=!1),t.setTextInternal(a)}return r.ref=n,o},Object.defineProperty(k.prototype,"autoWidth",{get:function(){return this.properties.getBool(k.propertyAutoWidth,!1)},set:function(t){this.properties.setBool(k.propertyAutoWidth,t,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"renderTo",{get:function(){return this.properties.get(k.propertyRenderTo,String.empty)},set:function(t){this.properties.set(k.propertyRenderTo,t,String.empty)},enumerable:!0,configurable:!0}),k.prototype.invokeRenderTo=function(t){if(!t.isPropertyPresent(k.propertyRenderTo))return;var e=t.renderTo;if(e.length>0&&(e=e.trim(),e.length>0)){var r=t.parent.components.getByName(e).sti_as(i.StiSimpleText);if(null!=r){var n=t.getTextInternal();null==n&&(n=String.empty);var o={ref:n},a=this.getVisibleTextForRenderTo(t.getPaintRectangle(!0,!1,!0),o,t);n=o.ref,String.isNullOrEmpty(a)&&(a=" "),t.textValue=a,t.setTextInternal(a),r.textValue=n,r.setTextInternal(n),this.invokeRenderTo(r)}}},k.prototype.getVisibleTextForRenderTo=function(t,e,i){return t=this.convertTextMargins(t,!1),t=this.convertTextBorders(t,!1),e.ref},Object.defineProperty(k.prototype,"horAlignment",{get:function(){return this._horAlignment},set:function(t){this._horAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"vertAlignment",{get:function(){return this._vertAlignment},set:function(t){this._vertAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"font",{get:function(){return this._font},set:function(t){null==t&&this.isDesigning||(this._font=t)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"textBrush",{get:function(){return this._textBrush},set:function(t){this._textBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"textFormat",{get:function(){if(null==this._textFormat)return f.default;return this._textFormat},set:function(t){if(t&&t.sti_is(f)&&(t=null),this._textFormat!=t)if(this._textFormat=t,null==t)this._format="G";else if(t.sti_is(y)){var e=t;e.useLocalSetting?this._format="P":(this._format="P"+e.decimalDigits,e.useGroupSeparator&&(this._format+="G"),!e.useLocalSetting&&e.decimalDigits>0&&("."==e.decimalSeparator[0]||","==e.decimalSeparator[0])&&(this._format+=e.decimalSeparator[0]))}else if(t.sti_is(b)){var i=t;i.useLocalSetting?this._format="C":(this._format="C"+i.decimalDigits,i.useGroupSeparator&&(this._format+="G"),0!=i.negativePattern&&4!=i.negativePattern&&14!=i.negativePattern&&15!=i.negativePattern||(this._format+="("),!i.useLocalSetting&&i.decimalDigits>0&&("."==i.decimalSeparator[0]||","==i.decimalSeparator[0])&&(this._format+=i.decimalSeparator[0]),0==i.positivePattern||2==i.positivePattern?this._format+="+":this._format+="-",this._format+=i.symbol)}else if(t.sti_is(C)){var r=t;this._format="D"+r.stringFormat}else if(t.sti_is(v)){var n=t;n.useLocalSetting?this._format="N":(this._format="N"+n.decimalDigits,n.useGroupSeparator&&(this._format+="G"),0==n.negativePattern&&(this._format+="("),!n.useLocalSetting&&n.decimalDigits>0&&("."==n.decimalSeparator[0]||","==n.decimalSeparator[0])&&(this._format+=n.decimalSeparator[0]))}else if(t.sti_is(I)){var o=t;this._format="T"+o.stringFormat}else if(t.sti_is(A)){var a=t;this._format="U"}else this._format=String.empty},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"format",{get:function(){return this._format},set:function(t){this._format!=t&&(this._format=t)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"textOptions",{get:function(){return this._textOptions},set:function(t){this._textOptions=t},enumerable:!0,configurable:!0}),k.prototype.clone=function(t){var e=D.prototype.clone.call(this,t);return null!=this._border?e._border=this._border.clone():e._border=null,null!=this._brush?e._brush=this._brush.clone():e._brush=null,null!=this._textFormat?e._textFormat=this._textFormat.clone():e._textFormat=null,null!=this._textBrush?e._textBrush=this._textBrush.clone():e._textBrush=null,null!=this._textOptions?e._textOptions=this._textOptions.clone():e._textOptions=null,e._horAlignment=this._horAlignment,e._vertAlignment=this._vertAlignment,e},k.prototype.memberwiseClone=function(){var t=D.prototype.memberwiseClone.call(this);return t._indicator=this._indicator,t._horAlignment=this._horAlignment,t._vertAlignment=this._vertAlignment,t._font=this._font,t._border=this._border,t._brush=this._brush,t._textBrush=this._textBrush,t._textFormat=this._textFormat,t._format=this._format,t._textOptions=this._textOptions,t._excelDataValue=this._excelDataValue,t},k.prototype.convertTextMargins=function(t,e){var i=this.margins;if(i.isEmpty)return t;var r=this.page.zoom,n=i.left,o=i.right,a=i.top,s=i.bottom;return e||(r=1),0!=n&&(t.x+=n*r,t.width-=n*r),0!=a&&(t.y+=a*r,t.height-=a*r),0!=o&&(t.width-=o*r),0!=s&&(t.height-=s*r),t},k.prototype.convertTextBorders=function(t,e){var i=this.border.getSizeOffset(),r=this.border.getSizeOffset(),n=this.border.getSizeOffset(),o=this.border.getSizeOffset(),a=this.border.sti_as(R);if(null!=a&&(i=a.leftSide.getSizeOffset(),r=a.rightSide.getSizeOffset(),n=a.topSide.getSizeOffset(),o=a.bottomSide.getSizeOffset()),e){var s=this.page.zoom;i*=s,r*=s,n*=s,o*=s}return t.x+=i,t.y+=n,t.width-=i+r,t.height-=n+o,null!=this.report&&t.inflate(-1,-1),t},k.prototype.getTextForPaint=function(){return this.getTextInternal()},k.prototype.getActualSize=function(){var e=this.autoWidth,i=this.angle;if((this.canGrow||this.canShrink||e)&&null!=this.page){var r=this.page.unit,n=r.convertToHInches(this.clientRectangle),o=new B(n.width,n.height);n=this.convertTextMargins(n,!1),n=this.convertTextBorders(n,!1);var a=n.width,s=B.empty,l=this.textQuality,u=i;this.angle=0;var c=this.text;c=this.allowHtmlTags?c.replaceAll("\r","").replaceAll("\n",""):c.replaceAll("<","&lt").replaceAll(">","&gt"),s=this.sti_is(t.Report.CrossTab.StiCrossField)?F.measureString(1e4,this.font,c):90==i||270==i?F.measureString(n.height,this.font,c):F.measureString(n.width,this.font,c);var p=this.margins;s.width+=p.left+p.right,s.height+=p.top+p.bottom;var h=this.border.size/2;if(s.width+=h+h,s.height+=h+h,e&&(90==i||270==i?o.height=s.height:o.width=s.width),this.canGrow)if(90==i||270==i){if(s.width>o.width&&(o.width=s.width,this.maxNumberOfLines>0)){var g=this.font.getHeight(),m=Math.trunc(o.width/g);m>this.maxNumberOfLines&&(o.width=g*this.maxNumberOfLines)}}else if(s.height>o.height&&(o.height=s.height,this.maxNumberOfLines>0)){var g=this.font.getHeight(),m=Math.trunc(o.height/g);m>this.maxNumberOfLines&&(o.height=g*this.maxNumberOfLines)}this.canShrink&&(90==i||270==i?null==this.getTextInternal()||0==this.getTextInternal().trim().length?o.width=0:o.width=Math.min(s.width,o.width):null==this.getTextInternal()||0==this.getTextInternal().trim().length?o.height=0:o.height=Math.min(s.height,o.height));return r.convertFromHInches(o)}return new B(this.width,this.height)},k.prototype.prepare=function(){if(D.prototype.prepare.call(this),null!=this.conditions)for(var t=0,e=this.conditions.list;t<e.length;t++){var r=e[t],n=r.sti_as(i.IStiIndicatorCondition);null!=n&&n.reset()}},Object.defineProperty(k.prototype,"excelDataValue",{get:function(){return this._excelDataValue},set:function(t){this._excelDataValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"excelValue",{get:function(){return this.properties.get("excelValue",String.empty)},set:function(t){this.properties.set("excelValue",t,String.empty)},enumerable:!0,configurable:!0}),k.prototype.invokeEvents=function(){D.prototype.invokeEvents.call(this);try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){if(null!=this.events.get(k.eventGetExcelValue)){var i=new w;if(i.value=this.excelDataValue,this.invokeGetExcelValue(this,i),null!=i.value?this.excelDataValue=i.value.toString():this.excelDataValue=null,this.hideZeros&&!String.isNullOrEmpty(this.excelDataValue)){var r=this.excelDataValue.toNumber();0==r&&(this.excelDataValue=null)}}}else{if(null!=this.events.get(k.eventGetExcelValue)){var i=new w;if(i.value=this.excelDataValue,this.invokeGetExcelValue(this,i),this.excelDataValue=i.value,this.hideZeros&&!String.isNullOrEmpty(this.excelDataValue)){var r=this.excelDataValue.toNumber();0==r&&(this.excelDataValue=null)}}if(this.excelValue.length>0){var n=t.Report.Engine.StiParser.StiParser.parseTextValue(this.excelValue,this);if(this.excelDataValue=null!=n?n.toString():null,this.hideZeros&&!String.isNullOrEmpty(this.excelDataValue)){var r=this.excelDataValue.toNumber();0==r&&(this.excelDataValue=null)}}}}catch(e){var o=String.stiFormat("Expression in ExcelValue property of '{0}' can't be evaluated! {1}",this.name,e.message);t.System.StiError.showError(o,!1),this.report.writeToReportRenderingMessages(o)}},k.prototype.onGetExcelValue=function(t){},k.prototype.invokeGetExcelValue=function(e,i){try{this.onGetExcelValue(i);var r=this.events.get(k.eventGetExcelValue);null!=r&&r(e)}catch(i){t.System.StiError.showError(i,!1)}},Object.defineProperty(k.prototype,"getExcelValueEvent",{get:function(){return new n(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(k.eventGetExcelValue,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"nullValue",{get:function(){return this.properties.get(k.propertyNullValue,String.empty)},set:function(t){this.properties.set(k.propertyNullValue,t,String.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"type",{get:function(){return this.properties.get(k.propertyType,i.StiSystemTextType.None)},set:function(t){this.properties.set(k.propertyType,t,i.StiSystemTextType.None)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"wordWrap",{get:function(){return this.textOptions.wordWrap},set:function(t){this.textOptions.wordWrap=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"rightToLeft",{get:function(){return this.textOptions.rightToLeft},set:function(t){this.textOptions.rightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"trimming",{get:function(){return this.textOptions.trimming},set:function(t){this.textOptions.trimming=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"angle",{get:function(){return this.textOptions.angle},set:function(t){this.textOptions.angle=t},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"exportAsImage",{get:function(){return this.properties.getBool(k.propertyExportAsImage,!1)},set:function(t){this.properties.setBool(k.propertyExportAsImage,t,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"textQuality",{get:function(){if(!StiOptions.Engine.fullTrust)return i.StiTextQuality.Typographic;return this.properties.get(k.propertyTextQuality,i.StiTextQuality.Standard)},set:function(t){this.properties.set(k.propertyTextQuality,t,i.StiTextQuality.Standard)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"allowHtmlTags",{get:function(){return this.properties.getBool(k.propertyAllowHtmlTags,!1)},set:function(t){this.properties.setBool(k.propertyAllowHtmlTags,t,!1),t&&(this.textQuality=i.StiTextQuality.Wysiwyg)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"margins",{get:function(){return this.properties.get(k.propertyMargins,i.StiMargins.empty)},set:function(t){this.properties.set(k.propertyMargins,t,i.StiMargins.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"shrinkFontToFit",{get:function(){return this.properties.getBool(k.propertyShrinkFontToFit,!1)},set:function(t){this.properties.setBool(k.propertyShrinkFontToFit,t,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"shrinkFontToFitMinimumSize",{get:function(){return this.properties.getNumber(k.propertyShrinkFontToFitMinimumSize,1)},set:function(t){t>=1&&this.properties.setNumber(k.propertyShrinkFontToFitMinimumSize,t,1)},enumerable:!0,configurable:!0}),k.prototype.createNew=function(){return new k},k.prototype.checkAllowHtmlTags=function(){if(!StiOptions.Engine.fullTrust&&null!=this.report&&!this.report.isSerializing)return!1;return this.allowHtmlTags},k.prototype.getActualFont=function(e,r){void 0===r&&(r=1);var n=this.page.unit.convertToHInches(this.clientRectangle);n=this.convertTextMargins(n,!1),n=this.convertTextBorders(n,!1),n.width-=this.border.size;var o=this.page.unit.convertToHInches(this.width)-this.margins.left-this.margins.right,a=this.page.unit.convertToHInches(this.height)-this.margins.top-this.margins.bottom,s=this.font,l=this.font;while(!0){var u=B.empty;if(u=i.StiStandardTextRenderer.measureString(n.width,l,this),!(u.width>o||u.height>a))break;var c=l.size;if(c<=r)break;l=t.Base.Drawing.StiFontUtils.changeFontSize(this.font,c-.5),this.font=l}return this.font=s,l},k.prototype.construct=function(){D.prototype.construct.call(this),this.textQuality=StiOptions.Engine.defaultTextQualityMode},k.propertyCanBreak=Math.random().toString().substr(2),k.propertyAutoWidth=Math.random().toString().substr(2),k.propertyRenderTo=Math.random().toString().substr(2),k.eventGetExcelValue={},k.propertyNullValue=Math.random().toString().substr(2),k.propertyType=Math.random().toString().substr(2),k.propertyExportAsImage=Math.random().toString().substr(2),k.propertyTextQuality=Math.random().toString().substr(2),k.propertyAllowHtmlTags=Math.random().toString().substr(2),k.propertyMargins=Math.random().toString().substr(2),k.propertyShrinkFontToFit=Math.random().toString().substr(2),k.propertyShrinkFontToFitMinimumSize=Math.random().toString().substr(2),k}(i.StiSimpleText);i.StiText=D}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(){}return t.removeFunction=function(t){null!=this.functionsToCompile.get(t)&&this.functionsToCompile.remove(t),null!=this.functionsToCompileLower.get(t.toLower())&&this.functionsToCompileLower.remove(t.toLower()),null!=this.functions.get(t)&&this.functions.remove(t),null!=this.functionsLower.get(t.toLower())&&this.functionsLower.remove(t.toLower())},t.getFunctionsList=function(t){return null!=this.functions.get(t)?this.functions.get(t):null},t.getFunctionsGrouppedInCategories=function(){for(var t=new i,e=this.getFunctions(!1),r=0,n=e;r<n.length;r++){var o=n[r],a=t.get(o.category);null==a&&(a=[],t.set(o.category,a)),a.add(o)}return t},t.getFunctions=function(t){if(t.sti_is(Boolean)){for(var e=t.sti_as(Boolean),i=[],r=e?this.functionsToCompile:this.functions,n=0,o=r.keys;n<o.length;n++)for(var a=o[n],s=this.getFunctionsEx(null,a,e),l=0,u=s;l<u.length;l++){var c=u[l];i.add(c)}return i.toArray()}if(t.sti_is(String)){for(var p=t.sti_as(String),h=this.getFunctions(!1),i=[],g=0,m=h;g<m.length;g++){var c=m[g];c.category==p&&i.add(c)}return i.toArray()}return null},t.getFunctionsEx=function(t,e,i){if(i){var r=this.functionsToCompile.get(e);if(null==r&&null==(r=this.functionsToCompile.get(e)))return null;return r.toArray()}var r=this.functions.get(e);if(null==r&&null==(r=this.functions.get(e)))return null;return r.toArray()},t.getCategories=function(){for(var t=new i,e=this.getFunctions(!1),r=new Array,n=0,o=e;n<o.length;n++){var a=o[n];null==t.get(a.category)&&(r.add(a.category),t.set(a.category,a.category))}return r},t.getAssebliesOfFunctions=function(){for(var t=this.getFunctions(!0),e=new i,r=0,n=t;r<n.length;r++)var o=n[r];return new String[e.count]},t.addFunction=function(i,r,n,o,a,s,l,u,c,p,h){void 0===l&&(l=String.empty),void 0===u&&(u=null),void 0===c&&(c=null),void 0===p&&(p=null),void 0===h&&(h=null),String.isNullOrEmpty(r)&&(r=n);var g=new e.StiFunction(i,r,n,o,a,s,l,u,c,p),m=this.functions.get(r);return null==m&&(m=[],this.functions.set(r,m)),m.add(g),m=this.functionsToCompile.get(n),null==m&&(m=[],this.functionsToCompile.set(n,m)),m.add(g),null!=h&&t.addJsFunction(n,h),g},t.addJsFunction=function(e,i){t.jsFunctions.set(e,i)},t.StiFunctions=function(){},t.functionsToCompile=new i,t.functionsToCompileLower=new i,t.functions=new i,t.functionsLower=new i,t.jsFunctions=new i,t}();e.StiFunctions=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t[t.High=0]="High",t[t.Normal=1]="Normal",t[t.Low=2]="Low"}(e=t.StiNestedFactor||(t.StiNestedFactor={}));var i;!function(t){t[t.Latin4=0]="Latin4",t[t.Latin3=1]="Latin3",t[t.Latin2=2]="Latin2",t[t.Latin1=3]="Latin1",t[t.QuarterFull=4]="QuarterFull",t[t.QuarterThreeFourth=5]="QuarterThreeFourth",t[t.QuarterHalf=6]="QuarterHalf",t[t.QuarterQuarter=7]="QuarterQuarter",t[t.QuarterNone=8]="QuarterNone",t[t.Rating4=9]="Rating4",t[t.Rating3=10]="Rating3",t[t.Rating2=11]="Rating2",t[t.Rating1=12]="Rating1",t[t.Rating0=13]="Rating0",t[t.Square0=14]="Square0",t[t.Square1=15]="Square1",t[t.Square2=16]="Square2",t[t.Square3=17]="Square3",t[t.Square4=18]="Square4",t[t.StarFull=19]="StarFull",t[t.StarThreeFourth=20]="StarThreeFourth",t[t.StarHalf=21]="StarHalf",t[t.StarQuarter=22]="StarQuarter",t[t.StarNone=23]="StarNone",t[t.ArrowDown=24]="ArrowDown",t[t.ArrowRight=25]="ArrowRight",t[t.ArrowRightDown=26]="ArrowRightDown",t[t.ArrowRightUp=27]="ArrowRightUp",t[t.ArrowUp=28]="ArrowUp",t[t.Check=29]="Check",t[t.Circle=30]="Circle",t[t.CircleCheck=31]="CircleCheck",t[t.CircleCross=32]="CircleCross",t[t.CircleExclamation=33]="CircleExclamation",t[t.Cross=34]="Cross",t[t.Rhomb=35]="Rhomb",t[t.Exclamation=36]="Exclamation",t[t.Flag=37]="Flag",t[t.Minus=38]="Minus",t[t.Triangle=39]="Triangle",t[t.TriangleDown=40]="TriangleDown",t[t.TriangleUp=41]="TriangleUp",t[t.Home=42]="Home",t[t.Cart=43]="Cart",t[t.Phone=44]="Phone",t[t.Mobile=45]="Mobile",t[t.Mug=46]="Mug",t[t.Airplane=47]="Airplane",t[t.Man=48]="Man",t[t.Woman=49]="Woman",t[t.UserTie=50]="UserTie",t[t.Truck=51]="Truck",t[t.Earth=52]="Earth",t[t.ManWoman=53]="ManWoman",t[t.Appleinc=54]="Appleinc",t[t.Android=55]="Android",t[t.Windows8=56]="Windows8"}(i=t.StiFontIcons||(t.StiFontIcons={}));var r;!function(t){t[t.ProcessAllPages=1]="ProcessAllPages",t[t.RebuildReport=2]="RebuildReport",t[t.RescaleContent=4]="RescaleContent",t[t.PageOrientationChanged=8]="PageOrientationChanged",t[t.ShowProgressOnRebuildReport=16]="ShowProgressOnRebuildReport",t[t.AllowPageMarginsRescaling=32]="AllowPageMarginsRescaling"}(r=t.StiResizeReportOptions||(t.StiResizeReportOptions={}));var n;!function(t){t[t.Compilation=0]="Compilation",t[t.Interpretation=1]="Interpretation"}(n=t.StiCalculationMode||(t.StiCalculationMode={}));var o;!function(t){t[t.CSharp=0]="CSharp",t[t.VB=1]="VB",t[t.JS=2]="JS"}(o=t.StiReportLanguageType||(t.StiReportLanguageType={}));var a;!function(t){t[t.Centimeters=0]="Centimeters",t[t.HundredthsOfInch=1]="HundredthsOfInch",t[t.Inches=2]="Inches",t[t.Millimeters=3]="Millimeters"}(a=t.StiReportUnitType||(t.StiReportUnitType={}));var s;!function(t){t[t.Lines=0]="Lines",t[t.Dots=1]="Dots"}(s=t.StiGridMode||(t.StiGridMode={}));var l;!function(t){t[t.None=0]="None",t[t.First=1]="First",t[t.Second=2]="Second"}(l=t.StiReportPass||(t.StiReportPass={}));var u;!function(t){t[t.SinglePass=0]="SinglePass",t[t.DoublePass=1]="DoublePass"}(u=t.StiNumberOfPass||(t.StiNumberOfPass={}));var c;!function(t){t[t.None=0]="None",t[t.Pdf=1]="Pdf",t[t.Xps=2]="Xps",t[t.HtmlTable=3]="HtmlTable",t[t.HtmlSpan=4]="HtmlSpan",t[t.HtmlDiv=5]="HtmlDiv",t[t.Rtf=6]="Rtf",t[t.RtfTable=7]="RtfTable",t[t.RtfFrame=8]="RtfFrame",t[t.RtfWinWord=9]="RtfWinWord",t[t.RtfTabbedText=10]="RtfTabbedText",t[t.Text=11]="Text",t[t.Excel=12]="Excel",t[t.ExcelXml=13]="ExcelXml",t[t.Excel2007=14]="Excel2007",t[t.Word2007=15]="Word2007",t[t.Xml=16]="Xml",t[t.Csv=17]="Csv",t[t.Dif=18]="Dif",t[t.Sylk=19]="Sylk",t[t.Image=20]="Image",t[t.ImageGif=21]="ImageGif",t[t.ImageBmp=22]="ImageBmp",t[t.ImagePng=23]="ImagePng",t[t.ImageTiff=24]="ImageTiff",t[t.ImageJpeg=25]="ImageJpeg",t[t.ImagePcx=26]="ImagePcx",t[t.ImageEmf=27]="ImageEmf",t[t.ImageSvg=28]="ImageSvg",t[t.ImageSvgz=29]="ImageSvgz",t[t.Mht=30]="Mht",t[t.Dbf=31]="Dbf",t[t.Html=32]="Html",t[t.Ods=33]="Ods",t[t.Odt=34]="Odt",t[t.Ppt2007=35]="Ppt2007",t[t.Html5=36]="Html5",t[t.Data=37]="Data",t[t.Document=1e3]="Document"}(c=t.StiExportFormat||(t.StiExportFormat={}));var p;!function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto"}(p=t.StiReportCacheMode||(t.StiReportCacheMode={}));var h;!function(t){t[t.Bitmap=0]="Bitmap",t[t.Metafile=1]="Metafile",t[t.Report=2]="Report"}(h=t.StiReportResourceType||(t.StiReportResourceType={}));var g;!function(t){t[t.All=1]="All",t[t.CurrentPage=2]="CurrentPage",t[t.Pages=3]="Pages"}(g=t.StiRangeType||(t.StiRangeType={}));var m;!function(t){t[t.Html=1]="Html",t[t.Html5=2]="Html5",t[t.Mht=3]="Mht"}(m=t.StiHtmlType||(t.StiHtmlType={}));var d;!function(t){t[t.Bmp=0]="Bmp",t[t.Emf=1]="Emf",t[t.Exif=2]="Exif",t[t.Gif=3]="Gif",t[t.Guid=4]="Guid",t[t.Icon=5]="Icon",t[t.Jpeg=6]="Jpeg",t[t.MemoryBmp=7]="MemoryBmp",t[t.Png=8]="Png",t[t.Tiff=9]="Tiff",t[t.Wmf=10]="Wmf"}(d=t.ImageFormat||(t.ImageFormat={}));var S;!function(t){t[t.Standard=0]="Standard",t[t.Eastern=1]="Eastern"}(S=t.StiArabicDigitsType||(t.StiArabicDigitsType={}));var f;!function(t){t[t.Solid=0]="Solid",t[t.Glare=1]="Glare",t[t.Gradient0=2]="Gradient0",t[t.Gradient90=3]="Gradient90",t[t.Gradient180=4]="Gradient180",t[t.Gradient270=5]="Gradient270",t[t.Gradient45=6]="Gradient45"}(f=t.StiBrushType||(t.StiBrushType={}));var y;!function(t){t[t.StiComponent=0]="StiComponent",t[t.StiBarCode=1]="StiBarCode",t[t.StiButtonControl=2]="StiButtonControl",t[t.StiChart=3]="StiChart",t[t.StiChartCommon=4]="StiChartCommon",t[t.StiCheckBox=5]="StiCheckBox",t[t.StiCheckBoxControl=6]="StiCheckBoxControl",t[t.StiCheckedListBoxControl=7]="StiCheckedListBoxControl",t[t.StiChildBand=8]="StiChildBand",t[t.StiClone=9]="StiClone",t[t.StiColumnFooterBand=10]="StiColumnFooterBand",t[t.StiColumnHeaderBand=11]="StiColumnHeaderBand",t[t.StiComboBoxControl=12]="StiComboBoxControl",t[t.StiContainer=13]="StiContainer",t[t.StiContourText=14]="StiContourText",t[t.StiCrossColumn=15]="StiCrossColumn",t[t.StiCrossColumnTotal=16]="StiCrossColumnTotal",t[t.StiCrossDataBand=17]="StiCrossDataBand",t[t.StiCrossFooterBand=18]="StiCrossFooterBand",t[t.StiCrossGroupFooterBand=19]="StiCrossGroupFooterBand",t[t.StiCrossGroupHeaderBand=20]="StiCrossGroupHeaderBand",t[t.StiCrossHeaderBand=21]="StiCrossHeaderBand",t[t.StiCrossRow=22]="StiCrossRow",t[t.StiCrossRowTotal=23]="StiCrossRowTotal",t[t.StiCrossSummary=24]="StiCrossSummary",t[t.StiCrossTab=25]="StiCrossTab",t[t.StiCrossTitle=26]="StiCrossTitle",t[t.StiDashboardPage=27]="StiDashboardPage",t[t.StiDataBand=28]="StiDataBand",t[t.StiDateTimePickerControl=29]="StiDateTimePickerControl",t[t.StiEmptyBand=30]="StiEmptyBand",t[t.StiFooterBand=31]="StiFooterBand",t[t.StiForm=32]="StiForm",t[t.StiGridControl=33]="StiGridControl",t[t.StiGroupBoxControl=34]="StiGroupBoxControl",t[t.StiGroupFooterBand=35]="StiGroupFooterBand",t[t.StiGroupHeaderBand=36]="StiGroupHeaderBand",t[t.StiHeaderBand=37]="StiHeaderBand",t[t.StiHierarchicalBand=38]="StiHierarchicalBand",t[t.StiHorizontalLinePrimitive=39]="StiHorizontalLinePrimitive",t[t.StiImage=40]="StiImage",t[t.StiLabelControl=41]="StiLabelControl",t[t.StiListBoxControl=42]="StiListBoxControl",t[t.StiListViewControl=43]="StiListViewControl",t[t.StiLookUpBoxControl=44]="StiLookUpBoxControl",t[t.StiNumericUpDownControl=45]="StiNumericUpDownControl",t[t.StiOverlayBand=46]="StiOverlayBand",t[t.StiPage=47]="StiPage",t[t.StiPageFooterBand=48]="StiPageFooterBand",t[t.StiPageHeaderBand=49]="StiPageHeaderBand",t[t.StiPanel=50]="StiPanel",t[t.StiPanelControl=51]="StiPanelControl",t[t.StiPictureBoxControl=52]="StiPictureBoxControl",t[t.StiRadioButtonControl=53]="StiRadioButtonControl",t[t.StiRectanglePrimitive=54]="StiRectanglePrimitive",t[t.StiReportControl=55]="StiReportControl",t[t.StiReportSummaryBand=56]="StiReportSummaryBand",t[t.StiReportTitleBand=57]="StiReportTitleBand",t[t.StiRichText=58]="StiRichText",t[t.StiRichTextBoxControl=59]="StiRichTextBoxControl",t[t.StiRoundedRectanglePrimitive=60]="StiRoundedRectanglePrimitive",t[t.StiShape=61]="StiShape",t[t.StiSubReport=62]="StiSubReport",t[t.StiSystemText=63]="StiSystemText",t[t.StiTable=64]="StiTable",t[t.StiTableCell=65]="StiTableCell",t[t.StiText=66]="StiText",t[t.StiTextBoxControl=67]="StiTextBoxControl",t[t.StiTextInCells=68]="StiTextInCells",t[t.StiTreeViewControl=69]="StiTreeViewControl",t[t.StiVerticalLinePrimitive=70]="StiVerticalLinePrimitive",t[t.StiWinControl=71]="StiWinControl",t[t.StiUndefinedComponent=72]="StiUndefinedComponent",t[t.StiZipCode=73]="StiZipCode",t[t.StiTableCellCheckBox=74]="StiTableCellCheckBox",t[t.StiTableCellImage=75]="StiTableCellImage",t[t.StiTableCellRichText=76]="StiTableCellRichText",t[t.StiDataColumn=77]="StiDataColumn",t[t.StiCalcDataColumn=78]="StiCalcDataColumn",t[t.StiBusinessObject=79]="StiBusinessObject",t[t.StiDataSource=80]="StiDataSource",t[t.StiDataStoreSource=81]="StiDataStoreSource",t[t.StiFileDataSource=82]="StiFileDataSource",t[t.StiDataRelation=83]="StiDataRelation",t[t.StiVariable=84]="StiVariable",t[t.StiResource=85]="StiResource",t[t.StiReport=86]="StiReport",t[t.StiStyle=87]="StiStyle",t[t.StiCrossTabStyle=88]="StiCrossTabStyle",t[t.StiChartStyle=89]="StiChartStyle",t[t.StiMapStyle=90]="StiMapStyle",t[t.StiTableStyle=91]="StiTableStyle",t[t.StiGaugeStyle=92]="StiGaugeStyle",t[t.StiDialogStyle=93]="StiDialogStyle",t[t.StiDataParameter=94]="StiDataParameter",t[t.StiCrossField=95]="StiCrossField",t[t.StiCrossTotal=96]="StiCrossTotal",t[t.StiCrossCell=97]="StiCrossCell",t[t.StiCrossHeader=98]="StiCrossHeader",t[t.StiCrossSummaryHeader=99]="StiCrossSummaryHeader",t[t.StiStartPointPrimitive=100]="StiStartPointPrimitive",t[t.StiEndPointPrimitive=101]="StiEndPointPrimitive",t[t.StiEvent=102]="StiEvent",t[t.StiSeries=103]="StiSeries",t[t.StiBubbleSeries=104]="StiBubbleSeries",t[t.StiClusteredColumnSeries=105]="StiClusteredColumnSeries",t[t.StiLineSeries=106]="StiLineSeries",t[t.StiSteppedLineSeries=107]="StiSteppedLineSeries",t[t.StiSplineSeries=108]="StiSplineSeries",t[t.StiAreaSeries=109]="StiAreaSeries",t[t.StiSteppedAreaSeries=110]="StiSteppedAreaSeries",t[t.StiSplineAreaSeries=111]="StiSplineAreaSeries",t[t.StiStackedColumnSeries=112]="StiStackedColumnSeries",t[t.StiStackedLineSeries=113]="StiStackedLineSeries",t[t.StiStackedSplineSeries=114]="StiStackedSplineSeries",t[t.StiStackedAreaSeries=115]="StiStackedAreaSeries",t[t.StiStackedSplineAreaSeries=116]="StiStackedSplineAreaSeries",t[t.StiCenterTreemapLabels=117]="StiCenterTreemapLabels",t[t.StiTreemapArea=118]="StiTreemapArea",t[t.StiTreemapSeries=119]="StiTreemapSeries",t[t.StiPictorialSeries=120]="StiPictorialSeries",t[t.StiFullStackedColumnSeries=121]="StiFullStackedColumnSeries",t[t.StiFullStackedLineSeries=122]="StiFullStackedLineSeries",t[t.StiFullStackedAreaSeries=123]="StiFullStackedAreaSeries",t[t.StiFullStackedSplineSeries=124]="StiFullStackedSplineSeries",t[t.StiFullStackedSplineAreaSeries=125]="StiFullStackedSplineAreaSeries",t[t.StiClusteredBarSeries=126]="StiClusteredBarSeries",t[t.StiStackedBarSeries=127]="StiStackedBarSeries",t[t.StiFullStackedBarSeries=128]="StiFullStackedBarSeries",t[t.StiPieSeries=129]="StiPieSeries",t[t.StiDoughnutSeries=130]="StiDoughnutSeries",
t[t.StiGanttSeries=131]="StiGanttSeries",t[t.StiScatterSeries=132]="StiScatterSeries",t[t.StiScatterLineSeries=133]="StiScatterLineSeries",t[t.StiScatterSplineSeries=134]="StiScatterSplineSeries",t[t.StiRadarAreaSeries=135]="StiRadarAreaSeries",t[t.StiRadarLineSeries=136]="StiRadarLineSeries",t[t.StiRadarPointSeries=137]="StiRadarPointSeries",t[t.StiRangeSeries=138]="StiRangeSeries",t[t.StiSteppedRangeSeries=139]="StiSteppedRangeSeries",t[t.StiFunnelSeries=140]="StiFunnelSeries",t[t.StiFunnelWeightedSlicesSeries=141]="StiFunnelWeightedSlicesSeries",t[t.StiRangeBarSeries=142]="StiRangeBarSeries",t[t.StiSplineRangeSeries=143]="StiSplineRangeSeries",t[t.StiCandlestickSeries=144]="StiCandlestickSeries",t[t.StiStockSeries=145]="StiStockSeries",t[t.StiChartTitle=146]="StiChartTitle",t[t.StiLineMarker=147]="StiLineMarker",t[t.StiMarker=148]="StiMarker",t[t.StiChartTable=149]="StiChartTable",t[t.StiSeriesTopN=150]="StiSeriesTopN",t[t.StiSeriesInteraction=151]="StiSeriesInteraction",t[t.StiTrendLine=152]="StiTrendLine",t[t.StiSeriesLabels=153]="StiSeriesLabels",t[t.StiNoneLabels=154]="StiNoneLabels",t[t.StiInsideEndAxisLabels=155]="StiInsideEndAxisLabels",t[t.StiInsideBaseAxisLabels=156]="StiInsideBaseAxisLabels",t[t.StiCenterAxisLabels=157]="StiCenterAxisLabels",t[t.StiOutsideEndAxisLabels=158]="StiOutsideEndAxisLabels",t[t.StiOutsideBaseAxisLabels=159]="StiOutsideBaseAxisLabels",t[t.StiOutsideAxisLabels=160]="StiOutsideAxisLabels",t[t.StiLeftAxisLabels=161]="StiLeftAxisLabels",t[t.StiValueAxisLabels=162]="StiValueAxisLabels",t[t.StiRightAxisLabels=163]="StiRightAxisLabels",t[t.StiCenterFunnelLabels=164]="StiCenterFunnelLabels",t[t.StiCenterPieLabels=165]="StiCenterPieLabels",t[t.StiOutsidePieLabels=166]="StiOutsidePieLabels",t[t.StiTwoColumnsPieLabels=167]="StiTwoColumnsPieLabels",t[t.StiOutsideLeftFunnelLabels=168]="StiOutsideLeftFunnelLabels",t[t.StiOutsideRightFunnelLabels=169]="StiOutsideRightFunnelLabels",t[t.StiLegend=170]="StiLegend",t[t.StiClusteredColumnArea=171]="StiClusteredColumnArea",t[t.StiPieArea=172]="StiPieArea",t[t.StiFunnelArea=173]="StiFunnelArea",t[t.StiPictorialArea=174]="StiPictorialArea",t[t.StiRadarAreaArea=175]="StiRadarAreaArea",t[t.StiRadarLineArea=176]="StiRadarLineArea",t[t.StiRadarPointArea=177]="StiRadarPointArea",t[t.StiStackedColumnArea=178]="StiStackedColumnArea",t[t.StiGridLines=179]="StiGridLines",t[t.StiInterlacing=180]="StiInterlacing",t[t.StiXAxis=181]="StiXAxis",t[t.StiXTopAxis=182]="StiXTopAxis",t[t.StiYAxis=183]="StiYAxis",t[t.StiYRightAxis=184]="StiYRightAxis",t[t.StiRadarGridLines=185]="StiRadarGridLines",t[t.StiXRadarAxis=186]="StiXRadarAxis",t[t.StiYRadarAxis=187]="StiYRadarAxis",t[t.StiDialogInfoItem=188]="StiDialogInfoItem",t[t.StiStringDialogInfoItem=189]="StiStringDialogInfoItem",t[t.StiGuidDialogInfoItem=190]="StiGuidDialogInfoItem",t[t.StiCharDialogInfoItem=191]="StiCharDialogInfoItem",t[t.StiBoolDialogInfoItem=192]="StiBoolDialogInfoItem",t[t.StiImageDialogInfoItem=193]="StiImageDialogInfoItem",t[t.StiDateTimeDialogInfoItem=194]="StiDateTimeDialogInfoItem",t[t.StiTimeSpanDialogInfoItem=195]="StiTimeSpanDialogInfoItem",t[t.StiDoubleDialogInfoItem=196]="StiDoubleDialogInfoItem",t[t.StiDecimalDialogInfoItem=197]="StiDecimalDialogInfoItem",t[t.StiLongDialogInfoItem=198]="StiLongDialogInfoItem",t[t.StiExpressionDialogInfoItem=199]="StiExpressionDialogInfoItem";t[t.StiStringRangeDialogInfoItem=200]="StiStringRangeDialogInfoItem",t[t.StiGuidRangeDialogInfoItem=201]="StiGuidRangeDialogInfoItem",t[t.StiCharRangeDialogInfoItem=202]="StiCharRangeDialogInfoItem",t[t.StiDateTimeRangeDialogInfoItem=203]="StiDateTimeRangeDialogInfoItem",t[t.StiTimeSpanRangeDialogInfoItem=204]="StiTimeSpanRangeDialogInfoItem",t[t.StiDoubleRangeDialogInfoItem=205]="StiDoubleRangeDialogInfoItem",t[t.StiDecimalRangeDialogInfoItem=206]="StiDecimalRangeDialogInfoItem",t[t.StiLongRangeDialogInfoItem=207]="StiLongRangeDialogInfoItem",t[t.StiExpressionRangeDialogInfoItem=208]="StiExpressionRangeDialogInfoItem",t[t.OracleConnectionStringBuilder=209]="OracleConnectionStringBuilder",t[t.StiStrips=210]="StiStrips",t[t.StiConstantLines=211]="StiConstantLines",t[t.StiShapeTypeService=212]="StiShapeTypeService",t[t.StiDiagonalDownLineShapeType=213]="StiDiagonalDownLineShapeType",t[t.StiRoundedRectangleShapeType=214]="StiRoundedRectangleShapeType",t[t.StiTriangleShapeType=215]="StiTriangleShapeType",t[t.StiComplexArrowShapeType=216]="StiComplexArrowShapeType",t[t.StiBentArrowShapeType=217]="StiBentArrowShapeType",t[t.StiChevronShapeType=218]="StiChevronShapeType",t[t.StiEqualShapeType=219]="StiEqualShapeType",t[t.StiFlowchartCollateShapeType=220]="StiFlowchartCollateShapeType",t[t.StiFlowchartOffPageConnectorShapeType=221]="StiFlowchartOffPageConnectorShapeType",t[t.StiArrowShapeType=222]="StiArrowShapeType",t[t.StiOctagonShapeType=223]="StiOctagonShapeType",t[t.StiAustraliaPost4StateBarCodeType=224]="StiAustraliaPost4StateBarCodeType",t[t.StiCode11BarCodeType=225]="StiCode11BarCodeType",t[t.StiCode128aBarCodeType=226]="StiCode128aBarCodeType",t[t.StiCode128bBarCodeType=227]="StiCode128bBarCodeType",t[t.StiCode128cBarCodeType=228]="StiCode128cBarCodeType",t[t.StiCode128AutoBarCodeType=229]="StiCode128AutoBarCodeType",t[t.StiCode39BarCodeType=230]="StiCode39BarCodeType",t[t.StiCode39ExtBarCodeType=231]="StiCode39ExtBarCodeType",t[t.StiCode93BarCodeType=232]="StiCode93BarCodeType",t[t.StiCode93ExtBarCodeType=233]="StiCode93ExtBarCodeType",t[t.StiCodabarBarCodeType=234]="StiCodabarBarCodeType",t[t.StiEAN128aBarCodeType=235]="StiEAN128aBarCodeType",t[t.StiEAN128bBarCodeType=236]="StiEAN128bBarCodeType",t[t.StiEAN128cBarCodeType=237]="StiEAN128cBarCodeType",t[t.StiEAN128AutoBarCodeType=238]="StiEAN128AutoBarCodeType",t[t.StiGS1_128BarCodeType=239]="StiGS1_128BarCodeType",t[t.StiEAN13BarCodeType=240]="StiEAN13BarCodeType",t[t.StiEAN8BarCodeType=241]="StiEAN8BarCodeType",t[t.StiFIMBarCodeType=242]="StiFIMBarCodeType",t[t.StiIsbn10BarCodeType=243]="StiIsbn10BarCodeType",t[t.StiIsbn13BarCodeType=244]="StiIsbn13BarCodeType",t[t.StiITF14BarCodeType=245]="StiITF14BarCodeType",t[t.StiJan13BarCodeType=246]="StiJan13BarCodeType",t[t.StiJan8BarCodeType=247]="StiJan8BarCodeType",t[t.StiMsiBarCodeType=248]="StiMsiBarCodeType",t[t.StiPdf417BarCodeType=249]="StiPdf417BarCodeType",t[t.StiPharmacodeBarCodeType=250]="StiPharmacodeBarCodeType",t[t.StiPlesseyBarCodeType=251]="StiPlesseyBarCodeType",t[t.StiPostnetBarCodeType=252]="StiPostnetBarCodeType",t[t.StiQRCodeBarCodeType=253]="StiQRCodeBarCodeType",t[t.StiRoyalMail4StateBarCodeType=254]="StiRoyalMail4StateBarCodeType",t[t.StiDutchKIXBarCodeType=255]="StiDutchKIXBarCodeType",t[t.StiSSCC18BarCodeType=256]="StiSSCC18BarCodeType",t[t.StiUpcABarCodeType=257]="StiUpcABarCodeType",t[t.StiUpcEBarCodeType=258]="StiUpcEBarCodeType",t[t.StiUpcSup2BarCodeType=259]="StiUpcSup2BarCodeType",t[t.StiUpcSup5BarCodeType=260]="StiUpcSup5BarCodeType",t[t.StiInterleaved2of5BarCodeType=261]="StiInterleaved2of5BarCodeType",t[t.StiStandard2of5BarCodeType=262]="StiStandard2of5BarCodeType",t[t.StiDataMatrixBarCodeType=263]="StiDataMatrixBarCodeType",t[t.StiMaxicodeBarCodeType=264]="StiMaxicodeBarCodeType",t[t.StiDatabase=265]="StiDatabase",t[t.StiFileDatabase=266]="StiFileDatabase",t[t.StiCsvDatabase=267]="StiCsvDatabase",t[t.StiDBaseDatabase=268]="StiDBaseDatabase",t[t.StiExcelDatabase=269]="StiExcelDatabase",t[t.StiJsonDatabase=270]="StiJsonDatabase",t[t.StiXmlDatabase=271]="StiXmlDatabase",t[t.StiSqlDatabase=272]="StiSqlDatabase",t[t.StiGauge=273]="StiGauge",t[t.StiMap=274]="StiMap",t[t.StiFullStackedColumnArea=275]="StiFullStackedColumnArea",t[t.StiClusteredBarArea=276]="StiClusteredBarArea",t[t.StiStackedBarArea=277]="StiStackedBarArea",t[t.StiFullStackedBarArea=278]="StiFullStackedBarArea",t[t.StiDoughnutArea=279]="StiDoughnutArea",t[t.StiLineArea=280]="StiLineArea",t[t.StiSteppedLineArea=281]="StiSteppedLineArea",t[t.StiStackedLineArea=282]="StiStackedLineArea",t[t.StiFullStackedLineArea=283]="StiFullStackedLineArea",t[t.StiSplineArea=284]="StiSplineArea",t[t.StiStackedSplineArea=285]="StiStackedSplineArea",t[t.StiFullStackedSplineArea=286]="StiFullStackedSplineArea",t[t.StiAreaArea=287]="StiAreaArea",t[t.StiSteppedAreaArea=288]="StiSteppedAreaArea",t[t.StiStackedAreaArea=289]="StiStackedAreaArea",t[t.StiFullStackedAreaArea=290]="StiFullStackedAreaArea",t[t.StiSplineAreaArea=291]="StiSplineAreaArea",t[t.StiStackedSplineAreaArea=292]="StiStackedSplineAreaArea",t[t.StiFullStackedSplineAreaArea=293]="StiFullStackedSplineAreaArea",t[t.StiGanttArea=294]="StiGanttArea",t[t.StiScatterArea=295]="StiScatterArea",t[t.StiBubbleArea=296]="StiBubbleArea",t[t.StiRangeArea=297]="StiRangeArea",t[t.StiSteppedRangeArea=298]="StiSteppedRangeArea",t[t.StiRangeBarArea=299]="StiRangeBarArea",t[t.StiSplineRangeArea=300]="StiSplineRangeArea",t[t.StiCandlestickArea=301]="StiCandlestickArea",t[t.StiStockArea=302]="StiStockArea",t[t.StiInsideEndPieLabels=303]="StiInsideEndPieLabels",t[t.StiTrendLineNone=304]="StiTrendLineNone",t[t.StiTrendLineLinear=305]="StiTrendLineLinear",t[t.StiTrendLineExponential=306]="StiTrendLineExponential",t[t.StiTrendLineLogarithmic=307]="StiTrendLineLogarithmic",t[t.StiDB2Database=308]="StiDB2Database",t[t.StiDotConnectUniversalDatabase=309]="StiDotConnectUniversalDatabase",t[t.StiFirebirdDatabase=310]="StiFirebirdDatabase",t[t.StiInformixDatabase=311]="StiInformixDatabase",t[t.StiMongoDbDatabase=312]="StiMongoDbDatabase",t[t.StiMySqlDatabase=313]="StiMySqlDatabase",t[t.StiMSAccessDatabase=314]="StiMSAccessDatabase",t[t.StiOdbcDatabase=315]="StiOdbcDatabase",t[t.StiOleDbDatabase=316]="StiOleDbDatabase",t[t.StiOracleDatabase=317]="StiOracleDatabase",t[t.StiPostgreSQLDatabase=318]="StiPostgreSQLDatabase",t[t.StiSQLiteDatabase=319]="StiSQLiteDatabase",t[t.StiSqlCeDatabase=320]="StiSqlCeDatabase",t[t.StiSybaseDatabase=321]="StiSybaseDatabase",t[t.StiTeradataDatabase=322]="StiTeradataDatabase",t[t.StiVistaDBDatabase=323]="StiVistaDBDatabase",t[t.StiODataDatabase=324]="StiODataDatabase",t[t.StiDataTableSource=325]="StiDataTableSource",t[t.StiDataViewSource=326]="StiDataViewSource",t[t.StiUndefinedDataSource=327]="StiUndefinedDataSource",t[t.StiCsvSource=328]="StiCsvSource",t[t.StiDBaseSource=329]="StiDBaseSource",t[t.StiBusinessObjectSource=330]="StiBusinessObjectSource",t[t.StiCrossTabDataSource=331]="StiCrossTabDataSource",t[t.StiEnumerableSource=332]="StiEnumerableSource",t[t.StiUserSource=333]="StiUserSource",t[t.StiVirtualSource=334]="StiVirtualSource",t[t.StiOracleODPSource=335]="StiOracleODPSource",t[t.StiFirebirdSource=336]="StiFirebirdSource",t[t.StiInformixSource=337]="StiInformixSource",t[t.StiMongoDbSource=338]="StiMongoDbSource",t[t.StiMSAccessSource=339]="StiMSAccessSource",t[t.StiMySqlSource=340]="StiMySqlSource",t[t.StiOdbcSource=341]="StiOdbcSource",t[t.StiOleDbSource=342]="StiOleDbSource",t[t.StiOracleSource=343]="StiOracleSource",t[t.StiPostgreSQLSource=344]="StiPostgreSQLSource",t[t.StiSqlCeSource=345]="StiSqlCeSource",t[t.StiSQLiteSource=346]="StiSQLiteSource",t[t.StiSqlSource=347]="StiSqlSource",t[t.StiNoSqlSource=348]="StiNoSqlSource",t[t.StiSybaseSource=349]="StiSybaseSource",t[t.StiTeradataSource=350]="StiTeradataSource",t[t.StiVistaDBSource=351]="StiVistaDBSource",t[t.StiDB2Source=352]="StiDB2Source",t[t.StiDiagonalUpLineShapeType=353]="StiDiagonalUpLineShapeType",t[t.StiHorizontalLineShapeType=354]="StiHorizontalLineShapeType",t[t.StiLeftAndRightLineShapeType=355]="StiLeftAndRightLineShapeType",t[t.StiOvalShapeType=356]="StiOvalShapeType",t[t.StiRectangleShapeType=357]="StiRectangleShapeType",t[t.StiTopAndBottomLineShapeType=358]="StiTopAndBottomLineShapeType",t[t.StiVerticalLineShapeType=359]="StiVerticalLineShapeType",t[t.StiDivisionShapeType=360]="StiDivisionShapeType",t[t.StiFlowchartCardShapeType=361]="StiFlowchartCardShapeType",t[t.StiFlowchartDecisionShapeType=362]="StiFlowchartDecisionShapeType",t[t.StiFlowchartManualInputShapeType=363]="StiFlowchartManualInputShapeType",t[t.StiFlowchartSortShapeType=364]="StiFlowchartSortShapeType",t[t.StiFrameShapeType=365]="StiFrameShapeType",t[t.StiMinusShapeType=366]="StiMinusShapeType",t[t.StiMultiplyShapeType=367]="StiMultiplyShapeType",t[t.StiParallelogramShapeType=368]="StiParallelogramShapeType",t[t.StiPlusShapeType=369]="StiPlusShapeType",t[t.StiRegularPentagonShapeType=370]="StiRegularPentagonShapeType",t[t.StiTrapezoidShapeType=371]="StiTrapezoidShapeType",t[t.StiSnipSameSideCornerRectangleShapeType=372]="StiSnipSameSideCornerRectangleShapeType",t[t.StiSnipDiagonalSideCornerRectangleShapeType=373]="StiSnipDiagonalSideCornerRectangleShapeType",t[t.StiFlowchartPreparationShapeType=374]="StiFlowchartPreparationShapeType",t[t.StiRadialScale=375]="StiRadialScale",t[t.StiLinearScale=376]="StiLinearScale",t[t.StiLinearBar=377]="StiLinearBar",t[t.StiRadialBar=378]="StiRadialBar",t[t.StiNeedle=379]="StiNeedle",t[t.StiRadialMarker=380]="StiRadialMarker",t[t.StiScaleRangeList=381]="StiScaleRangeList",t[t.StiRadialRange=382]="StiRadialRange",t[t.StiStateIndicator=383]="StiStateIndicator",t[t.StiStateIndicatorFilter=384]="StiStateIndicatorFilter",t[t.StiRadialRangeList=385]="StiRadialRangeList",t[t.StiLinearRangeList=386]="StiLinearRangeList",t[t.StiLinearRange=387]="StiLinearRange",t[t.StiLinearTickMarkMajor=388]="StiLinearTickMarkMajor",t[t.StiLinearTickMarkMinor=389]="StiLinearTickMarkMinor",t[t.StiLinearTickMarkCustomValue=390]="StiLinearTickMarkCustomValue",t[t.StiLinearTickLabelMajor=391]="StiLinearTickLabelMajor",t[t.StiLinearTickLabelMinor=392]="StiLinearTickLabelMinor",t[t.StiLinearTickLabelCustom=393]="StiLinearTickLabelCustom",t[t.StiLinearTickLabelCustomValue=394]="StiLinearTickLabelCustomValue",t[t.StiRadialTickMarkMajor=395]="StiRadialTickMarkMajor",t[t.StiRadialTickMarkMinor=396]="StiRadialTickMarkMinor",t[t.StiRadialTickMarkCustom=397]="StiRadialTickMarkCustom",t[t.StiRadialTickMarkCustomValue=398]="StiRadialTickMarkCustomValue",t[t.StiRadialTickLabelMajor=399]="StiRadialTickLabelMajor";t[t.StiRadialTickLabelMinor=400]="StiRadialTickLabelMinor",t[t.StiRadialTickLabelCustom=401]="StiRadialTickLabelCustom",t[t.StiRadialTickLabelCustomValue=402]="StiRadialTickLabelCustomValue",t[t.StiLinearMarker=403]="StiLinearMarker",t[t.StiLinearTickMarkCustom=404]="StiLinearTickMarkCustom",t[t.StiLinearIndicatorRangeInfo=405]="StiLinearIndicatorRangeInfo",t[t.StiRadialIndicatorRangeInfo=406]="StiRadialIndicatorRangeInfo"}(y=t.StiComponentId||(t.StiComponentId={}));var b;!function(t){t[t.Asc=0]="Asc",t[t.Desc=1]="Desc"}(b=t.StiRankOrder||(t.StiRankOrder={}));var C;!function(t){t[t.AdoNetXml=0]="AdoNetXml",t[t.Xml=1]="Xml"}(C=t.StiXmlType||(t.StiXmlType={}));var v;!function(t){t[t.Font=1]="Font",t[t.Border=2]="Border",t[t.Brush=4]="Brush",t[t.TextBrush=8]="TextBrush",t[t.TextOptions=16]="TextOptions",t[t.HorAlignment=32]="HorAlignment",t[t.VertAlignment=64]="VertAlignment",t[t.All=127]="All"}(v=t.StiStyleElements||(t.StiStyleElements={}));var I;!function(t){t[t.CurrentMonth=0]="CurrentMonth",t[t.CurrentQuarter=1]="CurrentQuarter",t[t.CurrentWeek=2]="CurrentWeek",t[t.CurrentYear=3]="CurrentYear",t[t.NextMonth=4]="NextMonth",t[t.NextQuarter=5]="NextQuarter",t[t.NextWeek=6]="NextWeek",t[t.NextYear=7]="NextYear",t[t.PreviousMonth=8]="PreviousMonth",t[t.PreviousQuarter=9]="PreviousQuarter",t[t.PreviousWeek=10]="PreviousWeek",t[t.PreviousYear=11]="PreviousYear",t[t.FirstQuarter=12]="FirstQuarter",t[t.SecondQuarter=13]="SecondQuarter",t[t.ThirdQuarter=14]="ThirdQuarter",t[t.FourthQuarter=15]="FourthQuarter",t[t.MonthToDate=16]="MonthToDate",t[t.QuarterToDate=17]="QuarterToDate",t[t.WeekToDate=18]="WeekToDate",t[t.YearToDate=19]="YearToDate",t[t.Today=20]="Today",t[t.Tomorrow=21]="Tomorrow",t[t.Yesterday=22]="Yesterday"}(I=t.StiDateRangeKind||(t.StiDateRangeKind={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.Empty=0]="Empty",t[t.Delimiter=1]="Delimiter",t[t.Variable=2]="Variable",t[t.SystemVariable=3]="SystemVariable",t[t.DataSourceField=4]="DataSourceField",t[t.BusinessObjectField=5]="BusinessObjectField",t[t.Number=6]="Number",t[t.Function=7]="Function",t[t.Method=8]="Method",t[t.Property=9]="Property",t[t.Component=10]="Component",t[t.Cast=11]="Cast",t[t.String=12]="String",t[t.Dot=13]="Dot",t[t.Comma=14]="Comma",t[t.Colon=15]="Colon",t[t.SemiColon=16]="SemiColon",t[t.Shl=17]="Shl",t[t.Shr=18]="Shr",t[t.Assign=19]="Assign",t[t.Equal=20]="Equal",t[t.NotEqual=21]="NotEqual",t[t.LeftEqual=22]="LeftEqual",t[t.Left=23]="Left",t[t.RightEqual=24]="RightEqual",t[t.Right=25]="Right",t[t.Not=26]="Not",t[t.Or=27]="Or",t[t.And=28]="And",t[t.Xor=29]="Xor",t[t.DoubleOr=30]="DoubleOr",t[t.DoubleAnd=31]="DoubleAnd",t[t.Question=32]="Question",t[t.Plus=33]="Plus",t[t.Minus=34]="Minus",t[t.Mult=35]="Mult",t[t.Div=36]="Div",t[t.Percent=37]="Percent",t[t.LParenthesis=38]="LParenthesis",t[t.RParenthesis=39]="RParenthesis",t[t.LBracket=40]="LBracket",t[t.RBracket=41]="RBracket",t[t.Identifier=42]="Identifier",t[t.Unknown=43]="Unknown"}(e=t.StiTokenType||(t.StiTokenType={}));var i;!function(t){t[t.PushValue=2e3]="PushValue",t[t.PushVariable=2001]="PushVariable",t[t.PushSystemVariable=2002]="PushSystemVariable",t[t.PushDataSourceField=2003]="PushDataSourceField",t[t.PushBusinessObjectField=2004]="PushBusinessObjectField",t[t.PushFunction=2005]="PushFunction",t[t.PushMethod=2006]="PushMethod",t[t.PushProperty=2007]="PushProperty",t[t.PushComponent=2008]="PushComponent",t[t.PushArrayElement=2009]="PushArrayElement",t[t.CopyToVariable=2010]="CopyToVariable",t[t.Add=2020]="Add",t[t.Sub=2021]="Sub",t[t.Mult=2022]="Mult",t[t.Div=2023]="Div",t[t.Mod=2024]="Mod",t[t.Power=2025]="Power",t[t.Neg=2026]="Neg",t[t.Cast=2027]="Cast",t[t.Not=2028]="Not",t[t.CompareLeft=2029]="CompareLeft",t[t.CompareLeftEqual=2030]="CompareLeftEqual",t[t.CompareRight=2031]="CompareRight",t[t.CompareRightEqual=2032]="CompareRightEqual",t[t.CompareEqual=2033]="CompareEqual",t[t.CompareNotEqual=2034]="CompareNotEqual",t[t.Shl=2035]="Shl",t[t.Shr=2036]="Shr",t[t.And=2037]="And",t[t.And2=2038]="And2",t[t.Or=2039]="Or",t[t.Or2=2040]="Or2",t[t.Xor=2041]="Xor",t[t.Jump=2042]="Jump",t[t.JumpTrue=2043]="JumpTrue",t[t.JumpFalse=2044]="JumpFalse"}(i=t.StiAsmCommandType||(t.StiAsmCommandType={}));var r;!function(t){t[t.Column=0]="Column",t[t.Line=1]="Line",t[t.LineThrough=2]="LineThrough",t[t.LineABC=3]="LineABC",t[t.LineRoman=4]="LineRoman",t[t.GroupLine=5]="GroupLine",t[t.PageNumber=6]="PageNumber",t[t.PageNumberThrough=7]="PageNumberThrough",t[t.PageNofM=8]="PageNofM",t[t.PageNofMThrough=9]="PageNofMThrough",t[t.TotalPageCount=10]="TotalPageCount",t[t.TotalPageCountThrough=11]="TotalPageCountThrough",t[t.IsFirstPage=12]="IsFirstPage",t[t.IsFirstPageThrough=13]="IsFirstPageThrough",t[t.IsLastPage=14]="IsLastPage",t[t.IsLastPageThrough=15]="IsLastPageThrough",t[t.PageCopyNumber=16]="PageCopyNumber",t[t.ReportAlias=17]="ReportAlias",t[t.ReportAuthor=18]="ReportAuthor",t[t.ReportChanged=19]="ReportChanged",t[t.ReportCreated=20]="ReportCreated",t[t.ReportDescription=21]="ReportDescription",t[t.ReportName=22]="ReportName",t[t.Time=23]="Time",t[t.Today=24]="Today",t[t.ConditionValue=25]="ConditionValue",t[t.ConditionTag=26]="ConditionTag",t[t.Sender=27]="Sender",t[t.DateTimeNow=28]="DateTimeNow",t[t.DateTimeToday=29]="DateTimeToday"}(r=t.StiSystemVariableType||(t.StiSystemVariableType={}));var n;!function(t){t[t.Year=0]="Year",t[t.Month=1]="Month",t[t.Day=2]="Day",t[t.Hour=3]="Hour",t[t.Minute=4]="Minute",t[t.Second=5]="Second",t[t.Length=6]="Length",t[t.From=7]="From",t[t.To=8]="To",t[t.FromDate=9]="FromDate",t[t.ToDate=10]="ToDate",t[t.FromTime=11]="FromTime",t[t.ToTime=12]="ToTime",t[t.SelectedLine=13]="SelectedLine",t[t.Name=14]="Name",t[t.TagValue=15]="TagValue",t[t.Days=16]="Days",t[t.Hours=17]="Hours",t[t.Milliseconds=18]="Milliseconds",t[t.Minutes=19]="Minutes",t[t.Seconds=20]="Seconds",t[t.Ticks=21]="Ticks",t[t.TotalDays=22]="TotalDays",t[t.TotalHours=23]="TotalHours",t[t.TotalMinutes=24]="TotalMinutes",t[t.TotalSeconds=25]="TotalSeconds",t[t.TotalMilliseconds=26]="TotalMilliseconds",t[t.Count=27]="Count",t[t.BusinessObjectValue=28]="BusinessObjectValue"}(n=t.StiPropertyType||(t.StiPropertyType={}));var o;!function(t){t[t.NameSpace=0]="NameSpace",t[t.Count=1]="Count",t[t.CountDistinct=2]="CountDistinct",t[t.Avg=3]="Avg",t[t.AvgD=4]="AvgD",t[t.AvgDate=5]="AvgDate",t[t.AvgI=6]="AvgI",t[t.AvgTime=7]="AvgTime",t[t.Max=8]="Max",t[t.MaxD=9]="MaxD",t[t.MaxDate=10]="MaxDate",t[t.MaxI=11]="MaxI",t[t.MaxStr=12]="MaxStr",t[t.MaxTime=13]="MaxTime",t[t.Median=14]="Median",t[t.MedianD=15]="MedianD",t[t.MedianI=16]="MedianI",t[t.Min=17]="Min",t[t.MinD=18]="MinD",t[t.MinDate=19]="MinDate",t[t.MinI=20]="MinI",t[t.MinStr=21]="MinStr",t[t.MinTime=22]="MinTime",t[t.Mode=23]="Mode",t[t.ModeD=24]="ModeD",t[t.ModeI=25]="ModeI",t[t.Sum=26]="Sum",t[t.SumD=27]="SumD",t[t.SumDistinct=28]="SumDistinct",t[t.SumI=29]="SumI",t[t.SumTime=30]="SumTime",t[t.First=31]="First",t[t.Last=32]="Last",t[t.rCount=33]="rCount",t[t.rCountDistinct=34]="rCountDistinct",t[t.rAvg=35]="rAvg",t[t.rAvgD=36]="rAvgD",t[t.rAvgDate=37]="rAvgDate",t[t.rAvgI=38]="rAvgI",t[t.rAvgTime=39]="rAvgTime",t[t.rMax=40]="rMax",t[t.rMaxD=41]="rMaxD",t[t.rMaxDate=42]="rMaxDate",t[t.rMaxI=43]="rMaxI",t[t.rMaxStr=44]="rMaxStr",t[t.rMaxTime=45]="rMaxTime",t[t.rMedian=46]="rMedian",t[t.rMedianD=47]="rMedianD",t[t.rMedianI=48]="rMedianI",t[t.rMin=49]="rMin",t[t.rMinD=50]="rMinD",t[t.rMinDate=51]="rMinDate",t[t.rMinI=52]="rMinI",t[t.rMinStr=53]="rMinStr",t[t.rMinTime=54]="rMinTime",t[t.rMode=55]="rMode",t[t.rModeD=56]="rModeD",t[t.rModeI=57]="rModeI",t[t.rSum=58]="rSum",t[t.rSumD=59]="rSumD",t[t.rSumDistinct=60]="rSumDistinct",t[t.rSumI=61]="rSumI",t[t.rSumTime=62]="rSumTime",t[t.rFirst=63]="rFirst",t[t.rLast=64]="rLast",t[t.iCount=65]="iCount",t[t.iCountDistinct=66]="iCountDistinct",t[t.iAvg=67]="iAvg",t[t.iAvgD=68]="iAvgD",t[t.iAvgDate=69]="iAvgDate",t[t.iAvgI=70]="iAvgI",t[t.iAvgTime=71]="iAvgTime",t[t.iMax=72]="iMax",t[t.iMaxD=73]="iMaxD",t[t.iMaxDate=74]="iMaxDate",t[t.iMaxI=75]="iMaxI",t[t.iMaxStr=76]="iMaxStr",t[t.iMaxTime=77]="iMaxTime",t[t.iMedian=78]="iMedian",t[t.iMedianD=79]="iMedianD",t[t.iMedianI=80]="iMedianI",t[t.iMin=81]="iMin",t[t.iMinD=82]="iMinD",t[t.iMinDate=83]="iMinDate",t[t.iMinI=84]="iMinI",t[t.iMinStr=85]="iMinStr",t[t.iMinTime=86]="iMinTime",t[t.iMode=87]="iMode",t[t.iModeD=88]="iModeD",t[t.iModeI=89]="iModeI",t[t.iSum=90]="iSum",t[t.iSumD=91]="iSumD",t[t.iSumDistinct=92]="iSumDistinct",t[t.iSumI=93]="iSumI",t[t.iSumTime=94]="iSumTime",t[t.iFirst=95]="iFirst",t[t.iLast=96]="iLast",t[t.riCount=97]="riCount",t[t.riCountDistinct=98]="riCountDistinct",t[t.riAvg=99]="riAvg",t[t.riAvgD=100]="riAvgD",t[t.riAvgDate=101]="riAvgDate",t[t.riAvgI=102]="riAvgI",t[t.riAvgTime=103]="riAvgTime",t[t.riMax=104]="riMax",t[t.riMaxD=105]="riMaxD",t[t.riMaxDate=106]="riMaxDate",t[t.riMaxI=107]="riMaxI",t[t.riMaxStr=108]="riMaxStr",t[t.riMaxTime=109]="riMaxTime",t[t.riMedian=110]="riMedian",t[t.riMedianD=111]="riMedianD",t[t.riMedianI=112]="riMedianI",t[t.riMin=113]="riMin",t[t.riMinD=114]="riMinD",t[t.riMinDate=115]="riMinDate",t[t.riMinI=116]="riMinI",t[t.riMinStr=117]="riMinStr",t[t.riMinTime=118]="riMinTime",t[t.riMode=119]="riMode",t[t.riModeD=120]="riModeD",t[t.riModeI=121]="riModeI",t[t.riSum=122]="riSum",t[t.riSumD=123]="riSumD",t[t.riSumDistinct=124]="riSumDistinct",t[t.riSumI=125]="riSumI",t[t.riSumTime=126]="riSumTime",t[t.riFirst=127]="riFirst",t[t.riLast=128]="riLast",t[t.cCount=129]="cCount",t[t.cCountDistinct=130]="cCountDistinct",t[t.cAvg=131]="cAvg",t[t.cAvgD=132]="cAvgD",t[t.cAvgDate=133]="cAvgDate",t[t.cAvgI=134]="cAvgI",t[t.cAvgTime=135]="cAvgTime",t[t.cMax=136]="cMax",t[t.cMaxD=137]="cMaxD",t[t.cMaxDate=138]="cMaxDate",t[t.cMaxI=139]="cMaxI",t[t.cMaxStr=140]="cMaxStr",t[t.cMaxTime=141]="cMaxTime",t[t.cMedian=142]="cMedian",t[t.cMedianD=143]="cMedianD",t[t.cMedianI=144]="cMedianI",t[t.cMin=145]="cMin",t[t.cMinD=146]="cMinD",t[t.cMinDate=147]="cMinDate",t[t.cMinI=148]="cMinI",t[t.cMinStr=149]="cMinStr",t[t.cMinTime=150]="cMinTime",t[t.cMode=151]="cMode",t[t.cModeD=152]="cModeD",t[t.cModeI=153]="cModeI",t[t.cSum=154]="cSum",t[t.cSumD=155]="cSumD",t[t.cSumDistinct=156]="cSumDistinct",t[t.cSumI=157]="cSumI",t[t.cSumTime=158]="cSumTime",t[t.cFirst=159]="cFirst",t[t.cLast=160]="cLast",t[t.crCount=161]="crCount",t[t.crCountDistinct=162]="crCountDistinct",t[t.crAvg=163]="crAvg",t[t.crAvgD=164]="crAvgD",t[t.crAvgDate=165]="crAvgDate",t[t.crAvgI=166]="crAvgI",t[t.crAvgTime=167]="crAvgTime",t[t.crMax=168]="crMax",t[t.crMaxD=169]="crMaxD",t[t.crMaxDate=170]="crMaxDate",t[t.crMaxI=171]="crMaxI",t[t.crMaxStr=172]="crMaxStr",t[t.crMaxTime=173]="crMaxTime",t[t.crMedian=174]="crMedian",t[t.crMedianD=175]="crMedianD",t[t.crMedianI=176]="crMedianI",t[t.crMin=177]="crMin",t[t.crMinD=178]="crMinD",t[t.crMinDate=179]="crMinDate",t[t.crMinI=180]="crMinI",t[t.crMinStr=181]="crMinStr",t[t.crMinTime=182]="crMinTime",t[t.crMode=183]="crMode",t[t.crModeD=184]="crModeD",t[t.crModeI=185]="crModeI",t[t.crSum=186]="crSum",t[t.crSumD=187]="crSumD",t[t.crSumDistinct=188]="crSumDistinct",t[t.crSumI=189]="crSumI",t[t.crSumTime=190]="crSumTime",t[t.crFirst=191]="crFirst",t[t.crLast=192]="crLast",t[t.ciCount=193]="ciCount",t[t.ciCountDistinct=194]="ciCountDistinct",t[t.ciAvg=195]="ciAvg",t[t.ciAvgD=196]="ciAvgD",t[t.ciAvgDate=197]="ciAvgDate",t[t.ciAvgI=198]="ciAvgI",t[t.ciAvgTime=199]="ciAvgTime";t[t.ciMax=200]="ciMax",t[t.ciMaxD=201]="ciMaxD",t[t.ciMaxDate=202]="ciMaxDate",t[t.ciMaxI=203]="ciMaxI",t[t.ciMaxStr=204]="ciMaxStr",t[t.ciMaxTime=205]="ciMaxTime",t[t.ciMedian=206]="ciMedian",t[t.ciMedianD=207]="ciMedianD",t[t.ciMedianI=208]="ciMedianI",t[t.ciMin=209]="ciMin",t[t.ciMinD=210]="ciMinD",t[t.ciMinDate=211]="ciMinDate",t[t.ciMinI=212]="ciMinI",t[t.ciMinStr=213]="ciMinStr",t[t.ciMinTime=214]="ciMinTime",t[t.ciMode=215]="ciMode",t[t.ciModeD=216]="ciModeD",t[t.ciModeI=217]="ciModeI",t[t.ciSum=218]="ciSum",t[t.ciSumD=219]="ciSumD",t[t.ciSumDistinct=220]="ciSumDistinct",t[t.ciSumI=221]="ciSumI",t[t.ciSumTime=222]="ciSumTime",t[t.ciFirst=223]="ciFirst",t[t.ciLast=224]="ciLast",t[t.criCount=225]="criCount",t[t.criCountDistinct=226]="criCountDistinct",t[t.criAvg=227]="criAvg",t[t.criAvgD=228]="criAvgD",t[t.criAvgDate=229]="criAvgDate",t[t.criAvgI=230]="criAvgI",t[t.criAvgTime=231]="criAvgTime",t[t.criMax=232]="criMax",t[t.criMaxD=233]="criMaxD",t[t.criMaxDate=234]="criMaxDate",t[t.criMaxI=235]="criMaxI",t[t.criMaxStr=236]="criMaxStr",t[t.criMaxTime=237]="criMaxTime",t[t.criMedian=238]="criMedian",t[t.criMedianD=239]="criMedianD",t[t.criMedianI=240]="criMedianI",t[t.criMin=241]="criMin",t[t.criMinD=242]="criMinD",t[t.criMinDate=243]="criMinDate",t[t.criMinI=244]="criMinI",t[t.criMinStr=245]="criMinStr",t[t.criMinTime=246]="criMinTime",t[t.criMode=247]="criMode",t[t.criModeD=248]="criModeD",t[t.criModeI=249]="criModeI",t[t.criSum=250]="criSum",t[t.criSumD=251]="criSumD",t[t.criSumDistinct=252]="criSumDistinct",t[t.criSumI=253]="criSumI",t[t.criSumTime=254]="criSumTime",t[t.criFirst=255]="criFirst",t[t.criLast=256]="criLast",t[t.pCount=257]="pCount",t[t.pCountDistinct=258]="pCountDistinct",t[t.pAvg=259]="pAvg",t[t.pAvgD=260]="pAvgD",t[t.pAvgDate=261]="pAvgDate",t[t.pAvgI=262]="pAvgI",t[t.pAvgTime=263]="pAvgTime",t[t.pMax=264]="pMax",t[t.pMaxD=265]="pMaxD",t[t.pMaxDate=266]="pMaxDate",t[t.pMaxI=267]="pMaxI",t[t.pMaxStr=268]="pMaxStr",t[t.pMaxTime=269]="pMaxTime",t[t.pMedian=270]="pMedian",t[t.pMedianD=271]="pMedianD",t[t.pMedianI=272]="pMedianI",t[t.pMin=273]="pMin",t[t.pMinD=274]="pMinD",t[t.pMinDate=275]="pMinDate",t[t.pMinI=276]="pMinI",t[t.pMinStr=277]="pMinStr",t[t.pMinTime=278]="pMinTime",t[t.pMode=279]="pMode",t[t.pModeD=280]="pModeD",t[t.pModeI=281]="pModeI",t[t.pSum=282]="pSum",t[t.pSumD=283]="pSumD",t[t.pSumDistinct=284]="pSumDistinct",t[t.pSumI=285]="pSumI",t[t.pSumTime=286]="pSumTime",t[t.pFirst=287]="pFirst",t[t.pLast=288]="pLast",t[t.prCount=289]="prCount",t[t.prCountDistinct=290]="prCountDistinct",t[t.prAvg=291]="prAvg",t[t.prAvgD=292]="prAvgD",t[t.prAvgDate=293]="prAvgDate",t[t.prAvgI=294]="prAvgI",t[t.prAvgTime=295]="prAvgTime",t[t.prMax=296]="prMax",t[t.prMaxD=297]="prMaxD",t[t.prMaxDate=298]="prMaxDate",t[t.prMaxI=299]="prMaxI",t[t.prMaxStr=300]="prMaxStr",t[t.prMaxTime=301]="prMaxTime",t[t.prMedian=302]="prMedian",t[t.prMedianD=303]="prMedianD",t[t.prMedianI=304]="prMedianI",t[t.prMin=305]="prMin",t[t.prMinD=306]="prMinD",t[t.prMinDate=307]="prMinDate",t[t.prMinI=308]="prMinI",t[t.prMinStr=309]="prMinStr",t[t.prMinTime=310]="prMinTime",t[t.prMode=311]="prMode",t[t.prModeD=312]="prModeD",t[t.prModeI=313]="prModeI",t[t.prSum=314]="prSum",t[t.prSumD=315]="prSumD",t[t.prSumDistinct=316]="prSumDistinct",t[t.prSumI=317]="prSumI",t[t.prSumTime=318]="prSumTime",t[t.prFirst=319]="prFirst",t[t.prLast=320]="prLast",t[t.piCount=321]="piCount",t[t.piCountDistinct=322]="piCountDistinct",t[t.piAvg=323]="piAvg",t[t.piAvgD=324]="piAvgD",t[t.piAvgDate=325]="piAvgDate",t[t.piAvgI=326]="piAvgI",t[t.piAvgTime=327]="piAvgTime",t[t.piMax=328]="piMax",t[t.piMaxD=329]="piMaxD",t[t.piMaxDate=330]="piMaxDate",t[t.piMaxI=331]="piMaxI",t[t.piMaxStr=332]="piMaxStr",t[t.piMaxTime=333]="piMaxTime",t[t.piMedian=334]="piMedian",t[t.piMedianD=335]="piMedianD",t[t.piMedianI=336]="piMedianI",t[t.piMin=337]="piMin",t[t.piMinD=338]="piMinD",t[t.piMinDate=339]="piMinDate",t[t.piMinI=340]="piMinI",t[t.piMinStr=341]="piMinStr",t[t.piMinTime=342]="piMinTime",t[t.piMode=343]="piMode",t[t.piModeD=344]="piModeD",t[t.piModeI=345]="piModeI",t[t.piSum=346]="piSum",t[t.piSumD=347]="piSumD",t[t.piSumDistinct=348]="piSumDistinct",t[t.piSumI=349]="piSumI",t[t.piSumTime=350]="piSumTime",t[t.piFirst=351]="piFirst",t[t.piLast=352]="piLast",t[t.priCount=353]="priCount",t[t.priCountDistinct=354]="priCountDistinct",t[t.priAvg=355]="priAvg",t[t.priAvgD=356]="priAvgD",t[t.priAvgDate=357]="priAvgDate",t[t.priAvgI=358]="priAvgI",t[t.priAvgTime=359]="priAvgTime",t[t.priMax=360]="priMax",t[t.priMaxD=361]="priMaxD",t[t.priMaxDate=362]="priMaxDate",t[t.priMaxI=363]="priMaxI",t[t.priMaxStr=364]="priMaxStr",t[t.priMaxTime=365]="priMaxTime",t[t.priMedian=366]="priMedian",t[t.priMedianD=367]="priMedianD",t[t.priMedianI=368]="priMedianI",t[t.priMin=369]="priMin",t[t.priMinD=370]="priMinD",t[t.priMinDate=371]="priMinDate",t[t.priMinI=372]="priMinI",t[t.priMinStr=373]="priMinStr",t[t.priMinTime=374]="priMinTime",t[t.priMode=375]="priMode",t[t.priModeD=376]="priModeD",t[t.priModeI=377]="priModeI",t[t.priSum=378]="priSum",t[t.priSumD=379]="priSumD",t[t.priSumDistinct=380]="priSumDistinct",t[t.priSumI=381]="priSumI",t[t.priSumTime=382]="priSumTime",t[t.priFirst=383]="priFirst",t[t.priLast=384]="priLast",t[t.Rank=385]="Rank",t[t.Abs=386]="Abs",t[t.Acos=387]="Acos",t[t.Asin=388]="Asin",t[t.Atan=389]="Atan",t[t.Ceiling=390]="Ceiling",t[t.Cos=391]="Cos",t[t.Div=392]="Div",t[t.Exp=393]="Exp",t[t.Floor=394]="Floor",t[t.Log=395]="Log",t[t.Maximum=396]="Maximum",t[t.Minimum=397]="Minimum",t[t.Round=398]="Round",t[t.Sign=399]="Sign";t[t.Sin=400]="Sin",t[t.Sqrt=401]="Sqrt",t[t.Tan=402]="Tan",t[t.Truncate=403]="Truncate",t[t.DateDiff=404]="DateDiff",t[t.DateSerial=405]="DateSerial",t[t.Day=406]="Day",t[t.DayOfWeek=407]="DayOfWeek",t[t.DayOfYear=408]="DayOfYear",t[t.DaysInMonth=409]="DaysInMonth",t[t.DaysInYear=410]="DaysInYear",t[t.Hour=411]="Hour",t[t.Minute=412]="Minute",t[t.Month=413]="Month",t[t.Second=414]="Second",t[t.TimeSerial=415]="TimeSerial",t[t.Year=416]="Year",t[t.MonthName=417]="MonthName",t[t.WeekOfYear=418]="WeekOfYear",t[t.WeekOfMonth=419]="WeekOfMonth",t[t.DateToStr=420]="DateToStr",t[t.DateToStrPl=421]="DateToStrPl",t[t.DateToStrRu=422]="DateToStrRu",t[t.DateToStrUa=423]="DateToStrUa",t[t.DateToStrPt=424]="DateToStrPt",t[t.DateToStrPtBr=425]="DateToStrPtBr",t[t.Insert=426]="Insert",t[t.Length=427]="Length",t[t.Remove=428]="Remove",t[t.Replace=429]="Replace",t[t.Roman=430]="Roman",t[t.Substring=431]="Substring",t[t.ToCurrencyWords=432]="ToCurrencyWords",t[t.ToCurrencyWordsEnGb=433]="ToCurrencyWordsEnGb",t[t.ToCurrencyWordsEnIn=434]="ToCurrencyWordsEnIn",t[t.ToCurrencyWordsEs=435]="ToCurrencyWordsEs",t[t.ToCurrencyWordsFr=436]="ToCurrencyWordsFr",t[t.ToCurrencyWordsNl=437]="ToCurrencyWordsNl",t[t.ToCurrencyWordsPl=438]="ToCurrencyWordsPl",t[t.ToCurrencyWordsPt=439]="ToCurrencyWordsPt",t[t.ToCurrencyWordsPtBr=440]="ToCurrencyWordsPtBr",t[t.ToCurrencyWordsRu=441]="ToCurrencyWordsRu",t[t.ToCurrencyWordsThai=442]="ToCurrencyWordsThai",t[t.ToCurrencyWordsUa=443]="ToCurrencyWordsUa",t[t.ToCurrencyWordsZh=444]="ToCurrencyWordsZh",t[t.ToLowerCase=445]="ToLowerCase",t[t.ToProperCase=446]="ToProperCase",t[t.ToUpperCase=447]="ToUpperCase",t[t.ToWords=448]="ToWords",t[t.ToWordsEs=449]="ToWordsEs",t[t.ToWordsEnIn=450]="ToWordsEnIn",t[t.ToWordsFa=451]="ToWordsFa",t[t.ToWordsPl=452]="ToWordsPl",t[t.ToWordsPt=453]="ToWordsPt",t[t.ToWordsRu=454]="ToWordsRu",t[t.ToWordsUa=455]="ToWordsUa",t[t.Trim=456]="Trim",t[t.TryParseDecimal=457]="TryParseDecimal",t[t.TryParseDouble=458]="TryParseDouble",t[t.TryParseLong=459]="TryParseLong",t[t.Arabic=460]="Arabic",t[t.Persian=461]="Persian",t[t.ToOrdinal=462]="ToOrdinal",t[t.Left=463]="Left",t[t.Mid=464]="Mid",t[t.Right=465]="Right",t[t.IsNull=466]="IsNull",t[t.Next=467]="Next",t[t.NextIsNull=468]="NextIsNull",t[t.Previous=469]="Previous",t[t.PreviousIsNull=470]="PreviousIsNull",t[t.IIF=471]="IIF",t[t.Choose=472]="Choose",t[t.Switch=473]="Switch",t[t.ToString=474]="ToString",t[t.Format=475]="Format",t[t.SystemConvertToBoolean=476]="SystemConvertToBoolean",t[t.SystemConvertToByte=477]="SystemConvertToByte",t[t.SystemConvertToChar=478]="SystemConvertToChar",t[t.SystemConvertToDateTime=479]="SystemConvertToDateTime",t[t.SystemConvertToDecimal=480]="SystemConvertToDecimal",t[t.SystemConvertToDouble=481]="SystemConvertToDouble",t[t.SystemConvertToInt16=482]="SystemConvertToInt16",t[t.SystemConvertToInt32=483]="SystemConvertToInt32",t[t.SystemConvertToInt64=484]="SystemConvertToInt64",t[t.SystemConvertToSByte=485]="SystemConvertToSByte",t[t.SystemConvertToSingle=486]="SystemConvertToSingle",t[t.SystemConvertToString=487]="SystemConvertToString",t[t.SystemConvertToUInt16=488]="SystemConvertToUInt16",t[t.SystemConvertToUInt32=489]="SystemConvertToUInt32",t[t.SystemConvertToUInt64=490]="SystemConvertToUInt64",t[t.MathRound=491]="MathRound",t[t.MathPow=492]="MathPow",t[t.AddAnchor=493]="AddAnchor",t[t.GetAnchorPageNumber=494]="GetAnchorPageNumber",t[t.GetAnchorPageNumberThrough=495]="GetAnchorPageNumberThrough",t[t.ConvertRtf=496]="ConvertRtf",t[t.ParseInt=497]="ParseInt",t[t.ParseDouble=498]="ParseDouble",t[t.ParseDecimal=499]="ParseDecimal",t[t.ParseDateTime=500]="ParseDateTime",t[t.StringIsNullOrEmpty=501]="StringIsNullOrEmpty",t[t.StringIsNullOrWhiteSpace=502]="StringIsNullOrWhiteSpace",t[t.EngineHelperJoinColumnContent=503]="EngineHelperJoinColumnContent",t[t.EngineHelperToQueryString=504]="EngineHelperToQueryString",t[t.m_Substring=1e3]="m_Substring",t[t.m_ToString=1001]="m_ToString",t[t.m_ToLower=1002]="m_ToLower",t[t.m_ToUpper=1003]="m_ToUpper",t[t.m_IndexOf=1004]="m_IndexOf",t[t.m_StartsWith=1005]="m_StartsWith",t[t.m_EndsWith=1006]="m_EndsWith",t[t.m_Parse=1007]="m_Parse",t[t.m_Contains=1008]="m_Contains",t[t.m_GetData=1009]="m_GetData",t[t.m_ToQueryString=1010]="m_ToQueryString",t[t.m_AddYears=1011]="m_AddYears",t[t.m_AddMonths=1012]="m_AddMonths",t[t.m_AddDays=1013]="m_AddDays",t[t.m_AddHours=1014]="m_AddHours",t[t.m_AddMinutes=1015]="m_AddMinutes",t[t.m_AddSeconds=1016]="m_AddSeconds",t[t.m_AddMilliseconds=1017]="m_AddMilliseconds",t[t.m_MethodNameSpace=1018]="m_MethodNameSpace",t[t.op_Add=2020]="op_Add",t[t.op_Sub=2021]="op_Sub",t[t.op_Mult=2022]="op_Mult",t[t.op_Div=2023]="op_Div",t[t.op_Mod=2024]="op_Mod",t[t.op_Power=2025]="op_Power",t[t.op_Neg=2026]="op_Neg",t[t.op_Cast=2027]="op_Cast",t[t.op_Not=2028]="op_Not",t[t.op_CompareLeft=2029]="op_CompareLeft",t[t.op_CompareLeftEqual=2030]="op_CompareLeftEqual",t[t.op_CompareRight=2031]="op_CompareRight",t[t.op_CompareRightEqual=2032]="op_CompareRightEqual",t[t.op_CompareEqual=2033]="op_CompareEqual",t[t.op_CompareNotEqual=2034]="op_CompareNotEqual",t[t.op_Shl=2035]="op_Shl",t[t.op_Shr=2036]="op_Shr",t[t.op_And=2037]="op_And",t[t.op_And2=2038]="op_And2",t[t.op_Or=2039]="op_Or",t[t.op_Or2=2040]="op_Or2",t[t.op_Xor=2041]="op_Xor",t[t.UserFunction=3e3]="UserFunction"}(o=t.StiFunctionType||(t.StiFunctionType={}));var a;!function(t){t[t.Substring=1e3]="Substring",t[t.ToString=1001]="ToString",t[t.ToLower=1002]="ToLower",t[t.ToUpper=1003]="ToUpper",t[t.IndexOf=1004]="IndexOf",t[t.StartsWith=1005]="StartsWith",t[t.EndsWith=1006]="EndsWith",t[t.Parse=1007]="Parse",t[t.Contains=1008]="Contains",t[t.GetData=1009]="GetData",t[t.ToQueryString=1010]="ToQueryString",t[t.AddYears=1011]="AddYears",t[t.AddMonths=1012]="AddMonths",t[t.AddDays=1013]="AddDays",t[t.AddHours=1014]="AddHours",t[t.AddMinutes=1015]="AddMinutes",t[t.AddSeconds=1016]="AddSeconds",t[t.AddMilliseconds=1017]="AddMilliseconds",t[t.MethodNameSpace=1018]="MethodNameSpace"}(a=t.StiMethodType||(t.StiMethodType={}));var s;!function(t){t[t.Param1=1]="Param1",t[t.Param2=2]="Param2",t[t.Param3=4]="Param3",t[t.Param4=8]="Param4"}(s=t.StiParameterNumber||(t.StiParameterNumber={}))}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Report.Dictionary.StiFunctions,o=t.System.Collections.Hashtable,a=t.System.DateTime,s=t.System.TimeSpan,l=t.System.TypeCode,u=function(){function t(t,e,i,r){void 0===r&&(r=String),this.name=t,this.number=e,this.arguments=i,this.returnType=r}return t}();r.StiParserMethodInfo=u;var c=function(){function r(){this.report=null,this.expressionPosition=0,this._componentsList=null,this.lockUserFunctionsList={},this._userFunctionsList=null}return r.prototype.get_category=function(e){if(null==e)return-1;var i=e.getStiType(),r=0;return i==String?r=1:i==Number?r=4:i==t.System.DateTime?r=8:i==Boolean&&(r=9),r},Object.defineProperty(r,"typesList",{get:function(){return null==this._typesList&&(this._typesList=new o,this._typesList.set("bool",l.Boolean),this._typesList.set("Boolean",l.Boolean),this._typesList.set("byte",l.Byte),this._typesList.set("Byte",l.Byte),this._typesList.set("sbyte",l.SByte),this._typesList.set("Sbyte",l.SByte),this._typesList.set("char",l.Char),this._typesList.set("Char",l.Char),this._typesList.set("decimal",l.Decimal),this._typesList.set("Decimal",l.Decimal),this._typesList.set("double",l.Double),this._typesList.set("Double",l.Double),this._typesList.set("float",l.Single),this._typesList.set("Single",l.Single),this._typesList.set("int",l.Int32),this._typesList.set("uint",l.UInt32),this._typesList.set("long",l.Int64),this._typesList.set("ulong",l.UInt64),this._typesList.set("short",l.Int16),this._typesList.set("Int16",l.Int16),this._typesList.set("Int32",l.Int32),this._typesList.set("Int64",l.Int64),this._typesList.set("ushort",l.UInt16),this._typesList.set("UInt16",l.UInt16),this._typesList.set("UInt32",l.UInt32),this._typesList.set("UInt64",l.UInt64),this._typesList.set("object",l.Object),this._typesList.set("string",l.String),this._typesList.set("String",l.String),this._typesList.set("DateTime",l.DateTime)),this._typesList},enumerable:!0,configurable:!0}),Object.defineProperty(r,"systemVariablesList",{get:function(){return null==this._systemVariablesList&&(this._systemVariablesList=new o,this._systemVariablesList.set("Column",i.StiSystemVariableType.Column),this._systemVariablesList.set("Line",i.StiSystemVariableType.Line),this._systemVariablesList.set("LineThrough",i.StiSystemVariableType.LineThrough),this._systemVariablesList.set("LineABC",i.StiSystemVariableType.LineABC),this._systemVariablesList.set("LineRoman",i.StiSystemVariableType.LineRoman),this._systemVariablesList.set("GroupLine",i.StiSystemVariableType.GroupLine),this._systemVariablesList.set("PageNumber",i.StiSystemVariableType.PageNumber),this._systemVariablesList.set("PageNumberThrough",i.StiSystemVariableType.PageNumberThrough),this._systemVariablesList.set("PageNofM",i.StiSystemVariableType.PageNofM),this._systemVariablesList.set("PageNofMThrough",i.StiSystemVariableType.PageNofMThrough),this._systemVariablesList.set("TotalPageCount",i.StiSystemVariableType.TotalPageCount),this._systemVariablesList.set("TotalPageCountThrough",i.StiSystemVariableType.TotalPageCountThrough),this._systemVariablesList.set("IsFirstPage",i.StiSystemVariableType.IsFirstPage),this._systemVariablesList.set("IsFirstPageThrough",i.StiSystemVariableType.IsFirstPageThrough),this._systemVariablesList.set("IsLastPage",i.StiSystemVariableType.IsLastPage),this._systemVariablesList.set("IsLastPageThrough",i.StiSystemVariableType.IsLastPageThrough),this._systemVariablesList.set("PageCopyNumber",i.StiSystemVariableType.PageCopyNumber),this._systemVariablesList.set("ReportAlias",i.StiSystemVariableType.ReportAlias),this._systemVariablesList.set("ReportAuthor",i.StiSystemVariableType.ReportAuthor),this._systemVariablesList.set("ReportChanged",i.StiSystemVariableType.ReportChanged),this._systemVariablesList.set("ReportCreated",i.StiSystemVariableType.ReportCreated),this._systemVariablesList.set("ReportDescription",i.StiSystemVariableType.ReportDescription),this._systemVariablesList.set("ReportName",i.StiSystemVariableType.ReportName),this._systemVariablesList.set("Time",i.StiSystemVariableType.Time),this._systemVariablesList.set("Today",i.StiSystemVariableType.Today),this._systemVariablesList.set("value",i.StiSystemVariableType.ConditionValue),this._systemVariablesList.set("tag",i.StiSystemVariableType.ConditionTag),this._systemVariablesList.set("sender",i.StiSystemVariableType.Sender),this._systemVariablesList.set("DateTime.Now",i.StiSystemVariableType.DateTimeNow),this._systemVariablesList.set("DateTime.Today",i.StiSystemVariableType.DateTimeToday)),this._systemVariablesList},enumerable:!0,configurable:!0}),Object.defineProperty(r,"propertiesList",{get:function(){return null==this._propertiesList&&(this._propertiesList=new o,this._propertiesList.set("Year",i.StiPropertyType.Year),this._propertiesList.set("Month",i.StiPropertyType.Month),this._propertiesList.set("Day",i.StiPropertyType.Day),this._propertiesList.set("Hour",i.StiPropertyType.Hour),this._propertiesList.set("Minute",i.StiPropertyType.Minute),this._propertiesList.set("Second",i.StiPropertyType.Second),this._propertiesList.set("Length",i.StiPropertyType.Length),this._propertiesList.set("From",i.StiPropertyType.From),this._propertiesList.set("To",i.StiPropertyType.To),this._propertiesList.set("FromDate",i.StiPropertyType.FromDate),this._propertiesList.set("ToDate",i.StiPropertyType.ToDate),this._propertiesList.set("FromTime",i.StiPropertyType.FromTime),this._propertiesList.set("ToTime",i.StiPropertyType.ToTime),this._propertiesList.set("SelectedLine",i.StiPropertyType.SelectedLine),this._propertiesList.set("Name",i.StiPropertyType.Name),this._propertiesList.set("TagValue",i.StiPropertyType.TagValue),this._propertiesList.set("Days",i.StiPropertyType.Days),this._propertiesList.set("Hours",i.StiPropertyType.Hours),this._propertiesList.set("Milliseconds",i.StiPropertyType.Milliseconds),this._propertiesList.set("Minutes",i.StiPropertyType.Minutes),this._propertiesList.set("Seconds",i.StiPropertyType.Seconds),this._propertiesList.set("Ticks",i.StiPropertyType.Ticks),this._propertiesList.set("TotalDays",i.StiPropertyType.TotalDays),this._propertiesList.set("TotalHours",i.StiPropertyType.TotalHours),this._propertiesList.set("TotalMinutes",i.StiPropertyType.TotalMinutes),this._propertiesList.set("TotalSeconds",i.StiPropertyType.TotalSeconds),this._propertiesList.set("TotalMilliseconds",i.StiPropertyType.TotalMilliseconds),this._propertiesList.set("Count",i.StiPropertyType.Count),this._propertiesList.set("BusinessObjectValue",i.StiPropertyType.BusinessObjectValue)),this._propertiesList},enumerable:!0,configurable:!0}),Object.defineProperty(r,"functionsList",{get:function(){if(null==this._functionsList){this._functionsList=new o,this._functionsList.set("Count",i.StiFunctionType.Count),this._functionsList.set("CountDistinct",i.StiFunctionType.CountDistinct),this._functionsList.set("Avg",i.StiFunctionType.Avg),this._functionsList.set("AvgD",i.StiFunctionType.AvgD),this._functionsList.set("AvgDate",i.StiFunctionType.AvgDate),this._functionsList.set("AvgI",i.StiFunctionType.AvgI),this._functionsList.set("AvgTime",i.StiFunctionType.AvgTime),this._functionsList.set("Max",i.StiFunctionType.Max),this._functionsList.set("MaxD",i.StiFunctionType.MaxD),this._functionsList.set("MaxDate",i.StiFunctionType.MaxDate),this._functionsList.set("MaxI",i.StiFunctionType.MaxI),this._functionsList.set("MaxStr",i.StiFunctionType.MaxStr),this._functionsList.set("MaxTime",i.StiFunctionType.MaxTime),this._functionsList.set("Median",i.StiFunctionType.Median),this._functionsList.set("MedianD",i.StiFunctionType.MedianD),this._functionsList.set("MedianI",i.StiFunctionType.MedianI),this._functionsList.set("Min",i.StiFunctionType.Min),this._functionsList.set("MinD",i.StiFunctionType.MinD),this._functionsList.set("MinDate",i.StiFunctionType.MinDate),this._functionsList.set("MinI",i.StiFunctionType.MinI),this._functionsList.set("MinStr",i.StiFunctionType.MinStr),this._functionsList.set("MinTime",i.StiFunctionType.MinTime),this._functionsList.set("Mode",i.StiFunctionType.Mode),this._functionsList.set("ModeD",i.StiFunctionType.ModeD),this._functionsList.set("ModeI",i.StiFunctionType.ModeI),this._functionsList.set("Sum",i.StiFunctionType.Sum),this._functionsList.set("SumD",i.StiFunctionType.SumD),this._functionsList.set("SumDistinct",i.StiFunctionType.SumDistinct),this._functionsList.set("SumI",i.StiFunctionType.SumI),this._functionsList.set("SumTime",i.StiFunctionType.SumTime),this._functionsList.set("First",i.StiFunctionType.First),this._functionsList.set("Last",i.StiFunctionType.Last),this._functionsList.set("CountRunning",i.StiFunctionType.rCount),this._functionsList.set("CountDistinctRunning",i.StiFunctionType.rCountDistinct),this._functionsList.set("AvgRunning",i.StiFunctionType.rAvg),this._functionsList.set("AvgDRunning",i.StiFunctionType.rAvgD),this._functionsList.set("AvgDateRunning",i.StiFunctionType.rAvgDate),this._functionsList.set("AvgIRunning",i.StiFunctionType.rAvgI),this._functionsList.set("AvgTimeRunning",i.StiFunctionType.rAvgTime),this._functionsList.set("MaxRunning",i.StiFunctionType.rMax),this._functionsList.set("MaxDRunning",i.StiFunctionType.rMaxD),this._functionsList.set("MaxDateRunning",i.StiFunctionType.rMaxDate),this._functionsList.set("MaxIRunning",i.StiFunctionType.rMaxI),this._functionsList.set("MaxStrRunning",i.StiFunctionType.rMaxStr),this._functionsList.set("MaxTimeRunning",i.StiFunctionType.rMaxTime),this._functionsList.set("MedianRunning",i.StiFunctionType.rMedian),this._functionsList.set("MedianDRunning",i.StiFunctionType.rMedianD),this._functionsList.set("MedianIRunning",i.StiFunctionType.rMedianI),this._functionsList.set("MinRunning",i.StiFunctionType.rMin),this._functionsList.set("MinDRunning",i.StiFunctionType.rMinD),this._functionsList.set("MinDateRunning",i.StiFunctionType.rMinDate),this._functionsList.set("MinIRunning",i.StiFunctionType.rMinI),this._functionsList.set("MinStrRunning",i.StiFunctionType.rMinStr),this._functionsList.set("MinTimeRunning",i.StiFunctionType.rMinTime),this._functionsList.set("ModeRunning",i.StiFunctionType.rMode),this._functionsList.set("ModeDRunning",i.StiFunctionType.rModeD),this._functionsList.set("ModeIRunning",i.StiFunctionType.rModeI),this._functionsList.set("SumRunning",i.StiFunctionType.rSum),this._functionsList.set("SumDRunning",i.StiFunctionType.rSumD),this._functionsList.set("SumDistinctRunning",i.StiFunctionType.rSumDistinct),this._functionsList.set("SumIRunning",i.StiFunctionType.rSumI),this._functionsList.set("SumTimeRunning",i.StiFunctionType.rSumTime),this._functionsList.set("FirstRunning",i.StiFunctionType.rFirst),this._functionsList.set("LastRunning",i.StiFunctionType.rLast),this._functionsList.set("CountIf",i.StiFunctionType.iCount),this._functionsList.set("CountDistinctIf",i.StiFunctionType.iCountDistinct),this._functionsList.set("AvgIf",i.StiFunctionType.iAvg),this._functionsList.set("AvgDIf",i.StiFunctionType.iAvgD),this._functionsList.set("AvgDateIf",i.StiFunctionType.iAvgDate),this._functionsList.set("AvgIIf",i.StiFunctionType.iAvgI),this._functionsList.set("AvgTimeIf",i.StiFunctionType.iAvgTime),this._functionsList.set("MaxIf",i.StiFunctionType.iMax),this._functionsList.set("MaxDIf",i.StiFunctionType.iMaxD),this._functionsList.set("MaxDateIf",i.StiFunctionType.iMaxDate),this._functionsList.set("MaxIIf",i.StiFunctionType.iMaxI),this._functionsList.set("MaxStrIf",i.StiFunctionType.iMaxStr),this._functionsList.set("MaxTimeIf",i.StiFunctionType.iMaxTime),this._functionsList.set("MedianIf",i.StiFunctionType.iMedian),this._functionsList.set("MedianDIf",i.StiFunctionType.iMedianD),this._functionsList.set("MedianIIf",i.StiFunctionType.iMedianI),this._functionsList.set("MinIf",i.StiFunctionType.iMin),this._functionsList.set("MinDIf",i.StiFunctionType.iMinD),this._functionsList.set("MinDateIf",i.StiFunctionType.iMinDate),this._functionsList.set("MinIIf",i.StiFunctionType.iMinI),this._functionsList.set("MinStrIf",i.StiFunctionType.iMinStr),this._functionsList.set("MinTimeIf",i.StiFunctionType.iMinTime),this._functionsList.set("ModeIf",i.StiFunctionType.iMode),this._functionsList.set("ModeDIf",i.StiFunctionType.iModeD),this._functionsList.set("ModeIIf",i.StiFunctionType.iModeI),this._functionsList.set("SumIf",i.StiFunctionType.iSum),this._functionsList.set("SumDIf",i.StiFunctionType.iSumD),this._functionsList.set("SumDistinctIf",i.StiFunctionType.iSumDistinct),this._functionsList.set("SumIIf",i.StiFunctionType.iSumI),this._functionsList.set("SumTimeIf",i.StiFunctionType.iSumTime),this._functionsList.set("FirstIf",i.StiFunctionType.iFirst),this._functionsList.set("LastIf",i.StiFunctionType.iLast),this._functionsList.set("CountIfRunning",i.StiFunctionType.riCount),this._functionsList.set("CountDistinctIfRunning",i.StiFunctionType.riCountDistinct),this._functionsList.set("AvgIfRunning",i.StiFunctionType.riAvg),this._functionsList.set("AvgDIfRunning",i.StiFunctionType.riAvgD),this._functionsList.set("AvgDateIfRunning",i.StiFunctionType.riAvgDate),this._functionsList.set("AvgIIfRunning",i.StiFunctionType.riAvgI),this._functionsList.set("AvgTimeIfRunning",i.StiFunctionType.riAvgTime),this._functionsList.set("MaxIfRunning",i.StiFunctionType.riMax),this._functionsList.set("MaxDIfRunning",i.StiFunctionType.riMaxD),this._functionsList.set("MaxDateIfRunning",i.StiFunctionType.riMaxDate),this._functionsList.set("MaxIIfRunning",i.StiFunctionType.riMaxI),this._functionsList.set("MaxStrIfRunning",i.StiFunctionType.riMaxStr),this._functionsList.set("MaxTimeIfRunning",i.StiFunctionType.riMaxTime),this._functionsList.set("MedianIfRunning",i.StiFunctionType.riMedian),this._functionsList.set("MedianDIfRunning",i.StiFunctionType.riMedianD),this._functionsList.set("MedianIIfRunning",i.StiFunctionType.riMedianI),this._functionsList.set("MinIfRunning",i.StiFunctionType.riMin),this._functionsList.set("MinDIfRunning",i.StiFunctionType.riMinD),this._functionsList.set("MinDateIfRunning",i.StiFunctionType.riMinDate),this._functionsList.set("MinIIfRunning",i.StiFunctionType.riMinI),this._functionsList.set("MinStrIfRunning",i.StiFunctionType.riMinStr),this._functionsList.set("MinTimeIfRunning",i.StiFunctionType.riMinTime),this._functionsList.set("ModeIfRunning",i.StiFunctionType.riMode),this._functionsList.set("ModeDIfRunning",i.StiFunctionType.riModeD),this._functionsList.set("ModeIIfRunning",i.StiFunctionType.riModeI),this._functionsList.set("SumIfRunning",i.StiFunctionType.riSum),this._functionsList.set("SumDIfRunning",i.StiFunctionType.riSumD),this._functionsList.set("SumDistinctIfRunning",i.StiFunctionType.riSumDistinct),this._functionsList.set("SumIIfRunning",i.StiFunctionType.riSumI),this._functionsList.set("SumTimeIfRunning",i.StiFunctionType.riSumTime),this._functionsList.set("FirstIfRunning",i.StiFunctionType.riFirst),this._functionsList.set("LastIfRunning",i.StiFunctionType.riLast),this._functionsList.set("colCount",i.StiFunctionType.cCount),this._functionsList.set("colCountDistinct",i.StiFunctionType.cCountDistinct),this._functionsList.set("colAvg",i.StiFunctionType.cAvg),this._functionsList.set("colAvgD",i.StiFunctionType.cAvgD),this._functionsList.set("colAvgDate",i.StiFunctionType.cAvgDate),this._functionsList.set("colAvgI",i.StiFunctionType.cAvgI),this._functionsList.set("colAvgTime",i.StiFunctionType.cAvgTime),this._functionsList.set("colMax",i.StiFunctionType.cMax),this._functionsList.set("colMaxD",i.StiFunctionType.cMaxD),this._functionsList.set("colMaxDate",i.StiFunctionType.cMaxDate),this._functionsList.set("colMaxI",i.StiFunctionType.cMaxI),this._functionsList.set("colMaxStr",i.StiFunctionType.cMaxStr),this._functionsList.set("colMaxTime",i.StiFunctionType.cMaxTime),this._functionsList.set("colMedian",i.StiFunctionType.cMedian),this._functionsList.set("colMedianD",i.StiFunctionType.cMedianD),this._functionsList.set("colMedianI",i.StiFunctionType.cMedianI),this._functionsList.set("colMin",i.StiFunctionType.cMin),this._functionsList.set("colMinD",i.StiFunctionType.cMinD),this._functionsList.set("colMinDate",i.StiFunctionType.cMinDate),this._functionsList.set("colMinI",i.StiFunctionType.cMinI),this._functionsList.set("colMinStr",i.StiFunctionType.cMinStr),this._functionsList.set("colMinTime",i.StiFunctionType.cMinTime),this._functionsList.set("colMode",i.StiFunctionType.cMode),this._functionsList.set("colModeD",i.StiFunctionType.cModeD),this._functionsList.set("colModeI",i.StiFunctionType.cModeI),this._functionsList.set("colSum",i.StiFunctionType.cSum),this._functionsList.set("colSumD",i.StiFunctionType.cSumD),this._functionsList.set("colSumDistinct",i.StiFunctionType.cSumDistinct),this._functionsList.set("colSumI",i.StiFunctionType.cSumI),this._functionsList.set("colSumTime",i.StiFunctionType.cSumTime),this._functionsList.set("colFirst",i.StiFunctionType.cFirst),this._functionsList.set("colLast",i.StiFunctionType.cLast),this._functionsList.set("colCountRunning",i.StiFunctionType.crCount),this._functionsList.set("colCountDistinctRunning",i.StiFunctionType.crCountDistinct),this._functionsList.set("colAvgRunning",i.StiFunctionType.crAvg),this._functionsList.set("colAvgDRunning",i.StiFunctionType.crAvgD),this._functionsList.set("colAvgDateRunning",i.StiFunctionType.crAvgDate),this._functionsList.set("colAvgIRunning",i.StiFunctionType.crAvgI),this._functionsList.set("colAvgTimeRunning",i.StiFunctionType.crAvgTime),this._functionsList.set("colMaxRunning",i.StiFunctionType.crMax),this._functionsList.set("colMaxDRunning",i.StiFunctionType.crMaxD),this._functionsList.set("colMaxDateRunning",i.StiFunctionType.crMaxDate),this._functionsList.set("colMaxIRunning",i.StiFunctionType.crMaxI),this._functionsList.set("colMaxStrRunning",i.StiFunctionType.crMaxStr),this._functionsList.set("colMaxTimeRunning",i.StiFunctionType.crMaxTime),this._functionsList.set("colMedianRunning",i.StiFunctionType.crMedian),this._functionsList.set("colMedianDRunning",i.StiFunctionType.crMedianD),this._functionsList.set("colMedianIRunning",i.StiFunctionType.crMedianI),this._functionsList.set("colMinRunning",i.StiFunctionType.crMin),this._functionsList.set("colMinDRunning",i.StiFunctionType.crMinD),this._functionsList.set("colMinDateRunning",i.StiFunctionType.crMinDate),this._functionsList.set("colMinIRunning",i.StiFunctionType.crMinI),this._functionsList.set("colMinStrRunning",i.StiFunctionType.crMinStr),this._functionsList.set("colMinTimeRunning",i.StiFunctionType.crMinTime),this._functionsList.set("colModeRunning",i.StiFunctionType.crMode),this._functionsList.set("colModeDRunning",i.StiFunctionType.crModeD),this._functionsList.set("colModeIRunning",i.StiFunctionType.crModeI),this._functionsList.set("colSumRunning",i.StiFunctionType.crSum),this._functionsList.set("colSumDRunning",i.StiFunctionType.crSumD),this._functionsList.set("colSumDistinctRunning",i.StiFunctionType.crSumDistinct),this._functionsList.set("colSumIRunning",i.StiFunctionType.crSumI),this._functionsList.set("colSumTimeRunning",i.StiFunctionType.crSumTime),this._functionsList.set("colFirstRunning",i.StiFunctionType.crFirst),this._functionsList.set("colLastRunning",i.StiFunctionType.crLast),this._functionsList.set("colCountIf",i.StiFunctionType.ciCount),this._functionsList.set("colCountDistinctIf",i.StiFunctionType.ciCountDistinct),this._functionsList.set("colAvgIf",i.StiFunctionType.ciAvg),this._functionsList.set("colAvgDIf",i.StiFunctionType.ciAvgD),this._functionsList.set("colAvgDateIf",i.StiFunctionType.ciAvgDate),this._functionsList.set("colAvgIIf",i.StiFunctionType.ciAvgI),this._functionsList.set("colAvgTimeIf",i.StiFunctionType.ciAvgTime);this._functionsList.set("colMaxIf",i.StiFunctionType.ciMax),this._functionsList.set("colMaxDIf",i.StiFunctionType.ciMaxD),this._functionsList.set("colMaxDateIf",i.StiFunctionType.ciMaxDate),this._functionsList.set("colMaxIIf",i.StiFunctionType.ciMaxI),this._functionsList.set("colMaxStrIf",i.StiFunctionType.ciMaxStr),this._functionsList.set("colMaxTimeIf",i.StiFunctionType.ciMaxTime),this._functionsList.set("colMedianIf",i.StiFunctionType.ciMedian),this._functionsList.set("colMedianDIf",i.StiFunctionType.ciMedianD),this._functionsList.set("colMedianIIf",i.StiFunctionType.ciMedianI),this._functionsList.set("colMinIf",i.StiFunctionType.ciMin),this._functionsList.set("colMinDIf",i.StiFunctionType.ciMinD),this._functionsList.set("colMinDateIf",i.StiFunctionType.ciMinDate),this._functionsList.set("colMinIIf",i.StiFunctionType.ciMinI),this._functionsList.set("colMinStrIf",i.StiFunctionType.ciMinStr),this._functionsList.set("colMinTimeIf",i.StiFunctionType.ciMinTime),this._functionsList.set("colModeIf",i.StiFunctionType.ciMode),this._functionsList.set("colModeDIf",i.StiFunctionType.ciModeD),this._functionsList.set("colModeIIf",i.StiFunctionType.ciModeI),this._functionsList.set("colSumIf",i.StiFunctionType.ciSum),this._functionsList.set("colSumDIf",i.StiFunctionType.ciSumD),this._functionsList.set("colSumDistinctIf",i.StiFunctionType.ciSumDistinct),this._functionsList.set("colSumIIf",i.StiFunctionType.ciSumI),this._functionsList.set("colSumTimeIf",i.StiFunctionType.ciSumTime),this._functionsList.set("colFirstIf",i.StiFunctionType.ciFirst),this._functionsList.set("colLastIf",i.StiFunctionType.ciLast),this._functionsList.set("colCountIfRunning",i.StiFunctionType.criCount),this._functionsList.set("colCountDistinctIfRunning",i.StiFunctionType.criCountDistinct),this._functionsList.set("colAvgIfRunning",i.StiFunctionType.criAvg),this._functionsList.set("colAvgDIfRunning",i.StiFunctionType.criAvgD),this._functionsList.set("colAvgDateIfRunning",i.StiFunctionType.criAvgDate),this._functionsList.set("colAvgIIfRunning",i.StiFunctionType.criAvgI),this._functionsList.set("colAvgTimeIfRunning",i.StiFunctionType.criAvgTime),this._functionsList.set("colMaxIfRunning",i.StiFunctionType.criMax),this._functionsList.set("colMaxDIfRunning",i.StiFunctionType.criMaxD),this._functionsList.set("colMaxDateIfRunning",i.StiFunctionType.criMaxDate),this._functionsList.set("colMaxIIfRunning",i.StiFunctionType.criMaxI),this._functionsList.set("colMaxStrIfRunning",i.StiFunctionType.criMaxStr),this._functionsList.set("colMaxTimeIfRunning",i.StiFunctionType.criMaxTime),this._functionsList.set("colMedianIfRunning",i.StiFunctionType.criMedian),this._functionsList.set("colMedianDIfRunning",i.StiFunctionType.criMedianD),this._functionsList.set("colMedianIIfRunning",i.StiFunctionType.criMedianI),this._functionsList.set("colMinIfRunning",i.StiFunctionType.criMin),this._functionsList.set("colMinDIfRunning",i.StiFunctionType.criMinD),this._functionsList.set("colMinDateIfRunning",i.StiFunctionType.criMinDate),this._functionsList.set("colMinIIfRunning",i.StiFunctionType.criMinI),this._functionsList.set("colMinStrIfRunning",i.StiFunctionType.criMinStr),this._functionsList.set("colMinTimeIfRunning",i.StiFunctionType.criMinTime),this._functionsList.set("colModeIfRunning",i.StiFunctionType.criMode),this._functionsList.set("colModeDIfRunning",i.StiFunctionType.criModeD),this._functionsList.set("colModeIIfRunning",i.StiFunctionType.criModeI),this._functionsList.set("colSumIfRunning",i.StiFunctionType.criSum),this._functionsList.set("colSumDIfRunning",i.StiFunctionType.criSumD),this._functionsList.set("colSumDistinctIfRunning",i.StiFunctionType.criSumDistinct),this._functionsList.set("colSumIIfRunning",i.StiFunctionType.criSumI),this._functionsList.set("colSumTimeIfRunning",i.StiFunctionType.criSumTime),this._functionsList.set("colFirstIfRunning",i.StiFunctionType.criFirst),this._functionsList.set("colLastIfRunning",i.StiFunctionType.criLast),this._functionsList.set("cCount",i.StiFunctionType.pCount),this._functionsList.set("cCountDistinct",i.StiFunctionType.pCountDistinct),this._functionsList.set("cAvg",i.StiFunctionType.pAvg),this._functionsList.set("cAvgD",i.StiFunctionType.pAvgD),this._functionsList.set("cAvgDate",i.StiFunctionType.pAvgDate),this._functionsList.set("cAvgI",i.StiFunctionType.pAvgI),this._functionsList.set("cAvgTime",i.StiFunctionType.pAvgTime),this._functionsList.set("cMax",i.StiFunctionType.pMax),this._functionsList.set("cMaxD",i.StiFunctionType.pMaxD),this._functionsList.set("cMaxDate",i.StiFunctionType.pMaxDate),this._functionsList.set("cMaxI",i.StiFunctionType.pMaxI),this._functionsList.set("cMaxStr",i.StiFunctionType.pMaxStr),this._functionsList.set("cMaxTime",i.StiFunctionType.pMaxTime),this._functionsList.set("cMedian",i.StiFunctionType.pMedian),this._functionsList.set("cMedianD",i.StiFunctionType.pMedianD),this._functionsList.set("cMedianI",i.StiFunctionType.pMedianI),this._functionsList.set("cMin",i.StiFunctionType.pMin),this._functionsList.set("cMinD",i.StiFunctionType.pMinD),this._functionsList.set("cMinDate",i.StiFunctionType.pMinDate),this._functionsList.set("cMinI",i.StiFunctionType.pMinI),this._functionsList.set("cMinStr",i.StiFunctionType.pMinStr),this._functionsList.set("cMinTime",i.StiFunctionType.pMinTime),this._functionsList.set("cMode",i.StiFunctionType.pMode),this._functionsList.set("cModeD",i.StiFunctionType.pModeD),this._functionsList.set("cModeI",i.StiFunctionType.pModeI),this._functionsList.set("cSum",i.StiFunctionType.pSum),this._functionsList.set("cSumD",i.StiFunctionType.pSumD),this._functionsList.set("cSumDistinct",i.StiFunctionType.pSumDistinct),this._functionsList.set("cSumI",i.StiFunctionType.pSumI),this._functionsList.set("cSumTime",i.StiFunctionType.pSumTime),this._functionsList.set("cFirst",i.StiFunctionType.pFirst),this._functionsList.set("cLast",i.StiFunctionType.pLast),this._functionsList.set("cCountRunning",i.StiFunctionType.prCount),this._functionsList.set("cCountDistinctRunning",i.StiFunctionType.prCountDistinct),this._functionsList.set("cAvgRunning",i.StiFunctionType.prAvg),this._functionsList.set("cAvgDRunning",i.StiFunctionType.prAvgD),this._functionsList.set("cAvgDateRunning",i.StiFunctionType.prAvgDate),this._functionsList.set("cAvgIRunning",i.StiFunctionType.prAvgI),this._functionsList.set("cAvgTimeRunning",i.StiFunctionType.prAvgTime),this._functionsList.set("cMaxRunning",i.StiFunctionType.prMax),this._functionsList.set("cMaxDRunning",i.StiFunctionType.prMaxD),this._functionsList.set("cMaxDateRunning",i.StiFunctionType.prMaxDate),this._functionsList.set("cMaxIRunning",i.StiFunctionType.prMaxI),this._functionsList.set("cMaxStrRunning",i.StiFunctionType.prMaxStr),this._functionsList.set("cMaxTimeRunning",i.StiFunctionType.prMaxTime),this._functionsList.set("cMedianRunning",i.StiFunctionType.prMedian),this._functionsList.set("cMedianDRunning",i.StiFunctionType.prMedianD),this._functionsList.set("cMedianIRunning",i.StiFunctionType.prMedianI),this._functionsList.set("cMinRunning",i.StiFunctionType.prMin),this._functionsList.set("cMinDRunning",i.StiFunctionType.prMinD),this._functionsList.set("cMinDateRunning",i.StiFunctionType.prMinDate),this._functionsList.set("cMinIRunning",i.StiFunctionType.prMinI),this._functionsList.set("cMinStrRunning",i.StiFunctionType.prMinStr),this._functionsList.set("cMinTimeRunning",i.StiFunctionType.prMinTime),this._functionsList.set("cModeRunning",i.StiFunctionType.prMode),this._functionsList.set("cModeDRunning",i.StiFunctionType.prModeD),this._functionsList.set("cModeIRunning",i.StiFunctionType.prModeI),this._functionsList.set("cSumRunning",i.StiFunctionType.prSum),this._functionsList.set("cSumDRunning",i.StiFunctionType.prSumD),this._functionsList.set("cSumDistinctRunning",i.StiFunctionType.prSumDistinct),this._functionsList.set("cSumIRunning",i.StiFunctionType.prSumI),this._functionsList.set("cSumTimeRunning",i.StiFunctionType.prSumTime),this._functionsList.set("cFirstRunning",i.StiFunctionType.prFirst),this._functionsList.set("cLastRunning",i.StiFunctionType.prLast),this._functionsList.set("cCountIf",i.StiFunctionType.piCount),this._functionsList.set("cCountDistinctIf",i.StiFunctionType.piCountDistinct),this._functionsList.set("cAvgIf",i.StiFunctionType.piAvg),this._functionsList.set("cAvgDIf",i.StiFunctionType.piAvgD),this._functionsList.set("cAvgDateIf",i.StiFunctionType.piAvgDate),this._functionsList.set("cAvgIIf",i.StiFunctionType.piAvgI),this._functionsList.set("cAvgTimeIf",i.StiFunctionType.piAvgTime),this._functionsList.set("cMaxIf",i.StiFunctionType.piMax),this._functionsList.set("cMaxDIf",i.StiFunctionType.piMaxD),this._functionsList.set("cMaxDateIf",i.StiFunctionType.piMaxDate),this._functionsList.set("cMaxIIf",i.StiFunctionType.piMaxI),this._functionsList.set("cMaxStrIf",i.StiFunctionType.piMaxStr),this._functionsList.set("cMaxTimeIf",i.StiFunctionType.piMaxTime),this._functionsList.set("cMedianIf",i.StiFunctionType.piMedian),this._functionsList.set("cMedianDIf",i.StiFunctionType.piMedianD),this._functionsList.set("cMedianIIf",i.StiFunctionType.piMedianI),this._functionsList.set("cMinIf",i.StiFunctionType.piMin),this._functionsList.set("cMinDIf",i.StiFunctionType.piMinD),this._functionsList.set("cMinDateIf",i.StiFunctionType.piMinDate),this._functionsList.set("cMinIIf",i.StiFunctionType.piMinI),this._functionsList.set("cMinStrIf",i.StiFunctionType.piMinStr),this._functionsList.set("cMinTimeIf",i.StiFunctionType.piMinTime),this._functionsList.set("cModeIf",i.StiFunctionType.piMode),this._functionsList.set("cModeDIf",i.StiFunctionType.piModeD),this._functionsList.set("cModeIIf",i.StiFunctionType.piModeI),this._functionsList.set("cSumIf",i.StiFunctionType.piSum),this._functionsList.set("cSumDIf",i.StiFunctionType.piSumD),this._functionsList.set("cSumDistinctIf",i.StiFunctionType.piSumDistinct),this._functionsList.set("cSumIIf",i.StiFunctionType.piSumI),this._functionsList.set("cSumTimeIf",i.StiFunctionType.piSumTime),this._functionsList.set("cFirstIf",i.StiFunctionType.piFirst),this._functionsList.set("cLastIf",i.StiFunctionType.piLast),this._functionsList.set("cCountIfRunning",i.StiFunctionType.priCount),this._functionsList.set("cCountDistinctIfRunning",i.StiFunctionType.priCountDistinct),this._functionsList.set("cAvgIfRunning",i.StiFunctionType.priAvg),this._functionsList.set("cAvgDIfRunning",i.StiFunctionType.priAvgD),this._functionsList.set("cAvgDateIfRunning",i.StiFunctionType.priAvgDate),this._functionsList.set("cAvgIIfRunning",i.StiFunctionType.priAvgI),this._functionsList.set("cAvgTimeIfRunning",i.StiFunctionType.priAvgTime),this._functionsList.set("cMaxIfRunning",i.StiFunctionType.priMax),this._functionsList.set("cMaxDIfRunning",i.StiFunctionType.priMaxD),this._functionsList.set("cMaxDateIfRunning",i.StiFunctionType.priMaxDate),this._functionsList.set("cMaxIIfRunning",i.StiFunctionType.priMaxI),this._functionsList.set("cMaxStrIfRunning",i.StiFunctionType.priMaxStr),this._functionsList.set("cMaxTimeIfRunning",i.StiFunctionType.priMaxTime),this._functionsList.set("cMedianIfRunning",i.StiFunctionType.priMedian),this._functionsList.set("cMedianDIfRunning",i.StiFunctionType.priMedianD),this._functionsList.set("cMedianIIfRunning",i.StiFunctionType.priMedianI),this._functionsList.set("cMinIfRunning",i.StiFunctionType.priMin),this._functionsList.set("cMinDIfRunning",i.StiFunctionType.priMinD),this._functionsList.set("cMinDateIfRunning",i.StiFunctionType.priMinDate),this._functionsList.set("cMinIIfRunning",i.StiFunctionType.priMinI),this._functionsList.set("cMinStrIfRunning",i.StiFunctionType.priMinStr),this._functionsList.set("cMinTimeIfRunning",i.StiFunctionType.priMinTime),this._functionsList.set("cModeIfRunning",i.StiFunctionType.priMode),this._functionsList.set("cModeDIfRunning",i.StiFunctionType.priModeD),this._functionsList.set("cModeIIfRunning",i.StiFunctionType.priModeI),this._functionsList.set("cSumIfRunning",i.StiFunctionType.priSum),this._functionsList.set("cSumDIfRunning",i.StiFunctionType.priSumD),this._functionsList.set("cSumDistinctIfRunning",i.StiFunctionType.priSumDistinct),this._functionsList.set("cSumIIfRunning",i.StiFunctionType.priSumI),this._functionsList.set("cSumTimeIfRunning",i.StiFunctionType.priSumTime),this._functionsList.set("cFirstIfRunning",i.StiFunctionType.priFirst),this._functionsList.set("cLastIfRunning",i.StiFunctionType.priLast),this._functionsList.set("Totals.Count",i.StiFunctionType.Count),this._functionsList.set("Totals.CountDistinct",i.StiFunctionType.CountDistinct),this._functionsList.set("Totals.Avg",i.StiFunctionType.Avg),this._functionsList.set("Totals.AvgD",i.StiFunctionType.AvgD),this._functionsList.set("Totals.AvgDate",i.StiFunctionType.AvgDate),this._functionsList.set("Totals.AvgI",i.StiFunctionType.AvgI),this._functionsList.set("Totals.AvgTime",i.StiFunctionType.AvgTime),this._functionsList.set("Totals.Max",i.StiFunctionType.Max),this._functionsList.set("Totals.MaxD",i.StiFunctionType.MaxD),this._functionsList.set("Totals.MaxDate",i.StiFunctionType.MaxDate),this._functionsList.set("Totals.MaxI",i.StiFunctionType.MaxI),this._functionsList.set("Totals.MaxStr",i.StiFunctionType.MaxStr),this._functionsList.set("Totals.MaxTime",i.StiFunctionType.MaxTime),this._functionsList.set("Totals.Median",i.StiFunctionType.Median),this._functionsList.set("Totals.MedianD",i.StiFunctionType.MedianD);this._functionsList.set("Totals.MedianI",i.StiFunctionType.MedianI),this._functionsList.set("Totals.Min",i.StiFunctionType.Min),this._functionsList.set("Totals.MinD",i.StiFunctionType.MinD),this._functionsList.set("Totals.MinDate",i.StiFunctionType.MinDate),this._functionsList.set("Totals.MinI",i.StiFunctionType.MinI),this._functionsList.set("Totals.MinStr",i.StiFunctionType.MinStr),this._functionsList.set("Totals.MinTime",i.StiFunctionType.MinTime),this._functionsList.set("Totals.Mode",i.StiFunctionType.Mode),this._functionsList.set("Totals.ModeD",i.StiFunctionType.ModeD),this._functionsList.set("Totals.ModeI",i.StiFunctionType.ModeI),this._functionsList.set("Totals.Sum",i.StiFunctionType.Sum),this._functionsList.set("Totals.SumD",i.StiFunctionType.SumD),this._functionsList.set("Totals.SumDistinct",i.StiFunctionType.SumDistinct),this._functionsList.set("Totals.SumI",i.StiFunctionType.SumI),this._functionsList.set("Totals.SumTime",i.StiFunctionType.SumTime),this._functionsList.set("Totals.First",i.StiFunctionType.First),this._functionsList.set("Totals.Last",i.StiFunctionType.Last),this._functionsList.set("Totals.cCount",i.StiFunctionType.pCount),this._functionsList.set("Totals.cCountDistinct",i.StiFunctionType.pCountDistinct),this._functionsList.set("Totals.cAvg",i.StiFunctionType.pAvg),this._functionsList.set("Totals.cAvgD",i.StiFunctionType.pAvgD),this._functionsList.set("Totals.cAvgDate",i.StiFunctionType.pAvgDate),this._functionsList.set("Totals.cAvgI",i.StiFunctionType.pAvgI),this._functionsList.set("Totals.cAvgTime",i.StiFunctionType.pAvgTime),this._functionsList.set("Totals.cMax",i.StiFunctionType.pMax),this._functionsList.set("Totals.cMaxD",i.StiFunctionType.pMaxD),this._functionsList.set("Totals.cMaxDate",i.StiFunctionType.pMaxDate),this._functionsList.set("Totals.cMaxI",i.StiFunctionType.pMaxI),this._functionsList.set("Totals.cMaxStr",i.StiFunctionType.pMaxStr),this._functionsList.set("Totals.cMaxTime",i.StiFunctionType.pMaxTime),this._functionsList.set("Totals.cMedian",i.StiFunctionType.pMedian),this._functionsList.set("Totals.cMedianD",i.StiFunctionType.pMedianD),this._functionsList.set("Totals.cMedianI",i.StiFunctionType.pMedianI),this._functionsList.set("Totals.cMin",i.StiFunctionType.pMin),this._functionsList.set("Totals.cMinD",i.StiFunctionType.pMinD),this._functionsList.set("Totals.cMinDate",i.StiFunctionType.pMinDate),this._functionsList.set("Totals.cMinI",i.StiFunctionType.pMinI),this._functionsList.set("Totals.cMinStr",i.StiFunctionType.pMinStr),this._functionsList.set("Totals.cMinTime",i.StiFunctionType.pMinTime),this._functionsList.set("Totals.cMode",i.StiFunctionType.pMode),this._functionsList.set("Totals.cModeD",i.StiFunctionType.pModeD),this._functionsList.set("Totals.cModeI",i.StiFunctionType.pModeI),this._functionsList.set("Totals.cSum",i.StiFunctionType.pSum),this._functionsList.set("Totals.cSumD",i.StiFunctionType.pSumD),this._functionsList.set("Totals.cSumDistinct",i.StiFunctionType.pSumDistinct),this._functionsList.set("Totals.cSumI",i.StiFunctionType.pSumI),this._functionsList.set("Totals.cSumTime",i.StiFunctionType.pSumTime),this._functionsList.set("Totals.cFirst",i.StiFunctionType.pFirst),this._functionsList.set("Totals.cLast",i.StiFunctionType.pLast),this._functionsList.set("Totals.cCountRunning",i.StiFunctionType.prCount),this._functionsList.set("Totals.cCountDistinctRunning",i.StiFunctionType.prCountDistinct),this._functionsList.set("Totals.cAvgRunning",i.StiFunctionType.prAvg),this._functionsList.set("Totals.cAvgDRunning",i.StiFunctionType.prAvgD),this._functionsList.set("Totals.cAvgDateRunning",i.StiFunctionType.prAvgDate),this._functionsList.set("Totals.cAvgIRunning",i.StiFunctionType.prAvgI),this._functionsList.set("Totals.cAvgTimeRunning",i.StiFunctionType.prAvgTime),this._functionsList.set("Totals.cMaxRunning",i.StiFunctionType.prMax),this._functionsList.set("Totals.cMaxDRunning",i.StiFunctionType.prMaxD),this._functionsList.set("Totals.cMaxDateRunning",i.StiFunctionType.prMaxDate),this._functionsList.set("Totals.cMaxIRunning",i.StiFunctionType.prMaxI),this._functionsList.set("Totals.cMaxStrRunning",i.StiFunctionType.prMaxStr),this._functionsList.set("Totals.cMaxTimeRunning",i.StiFunctionType.prMaxTime),this._functionsList.set("Totals.cMedianRunning",i.StiFunctionType.prMedian),this._functionsList.set("Totals.cMedianDRunning",i.StiFunctionType.prMedianD),this._functionsList.set("Totals.cMedianIRunning",i.StiFunctionType.prMedianI),this._functionsList.set("Totals.cMinRunning",i.StiFunctionType.prMin),this._functionsList.set("Totals.cMinDRunning",i.StiFunctionType.prMinD),this._functionsList.set("Totals.cMinDateRunning",i.StiFunctionType.prMinDate),this._functionsList.set("Totals.cMinIRunning",i.StiFunctionType.prMinI),this._functionsList.set("Totals.cMinStrRunning",i.StiFunctionType.prMinStr),this._functionsList.set("Totals.cMinTimeRunning",i.StiFunctionType.prMinTime),this._functionsList.set("Totals.cModeRunning",i.StiFunctionType.prMode),this._functionsList.set("Totals.cModeDRunning",i.StiFunctionType.prModeD),this._functionsList.set("Totals.cModeIRunning",i.StiFunctionType.prModeI),this._functionsList.set("Totals.cSumRunning",i.StiFunctionType.prSum),this._functionsList.set("Totals.cSumDRunning",i.StiFunctionType.prSumD),this._functionsList.set("Totals.cSumDistinctRunning",i.StiFunctionType.prSumDistinct),this._functionsList.set("Totals.cSumIRunning",i.StiFunctionType.prSumI),this._functionsList.set("Totals.cSumTimeRunning",i.StiFunctionType.prSumTime),this._functionsList.set("Totals.cFirstRunning",i.StiFunctionType.prFirst),this._functionsList.set("Totals.cLastRunning",i.StiFunctionType.prLast),this._functionsList.set("Totals.Rank",i.StiFunctionType.Rank),this._functionsList.set("Abs",i.StiFunctionType.Abs),this._functionsList.set("Acos",i.StiFunctionType.Acos),this._functionsList.set("Asin",i.StiFunctionType.Asin),this._functionsList.set("Atan",i.StiFunctionType.Atan),this._functionsList.set("Ceiling",i.StiFunctionType.Ceiling),this._functionsList.set("Cos",i.StiFunctionType.Cos),this._functionsList.set("Div",i.StiFunctionType.Div),this._functionsList.set("Exp",i.StiFunctionType.Exp),this._functionsList.set("Floor",i.StiFunctionType.Floor),this._functionsList.set("Log",i.StiFunctionType.Log),this._functionsList.set("Maximum",i.StiFunctionType.Maximum),this._functionsList.set("Minimum",i.StiFunctionType.Minimum),this._functionsList.set("Round",i.StiFunctionType.Round),this._functionsList.set("Sign",i.StiFunctionType.Sign),this._functionsList.set("Sin",i.StiFunctionType.Sin),this._functionsList.set("Sqrt",i.StiFunctionType.Sqrt),this._functionsList.set("Tan",i.StiFunctionType.Tan),this._functionsList.set("Truncate",i.StiFunctionType.Truncate),this._functionsList.set("DateDiff",i.StiFunctionType.DateDiff),this._functionsList.set("DateSerial",i.StiFunctionType.DateSerial),this._functionsList.set("Day",i.StiFunctionType.Day),this._functionsList.set("DayOfWeek",i.StiFunctionType.DayOfWeek),this._functionsList.set("DayOfYear",i.StiFunctionType.DayOfYear),this._functionsList.set("DaysInMonth",i.StiFunctionType.DaysInMonth),this._functionsList.set("DaysInYear",i.StiFunctionType.DaysInYear),this._functionsList.set("Hour",i.StiFunctionType.Hour),this._functionsList.set("Minute",i.StiFunctionType.Minute),this._functionsList.set("Month",i.StiFunctionType.Month),this._functionsList.set("Second",i.StiFunctionType.Second),this._functionsList.set("TimeSerial",i.StiFunctionType.TimeSerial),this._functionsList.set("Year",i.StiFunctionType.Year),this._functionsList.set("MonthName",i.StiFunctionType.MonthName),this._functionsList.set("WeekOfYear",i.StiFunctionType.WeekOfYear),this._functionsList.set("WeekOfMonth",i.StiFunctionType.WeekOfMonth),this._functionsList.set("DateToStr",i.StiFunctionType.DateToStr),this._functionsList.set("DateToStrPl",i.StiFunctionType.DateToStrPl),this._functionsList.set("DateToStrRu",i.StiFunctionType.DateToStrRu),this._functionsList.set("DateToStrUa",i.StiFunctionType.DateToStrUa),this._functionsList.set("DateToStrPt",i.StiFunctionType.DateToStrPt),this._functionsList.set("DateToStrPtBr",i.StiFunctionType.DateToStrPtBr),this._functionsList.set("Insert",i.StiFunctionType.Insert),this._functionsList.set("Length",i.StiFunctionType.Length),this._functionsList.set("Remove",i.StiFunctionType.Remove),this._functionsList.set("Replace",i.StiFunctionType.Replace),this._functionsList.set("Roman",i.StiFunctionType.Roman),this._functionsList.set("Substring",i.StiFunctionType.Substring),this._functionsList.set("ToCurrencyWords",i.StiFunctionType.ToCurrencyWords),this._functionsList.set("ToCurrencyWordsEnGb",i.StiFunctionType.ToCurrencyWordsEnGb),this._functionsList.set("ToCurrencyWordsEnIn",i.StiFunctionType.ToCurrencyWordsEnIn),this._functionsList.set("ToCurrencyWordsEs",i.StiFunctionType.ToCurrencyWordsEs),this._functionsList.set("ToCurrencyWordsFr",i.StiFunctionType.ToCurrencyWordsFr),this._functionsList.set("ToCurrencyWordsNl",i.StiFunctionType.ToCurrencyWordsNl),this._functionsList.set("ToCurrencyWordsPl",i.StiFunctionType.ToCurrencyWordsPl),this._functionsList.set("ToCurrencyWordsPt",i.StiFunctionType.ToCurrencyWordsPt),this._functionsList.set("ToCurrencyWordsPtBr",i.StiFunctionType.ToCurrencyWordsPtBr),this._functionsList.set("ToCurrencyWordsRu",i.StiFunctionType.ToCurrencyWordsRu),this._functionsList.set("ToCurrencyWordsThai",i.StiFunctionType.ToCurrencyWordsThai),this._functionsList.set("ToCurrencyWordsUa",i.StiFunctionType.ToCurrencyWordsUa),this._functionsList.set("ToCurrencyWordsZh",i.StiFunctionType.ToCurrencyWordsZh),this._functionsList.set("ToLowerCase",i.StiFunctionType.ToLowerCase),this._functionsList.set("ToProperCase",i.StiFunctionType.ToProperCase),this._functionsList.set("ToUpperCase",i.StiFunctionType.ToUpperCase),this._functionsList.set("ToWords",i.StiFunctionType.ToWords),this._functionsList.set("ToWordsEs",i.StiFunctionType.ToWordsEs),this._functionsList.set("ToWordsEnIn",i.StiFunctionType.ToWordsEnIn),this._functionsList.set("ToWordsFa",i.StiFunctionType.ToWordsFa),this._functionsList.set("ToWordsPl",i.StiFunctionType.ToWordsPl),this._functionsList.set("ToWordsPt",i.StiFunctionType.ToWordsPt),this._functionsList.set("ToWordsRu",i.StiFunctionType.ToWordsRu),this._functionsList.set("ToWordsUa",i.StiFunctionType.ToWordsUa),this._functionsList.set("Trim",i.StiFunctionType.Trim),this._functionsList.set("TryParseDecimal",i.StiFunctionType.TryParseDecimal),this._functionsList.set("TryParseDouble",i.StiFunctionType.TryParseDouble),this._functionsList.set("TryParseLong",i.StiFunctionType.TryParseLong),this._functionsList.set("Arabic",i.StiFunctionType.Arabic),this._functionsList.set("Persian",i.StiFunctionType.Persian),this._functionsList.set("ToOrdinal",i.StiFunctionType.ToOrdinal),this._functionsList.set("Left",i.StiFunctionType.Left),this._functionsList.set("Mid",i.StiFunctionType.Mid),this._functionsList.set("Right",i.StiFunctionType.Right),this._functionsList.set("IsNull",i.StiFunctionType.IsNull),this._functionsList.set("Next",i.StiFunctionType.Next),this._functionsList.set("NextIsNull",i.StiFunctionType.NextIsNull),this._functionsList.set("Previous",i.StiFunctionType.Previous),this._functionsList.set("PreviousIsNull",i.StiFunctionType.PreviousIsNull),this._functionsList.set("IIF",i.StiFunctionType.IIF),this._functionsList.set("Choose",i.StiFunctionType.Choose),this._functionsList.set("Switch",i.StiFunctionType.Switch),this._functionsList.set("ToString",i.StiFunctionType.ToString),this._functionsList.set("Format",i.StiFunctionType.Format),this._functionsList.set("System.Convert.ToBoolean",i.StiFunctionType.SystemConvertToBoolean),this._functionsList.set("System.Convert.ToByte",i.StiFunctionType.SystemConvertToByte),this._functionsList.set("System.Convert.ToChar",i.StiFunctionType.SystemConvertToChar),this._functionsList.set("System.Convert.ToDateTime",i.StiFunctionType.SystemConvertToDateTime),this._functionsList.set("System.Convert.ToDecimal",i.StiFunctionType.SystemConvertToDecimal),this._functionsList.set("System.Convert.ToDouble",i.StiFunctionType.SystemConvertToDouble),this._functionsList.set("System.Convert.ToInt16",i.StiFunctionType.SystemConvertToInt16),this._functionsList.set("System.Convert.ToInt32",i.StiFunctionType.SystemConvertToInt32),this._functionsList.set("System.Convert.ToInt64",i.StiFunctionType.SystemConvertToInt64),this._functionsList.set("System.Convert.ToSByte",i.StiFunctionType.SystemConvertToSByte),this._functionsList.set("System.Convert.ToSingle",i.StiFunctionType.SystemConvertToSingle),this._functionsList.set("System.Convert.ToString",i.StiFunctionType.SystemConvertToString),this._functionsList.set("System.Convert.ToUInt16",i.StiFunctionType.SystemConvertToUInt16),this._functionsList.set("System.Convert.ToUInt32",i.StiFunctionType.SystemConvertToUInt32),this._functionsList.set("System.Convert.ToUInt64",i.StiFunctionType.SystemConvertToUInt64),this._functionsList.set("Convert.ToBoolean",i.StiFunctionType.SystemConvertToBoolean),this._functionsList.set("Convert.ToByte",i.StiFunctionType.SystemConvertToByte),this._functionsList.set("Convert.ToChar",i.StiFunctionType.SystemConvertToChar),this._functionsList.set("Convert.ToDateTime",i.StiFunctionType.SystemConvertToDateTime),this._functionsList.set("Convert.ToDecimal",i.StiFunctionType.SystemConvertToDecimal),this._functionsList.set("Convert.ToDouble",i.StiFunctionType.SystemConvertToDouble),this._functionsList.set("Convert.ToInt16",i.StiFunctionType.SystemConvertToInt16),this._functionsList.set("Convert.ToInt32",i.StiFunctionType.SystemConvertToInt32),this._functionsList.set("Convert.ToInt64",i.StiFunctionType.SystemConvertToInt64),this._functionsList.set("Convert.ToSByte",i.StiFunctionType.SystemConvertToSByte),this._functionsList.set("Convert.ToSingle",i.StiFunctionType.SystemConvertToSingle),this._functionsList.set("Convert.ToString",i.StiFunctionType.SystemConvertToString),this._functionsList.set("Convert.ToUInt16",i.StiFunctionType.SystemConvertToUInt16);this._functionsList.set("Convert.ToUInt32",i.StiFunctionType.SystemConvertToUInt32),this._functionsList.set("Convert.ToUInt64",i.StiFunctionType.SystemConvertToUInt64),this._functionsList.set("Math.Round",i.StiFunctionType.MathRound),this._functionsList.set("Math.Pow",i.StiFunctionType.MathPow),this._functionsList.set("AddAnchor",i.StiFunctionType.AddAnchor),this._functionsList.set("GetAnchorPageNumber",i.StiFunctionType.GetAnchorPageNumber),this._functionsList.set("GetAnchorPageNumberThrough",i.StiFunctionType.GetAnchorPageNumberThrough),this._functionsList.set("ConvertRtf",i.StiFunctionType.ConvertRtf),this._functionsList.set("int.Parse",i.StiFunctionType.ParseInt),this._functionsList.set("double.Parse",i.StiFunctionType.ParseDouble),this._functionsList.set("Double.Parse",i.StiFunctionType.ParseDouble),this._functionsList.set("decimal.Parse",i.StiFunctionType.ParseDecimal),this._functionsList.set("Decimal.Parse",i.StiFunctionType.ParseDecimal),this._functionsList.set("DateTime.Parse",i.StiFunctionType.ParseDateTime),this._functionsList.set("string.IsNullOrEmpty",i.StiFunctionType.StringIsNullOrEmpty),this._functionsList.set("String.IsNullOrEmpty",i.StiFunctionType.StringIsNullOrEmpty),this._functionsList.set("string.IsNullOrWhiteSpace",i.StiFunctionType.StringIsNullOrWhiteSpace),this._functionsList.set("String.IsNullOrWhiteSpace",i.StiFunctionType.StringIsNullOrWhiteSpace),this._functionsList.set("string.Format",i.StiFunctionType.Format),this._functionsList.set("String.Format",i.StiFunctionType.Format),this._functionsList.set("Func.EngineHelper.JoinColumnContent",i.StiFunctionType.EngineHelperJoinColumnContent),this._functionsList.set("Func.EngineHelper.ToQueryString",i.StiFunctionType.EngineHelperToQueryString)}return this._functionsList},enumerable:!0,configurable:!0}),Object.defineProperty(r,"methodsList",{get:function(){return null==this._methodsList&&(this._methodsList=new o,this._methodsList.set("Substring",i.StiMethodType.Substring),this._methodsList.set("ToString",i.StiMethodType.ToString),this._methodsList.set("ToLower",i.StiMethodType.ToLower),this._methodsList.set("ToUpper",i.StiMethodType.ToUpper),this._methodsList.set("IndexOf",i.StiMethodType.IndexOf),this._methodsList.set("StartsWith",i.StiMethodType.StartsWith),this._methodsList.set("EndsWith",i.StiMethodType.EndsWith),this._methodsList.set("Parse",i.StiMethodType.Parse),this._methodsList.set("Contains",i.StiMethodType.Contains),this._methodsList.set("GetData",i.StiMethodType.GetData),this._methodsList.set("ToQueryString",i.StiMethodType.ToQueryString),this._methodsList.set("AddYears",i.StiMethodType.AddYears),this._methodsList.set("AddMonths",i.StiMethodType.AddMonths),this._methodsList.set("AddDays",i.StiMethodType.AddDays),this._methodsList.set("AddHours",i.StiMethodType.AddHours),this._methodsList.set("AddMinutes",i.StiMethodType.AddMinutes),this._methodsList.set("AddSeconds",i.StiMethodType.AddSeconds),this._methodsList.set("AddMilliseconds",i.StiMethodType.AddMilliseconds)),this._methodsList},enumerable:!0,configurable:!0}),Object.defineProperty(r,"parametersList",{get:function(){if(null==this._parametersList){this._parametersList=new o,this._parametersList.set(i.StiFunctionType.CountDistinct,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.Avg,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.AvgD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.AvgDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.AvgI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.AvgTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.Max,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MaxD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MaxDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MaxI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MaxStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MaxTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.Median,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MedianD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MedianI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.Min,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MinD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MinDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MinI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MinStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.MinTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.Mode,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.ModeD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.ModeI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.Sum,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.SumD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.SumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.SumI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.SumTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.First,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.Last,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rCountDistinct,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rAvg,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rAvgD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rAvgDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rAvgI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rAvgTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMax,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMaxD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMaxDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMaxI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMaxStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMaxTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMedian,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMedianD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMedianI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMin,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMinD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMinDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMinI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMinStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMinTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rMode,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rModeD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rModeI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rSum,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rSumD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.rSumI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rSumTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rFirst,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.rLast,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.iCount,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.iCountDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iAvg,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iAvgD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iAvgDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iAvgI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iAvgTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMax,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMaxD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMaxDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMaxI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMaxStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMaxTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMedian,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMedianD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMedianI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMin,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMinD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMinDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMinI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMinStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMinTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iMode,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iModeD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iModeI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iSum,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iSumD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3|i.StiParameterNumber.Param4),this._parametersList.set(i.StiFunctionType.iSumI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iSumTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iFirst,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.iLast,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riCount,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.riCountDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riAvg,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riAvgD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riAvgDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riAvgI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riAvgTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMax,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMaxD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMaxDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMaxI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMaxStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMaxTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMedian,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMedianD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMedianI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMin,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMinD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMinDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMinI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMinStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMinTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riMode,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riModeD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riModeI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riSum,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riSumD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3|i.StiParameterNumber.Param4),this._parametersList.set(i.StiFunctionType.riSumI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riSumTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riFirst,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.riLast,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.cCountDistinct,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cAvg,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cAvgD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cAvgDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cAvgI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cAvgTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMax,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMaxD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMaxDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMaxI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMaxStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMaxTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMedian,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMedianD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMedianI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMin,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMinD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMinDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMinI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMinStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMinTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cMode,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cModeD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cModeI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cSum,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cSumD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.cSumI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cSumTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cFirst,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.cLast,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crCountDistinct,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crAvg,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crAvgD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crAvgDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crAvgI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crAvgTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMax,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMaxD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMaxDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMaxI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMaxStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMaxTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMedian,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMedianD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMedianI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMin,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMinD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMinDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMinI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMinStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMinTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crMode,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crModeD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crModeI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crSum,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crSumD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.crSumI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crSumTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crFirst,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.crLast,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.ciCount,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.ciCountDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciAvg,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciAvgD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciAvgDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciAvgI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciAvgTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMax,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMaxD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMaxDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMaxI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3);this._parametersList.set(i.StiFunctionType.ciMaxStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMaxTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMedian,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMedianD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMedianI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMin,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMinD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMinDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMinI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMinStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMinTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciMode,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciModeD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciModeI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciSum,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciSumD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3|i.StiParameterNumber.Param4),this._parametersList.set(i.StiFunctionType.ciSumI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciSumTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciFirst,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.ciLast,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criCount,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.criCountDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criAvg,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criAvgD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criAvgDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criAvgI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criAvgTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMax,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMaxD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMaxDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMaxI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMaxStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMaxTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMedian,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMedianD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMedianI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMin,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMinD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMinDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMinI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMinStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMinTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criMode,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criModeD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criModeI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criSum,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criSumD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3|i.StiParameterNumber.Param4),this._parametersList.set(i.StiFunctionType.criSumI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criSumTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criFirst,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.criLast,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.pCountDistinct,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pAvg,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pAvgD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pAvgDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pAvgI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pAvgTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMax,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMaxD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMaxDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMaxI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMaxStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMaxTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMedian,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMedianD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMedianI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMin,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMinD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMinDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMinI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMinStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMinTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pMode,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pModeD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pModeI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pSum,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pSumD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.pSumI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pSumTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pFirst,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.pLast,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prCountDistinct,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prAvg,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prAvgD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prAvgDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prAvgI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prAvgTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMax,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMaxD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMaxDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMaxI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMaxStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMaxTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMedian,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMedianD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMedianI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMin,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMinD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMinDate,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMinI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMinStr,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMinTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prMode,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prModeD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prModeI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prSum,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prSumD,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.prSumI,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prSumTime,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prFirst,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.prLast,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.piCount,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.piCountDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piAvg,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piAvgD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piAvgDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piAvgI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piAvgTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMax,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMaxD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMaxDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMaxI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMaxStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMaxTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMedian,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMedianD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMedianI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMin,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMinD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMinDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMinI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMinStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMinTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piMode,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piModeD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piModeI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piSum,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piSumD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3|i.StiParameterNumber.Param4),this._parametersList.set(i.StiFunctionType.piSumI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piSumTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piFirst,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.piLast,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priCount,i.StiParameterNumber.Param2),this._parametersList.set(i.StiFunctionType.priCountDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priAvg,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priAvgD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priAvgDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priAvgI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priAvgTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMax,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMaxD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMaxDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMaxI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMaxStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMaxTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMedian,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMedianD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMedianI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMin,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMinD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMinDate,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMinI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMinStr,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMinTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priMode,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priModeD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priModeI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priSum,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priSumD,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priSumDistinct,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3|i.StiParameterNumber.Param4),this._parametersList.set(i.StiFunctionType.priSumI,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priSumTime,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priFirst,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.priLast,i.StiParameterNumber.Param2|i.StiParameterNumber.Param3),this._parametersList.set(i.StiFunctionType.Rank,i.StiParameterNumber.Param2)}return this._parametersList},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"componentsList",{get:function(){if(null==this._componentsList){this._componentsList=new o;for(var t=this.report.getComponents(),e=0,i=t.list;e<i.length;e++){var r=i[e];this._componentsList.set(r.name,r)}this._componentsList.set("this",this.report)}return this._componentsList},enumerable:!0,configurable:!0}),Object.defineProperty(r,"methodsHash",{get:function(){if(null==this._methodsHash){var t=[new u(i.StiFunctionType.DateDiff,1,[a.getStiType(),a.getStiType()],s.getStiType()),new u(i.StiFunctionType.DateSerial,1,[Number.getStiType()],a.getStiType()),new u(i.StiFunctionType.DateSerial,2,[Number.getStiType(),Number.getStiType(),Number.getStiType()],a.getStiType()),new u(i.StiFunctionType.TimeSerial,1,[Number.getStiType(),Number.getStiType(),Number.getStiType()],s.getStiType()),new u(i.StiFunctionType.Year,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Month,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Day,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Hour,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Minute,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Second,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.DayOfWeek,1,[a.getStiType()]),new u(i.StiFunctionType.DayOfWeek,3,[a.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.DayOfWeek,5,[a.getStiType(),String.getStiType()]),new u(i.StiFunctionType.DayOfWeek,7,[a.getStiType(),String.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.DayOfYear,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.DaysInMonth,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.DaysInMonth,3,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.DaysInYear,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.DaysInYear,3,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MonthName,1,[a.getStiType()]),new u(i.StiFunctionType.MonthName,3,[a.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.MonthName,5,[a.getStiType(),String.getStiType()]),new u(i.StiFunctionType.MonthName,7,[a.getStiType(),String.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.WeekOfYear,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.WeekOfYear,3,[a.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.WeekOfYear,5,[a.getStiType(),Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.WeekOfMonth,1,[a.getStiType()],Number.getStiType()),new u(i.StiFunctionType.WeekOfMonth,3,[a.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.WeekOfMonth,5,[a.getStiType(),Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Abs,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Abs,2,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Abs,3,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Acos,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Asin,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Atan,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Cos,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Sin,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Tan,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Ceiling,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Ceiling,2,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Div,1,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Div,2,[Number.getStiType(),Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Div,3,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Div,4,[Number.getStiType(),Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Div,5,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Div,6,[Number.getStiType(),Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Exp,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Floor,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Floor,2,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Log,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Maximum,1,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Maximum,2,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Maximum,3,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Minimum,1,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Minimum,2,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Minimum,3,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Round,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Round,2,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Round,3,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Round,4,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Sign,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Sign,2,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Sign,3,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Truncate,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Truncate,2,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.IsNull,1,[Object.getStiType(),String.getStiType()],Boolean.getStiType()),new u(i.StiFunctionType.Next,1,[Object.getStiType(),String.getStiType()],Object.getStiType()),new u(i.StiFunctionType.NextIsNull,1,[Object.getStiType(),String.getStiType()],Boolean.getStiType()),new u(i.StiFunctionType.Previous,1,[Object.getStiType(),String.getStiType()],Object.getStiType()),new u(i.StiFunctionType.PreviousIsNull,1,[Object.getStiType(),String.getStiType()],Boolean.getStiType()),new u(i.StiFunctionType.DateToStr,1,[a.getStiType()]),new u(i.StiFunctionType.DateToStr,3,[a.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.DateToStrPl,1,[a.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.DateToStrRu,1,[a.getStiType()]),new u(i.StiFunctionType.DateToStrRu,2,[a.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.DateToStrUa,1,[a.getStiType()]),new u(i.StiFunctionType.DateToStrUa,2,[a.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.DateToStrPt,1,[a.getStiType()]),new u(i.StiFunctionType.DateToStrPtBr,1,[a.getStiType()]),new u(i.StiFunctionType.Insert,1,[String.getStiType(),Number.getStiType(),String.getStiType()]),new u(i.StiFunctionType.Left,1,[String.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.Right,1,[String.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.Mid,1,[String.getStiType(),Number.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.Length,1,[String.getStiType()],Number.getStiType()),new u(i.StiFunctionType.Remove,1,[String.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.Remove,2,[String.getStiType(),Number.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.Replace,1,[String.getStiType(),String.getStiType(),String.getStiType()]),new u(i.StiFunctionType.Substring,1,[String.getStiType(),Number.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.Trim,1,[String.getStiType()]),new u(i.StiFunctionType.Roman,1,[Number.getStiType()]),new u(i.StiFunctionType.ToOrdinal,1,[Number.getStiType()]),new u(i.StiFunctionType.ToLowerCase,1,[String.getStiType()]),new u(i.StiFunctionType.ToUpperCase,1,[String.getStiType()]),new u(i.StiFunctionType.ToProperCase,1,[String.getStiType()]),new u(i.StiFunctionType.ToCurrencyWords,1,[Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWords,4,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWords,7,[Number.getStiType(),Boolean.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWords,10,[Number.getStiType(),Boolean.getStiType(),Boolean.getStiType(),String.getStiType(),String.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsEnGb,1,[Number.getStiType(),String.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsEnIn,1,[String.getStiType(),String.getStiType(),Number.getStiType(),Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsEs,1,[Number.getStiType(),String.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsFr,1,[Number.getStiType(),String.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsNl,1,[Number.getStiType(),String.getStiType(),Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsPl,1,[Number.getStiType(),String.getStiType(),Boolean.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsPt,1,[Number.getStiType(),Boolean.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsPtBr,1,[Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsRu,1,[Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsRu,4,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsRu,7,[Number.getStiType(),Boolean.getStiType(),String.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsRu,10,[Number.getStiType(),String.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsThai,1,[Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsUa,1,[Number.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsUa,4,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsUa,7,[Number.getStiType(),Boolean.getStiType(),String.getStiType()]),new u(i.StiFunctionType.ToCurrencyWordsZh,1,[Number.getStiType()]),new u(i.StiFunctionType.ToWords,1,[Number.getStiType()]),new u(i.StiFunctionType.ToWords,4,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToWordsEs,1,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToWordsEs,2,[Number.getStiType(),Boolean.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToWordsEnIn,1,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToWordsFa,1,[Number.getStiType()]),new u(i.StiFunctionType.ToWordsPl,1,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToWordsPt,1,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToWordsRu,1,[Number.getStiType()]),new u(i.StiFunctionType.ToWordsRu,4,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.ToWordsUa,1,[Number.getStiType()]),new u(i.StiFunctionType.ToWordsUa,4,[Number.getStiType(),Boolean.getStiType()]),new u(i.StiFunctionType.Rank,1,[Object.getStiType(),Object.getStiType()]),new u(i.StiFunctionType.Rank,2,[Object.getStiType(),Object.getStiType(),Boolean.getStiType(),Object.getStiType()]),new u(i.StiFunctionType.MathRound,1,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathRound,2,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathRound,3,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathRound,4,[Number.getStiType(),Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathRound,5,[Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathRound,6,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathRound,7,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathRound,8,[Number.getStiType(),Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.MathPow,1,[Number.getStiType(),Number.getStiType()],Number.getStiType()),new u(i.StiFunctionType.GetAnchorPageNumber,1,[Object.getStiType()],Number.getStiType()),new u(i.StiFunctionType.GetAnchorPageNumberThrough,1,[Object.getStiType()],Number.getStiType()),new u(i.StiFunctionType.ParseDateTime,1,[String.getStiType()],a.getStiType()),new u(i.StiFunctionType.ParseDecimal,1,[String.getStiType()],Number.getStiType()),new u(i.StiFunctionType.ParseDouble,1,[String.getStiType()],Number.getStiType()),new u(i.StiFunctionType.ParseInt,1,[String.getStiType()],Number.getStiType())];this._methodsHash=new o;for(var e=0,r=t;e<r.length;e++){var n=r[e],l=this._methodsHash.get(n.name);null==l&&(l=[],this._methodsHash.set(n.name,l)),l.add(n)}}return this._methodsHash},enumerable:!0,configurable:!0}),Object.defineProperty(r,"constantsList",{get:function(){return null==this._constantsList&&(this._constantsList=new o,this._constantsList.set("true",!0),this._constantsList.set("True",!0),this._constantsList.set("false",!1),this._constantsList.set("False",!1),this._constantsList.set("null",null),this._constantsList.set("DBNull",this.namespaceObj),this._constantsList.set("DBNull.Value",null),this._constantsList.set("MidpointRounding",this.namespaceObj),this._constantsList.set("MidpointRounding.ToEven",t.System.MidpointRounding.ToEven),this._constantsList.set("MidpointRounding.AwayFromZero",t.System.MidpointRounding.AwayFromZero),this._constantsList.set("StiRankOrder",this.namespaceObj),this._constantsList.set("StiRankOrder.Asc",e.StiRankOrder.Asc),this._constantsList.set("StiRankOrder.Desc",e.StiRankOrder.Desc),this._constantsList.set("DayOfWeek",this.namespaceObj),this._constantsList.set("DayOfWeek.Sunday",t.System.DayOfWeek.Sunday),this._constantsList.set("DayOfWeek.Monday",t.System.DayOfWeek.Monday),this._constantsList.set("DayOfWeek.Tuesday",t.System.DayOfWeek.Tuesday),this._constantsList.set("DayOfWeek.Wednesday",t.System.DayOfWeek.Wednesday),this._constantsList.set("DayOfWeek.Thursday",t.System.DayOfWeek.Thursday),this._constantsList.set("DayOfWeek.Friday",t.System.DayOfWeek.Friday),this._constantsList.set("DayOfWeek.Saturday",t.System.DayOfWeek.Saturday),this._constantsList.set("CalendarWeekRule",this.namespaceObj),this._constantsList.set("CalendarWeekRule.FirstDay",t.System.Globalization.CalendarWeekRule.FirstDay),this._constantsList.set("CalendarWeekRule.FirstFullWeek",t.System.Globalization.CalendarWeekRule.FirstFullWeek),this._constantsList.set("CalendarWeekRule.FirstFourDayWeek",t.System.Globalization.CalendarWeekRule.FirstFourDayWeek),this._constantsList.set("System.Globalization.CalendarWeekRule",this.namespaceObj),this._constantsList.set("System.Globalization.CalendarWeekRule.FirstDay",t.System.Globalization.CalendarWeekRule.FirstDay),this._constantsList.set("System.Globalization.CalendarWeekRule.FirstFullWeek",t.System.Globalization.CalendarWeekRule.FirstFullWeek),this._constantsList.set("System.Globalization.CalendarWeekRule.FirstFourDayWeek",t.System.Globalization.CalendarWeekRule.FirstFourDayWeek)),this._constantsList},enumerable:!0,configurable:!0}),Object.defineProperty(r,"namespacesList",{get:function(){return null==this._namespacesList&&(this._namespacesList=new o,this._namespacesList.set("Totals",this.namespaceObj),this._namespacesList.set("System",this.namespaceObj),this._namespacesList.set("System.Convert",this.namespaceObj),this._namespacesList.set("System.Globalization",this.namespaceObj),this._namespacesList.set("Convert",this.namespaceObj),this._namespacesList.set("Math",this.namespaceObj),this._namespacesList.set("Func",this.namespaceObj),this._namespacesList.set("Func.EngineHelper",this.namespaceObj)),this._namespacesList},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"userFunctionsList",{get:function(){if(null==this._userFunctionsList){this._userFunctionsList=new o;for(var t=new o,e=n.getFunctions(!1),r=0,a=e;r<a.length;r++){var s=a[r],l=t.get(s.functionName);null==l&&(l=[],t.set(s.functionName,l),this._userFunctionsList.set(s.functionName,i.StiFunctionType.UserFunction+this._userFunctionsList.count)),l.add(s)}}return this._userFunctionsList},enumerable:!0,configurable:!0}),r._typesList=null,r._systemVariablesList=null,r._propertiesList=null,r._functionsList=null,r._methodsList=null,r._parametersList=null,r._methodsHash=null,r._constantsList=null,r.namespaceObj={},r._namespacesList=null,r}();r.StiParser_Properties=c}(r=i.StiParser||(i.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(i){var r;!function(t){t[t.SyntaxError=0]="SyntaxError",t[t.IntegralConstantIsTooLarge=1]="IntegralConstantIsTooLarge",t[t.ExpressionIsEmpty=2]="ExpressionIsEmpty",t[t.DivisionByZero=3]="DivisionByZero",t[t.UnexpectedEndOfExpression=4]="UnexpectedEndOfExpression",t[t.NameDoesNotExistInCurrentContext=5]="NameDoesNotExistInCurrentContext",t[t.UnprocessedLexemesRemain=6]="UnprocessedLexemesRemain",t[t.LeftParenthesisExpected=7]="LeftParenthesisExpected",t[t.RightParenthesisExpected=8]="RightParenthesisExpected",t[t.FieldMethodOrPropertyNotFound=9]="FieldMethodOrPropertyNotFound",t[t.OperatorCannotBeAppliedToOperands=10]="OperatorCannotBeAppliedToOperands",t[t.FunctionNotFound=11]="FunctionNotFound",t[t.NoOverloadForMethodTakesNArguments=12]="NoOverloadForMethodTakesNArguments",t[t.FunctionHasInvalidArgument=13]="FunctionHasInvalidArgument",t[t.FunctionNotYetImplemented=14]="FunctionNotYetImplemented",t[t.MethodHasInvalidArgument=15]="MethodHasInvalidArgument",t[t.ItemDoesNotContainDefinition=16]="ItemDoesNotContainDefinition",t[t.NoMatchingOverloadedMethod=17]="NoMatchingOverloadedMethod",t[t.TheTypeOrNamespaceNotExistInTheNamespace=18]="TheTypeOrNamespaceNotExistInTheNamespace"}(r=i.ParserErrorCode||(i.ParserErrorCode={}));var n=function(){function t(t,e,i){this.position=-1,this.length=-1,this.typeCode=t,this.position=e,this.length=i}return t.prototype.toString=function(){return String.stiFormat("{0}",this.typeCode)},t}(),o=function(){function t(t){this.message=null,this.baseMessage=null,this.position=-1,this.length=-1,this.message=t}return t}();i.StiParserException=o;var a=function(i){function r(){return null!==i&&i.apply(this,arguments)||this}return __extends(r,i),r.prototype.throwError=function(t,e,i,n,a,s){void 0===e&&(e=null),void 0===i&&(i=""),void 0===n&&(n=""),void 0===a&&(a=""),void 0===s&&(s="");var l="Unknown error",u=t;u<r.errorsList.length&&(l=String.stiFormat(r.errorsList[u],i,n,a,s));var c="Parser error: "+l,p=new o(c);throw p.baseMessage=l,null!=e&&(p.position=this.expressionPosition+e.position,p.length=e.length),p},r.prototype.checkTypes=function(i){if(null==i||0==i.count)return;for(var r=new Array,o=null,a=null,s,l,u=0,c=i;u<c.length;u++){var p=c[u],h=Object.getStiType();switch(p.type){case e.StiAsmCommandType.PushValue:r.push(new n(p.parameter1.getStiType(),p.position,p.length));break;case e.StiAsmCommandType.PushVariable:var g=p.parameter1,m=this.report.dictionary.variables.getByName(g);if(null!=m)h=m.type;else if(null!=this.report.variables&&this.report.variables.containsKey(g)){var d=this.report.variables.get(g);null!=d&&(h=d.getStiType())}r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.PushSystemVariable:var S=this.get_systemVariable(p.parameter1);null!=S&&(h=S.getStiType()),r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.PushComponent:r.push(new n(null==p.parameter1?Object:p.parameter1.getStiType(),p.position,p.length));break;case e.StiAsmCommandType.CopyToVariable:break;case e.StiAsmCommandType.PushFunction:o=new Array;for(var f=0;f<p.parameter2.toNumber();f++)o.add(r.pop());o.reverse(),a=new Array(o.count);for(var f=0;f<o.count;f++)a[f]=o[f].typeCode;var y=this.getParserMethodInfo(p.parameter1,a);h=null!=y?y.returnType:Object.getStiType(),r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.PushMethod:o=new Array;for(var f=0;f<p.parameter2.toNumber();f++)o.add(r.pop());o.reverse(),a=new Array(o.count);for(var f=0;f<o.count;f++)a[f]=o[f].typeCode;h=this.getMethodResultType(p.parameter1,a),r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.PushProperty:h=this.getPropertyType(p.parameter1,r.pop().typeCode),r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.PushDataSourceField:var b=p.parameter1.split("."),C=this.report.dictionary.dataSources.getByName(b[0]);if(C.sti_is(t.Report.Dictionary.StiVirtualSource)&&b.count>2&&!C.columns.contains(b[1])){var v=b[1]+"."+b[2];C.columns.contains(v)?(b[1]=v,b.removeAt(2)):b.count>3&&(v+="."+b[3],C.columns.contains(v)&&(b[1]=v,b.removeAt(2),b.removeAt(2)))}if(b.count>1)if(2==b.count){var I=C.columns.getByName(b[1]);null!=I&&(h=I.type)}else{var A=b[1];C=C.getParentDataSource(A);var w=2;while(w<b.count-1)A=b[w],C=C.getParentDataSource(A),w++;var I=C.columns.getByName(b[w]);null!=I&&(h=I.type)}else h=C.getStiType();r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.PushBusinessObjectField:var T=p.parameter1.split("."),B=this.report.dictionary.businessObjects.getByName(T[0]);if(T.length>1){var R=null,w=1;while(w<T.length-1){if(R=T[w],B.columns.contains(R))break;B=B.businessObjects.getByName(R),w++}h=B.columns.contains(T[w])?B.columns.getByName(T[w]).type:B.businessObjects.getByName(T[w]).getStiType()}else h=B.getStiType();r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.PushArrayElement:o=new Array;for(var f=0;f<p.parameter1.toNumber();f++)o.add(r.pop());o.reverse(),a=new Array(o.count);for(var f=0;f<o.count;f++)a[f]=o[f].typeCode;h=this.getArrayElementType(a),r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.Add:case e.StiAsmCommandType.Sub:case e.StiAsmCommandType.Mult:case e.StiAsmCommandType.Div:case e.StiAsmCommandType.Mod:case e.StiAsmCommandType.Shl:case e.StiAsmCommandType.Shr:case e.StiAsmCommandType.And:case e.StiAsmCommandType.Or:case e.StiAsmCommandType.Xor:case e.StiAsmCommandType.And2:case e.StiAsmCommandType.Or2:l=r.pop(),s=r.pop(),a=[s.typeCode,l.typeCode],r.push(new n(s.typeCode,p.position,p.length));break;case e.StiAsmCommandType.Neg:case e.StiAsmCommandType.Not:s=r.pop(),a=[s.typeCode];break;case e.StiAsmCommandType.CompareLeft:case e.StiAsmCommandType.CompareLeftEqual:case e.StiAsmCommandType.CompareRight:case e.StiAsmCommandType.CompareRightEqual:case e.StiAsmCommandType.CompareEqual:case e.StiAsmCommandType.CompareNotEqual:l=r.pop(),s=r.pop(),h=Boolean.getStiType(),r.push(new n(h,p.position,p.length));break;case e.StiAsmCommandType.Cast:s=r.pop(),r.push(new n(h,p.position,p.length));break}}},r.prototype.getMethodResultType=function(t,e){return null},r.prototype.getPropertyType=function(t,e){return null},r.prototype.getArrayElementType=function(t){var e=t[0];return null},r.prototype.getParserMethodInfo=function(t,e){return null},r.prototype.get_systemVariable=function(t){return null},r.isImplicitlyCastableTo=function(t,e){if(null==t||null==e)return!1;if(e==Object.getStiType())return!0;return e==t},r.prototype.getTypeName=function(t){return null==t?"null":t.getStiType().getStiTypeName()},r.errorsList=["Syntax error","Integral constant is too large","The expression is empty","Division by zero","Unexpected end of expression","The name '{0}' does not exist in the current context","Syntax error - unprocessed lexemes remain","( expected",") expected","Field, method, or property is not found: '{0}'","Operator '{0}' cannot be applied to operands of type '{1}' and type '{2}'","The function is not found: '{0}'","No overload for method '{0}' takes '{1}' arguments","The '{0}' function has invalid argument '{1}': cannot convert from '{2}' to '{3}'","The '{0}' function is not yet implemented","The '{0}' method has invalid argument '{1}': cannot convert from '{2}' to '{3}'","'{0}' does not contain a definition for '{1}'","There is no matching overloaded method for '{0}({1})'","The type or namespace name '{0}' does not exist in the namespace '{1}'"],r}(i.StiParser_Properties);i.StiParser_Check=a}(i=e.StiParser||(e.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.System.TypeCode,o=t.System.Text.StringBuilder,a=t.System.Char,s=t.System.Collections.Hashtable,l=t.Report.Components.StiComponent,u=function(u){function c(){var t=null!==u&&u.apply(this,arguments)||this;return t.position=0,t.inputExpression=String.empty,t.hashAliases=null,t.tokenPos=0,t.tokensList=null,t.component=null,t}return __extends(c,u),c.prototype.getNextLexem=function(){while(this.position<this.inputExpression.length&&c.isWhiteSpace(this.inputExpression[this.position]))this.position++;if(this.position>=this.inputExpression.length)return null;var t=null,e=this.inputExpression[this.position];if(a.isLetter(e)||"_"==e){var n=this.position+1;while(n<this.inputExpression.length&&(a.isLetterOrDigit(this.inputExpression[n])||"_"==this.inputExpression[n]))n++;t=new r.StiToken,t.value=this.inputExpression.substr(this.position,n-this.position),t.type=i.StiTokenType.Identifier,t.position=this.position,t.length=n-this.position,this.position=n;var o=t.value;return t.position>0&&"."==this.inputExpression[t.position-1]&&(o="."+o),this.hashAliases.containsKey(o)&&(t.value=this.hashAliases.get(o)),t}if(a.isDigit(e))return t=new r.StiToken,t.type=i.StiTokenType.Number,t.position=this.position,t.valueObject=this.scanNumber(),t.length=this.position-t.position,t;if('"'==e||"@"==e&&this.position<this.inputExpression.length-1&&'"'==this.inputExpression[this.position+1]){var s=!0;"@"==e&&(s=!1,this.position++),this.position++;var n=this.position;while(n<this.inputExpression.length){if('"'==this.inputExpression[n])break;"\\"==this.inputExpression[n]&&n++,n++}t=new r.StiToken,t.type=i.StiTokenType.String;var l=this.inputExpression.substr(this.position,n-this.position);return t.valueObject=s?c.replaceBackslash(l):l,t.position=this.position-1,this.position=n+1,t.length=this.position-t.position,t}if("["==e){var n=this.inputExpression.indexOf("]",this.position);if(-1!=n){n++;var o=this.inputExpression.substr(this.position,n-this.position);if(this.position>0&&"."==this.inputExpression[this.position-1]&&(o="."+o),this.hashAliases.containsKey(o))return t=new r.StiToken,t.value=this.hashAliases.get(o),t.type=i.StiTokenType.Identifier,t.position=this.position,t.length=n-this.position,this.position=n,t}}var u=this.position;this.position++;var p=" ";switch(this.position<this.inputExpression.length&&(p=this.inputExpression[this.position]),e){case".":return new r.StiToken(i.StiTokenType.Dot,u,1);case"(":return new r.StiToken(i.StiTokenType.LParenthesis,u,1);case")":return new r.StiToken(i.StiTokenType.RParenthesis,u,1);case"[":return new r.StiToken(i.StiTokenType.LBracket,u,1);case"]":return new r.StiToken(i.StiTokenType.RBracket,u,1);case"+":return new r.StiToken(i.StiTokenType.Plus,u,1);case"-":return new r.StiToken(i.StiTokenType.Minus,u,1);case"*":return new r.StiToken(i.StiTokenType.Mult,u,1);case"/":return new r.StiToken(i.StiTokenType.Div,u,1);case"%":return new r.StiToken(i.StiTokenType.Percent,u,1);case"^":return new r.StiToken(i.StiTokenType.Xor,u,1);case",":return new r.StiToken(i.StiTokenType.Comma,u,1);case":":return new r.StiToken(i.StiTokenType.Colon,u,1);case";":return new r.StiToken(i.StiTokenType.SemiColon,u,1);case"?":return new r.StiToken(i.StiTokenType.Question,u,1);case"|":return"|"==p?(this.position++,new r.StiToken(i.StiTokenType.DoubleOr,u,2)):new r.StiToken(i.StiTokenType.Or,u,1);case"&":return"&"==p?(this.position++,new r.StiToken(i.StiTokenType.DoubleAnd,u,2)):new r.StiToken(i.StiTokenType.And,u,1);case"!":return"="==p?(this.position++,new r.StiToken(i.StiTokenType.NotEqual,u,2)):new r.StiToken(i.StiTokenType.Not,u,1);case"=":return"="==p?(this.position++,new r.StiToken(i.StiTokenType.Equal,u,2)):new r.StiToken(i.StiTokenType.Assign,u,1);case"<":return"<"==p?(this.position++,new r.StiToken(i.StiTokenType.Shl,u,2)):"="==p?(this.position++,new r.StiToken(i.StiTokenType.LeftEqual,u,2)):new r.StiToken(i.StiTokenType.Left,u,1);case">":return">"==p?(this.position++,new r.StiToken(i.StiTokenType.Shr,u,2)):"="==p?(this.position++,new r.StiToken(i.StiTokenType.RightEqual,u,2)):new r.StiToken(i.StiTokenType.Right,u,1);default:return t=new r.StiToken(i.StiTokenType.Unknown),t.valueObject=e,t.position=u,t.length=1,t}},c.isWhiteSpace=function(t){return a.isWhitespace(t)||t.charCodeAt(0)<32},c.prototype.buildAliases=function(){if(null!=this.hashAliases)return;this.hashAliases=new s;for(var t=0,e=this.report.dictionary.dataSources.list;t<e.length;t++){var i=e[t],r=i.name,n=c.getCorrectedAlias(i.alias);n!=r&&this.hashAliases.set(n,r);for(var o=0,a=i.columns.list;o<a.length;o++){var l=a[o],u=l.name,p=c.getCorrectedAlias(l.alias);p!=u&&this.hashAliases.set("."+p,u)}}for(var h=0,g=this.report.dictionary.businessObjects.list;h<g.length;h++){var m=g[h];this.buildBusinessObject(this.report,m)}for(var d=0,S=this.report.dictionary.relations.list;d<S.length;d++){var f=S[d],y=f.name,b=c.getCorrectedAlias(f.alias);b!=y&&this.hashAliases.set("."+b,y)}for(var C=0,v=this.report.dictionary.variables.list;C<v.length;C++){var I=v[C],A=I.name,w=c.getCorrectedAlias(I.alias);w!=A&&this.hashAliases.set(w,A)}},c.prototype.buildBusinessObject=function(t,e){var i=e.name,r=c.getCorrectedAlias(e.alias);r!=i&&(this.hashAliases.set(r,i),this.hashAliases.set("."+r,i));for(var n=0,o=e.columns.list;n<o.length;n++){var a=o[n],s=a.name,l=c.getCorrectedAlias(a.alias);l!=s&&this.hashAliases.set("."+l,s)}for(var u=0,p=e.businessObjects.list;u<p.length;u++){var h=p[u];this.buildBusinessObject(t,h)}},c.isValidName=function(t){if(String.isNullOrEmpty(t)||!a.isLetter(t[0])&&"_"!=t[0])return!1;for(var e=0;e<t.length;e++)if(!a.isLetterOrDigit(t[e])&&"_"!=t[e])return!1;return!0},c.getCorrectedAlias=function(t){if(this.isValidName(t))return t;return String.stiFormat("[{0}]",t)},c.replaceBackslash=function(t){for(var e="",i=0;i<t.length;i++)if("\\"==t[i]&&i<t.length-1){i++;var r=t[i];switch(r){case"\\":e+="\\";break;case"'":e+="'";break;case'"':e+='"';break;case"0":e+="\0";break;case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"x":var n=new o,a=0;while(i<t.length-1&&a<4&&-1!="0123456789abcdefABCDEF".indexOf(t[i+1]))n.append(t[i+1]),i++,a++;var s=parseFloat(n.toString());e+=String.fromCharCode(s);break;default:e+="\\"+r;break}}else e+=t[i];return e},c.prototype.scanNumber=function(){var e=n.Int32,o=this.position,s=this.position;while(this.position!=this.inputExpression.length&&a.isDigit(this.inputExpression[this.position]))this.position++;if(this.position!=this.inputExpression.length&&"."==this.inputExpression[this.position]&&this.position+1!=this.inputExpression.length&&a.isDigit(this.inputExpression[this.position+1])){this.position++;while(this.position!=this.inputExpression.length&&a.isDigit(this.inputExpression[this.position]))this.position++;e=n.Double}var l=this.inputExpression.substr(o,this.position-o);if(l=l.replaceAll(".","."),this.position!=this.inputExpression.length&&a.isLetter(this.inputExpression[this.position])){o=this.position;while(this.position!=this.inputExpression.length&&a.isLetter(this.inputExpression[this.position]))this.position++;var u=this.inputExpression.substr(o,this.position-o).toLower();"f"==u&&(e=n.Single),"d"==u&&(e=n.Double),"m"==u&&(e=n.Decimal),"l"==u&&(e=n.Int64),"u"!=u&&"ul"!=u&&"lu"!=u||(e=n.UInt64)}e==n.Int32&&l.length>9&&(e=n.Int64);var c=+l;try{c=t.System.Convert.changeType2(l,e)}catch(t){e!=n.Int32&&e!=n.Int64&&e!=n.UInt32&&e!=n.UInt64||this.throwError(r.ParserErrorCode.IntegralConstantIsTooLarge,new r.StiToken(i.StiTokenType.Number,s,this.position-s))}return c},c.prototype.postProcessTokensList=function(n){var o=new Array;this.tokenPos=0;while(this.tokenPos<n.count){var a=n[this.tokenPos];if(this.tokenPos++,a.type==i.StiTokenType.Identifier){var s=this.report.dictionary.dataSources.getByName(a.value),u=this.report.dictionary.businessObjects.getByName(a.value),c="";if(t.Report.Engine.StiParser.StiParser_Properties.namespacesList.contains(a.value)){this.tokenPos+1>=n.count&&this.throwError(r.ParserErrorCode.UnexpectedEndOfExpression),n[this.tokenPos].type!=i.StiTokenType.Dot&&this.throwError(r.ParserErrorCode.SyntaxError,a,a.value),c=a.value+".",a=n[this.tokenPos+1],this.tokenPos+=2;while(t.Report.Engine.StiParser.StiParser_Properties.namespacesList.contains(c+n[this.tokenPos-1].value))this.tokenPos+1>=n.count&&this.throwError(r.ParserErrorCode.UnexpectedEndOfExpression),n[this.tokenPos].type!=i.StiTokenType.Dot&&this.throwError(r.ParserErrorCode.SyntaxError,a,a.value),c+=a.value+".",a=n[this.tokenPos+1],this.tokenPos+=2}if(null!=s){var p=e.StiNameValidator.correctName(a.value),h=[];h.add(e.StiNameValidator.correctName(a.value));while(this.tokenPos+1<n.count&&n[this.tokenPos].type==i.StiTokenType.Dot){a=n[this.tokenPos+1];var g=e.StiNameValidator.correctName(a.value),m=this.getDataRelationByName(g,s);if(null!=m){s=m.parentSource,this.tokenPos+=2,p+=".",p+=m.nameInSource,h.add(m.nameInSource);continue}var d=this.getDataColumnByName(g,s);if(null!=d){this.tokenPos+=2,p+=".",p+=g,h.add(d.name);break}a=n[this.tokenPos-1];break}a.type=i.StiTokenType.DataSourceField,a.value=p,a.valueObject=h}else if(null!=u){var p=a.value;while(this.tokenPos+1<n.count&&n[this.tokenPos].type==i.StiTokenType.Dot){a=n[this.tokenPos+1];var g=a.value;if(u.columns.contains(g)){this.tokenPos+=2,p+=".",p+=g;break}if(null!=(u=u.businessObjects.getByName(g))){this.tokenPos+=2,p+=".",p+=u.name;continue}a=n[this.tokenPos-1];break}a.type=i.StiTokenType.BusinessObjectField,a.value=p}else if(o.count>0&&o[o.count-1].type==i.StiTokenType.Dot&&0==c.length)if(t.Report.Engine.StiParser.StiParser_Properties.methodsList.contains(a.value))a.type=i.StiTokenType.Method;else if(t.Report.Engine.StiParser.StiParser_Properties.propertiesList.contains(a.value))a.type=i.StiTokenType.Property;else{var S=this.tokenPos<n.count&&n[this.tokenPos].type==i.StiTokenType.LParenthesis;S||o.count>1&&o[o.count-2].type==i.StiTokenType.DataSourceField&&(a.type=i.StiTokenType.Property),a.type==i.StiTokenType.Identifier&&this.throwError(r.ParserErrorCode.FieldMethodOrPropertyNotFound,a,a.value)}else if(t.Report.Engine.StiParser.StiParser_Properties.typesList.contains(a.value)){var f=t.Report.Engine.StiParser.StiParser_Properties.typesList.get(a.value);if(a.type=i.StiTokenType.Cast,a.valueObject=f,this.tokenPos+1<n.count&&n[this.tokenPos].type==i.StiTokenType.Dot){var y=a.value+"."+n[this.tokenPos+1].value;t.Report.Engine.StiParser.StiParser_Properties.functionsList.contains(y)&&(a.type=i.StiTokenType.Function,a.value=y,this.tokenPos+=2),t.Report.Engine.StiParser.StiParser_Properties.systemVariablesList.contains(y)&&(a.type=i.StiTokenType.SystemVariable,a.value=y,this.tokenPos+=2)}}else if(this.componentsList.contains(a.value)&&n[this.tokenPos].type!=i.StiTokenType.LParenthesis){if(a.type=i.StiTokenType.Component,this.tokenPos+1<n.count&&n[this.tokenPos].type==i.StiTokenType.Colon&&this.componentsList.contains(n[this.tokenPos+1].value)){var b=this.componentsList.get(n[this.tokenPos+1].value).sti_as(l);null!=b&&b.sti_is(t.Report.Components.StiDataBand)&&(a.value=b.dataSourceName,a.type=i.StiTokenType.DataSourceField,this.tokenPos+=2)}}else if(t.Report.Engine.StiParser.StiParser_Properties.functionsList.contains(c+a.value)&&this.tokenPos<n.length&&n[this.tokenPos].type==i.StiTokenType.LParenthesis)a.value=c+a.value,a.type=i.StiTokenType.Function;else if(t.Report.Engine.StiParser.StiParser_Properties.systemVariablesList.contains(a.value)&&"value"!=a.value)a.type=i.StiTokenType.SystemVariable;else if(t.Report.Engine.StiParser.StiParser_Properties.constantsList.contains(c+a.value)){while(t.Report.Engine.StiParser.StiParser_Properties.constantsList.get(c+a.value)==t.Report.Engine.StiParser.StiParser_Properties.namespaceObj){this.tokenPos+1>=n.count&&this.throwError(r.ParserErrorCode.UnexpectedEndOfExpression);var C=a.value;a.value+="."+n[this.tokenPos+1].value,this.tokenPos+=2,t.Report.Engine.StiParser.StiParser_Properties.constantsList.contains(c+a.value)||this.throwError(r.ParserErrorCode.ItemDoesNotContainDefinition,a,C,n[this.tokenPos+1].value)}a.value=c+a.value,a.valueObject=t.Report.Engine.StiParser.StiParser_Properties.constantsList.get(a.value),a.type=i.StiTokenType.Number}else this.report.dictionary.variables.contains(a.value)?a.type=i.StiTokenType.Variable:this.userFunctionsList.contains(a.value)?a.type=i.StiTokenType.Function:String.isNullOrEmpty(c)?this.throwError(r.ParserErrorCode.NameDoesNotExistInCurrentContext,a,a.value):this.throwError(r.ParserErrorCode.TheTypeOrNamespaceNotExistInTheNamespace,a,a.value,c.substring(0,c.length-1))}o.add(a)}return o},c.prototype.getDataSourceByName=function(t){for(var e=0,i=this.report.dictionary.dataSources.list;e<i.length;e++){var r=i[e];if(r.alias==t)return r}return null},c.prototype.getDataRelationByName=function(t,i){for(var r=0,n=this.report.dictionary.relations.list;r<n.length;r++){var o=n[r];if(o.childSource==i&&(o.name==t||o.nameInSource==t))return o}for(var a=0,s=this.report.dictionary.relations.list;a<s.length;a++){var o=s[a];if(o.childSource==i&&(e.StiNameValidator.correctName(o.name)==t||e.StiNameValidator.correctName(o.nameInSource)==t))return o}return null},c.prototype.getDataColumnByName=function(t,e){if(null!=e.dataTable){var i=e.getColumnIndex(t);if(i>=0)for(var r=e.dataTable.columns.getByIndex(i).columnName,n=0,o=e.columns.list;n<o.length;n++){var a=o[n];if(a.nameInSource==r)return a}}return e.columns.getByName(t)},c.prototype.makeTokensList=function(){this.buildAliases(),this.tokensList=new Array,this.position=0;while(!0){var t=this.getNextLexem();if(null==t)break;this.tokensList.add(t)}this.tokensList=this.postProcessTokensList(this.tokensList)},c}(r.StiParser_Check);r.StiParser_Lexer=u}(r=i.StiParser||(i.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.Convert,r=t.System.Type,n=t.System.DateTime,o=t.System.IComparable,a=function(a){function s(){return null!==a&&a.apply(this,arguments)||this}return __extends(s,a),s.prototype.op_Add=function(r,o){var a=this.get_category(r),s=this.get_category(o);if(a<=1||s<=1)return i.toString(r)+i.toString(o);if(4==a||4==s)return r.toNumber()+o.toNumber();if(8==a&&o.getStiType()==t.System.TimeSpan)return new n(i.toDateTime(r).ticks+o.ticks);if(8==s&&r.getStiType()==t.System.TimeSpan)return new n(i.toDateTime(o).ticks+r.ticks);return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"+",this.getTypeName(r),this.getTypeName(o)),null},s.prototype.op_Sub=function(r,o){var a=this.get_category(r),s=this.get_category(o);if(a<=1||s<=1)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"-",this.getTypeName(r),this.getTypeName(o));else{if(4==a||4==s)return r.toNumber()-o.toNumber();if(8==a&&(8==s||o.getStiType()==t.System.TimeSpan))return 8==s?i.toDateTime(r).subtract(i.toDateTime(o)):new n(i.toDateTime(r).ticks-o.ticks);this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"-",this.getTypeName(r),this.getTypeName(o))}return null},s.prototype.op_Mult=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(r<=1||n<=1)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"*",this.getTypeName(t),this.getTypeName(i));else{if(4==r||4==n)return t.toNumber()*i.toNumber();this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"*",this.getTypeName(t),this.getTypeName(i))}return null},s.prototype.op_Div=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(r<=1||n<=1)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"/",this.getTypeName(t),this.getTypeName(i));else{if(4==r||4==n)return 0==i.toNumber()&&this.throwError(e.ParserErrorCode.DivisionByZero),t.toNumber()/i.toNumber();this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"/",this.getTypeName(t),this.getTypeName(i))}return null},s.prototype.op_Mod=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(r<=1||n<=1)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"%",this.getTypeName(t),this.getTypeName(i));else{if(4==r||4==n)return t.toNumber()%i.toNumber();this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"%",this.getTypeName(t),this.getTypeName(i))}return null},s.prototype.op_Pow=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(r>=2&&n>=2&&r<=7&&n<=7)return Math.pow(t.toNumber(),i.toNumber());return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"^",this.getTypeName(t),this.getTypeName(i)),null},s.prototype.op_Neg=function(t){var i=this.get_category(t);return(i<=1||i>=8)&&this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"Negative",this.getTypeName(t)),this.op_Mult(t,-1)},s.prototype.op_Not=function(t){return 9!=this.get_category(t)&&this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"Not",this.getTypeName(t)),!t},s.prototype.op_Cast=function(e,n){var o=n.sti_as(r);if(null!=o)try{return i.changeType(e,o)}catch(t){return e}switch(n){case t.System.TypeCode.Boolean:return i.toBoolean(e);case t.System.TypeCode.Byte:return i.toNumber(e);case t.System.TypeCode.Char:return String.fromCharCode(i.toNumber(e));case t.System.TypeCode.DateTime:return t.System.Convert.toDateTime(e);case t.System.TypeCode.Decimal:return i.toNumber(e);case t.System.TypeCode.Double:return i.toNumber(e);case t.System.TypeCode.Int16:return i.toNumber(e);case t.System.TypeCode.Int32:return i.toNumber(e);case t.System.TypeCode.Int64:return i.toNumber(e);case t.System.TypeCode.SByte:return i.toNumber(e);case t.System.TypeCode.Single:return i.toNumber(e);case t.System.TypeCode.String:return i.toString(e);case t.System.TypeCode.UInt16:return i.toNumber(e);case t.System.TypeCode.UInt32:return i.toNumber(e);case t.System.TypeCode.UInt64:return i.toNumber(e)}return e},s.prototype.op_CompareLeft=function(t,r){var n=this.get_category(t),a=this.get_category(r);if(0==n||0==a){var s=t.sti_as(o),l=r.sti_as(o);if(null!=s&&null!=l)return s.compareTo(l)<0;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"<",this.getTypeName(t),this.getTypeName(r))}if(1==n||1==a)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"<",this.getTypeName(t),this.getTypeName(r));else{if(4==n||4==a)return t.toNumber()<r.toNumber();if(8==n||8==a)return i.toDateTime(t).ticks<i.toDateTime(r).ticks;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"<",this.getTypeName(t),this.getTypeName(r))}return null},s.prototype.op_CompareLeftEqual=function(t,r){var n=this.get_category(t),a=this.get_category(r);if(0==n||0==a){var s=t.sti_as(o),l=r.sti_as(o);if(null!=s&&null!=l)return s.compareTo(l)<=0;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"<=",this.getTypeName(t),this.getTypeName(r))}if(1==n||1==a)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"<=",this.getTypeName(t),this.getTypeName(r));else{if(4==n||4==a)return t.toNumber()<=r.toNumber();if(8==n||8==a)return i.toDateTime(t).ticks<=i.toDateTime(r).ticks;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"<=",this.getTypeName(t),this.getTypeName(r))}return null},s.prototype.op_CompareRight=function(t,r){var n=this.get_category(t),a=this.get_category(r);if(0==n||0==a){var s=t.sti_as(o),l=r.sti_as(o);if(null!=s&&null!=l)return s.compareTo(l)>0;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,">",this.getTypeName(t),this.getTypeName(r))}if(1==n||1==a)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,">",this.getTypeName(t),this.getTypeName(r));else{if(4==n||4==a)return t.toNumber()>r.toNumber();if(8==n||8==a)return i.toDateTime(t).ticks>i.toDateTime(r).ticks;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,">",this.getTypeName(t),this.getTypeName(r))}return null},s.prototype.op_CompareRightEqual=function(t,r){var n=this.get_category(t),a=this.get_category(r);if(0==n||0==a){var s=t.sti_as(o),l=r.sti_as(o);if(null!=s&&null!=l)return s.compareTo(l)>=0;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,">=",this.getTypeName(t),this.getTypeName(r))}if(1==n||1==a)this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,">=",this.getTypeName(t),this.getTypeName(r));else{if(4==n||4==a)return t.toNumber()>=r.toNumber();if(8==n||8==a)return i.toDateTime(t).ticks>=i.toDateTime(r).ticks;this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,">=",this.getTypeName(t),this.getTypeName(r))}return null},s.prototype.op_CompareEqual=function(t,e){var r=this.get_category(t),n=this.get_category(e);if(-1==r||-1==n)return r==n;if(0==r||0==n){var a=t.sti_as(o),s=e.sti_as(o);return null!=a&&null!=s?0==a.compareTo(s):t.stiEquals(e)}if(1==r||1==n)return t==e;if(4==r||4==n)return t.toNumber()==e.toNumber();if(8==r||8==n)return i.toDateTime(t).ticks==i.toDateTime(e).ticks;return t==e},s.prototype.op_CompareNotEqual=function(t,e){var r=this.get_category(t),n=this.get_category(e);if(0==r||0==n){var a=t.sti_as(o),s=e.sti_as(o);return null!=a&&null!=s?0!=a.compareTo(s):!t.stiEquals(e)}if(1==r||1==n)return t!=e;if(4==r||4==n)return t.toNumber()!=e.toNumber();if(8==r||8==n)return i.toDateTime(t).ticks!=i.toDateTime(e).ticks;return t!=e},s.prototype.op_Shl=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(!(r<4||r>=8||4!=n))return t.toNumber()<<i.toNumber();return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"<<",this.getTypeName(t),this.getTypeName(i)),null},s.prototype.op_Shr=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(!(r<4||r>=8||4!=n))return t.toNumber()>>i.toNumber();return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,">>",this.getTypeName(t),this.getTypeName(i)),null},s.prototype.op_And=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(!(r<4||8==r||n<4||8==n))return 9==r||9==n?t.toBoolean()&&i.toBoolean():t.toNumber()&i.toNumber();return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"&",this.getTypeName(t),this.getTypeName(i)),null},s.prototype.op_Or=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(!(r<4||8==r||n<4||8==n))return 9==r||9==n?t.toBoolean()||i.toBoolean():t.toNumber()|i.toNumber();return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"|",this.getTypeName(t),this.getTypeName(i)),null},s.prototype.op_Xor=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(!(r<4||8==r||n<4||8==n))return 9==r||9==n?t.toBoolean()!==i.toBoolean():t.toNumber()^i.toNumber();return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"^",this.getTypeName(t),this.getTypeName(i)),null},s.prototype.op_And2=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(9==r&&9==n)return t&&i;return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"&&",this.getTypeName(t),this.getTypeName(i)),null},s.prototype.op_Or2=function(t,i){var r=this.get_category(t),n=this.get_category(i);if(9==r&&9==n)return t||i;return this.throwError(e.ParserErrorCode.OperatorCannotBeAppliedToOperands,null,"||",this.getTypeName(t),this.getTypeName(i)),null},s}(e.StiParser_Lexer);e.StiParser_AsmOperations=a}(i=e.StiParser||(e.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(i){var r=t.System.Enum,n=t.System.DateTime,o=t.System.TimeSpan,a=t.System.Convert,s=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return __extends(l,s),l.prototype.call_property=function(s,l){var u=l[0];if(s.sti_is(String))return u[s];if(u.sti_is(n)){switch(s.toNumber()){case e.StiPropertyType.Year:return u.year;case e.StiPropertyType.Month:return u.month;case e.StiPropertyType.Day:return u.day;case e.StiPropertyType.Hour:return u.hour;case e.StiPropertyType.Minute:return u.minute;case e.StiPropertyType.Second:return u.second}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(u.sti_is(o)){switch(s.toNumber()){case e.StiPropertyType.Days:return u.days;case e.StiPropertyType.Hours:return u.hours;case e.StiPropertyType.Milliseconds:return u.milliseconds;case e.StiPropertyType.Minutes:return u.minutes;case e.StiPropertyType.Seconds:return u.seconds;case e.StiPropertyType.Ticks:return u.ticks;case e.StiPropertyType.TotalDays:return u.totalDays;case e.StiPropertyType.TotalHours:return u.totalHours;case e.StiPropertyType.TotalMinutes:return u.totalMinutes;case e.StiPropertyType.TotalSeconds:return u.totalSeconds;case e.StiPropertyType.TotalMilliseconds:return u.totalMilliseconds}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(u.sti_is(String)){switch(s.toNumber()){case e.StiPropertyType.Length:return a.toString(u).length}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(null==u)switch(s.toNumber()){case e.StiPropertyType.Length:return 0}if(u.sti_is(t.Report.Range)){switch(s.toNumber()){case e.StiPropertyType.From:return u.fromObject;case e.StiPropertyType.To:return u.toObject;case e.StiPropertyType.FromDate:return u.fromObject;case e.StiPropertyType.ToDate:return u.toObject;case e.StiPropertyType.FromTime:return u.fromObject;case e.StiPropertyType.ToTime:return u.toObject}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(u.sti_is(Array)){switch(s.toNumber()){case e.StiPropertyType.Count:return u.count}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(u.sti_is(t.Report.Components.StiDataBand)){switch(s.toNumber()){case e.StiPropertyType.Count:return u.count;case e.StiPropertyType.SelectedLine:return u.selectedLine}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(u.sti_is(t.Report.Dictionary.StiDataSource)){switch(s.toNumber()){case e.StiPropertyType.Count:return u.count}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(u.sti_is(t.Report.Dictionary.StiBusinessObject)){switch(s.toNumber()){case e.StiPropertyType.BusinessObjectValue:return u.businessObjectValue}this.throwError(i.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),r.getName(e.StiPropertyType,s.toNumber()))}if(u.sti_is(t.Report.Components.StiComponent))switch(s.toNumber()){case e.StiPropertyType.Name:return u.name;case e.StiPropertyType.TagValue:return u.tagValue}return null},l}(i.StiParser_AsmOperations);i.StiParser_AsmProperties=s}(i=e.StiParser||(e.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.System.Convert,o=t.System.Enum,a=t.System.DateTime,s=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return __extends(l,s),l.prototype.call_method=function(s,l){var u,c=l[0];switch(s){case i.StiMethodType.ToString:if(1==(u=this.get_category(l[0])))return n.toString(l[0]);if(4==u||6==u){var p=n.toNumber(l[0]);return 1==l.count?p.toString():String.customFormat(p,n.toString(l[1]))}if(8==u){var h=n.toDateTime(l[0]);return 1==l.count?h.toString():h.toString(n.toString(l[1]))}return 9==u?n.toBoolean(l[0]).toString():null==c?String.empty:l[0].toString()}if(null!=c&&c.sti_is(String)){switch(s){case i.StiMethodType.Substring:if(u=this.get_category(l[0]),1!=u&&this.throwError(0),3==l.count)return(""+l[0]).substr(+l[1],+l[2]);if(2==l.count)return(""+l[0]).substr(+l[1]);this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"Substring",(l.count-1).toString());break;case i.StiMethodType.ToLower:if(u=this.get_category(l[0]),1!=u&&this.throwError(0),1==l.count)return(""+l[0]).toLower();this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"ToLower",(l.count-1).toString());break;case i.StiMethodType.ToUpper:if(u=this.get_category(l[0]),1!=u&&this.throwError(0),1==l.count)return(""+l[0]).toUpper();this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"ToUpper",(l.count-1).toString());break;case i.StiMethodType.IndexOf:if(u=this.get_category(l[0]),1!=u&&this.throwError(r.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),"IndexOf"),2==l.count)return u=this.get_category(l[1]),1!=u&&this.throwError(r.ParserErrorCode.MethodHasInvalidArgument,null,"IndexOf","1",this.getTypeName(l[0]),"string"),(""+l[0]).indexOf(""+l[1]);this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"IndexOf",(l.count-1).toString());break;case i.StiMethodType.StartsWith:if(u=this.get_category(l[0]),1!=u&&this.throwError(r.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),"StartsWith"),2==l.count)return u=this.get_category(l[1]),1!=u&&this.throwError(r.ParserErrorCode.MethodHasInvalidArgument,null,"StartsWith","1",this.getTypeName(l[0]),"string"),(""+l[0]).startsWith(""+l[1]);this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"StartsWith",(l.count-1).toString());break;case i.StiMethodType.EndsWith:if(u=this.get_category(l[0]),1!=u&&this.throwError(r.ParserErrorCode.ItemDoesNotContainDefinition,null,this.getTypeName(l[0]),"EndsWith"),2==l.count)return u=this.get_category(l[1]),1!=u&&this.throwError(r.ParserErrorCode.MethodHasInvalidArgument,null,"EndsWith","1",this.getTypeName(l[0]),"string"),(""+l[0]).endsWith(""+l[1]);this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"EndsWith",(l.count-1).toString());break}}if(!0&&c.sti_is(Array)){switch(s){case i.StiMethodType.Contains:if(2==l.count)return l[0].contains(l[1]);break;case i.StiMethodType.ToQueryString:if(1==l.count){if(c.sti_is(Array))return e.Func.EngineHelper.toQueryString(l[0],"","")}else if(2==l.count){if(c.sti_is(Array))return e.Func.EngineHelper.toQueryString(l[0],n.toString(l[1]),"")}else if(3==l.count){if(c.sti_is(Array))return e.Func.EngineHelper.toQueryString(l[0],n.toString(l[1]),n.toString(l[2]))}else this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"ToQueryString",(l.count-1).toString());break}}if(null!=c&&c.sti_is(t.Report.Dictionary.StiDataSource)){switch(o.parse(i.StiMethodType,s.toString())){case i.StiMethodType.GetData:if(u=this.get_category(l[1]),1!=u&&this.throwError(r.ParserErrorCode.MethodHasInvalidArgument,null,"GetData","1",this.getTypeName(l[0]),"string"),3==l.count)return u=this.get_category(l[2]),(u<4||u>7)&&this.throwError(r.ParserErrorCode.MethodHasInvalidArgument,null,"GetData","2",this.getTypeName(l[0]),"int"),l[0].getData(n.toString(l[1]),n.toNumber(l[2]));if(2==l.count)return l[0].getData(n.toString(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"GetData",(l.count-1).toString());break}}if(null!=c&&c.sti_is(a)){switch(o.parse(i.StiMethodType,s.toString())){case i.StiMethodType.AddDays:if(u=this.get_category(l[1]),(u<2||u>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"AddDays","1",this.getTypeName(l[1]),"double"),2==l.count)return l[0].addDays(n.toNumber(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"AddDays",(l.count-1).toString());break;case i.StiMethodType.AddHours:if(u=this.get_category(l[1]),(u<2||u>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"AddHours","1",this.getTypeName(l[1]),"double"),2==l.count)return l[0].addHours(n.toNumber(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"AddHours",(l.count-1).toString());break;case i.StiMethodType.AddMilliseconds:if(u=this.get_category(l[1]),(u<2||u>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"AddMilliseconds","1",this.getTypeName(l[1]),"double"),2==l.count)return l[0].addMilliseconds(n.toNumber(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"AddMilliseconds",(l.count-1).toString());break;case i.StiMethodType.AddMinutes:if(u=this.get_category(l[1]),(u<2||u>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"AddMinutes","1",this.getTypeName(l[1]),"double"),2==l.count)return l[0].addMinutes(n.toNumber(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"AddMinutes",(l.count-1).toString());break;case i.StiMethodType.AddMonths:if(u=this.get_category(l[1]),(u<4||u>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"AddMonths","1",this.getTypeName(l[1]),"int"),2==l.count)return l[0].addMonths(n.toNumber(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"AddMonths",(l.count-1).toString());break;case i.StiMethodType.AddSeconds:if(u=this.get_category(l[1]),(u<2||u>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"AddSeconds","1",this.getTypeName(l[1]),"double"),2==l.count)return l[0].addSeconds(n.toNumber(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"AddSeconds",(l.count-1).toString());break;case i.StiMethodType.AddYears:if(u=this.get_category(l[1]),(u<4||u>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"AddYears","1",this.getTypeName(l[1]),"int"),2==l.count)return l[0].addYears(n.toNumber(l[1]));this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"AddYears",(l.count-1).toString());break}}var g=null==c?"null":l[0].getStiType().fullName;return this.throwError(r.ParserErrorCode.ItemDoesNotContainDefinition,null,g,o.getName(i.StiMethodType,s.toNumber())),null},l}(r.StiParser_AsmProperties);r.StiParser_AsmMethods=s}(r=i.StiParser||(i.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.DateTime,n=t.System.TimeSpan,o=t.System.Globalization.CalendarWeekRule,a=t.System.DayOfWeek,s=function(){function s(){}return s.create=function(){0==s.isCreated&&(i.StiFunctions.addFunction("Date","","DateDiff","Returns a number of time intervals between two specified dates.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.TimeSpan,"A TimeSpan value.",[t.System.DateTime,t.System.DateTime],["date1","date2"],["date1 is the first DateTime value used in calculating the difference.","date2 is the first DateTime value used in calculating the difference."]),i.StiFunctions.addFunction("Date","","Year","Returns a year from a date and returns it as a integer value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"An integer value.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","Month","Returns a month from a date and returns it as an integer value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"An integer value.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","Day","Returns a day from a date and returns it as an integer value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"An integer value.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","Hour","Returns an hour portion from a date and returns it as an integer value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"An integer value.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","Minute","Returns the minutes portion from a date and returns it as an integer value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"An integer value.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","Second","Returns a seconds portion from a date and returns it as an integer value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"A integer value.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","DayOfWeek","Returns a day of the week.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A day of the week.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","DayOfWeek","Returns a day of the week.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A day of the week.",[t.System.DateTime,Boolean],["date","localized"],["date is a DateTime value.","if true return localized name of day."]),i.StiFunctions.addFunction("Date","","DayOfWeek","Returns a day of the week.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A day of the week.",[t.System.DateTime,String],["date","culture"],["date is a DateTime value.","culture of the day name."]),i.StiFunctions.addFunction("Date","","DayOfWeek","Returns a day of the week.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A day of the week.",[t.System.DateTime,String,Boolean],["date","culture","upperCase"],["date is a DateTime value.","culture of the day name.","if true then return the name of the day with the first letter in uppercase."]),i.StiFunctions.addFunction("Date","","MonthName","Returns the name of the month.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A name of the month.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","MonthName","Returns the name of the month.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A name of the month.",[t.System.DateTime,Boolean],["date","localized"],["date is a DateTime value.","if true return localized name of month."]),i.StiFunctions.addFunction("Date","","MonthName","Returns the name of the month.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A name of the month.",[t.System.DateTime,String],["date","culture"],["date is a DateTime value.","culture of the month name."]),i.StiFunctions.addFunction("Date","","MonthName","Returns the name of the month.","Stimulsoft.Report.Dictionary.StiFunctionsDate",String,"A name of the month.",[t.System.DateTime,String,Boolean],["date","culture","upperCase"],["date is a DateTime value.","culture of the month name.","if true then return the name of the month with the first letter in uppercase."]),i.StiFunctions.addFunction("Date","","DayOfYear","Returns a day of the year.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"A day of the year.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","DaysInMonth","Returns the number of days in the specified month and year.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The number of days in the specified month and year.",[t.System.Int64,t.System.Int64],["year","month"],["Year (1 through 9999).","Month (1 through 12)."]),i.StiFunctions.addFunction("Date","","DaysInMonth","Returns the number of days in the specified month and year.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The number of days in the specified month.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","DaysInYear","Returns the number of days in the specified year.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The number of days in the specified year.",[t.System.Int64],["year"],["Year (1 through 9999)."]),i.StiFunctions.addFunction("Date","","DaysInYear","Returns the number of days in the specified year.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The number of days in the specified year.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","DateSerial","Returns the DateTime value for the specified year, month, and day.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.DateTime,"DateTime value.",[t.System.Int64,t.System.Int64,t.System.Int64],["year","month","day"],["Year (1 through 9999).","Month (1 through 12).","Day (1 through the number of days in a month."]),i.StiFunctions.addFunction("Date","","TimeSerial","Returns the TimeValue value for a specified number of hours, minutes, and seconds.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.TimeSpan,"TimeSpan value.",[t.System.Int64,t.System.Int64,t.System.Int64],["year","month","day"],["Number of hours.","Number of minutes.","Number of seconds."]),i.StiFunctions.addFunction("Date","","WeekOfYear","Returns the week of the year that includes the date in the specified DateTime value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The week of the year.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","WeekOfYear","Returns the week of the year that includes the date in the specified DateTime value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The week of the year.",[t.System.DateTime,t.System.Int],["date","firstDayOfWeek"],["date is a DateTime value.","an enumeration value that represents the first day of the week."]),i.StiFunctions.addFunction("Date","","WeekOfYear","Returns the week of the year that includes the date in the specified DateTime value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The week of the year.",[t.System.DateTime,t.System.Int,t.System.Int],["date","firstDayOfWeek","calendarWeekRule"],["date is a DateTime value.","an enumeration value that represents the first day of the week.","an enumeration value that define the rules for determining the first week of the year."]),i.StiFunctions.addFunction("Date","","WeekOfMonth","Returns the week of the month that includes the date in the specified DateTime value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The week of the month.",[t.System.DateTime],["date"],["date is a DateTime value."]),i.StiFunctions.addFunction("Date","","WeekOfMonth","Returns the week of the month that includes the date in the specified DateTime value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The week of the month.",[t.System.DateTime,t.System.Int],["date","firstDayOfWeek"],["date is a DateTime value.","an enumeration value that represents the first day of the week."]),i.StiFunctions.addFunction("Date","","WeekOfMonth","Returns the week of the month that includes the date in the specified DateTime value.","Stimulsoft.Report.Dictionary.StiFunctionsDate",t.System.Int64,"The week of the month.",[t.System.DateTime,t.System.Int,t.System.Int],["date","firstDayOfWeek","calendarWeekRule"],["date is a DateTime value.","an enumeration value that represents the first day of the week.","an enumeration value that define the rules for determining the first week of the year."]),s.isCreated=!0)},s.dateDiff=function(t,e){return t.subtract(e)},s.year=function(t){return null!=t?t.year:0},s.month=function(t){return null!=t?t.month:0},s.hour=function(t){return null!=t?t.hour:0},s.minute=function(t){return null!=t?t.minute:0},s.second=function(t){return null!=t?t.second:0},s.day=function(t){return null!=t?t.day:0},s.dayOfWeek=function(t,i,r){return void 0===i&&(i=null),void 0===r&&(r=null),null!=i&&i.sti_is(Boolean)?e.Func.DayOfWeekToStr.dayOfWeek(t,i.toBoolean()):e.Func.DayOfWeekToStr.dayOfWeek(t,i,r)},s.monthName=function(t,i,r){return void 0===i&&(i=null),void 0===r&&(r=null),null!=i&&i.sti_is(Boolean)?e.Func.MonthToStr.monthName(t,i.toBoolean()):e.Func.MonthToStr.monthName(t,i,r)},s.dayOfYear=function(t){return+t.dayOfYear},s.dateSerial=function(t,e,i){return new r(new Date(t,e,i))},s.timeSerial=function(t,e,i){return new n(t,e,i)},s.daysInMonth=function(t,e){if(t.sti_is(r)){var i=t.sti_as(r);return+r.daysInMonth(i.year,i.month)}return+r.daysInMonth(+t,e)},s.daysInYear=function(t){var e;if(t.sti_is(r)){e=t.sti_as(r).year}else e=+t;return+(r.isLeapYear(e)?366:365)},s.weekOfYear=function(e,i,r){return void 0===i&&(i=a.Monday),void 0===r&&(r=o.FirstDay),t.System.Globalization.Calendar.getWeekOfYear(e,r,i)},s.weekOfMonth=function(e,i,r){return void 0===i&&(i=a.Monday),void 0===r&&(r=o.FirstDay),t.System.Globalization.Calendar.getWeekOfMonth(e,r,i)},s.isCreated=!1,s}();i.StiFunctionsDate=s}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.System.Enum,o=t.Report.Dictionary.StiFunctions,a=t.System.Type,s=t.System.Text.StringBuilder,l=t.System.Convert,u=t.System.DateTime,c=t.System.TimeSpan,p=t.System.Data.DBNull,h=t.System.Collections.IEnumerable,g=t.Report.Dictionary.StiFunctionsDate,m=function(m){function d(){var t=null!==m&&m.apply(this,arguments)||this;return t.report=null,t}return __extends(d,m),d.prototype.call_func=function(n,s){var m,d,S=n,f=this.checkParserMethodInfo(S,s);switch(S){case i.StiFunctionType.Count:return t.Report.Totals.count(s[0],this.report,null);case i.StiFunctionType.CountDistinct:return t.Report.Totals.countDistinct(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.Avg:case i.StiFunctionType.AvgD:case i.StiFunctionType.AvgI:return t.Report.Totals.avg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.AvgDate:return t.Report.Totals.avgDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.AvgTime:return t.Report.Totals.avgTime(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.Max:case i.StiFunctionType.MaxD:case i.StiFunctionType.MaxI:return t.Report.Totals.max(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.MaxDate:return t.Report.Totals.maxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.MaxStr:return t.Report.Totals.maxStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.MaxTime:return t.Report.Totals.maxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.Median:case i.StiFunctionType.MedianD:return t.Report.Totals.median(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.Min:case i.StiFunctionType.MinD:case i.StiFunctionType.MinI:return t.Report.Totals.min(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.MinDate:return t.Report.Totals.minDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.MinStr:return t.Report.Totals.minStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.MinTime:return t.Report.Totals.minDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.Mode:case i.StiFunctionType.ModeD:case i.StiFunctionType.ModeI:return t.Report.Totals.mode(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.Sum:case i.StiFunctionType.SumD:case i.StiFunctionType.SumI:return t.Report.Totals.sum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.SumDistinct:var y=new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser));return t.Report.Totals.sumDistinct(y,this.report,null);case i.StiFunctionType.SumTime:return t.Report.Totals.sum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.First:return t.Report.Totals.first(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.Last:return t.Report.Totals.last(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pCount:return t.Report.Totals.cCount(s[0],this.report,null);case i.StiFunctionType.pCountDistinct:return t.Report.Totals.cCountDistinct(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pAvg:case i.StiFunctionType.pAvgD:case i.StiFunctionType.pAvgI:return t.Report.Totals.cAvg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pAvgDate:return t.Report.Totals.cAvg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pAvgTime:return t.Report.Totals.cAvg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMax:case i.StiFunctionType.pMaxD:case i.StiFunctionType.pMaxI:return t.Report.Totals.cMax(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMaxDate:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMaxStr:return t.Report.Totals.cMaxStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMaxTime:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMedian:case i.StiFunctionType.pMedianD:case i.StiFunctionType.pMedianI:return t.Report.Totals.cMedian(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMin:case i.StiFunctionType.pMinD:case i.StiFunctionType.pMinI:return t.Report.Totals.cMin(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMinDate:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMinStr:return t.Report.Totals.cMinStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMinTime:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pMode:case i.StiFunctionType.pModeD:case i.StiFunctionType.pModeI:return t.Report.Totals.cMode(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pSum:case i.StiFunctionType.pSumD:case i.StiFunctionType.pSumI:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pSumDistinct:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pSumTime:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pFirst:return t.Report.Totals.cFirst(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.pLast:return t.Report.Totals.cLast(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prCount:return t.Report.Totals.cCountRunning(s[0],this.report,null);case i.StiFunctionType.prCountDistinct:return t.Report.Totals.cCountDistinctRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prAvg:case i.StiFunctionType.prAvgD:case i.StiFunctionType.prAvgI:return t.Report.Totals.cAvgRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prAvgDate:return t.Report.Totals.cAvgRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prAvgTime:return t.Report.Totals.cAvgRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMax:case i.StiFunctionType.prMaxD:case i.StiFunctionType.prMaxI:return t.Report.Totals.cMaxRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMaxDate:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMaxStr:return t.Report.Totals.cMaxStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMaxTime:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMedian:case i.StiFunctionType.prMedianD:case i.StiFunctionType.prMedianI:return t.Report.Totals.cMedianRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMin:case i.StiFunctionType.prMinD:case i.StiFunctionType.prMinI:return t.Report.Totals.cMinRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMinDate:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMinStr:return t.Report.Totals.cMinStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMinTime:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prMode:case i.StiFunctionType.prModeD:case i.StiFunctionType.prModeI:return t.Report.Totals.cModeRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prSum:case i.StiFunctionType.prSumD:case i.StiFunctionType.prSumI:return t.Report.Totals.cSumRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prSumDistinct:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prSumTime:return t.Report.Totals.cSumRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prFirst:return t.Report.Totals.cFirstRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.prLast:return t.Report.Totals.cLastRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case i.StiFunctionType.iCount:return t.Report.Totals.count(new r.StiParserData(s[0],null,this.sti_as(r.StiParser),s[1]),this.report,null);case i.StiFunctionType.iCountDistinct:return t.Report.Totals.countDistinct(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iAvg:case i.StiFunctionType.iAvgD:case i.StiFunctionType.iAvgI:return t.Report.Totals.avg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iAvgDate:return t.Report.Totals.avg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iAvgTime:return t.Report.Totals.avg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMax:case i.StiFunctionType.iMaxD:case i.StiFunctionType.iMaxI:return t.Report.Totals.max(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMaxDate:return t.Report.Totals.maxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMaxStr:return t.Report.Totals.maxStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMaxTime:return t.Report.Totals.maxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMedian:case i.StiFunctionType.iMedianD:case i.StiFunctionType.iMedianI:return t.Report.Totals.median(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMin:case i.StiFunctionType.iMinD:case i.StiFunctionType.iMinI:return t.Report.Totals.min(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMinDate:return t.Report.Totals.minDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMinStr:return t.Report.Totals.minStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMinTime:return t.Report.Totals.minDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iMode:case i.StiFunctionType.iModeD:case i.StiFunctionType.iModeI:return t.Report.Totals.mode(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iSum:case i.StiFunctionType.iSumD:case i.StiFunctionType.iSumI:return t.Report.Totals.sum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iSumDistinct:return t.Report.Totals.sumDistinct(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iSumTime:return t.Report.Totals.sum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iFirst:return t.Report.Totals.first(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.iLast:return t.Report.Totals.last(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piCount:return t.Report.Totals.cCount(new r.StiParserData(s[0],null,this.sti_as(r.StiParser),s[1]),this.report,null);case i.StiFunctionType.piCountDistinct:return t.Report.Totals.cCountDistinct(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piAvg:case i.StiFunctionType.piAvgD:case i.StiFunctionType.piAvgI:return t.Report.Totals.cAvg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piAvgDate:return t.Report.Totals.cAvg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piAvgTime:return t.Report.Totals.cAvg(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMax:case i.StiFunctionType.piMaxD:case i.StiFunctionType.piMaxI:return t.Report.Totals.cMax(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMaxDate:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMaxStr:return t.Report.Totals.cMaxStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMaxTime:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMedian:case i.StiFunctionType.piMedianD:case i.StiFunctionType.piMedianI:return t.Report.Totals.cMedian(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMin:case i.StiFunctionType.piMinD:case i.StiFunctionType.piMinI:return t.Report.Totals.cMin(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMinDate:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMinStr:return t.Report.Totals.cMinStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMinTime:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piMode:case i.StiFunctionType.piModeD:case i.StiFunctionType.piModeI:return t.Report.Totals.cMode(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piSum:case i.StiFunctionType.piSumD:case i.StiFunctionType.piSumI:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piSumDistinct:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piSumTime:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piFirst:return t.Report.Totals.cFirst(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.piLast:return t.Report.Totals.cLast(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priCount:return t.Report.Totals.cCountRunning(new r.StiParserData(s[0],null,this.sti_as(r.StiParser),s[1]),this.report,null);case i.StiFunctionType.priCountDistinct:return t.Report.Totals.cCountDistinctRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priAvg:case i.StiFunctionType.priAvgD:case i.StiFunctionType.priAvgI:return t.Report.Totals.cAvgRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priAvgDate:return t.Report.Totals.cAvgRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priAvgTime:return t.Report.Totals.cAvgRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMax:case i.StiFunctionType.priMaxD:case i.StiFunctionType.priMaxI:return t.Report.Totals.cMaxRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMaxDate:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMaxStr:return t.Report.Totals.cMaxStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMaxTime:return t.Report.Totals.cMaxDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMedian:case i.StiFunctionType.priMedianD:case i.StiFunctionType.priMedianI:return t.Report.Totals.cMedianRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMin:case i.StiFunctionType.priMinD:case i.StiFunctionType.priMinI:return t.Report.Totals.cMinRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMinDate:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMinStr:return t.Report.Totals.cMinStr(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMinTime:return t.Report.Totals.cMinDate(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priMode:case i.StiFunctionType.priModeD:case i.StiFunctionType.priModeI:return t.Report.Totals.cModeRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priSum:case i.StiFunctionType.priSumD:case i.StiFunctionType.priSumI:return t.Report.Totals.cSumRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priSumDistinct:return t.Report.Totals.cSum(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priSumTime:return t.Report.Totals.cSumRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priFirst:return t.Report.Totals.cFirstRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.priLast:return t.Report.Totals.cLastRunning(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser),s[2]),this.report,null);case i.StiFunctionType.Rank:switch(f){case 1:return e.Totals.rank(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null);case 2:return e.Totals.rank(new r.StiParserData(s[0],s[1],this.sti_as(r.StiParser)),this.report,null,!!s[2],+s[3])}break;case i.StiFunctionType.Abs:if((m=this.get_category(s[0]))<=1||m>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Abs","1",this.getTypeName(s[0]),"double");else if(2==m||3==m)return Math.abs(+s[0]);return Math.abs(+s[0]);case i.StiFunctionType.Acos:return m=this.get_category(s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Acos","1",this.getTypeName(s[0]),"double"),Math.acos(+s[0]);case i.StiFunctionType.Asin:return m=this.get_category(s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Asin","1",this.getTypeName(s[0]),"double"),Math.asin(+s[0]);case i.StiFunctionType.Atan:return m=this.get_category(s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Atan","1",this.getTypeName(s[0]),"double"),Math.atan(+s[0]);case i.StiFunctionType.Ceiling:if((m=this.get_category(s[0]))<=1||m>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Ceiling","1",this.getTypeName(s[0]),"double");else if(2==m)return Math.ceil(+s[0]);return Math.ceil(+s[0]);case i.StiFunctionType.Cos:return m=this.get_category(s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Cos","1",this.getTypeName(s[0]),"double"),Math.cos(+s[0]);case i.StiFunctionType.Div:if(m=this.get_category(s[0]),d=this.get_category(s[1]),m<=1||m>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Div","1",this.getTypeName(s[0]),"double");else if(d<=1||d>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Div","2",this.getTypeName(s[1]),"double");else{if(3==s.count){if(2==m){if(0==+s[1])return+s[2];return+s[0]/+s[1]}if(0==+s[1])return+s[2];return+s[0]/+s[1]}if(2==s.count){if(0==s[1].toNumber())throw new Error("DivideByZeroException: Attempt to divide by zero.");return+s[0]/+s[1]}}this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"Div",s.count.toString());break;case i.StiFunctionType.Exp:return m=this.get_category(s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Exp","1",this.getTypeName(s[0]),"double"),Math.exp(+s[0]);case i.StiFunctionType.Floor:if(m=this.get_category(s[0]),(m<=1||m>4)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Floor","1",this.getTypeName(s[0]),"double"),2==m)return Math.floor(+s[0]);return Math.floor(+s[0]);case i.StiFunctionType.Log:return m=this.get_category(s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Log","1",this.getTypeName(s[0]),"double"),Math.log(+s[0]);case i.StiFunctionType.Maximum:if(2!=s.count&&this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"Maximum",s.count.toString()),m=this.get_category(s[0]),d=this.get_category(s[1]),m<=1||m>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Maximum","1",this.getTypeName(s[0]),"double");else if(d<=1||d>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Maximum","2",this.getTypeName(s[1]),"double");else{if(2==m)return Math.max(+s[0],+s[1]);if(3==m)return Math.max(+s[0],+s[1])}return Math.max(+s[0],+s[1]);case i.StiFunctionType.Minimum:if(2!=s.count&&this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"Minimum",s.count.toString()),m=this.get_category(s[0]),d=this.get_category(s[1]),m<=1||m>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Minimum","1",this.getTypeName(s[0]),"double");else if(d<=1||d>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Minimum","2",this.getTypeName(s[1]),"double");else{if(2==m)return Math.min(+s[0],+s[1]);if(3==m)return Math.min(+s[0],+s[1])}return Math.min(+s[0],+s[1]);case i.StiFunctionType.Round:if((m=this.get_category(s[0]))<=1||m>4)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Round","1",this.getTypeName(s[0]),"double");else{if(1==s.count)return Math.round(+s[0]);if(2==s.count)return d=this.get_category(s[1]),(d<4||d>7)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Round","2",this.getTypeName(s[1]),"int"),Math.round(+s[0],+s[1])}this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"Round",s.count.toString());break;case i.StiFunctionType.Sign:if((m=this.get_category(s[0]))<=1||m>=8)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Sign","1",this.getTypeName(s[0]),"double");else{if(2==m)return Math.sign(+s[0]);if(3==m)return Math.sign(+s[0])}return Math.sign(s[0]);case i.StiFunctionType.Sin:return m=this.get_category(+s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Sin","1",this.getTypeName(s[0]),"double"),Math.sin(+s[0]);case i.StiFunctionType.Sqrt:return m=this.get_category(+s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Sqrt","1",this.getTypeName(s[0]),"double"),Math.sqrt(+s[0]);case i.StiFunctionType.Tan:return m=this.get_category(+s[0]),(m<=1||m>=8)&&this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Tan","1",this.getTypeName(s[0]),"double"),Math.tan(+s[0]);case i.StiFunctionType.Truncate:if((m=this.get_category(+s[0]))<=1||m>4)this.throwError(r.ParserErrorCode.FunctionHasInvalidArgument,null,"Truncate","1",this.getTypeName(s[0]),"double");else if(2==m)return Math.trunc(+s[0]);return Math.trunc(+s[0]);case i.StiFunctionType.DateDiff:if(1==f||2==f)return l.toDateTime(s[0]).subtract(l.toDateTime(s[1]));break;case i.StiFunctionType.DateSerial:if(1==f)return new u(u.ticksNetToTicksJs(s[0].toNumber()));if(2==f)return new u(s[0].toNumber(),s[1].toNumber(),s[2].toNumber(),0,0,0,0);break;case i.StiFunctionType.TimeSerial:if(1==f)return new c(l.toInt32(s[0]),l.toInt32(s[1]),l.toInt32(s[2]));break;case i.StiFunctionType.Year:if(1==f||2==f)return l.toDateTime(s[0]).year;break;case i.StiFunctionType.Month:if(1==f||2==f)return l.toDateTime(s[0]).month;break;case i.StiFunctionType.Day:if(1==f||2==f)return l.toDateTime(s[0]).day;break;case i.StiFunctionType.Hour:if(1==f||2==f)return l.toDateTime(s[0]).hour;break;case i.StiFunctionType.Minute:if(1==f||2==f)return l.toDateTime(s[0]).minute;break;case i.StiFunctionType.Second:if(1==f||2==f)return l.toDateTime(s[0]).second;break;case i.StiFunctionType.DayOfWeek:switch(f){case 1:return g.dayOfWeek(l.toDateTime(s[0]));case 3:return g.dayOfWeek(l.toDateTime(s[0]),s[1].toBoolean());case 5:return g.dayOfWeek(l.toDateTime(s[0]),s[1]);case 7:return g.dayOfWeek(l.toDateTime(s[0]),s[1],s[2].toBoolean())}break;case i.StiFunctionType.DayOfYear:if(1==f||2==f)return l.toDateTime(s[0]).dayOfYear.toString();break;case i.StiFunctionType.DaysInMonth:switch(f){case 1:return u.daysInMonth(l.toDateTime(s[0]).year,l.toDateTime(s[0]).month);case 3:return u.daysInMonth(l.toInt32(s[0]),l.toInt32(s[1]))}break;case i.StiFunctionType.DaysInYear:switch(f){case 1:return u.isLeapYear(l.toDateTime(s[0]).year)?366:365;case 3:return u.isLeapYear(l.toInt32(s[0]))?366:365}break;case i.StiFunctionType.MonthName:switch(f){case 1:return g.monthName(l.toDateTime(s[0]));case 3:return g.monthName(l.toDateTime(s[0]),s[1]);case 5:return g.monthName(l.toDateTime(s[0]),s[1]);case 7:return g.monthName(l.toDateTime(s[0]),s[1],s[2])}break;case i.StiFunctionType.WeekOfYear:switch(f){case 1:return g.weekOfYear(l.toDateTime(s[0]));case 3:return g.weekOfYear(l.toDateTime(s[0]),s[1]);case 5:return g.weekOfYear(l.toDateTime(s[0]),s[1],s[2])}break;case i.StiFunctionType.WeekOfMonth:switch(f){case 1:return g.weekOfMonth(l.toDateTime(s[0]));case 3:return g.weekOfMonth(l.toDateTime(s[0]),s[1]);case 5:return g.weekOfMonth(l.toDateTime(s[0]),s[1],s[2])}break;case i.StiFunctionType.Insert:return m=this.get_category(s[0]),m=this.get_category(s[1]),m=this.get_category(s[2]),l.toString(s[0]).insert(l.toNumber(s[1]),l.toString(s[2]),0);case i.StiFunctionType.Length:return m=this.get_category(s[0]),l.toString(s[0]).length;case i.StiFunctionType.Remove:return m=this.get_category(s[0]),m=this.get_category(s[1]),m=this.get_category(s[2]),l.toString(s[0]).remove(l.toNumber(s[1]),l.toNumber(s[2]));case i.StiFunctionType.Replace:return m=this.get_category(s[0]),m=this.get_category(s[1]),m=this.get_category(s[2]),l.toString(s[0]).replaceAll(l.toString(s[1]),l.toString(s[2]));case i.StiFunctionType.Roman:if((m=this.get_category(s[0]))>=4&&m<=7)return e.Dictionary.StiFunctionsStrings.roman(l.toNumber(s[0]));break;case i.StiFunctionType.Substring:return m=this.get_category(s[0]),m=this.get_category(s[1]),m=this.get_category(s[2]),l.toString(s[0]).substr(l.toNumber(s[1]),l.toNumber(s[2]));case i.StiFunctionType.ToLowerCase:return m=this.get_category(s[0]),l.toString(s[0]).toLower();case i.StiFunctionType.ToProperCase:return m=this.get_category(s[0]),l.toString(s[0]);case i.StiFunctionType.ToUpperCase:return m=this.get_category(s[0]),l.toString(s[0]).toUpper();case i.StiFunctionType.Trim:return m=this.get_category(s[0]),l.toString(s[0]).trim();case i.StiFunctionType.TryParseDecimal:return m=this.get_category(s[0]),!isNaN(l.toNumber(s[0]));case i.StiFunctionType.TryParseDouble:return m=this.get_category(s[0]),!isNaN(l.toNumber(s[0]));case i.StiFunctionType.TryParseLong:return m=this.get_category(s[0]),!isNaN(l.toNumber(s[0]));case i.StiFunctionType.Arabic:if(1==(m=this.get_category(s[0])))return e.Dictionary.StiFunctionsStrings.arabic(l.toString(s[0]));if(m>=4&&m<=7)return e.Dictionary.StiFunctionsStrings.arabic(l.toNumber(s[0]));break;case i.StiFunctionType.Persian:if(1==(m=this.get_category(s[0])))return e.Dictionary.StiFunctionsStrings.persian(l.toString(s[0]));if(m>=4&&m<=7)return e.Dictionary.StiFunctionsStrings.persian(l.toNumber(s[0]));break;case i.StiFunctionType.ToOrdinal:if((m=this.get_category(s[0]))>=4&&m<=7)return e.Dictionary.StiFunctionsStrings.toOrdinal(l.toNumber(s[0]));break;case i.StiFunctionType.Left:if(1==f)return e.Dictionary.StiFunctionsStrings.left(l.toString(s[0]),l.toNumber(s[1]));break;case i.StiFunctionType.Right:if(1==f)return e.Dictionary.StiFunctionsStrings.right(l.toString(s[0]),l.toNumber(s[1]));break;case i.StiFunctionType.Mid:if(1==f)return e.Dictionary.StiFunctionsStrings.mid(l.toString(s[0]),l.toNumber(s[1]),l.toNumber(s[2]));break;case i.StiFunctionType.ToWords:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toWords(l.toNumber(s[0]));case 4:return e.Dictionary.StiFunctionsStrings.toWords(l.toNumber(s[0]),l.toBoolean(s[1]))}break;case i.StiFunctionType.ToWordsEs:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toWordsEs(l.toNumber(s[0]),l.toBoolean(s[1]));case 2:return e.Dictionary.StiFunctionsStrings.toWordsEs2(l.toNumber(s[0]),l.toBoolean(s[1]),l.toBoolean(s[2]))}break;case i.StiFunctionType.ToWordsEnIn:return e.Dictionary.StiFunctionsStrings.toWordsEnIn(l.toNumber(s[0]),l.toBoolean(s[1]));case i.StiFunctionType.ToWordsFa:return e.Dictionary.StiFunctionsStrings.toWordsFa(l.toNumber(s[0]));case i.StiFunctionType.ToWordsPl:return e.Dictionary.StiFunctionsStrings.toWordsPl(l.toNumber(s[0]),l.toBoolean(s[1]));case i.StiFunctionType.ToWordsPt:return e.Dictionary.StiFunctionsStrings.toWordsPt(l.toNumber(s[0]),l.toBoolean(s[1]));case i.StiFunctionType.ToWordsRu:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toWordsRu(l.toNumber(s[0]));case 4:return e.Dictionary.StiFunctionsStrings.toWordsRu(l.toNumber(s[0]),l.toBoolean(s[1]))}break;case i.StiFunctionType.ToWordsUa:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toWordsUa(l.toNumber(s[0]));case 4:return e.Dictionary.StiFunctionsStrings.toWordsUa(l.toNumber(s[0]),l.toBoolean(s[1]))}break;case i.StiFunctionType.ToCurrencyWords:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toCurrencyWords(l.toNumber(s[0]),!0,!0);case 4:return e.Dictionary.StiFunctionsStrings.toCurrencyWords(l.toNumber(s[0]),!0,l.toBoolean(s[1]));case 7:return e.Dictionary.StiFunctionsStrings.toCurrencyWords(l.toNumber(s[0]),l.toBoolean(s[1]),l.toBoolean(s[2]));case 10:return e.Dictionary.StiFunctionsStrings.toCurrencyWords(l.toNumber(s[0]),l.toBoolean(s[1]),l.toBoolean(s[2]),l.toString(s[3]),l.toString(s[4]))}break;case i.StiFunctionType.ToCurrencyWordsEnGb:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsEnGb(l.toNumber(s[0]),l.toString(s[1]),l.toNumber(s[2]));case i.StiFunctionType.ToCurrencyWordsEnIn:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsEnIn(l.toString(s[0]),l.toString(s[1]),l.toNumber(s[2]),l.toNumber(s[3]),l.toBoolean(s[4]));case i.StiFunctionType.ToCurrencyWordsEs:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsEs(l.toNumber(s[0]),l.toString(s[1]),l.toNumber(s[2]));case i.StiFunctionType.ToCurrencyWordsFr:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsFr(l.toNumber(s[0]),l.toString(s[1]),l.toNumber(s[2]));case i.StiFunctionType.ToCurrencyWordsNl:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsNl(l.toNumber(s[0]),l.toString(s[1]),l.toNumber(s[2]));case i.StiFunctionType.ToCurrencyWordsPl:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsPl(l.toNumber(s[0]),l.toString(s[1]),l.toBoolean(s[2]),l.toBoolean(s[3]));case i.StiFunctionType.ToCurrencyWordsPt:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsPt(l.toNumber(s[0]),l.toBoolean(s[1]),l.toBoolean(s[2]));case i.StiFunctionType.ToCurrencyWordsPtBr:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsPtBr(l.toNumber(s[0]));case i.StiFunctionType.ToCurrencyWordsRu:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsRu(l.toNumber(s[0]));case 4:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsRu(l.toNumber(s[0]),!0,"RUR",l.toBoolean(s[1]));case 7:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsRu(l.toNumber(s[0]),!0,l.toString(s[2]),l.toBoolean(s[1]));case 10:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsRu(l.toNumber(s[0]),l.toBoolean(s[2]),l.toString(s[1]),!0)}break;case i.StiFunctionType.ToCurrencyWordsThai:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsThai(l.toNumber(s[0]))}break;case i.StiFunctionType.ToCurrencyWordsUa:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsUa(l.toNumber(s[0]));case 4:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsUa(l.toNumber(s[0]),!0,"UAH",l.toBoolean(s[1]));case 7:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsUa(l.toNumber(s[0]),!0,l.toString(s[2]),l.toBoolean(s[1]))}break;case i.StiFunctionType.ToCurrencyWordsZh:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.toCurrencyWordsZh(l.toNumber(s[0]))}break;case i.StiFunctionType.DateToStr:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.dateToStr(l.toDateTime(s[0]));case 3:return e.Dictionary.StiFunctionsStrings.dateToStr(l.toDateTime(s[0]),l.toBoolean(s[1]))}break;case i.StiFunctionType.DateToStrPl:return e.Dictionary.StiFunctionsStrings.dateToStrPl(l.toDateTime(s[0]),l.toBoolean(s[1]));case i.StiFunctionType.DateToStrRu:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.dateToStrRu(l.toDateTime(s[0]));case 2:return e.Dictionary.StiFunctionsStrings.dateToStrRu(l.toDateTime(s[0]),l.toBoolean(s[1]))}break;case i.StiFunctionType.DateToStrUa:switch(f){case 1:return e.Dictionary.StiFunctionsStrings.dateToStrUa(l.toDateTime(s[0]));case 2:return e.Dictionary.StiFunctionsStrings.dateToStrUa(l.toDateTime(s[0]),l.toBoolean(s[1]))}break;case i.StiFunctionType.DateToStrPt:return e.Dictionary.StiFunctionsStrings.DateToStrPt(l.toDateTime(s[0]));case i.StiFunctionType.DateToStrPtBr:return e.Dictionary.StiFunctionsStrings.dateToStrPtBr(l.toDateTime(s[0]));case i.StiFunctionType.StringIsNullOrEmpty:if(1==f)return String.isNullOrEmpty(l.toString(s[0]));break;case i.StiFunctionType.StringIsNullOrWhiteSpace:if(1==f)return String.isNullOrWhiteSpace(l.toString(s[0]));break;case i.StiFunctionType.IsNull:if(1==f)return e.Dictionary.StiFunctionsPrintState.isNull(s[0],l.toString(s[1]));break;case i.StiFunctionType.Next:if(1==f)return e.Dictionary.StiFunctionsPrintState.next(s[0],l.toString(s[1]));break;case i.StiFunctionType.NextIsNull:if(1==f)return e.Dictionary.StiFunctionsPrintState.nextIsNull(s[0],l.toString(s[1]));break;case i.StiFunctionType.Previous:if(1==f)return e.Dictionary.StiFunctionsPrintState.previous(s[0],l.toString(s[1]));break;case i.StiFunctionType.PreviousIsNull:if(1==f)return e.Dictionary.StiFunctionsPrintState.previousIsNull(s[0],l.toString(s[1]));break;case i.StiFunctionType.IIF:return l.toBoolean(s[0])?s[1]:s[2];case i.StiFunctionType.Choose:m=this.get_category(s[0]);var b=l.toNumber(s[0]);if(b>0&&b<s.count)return s[b];return null;case i.StiFunctionType.Switch:var C=0;while(C+1<s.count){if(l.toBoolean(s[C]))return s[C+1];C+=2}return null;case i.StiFunctionType.ToString:if(null==s[0]||s[0]==p.value)return String.empty;if(1==(m=this.get_category(s[0])))return l.toString(s[0]);if(2==m||3==m){var v=l.toNumber(s[0]);return 1==s.count?v.toString():String.customFormat(v,l.toString(s[1]))}if(4==m||6==m){var I=l.toNumber(s[0]);return 1==s.count?I.toString():String.customFormat(I,l.toString(s[1]))}if(5==m||7==m){var A=l.toNumber(s[0]);return 1==s.count?A.toString():String.customFormat(A,l.toString(s[1]))}if(8==m){var w=l.toDateTime(s[0]);return 1==s.count?w.toString():String.stiFormat(l.toString(s[1]),w.toString)}return 8==m?l.toBoolean(s[0]).toString():s[0].toString();case i.StiFunctionType.Format:return m=this.get_category(s[0]),String.stiFormat(l.toString(s[0]),s[1]);case i.StiFunctionType.SystemConvertToBoolean:return t.System.Convert.toBoolean(s[0]);case i.StiFunctionType.SystemConvertToByte:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToChar:return t.System.Convert.toString(s[0]);case i.StiFunctionType.SystemConvertToDateTime:return t.System.Convert.toDateTime(s[0]);case i.StiFunctionType.SystemConvertToDecimal:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToDouble:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToInt16:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToInt32:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToInt64:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToSByte:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToSingle:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToString:return t.System.Convert.toString(s[0]);case i.StiFunctionType.SystemConvertToUInt16:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToUInt32:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.SystemConvertToUInt64:return t.System.Convert.toNumber(s[0]);case i.StiFunctionType.MathRound:switch(f){case 1:return Math.round(l.toNumber(s[0]));case 2:return Math.round(l.toNumber(s[0]),l.toNumber(s[1]));case 3:return Math.round(l.toNumber(s[0]),l.toNumber(s[1]));case 4:return Math.round(l.toNumber(s[0]),l.toNumber(s[1]));case 5:return Math.round(l.toNumber(s[0]));case 6:return Math.round(l.toNumber(s[0]),l.toNumber(s[1]));case 7:return Math.round(l.toNumber(s[0]),l.toNumber(s[1]));case 8:return Math.round(l.toNumber(s[0]),l.toNumber(s[1]))}break;case i.StiFunctionType.MathPow:switch(f){case 1:return Math.pow(l.toNumber(s[0]),l.toNumber(s[1]))}break;case i.StiFunctionType.ConvertRtf:var T=new Object[s.count];return s.copyTo(T),null;case i.StiFunctionType.GetAnchorPageNumber:switch(f){case 1:return this.report.getAnchorPageNumber(s[0])}break;case i.StiFunctionType.GetAnchorPageNumberThrough:switch(f){case 1:return this.report.getAnchorPageNumberThrough(s[0])}break;case i.StiFunctionType.ParseDateTime:switch(f){case 1:return l.toDateTime(l.toString(s[0]))}break;case i.StiFunctionType.ParseDecimal:switch(f){case 1:return l.toNumber(l.toString(s[0]))}break;case i.StiFunctionType.ParseDouble:switch(f){case 1:return l.toNumber(l.toString(s[0]))}break;case i.StiFunctionType.ParseInt:switch(f){case 1:return l.toNumber(l.toString(s[0]))}break;case i.StiFunctionType.EngineHelperJoinColumnContent:switch(f){case 1:return e.Func.EngineHelper.joinColumnContent(s[0],l.toString(s[1]),l.toString(s[2]));case 2:return e.Func.EngineHelper.joinColumnContent(s[0],l.toString(s[1]),l.toString(s[2]));case 3:return e.Func.EngineHelper.joinColumnContent(s[0],l.toString(s[1]),l.toString(s[2]),l.toBoolean(s[3]));case 4:return e.Func.EngineHelper.joinColumnContent(s[0],l.toString(s[1]),l.toString(s[2]),l.toBoolean(s[3]))}break;case i.StiFunctionType.EngineHelperToQueryString:switch(f){case 1:if(s[0].sti_is(h))try{for(var B=new Array,R=s[0],P=0,F=R;P<F.length;P++){var x=F[P];B.add(x)}return e.Func.EngineHelper.toQueryString(B,l.toString(s[1]),l.toString(s[2]))}catch(e){t.System.StiError.showError(e,!1)}break}break}if(S>=i.StiFunctionType.rCount&&S<=i.StiFunctionType.rLast||S>=i.StiFunctionType.riCount&&S<=i.StiFunctionType.riLast||S>=i.StiFunctionType.cCount&&S<=i.StiFunctionType.cLast||S>=i.StiFunctionType.crCount&&S<=i.StiFunctionType.crLast||S>=i.StiFunctionType.ciCount&&S<=i.StiFunctionType.ciLast||S>=i.StiFunctionType.criCount&&i.StiFunctionType.criLast,S>=i.StiFunctionType.UserFunction){for(var D=null,k=0,E=this.userFunctionsList.keys;k<E.length;k++){var G=E[k];if(this.userFunctionsList.get(G)==S){D=G;break}}if(null!=D){for(var _=s.count,L=Array.create(a,_),N=Array.create(Object,_),O=0;O<_;O++)null==s[O]?L[O]=Object:L[O]=s[O].getStiType(),N[O]=s[O];for(var Z=o.getFunctions(!1),M=0,H=Z;M<H.length;M++){var W=H[M];if(W.functionName!=D)continue;if((null!=W.argumentTypes?W.argumentTypes.length:0)!=_)continue;for(var V=!0,O=0;O<_;O++){if(r.StiParser_Check.isImplicitlyCastableTo(L[O],W.argumentTypes[O]))continue;V=!1;break}if(V){var Y=o.jsFunctions.get(D);if(null!=Y)return Y.apply(null,N)}}}}return null},d.prototype.checkParserMethodInfo=function(t,e){for(var i=e.count,r=Array.create(a,i),n=0;n<i;n++)null==e[n]?r[n]=Object:r[n]=e[n].getStiType();var o=this.getParserMethodInfo(t,r);if(null!=o)return o.number;return 0},d.prototype.getParserMethodInfo=function(t,e){var o=d.methodsHash.get(t);if(null==o)return null;for(var a=e.length,l=o,u=!1,c=0,p=l;c<p.length;c++){var h=p[c];if(h.arguments.length!=a)continue;u=!0;for(var g=!0,m=0;m<a;m++){if(r.StiParser_Check.isImplicitlyCastableTo(e[m],h.arguments[m]))continue;g=!1;break}if(g)return h}u||this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,n.getName(i.StiFunctionType,t.toNumber()),a.toString());for(var S=new s,m=0;m<a;m++)S.append(e[m].getStiType().getStiTypeName()),m<a-1&&S.append(",");return this.throwError(r.ParserErrorCode.NoMatchingOverloadedMethod,null,n.getName(i.StiFunctionType,t.toNumber()),S.toString()),null},d}(r.StiParser_AsmMethods);r.StiParser_AsmFunctions=m}(r=i.StiParser||(i.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(i){var r=function(r){function n(){var t=null!==r&&r.apply(this,arguments)||this;return t.currentToken=null,t.asmList=null,t}return __extends(n,r),n.prototype.eval_exp=function(){if(this.tokenPos=0,0==this.tokensList.count)return void this.throwError(i.ParserErrorCode.ExpressionIsEmpty);this.eval_exp0(),this.tokenPos<=this.tokensList.count&&this.throwError(i.ParserErrorCode.UnprocessedLexemesRemain)},n.prototype.eval_exp0=function(){this.get_token(),this.eval_exp01()},n.prototype.eval_exp01=function(){if(this.currentToken.type==e.StiTokenType.Variable){var t=this.currentToken;if(this.get_token(),this.currentToken.type==e.StiTokenType.Assign)return this.get_token(),this.eval_exp1(),void this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.CopyToVariable,t.value));this.tokenPos--,this.currentToken=this.tokensList[this.tokenPos-1]}this.eval_exp1()},n.prototype.eval_exp1=function(){if(this.eval_exp10(),this.currentToken.type==e.StiTokenType.Question){this.get_token();var t=new i.StiAsmCommand(e.StiAsmCommandType.JumpFalse,0,null);this.asmList.add(t),this.eval_exp10(),this.currentToken.type!=e.StiTokenType.Colon&&this.throwError(i.ParserErrorCode.SyntaxError,this.currentToken);var r=new i.StiAsmCommand(e.StiAsmCommandType.Jump,0,null);this.asmList.add(r),t.parameter1=this.asmList.count,this.get_token(),this.eval_exp10(),r.parameter1=this.asmList.count}},n.prototype.eval_exp10=function(){this.eval_exp11();while(this.currentToken.type==e.StiTokenType.DoubleOr)this.get_token(),this.eval_exp11(),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Or2))},n.prototype.eval_exp11=function(){this.eval_exp12();while(this.currentToken.type==e.StiTokenType.DoubleAnd)this.get_token(),this.eval_exp12(),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.And2))},n.prototype.eval_exp12=function(){this.eval_exp14(),this.currentToken.type==e.StiTokenType.Or&&(this.get_token(),this.eval_exp14(),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Or)))},n.prototype.eval_exp14=function(){this.eval_exp15(),this.currentToken.type==e.StiTokenType.Xor&&(this.get_token(),this.eval_exp15(),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Xor)))},n.prototype.eval_exp15=function(){this.eval_exp16(),this.currentToken.type==e.StiTokenType.And&&(this.get_token(),this.eval_exp16(),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.And)))},n.prototype.eval_exp16=function(){if(this.eval_exp17(),this.currentToken.type==e.StiTokenType.Equal||this.currentToken.type==e.StiTokenType.NotEqual){var t=new i.StiAsmCommand(e.StiAsmCommandType.CompareEqual);this.currentToken.type==e.StiTokenType.NotEqual&&(t.type=e.StiAsmCommandType.CompareNotEqual),this.get_token(),this.eval_exp17(),this.asmList.add(t)}},n.prototype.eval_exp17=function(){if(this.eval_exp18(),this.currentToken.type==e.StiTokenType.Left||this.currentToken.type==e.StiTokenType.LeftEqual||this.currentToken.type==e.StiTokenType.Right||this.currentToken.type==e.StiTokenType.RightEqual){var t=null;this.currentToken.type==e.StiTokenType.Left&&(t=new i.StiAsmCommand(e.StiAsmCommandType.CompareLeft)),this.currentToken.type==e.StiTokenType.LeftEqual&&(t=new i.StiAsmCommand(e.StiAsmCommandType.CompareLeftEqual)),this.currentToken.type==e.StiTokenType.Right&&(t=new i.StiAsmCommand(e.StiAsmCommandType.CompareRight)),this.currentToken.type==e.StiTokenType.RightEqual&&(t=new i.StiAsmCommand(e.StiAsmCommandType.CompareRightEqual)),this.get_token(),this.eval_exp18(),this.asmList.add(t)}},n.prototype.eval_exp18=function(){if(this.eval_exp2(),this.currentToken.type==e.StiTokenType.Shl||this.currentToken.type==e.StiTokenType.Shr){var t=new i.StiAsmCommand(e.StiAsmCommandType.Shl);this.currentToken.type==e.StiTokenType.Shr&&(t.type=e.StiAsmCommandType.Shr),this.get_token(),this.eval_exp2(),this.asmList.add(t)}},n.prototype.eval_exp2=function(){this.eval_exp3();while(this.currentToken.type==e.StiTokenType.Plus||this.currentToken.type==e.StiTokenType.Minus){var t=this.currentToken;this.get_token(),this.eval_exp3(),t.type==e.StiTokenType.Minus?this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Sub)):t.type==e.StiTokenType.Plus&&this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Add))}},n.prototype.eval_exp3=function(){this.eval_exp4();while(this.currentToken.type==e.StiTokenType.Mult||this.currentToken.type==e.StiTokenType.Div||this.currentToken.type==e.StiTokenType.Percent){var t=this.currentToken;this.get_token(),this.eval_exp4(),t.type==e.StiTokenType.Mult?this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Mult)):t.type==e.StiTokenType.Div&&this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Div)),t.type==e.StiTokenType.Percent&&this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Mod))}},n.prototype.eval_exp4=function(){this.eval_exp5()},n.prototype.eval_exp5=function(){var t=null;this.currentToken.type!=e.StiTokenType.Plus&&this.currentToken.type!=e.StiTokenType.Minus&&this.currentToken.type!=e.StiTokenType.Not||(this.currentToken.type==e.StiTokenType.Minus&&(t=new i.StiAsmCommand(e.StiAsmCommandType.Neg)),this.currentToken.type==e.StiTokenType.Not&&(t=new i.StiAsmCommand(e.StiAsmCommandType.Not)),this.get_token()),this.eval_exp6(),null!=t&&this.asmList.add(t)},n.prototype.eval_exp6=function(){if(this.currentToken.type==e.StiTokenType.LParenthesis)if(this.get_token(),this.currentToken.type==e.StiTokenType.Cast){var t=this.currentToken.valueObject;this.get_token(),this.currentToken.type!=e.StiTokenType.RParenthesis&&this.throwError(i.ParserErrorCode.RightParenthesisExpected),this.get_token(),this.eval_exp5(),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.Cast,t))}else this.eval_exp1(),this.currentToken.type!=e.StiTokenType.RParenthesis&&this.throwError(i.ParserErrorCode.RightParenthesisExpected),this.get_token(),this.currentToken.type==e.StiTokenType.Dot&&(this.get_token(),this.eval_exp7()),this.currentToken.type==e.StiTokenType.LBracket&&this.eval_exp62();else this.eval_exp62()},n.prototype.eval_exp62=function(){if(this.currentToken.type==e.StiTokenType.LBracket){var t=0;while(0==t||this.currentToken.type==e.StiTokenType.Comma)this.get_token(),this.eval_exp1(),t++;this.currentToken.type!=e.StiTokenType.RBracket&&this.throwError(i.ParserErrorCode.SyntaxError,this.currentToken),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushArrayElement,t+1)),this.get_token(),this.currentToken.type==e.StiTokenType.LBracket&&this.eval_exp62(),this.currentToken.type==e.StiTokenType.Dot&&(this.get_token(),this.eval_exp7())}else this.eval_exp7()},n.prototype.eval_exp7=function(){this.atom(),this.currentToken.type==e.StiTokenType.Dot&&(this.get_token(),this.eval_exp7()),this.currentToken.type==e.StiTokenType.LBracket&&this.eval_exp62()},n.prototype.atom=function(){if(this.currentToken.type==e.StiTokenType.Variable)return this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushVariable,this.currentToken.value)),void this.get_token();if(this.currentToken.type==e.StiTokenType.SystemVariable)return this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushSystemVariable,i.StiParser_Properties.systemVariablesList.get(this.currentToken.value))),void this.get_token();if(this.currentToken.type==e.StiTokenType.Function){var t=this.currentToken,r=void 0,n=i.StiParser_Properties.functionsList.get(t.value);r=null!=n?n:this.userFunctionsList.get(t.value);var o=new i.StiAsmCommand(e.StiAsmCommandType.PushFunction,r,this.get_args_count(r));return o.position=this.expressionPosition+t.position,o.length=t.length,this.asmList.add(o),void this.get_token()}if(this.currentToken.type==e.StiTokenType.Method){var a=this.currentToken,s=i.StiParser_Properties.methodsList.get(a.value);return this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushMethod,s,this.get_args_count(s)+1)),void this.get_token()}if(this.currentToken.type==e.StiTokenType.Property){var l=this.currentToken,u=i.StiParser_Properties.propertiesList.get(l.value);return null==u&&(u=l.value),this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushProperty,u)),void this.get_token()}if(this.currentToken.type==e.StiTokenType.DataSourceField)return this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushDataSourceField,this.currentToken.value,this.currentToken.valueObject)),void this.get_token();if(this.currentToken.type==e.StiTokenType.BusinessObjectField){var o=new i.StiAsmCommand(e.StiAsmCommandType.PushBusinessObjectField,this.currentToken.value);return o.position=this.expressionPosition+this.currentToken.position,o.length=this.currentToken.length,this.asmList.add(o),void this.get_token()}if(this.currentToken.type==e.StiTokenType.Component)return this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushComponent,this.componentsList.get(this.currentToken.value))),void this.get_token();if(this.currentToken.type==e.StiTokenType.Number)return this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushValue,this.currentToken.valueObject)),void this.get_token();if(this.currentToken.type==e.StiTokenType.String)return this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushValue,this.currentToken.valueObject)),void this.get_token();this.currentToken.type==e.StiTokenType.Empty&&this.throwError(i.ParserErrorCode.UnexpectedEndOfExpression),this.throwError(i.ParserErrorCode.SyntaxError,this.currentToken)},n.prototype.get_args_count=function(r){var n=-1;null!=this.currentToken&&(n=this.currentToken.position);var o=this.get_args(),a=r;if((a==e.StiFunctionType.Count||a==e.StiFunctionType.rCount||a==e.StiFunctionType.cCount||a==e.StiFunctionType.crCount||a==e.StiFunctionType.pCount||a==e.StiFunctionType.prCount)&&0==o.count||(a>=e.StiFunctionType.CountDistinct&&a<=e.StiFunctionType.Last||a>=e.StiFunctionType.rCountDistinct&&a<=e.StiFunctionType.rLast||a>=e.StiFunctionType.cCountDistinct&&a<=e.StiFunctionType.cLast||a>=e.StiFunctionType.crCountDistinct&&a<=e.StiFunctionType.crLast||a>=e.StiFunctionType.pCountDistinct&&a<=e.StiFunctionType.pLast||a>=e.StiFunctionType.prCountDistinct&&a<=e.StiFunctionType.prLast)&&1==o.count||(a==e.StiFunctionType.iCount||a==e.StiFunctionType.riCount||a==e.StiFunctionType.ciCount||a==e.StiFunctionType.criCount||a==e.StiFunctionType.piCount||a==e.StiFunctionType.priCount)&&1==o.count||(a>=e.StiFunctionType.iCountDistinct&&a<=e.StiFunctionType.iLast||a>=e.StiFunctionType.riCountDistinct&&a<=e.StiFunctionType.riLast||a>=e.StiFunctionType.ciCountDistinct&&a<=e.StiFunctionType.ciLast||a>=e.StiFunctionType.criCountDistinct&&a<=e.StiFunctionType.criLast||a>=e.StiFunctionType.piCountDistinct&&a<=e.StiFunctionType.piLast||a>=e.StiFunctionType.priCountDistinct&&a<=e.StiFunctionType.priLast)&&2==o.count){var s=this.component.getGroupHeaderBand();null==s&&(s=this.component.getDataBand());var l=[],u=new i.StiAsmCommand(e.StiAsmCommandType.PushComponent,s);u.position=this.expressionPosition+n,l.add(u),o.insert(0,l)}if(!(o.count>0&&o[0].count>0&&o[0][0].type==e.StiAsmCommandType.PushComponent&&o[0][0].parameter1.sti_is(t.Report.Components.StiGroupHeaderBand))&&(a>=e.StiFunctionType.Count&&a<=e.StiFunctionType.Last||a>=e.StiFunctionType.rCount&&a<=e.StiFunctionType.rLast||a>=e.StiFunctionType.iCount&&a<=e.StiFunctionType.iLast||a>=e.StiFunctionType.riCount&&a<=e.StiFunctionType.riLast||a>=e.StiFunctionType.cCount&&a<=e.StiFunctionType.cLast||a>=e.StiFunctionType.crCount&&a<=e.StiFunctionType.crLast||a>=e.StiFunctionType.ciCount&&a<=e.StiFunctionType.ciLast||a>=e.StiFunctionType.criCount&&a<=e.StiFunctionType.criLast||a>=e.StiFunctionType.pCount&&a<=e.StiFunctionType.pLast||a>=e.StiFunctionType.prCount&&a<=e.StiFunctionType.prLast||a>=e.StiFunctionType.piCount&&a<=e.StiFunctionType.piLast||a>=e.StiFunctionType.priCount&&a<=e.StiFunctionType.priLast)){var s=this.component.getGroupHeaderBand();if(null!=s){var l=[];l.add(new i.StiAsmCommand(e.StiAsmCommandType.PushComponent,s)),o[0]=l}}if((a>=e.StiFunctionType.pCount&&a<=e.StiFunctionType.pLast||a>=e.StiFunctionType.prCount&&a<=e.StiFunctionType.prLast||a>=e.StiFunctionType.piCount&&a<=e.StiFunctionType.piLast||a>=e.StiFunctionType.priCount&&a<=e.StiFunctionType.priLast)&&o.count>0){var c=o[0];if(null!=c&&c.count>0&&c[0].type==e.StiAsmCommandType.PushComponent&&c[0].parameter1.sti_is(t.Report.Components.StiBand)){var p=c[0].parameter1.name;if(null==this.report.dataBandsUsedInPageTotals)this.report.dataBandsUsedInPageTotals=[],this.report.dataBandsUsedInPageTotals[0]=p;else{for(var h=!1,g=0,m=this.report.dataBandsUsedInPageTotals;g<m.length;g++){if(m[g]==p){h=!0;break}}if(!h){for(var d=[],S=0;S<this.report.dataBandsUsedInPageTotals.length;S++)d[S]=this.report.dataBandsUsedInPageTotals[S];d[this.report.dataBandsUsedInPageTotals.length]=p,this.report.dataBandsUsedInPageTotals=d}}}}var f=0;i.StiParser_Properties.parametersList.contains(r)&&(f=i.StiParser_Properties.parametersList.get(r));for(var y=1,b=0,C=o;b<C.length;b++){var v=C[b];(f&y)>0?this.asmList.add(new i.StiAsmCommand(e.StiAsmCommandType.PushValue,v)):this.asmList.addRange(v),y<<=1}return o.count},n.prototype.get_args=function(){var t=[];if(this.get_token(),this.currentToken.type!=e.StiTokenType.LParenthesis&&this.throwError(i.ParserErrorCode.LeftParenthesisExpected),this.get_token(),this.currentToken.type==e.StiTokenType.RParenthesis)return t;this.tokenPos--,this.currentToken=this.tokensList[this.tokenPos-1];var r=this.asmList;do{this.asmList=new Array,this.eval_exp0(),t.add(this.asmList)}while(this.currentToken.type==e.StiTokenType.Comma);return this.asmList=r,this.currentToken.type!=e.StiTokenType.RParenthesis&&this.throwError(i.ParserErrorCode.RightParenthesisExpected),t},n.prototype.get_token=function(){this.tokenPos<this.tokensList.count?this.currentToken=this.tokensList[this.tokenPos]:this.currentToken=new i.StiToken,this.tokenPos++},n}(i.StiParser_AsmFunctions);i.StiParser_Parser=r}(i=e.StiParser||(e.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Base.StiActivator,o=t.System.Collections.Hashtable,a=t.Report.Components.StiText,s=t.System.DateTime,l=function(){function t(t,e,i,r){void 0===r&&(r=null),this.data=null,this.asmList=null,this.asmList2=null,this.conditionAsmList=null,this.parser=null,this.data=t,this.asmList=e,this.parser=i,this.conditionAsmList=r}return t}();r.StiParserData=l;var u=function(){function t(t,e){this.component=t,this.expression=e}return t}();r.StiFilterParserData=u;var c=function(){function t(t,e,r){void 0===t&&(t=i.StiTokenType.Empty),void 0===e&&(e=-1),void 0===r&&(r=-1),this.type=i.StiTokenType.Empty,this.position=-1,this.length=-1,this.type=t,this.position=e,this.length=r}return t.prototype.toString=function(){return String.stiFormat("TokenType={0}{1}",this.type.getStiType().getStiNetTypeName(),null!=this.value?String.stiFormat(', value="{0}"',this.value):"")},t}();r.StiToken=c;var p=function(){function e(t,e,i){void 0===e&&(e=null),void 0===i&&(i=null),this.position=-1,this.length=-1,this.type=t,this.parameter1=e,this.parameter2=i}return e.prototype.toString=function(){return String.stiFormat("{0}({1},{2})",t.System.Enum.getName(i.StiAsmCommandType,this.type),null!=this.parameter1?this.parameter1.toString():"null",null!=this.parameter2?this.parameter2.toString():"null")},e}();r.StiAsmCommand=p;var h=function(l){function u(){var t=null!==l&&l.apply(this,arguments)||this;return t.sender=null,t}return __extends(u,l),u.prototype.executeAsm=function(r){var n=r;if(null==n||0==n.count)return null;for(var o=[],a=null,s=0,l=0,c=0;c<n.count;c++){var p=n[c];switch(p.type){case i.StiAsmCommandType.PushValue:o.push(p.parameter1);break;case i.StiAsmCommandType.PushVariable:o.push(this.getVariableValue(p.parameter1));break;case i.StiAsmCommandType.PushSystemVariable:o.push(this.get_systemVariable(p.parameter1));break;case i.StiAsmCommandType.PushComponent:o.push(p.parameter1);break;case i.StiAsmCommandType.CopyToVariable:this.report.setVariable(p.parameter1,o[o.count-1]);break;case i.StiAsmCommandType.PushFunction:a=new Array;for(var h=0;h<p.parameter2;h++)a.add(o.pop());a.reverse(),o.push(this.call_func(p.parameter1,a));break;case i.StiAsmCommandType.PushMethod:a=[];for(var h=0;h<p.parameter2;h++)a.add(o.pop());a.reverse(),o.push(this.call_method(p.parameter1,a));break;case i.StiAsmCommandType.PushProperty:a=[],a.add(o.pop()),o.push(this.call_property(p.parameter1,a));break;case i.StiAsmCommandType.PushDataSourceField:var g=null;g=null!=p.parameter2&&p.parameter2.sti_is(Array)?p.parameter2:p.parameter1.split(".");var m=this.report.dictionary.dataSources.getByName(g[0]);if(m.sti_is(t.Report.Dictionary.StiVirtualSource)&&g.count>2&&!m.columns.contains(g[1])){var d=g[1]+"."+g[2];m.columns.contains(d)?(g[1]=d,g.removeAt(2)):g.count>3&&(d+="."+g[3],m.columns.contains(d)&&(g[1]=d,g.removeAt(2),g.removeAt(2)))}if(g.count>1)if(2==g.count){var S=m.columns.getByName(g[1]);null!=S&&S.sti_is(t.Report.Dictionary.StiCalcDataColumn)?o.push(u.parseTextValue("{"+S.expression+"}",this.component)):o.push(e.StiReport.changeType(m.getData(g[1]),S.type))}else{var f=g[1],y=m.getParentData(f);m=m.getParentDataSource(f);var b=2;while(b<g.count-1)f=g[b],y=y.getParentData(f),m=m.getParentDataSource(f),b++;var S=m.columns.getByName(g[b]);if(null!=S&&S.sti_is(t.Report.Dictionary.StiCalcDataColumn))o.push(u.parseTextValue("{"+S.expression+"}",this.component));else{var C=null;null!=y&&(C=y.getByColumnName(g[b])),o.push(e.StiReport.changeType(C,S.type))}}else o.push(m);break;case i.StiAsmCommandType.PushBusinessObjectField:break;case i.StiAsmCommandType.PushArrayElement:a=[];for(var h=0;h<p.parameter1.toNumber();h++)a.add(o.pop());a.reverse(),o.push(this.call_arrayElement(a));break;case i.StiAsmCommandType.Jump:c=p.parameter1.toNumber()-1;break;case i.StiAsmCommandType.JumpTrue:o.pop()&&(c=p.parameter1.toNumber()-1);break;case i.StiAsmCommandType.JumpFalse:o.pop()||(c=p.parameter1.toNumber()-1);break;case i.StiAsmCommandType.Add:l=o.pop(),s=o.pop(),o.push(this.op_Add(s,l));break;case i.StiAsmCommandType.Sub:l=o.pop(),s=o.pop(),o.push(this.op_Sub(s,l));break;case i.StiAsmCommandType.Mult:l=o.pop(),s=o.pop(),o.push(this.op_Mult(s,l));break;case i.StiAsmCommandType.Div:l=o.pop(),s=o.pop(),o.push(this.op_Div(s,l));break;case i.StiAsmCommandType.Mod:l=o.pop(),s=o.pop(),o.push(this.op_Mod(s,l));break;case i.StiAsmCommandType.Power:l=o.pop(),s=o.pop(),o.push(this.op_Pow(s,l));break;case i.StiAsmCommandType.Neg:s=o.pop(),o.push(this.op_Neg(s));break;case i.StiAsmCommandType.Cast:s=o.pop(),l=p.parameter1,o.push(this.op_Cast(s,l));break;case i.StiAsmCommandType.Not:s=o.pop(),o.push(this.op_Not(s));break;case i.StiAsmCommandType.CompareLeft:l=o.pop(),s=o.pop(),o.push(this.op_CompareLeft(s,l));break;case i.StiAsmCommandType.CompareLeftEqual:l=o.pop(),s=o.pop(),o.push(this.op_CompareLeftEqual(s,l));break;case i.StiAsmCommandType.CompareRight:l=o.pop(),s=o.pop(),o.push(this.op_CompareRight(s,l));break;case i.StiAsmCommandType.CompareRightEqual:l=o.pop(),s=o.pop(),o.push(this.op_CompareRightEqual(s,l));break;case i.StiAsmCommandType.CompareEqual:l=o.pop(),s=o.pop(),o.push(this.op_CompareEqual(s,l));break;case i.StiAsmCommandType.CompareNotEqual:l=o.pop(),s=o.pop(),o.push(this.op_CompareNotEqual(s,l));break;case i.StiAsmCommandType.Shl:l=o.pop(),s=o.pop(),o.push(this.op_Shl(s,l));break;case i.StiAsmCommandType.Shr:l=o.pop(),s=o.pop(),o.push(this.op_Shr(s,l));break;case i.StiAsmCommandType.And:l=o.pop(),s=o.pop(),o.push(this.op_And(s,l));break;case i.StiAsmCommandType.Or:l=o.pop(),s=o.pop(),o.push(this.op_Or(s,l));break;case i.StiAsmCommandType.Xor:l=o.pop(),s=o.pop(),o.push(this.op_Xor(s,l));break;case i.StiAsmCommandType.And2:l=o.pop(),s=o.pop(),o.push(this.op_And2(s,l));break;case i.StiAsmCommandType.Or2:l=o.pop(),s=o.pop(),o.push(this.op_Or2(s,l));break}}return o.pop()},u.prototype.getVariableValue=function(e){var i=null==this.report.compiledReport?this.report:this.report.compiledReport,r=i.dictionary.variables.getByName(e);if(null!=r&&r.readOnly&&r.initBy==t.Report.Dictionary.StiVariableInitBy.Expression){var n=new a;return n.name="**ReportVariables**",n.page=this.report.pages.getByIndex(0),u.parseTextValue("{"+r.value+"}",n)}if(null!=i.variables&&i.variables.containsKey(e))return i.variables.get(e);if(null!=r){if(r.initBy==t.Report.Dictionary.StiVariableInitBy.Expression)return u.prepareVariableValue(r,i);return r.valueObject}return null},u.prototype.call_arrayElement=function(i){var n=i[0];if(i.length<2&&this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"get_ArrayElement",(i.count-1).toString()),n.sti_is(String)){2!=i.length&&this.throwError(r.ParserErrorCode.NoOverloadForMethodTakesNArguments,null,"string.get_Item",(i.count-1).toString());var o=i[1].toNumber();return n[o]}if(n.sti_is(e.StiReport)){var a=i[1].toString();return n.getVariable(a)}if(n.sti_is(t.Report.Dictionary.StiDataSource)){var s=i[1].toString();return n.getData(s)}if(n.sti_is(Array)){for(var l=[],o=0;o<i.length-1;o++)l.add(n[i[o+1].toNumber()]);return l}return null},u.prototype.get_systemVariable=function(t){switch(t){case i.StiSystemVariableType.Column:return this.report.column;case i.StiSystemVariableType.Line:return this.report.line;case i.StiSystemVariableType.LineThrough:return this.report.lineThrough;case i.StiSystemVariableType.LineABC:return this.report.lineABC;case i.StiSystemVariableType.LineRoman:return this.report.lineRoman;case i.StiSystemVariableType.GroupLine:return this.report.groupLine;case i.StiSystemVariableType.PageNumber:return this.report.pageNumber;case i.StiSystemVariableType.PageNumberThrough:return this.report.pageNumberThrough;case i.StiSystemVariableType.PageNofM:return this.report.pageNofM;case i.StiSystemVariableType.PageNofMThrough:return this.report.pageNofMThrough;case i.StiSystemVariableType.TotalPageCount:return this.report.totalPageCount;case i.StiSystemVariableType.TotalPageCountThrough:return this.report.totalPageCountThrough;case i.StiSystemVariableType.IsFirstPage:return this.report.isFirstPage;case i.StiSystemVariableType.IsFirstPageThrough:return this.report.isFirstPageThrough;case i.StiSystemVariableType.IsLastPage:return this.report.isLastPage;case i.StiSystemVariableType.IsLastPageThrough:return this.report.isLastPageThrough;case i.StiSystemVariableType.PageCopyNumber:return this.report.pageCopyNumber;case i.StiSystemVariableType.ReportAlias:return this.report.reportAlias;case i.StiSystemVariableType.ReportAuthor:return this.report.reportAuthor;case i.StiSystemVariableType.ReportChanged:return this.report.reportChanged;case i.StiSystemVariableType.ReportCreated:return this.report.reportCreated;case i.StiSystemVariableType.ReportDescription:return this.report.reportDescription;case i.StiSystemVariableType.ReportName:return this.report.reportName;case i.StiSystemVariableType.Time:return this.report.time;case i.StiSystemVariableType.Today:return this.report.today;case i.StiSystemVariableType.ConditionValue:return this.report.engine.lastInvokeTextProcessValueEventArgsValue.sti_is(Number)?this.report.engine.lastInvokeTextProcessValueEventArgsValue:0;case i.StiSystemVariableType.ConditionTag:return this.component.sti_is(a)?this.component.tagValue:null;case i.StiSystemVariableType.Sender:return this.sender;case i.StiSystemVariableType.DateTimeNow:return s.now;case i.StiSystemVariableType.DateTimeToday:return s.today}return null},u.parseTextValue=function(e,r,n,a,s,l,c){void 0===n&&(n=null),void 0===a&&(a={ref:!1}),void 0===s&&(s=!0),void 0===l&&(l=!1),void 0===c&&(c=null),null==n&&(n=r);var h=a.ref;if(String.isNullOrEmpty(e))return null;null==c&&(c=new u),c.report=r.report,c.component=r,c.sender=n;var g=null,m=r.report.engine,d=e+r.name;if(null!=m&&(null==m.parserConversionStore&&(m.parserConversionStore=new o),m.parserConversionStore.contains(d)&&(g=m.parserConversionStore.get(d))),null==g){try{g=new Array;var S=0,f=0;while(f<e.length){var y=f;while(f<e.length&&"{"!=e[f])f++;if(f!=y&&(g.add(new p(i.StiAsmCommandType.PushValue,e.substr(y,f-y))),++S>1&&g.add(new p(i.StiAsmCommandType.Add))),f<e.length&&"{"==e[f]){f++,y=f;var b=!1;while(f<e.length){if('"'==e[f]){f++;var C=f;while(C<e.length){if('"'==e[C])break;"\\"==e[C]&&C++,C++}f=C+1;continue}if("}"==e[f]){var v=e.substr(y,f-y);null!=v&&v.length>0&&(c.expressionPosition=y,g.addRange(c.parseToAsm(v)),++S>1&&(g.add(new p(i.StiAsmCommandType.Cast,t.System.TypeCode.String)),g.add(new p(i.StiAsmCommandType.Add)))),b=!0,f++;break}f++}b||(c.expressionPosition=y,g.add(new p(i.StiAsmCommandType.PushValue,e.substr(y))),++S>1&&g.add(new p(i.StiAsmCommandType.Add)))}}}catch(e){throw t.System.StiError.showError(e.message,!1),null!=m&&m.parserConversionStore.set(d,[]),e}null!=m&&m.parserConversionStore.set(d,g)}if(l)return g;if(g.count>0){if(h=u.checkForStoreToPrint(g),a.ref=h,h&&!s)return e;return c.executeAsm(g)}return null},u.prototype.parseToAsm=function(t){return this.inputExpression=t,this.makeTokensList(),this.asmList=new Array,this.eval_exp(),this.asmList},u.checkForStoreToPrint=function(t){var e=!1,r=t;if(null!=r)for(var n=0,o=r;n<o.length;n++){var a=o[n];if(a.type==i.StiAsmCommandType.PushSystemVariable){var s=a.parameter1;if(s==i.StiSystemVariableType.PageNumber||s==i.StiSystemVariableType.PageNumberThrough||s==i.StiSystemVariableType.TotalPageCount||s==i.StiSystemVariableType.TotalPageCountThrough||s==i.StiSystemVariableType.PageNofM||s==i.StiSystemVariableType.PageNofMThrough||s==i.StiSystemVariableType.IsFirstPage||s==i.StiSystemVariableType.IsFirstPageThrough||s==i.StiSystemVariableType.IsLastPage||s==i.StiSystemVariableType.IsLastPageThrough){e=!0;break}}if(a.type==i.StiAsmCommandType.PushFunction){var s=a.parameter1;if(s>=i.StiFunctionType.pCount&&s<=i.StiFunctionType.pLast||s>=i.StiFunctionType.prCount&&s<=i.StiFunctionType.prLast||s>=i.StiFunctionType.piCount&&s<=i.StiFunctionType.piLast||s>=i.StiFunctionType.priCount&&s<=i.StiFunctionType.priLast||s==i.StiFunctionType.GetAnchorPageNumber||s==i.StiFunctionType.GetAnchorPageNumberThrough){e=!0;break}}}return e},u.checkExpression=function(t,e){try{var i=new u,r=!1,n={ref:r},o=u.parseTextValue(t,e,e,n,!1,!0,i),a=o;null!=a&&i.checkTypes(a)}catch(t){return t.message}return null},u.checkForDataBandsUsedInPageTotals=function(e){try{var i=e.report,r=!1,n={ref:r},o=u.parseTextValue(e.text,e,null,n,!1,!0)}catch(i){var a=String.stiFormat("Expression in Text property of '{0}' can't be evaluated! {1}",e.name,i.message);t.System.StiError.showError(a,!1),e.report.writeToReportRenderingMessages(a)}},u.prepareVariableValue=function(e,r,s,l){void 0===s&&(s=null),void 0===l&&(l=!1),null==s&&(s=new a,s.name="**ReportVariables**",s.page=r.pages.list[0]);var u=null;l&&(u=new o);var c=null;if(t.System.TypeHelper.isValueType(e.type))c=e.initBy==t.Report.Dictionary.StiVariableInitBy.Value?e.valueObject:this.getExpressionValue("{"+e.value+"}",s,u,r);else{c=n.createObject(e.type);var p={ref:t.Report.Dictionary.StiTypeMode.Value};t.Report.Dictionary.StiType.getTypeModeFromType(e.type,p);var h=p.ref;h==t.Report.Dictionary.StiTypeMode.Range?e.initBy==t.Report.Dictionary.StiVariableInitBy.Value?(e.valueObject.fromObject?c.fromObject=e.valueObject.fromObject:e.valueObject.from?c.fromObject=e.valueObject.from:e.valueObject.fromDate&&(c.fromObject=e.valueObject.fromDate),e.valueObject.toObject?c.toObject=e.valueObject.toObject:e.valueObject.to?c.toObject=e.valueObject.to:e.valueObject.toDate&&(c.toObject=e.valueObject.toDate)):(c.fromObject=this.getExpressionValue("{"+e.initByExpressionFrom+"}",s,u,r),c.toObject=this.getExpressionValue("{"+e.initByExpressionTo+"}",s,u,r)):h==t.Report.Dictionary.StiTypeMode.List&&((c=r.getVariable(e.name,!0))||(c=[])),l&&i.StiVariableHelper.fillItemsOfVariables2(e,r)}if(l)for(var g=0,m=u.keys;g<m.length;g++){var d=m[g],S=r.dictionary.dataSources.getByName(d);null!=S&&S.disconnect()}return r.setVariable(e.name,c,!0),c},u.getExpressionValue=function(e,i,r,n){if(null!=r){var a=new o;t.Report.Dictionary.StiDataSourceHelper.checkExpression(e,i,a);for(var s=0,l=a.keys;s<l.length;s++){var c=l[s];if(null==r.get(c)){r.set(c,!0);var p=n.dictionary.dataSources.getByName(c);null!=p&&p.connect(null,!1)}}}return u.parseTextValue(e,i)},u}(r.StiParser_Parser);r.StiParser=h}(r=i.StiParser||(i.StiParser={}))}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.EventHandler,n=t.Report.Events.StiValueEventHandler,o=t.Report.Events.StiGetSummaryExpressionEvent,a=t.Report.Events.StiGetGroupConditionEvent,s=t.Report.Events.StiGetCollapsedEvent,l=t.Report.Events.StiBeginRenderEvent,u=t.Report.Events.StiRenderingEvent,c=t.Report.Events.StiEndRenderEvent,p=t.Base.StiJsonSaveMode,h=t.System.Enum,g=t.Base.JsonReportObject.IStiJsonReportObject,m=t.System.Drawing.Color,d=t.System.Drawing.Rectangle,S=t.Base.Localization.StiLocalization,f=t.Report.Engine.StiParser.StiParser,y=t.Report.Expressions.StiExpression,b=function(b){function C(t){void 0===t&&(t=d.empty);var e=b.call(this,t)||this;return e._keepGroupHeaderTogether=!0,e._keepGroupTogether=!1,e._startNewPage=!1,e._sortDirection=i.StiGroupSortDirection.Ascending,e._summarySortDirection=i.StiGroupSortDirection.None,e._summaryType=i.StiGroupSummaryType.Sum,e._printOnAllPages=!1,e._line=0,e._condition=String.empty,e._summaryExpression=String.empty,e._collapsed=String.empty,e}return __extends(C,b),C.prototype.implements=function(){return b.prototype.implements.call(this).concat([i.IStiGroup,i.IStiPrintOnAllPages,i.IStiKeepGroupTogether,g])},C.prototype.saveToJsonObject=function(t){var e=b.prototype.saveToJsonObject.call(this,t);return e.addPropertyBool("KeepGroupHeaderTogether",this.keepGroupHeaderTogether,!0),e.addPropertyBool("KeepGroupTogether",this.keepGroupTogether),e.addPropertyBool("StartNewPage",this.startNewPage),e.addPropertyNumber("StartNewPageIfLessThan",this.startNewPageIfLessThan,100),e.addPropertyEnum("SortDirection",i.StiGroupSortDirection,this.sortDirection,i.StiGroupSortDirection.Ascending),e.addPropertyEnum("SummarySortDirection",i.StiGroupSortDirection,this.summarySortDirection,i.StiGroupSortDirection.None),e.addPropertyEnum("SummaryType",i.StiGroupSummaryType,this.summaryType,i.StiGroupSummaryType.Sum),e.addPropertyBool("PrintOnAllPages",this.printOnAllPages),e.addPropertyJObject("Condition",new y(this.condition).saveToJsonObject(t)),e.addPropertyJObject("SummaryExpression",new y(this.summaryExpression).saveToJsonObject(t)),e.addPropertyJObject("GetSummaryExpressionEvent",this.getSummaryExpressionEvent.saveToJsonObject(t)),e.addPropertyJObject("GetValueEvent",this.getValueEvent.saveToJsonObject(t)),e.addPropertyJObject("GetCollapsedEvent",this.getCollapsedEvent.saveToJsonObject(t)),e.addPropertyJObject("BeginRenderEvent",this.beginRenderEvent.saveToJsonObject(t)),e.addPropertyJObject("RenderingEvent",this.renderingEvent.saveToJsonObject(t)),e.addPropertyJObject("EndRenderEvent",this.endRenderEvent.saveToJsonObject(t)),t==p.Report&&e.addPropertyJObject("Collapsed",new y(this.collapsed).saveToJsonObject(t)),e},C.prototype.loadFromJsonObject=function(t){b.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"KeepGroupHeaderTogether":this._keepGroupHeaderTogether=n.value.toBoolean();break;case"KeepGroupTogether":this._keepGroupTogether=n.value.toBoolean();break;case"StartNewPage":this._startNewPage=n.value.toBoolean();break;case"StartNewPageIfLessThan":this.startNewPageIfLessThan=n.value.toNumber();break;case"SortDirection":this._sortDirection=h.parse(i.StiGroupSortDirection,n.value);break;case"SummarySortDirection":this._summarySortDirection=h.parse(i.StiGroupSortDirection,n.value);break;case"SummaryType":this._summaryType=h.parse(i.StiGroupSummaryType,n.value);break;case"PrintOnAllPages":this._printOnAllPages=n.value.toBoolean();break;case"Condition":var p=new y;p.loadFromJsonObject(n.value),this.condition=p.value;break;case"SummaryExpression":var g=new y;g.loadFromJsonObject(n.value),this.summaryExpression=g.value;break;case"Collapsed":var m=new y;m.loadFromJsonObject(n.value),this.collapsed=m.value;break;case"GetSummaryExpressionEvent":var d=new o;d.loadFromJsonObject(n.value),this.getSummaryExpressionEvent=d;break;case"GetValueEvent":var d=new a;d.loadFromJsonObject(n.value),this.getValueEvent=d;break;case"GetCollapsedEvent":var d=new s;d.loadFromJsonObject(n.value),this.getCollapsedEvent=d;break;case"BeginRenderEvent":var d=new l;d.loadFromJsonObject(n.value),this.beginRenderEvent=d;break;case"RenderingEvent":var d=new u;d.loadFromJsonObject(n.value),this.renderingEvent=d;break;case"EndRenderEvent":var d=new c;d.loadFromJsonObject(n.value),this.endRenderEvent=d;break}}},C.prototype.loadFromXml=function(t,e){b.prototype.loadFromXml.call(this,t,e);for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];switch(n.nodeName){case"KeepGroupHeaderTogether":this._keepGroupHeaderTogether=n.textContent.toBoolean();break;case"KeepGroupTogether":this._keepGroupTogether=n.textContent.toBoolean();break;case"StartNewPage":this._startNewPage=n.textContent.toBoolean();break;case"StartNewPageIfLessThan":this.startNewPageIfLessThan=n.textContent.toNumber();break;case"SortDirection":this._sortDirection=h.parse(i.StiGroupSortDirection,n.textContent);break;case"SummarySortDirection":this._summarySortDirection=h.parse(i.StiGroupSortDirection,n.textContent);break;case"SummaryType":this._summaryType=h.parse(i.StiGroupSummaryType,n.textContent);break;case"PrintOnAllPages":this._printOnAllPages=n.textContent.toBoolean();break;case"Condition":var o=new y;o.loadFromXml(n),this.condition=o.value;break;case"SummaryExpression":var a=new y;a.loadFromXml(n),this.summaryExpression=a.value;break;case"Collapsed":break;case"GetSummaryExpressionEvent":break;case"GetValueEvent":break;case"GetCollapsedEvent":break;case"BeginRenderEvent":break;case"RenderingEvent":break;case"EndRenderEvent":break}}},C.prototype.clone=function(t,e){var i=b.prototype.clone.call(this,t,e);return i._groupHeaderBandInfo=this.groupHeaderBandInfo.clone(),i},Object.defineProperty(C.prototype,"keepGroupHeaderTogether",{get:function(){return this._keepGroupHeaderTogether},set:function(t){this._keepGroupHeaderTogether!=t&&(this._keepGroupHeaderTogether=t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"keepGroupTogether",{get:function(){return this._keepGroupTogether},set:function(t){this._keepGroupTogether!=t&&(this._keepGroupTogether=t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"startNewPage",{get:function(){return this._startNewPage},set:function(t){this._startNewPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"startNewPageIfLessThan",{get:function(){if(null==this.breakIfLessThan)return 100;return this.breakIfLessThan},set:function(t){this.breakIfLessThan=t},enumerable:!0,configurable:!0}),C.prototype.saveState=function(t){b.prototype.saveState.call(this,t),b.prototype.getStates.call(this).pushInt(t,this,"line",this._line)},C.prototype.restoreState=function(t){this.states.isExist(t,this)&&(this._line=this.states.popInt(t,this,"line")),b.prototype.restoreState.call(this,t)},Object.defineProperty(C.prototype,"headerStartColor",{get:function(){return m.fromArgb(239,155,52)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerEndColor",{get:function(){return m.fromArgb(239,155,52)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"sortDirection",{get:function(){return this._sortDirection},set:function(t){this._sortDirection=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"summarySortDirection",{get:function(){return this._summarySortDirection},set:function(t){this._summarySortDirection=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"summaryType",{get:function(){return this._summaryType},set:function(t){this._summaryType=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"printOnAllPages",{get:function(){return this._printOnAllPages},set:function(t){this._printOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"groupHeaderBandInfo",{get:function(){return null==this._groupHeaderBandInfo&&(this._groupHeaderBandInfo=new i.StiGroupHeaderBandInfo),this._groupHeaderBandInfo},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"toolboxPosition",{get:function(){return i.StiComponentToolboxPosition.GroupHeaderBand},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"toolboxCategory",{get:function(){return i.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),C.prototype.getComponentType=function(){return i.StiComponentType.Detail},Object.defineProperty(C.prototype,"priority",{get:function(){return i.StiComponentPriority.GroupHeaderBand},enumerable:!0,configurable:!0}),C.prototype.getDataBand=function(){if(null==this.parent)return null;for(var t=this.parent.components.indexOf(this)+1,e=t;e<this.parent.components.count;e++)if(this.parent.components.list[e].sti_is(i.StiDataBand))return this.parent.components.list[e].sti_as(i.StiDataBand);return null},Object.defineProperty(C.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t},enumerable:!0,configurable:!0}),C.prototype.onGetSummaryExpression=function(t){},C.prototype.invokeGetSummaryExpression=function(i){try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){this.onGetSummaryExpression(i);var r=this.events.get(C.eventGetSummaryExpression);null!=r&&r(this,i)}else{this.onGetSummaryExpression(i),i.value=f.parseTextValue(this.summaryExpression,this);var r=this.events.get(C.eventGetSummaryExpression);null!=r&&r(this,i)}}catch(e){t.System.StiError.showError(e.message,!1)}},Object.defineProperty(C.prototype,"getSummaryExpressionEvent",{get:function(){return new o(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventGetSummaryExpression,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),C.prototype.onGetValue=function(t){},C.prototype.invokeGetValue=function(i){try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){this.onGetValue(i);var r=this.events.get(C.eventGetValue);null!=r&&r(this,i)}else{this.onGetValue(i),i.value=f.parseTextValue(this.condition,this);var r=this.events.get(C.eventGetValue);null!=r&&r(this,i)}}catch(e){t.System.StiError.showError(e.message,!1)}},Object.defineProperty(C.prototype,"getValueEvent",{get:function(){return new a(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventGetValue,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),C.prototype.onGetCollapsed=function(t){},C.prototype.invokeGetCollapsed=function(t){try{this.onGetCollapsed(t),null!=this.report&&this.report.calculationMode==e.StiCalculationMode.Interpretation&&this.collapsed.length>0&&(t.value=f.parseTextValue(this.collapsed,this));var i=this.events.get(C.eventGetCollapsed);null!=i&&i(this,t)}catch(t){}},Object.defineProperty(C.prototype,"getCollapsedEvent",{get:function(){return new s(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventGetCollapsed,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),C.prototype.onBeginRender=function(){},C.prototype.invokeBeginRender=function(){this.onBeginRender();var t=this.events.get(C.eventBeginRender);null!=t&&t(this)},Object.defineProperty(C.prototype,"beginRenderEvent",{get:function(){return new l(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventBeginRender,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),C.prototype.onRendering=function(){},C.prototype.invokeRendering=function(){this.onRendering();var t=this.events.get(C.eventRendering);null!=t&&t(this)},Object.defineProperty(C.prototype,"renderingEvent",{get:function(){return new u(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventRendering,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),C.prototype.onEndRender=function(){},C.prototype.invokeEndRender=function(){this.onEndRender();var t=this.events.get(C.eventEndRender);null!=t&&t(this)},Object.defineProperty(C.prototype,"endRenderEvent",{get:function(){return new c(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventEndRender,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"condition",{get:function(){return this._condition},set:function(t){null!=t&&(this._condition=t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"summaryExpression",{get:function(){return this._summaryExpression},set:function(t){null!=t&&(this._summaryExpression=t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"collapsed",{get:function(){return this._collapsed},set:function(t){null!=t&&(this._collapsed=t)},enumerable:!0,configurable:!0}),C.prototype.getHeaderText=function(){var t=null;return(t=String.isNullOrEmpty(this.alias)?this.name:StiOptions.Dictionary.showOnlyAliasForComponents?this.alias:this.name+" ["+this.alias+"]")+"; "+S.get("PropertyMain","Condition")+": "+this.condition},C.prototype.createNew=function(){return new C},C.prototype.getCurrentConditionValue=function(){return t.Report.Engine.StiGroupHeaderBandBuilder.getCurrentConditionValue(this)},C.eventGetSummaryExpression={},C.eventGetValue={},C.eventGetCollapsed={},C.eventBeginRender={},C.eventRendering={},C.eventEndRender={},C}(i.StiDynamicBand);i.StiGroupHeaderBand=b}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.System.Drawing.Color,n=t.System.Drawing.Rectangle,o=function(t){function o(e){void 0===e&&(e=n.empty);var i=t.call(this,e)||this;return i._keyDataColumn=String.empty,i._masterKeyDataColumn=String.empty,i._parentValue=String.empty,i._indent=20,i._headers=String.empty,i._footers=String.empty,i}return __extends(o,t),o.prototype.implements=function(){return t.prototype.implements.call(this).concat([i])},o.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyStringNullOfEmpty("KeyDataColumn",this.keyDataColumn),i.addPropertyStringNullOfEmpty("MasterKeyDataColumn",this.masterKeyDataColumn),i.addPropertyStringNullOfEmpty("ParentValue",this.parentValue),i.addPropertyNumber("Indent",this.indent,20),i.addPropertyStringNullOfEmpty("Headers",this.headers),i.addPropertyStringNullOfEmpty("Footers",this.footers),i},o.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"KeyDataColumn":this._keyDataColumn=n.value;break;case"MasterKeyDataColumn":this._masterKeyDataColumn=n.value;break;case"ParentValue":this._parentValue=n.value;break;case"Indent":this._indent=n.value.toNumber();break;case"Headers":this._headers=n.value;break;case"Footers":this._footers=n.value;break}}},o.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"KeyDataColumn":this._keyDataColumn=n.textContent;break;case"MasterKeyDataColumn":this._masterKeyDataColumn=n.textContent;break;case"ParentValue":this._parentValue=n.textContent;break;case"Indent":this._indent=n.textContent.toNumber();break;case"Headers":this._headers=n.textContent;break;case"Footers":this._footers=n.textContent;break}}},Object.defineProperty(o.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.HierarchicalBand},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerStartColor",{get:function(){return r.fromArgb(118,167,151)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerEndColor",{get:function(){return r.fromArgb(118,167,151)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"keyDataColumn",{get:function(){return this._keyDataColumn},set:function(t){this._keyDataColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"masterKeyDataColumn",{get:function(){return this._masterKeyDataColumn},set:function(t){this._masterKeyDataColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"parentValue",{get:function(){return this._parentValue},set:function(t){this._parentValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"indent",{get:function(){return this._indent},set:function(t){this._indent=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headers",{get:function(){return this._headers},set:function(t){this._headers=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"footers",{get:function(){return this._footers},set:function(t){this._footers=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"hierarchicalBandInfo",{get:function(){return null==this._hierarchicalBandInfo&&(this._hierarchicalBandInfo=new e.StiHierarchicalBandInfo),this._hierarchicalBandInfo},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(e.StiDataBand);e.StiHierarchicalBand=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.System.Drawing.Rectangle,n=function(t){function n(e){return void 0===e&&(e=r.empty),t.call(this,e)||this}return __extends(n,t),n.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiBreakable,i])},n.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("CanBreak"),i},n.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e)},n.prototype.getComponentType=function(){return e.StiComponentType.Static},n}(e.StiBand);e.StiStaticBand=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiVertAlignment,r=t.System.Enum,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.System.Drawing.Color,a=t.System.Drawing.Rectangle,s=function(t){function s(e){void 0===e&&(e=a.empty);var r=t.call(this,e)||this;return r._vertAlignment=i.Center,r}return __extends(s,t),s.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiVertAlignment,n])},s.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.removeProperty("CanBreak"),r.removeProperty("Bookmark"),r.removeProperty("Hyperlink"),r.addPropertyEnum("VertAlignment",i,this.vertAlignment,i.Center),r},s.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var n=0,o=e.properties();n<o.length;n++){var a=o[n];switch(a.name){case"VertAlignment":this._vertAlignment=r.parse(i,a.value);break}}},s.prototype.loadFromXml=function(e,n){t.prototype.loadFromXml.call(this,e,n);for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];switch(a.nodeName){case"VertAlignment":this._vertAlignment=r.parse(i,a.textContent);break}}},Object.defineProperty(s.prototype,"vertAlignment",{get:function(){return this._vertAlignment},set:function(t){this._vertAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerStartColor",{get:function(){return o.fromArgb(131,124,174)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerEndColor",{get:function(){return o.fromArgb(131,124,174)},enumerable:!0,configurable:!0}),s.prototype.getComponentType=function(){return null!=this.report?e.StiComponentType.Static:e.StiComponentType.Detail},Object.defineProperty(s.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.OverlayBand},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"priority",{get:function(){return e.StiComponentPriority.OverlayBand},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},s}(e.StiStaticBand);e.StiOverlayBand=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.System.Enum,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.System.Drawing.Color,a=function(t){function a(r){void 0===r&&(r=i.empty);var n=t.call(this,r)||this;return n._printOnEvenOddPages=e.StiPrintOnEvenOddPagesType.Ignore,StiOptions.Engine.dockPageFooterToBottom&&(n.dockStyle=e.StiDockStyle.Bottom),n}return __extends(a,t),a.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiPrintOnEvenOddPages,n])},a.prototype.saveToJsonObject=function(i){var r=t.prototype.saveToJsonObject.call(this,i);return r.addPropertyEnum("PrintOnEvenOddPages",e.StiPrintOnEvenOddPagesType,this.printOnEvenOddPages,e.StiPrintOnEvenOddPagesType.Ignore),r},a.prototype.loadFromJsonObject=function(i){t.prototype.loadFromJsonObject.call(this,i);for(var n=0,o=i.properties();n<o.length;n++){var a=o[n];switch(a.name){case"PrintOnEvenOddPages":this._printOnEvenOddPages=r.parse(e.StiPrintOnEvenOddPagesType,a.value);break}}},a.prototype.loadFromXml=function(i,n){t.prototype.loadFromXml.call(this,i,n);for(var o=0;o<i.childNodes.length;o++){var a=i.childNodes[o];switch(a.nodeName){case"PrintOnEvenOddPages":this._printOnEvenOddPages=r.parse(e.StiPrintOnEvenOddPagesType,a.textContent);break}}},Object.defineProperty(a.prototype,"printOnEvenOddPages",{get:function(){return this._printOnEvenOddPages},set:function(t){this._printOnEvenOddPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerStartColor",{get:function(){return o.fromArgb(206,207,206)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerEndColor",{get:function(){return o.fromArgb(206,207,206)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.PageFooterBand},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"priority",{get:function(){if(StiOptions.Engine.dockPageFooterToBottom)return e.StiComponentPriority.PageFooterBandBottom;return e.StiComponentPriority.PageFooterBandTop},enumerable:!0,configurable:!0}),a.prototype.canContainIn=function(t){if(t.sti_is(e.StiPage))return!0;return!1},a.prototype.getComponentType=function(){if(null!=this.report)return t.prototype.getComponentType.call(this);return e.StiComponentType.Simple},a.prototype.getDisplayRectangle=function(){if(StiOptions.Engine.dockPageFooterToBottom){var e=this.page.unit.convertFromHInches(this.headerSize),r=this.page.unit.convertFromHInches(this.footerSize);return new i(this.left,this.top-e-r,this.width,this.height+e+r)}return t.prototype.getDisplayRectangle.call(this)},a.prototype.setDisplayRectangle=function(e){if(StiOptions.Engine.dockPageFooterToBottom){var i=this.page.unit.convertFromHInches(this.headerSize),r=this.page.unit.convertFromHInches(this.footerSize);return this.left=e.left,this.top=e.top+i+r,this.width=e.width,void(this.height=e.height-i-r)}t.prototype.setDisplayRectangle.call(this,e)},a.prototype.createNew=function(){return new a},a.prototype.getMaster=function(){for(var t=0,i=this.parent.components.list;t<i.length;t++){var r=i[t];if(r.sti_is(e.StiDataBand)&&!r.sti_is(e.StiEmptyBand))return r}return null},a}(e.StiStaticBand);e.StiPageFooterBand=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Enum,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.System.Drawing.Color,o=t.System.Drawing.Rectangle,a=function(t){function a(i){void 0===i&&(i=o.empty);var r=t.call(this,i)||this;return r._printOnEvenOddPages=e.StiPrintOnEvenOddPagesType.Ignore,r}return __extends(a,t),a.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiBreakable,e.IStiPrintOnEvenOddPages,r])},a.prototype.saveToJsonObject=function(i){var r=t.prototype.saveToJsonObject.call(this,i);return r.removeProperty("CanBreak"),r.addPropertyEnum("PrintOnEvenOddPages",e.StiPrintOnEvenOddPagesType,this.printOnEvenOddPages,e.StiPrintOnEvenOddPagesType.Ignore),r},a.prototype.loadFromJsonObject=function(r){t.prototype.loadFromJsonObject.call(this,r);for(var n=0,o=r.properties();n<o.length;n++){var a=o[n];switch(a.name){case"PrintOnEvenOddPages":this._printOnEvenOddPages=i.parse(e.StiPrintOnEvenOddPagesType,a.value);break}}},a.prototype.loadFromXml=function(r,n){t.prototype.loadFromXml.call(this,r,n);for(var o=0;o<r.childNodes.length;o++){var a=r.childNodes[o];switch(a.nodeName){case"PrintOnEvenOddPages":this._printOnEvenOddPages=i.parse(e.StiPrintOnEvenOddPagesType,a.textContent);break}}},Object.defineProperty(a.prototype,"headerStartColor",{get:function(){return n.fromArgb(206,207,206)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"headerEndColor",{get:function(){return n.fromArgb(206,207,206)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.PageHeaderBand},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"priority",{get:function(){return this.page.titleBeforeHeader?e.StiComponentPriority.PageHeaderBandBefore:e.StiComponentPriority.PageHeaderBandAfter},enumerable:!0,configurable:!0}),a.prototype.canContainIn=function(t){if(t.sti_is(e.StiPage))return!0;return!1},a.prototype.getComponentType=function(){if(null!=this.report)return t.prototype.getComponentType.call(this);return e.StiComponentType.Simple},Object.defineProperty(a.prototype,"printOnEvenOddPages",{get:function(){return this._printOnEvenOddPages},set:function(t){this._printOnEvenOddPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"printOnFirstPage",{get:function(){return 0==(this.printOn&e.StiPrintOnType.ExceptFirstPage)},set:function(t){t?(this.printOn&e.StiPrintOnType.ExceptFirstPage)>0&&(this.printOn-=e.StiPrintOnType.ExceptFirstPage):this.printOn|=e.StiPrintOnType.ExceptFirstPage},enumerable:!0,configurable:!0}),a.prototype.getMaster=function(){for(var t=0,i=this.parent.components.list;t<i.length;t++){var r=i[t];if(r.sti_is(e.StiDataBand)&&!r.sti_is(e.StiEmptyBand))return r}return null},a.prototype.createNew=function(){return new a},a}(e.StiStaticBand);e.StiPageHeaderBand=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.System.Drawing.Color,o=function(t){function o(r){void 0===r&&(r=i.empty);var n=t.call(this,r)||this;return n._keepReportSummaryTogether=!0,n._printIfEmpty=!0,n.dockStyle=e.StiDockStyle.Top,n}return __extends(o,t),o.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiPrintIfEmpty,e.IStiKeepReportSummaryTogether,r])},o.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("PrintOn"),i.addPropertyBool("KeepReportSummaryTogether",this.keepReportSummaryTogether,!0),i.addPropertyBool("PrintIfEmpty",this.printIfEmpty,!0),i},o.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"KeepReportSummaryTogether":this._keepReportSummaryTogether=n.value.toBoolean();break;case"PrintIfEmpty":this._printIfEmpty=n.value.toBoolean();break}}},o.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"KeepReportSummaryTogether":this._keepReportSummaryTogether=n.textContent.toBoolean();break;case"PrintIfEmpty":this._printIfEmpty=n.textContent.toBoolean();break}}},Object.defineProperty(o.prototype,"keepReportSummaryTogether",{get:function(){return this._keepReportSummaryTogether},set:function(t){this._keepReportSummaryTogether!=t&&(this._keepReportSummaryTogether=t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"printIfEmpty",{get:function(){return this._printIfEmpty},set:function(t){this._printIfEmpty=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerStartColor",{get:function(){return n.fromArgb(159,213,183)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerEndColor",{get:function(){return n.fromArgb(159,213,183)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.ReportSummaryBand},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),o.prototype.canContainIn=function(t){if(t.sti_is(e.StiPage))return!0;return!1},Object.defineProperty(o.prototype,"priority",{get:function(){return e.StiComponentPriority.ReportSummaryBand},enumerable:!0,configurable:!0}),o.prototype.getComponentType=function(){if(null!=this.report)return t.prototype.getComponentType.call(this);return e.StiComponentType.Master},o.prototype.createNew=function(){return new o},o.prototype.getMaster=function(){for(var t=0,i=this.parent.components.list;t<i.length;t++){var r=i[t];if(r.sti_is(e.StiDataBand))return r}return null},o}(e.StiDynamicBand);e.StiReportSummaryBand=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.System.Drawing.Color,n=t.System.Drawing.Rectangle,o=function(t){function o(e){void 0===e&&(e=n.empty);var i=t.call(this,e)||this;return i._printIfEmpty=!0,i}return __extends(o,t),o.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiBreakable,e.IStiPrintIfEmpty,i])},o.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("PrintOn"),i.removeProperty("CanBreak"),i.addPropertyBool("PrintIfEmpty",this.printIfEmpty,!0),i},o.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"PrintIfEmpty":this._printIfEmpty=n.value.toBoolean();break}}},o.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"PrintIfEmpty":this._printIfEmpty=n.textContent.toBoolean();break}}},Object.defineProperty(o.prototype,"printIfEmpty",{get:function(){return this._printIfEmpty},set:function(t){this._printIfEmpty=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerStartColor",{get:function(){return r.fromArgb(159,213,183)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"headerEndColor",{get:function(){return r.fromArgb(159,213,183)},enumerable:!0,configurable:!0}),o.prototype.getComponentType=function(){if(null!=this.report)return this.page.titleBeforeHeader?e.StiComponentType.Static:e.StiComponentType.Master;return e.StiComponentType.Simple},Object.defineProperty(o.prototype,"toolboxPosition",{get:function(){return e.StiComponentToolboxPosition.ReportTitleBand},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolboxCategory",{get:function(){return e.StiToolboxCategory.Bands},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"priority",{get:function(){return this.page.titleBeforeHeader?e.StiComponentPriority.ReportTitleBandBefore:e.StiComponentPriority.ReportTitleBandAfterV2},enumerable:!0,configurable:!0}),o.prototype.canContainIn=function(t){if(t.sti_is(e.StiPage))return!0;return!1},o.prototype.createNew=function(){return new o},o.prototype.getMaster=function(){for(var t=0,i=this.parent.components.list;t<i.length;t++){var r=i[t];if(r.sti_is(e.StiDataBand)&&!r.sti_is(e.StiEmptyBand))return r}return null},o}(e.StiStaticBand);e.StiReportTitleBand=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Base.Drawing.StiHorAlignment,n=t.Base.Drawing.StiTextHorAlignment,o=t.System.Drawing.Size,a=function(){function t(){}return t.checkSize=function(a){var s=a;if(null==s)return;var l=null;if(StiOptions.Engine.allowCacheForGetActualSize){var u=a.report;if(null==u&&null!=s.containerInfo&&null!=s.containerInfo.parentBand&&(u=s.containerInfo.parentBand.report),null==u&&null!=s.parent&&null!=s.parent.containerInfo&&null!=s.parent.containerInfo.parentBand&&(u=s.parent.containerInfo.parentBand.report),null!=u&&null!=u.engine){if(null==u.engine.hashCheckSize&&(u.engine.hashCheckSize=new i),u.engine.hashCheckSize.containsKey(a))return;l=u.engine.hashCheckSize}}for(var c=new i,p=new i,h=!1,g=0,m=s.components.list;g<m.length;g++){var d=m[g];if(d.isEnabled){var S=void 0;if(d.sti_is(e.StiContainer)){var f=d.height;StiOptions.Engine.useCheckSizeForContinuedContainers&&t.checkSize(d);var y=!1,b={ref:y};if(S=d.getActualSize(!0,b),y=b.ref){var C=d.height;d.height=S.height,b={ref:y},S=d.getActualSize(!1,y),y=b.ref,d.height=C}StiOptions.Engine.useCheckSizeForContinuedContainers&&(d.height=f)}else S=d.getActualSize();d.sti_is(e.StiHorizontalLinePrimitive)||(S.height=Math.round(S.height,2)),S.width=Math.round(S.width,2),p.set(d,S),S.height!=d.height&&(h=!0)}else p.set(d,new o(0,0))}if(h){var v=new e.StiComponentsCollection;v.addRange(s.components),v.sortByTopPosition();for(var I=0,A=0,w=v.list;A<w.length;A++){var d=w[A],T=p.get(d).height-d.height,B=Math.round(d.left,2),R=Math.round(d.right,2),P=Math.round(d.bottom,2);if(0!=T){var F=0;null!=c.get(d)&&(F=c.get(d));for(var x=I+1;x<v.count;x++){var D=v.getByIndex(x),k=Math.round(D.left,2),E=Math.round(D.top,2);if(0!=(D.shiftMode&e.StiShiftMode.OnlyInWidthOfComponent)&&(B>k||R<=k))continue;if(P<=E){var G=0;null!=c.get(D)&&(G=c.get(D)),T>0&&0!=(D.shiftMode&e.StiShiftMode.IncreasingSize)&&c.set(D,Math.max(T+F,G)),T<0&&0!=(D.shiftMode&e.StiShiftMode.DecreasingSize)&&c.set(D,Math.min(T+F,G))}}}I++}}for(var _=0,L=s.components.list;_<L.length;_++){var d=L[_],N=p.get(d),O=d.sti_as(e.IStiAutoWidth);if(null!=O&&O.autoWidth){var Z=r.Left,M=O.sti_as(e.IStiTextHorAlignment);if(null!=M)switch(M.horAlignment){case n.Left:Z=r.Left;break;case n.Center:case n.Width:Z=r.Center;break;case n.Right:Z=r.Right;break}var H=O.sti_as(e.IStiHorAlignment);if(null!=H)switch(H.horAlignment){case r.Left:Z=r.Left;break;case r.Center:Z=r.Center;break;case r.Right:Z=r.Right;break}var W=d.left;switch(Z){case r.Left:d.width=N.width;break;case r.Center:var V=N.width;d.left+=(d.width-V)/2,d.width=V;break;case r.Right:var Y=N.width;d.left=d.right-Y,d.width=Y;break}if(W>=0&&d.left<0){var j=d.width;d.left=0,d.width=j}}if(d.canGrow){var X=Math.max(N.width,d.width);d.width!=X&&(d.width=X),X=Math.max(N.height,d.height),d.height!=X&&(d.height=X)}if(d.canShrink&&(d.sti_is(e.StiContainer)&&d.parentComponentIsBand||(d.width=Math.min(N.width,d.width))),d.height=Math.min(N.height,d.height),this.checkContainerGrowToHeight(d),0==(d.shiftMode&e.StiShiftMode.IncreasingSize)&&0==(d.shiftMode&e.StiShiftMode.DecreasingSize))continue;null!=c.get(d)&&(d.top+=c.get(d))}if(this.componentPlacedOnBand(s)||s.parentComponentIsBand){var y=!1,b={ref:y},S=s.getActualSize(!0,b);y=b.ref,s.parentComponentIsBand&&!s.parentComponentIsCrossBand||(s.width=S.width),s.height=S.height,y&&(b={ref:y},S=s.getActualSize(!1,b),y=b.ref,s.parentComponentIsBand&&!s.parentComponentIsCrossBand||(s.width=S.width),s.height=S.height),this.checkContainerGrowToHeight(s)}if(s.sti_is(e.StiPage)&&s.unlimitedHeight){var J=s,y=!1,b={ref:y},S=s.getActualSize(!0,b);y=b.ref;while(S.height>J.height)J.segmentPerHeight++}null!=l&&l.set(a,null)},t.componentPlacedOnBand=function(t){var i=t.parent;while(1==1){if(null==i)return!1;if(i.sti_is(e.StiBand))return!0;if(i.sti_is(e.StiPage))return!1;if(i.parentComponentIsBand)return!0;i=i.parent}},t.checkContainerGrowToHeight=function(t){var i=t.sti_as(e.StiContainer);if(null!=i)for(var r=0,n=i.components.list;r<n.length;r++){var o=n[r];o.growToHeight&&o.isEnabled&&(o.height=i.height-o.top,this.checkContainerGrowToHeight(o))}},t}();e.StiContainerHelper=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.IStiBreakable,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this
;return e._rightToLeft=!1,e._columnGaps=0,e._columnWidth=0,e._columns=0,e}return __extends(e,t),e.prototype.implements=function(){return e.ImplementsStiPanel||(e.ImplementsStiPanel=t.prototype.implements.call(this).concat([i])),e.ImplementsStiPanel},e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyBool("RightToLeft",this.rightToLeft),i.addPropertyNumber("ColumnGaps",this.columnGaps,0),i.addPropertyNumber("ColumnWidth",this.columnWidth,0),i.addPropertyNumber("Columns",this.columns),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"RightToLeft":this._rightToLeft=n.value.toBoolean();break;case"ColumnGaps":this._columnGaps=n.value.toNumber();break;case"ColumnWidth":this._columnWidth=n.value.toNumber();break;case"Columns":this._columns=n.value.toNumber();break}}},e.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"RightToLeft":this._rightToLeft=n.textContent.toBoolean();break;case"ColumnGaps":this._columnGaps=n.textContent.toNumber();break;case"ColumnWidth":this._columnWidth=n.textContent.toNumber();break;case"Columns":this._columns=n.textContent.toNumber();break}}},Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return this._rightToLeft},set:function(t){this._rightToLeft!=t&&(this._rightToLeft=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnGaps",{get:function(){return this._columnGaps},set:function(t){this._columnGaps!=t&&(this._columnGaps=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnWidth",{get:function(){return this._columnWidth},set:function(t){this.columnWidth!=t&&(this._columnWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(t){this._columns!=t&&(this._columns=t)},enumerable:!0,configurable:!0}),e.prototype.getColumnWidth=function(){var t=this.columnWidth;if(0==t){if(0==this.columns)return this.width;t=this.width/this.columns-this.columnGaps}return t},e}(e.StiContainer);e.StiPanel=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"FillParameters"},e}(t.StiEvent);t.StiFillParametersEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGetSubReportEventHandler=new i("sender: Object, e: StiGetSubReportEventArgs");var n=function(t){function e(e){var i=t.call(this)||this;return i.subReportName=e,i}return __extends(e,t),e}(r);e.StiGetSubReportEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Events.StiFillParametersEventHandler,n=t.Report.Events.StiGetSubReportEventArgs,o=t.Report.Events.StiFillParametersEvent,a=t.Base.StiJsonSaveMode,s=t.Base.StiGuidUtils,l=t.Report.Expressions.StiExpression,u=function(u){function c(){var t=null!==u&&u.apply(this,arguments)||this;return t._keepSubReportTogether=!1,t._subReportPageGuid=null,t._subReportUrl=null,t._parameters=new i.StiParametersCollection,t}return __extends(c,u),c.prototype.saveToJsonObject=function(t){var e=u.prototype.saveToJsonObject.call(this,t);return e.removeProperty("CanShrink"),e.removeProperty("CanGrow"),e.removeProperty("Conditions"),e.removeProperty("GrowToHeight"),e.addPropertyJObject("FillParametersEvent",this.fillParametersEvent.saveToJsonObject(t)),e.addPropertyBool("KeepSubReportTogether",this.keepSubReportTogether),e.addPropertyStringNullOfEmpty("SubReportPageGuid",this.subReportPageGuid),e.addPropertyStringNullOfEmpty("SubReportUrl",this.subReportUrl),t==a.Report&&e.addPropertyJObject("Parameters",this.parameters.saveToJsonObject(t)),e},c.prototype.loadFromJsonObject=function(t){u.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"FillParametersEvent":var n=new o;n.loadFromJsonObject(r.value),this.fillParametersEvent=n;break;case"KeepSubReportTogether":this._keepSubReportTogether=r.value.toBoolean();break;case"SubReportPageGuid":this._subReportPageGuid=r.value;break;case"SubReportUrl":this.subReportUrl=r.value;break;case"Parameters":this._parameters.loadFromJsonObject(r.value);break}}},c.prototype.loadFromXml=function(t,e){u.prototype.loadFromXml.call(this,t,e);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"FillParametersEvent":break;case"KeepSubReportTogether":this._keepSubReportTogether=r.textContent.toBoolean();break;case"SubReportPageGuid":this._subReportPageGuid=r.textContent;break;case"SubReportUrl":var n=new l;n.loadFromXml(r),this.subReportUrl=n.value;break;case"Parameters":break}}},Object.defineProperty(c.prototype,"componentType",{get:function(){return i.StiComponentType.Simple},enumerable:!0,configurable:!0}),c.prototype.clone=function(){return this.memberwiseClone()},c.prototype.convert=function(t,e,i){void 0===i&&(i=!1),this.left=e.convertFromHInches(t.convertToHInches(this.left)),this.top=e.convertFromHInches(t.convertToHInches(this.top)),u.prototype.setWidth.call(this,e.convertFromHInches(t.convertToHInches(this.width))),this.height=e.convertFromHInches(t.convertToHInches(this.height)),i||(this.minSize=e.convertFromHInches(t.convertToHInches(this.minSize)),this.maxSize=e.convertFromHInches(t.convertToHInches(this.maxSize)))},Object.defineProperty(c.prototype,"width",{get:function(){return u.prototype.getWidth.call(this)},set:function(t){u.prototype.setWidth.call(this,t),this.updateSubReportPageWidth()},enumerable:!0,configurable:!0}),c.prototype.setClientRectangle=function(t){u.prototype.setClientRectangle.call(this,t),this.updateSubReportPageWidth()},c.prototype.updateSubReportPageWidth=function(){if(null!=this.subReportPage&&null!=this.report){if(null!=this.page&&this.subReportPage.orientation!=this.page.orientation){var t=this.subReportPage.pageHeight;this.subReportPage.orientation=this.page.orientation,this.subReportPage.pageHeight=t,this.subReportPage.margins=new i.StiMargins(this.subReportPage.margins.top,this.subReportPage.margins.bottom,this.subReportPage.margins.left,this.subReportPage.margins.right)}this.subReportPage.width=this.width}},c.prototype.getExternalSubReport=function(){var t=this.getSubReportFromUrl(this.subReportUrl);if(null==t&&(t=this.getSubReportFromFile(this.subReportUrl)),null==t){var e=new n(this.name);this.report.invokeGetSubReport(e),t=e.report}if(null!=t&&t.reportUnit!=this.report.reportUnit)if(t.isDocument)for(var i=0,r=t.renderedPages.list;i<r.length;i++){var o=r[i];o.convert(t.unit,this.report.unit)}else t.reportUnit=this.report.reportUnit;return t},c.prototype.getSubReportFromUrl=function(t){try{if(!String.isNullOrEmpty(t)){t=t.replaceAll("file://","");var i=new e.StiReport;return t.endsWith(".mdc")||t.endsWith(".mdz")?i.loadDocumentFile(t):i.loadFile(t),i}}catch(e){var r=String.stiFormat("SubReport can't be loaded from URL '{0}' in subreport component {1}!",t,this.name)}return null},c.prototype.getSubReportFromFile=function(t){return this.getSubReportFromUrl(t)},c.prototype.onFillParameters=function(t){},c.prototype.invokeFillParameters=function(i,r){try{this.onFillParameters(r);var n=this.events.get(c.eventFillParameters);if(null!=n)try{n(i,r)}catch(r){}if(null!=this.report&&this.report.calculationMode==e.StiCalculationMode.Interpretation&&null!=this.parameters&&this.parameters.count>0)for(var o=0,a=this.parameters.list;o<a.length;o++){var s=a[o];if(!String.isNullOrEmpty(s.name)&&null!=s.expression&&!String.isNullOrEmpty(s.expression)){var l=t.Report.Engine.StiParser.StiParser.parseTextValue("{"+s.expression+"}",this);r.value.add({key:s.name,value:l})}}}catch(t){}},Object.defineProperty(c.prototype,"fillParametersEvent",{get:function(){return new o(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(c.eventFillParameters,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"useExternalReport",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"keepSubReportTogether",{get:function(){return this._keepSubReportTogether},set:function(t){this._keepSubReportTogether=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"subReportPage",{get:function(){if(null==this.report)return null;for(var t=0,e=this.report.pages.list;t<e.length;t++){var i=e[t];if(i.guid==this._subReportPageGuid)return i}return null},set:function(t){null==t?this._subReportPageGuid=null:(null==t.guid&&(t.guid=s.newGuid()),this._subReportPageGuid=t.guid,this.updateSubReportPageWidth())},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"subReportPageGuid",{get:function(){return this._subReportPageGuid},set:function(t){this._subReportPageGuid=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"subReportUrl",{get:function(){return this._subReportUrl},set:function(t){this._subReportUrl=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"parameters",{get:function(){return this._parameters},set:function(t){this._parameters=t},enumerable:!0,configurable:!0}),c.getSubReportForPage=function(t){if(null==t)return null;for(var e=t.report.getComponents(),i=0,r=e.list;i<r.length;i++){var n=r[i];if(n.sti_is(c)&&n.subReportPage==t)return n.sti_as(c)}return null},c.eventFillParameters={},c}(i.StiContainer);i.StiSubReport=u}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.Base.StiJson,n=t.System.Enum,o=t.System.ICloneable,a=t.Report.Expressions.StiExpression,s=function(){function t(t,i,r,n,o,a,s){void 0===t&&(t=e.StiFilterItem.Value),void 0===i&&(i=String.empty),void 0===r&&(r=e.StiFilterCondition.EqualTo),void 0===n&&(n=String.empty),void 0===o&&(o=String.empty),void 0===a&&(a=e.StiFilterDataType.String),void 0===s&&(s=String.empty),this._condition=e.StiFilterCondition.EqualTo,this._dataType=e.StiFilterDataType.String,this._column=String.empty,this._item=e.StiFilterItem.Value,this.valueObj1=String.empty,this.valueObj2=String.empty,this._expression=String.empty,this._item=t,this._column=i,this._condition=r,this.valueObj1=n,this.valueObj2=o,this._dataType=a,this._expression=s}return t.prototype.implements=function(){return[o,i]},t.prototype.saveToJsonObject=function(t){var i=new r;return i.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),i.addPropertyEnum("Condition",e.StiFilterCondition,this.condition,e.StiFilterCondition.EqualTo),i.addPropertyEnum("DataType",e.StiFilterDataType,this.dataType,e.StiFilterDataType.String),i.addPropertyStringNullOfEmpty("Column",this.column),i.addPropertyEnum("Item",e.StiFilterItem,this.item,e.StiFilterItem.Value),i.addPropertyStringNullOfEmpty("Value1",this.value1),i.addPropertyStringNullOfEmpty("Value2",this.value2),i.addPropertyJObject("Expression",new a(this.expression).saveToJsonObject(t)),i},t.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var o=r[i];switch(o.name){case"Condition":this._condition=n.parse(e.StiFilterCondition,o.value);break;case"DataType":this._dataType=n.parse(e.StiFilterDataType,o.value);break;case"Column":this._column=o.value;break;case"Item":this._item=n.parse(e.StiFilterItem,o.value);break;case"Value1":this.valueObj1=o.value;break;case"Value2":this.valueObj2=o.value;break;case"Expression":var s=new a;s.loadFromJsonObject(o.value),this._expression=s.value;break}}},t.prototype.clone=function(){return this.memberwiseClone()},t.prototype.memberwiseClone=function(){var t=new(this.getStiType());return t._item=this.item,t._column=this.column,t._condition=this.condition,t.valueObj1=this.value1,t.valueObj2=this.value2,t._dataType=this.dataType,t._expression=this.expression,t},Object.defineProperty(t.prototype,"condition",{get:function(){return this._condition},set:function(t){this._condition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataType",{get:function(){return this._dataType},set:function(t){this._dataType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this._item},set:function(t){this._item=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value1",{get:function(){return this.valueObj1},set:function(t){this.valueObj1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value2",{get:function(){return this.valueObj2},set:function(t){this.valueObj2=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this._expression},set:function(t){this._expression=t},enumerable:!0,configurable:!0}),t}();e.StiFilter=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(i,r,n,o,a,s,l){void 0===i&&(i=t.StiFilterItem.Value),void 0===r&&(r=String.empty),void 0===n&&(n=t.StiFilterCondition.EqualTo),void 0===o&&(o=String.empty),void 0===a&&(a=String.empty),void 0===s&&(s=t.StiFilterDataType.String),void 0===l&&(l=String.empty);var u=e.call(this,i,r,n,o,a,s,l)||this;return u._tag=null,u}return __extends(i,e),i.prototype.implements=function(){return e.prototype.implements.call(this)},Object.defineProperty(i.prototype,"tag",{get:function(){return this._tag},set:function(t){this._tag=t},enumerable:!0,configurable:!0}),i}(t.StiFilter);t.StiBaseCondition=e}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Color,n=t.Base.Drawing.StiSolidBrush,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.Base.StiJsonReportObjectHelper,s=t.System.Enum,l=function(l){function u(t,e,n,o,a,s,u,c,p,h,g){void 0===t&&(t=String.empty),void 0===e&&(e=i.StiColorScaleType.Color2),void 0===n&&(n=r.red),void 0===o&&(o=r.yellow),void 0===a&&(a=r.green),void 0===s&&(s=i.StiMinimumType.Auto),void 0===u&&(u=0),void 0===c&&(c=i.StiMidType.Auto),void 0===p&&(p=50),void 0===h&&(h=i.StiMaximumType.Auto),void 0===g&&(g=100);var m=l.call(this)||this;return m._scaleType=i.StiColorScaleType.Color2,m._minimumColor=r.red,m._midColor=r.yellow,m._maximumColor=r.green,m._minimumValue=0,m._midType=0,m._midValue=50,m._maximumValue=100,m.minimum=null,m.maximum=null,m.column=t,m.scaleType=e,m.minimumColor=n,m.midColor=o,m.maximumColor=a,m.minimumType=s,m.minimumValue=u,m.midType=c,m.midValue=p,m.maximumType=h,m.maximumValue=g,m}return __extends(u,l),u.prototype.implements=function(){return l.prototype.implements.call(this).concat([i.IStiIndicatorCondition,o])},u.prototype.saveToJsonObject=function(t){var e=l.prototype.saveToJsonObject.call(this,t);return e.addPropertyEnum("ScaleType",i.StiColorScaleType,this.scaleType,i.StiColorScaleType.Color2),e.addPropertyStringNullOfEmpty("MinimumColor",a.Serialize.jColor(this.minimumColor,r.red)),e.addPropertyStringNullOfEmpty("MidColor",a.Serialize.jColor(this.midColor,r.yellow)),e.addPropertyStringNullOfEmpty("MaximumColor",a.Serialize.jColor(this.maximumColor,r.green)),e.addPropertyEnum("MinimumType",i.StiMinimumType,this.minimumType,i.StiMinimumType.Auto),e.addPropertyNumber("MinimumValue",this.minimumValue,0),e.addPropertyEnum("MidType",i.StiMidType,this.midType,i.StiMidType.Auto),e.addPropertyNumber("MidValue",this.midValue,50),e.addPropertyEnum("MaximumType",i.StiMaximumType,this.maximumType,i.StiMaximumType.Auto),e.addPropertyNumber("MaximumValue",this.maximumValue,100),e},u.prototype.loadFromJsonObject=function(t){l.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"ScaleType":this._scaleType=s.parse(i.StiColorScaleType,n.value);break;case"MinimumColor":this._minimumColor=a.Deserialize.color(n.value);break;case"MidColor":this._midColor=a.Deserialize.color(n.value);break;case"MaximumColor":this._maximumColor=a.Deserialize.color(n.value);break;case"MinimumType":this._minimumType=s.parse(i.StiMinimumType,n.value);break;case"MinimumValue":this._minimumValue=n.value.toNumber();break;case"MidType":this._midType=s.parse(i.StiMidType,n.value);break;case"MidValue":this._midValue=n.value.toNumber();break;case"MaximumType":this._maximumType=s.parse(i.StiMaximumType,n.value);break;case"MaximumValue":this._maximumValue=n.value.toNumber();break}}},u.prototype.loadFromXml=function(e,r){for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"ScaleType":this._scaleType=s.parse(i.StiColorScaleType,o.textContent);break;case"MinimumColor":this._minimumColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(o.textContent);break;case"MidColor":this._midColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(o.textContent);break;case"MaximumColor":this._maximumColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(o.textContent);break;case"MinimumType":this._minimumType=s.parse(i.StiMinimumType,o.textContent);break;case"MinimumValue":this._minimumValue=o.textContent.toNumber();break;case"MidType":this._midType=s.parse(i.StiMidType,o.textContent);break;case"MidValue":this._midValue=o.textContent.toNumber();break;case"MaximumType":this._maximumType=s.parse(i.StiMaximumType,o.textContent);break;case"MaximumValue":this._maximumValue=o.textContent.toNumber();break}}},u.prototype.createIndicator=function(o){if(String.isNullOrEmpty(this.column))return null;if(null==this.minimum||null==this.maximum){this.minimum=0,this.maximum=0;var a=t.Report.Dictionary.StiDataColumn.getDataSourceFromDataColumn(o.report.dictionary,this.column);if(null!=a){a.saveState("Indicator"),a.first();var s=0;while(!a.isEof){var l=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(o.report.dictionary,this.column),u=0;try{u=+e.StiReport.changeType(l,Number.getStiType())}catch(e){t.System.StiError.showError(e,!1)}0==s?(this.minimum=u,this.maximum=u):(this.minimum=Math.min(this.minimum,u),this.maximum=Math.max(this.maximum,u)),s++,a.next()}a.restoreState("Indicator")}if(null==a){var c=t.Report.Dictionary.StiDataColumn.getBusinessObjectFromDataColumn(o.report.dictionary,this.column);if(null==c)return null;c.saveState("Indicator"),c.createEnumerator();var s=0;while(!c.isEof){var l=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(o.report.dictionary,this.column),u=0;try{u=+e.StiReport.changeType(l,Number.getStiType())}catch(e){t.System.StiError.showError(e,!1)}0==s?(this.minimum=u,this.maximum=u):(this.minimum=Math.min(this.minimum,u),this.maximum=Math.max(this.maximum,u)),s++,c.next()}c.restoreState("Indicator")}}var p=this.minimum,h=this.maximum,g=h-p,m=this.minimumValue;m=Math.min(m,100),m=Math.max(m,0);var d=this.maximumValue;d=Math.min(d,100),d=Math.max(d,0),m>d&&(m=d);var S=this.midValue;this.minimumType==i.StiMinimumType.Value?p=this.minimumValue:this.minimumType==i.StiMinimumType.Percent&&(p+=g*m/100),this.maximumType==i.StiMaximumType.Value?h=this.maximumValue:this.maximumType==i.StiMaximumType.Percent&&(h=p+g*d/100);var f=(h-p)/2;this.midType==i.StiMidType.Value?f=this.midValue:this.midType==i.StiMidType.Percent&&(f=p+g*S/100),f<p&&(f=p),f>h&&(f=h);var y=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(o.report.dictionary,this.column),b=0;try{b=+e.StiReport.changeType(y,Number.getStiType())}catch(e){t.System.StiError.showError(e,!1)}b>h&&(b=h),b<p&&(b=p);var C=0,v,I;this.scaleType==i.StiColorScaleType.Color2?(C=(b-p)/(h-p),v=this.minimumColor,I=this.maximumColor):b>f?(C=(b-f)/(h-f),v=this.midColor,I=this.maximumColor):(C=b/(f-p),v=this.minimumColor,I=this.midColor);var A=(I.a-v.a)*C+v.a,w=(I.r-v.r)*C+v.r,T=(I.g-v.g)*C+v.g,B=(I.b-v.b)*C+v.b;return A=Math.round(Math.min(A,255)),w=Math.round(Math.min(w,255)),T=Math.round(Math.min(T,255)),B=Math.round(Math.min(B,255)),o.brush=new n(r.fromArgb(A,w,T,B)),null},u.prototype.reset=function(){this.minimum=null,this.maximum=null},Object.defineProperty(u.prototype,"scaleType",{get:function(){return this._scaleType},set:function(t){this._scaleType=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"minimumColor",{get:function(){return this._minimumColor},set:function(t){this._minimumColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"midColor",{get:function(){return this._midColor},set:function(t){this._midColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maximumColor",{get:function(){return this._maximumColor},set:function(t){this._maximumColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"minimumType",{get:function(){return this._minimumType},set:function(t){this._minimumType=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"minimumValue",{get:function(){return this._minimumValue},set:function(t){this._minimumValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"midType",{get:function(){return this._midType},set:function(t){this._midType=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"midValue",{get:function(){return this._midValue},set:function(t){this._midValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maximumType",{get:function(){return this._maximumType},set:function(t){this._maximumType=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maximumValue",{get:function(){return this._maximumValue},set:function(t){this._maximumValue=t},enumerable:!0,configurable:!0}),u.prototype.getHashCode=function(){return l.prototype.getHashCode.call(this)},u.prototype.stiEquals=function(t){var e=t;if(null==e)return!1;return this.column.stiEquals(e.column)&&+this.scaleType==+e.scaleType&&this.minimumColor.stiEquals(e.minimumColor)&&this.midColor.stiEquals(e.midColor)&&this.maximumColor.stiEquals(e.maximumColor)&&+this.minimumType==+e.minimumType&&this.minimumValue.stiEquals(e.minimumValue)&&+this.midType==+e.midType&&this.midValue.stiEquals(e.midValue)&&+this.maximumType==+e.maximumType&&this.maximumValue.stiEquals(e.maximumValue)},u}(i.StiBaseCondition);i.StiColorScaleCondition=l}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.System.Drawing.Font,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiJsonReportObjectHelper,a=t.System.Enum,s=function(s){function l(t,n,o,a,l,u,c,p,h,g,m,d,S,f,y,b){void 0===t&&(t=e.StiFilterItem.Value),void 0===n&&(n=String.empty),void 0===o&&(o=e.StiFilterCondition.EqualTo),void 0===a&&(a=String.empty),void 0===l&&(l=String.empty),void 0===u&&(u=e.StiFilterDataType.String),void 0===c&&(c=String.empty),void 0===p&&(p=i.red),void 0===h&&(h=i.transparent),void 0===g&&(g=new r("Arial",8)),void 0===m&&(m=!0),void 0===d&&(d=!1),void 0===S&&(S=String.empty),void 0===f&&(f=String.empty),void 0===y&&(y=e.StiConditionBorderSides.NotAssigned),void 0===b&&(b=e.StiConditionPermissions.All);var C=s.call(this,t,n,o,a,l,u,c)||this;return C._enabled=!0,C._textColor=i.red,C._backColor=i.transparent,C._font=new r("Arial",8),C._canAssignExpression=!0,C._breakIfTrue=!1,C._assignExpression=String.empty,C._style=String.empty,C._borderSides=e.StiConditionBorderSides.NotAssigned,C._permissions=e.StiConditionPermissions.All,C.textColor=p,C.backColor=h,null!=g&&(C.font=g),C.enabled=m,C.canAssignExpression=d,C.assignExpression=S,C.style=f,C.borderSides=y,C.permissions=b,C}return __extends(l,s),l.prototype.implements=function(){return s.prototype.implements.call(this).concat([n])},l.prototype.saveToJsonObject=function(t){var r=s.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("Enabled",this.enabled,!0),r.addPropertyStringNullOfEmpty("TextColor",o.Serialize.jColor(this.textColor,i.red)),r.addPropertyStringNullOfEmpty("BackColor",o.Serialize.jColor(this.backColor,i.transparent)),r.addPropertyStringNullOfEmpty("Font",o.Serialize.fontDefault(this.font)),r.addPropertyBool("CanAssignExpression",this.canAssignExpression),r.addPropertyStringNullOfEmpty("AssignExpression",this.assignExpression),r.addPropertyStringNullOfEmpty("Style",this.style),r.addPropertyEnum("BorderSides",e.StiConditionBorderSides,this.borderSides,e.StiConditionBorderSides.NotAssigned),r.addPropertyEnum("Permissions",e.StiConditionPermissions,this.permissions,e.StiConditionPermissions.All),r},l.prototype.loadFromJsonObject=function(t){s.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"Enabled":this._enabled=n.value.toBoolean();break;case"TextColor":this._textColor=o.Deserialize.color(n.value);break;case"BackColor":this._backColor=o.Deserialize.color(n.value);break;case"Font":this._font=o.Deserialize.font(n.value,this._font);break;case"CanAssignExpression":this._canAssignExpression=n.value.toBoolean();break;case"AssignExpression":this._assignExpression=n.value.toString();break;case"Style":this._style=n.value;break;case"BorderSides":this._borderSides=a.parse(e.StiConditionBorderSides,n.value);break;case"Permissions":this._permissions=a.parse(e.StiConditionPermissions,n.value);break}}},l.prototype.loadFromXml=function(i,r){for(var n=0;n<i.childNodes.length;n++){var o=i.childNodes[n];switch(o.nodeName){case"Enabled":this._enabled=o.textContent.toBoolean();break;case"TextColor":this._textColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(o.textContent);break;case"BackColor":this._backColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(o.textContent);break;case"Font":case"fn":this._font=t.System.Convert.toFont(o.textContent);break;case"CanAssignExpression":this._canAssignExpression=o.textContent.toBoolean();break;case"AssignExpression":this.assignExpression=o.textContent;break;case"Style":this._style=o.textContent;break;case"BorderSides":this._borderSides=a.parse(e.StiConditionBorderSides,o.textContent);break;case"Permissions":this._permissions=a.parse(e.StiConditionPermissions,o.textContent);break}}},l.prototype.clone=function(){return s.prototype.clone.call(this)},Object.defineProperty(l.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"textColor",{get:function(){return this._textColor},set:function(t){this._textColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"backColor",{get:function(){return this._backColor},set:function(t){this._backColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"font",{get:function(){return this._font},set:function(t){this._font=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"canAssignExpression",{get:function(){return this._canAssignExpression},set:function(t){this._canAssignExpression=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"breakIfTrue",{get:function(){return this._breakIfTrue},set:function(t){this._breakIfTrue=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"assignExpression",{get:function(){return this._assignExpression},set:function(t){this._assignExpression=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"style",{get:function(){return this._style},set:function(t){this._style=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"borderSides",{get:function(){return this._borderSides},set:function(t){this._borderSides=t,t==e.StiConditionBorderSides.NotAssigned&&(this._borderSides=e.StiConditionBorderSides.None,(this.permissions&e.StiConditionPermissions.Borders)>0&&(this.permissions-=e.StiConditionPermissions.Borders))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"permissions",{get:function(){return this._permissions},set:function(t){this._permissions=t},enumerable:!0,configurable:!0}),l.prototype.getHashCode=function(){return s.prototype.getHashCode.call(this)},l.prototype.stiEquals=function(t){var e=t;if(null==e)return!1;return this.backColor.stiEquals(e.backColor)&&this.textColor.stiEquals(e.textColor)&&this.column.stiEquals(e.column)&&this.condition==e.condition&&this.dataType==e.dataType&&this.enabled.stiEquals(e.enabled)&&this.font.stiEquals(e.font)&&this.item==e.item&&this.value1.stiEquals(e.value1)&&this.value2.stiEquals(e.value2)&&this.expression.trim().stiEquals(e.expression.trim())&&this.canAssignExpression.stiEquals(e.canAssignExpression)&&this.assignExpression.stiEquals(e.assignExpression)},l}(e.StiBaseCondition);e.StiCondition=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.System.Drawing.Font,n=t.System.Drawing.FontStyle,o=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.implements=function(){return t.prototype.implements.call(this)},o.apply=function(t,e){var i=t;if(e.startsWith("##")&&e.endsWith("##")){e=e.substr(2,e.length-4);for(var r=0,n=StiOptions.Designer.styles.list;r<n.length;r++){var a=n[r];if(a.name==e)return a.setStyleToComponent(i),void o.applyParentStyle(a,i)}}var s=i.report.styles.getByName(e);if(null!=s)return s.setStyleToComponent(i),void this.applyParentStyle(s,i)},o.applyParentStyle=function(t,e){null!=e&&null!=e.report&&null!=e.report.engine&&(null==e.report.engine.hashParentStyles&&(e.report.engine.hashParentStyles=new i),e.report.engine.hashParentStyles.set(e,t))},o.applyFont=function(t,i,o){var a=t;if(null!=a){var s=!1,l=a.font.name,u=a.font.size,c=a.font.bold,p=a.font.italic,h=a.font.underline,g=a.font.strikeout;if((o&e.StiConditionPermissions.Font)>0&&(s=!0,l=i.name),(o&e.StiConditionPermissions.FontSize)>0&&(s=!0,u=i.size),(o&e.StiConditionPermissions.FontStyleBold)>0&&(s=!0,c=i.bold),(o&e.StiConditionPermissions.FontStyleItalic)>0&&(s=!0,p=i.italic),(o&e.StiConditionPermissions.FontStyleUnderline)>0&&(s=!0,h=i.underline),(o&e.StiConditionPermissions.FontStyleStrikeout)>0&&(s=!0,g=i.strikeout),s){var m=n.Regular;c&&(m|=n.Bold),p&&(m|=n.Italic),h&&(m|=n.Underline),g&&(m|=n.Strikeout),a.font=new r(l,u,m)}}},o}(e.StiFilter);e.StiConditionHelper=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Color,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiJsonReportObjectHelper,a=t.System.Enum,s=t.Report.Components.StiBrushType,l=function(l){function u(t,e,n,o,a,u,c,p,h,g,m,d){void 0===t&&(t=String.empty),void 0===e&&(e=s.Gradient),void 0===n&&(n=r.green),void 0===o&&(o=r.red),void 0===a&&(a=!1),void 0===u&&(u=r.darkGreen),void 0===c&&(c=r.darkRed),void 0===p&&(p=i.StiDataBarDirection.Default),void 0===h&&(h=i.StiMinimumType.Auto),void 0===g&&(g=0),void 0===m&&(m=i.StiMaximumType.Auto),void 0===d&&(d=100);var S=l.call(this)||this;return S._brushType=s.Gradient,S._positiveColor=r.green,S._negativeColor=r.red,S._positiveBorderColor=r.darkGreen,S._negativeBorderColor=r.darkRed,S._showBorder=!1,S._direction=i.StiDataBarDirection.Default,S._minimumType=i.StiMinimumType.Auto,S._minimumValue=0,S._maximumType=i.StiMaximumType.Auto,S._maximumValue=100,S.minimum=null,S.maximum=null,S.column=t,S.brushType=e,S.positiveColor=n,S.negativeColor=o,S.showBorder=a,S.positiveBorderColor=u,S.negativeBorderColor=c,S.direction=p,S.minimumType=h,S.minimumValue=g,S.maximumType=m,S.maximumValue=d,S}return __extends(u,l),u.prototype.implements=function(){return l.prototype.implements.call(this).concat([i.IStiDataBarIndicator,i.IStiIndicatorCondition,n])},u.prototype.saveToJsonObject=function(t){var e=l.prototype.saveToJsonObject.call(this,t);return e.addPropertyEnum("BrushType",s,this.brushType,s.Gradient),e.addPropertyStringNullOfEmpty("PositiveColor",o.Serialize.jColor(this.positiveColor,r.green)),e.addPropertyStringNullOfEmpty("NegativeColor",o.Serialize.jColor(this.negativeColor,r.red)),e.addPropertyStringNullOfEmpty("PositiveBorderColor",o.Serialize.jColor(this.positiveBorderColor,r.darkGreen)),e.addPropertyStringNullOfEmpty("NegativeBorderColor",o.Serialize.jColor(this.negativeBorderColor,r.darkRed)),e.addPropertyBool("ShowBorder",this.showBorder),e.addPropertyEnum("Direction",i.StiDataBarDirection,this.direction,i.StiDataBarDirection.Default),e.addPropertyEnum("MinimumType",i.StiMinimumType,this.minimumType,i.StiMinimumType.Auto),e.addPropertyNumber("MinimumValue",this.minimumValue,0),e.addPropertyEnum("MaximumType",i.StiMaximumType,this.maximumType,i.StiMaximumType.Auto),e.addPropertyNumber("MaximumValue",this.maximumValue,100),e},u.prototype.loadFromJsonObject=function(t){l.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"BrushType":this._brushType=a.parse(s,n.value);break;case"PositiveColor":this._positiveColor=o.Deserialize.color(n.value);break;case"NegativeColor":this._negativeColor=o.Deserialize.color(n.value);break;case"PositiveBorderColor":this._positiveBorderColor=o.Deserialize.color(n.value);break;case"NegativeBorderColor":this._negativeBorderColor=o.Deserialize.color(n.value);break;case"ShowBorder":this._showBorder=n.value.toBoolean();break;case"Direction":this._direction=a.parse(i.StiDataBarDirection,n.value);break;case"MinimumType":this._minimumType=a.parse(i.StiMinimumType,n.value);break;case"MinimumValue":this._minimumValue=n.value.toNumber();break;case"MaximumType":this._maximumType=a.parse(i.StiMaximumType,n.value);break;case"MaximumValue":this._maximumValue=n.value.toNumber();break}}},u.prototype.createIndicator=function(r){if(String.isNullOrEmpty(this.column))return null;if(!(this.minimumType==i.StiMinimumType.Value&&this.maximumType==i.StiMaximumType.Value||null!=this.minimum&&null!=this.maximum)){this.minimum=0,this.maximum=0;var n=t.Report.Dictionary.StiDataColumn.getDataSourceFromDataColumn(r.report.dictionary,this.column);if(null!=n){n.saveState("Indicator"),n.first();var o=0;while(!n.isEof){var a=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(r.report.dictionary,this.column),s=0;try{s=+e.StiReport.changeType(a,Number.getStiType())}catch(e){t.System.StiError.showError(e,!1)}0==o?(this.minimum=s,this.maximum=s):(this.minimum=Math.min(this.minimum,s),this.maximum=Math.max(this.maximum,s)),o++,n.next()}n.restoreState("Indicator")}if(null==n){var l=t.Report.Dictionary.StiDataColumn.getBusinessObjectFromDataColumn(r.report.dictionary,this.column);if(null==l)return null;l.saveState("Indicator"),l.createEnumerator();var o=0;while(!l.isEof){var a=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(r.report.dictionary,this.column),s=0;try{s=+e.StiReport.changeType(a,Number.getStiType())}catch(e){t.System.StiError.showError(e,!1)}0==o?(this.minimum=s,this.maximum=s):(this.minimum=Math.min(this.minimum,s),this.maximum=Math.max(this.maximum,s)),o++,l.next()}l.restoreState("Indicator")}this.minimum>0&&this.minimumType!=i.StiMinimumType.Minimum&&(this.minimum=0),this.maximum<0&&this.maximumType!=i.StiMaximumType.Maximum&&(this.maximum=0)}var u=this.minimum,c=this.maximum,p=c-u,h=this.minimumValue;h=Math.min(h,100),h=Math.max(h,0);var g=this.maximumValue;g=Math.min(g,100),g=Math.max(g,0),h>g&&(h=g),this.minimumType==i.StiMinimumType.Value?u=this.minimumValue:this.minimumType==i.StiMinimumType.Percent&&(u+=p*h/100),this.maximumType==i.StiMaximumType.Value?c=this.maximumValue:this.maximumType==i.StiMaximumType.Percent&&(c=u+p*g/100);var m=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(r.report.dictionary,this.column),d=0;try{d=+e.StiReport.changeType(m,Number.getStiType())}catch(e){t.System.StiError.showError(e,!1)}d>c&&(d=c),d<u&&(d=u),u>0&&(d-=u,c-=u,u=0),c<0&&(d-=c,u-=c,c=0);var S=new i.StiDataBarIndicator;return S.brushType=this.brushType,S.positiveColor=this.positiveColor,S.negativeColor=this.negativeColor,S.showBorder=this.showBorder,S.positiveBorderColor=this.positiveBorderColor,S.negativeBorderColor=this.negativeBorderColor,S.direction=this.direction,S.minimum=u,S.maximum=c,S.value=d,S},u.prototype.reset=function(){this.minimum=null,this.maximum=null},Object.defineProperty(u.prototype,"brushType",{get:function(){return this._brushType},set:function(t){this._brushType=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"positiveColor",{get:function(){return this._positiveColor},set:function(t){this._positiveColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"negativeColor",{get:function(){return this._negativeColor},set:function(t){this._negativeColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"positiveBorderColor",{get:function(){return this._positiveBorderColor},set:function(t){this._positiveBorderColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"negativeBorderColor",{get:function(){return this._negativeBorderColor},set:function(t){this._negativeBorderColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showBorder",{get:function(){return this._showBorder},set:function(t){this._showBorder=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"minimumType",{get:function(){return this._minimumType},set:function(t){this._minimumType=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"minimumValue",{get:function(){return this._minimumValue},set:function(t){this._minimumValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maximumType",{get:function(){return this._maximumType},set:function(t){this._maximumType=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"maximumValue",{get:function(){return this._maximumValue},set:function(t){this._maximumValue=t},enumerable:!0,configurable:!0}),u.prototype.getHashCode=function(){return l.prototype.getHashCode.call(this)},u.prototype.stiEquals=function(t){var e=t;if(null==e)return!1;return this.column.stiEquals(e.column)&&this.brushType==e.brushType&&this.positiveColor.stiEquals(e.positiveColor)&&this.negativeColor==e.negativeColor&&this.showBorder.stiEquals(e.showBorder)&&this.positiveBorderColor.stiEquals(e.positiveBorderColor)&&this.negativeBorderColor.stiEquals(e.negativeBorderColor)&&this.minimumType==e.minimumType&&this.minimumValue.stiEquals(e.minimumValue)&&this.maximumType==e.maximumType&&this.maximumValue.stiEquals(e.maximumValue)},u}(i.StiBaseCondition);i.StiDataBarCondition=l}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Enum,r=t.System.Drawing.ContentAlignment,n=t.Base.JsonReportObject.IStiJsonReportObject,o=function(o){function a(t,i,n,a,s,l,u,c){void 0===t&&(t=String.empty),void 0===i&&(i=e.StiIconSet.None),void 0===n&&(n=r.MiddleLeft),void 0===a&&(a=null),void 0===s&&(s=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===c&&(c=null);var p=o.call(this)||this;return p._iconSet=e.StiIconSet.None,p._contentAlignment=r.MiddleLeft,p._iconSetItem1=null,p._iconSetItem2=null,p._iconSetItem3=null,p._iconSetItem4=null,p._iconSetItem5=null,p.minimum=null,p.maximum=null,p.column=t,p.iconSet=i,p.contentAlignment=n,p.iconSetItem1=a,p.iconSetItem2=s,p.iconSetItem3=l,p.iconSetItem4=u,p.iconSetItem5=c,p}return __extends(a,o),a.prototype.implements=function(){return o.prototype.implements.call(this).concat([e.IStiIndicatorCondition,n])},a.prototype.saveToJsonObject=function(t){var i=o.prototype.saveToJsonObject.call(this,t);return i.addPropertyEnum("IconSet",e.StiIconSet,this.iconSet,e.StiIconSet.None),i.addPropertyEnum("ContentAlignment",r,this.contentAlignment,r.MiddleLeft),null!=this.iconSetItem1&&i.addPropertyJObject("IconSetItem1",this.iconSetItem1.saveToJsonObject(t)),null!=this.iconSetItem2&&i.addPropertyJObject("IconSetItem2",this.iconSetItem2.saveToJsonObject(t)),null!=this.iconSetItem3&&i.addPropertyJObject("IconSetItem3",this.iconSetItem3.saveToJsonObject(t)),null!=this.iconSetItem4&&i.addPropertyJObject("IconSetItem4",this.iconSetItem4.saveToJsonObject(t)),null!=this.iconSetItem5&&i.addPropertyJObject("IconSetItem5",this.iconSetItem5.saveToJsonObject(t)),i},a.prototype.loadFromJsonObject=function(t){o.prototype.loadFromJsonObject.call(this,t);for(var n=0,a=t.properties();n<a.length;n++){var s=a[n];switch(s.name){case"IconSet":this._iconSet=i.parse(e.StiIconSet,s.value);break;case"ContentAlignment":this._contentAlignment=i.parse(r,s.value);break;case"IconSetItem1":var l=new e.StiIconSetItem;l.loadFromJsonObject(s.value),this._iconSetItem1=l;break;case"IconSetItem2":var l=new e.StiIconSetItem;l.loadFromJsonObject(s.value),this._iconSetItem2=l;break;case"IconSetItem3":var l=new e.StiIconSetItem;l.loadFromJsonObject(s.value),this._iconSetItem3=l;break;case"IconSetItem4":var l=new e.StiIconSetItem;l.loadFromJsonObject(s.value),this._iconSetItem4=l;break;case"IconSetItem5":var l=new e.StiIconSetItem;l.loadFromJsonObject(s.value),this._iconSetItem5=l;break}}},a.prototype.createIndicator=function(i){if(String.isNullOrEmpty(this.column))return null;if(null==this.minimum||null==this.maximum){this.minimum=0,this.maximum=0;var r=t.Report.Dictionary.StiDataColumn.getDataSourceFromDataColumn(i.report.dictionary,this.column);if(null!=r){r.saveState("Indicator"),null!=r.detailRows&&null!=r.dataTable&&(r.detailRows=null),r.first();var n=0;while(!r.isEof){var o=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(i.report.dictionary,this.column),a=o.toNumber();0==n?(this.minimum=a,this.maximum=a):(this.minimum=Math.min(this.minimum,a),this.maximum=Math.max(this.maximum,a)),n++,r.next()}r.restoreState("Indicator")}if(null==r){var s=t.Report.Dictionary.StiDataColumn.getBusinessObjectFromDataColumn(i.report.dictionary,this.column);if(null==s)return null;s.saveState("Indicator"),s.createEnumerator();var n=0;while(!s.isEof){var o=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(i.report.dictionary,this.column),a=o.toNumber();0==n?(this.minimum=a,this.maximum=a):(this.minimum=Math.min(this.minimum,a),this.maximum=Math.max(this.maximum,a)),n++,s.next()}s.restoreState("Indicator")}}var l=this.minimum,u=this.maximum,c=u-l,p=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(i.report.dictionary,this.column),h=p.toNumber();h>u&&(h=u),h<l&&(h=l);var g=(h-l)/c*100,m=e.StiIcon.None;if(null==this.iconSetItem4&&null==this.iconSetItem5?this.inRange(this.iconSetItem1,h,g)?m=this.iconSetItem1.icon:this.inRange(this.iconSetItem2,h,g)?m=this.iconSetItem2.icon:null!=this.iconSetItem3&&(m=this.iconSetItem3.icon):null==this.iconSetItem5?this.inRange(this.iconSetItem1,h,g)?m=this.iconSetItem1.icon:this.inRange(this.iconSetItem2,h,g)?m=this.iconSetItem2.icon:this.inRange(this.iconSetItem3,h,g)?m=this.iconSetItem3.icon:null!=this.iconSetItem4&&(m=this.iconSetItem4.icon):this.inRange(this.iconSetItem1,h,g)?m=this.iconSetItem1.icon:this.inRange(this.iconSetItem2,h,g)?m=this.iconSetItem2.icon:this.inRange(this.iconSetItem3,h,g)?m=this.iconSetItem3.icon:this.inRange(this.iconSetItem4,h,g)?m=this.iconSetItem4.icon:null!=this.iconSetItem5&&(m=this.iconSetItem5.icon),m==e.StiIcon.None)return null;var d=new e.StiIconSetIndicator;return d.icon=m,d.alignment=this.contentAlignment,d},a.prototype.inRange=function(t,i,r){if(null==t)return!1;if(t.valueType==e.StiIconSetValueType.Percent){if(t.operation==e.StiIconSetOperation.MoreThan){if(r>t.value)return!0}else if(r>=t.value)return!0}else if(t.operation==e.StiIconSetOperation.MoreThan){if(i>t.value)return!0}else if(i>=t.value)return!0;return!1},a.prototype.reset=function(){this.minimum=null,this.maximum=null},Object.defineProperty(a.prototype,"iconSet",{get:function(){return this._iconSet},set:function(t){this._iconSet=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"contentAlignment",{get:function(){return this._contentAlignment},set:function(t){this._contentAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"iconSetItem1",{get:function(){return this._iconSetItem1},set:function(t){this._iconSetItem1=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"iconSetItem2",{get:function(){return this._iconSetItem2},set:function(t){this._iconSetItem2=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"iconSetItem3",{get:function(){return this._iconSetItem3},set:function(t){this._iconSetItem3=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"iconSetItem4",{get:function(){return this._iconSetItem4},set:function(t){this._iconSetItem4=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"iconSetItem5",{get:function(){return this._iconSetItem5},set:function(t){this._iconSetItem5=t},enumerable:!0,configurable:!0}),a.prototype.getHashCode=function(){return o.prototype.getHashCode.call(this)},a.prototype.stiEquals=function(t){var e=t;if(null==e)return!1;return this.iconSet==e.iconSet&&this.contentAlignment==e.contentAlignment},a}(e.StiBaseCondition);e.StiIconSetCondition=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJson,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.System.Enum,o=function(){function t(t,i,r,n){void 0===t&&(t=e.StiIcon.None),void 0===i&&(i=e.StiIconSetOperation.MoreThan),void 0===r&&(r=e.StiIconSetValueType.Percent),void 0===n&&(n=0),this._icon=e.StiIcon.None,this._operation=e.StiIconSetOperation.MoreThan,this._valueType=e.StiIconSetValueType.Percent,this._value=0,this.icon=t,this.operation=i,this.valueType=r,this.value=n}return t.prototype.implements=function(){return[r]},t.prototype.saveToJsonObject=function(t){var r=new i;return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyEnum("Icon",e.StiIcon,this.icon,e.StiIcon.None),r.addPropertyEnum("Operation",e.StiIconSetOperation,this.operation,e.StiIconSetOperation.MoreThan),r.addPropertyEnum("ValueType",e.StiIconSetValueType,this.valueType,e.StiIconSetValueType.Percent),r.addPropertyNumber("Value",this.value,0),r},t.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var o=r[i];switch(o.name){case"Icon":this._icon=n.parse(e.StiIcon,o.value);break;case"Operation":this._operation=n.parse(e.StiIconSetOperation,o.value);break;case"ValueType":this._valueType=n.parse(e.StiIconSetValueType,o.value);break;case"Value":this._value=o.value.toNumber();break}}},Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(t){this._icon=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operation",{get:function(){return this._operation},set:function(t){this._operation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueType",{get:function(){return this._valueType},set:function(t){this._valueType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),t}();e.StiIconSetItem=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJsonReportObjectHelper,r=t.Base.StiJson,n=t.System.Drawing.Color,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.System.Text.StiReportObjectStringConverter,s=t.System.Enum,l=function(l){function u(t,i,r,o,a,s,u,c,p,h){void 0===t&&(t=n.red),void 0===i&&(i=n.transparent),void 0===r&&(r=null),void 0===o&&(o=!0),void 0===a&&(a=e.StiFilterMode.And),void 0===s&&(s=null),void 0===u&&(u=!1),void 0===c&&(c=String.empty),void 0===p&&(p=String.empty),void 0===h&&(h=e.StiConditionBorderSides.NotAssigned);var g=l.call(this)||this;if(g._filterMode=e.StiFilterMode.And,g._filters=new e.StiFiltersCollection,g.style=p,g.borderSides=h,g.filterMode=a,null!=s)for(var m=0,d=s;m<d.length;m++){var S=d[m];g.filters.add(S)}return g}return __extends(u,l),u.prototype.implements=function(){return l.prototype.implements.call(this).concat([e.IStiFilter,o])},u.prototype.saveToJsonObject=function(t){var o=new r;return o.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),o.addPropertyBool("Enabled",this.enabled,!0),o.addPropertyStringNullOfEmpty("TextColor",i.Serialize.jColor(this.textColor,n.red)),o.addPropertyStringNullOfEmpty("BackColor",i.Serialize.jColor(this.backColor,n.transparent)),o.addPropertyStringNullOfEmpty("Font",i.Serialize.fontDefault(this.font)),o.addPropertyBool("CanAssignExpression",this.canAssignExpression),o.addPropertyStringNullOfEmpty("Style",this.style),o.addPropertyEnum("BorderSides",e.StiConditionBorderSides,this.borderSides,e.StiConditionBorderSides.NotAssigned),o.addPropertyEnum("Permissions",e.StiConditionPermissions,this.permissions,e.StiConditionPermissions.All),o.addPropertyEnum("FilterMode",e.StiFilterMode,this.filterMode,e.StiFilterMode.And),o.addPropertyJObject("Filters",this.filters.saveToJsonObject(t)),o},u.prototype.loadFromJsonObject=function(t){l.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"FilterMode":this._filterMode=s.parse(e.StiFilterMode,n.value);break;case"Filters":this._filters.loadFromJsonObject(n.value);break}}},u.prototype.loadfromXmlDoc=function(i){try{if("StiSerializer"!=i.firstChild.nodeName)return;for(var r=0;r<i.firstChild.childNodes.length;r++){var n=i.firstChild.childNodes[r];switch(n.nodeName){case"Enabled":this.enabled=n.textContent.toBoolean();break;case"TextColor":this.textColor=a.convertStringToColor(n.textContent);break;case"BackColor":this.backColor=a.convertStringToColor(n.textContent);break;case"TextColor":this.textColor=a.convertStringToColor(n.textContent);break;case"Font":case"fn":this.font=t.System.Convert.toFont(n.textContent);break;case"CanAssignExpression":this.canAssignExpression=n.textContent.toBoolean();break;case"Style":this.style=n.textContent;break;case"BorderSides":this.borderSides=s.parse(e.StiConditionBorderSides,n.textContent);break;case"Permissions":this.permissions=s.parse(e.StiConditionPermissions,n.textContent);break;case"FilterMode":this.filterMode=s.parse(e.StiFilterMode,n.textContent);break;case"AssignExpression":this.assignExpression=n.textContent;break;case"Filters":this.filters.loadFromXml(n);break}}}catch(e){t.System.StiError.showError(e,!1)}},u.prototype.clone=function(){return l.prototype.clone.call(this)},Object.defineProperty(u.prototype,"filterMode",{get:function(){return this._filterMode},set:function(t){this._filterMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"filters",{get:function(){return this._filters},set:function(t){this._filters=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"filterMethodHandler",{get:function(){return null},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"filterOn",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"condition",{get:function(){throw"Please, use Filters collection!"},set:function(t){throw"Please, use Filters collection!"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"dataType",{get:function(){throw"Please, use Filters collection!"},set:function(t){throw"Please, use Filters collection!"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"column",{get:function(){throw"Please, use Filters collection!"},set:function(t){throw"Please, use Filters collection!"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"item",{get:function(){throw"Please, use Filters collection!"},set:function(t){throw"Please, use Filters collection!"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"value1",{get:function(){throw"Please, use Filters collection!"},set:function(t){throw"Please, use Filters collection!"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"value2",{get:function(){throw"Please, use Filters collection!"},set:function(t){throw"Please, use Filters collection!"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"expression",{get:function(){throw"Please, use Filters collection!"},set:function(t){throw"Please, use Filters collection!"},enumerable:!0,configurable:!0}),u.prototype.getHashCode=function(){return l.prototype.getHashCode.call(this)},u.prototype.stiEquals=function(t){var e=t;if(null==e)return!1;return this.backColor.stiEquals(e.backColor)&&this.textColor.stiEquals(e.textColor)&&this.enabled.stiEquals(e.enabled)&&this.font.stiEquals(e.font)&&this.filterMode==e.filterMode&&this.filters.stiEquals(e.filters)&&this.canAssignExpression.stiEquals(e.canAssignExpression)&&this.assignExpression.stiEquals(e.assignExpression)},u}(e.StiCondition);e.StiMultiCondition=l}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.System.Drawing.Font,n=function(){function t(){this._filters=new e.StiFiltersCollection,this._filterMode=e.StiFilterMode.And,this._enabled=!0,this._textColor=i.red,this._backColor=i.transparent,this._font=new r("Arial",8),this._canAssignExpression=!1,this._assignExpression=String.empty,this._style=String.empty,this._borderSides=e.StiConditionBorderSides.NotAssigned,this._permissions=e.StiConditionPermissions.All}return Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters},set:function(t){this._filters=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterMode",{get:function(){return this._filterMode},set:function(t){this._filterMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textColor",{get:function(){return this._textColor},set:function(t){this._textColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backColor",{get:function(){return this._backColor},set:function(t){this._backColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this._font},set:function(t){this._font=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAssignExpression",{get:function(){return this._canAssignExpression},set:function(t){this._canAssignExpression=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assignExpression",{get:function(){return this._assignExpression},set:function(t){this._assignExpression=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style},set:function(t){this._style=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderSides",{get:function(){return this._borderSides},set:function(t){this._borderSides=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"permissions",{get:function(){return this._permissions},set:function(t){this._permissions=t},enumerable:!0,configurable:!0}),t}();e.StiMultiConditionContainer=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiAlignValue,n=t.System.Drawing.Rectangle,o=t.System.Drawing.Size,a=t.Base.Localization.StiLocalization,s=function(t){function s(e){void 0===e&&(e=n.empty);var r=t.call(this,e)||this;return r.isRightToLeft=!1,r.columnCurrent=0,r._columnMode=!1,r.resetDataSource=!0,r.dockStyle=i.StiDockStyle.Left,r}return __extends(s,t),s.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("NewPageBefore"),i.removeProperty("NewPageAfter"),i.removeProperty("NewColumnBefore"),i.removeProperty("NewColumnAfter"),i.removeProperty("SkipFirst"),i.removeProperty("BreakIfLessThan"),i.removeProperty("GrowToHeight"),i.removeProperty("ResetPageNumber"),i.removeProperty("StartNewPage"),i.removeProperty("StartNewPageIfLessThan"),i.removeProperty("KeepHeaderTogether"),i.removeProperty("KeepFooterTogether"),i.removeProperty("KeepChildTogether"),i.removeProperty("KeepGroupTogether"),i.removeProperty("PrintAtBottom"),i.addPropertyBool("CanBreak",this.canBreak),i.removeProperty("PrintOnAllPages"),i.removeProperty("PrintOn"),i.removeProperty("RightToLeft"),i.removeProperty("ColumnGaps"),i.removeProperty("ColumnWidth"),i.removeProperty("Columns"),i.removeProperty("MinRowsInColumn"),i.removeProperty("ColumnDirection"),i.addPropertyBool("ResetDataSource",this.resetDataSource,!0),i.addPropertyBool("ResetDataSource",this.resetDataSource,!0),i.removeProperty("DockStyle"),i.removeProperty("MinSize"),i.removeProperty("MaxSize"),i.removeProperty("MaxHeight"),i.removeProperty("MinHeight"),i.addPropertyNumber("MinWidth",this.minWidth,0),i.addPropertyNumber("MaxWidth",this.maxWidth,0),i},s.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"MinWidth":this.minWidth=n.value.toNumber();break;case"MaxWidth":this.maxWidth=n.value.toNumber();break}}},Object.defineProperty(s.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossDataBand},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"growToHeight",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"resetPageNumber",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPage",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPageIfLessThan",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),s.prototype.restoreState=function(e){t.prototype.restoreState.call(this,e),this.setColumnModeToParent()},Object.defineProperty(s.prototype,"keepHeaderTogether",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"keepFooterTogether",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"keepChildTogether",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"keepGroupTogether",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printAtBottom",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printOnAllPages",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),s.prototype.setColumnModeToParent=function(){this.columnMode&&this.parent.sti_is(i.StiDataBand)&&null==this.dataSource&&(this.parent.isEofValue=this.isEof,this.parent.isBofValue=this.isBof,this.parent.positionValue=this.position)},s.prototype.getColumnModeFromParent=function(){this.columnMode&&this.parent.sti_is(i.StiDataBand)&&null==this.dataSource&&(this.enabled=this.parent.enabled,this.isEofValue=this.parent.isEofValue,this.isBofValue=this.parent.isBofValue,this.positionValue=this.parent.positionValue)},s.prototype.first=function(){t.prototype.first.call(this),this.setColumnModeToParent()},s.prototype.prior=function(){t.prototype.prior.call(this),this.setColumnModeToParent()},s.prototype.next=function(){t.prototype.next.call(this),this.setColumnModeToParent()},s.prototype.last=function(){t.prototype.last.call(this),this.setColumnModeToParent()},Object.defineProperty(s.prototype,"localizedCategory",{get:function(){return a.get("Report","CrossBands")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("Components","StiCrossDataBand")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isCross",{get:function(){return!0},enumerable:!0,configurable:!0}),s.prototype.getDockStyle=function(){return this.isRightToLeft?i.StiDockStyle.Right:i.StiDockStyle.Left},Object.defineProperty(s.prototype,"minWidth",{get:function(){return this.minSize.width},set:function(t){this.minSize.width!=t&&(this.minSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxWidth",{get:function(){return this.maxSize.width},set:function(t){this.maxSize.width!=t&&(this.maxSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"defaultClientRectangle",{get:function(){return new n(0,0,30,50)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectRectangle",{get:function(){var t=this.page.unit.convertFromHInches(this.headerSize);return new n(this.left,this.top,this.width,this.height+t)},set:function(t){var e=this.page.unit.convertFromHInches(this.headerSize);this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height-e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"displayRectangle",{get:function(){return this.selectRectangle},set:function(t){this.selectRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerSize",{get:function(){return this.report.info.showHeaders?r.alignToMaxGrid(15,this.page.unit.convertToHInches(this.page.gridSize),!0)-4:0},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},Object.defineProperty(s.prototype,"columnMode",{get:function(){return this._columnMode},set:function(t){this._columnMode=t},enumerable:!0,configurable:!0}),s}(i.StiDataBand);i.StiCrossDataBand=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiAlignValue,n=t.System.Drawing.Rectangle,o=t.System.Drawing.Size,a=t.Base.Localization.StiLocalization,s=function(t){function s(e){return void 0===e&&(e=n.empty),t.call(this,e)||this}return __extends(s,t),s.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("NewPageBefore"),i.removeProperty("NewPageAfter"),i.removeProperty("NewColumnBefore"),i.removeProperty("NewColumnAfter"),i.removeProperty("SkipFirst"),i.removeProperty("BreakIfLessThan"),i.removeProperty("GrowToHeight"),i.removeProperty("ResetPageNumber"),i.removeProperty("StartNewPage"),i.removeProperty("StartNewPageIfLessThan"),i.removeProperty("PrintAtBottom"),i.removeProperty("PrintOnAllPages"),i.removeProperty("PrintIfEmpty"),i.removeProperty("PrintOnEvenOddPages"),i.removeProperty("PrintOn"),i.removeProperty("DockStyle"),i.removeProperty("MinSize"),i.removeProperty("MaxSize"),i.removeProperty("MaxHeight"),i.removeProperty("MinHeight"),i.addPropertyNumber("MinWidth",this.minWidth,0),i.addPropertyNumber("MaxWidth",this.maxWidth,0),i},s.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"MinWidth":this.minWidth=n.value.toNumber();break;case"MaxWidth":this.maxWidth=n.value.toNumber();break}}},Object.defineProperty(s.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossFooterBand},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"helpUrl",{get:function(){return"user-manual/report_internals_bands_band_types_cross_bands.htm"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"growToHeight",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"resetPageNumber",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPage",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPageIfLessThan",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printAtBottom",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printOnAllPages",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedCategory",{get:function(){return a.get("Report","CrossBands")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("Components","StiCrossFooterBand")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isCross",{get:function(){return!0},enumerable:!0,configurable:!0}),s.prototype.getDockStyle=function(){return i.StiDockStyle.Left},s.prototype.setDockStyle=function(t){},Object.defineProperty(s.prototype,"minWidth",{get:function(){return this.minSize.width},set:function(t){this.minSize.width!=t&&(this.minSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxWidth",{get:function(){return this.maxSize.width},set:function(t){this.maxSize.width!=t&&(this.maxSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"defaultClientRectangle",{get:function(){return new n(0,0,30,50)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectRectangle",{get:function(){var t=this.page.unit.convertFromHInches(this.headerSize);return new n(this.left,this.top,this.width,this.height+t)},set:function(t){var e=this.page.unit.convertFromHInches(this.headerSize);this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height-e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"displayRectangle",{get:function(){return this.selectRectangle},set:function(t){this.selectRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerSize",{get:function(){return this.report.info.showHeaders?r.alignToMaxGrid(15,this.page.unit.convertToHInches(this.page.gridSize),!0)-4:0},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},s}(i.StiFooterBand);i.StiCrossFooterBand=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiAlignValue,n=t.System.Drawing.Rectangle,o=t.System.Drawing.Size,a=t.Base.Localization.StiLocalization,s=function(t){function s(e){return void 0===e&&(e=n.empty),t.call(this,e)||this}return __extends(s,t),s.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("NewPageBefore"),i.removeProperty("NewPageAfter"),i.removeProperty("NewColumnBefore"),i.removeProperty("NewColumnAfter"),i.removeProperty("SkipFirst"),i.removeProperty("BreakIfLessThan"),i.removeProperty("GrowToHeight"),i.removeProperty("ResetPageNumber"),i.removeProperty("PrintAtBottom"),i.addPropertyBool("CanBreak",this.canBreak),i.removeProperty("DockStyle"),i.removeProperty("MinSize"),i.removeProperty("MaxSize"),i.removeProperty("MaxHeight"),i.removeProperty("MinHeight"),i.addPropertyNumber("MinWidth",this.minWidth,0),i.addPropertyNumber("MaxWidth",this.maxWidth,0),i},s.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"MinWidth":this.minWidth=n.value.toNumber();break;case"MaxWidth":this.maxWidth=n.value.toNumber();break}}},Object.defineProperty(s.prototype,"сomponentId",{get:function(){return e.StiComponentId.StiCrossGroupFooterBand},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"helpUrl",{get:function(){return"user-manual/report_internals_bands_band_types_cross_bands.htm"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"growToHeight",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"resetPageNumber",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printAtBottom",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedCategory",{get:function(){return a.get("Report","CrossBands")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("Components","StiCrossGroupFooterBand")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isCross",{get:function(){return!0},enumerable:!0,configurable:!0}),s.prototype.getDockStyle=function(){return i.StiDockStyle.Left},s.prototype.setDockStyle=function(t){},Object.defineProperty(s.prototype,"minWidth",{get:function(){return this.minSize.width},set:function(t){this.minSize.width!=t&&(this.minSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxWidth",{get:function(){return this.maxSize.width},set:function(t){this.maxSize.width!=t&&(this.maxSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"defaultClientRectangle",{get:function(){return new n(0,0,30,50)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectRectangle",{get:function(){var t=this.page.unit.convertFromHInches(this.headerSize);return new n(this.left,this.top,this.width,this.height+t)},set:function(t){var e=this.page.unit.convertFromHInches(this.headerSize);this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height-e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"displayRectangle",{get:function(){return this.selectRectangle},set:function(t){this.selectRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerSize",{get:function(){return this.report.info.showHeaders?r.alignToMaxGrid(15,this.page.unit.convertToHInches(this.page.gridSize),!0)-4:0},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},s}(i.StiGroupFooterBand);i.StiCrossGroupFooterBand=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiAlignValue,n=t.System.Drawing.Rectangle,o=t.System.Drawing.Size,a=t.Base.Localization.StiLocalization,s=function(t){function s(e){return void 0===e&&(e=n.empty),t.call(this,e)||this}return __extends(s,t),s.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("NewPageBefore"),i.removeProperty("NewPageAfter"),i.removeProperty("NewColumnBefore"),i.removeProperty("NewColumnAfter"),i.removeProperty("SkipFirst"),i.removeProperty("BreakIfLessThan"),i.removeProperty("GrowToHeight"),i.removeProperty("ResetPageNumber"),i.removeProperty("StartNewPage"),i.removeProperty("PrintOnAllPages"),i.removeProperty("PrintAtBottom"),i.removeProperty("DockStyle"),i.removeProperty("MinSize"),i.removeProperty("MaxSize"),i.removeProperty("MaxHeight"),i.removeProperty("MinHeight"),i.addPropertyNumber("MinWidth",this.minWidth,0),i.addPropertyNumber("MaxWidth",this.maxWidth,0),i},s.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"MinWidth":this.minWidth=n.value.toNumber;break;case"MaxWidth":this.maxWidth=n.value.toNumber();break}}},Object.defineProperty(s.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossGroupHeaderBand},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"helpUrl",{get:function(){return"user-manual/report_internals_bands_band_types_cross_bands.htm"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"growToHeight",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"resetPageNumber",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPage",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printOnAllPages",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printAtBottom",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedCategory",{get:function(){return a.get("Report","CrossBands")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("Components","StiCrossGroupHeaderBand")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isCross",{get:function(){return!0},enumerable:!0,configurable:!0}),s.prototype.getDockStyle=function(){return i.StiDockStyle.Left},s.prototype.setDockStyle=function(t){},Object.defineProperty(s.prototype,"minWidth",{get:function(){return this.minSize.width},set:function(t){this.minSize.width!=t&&(this.minSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxWidth",{get:function(){return this.maxSize.width},set:function(t){this.maxSize.width!=t&&(this.maxSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"defaultClientRectangle",{get:function(){return new n(0,0,30,50)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectRectangle",{get:function(){var t=this.page.unit.convertFromHInches(this.headerSize);return new n(this.left,this.top,this.width,this.height+t)},set:function(t){var e=this.page.unit.convertFromHInches(this.headerSize);this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height-e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"displayRectangle",{get:function(){return this.selectRectangle},set:function(t){this.selectRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerSize",{get:function(){return this.report.info.showHeaders?r.alignToMaxGrid(15,this.page.unit.convertToHInches(this.page.gridSize),!0)-4:0},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},s}(i.StiGroupHeaderBand);i.StiCrossGroupHeaderBand=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiAlignValue,n=t.System.Drawing.Rectangle,o=t.System.Drawing.Size,a=t.Base.Localization.StiLocalization,s=function(t){function s(e){return void 0===e&&(e=n.empty),t.call(this,e)||this}return __extends(s,t),s.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("NewPageBefore"),i.removeProperty("NewPageAfter"),i.removeProperty("NewColumnBefore"),i.removeProperty("NewColumnAfter"),i.removeProperty("SkipFirst"),i.removeProperty("BreakIfLessThan"),i.removeProperty("GrowToHeight"),i.removeProperty("ResetPageNumber"),i.removeProperty("StartNewPage"),i.removeProperty("StartNewPageIfLessThan"),i.removeProperty("PrintAtBottom"),i.removeProperty("PrintOnAllPages"),i.removeProperty("PrintIfEmpty"),i.removeProperty("PrintOnEvenOddPages"),i.removeProperty("PrintOn"),i.removeProperty("DockStyle"),i.removeProperty("MinSize"),i.removeProperty("MaxSize"),i.removeProperty("MaxHeight"),i.removeProperty("MinHeight"),i.addPropertyNumber("MinWidth",this.minWidth,0),i.addPropertyNumber("MaxWidth",this.maxWidth,0),i},s.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"MinWidth":this.minWidth=n.value.toNumber();break;case"MaxWidth":this.maxWidth=n.value.toNumber();break}}},Object.defineProperty(s.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossHeaderBand},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"helpUrl",{get:function(){return"user-manual/report_internals_bands_band_types_cross_bands.htm"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"growToHeight",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"resetPageNumber",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPage",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startNewPageIfLessThan",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printAtBottom",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"printOnAllPages",{get:function(){return!0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedCategory",{get:function(){return a.get("Report","CrossBands")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("Components","StiCrossHeaderBand")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isCross",{get:function(){return!0},enumerable:!0,configurable:!0}),s.prototype.getDockStyle=function(){return i.StiDockStyle.Left},s.prototype.setDockStyle=function(t){},Object.defineProperty(s.prototype,"minWidth",{get:function(){return this.minSize.width},set:function(t){this.minSize.width!=t&&(this.minSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxWidth",{get:function(){return this.maxSize.width},set:function(t){this.maxSize.width!=t&&(this.maxSize=new o(t,0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"defaultClientRectangle",{get:function(){return new n(0,0,30,50)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectRectangle",{get:function(){var t=this.page.unit.convertFromHInches(this.headerSize);return new n(this.left,this.top,this.width,this.height+t)},set:function(t){var e=this.page.unit.convertFromHInches(this.headerSize);this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height-e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"displayRectangle",{get:function(){return this.selectRectangle},set:function(t){this.selectRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"headerSize",{get:function(){return this.report.info.showHeaders?r.alignToMaxGrid(15,this.page.unit.convertToHInches(this.page.gridSize),!0)-4:0},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new i.StiCrossFooterBand},s}(i.StiHeaderBand);i.StiCrossHeaderBand=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.Base.StiJson,n=t.System.Enum,o=t.System.Drawing.ContentAlignment,a=function(){function a(){}return a.prototype.implements=function(){return[i]},a.prototype.saveToJsonObject=function(t){var e=new r;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e},a.prototype.loadFromJsonObject=function(t){},a.loadFromJsonObjectInternal=function(t){var i=null;switch(t.properties().firstOrDefault(function(t){return"Ident"==t.name}).value){case"StiIconSetIndicator":i=new e.StiIconSetIndicator;break;case"StiDataBarIndicator":i=new e.StiDataBarIndicator;break}return i.loadFromJsonObject(t),i},a.loadFromXml=function(i){var r=i.split(",");if("DataBar"==r[0])return new e.StiDataBarIndicator(n.parse(e.StiBrushType,t.System.Text.XMLConvert.decodeName(r[1])),t.System.Text.StiReportObjectStringConverter.convertStringToColor(r[2]),t.System.Text.StiReportObjectStringConverter.convertStringToColor(r[3]),"true"==r[4].toLower(),t.System.Text.StiReportObjectStringConverter.convertStringToColor(r[5]),t.System.Text.StiReportObjectStringConverter.convertStringToColor(r[6]),n.parse(e.StiDataBarDirection,t.System.Text.XMLConvert.decodeName(r[7])),r[8].toNumber(),r[9].toNumber(),r[10].toNumber());if("IconSet"==r[0])return new e.StiIconSetIndicator(n.parse(e.StiIcon,t.System.Text.XMLConvert.decodeName(r[1])),n.parse(o,t.System.Text.XMLConvert.decodeName(r[2])));return null},a}();e.StiIndicator=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.Base.StiJsonReportObjectHelper,o=t.System.Enum,a=t.Report.Components.StiBrushType,s=function(t){function s(r,n,o,s,l,u,c,p,h,g){void 0===r&&(r=a.Gradient),void 0===n&&(n=i.green),void 0===o&&(o=i.red),void 0===s&&(s=!1),void 0===l&&(l=i.darkGreen),void 0===u&&(u=i.darkRed),void 0===c&&(c=e.StiDataBarDirection.Default),void 0===p&&(p=0),void 0===h&&(h=0),void 0===g&&(g=100);var m=t.call(this)||this;return m._brushType=a.Gradient,m._positiveColor=i.green,m._negativeColor=i.red,m._positiveBorderColor=i.darkGreen,m._negativeBorderColor=i.darkRed,m._showBorder=!1,m._value=0,m._minimum=0,m._maximum=100,m._direction=e.StiDataBarDirection.Default,m.brushType=r,m.positiveColor=n,m.negativeColor=o,m.showBorder=s,m.positiveBorderColor=l,m.negativeBorderColor=u,m.direction=c,m.value=p,m.minimum=h,m.maximum=g,m}return __extends(s,t),s.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiDataBarIndicator,r])},s.prototype.saveToJsonObject=function(r){var o=t.prototype.saveToJsonObject.call(this,r);return o.addPropertyEnum("BrushType",a,this.brushType,a.Gradient),o.addPropertyStringNullOfEmpty("PositiveColor",n.Serialize.jColor(this.positiveColor,i.green)),o.addPropertyStringNullOfEmpty("NegativeColor",n.Serialize.jColor(this.negativeColor,i.red)),o.addPropertyStringNullOfEmpty("PositiveBorderColor",n.Serialize.jColor(this.positiveBorderColor,i.darkGreen)),o.addPropertyStringNullOfEmpty("NegativeBorderColor",n.Serialize.jColor(this.negativeBorderColor,i.darkRed)),o.addPropertyBool("ShowBorder",this.showBorder),o.addPropertyNumber("Value",this.value,0),o.addPropertyNumber("Minimum",this.minimum,0),o.addPropertyNumber("Maximum",this.maximum,100),o.addPropertyEnum("Direction",e.StiDataBarDirection,this.direction,e.StiDataBarDirection.Default),o},s.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var s=r[i];switch(s.name){case"BrushType":this._brushType=o.parse(a,s.value);break;case"PositiveColor":this._positiveColor=n.Deserialize.color(s.value);break;case"NegativeColor":this._negativeColor=n.Deserialize.color(s.value);break;case"PositiveBorderColor":this._positiveBorderColor=n.Deserialize.color(s.value);break;case"NegativeBorderColor":this._negativeBorderColor=n.Deserialize.color(s.value);break;case"ShowBorder":this._showBorder=s.value.toBoolean();break;case"Value":this._value=s.value.toNumber();break;case"Minimum":this._minimum=s.value.toNumber();break;case"Maximum":this._maximum=s.value.toNumber();break;case"Direction":this._direction=o.parse(e.StiDataBarDirection,s.value);break}}},Object.defineProperty(s.prototype,"brushType",{get:function(){return this._brushType},set:function(t){this._brushType=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"positiveColor",{get:function(){return this._positiveColor},set:function(t){this._positiveColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"negativeColor",{get:function(){return this._negativeColor},set:function(t){this._negativeColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"positiveBorderColor",{get:function(){return this._positiveBorderColor},set:function(t){this._positiveBorderColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"negativeBorderColor",{get:function(){return this._negativeBorderColor},set:function(t){this._negativeBorderColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"showBorder",{get:function(){return this._showBorder},set:function(t){this._showBorder=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"minimum",{get:function(){return this._minimum},set:function(t){this._minimum=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maximum",{get:function(){return this._maximum},set:function(t){this._maximum=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),s}(e.StiIndicator);e.StiDataBarIndicator=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiIcon,r=t.System.Enum,n=function(){function t(){}return t.getIconSet=function(t){switch(t){case e.StiIconSet.ArrowsColored3:return[i.ArrowUpGreen,i.ArrowRightYellow,i.ArrowDownRed];case e.StiIconSet.ArrowsColored4:return[i.ArrowUpGreen,i.ArrowRightUpYellow,i.ArrowRightDownYellow,i.ArrowDownRed];case e.StiIconSet.ArrowsColored5:return[i.ArrowUpGreen,i.ArrowRightUpYellow,i.ArrowRightYellow,i.ArrowRightDownYellow,i.ArrowDownRed];case e.StiIconSet.ArrowsGray3:return[i.ArrowUpGray,i.ArrowRightGray,i.ArrowDownGray];case e.StiIconSet.ArrowsGray4:return[i.ArrowUpGray,i.ArrowRightUpGray,i.ArrowRightDownGray,i.ArrowDownGray];case e.StiIconSet.ArrowsGray5:return[i.ArrowUpGray,i.ArrowRightUpGray,i.ArrowRightGray,i.ArrowRightDownGray,i.ArrowDownGray];case e.StiIconSet.Flags3:return[i.FlagGreen,i.FlagYellow,i.FlagRed];case e.StiIconSet.Latin4:return[i.Latin1,i.Latin2,i.Latin3,i.Latin4];case e.StiIconSet.Quarters5:return[i.QuarterFull,i.QuarterThreeFourth,i.QuarterHalf,i.QuarterQuarter,i.QuarterNone];case e.StiIconSet.QuartersGreen5:return[i.QuarterFullGreen,i.QuarterThreeFourthGreen,i.QuarterHalfGreen,i.QuarterQuarterGreen,i.QuarterNoneGreen];case e.StiIconSet.QuartersRed5:return[i.QuarterFullRed,i.QuarterThreeFourthRed,i.QuarterHalfRed,i.QuarterQuarterRed,i.QuarterNoneRed];case e.StiIconSet.Ratings3:return[i.Rating4,i.Rating2,i.Rating0];case e.StiIconSet.Ratings4:return[i.Rating4,i.Rating3,i.Rating2,i.Rating1];case e.StiIconSet.Ratings5:return[i.Rating4,i.Rating3,i.Rating2,i.Rating1,i.Rating0];case e.StiIconSet.RedToBlack4:return[i.FromRedToBlackRed,i.FromRedToBlackPink,i.FromRedToBlackGray,i.QuarterFull];case e.StiIconSet.Signs3:return[i.CircleGreen,i.TriangleYellow,i.RhombRed];case e.StiIconSet.Squares5:return[i.Square0,i.Square1,i.Square2,i.Square3,i.Square4];case e.StiIconSet.Stars3:return[i.StarFull,i.StarHalf,i.StarNone];case e.StiIconSet.Stars5:return[i.StarFull,i.StarThreeFourth,i.StarHalf,i.StarQuarter,i.StarNone];case e.StiIconSet.SymbolsCircled3:return[i.CircleCheckGreen,i.CircleExclamationYellow,i.CircleCrossRed];case e.StiIconSet.SymbolsUncircled3:return[i.CheckGreen,i.ExclamationYellow,i.CrossRed];case e.StiIconSet.TrafficLights4:return[i.CircleGreen,i.CircleYellow,i.CircleRed,i.CircleBlack];case e.StiIconSet.TrafficLightsRimmed3:return[i.LightsGreen,i.LightsYellow,i.LightsRed];case e.StiIconSet.TrafficLightsUnrimmed3:return[i.CircleGreen,i.CircleYellow,i.CircleRed];case e.StiIconSet.Triangles3:return[i.TriangleGreen,i.MinusYellow,i.TriangleRed];case e.StiIconSet.Full:return[i.ArrowUpGreen,i.ArrowRightYellow,i.ArrowDownRed,i.ArrowUpGray,i.ArrowRightGray,i.ArrowDownGray,i.ArrowRightUpYellow,i.ArrowRightDownYellow,i.ArrowRightUpGray,i.ArrowRightDownGray,i.TriangleGreen,i.MinusYellow,i.TriangleRed,i.FlagGreen,i.FlagYellow,i.FlagRed,i.Latin1,i.Latin2,i.Latin3,i.Latin4,i.CheckGreen,i.ExclamationYellow,i.CrossRed,i.CircleCheckGreen,i.CircleExclamationYellow,i.CircleCrossRed,i.CircleGreen,i.CircleYellow,i.CircleRed,i.CircleBlack,i.TriangleYellow,i.RhombRed,i.FromRedToBlackRed,i.FromRedToBlackPink,i.FromRedToBlackGray,i.LightsGreen,i.LightsYellow,i.LightsRed,i.QuarterFull,i.QuarterThreeFourth,i.QuarterHalf,i.QuarterQuarter,i.QuarterNone,i.QuarterFullGreen,i.QuarterThreeFourthGreen,i.QuarterHalfGreen,i.QuarterQuarterGreen,i.QuarterNoneGreen,i.QuarterFullRed,i.QuarterThreeFourthRed,i.QuarterHalfRed,i.QuarterQuarterRed,i.QuarterNoneRed,i.Rating0,i.Rating1,i.Rating2,i.Rating3,i.Rating4,i.Square0,i.Square1,i.Square2,i.Square3,i.Square4,i.StarFull,i.StarThreeFourth,i.StarHalf,i.StarQuarter,i.StarNone];default:return null}},t.getIcons=function(t){for(var e=this.getIconSet(t),i=Array.create(String,e.length),r=0,n=0,o=e;n<o.length;n++){var a=o[n];i[r]=this.getIcon(a),r++}return i},t.getIcon=function(t){if(t==i.None)return null;return this.getIcon2(r.getName(i,t))},t.getIcon2=function(t){switch(t){case"ArrowDownGray":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAN1JREFUeNqs1NEJhDAMAND0cBJBhKIUPwR/BF3MEVypC+gKuojauwiReqZV7hoIlFofaU0VxhgIERE32batU9dai8cQRtd1sK7rKfu+d1b0cj34RjB94YS2bTvyL8iuhLCfKwqyNbuSYFt7AkVc3+R5zkJJklzWUl8J6mxcoJSCpmlgWZbjZRrbc+M4wjzPp+YU9hVBLMsyqOuaBXDMIReIMCklVFXFVjJNE3tNBHdpEUvTFMqyPFXiQpwQYXi4RVHAMAxexAsRFsfxLbIHQr78fEVztwZThPqxvQUYAMkFQzOhj4qDAAAAAElFTkSuQmCC";case"ArrowDownRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAONJREFUeNpi/P//PwM1AAs2wYkaMjhNz7/xhJFog0Ags2Uiw/8/fxgYQPj3HyD7N8PM3gacLmLCJYFuCIjGB3AahGHI799kGoRmyH9yDcIwhBIXIRsCDjPyDEIzhICLWLClGy1tQ0xDgFhTXhVDLSxdMcJSNkiBlq4xg62NC1ZD4OEE9PLRG+cYrj97iJI4GZGzCNgwTX0GGzM7kgzBMAhumKo2g7WhJdGGYDUIbpiiOoOVtjFRhuA0CGaYpqwyg7WqHkFD8BoEN0xKnqAhkBQMNAgfnqAu/Z+QGhBmpFbBBhBgAD+BHSrfOF/gAAAAAElFTkSuQmCC";case"ArrowRightDownGray":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQ1JREFUeNq0lEkORUAQhqt5NxALK7FhZUMskBA2TuGshhtwAgunENIv1UlLax3eWEkFpX35a0IopfAL0+RAXde0KAr6FQghhmGA53nwLuwhQkzThCiKYF1XFkNY0zTkZUUIsSwL0jQFXdeZJ0lyq0x8x0DzPMOyLDtEhLmuq4SVZUlPilD+MAzQti1omnYLw3vbttU1Qhg/nOc58LHAaxzHh1QcxwHf92GapjNIhmVZxiCoisN4I7ZtY345RzzNrusOKcop4/MliMPGcYS+708NEP0WJMJkJaI6ZbFVRgjZPxCLr9rPx9WwBUFwAInFfwmEkDAMoaoq1h0ZoFJF5MC7y8p3kfztf/SpPQUYAMw4nSlad+0eAAAAAElFTkSuQmCC";case"ArrowRightDownYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQVJREFUeNpi/P//PwM1ABO6wJ4a8/83i1j+U2QQyBB9zX8MAjoaDKQaxoJiiDYrg4ilBQPDvx9gMZBh6n1/GIl2EdgQHV4GEVsPoAgHGIs5OBB0GbIc2CDZb2cZ/v36zcDAyAE3iJBhN4tZ/2O4COT8DxeOMrzau5kow0BsAU0J7GEEMgymWMzZFyUaQIYhe0VAS45BzFKF4cO155gGEWOYmB0wIv7/gETGv5/YXUSMYWDwD1vqw2IQuYYx4YpaWASAAx0tAuBihFwEB4xAe5jY8XqJoEEgrwmauCEMImAYCy5DBIy9GMQ8koCafzH8ZyIc2IzoxQipmRWWFxlpVh6RCwACDADTG3TsSFHrCwAAAABJRU5ErkJggg==";case"ArrowRightGray":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAL9JREFUeNrMlE8OxBAYxT+TuUixs2liYWHlZD2aE+gR6iLFhKTS0k6ZdDEvEcLnl/fiDwohwBN6wUNqBimlwmOOvsG6QIyxS9i7xfYGkVKCcy7Va61RBYqapikVee9TH9u6rtVYCJFqSliOFhf3kBK6n+OcAyHkkCSDyg13bRxHGIYhwypHZy7OXM3zDNZa2OL95MgYc4BEofhEWk6NUprinEEyqPUyYoxhWZYK0n0hryDdoCtIV7T/+0bu9BFgAJkB9COMwS2UAAAAAElFTkSuQmCC";case"ArrowRightUpGray":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQtJREFUeNq0lE+uREAQxqtl4gJiZ+MAWIitPyuX4GyuYcUKK7Fm5xYW6HklaenX3WbG5L1KKh2drp+vPtUIpRT+IogISpLkFrmua6IEMZjv+5CmKWzbBuu6SitmURQnSLt6S9/3UJblUbjv+7HyiXt8aK8kD8MgFfPPH4EwsG1RyW0Q+uS67mVbH4EYJAzD7xUhxPM8iKLopT+i2Y8rCH5evrjrOpim6Thn2zY4jqMGXSnhIWxm8Kw4fxoPieNYaqFt218QNhrzPMsgy7JA13VJiQrCoqoqorxreZ5T0zQhCILDn6ZpYBxHJeTtpUWYYRiwLMstyDm9fGZZRn+8ouL+uyT/9j/6Np4CDAAvBnYmNVluYQAAAABJRU5ErkJggg==";case"ArrowRightUpYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPlJREFUeNpi/P//PwM1AAu6wM0iFpJMVu/7w4jVIJAEyDABYy8Gcc8kBoZ/vxj+//8BpH9CMZAN5v9guDWhA7eLkA1jZPzDIOoagdUQMEYCTPic/P7sHtyGEGsQGPz/h9sQYg0Ch5OBNW5D/hNhEMwQMWdf3IYQchHRhoC8jCsd4TPk1YEDDB+u3ACrE9CSYxCzVMFuEDGGwBIfJNH+xvQaKYbAksaH6y8wDXrMZczAxMZKlCFww3p/o4gxwjLtnhrz//rarAwilhYEDcEGGJFzP9gwzX/ACPlOkiGQxAs0CBnvrjb7f6OQ+T+6OCHMSK3yiImBSgAgwAA/ZCfMBhHM+wAAAABJRU5ErkJggg==";case"ArrowRightYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAOFJREFUeNpi/P//PwM1ABMxim4WsfynikHEGEa0QQIG1ngNI9ogMWdfBgF9U5yGsRDjbAF9CwaG/z8YxBydGRj+/QSrV+/7w4hhEAio124GKv4JVPiL4T9QE0gDBP8AGwKmgVjM3grI/4VhGMJrRBgCN8zWgEFASxHFJwiDiDQEJiZmrcEgoCkNNwxuECmGgNS8OnKJ4cP1pwww7yG5iHxDQIARlEUIxpq2CoOYjQ5OQ6Be+k8Q3yhk/v/vms//F7Pk/oPY2NQQnSBxuoTUlI3PEJIMwmcIPLDpVh4RAwACDAAjBPgn9bL/8gAAAABJRU5ErkJggg==";case"ArrowUpGray":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANBJREFUeNq81FsKhCAUBuCjtBUJIoh6EILEglqry/CtRbQWy+EEhWOZM1NMcJDMPn4vSKy18MRDYwO6rrO3IUTKsvwIozGk73soiiKK0RBSVRUMwwDLskDbtpDn+SVGQwgmmed5LcSEEJBlWRCjV0k2aKu6riFN01OMniFuEh/jnANj7IARPEd+Jy6ulHL90Rizt+M4wjRNb0m01gTbxH1x0zVNc0iDiD82uv0+gvXTOfIRXK9HoNuJ3J27nQixv00tCX1QSn11H5GnLraXAAMACjzifAPsf9sAAAAASUVORK5CYII=";case"ArrowUpGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANRJREFUeNpi/P//PwM1ABMhBWrxMv8pNghkiLKOAVGGMREyRN/GkUFBS5egYUyEDPnz/y+Dlo0dg6ymNl7DmAgZAsJ///1lULOyYpDS0MBpGBMxhoDZQFrJ3JxBXF0Nq2FMxBoCY8uaGjOIqCpjGMYISkfognJaOgyaVjYYhtw9cZLh9a3bKC65tfAJI4hmQeYgu07V0hLFEBAbZAi6WoLRj24IiCYrHaEbAuKTZRC6IWS7CN0Q8g1CM4Rsr6Eb8peAi1hwSVxevpak8oiRWgUbQIABALWj3x6/E6sXAAAAAElFTkSuQmCC";case"CheckGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaNJREFUeNpi/P//PwM1ABMDlQALiDBI1iBFTy+ULgYRF+beQBhEAmgXUpYp+gcMjQ/3nsANI9WgChEVmQpRHRWGf8AQ+fX1e9G3l293A8V3kBJGHkDcIqapyMDMysLw+uodBqAhy2CGEGuQIhAvVbUzYGbj4mB4ff0+w7vbj84CxVJIiTVmkCEKRqpCgjKiDB8ev2R4eeXua6CYPxB/x2VQFBBfAuJwJLFSGQ1ZS2ktBYZ/f/8xvLkLDuAIIH6KKx0JAfFkF39TXVlliRVA9mEgdgXiRlltBbCCJxduM3x5+a4PyNyHMx0BwQRdEyUhMSkhBiEJQQYpJQmbe9ce75JWl2Xg4OZgeHTjCcOLm4+uAdVV4k2QoNC/fOae/e/f/+S0jJUZpBTEGETlxBh+/WNg+PbtF8PdU9d/Qb30i1AWAUWlxo2LD7pPH7zK8Ob5e7iCB5fugahuIL5MMItAASgWyh7ffXEWiOfo2WrzsHFzMjy5/ugOULyJnEy7EogdLh2++u7xjccM0HD5RW7uByU455cPXm4F0muISfqMg648AggwAJuyjeLhsHEtAAAAAElFTkSuQmCC";case"CircleBlack":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUhJREFUeNqsk0Fqg0AUhl+CghtBEV24EZceIAHXzbo5SS7QA/QCOUldpxdIlp4g4EKJiAE3EqJ9f5hQR9o6UAd+5qEz38y8979F3/c0x9DGH3Rdd3l6ZW1YK1bAOrNOrAMrud1ul/G+xfBGDHnhaReG4dZ1XbIsiwzDoKZpqKoqKsuSsiz74DV7hn3+CBKQ9ziO177vU9d1D93vdynO85zSND3y2rchbDl4zm4KAjmOQ1EUrbFe7PsGISd4zhTkGdu2TZ7nbUUuJdAGOVGBPGPTNEkURAKtkFhVCGYUQVRVAgX4oQqBNO3hnGAMOqPEqhDEbduS8JcEOsEnqhAIBwuTSqADzKYKQSxAhzEogWNhNhXI9Xqluq7h8EQCid7Zw7FFUUxC+NCjaJPLn70Gs8EnqCSqg8TiKZC4ye+9Nmv3/2csaabxJcAAcxjHnyL9wHkAAAAASUVORK5CYII=";case"CircleCheckGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnFJREFUeNqsk11Lk2EYx//bsxdns+l61t5sAyeo1IFBc5KNJBMhyAVBQSfRQYd+gT5AX6CjAqEd+AEyCIrZm1tao6MwJ6lzM63N9qJ70af2PE/XPR5kz9KjdsOfG27u+8d1Xf//rZFlGa1YuuaD/rseG22TpKskP8lLSpHipAhpNhFO7zS/0zRWRJAx2qa8/WdDvLMbFp6Hob0dldIuijtZ/Nr+jh9rq8/oziOCzR0JUiAPA+PXhuzeHkiSCFGWYDS2oSaLdYl0trm8hEQs9onuPmiEaRvamWqGsL0RIlQrcJhtGAlODLH7yjvVjCZZO80Q9ljDIGINxfUN9Nv7MBoIQa/TI5FaDuXS6ef0dvqwIjZYNpNmSF0E2UumcbFnGPcv3cOIbxidJgvaeSsUQ1QV+dlgjW0mVIoFSATTmU3QEGgvmUKwN4g7/lvgtFq8WHqFuZW3MJ40Q3FVBfLW3Snkca6jB8yA2PoC9KetGHAM4PaFm3V4+MMMYsmP2LcawBkNUKKhAqXIYp98IGDMPwqXxQmbmce71SgmAuPQaTk8iT5FlOCSsxM1jQShUoWSLxUoTjnx8W433qy8x5W+y7gxeB3nPYOwnujCy68RqmQRkrvr0MXq7i6UkKJx2BEWNo7ai60t4PH8NOKpz/Baz6B0UMLrb/MQbR2qKFRzeShJV1U0yxJrcdhDXS4XNjKbCC/OoFAtoiSUsVXcQo2qkfIlyAySyaK8nWEJnz022b2BwJC1z4c/ggDpZwF6jkNF2MfvbgvkXAllgmS/JP5J9pF/7ZTHE2I5YRYzd9hg2UxYO0olx/+1lv7+/1latGj9FWAA6TNb6dqAJ/YAAAAASUVORK5CYII=";case"CircleCrossRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnBJREFUeNqsk99PUmEYx7+IEgkxAcGIBJFySRetlV61thbppgXp1lVbs9atF932B3TbRRdtXXTR1tpaa0p3hs7W1loOqxvJViiCoUd+qYAThNPzHA/FMb2Kd3v2nHP2ns/7PN/n+6pEUUQ9VuPeDw89DgslH4WXoofCSRGlmKEIUgTuzS2t7f1PVVsRQS5TGu0+c95/vMMNa9sx6HUG5LJpCIk44ksRhOe+jtOeRwSb3BckQx70D9/sdXd5gEoFYrlCuQzImd8jP8KYeBv4RHvv18IaatoZZUizWoVMMQ9hNa6ArMYXkRWL0Gs06Ls02Mv75f/+glgTbocrUTfrYBq4htbhGxBWYhIkEZmHcWAQllsj0DgdcLW7cMrd7Ze1VIC8rAm3s5NKITcbgrazE2bfEJLrKRi9fTBcuIjtxQUUY1RpuQw76ScPRDG1HhaWNbCd9GA5OIGdbBamqz5YR+5AfcSA9ekpZMbHYG21SSBLixnyVBUVOXk6VU3sXaeR+/iBqktCY6OTVSpsTE3+gYhUuV57GLI1FKAoj7gqbIImY/IP4VCHC1vfwhBLJRh9fgjJXxKEYbnNTcj+UoBm2CcSZOE7TL7raLnSj/yXWaw+eYzM2Gvozp6D9fZdJDOCdOBaWoBsUgUoyGZjjVTURqPRhPznEJIvnsNqtmHj3TTSr16iUiiQqmrpwLiQgOx0hdgBdmy73enXbhUgPHsKbJfQZnNIbRx1nsDKGzJ0U5MEi2i0mI/9ZIcHDnQ2m419woCqsLvPu/pFlqMIht7/4+x97xqbjX3CI+bpsLCsCbcjV3LwXavr7f+f1YA6rd8CDACvEz/0lnIIPQAAAABJRU5ErkJggg==";case"CircleExclamationYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAihJREFUeNqsk09rE1EUxU9mnDRJkzChthiIjWiglAiC0AquhIauxIJu+xWK4LIfwKUbEUHcu3FjXEhLBaFuNKIVKY2BSkLT1ESatJmaOH8y473xTZyp7coMHN4w777fvHfueQHHcTCM58zxD5v3guM03CLlSDOkNKlCKpDWSPnsA+PH8XUB744IMkfDUuLKjYXRC9MIJyehxFQYhw382vuGo3IRB1/evaCahwR7fSJIQO6fv313Nj51FZ2mg87nJ5DVDOxOHcrYNGIXk2iXNlB9+ew91S57YZLnOEsuBI4FY3cdsWvLSMw/hTr3CGZjg76biGemkLp5Z5brxbq/IPaEj+NCWNb+VwST1/8URc7B1jUxR7BLGajZywvCSx8ox564EIckRcZhtYr9SbvbQEAZ6UNcWDSVgmiIDzTDxroQHpWzWXRLz/uTenkF0mhyAOExNDEG0VUfKM3dcSGsaCoGs/6J3m3ou2+RyGY8O6IfRUMQ0fCBKtxieEC8yDZaaL5ahNXc8kH43WwfQuTLBypwTryFRzUdcnySIORTQEZrs+Q7WrdRhwipD7TGYfMWmvtbGEnPY2LxI9TcY/Tae4M5tuDnTg0i6T5QnhPLYXNhcpA8+l4gnz5A33kDKRgZQLTtMg6K25zw/KnJ5rBxTrSKhp5WhaXVIClhan+YcmBADvVQXV3/J9kn3jUOG+eEW8zdYWPZEz6O2Mnpd22ot/9/HglDen4LMADOWEcoNWNH9gAAAABJRU5ErkJggg==";case"CircleGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWdJREFUeNqsk0FKw1AQhqdVWghiUSPaIg2Ii4LrNgewblzYI3iCXsADeIGewCPYdV120y7dZKFgg1SaWDHYBlwkcX4dsa+oeWAe/MyQvPfx3sw/uSRJKIu1uvyhdlbd5nDKarLqLIs1Yg1ZPVbXuXT95XO5xRsx5IhD26odtszyHpVMkwqGQfPXgF58j57GD/R4d3vFezoMu/4RJJAL+/iksWPtUxxHFCXxZxQhn7j35PT7A957vgjLLzynnQZB3KhU6MC2G9gv575BqAmekwb5UBRRqbxLW9VqS2qpgJqoiQ7kKzfMTZKGKKA6CqsLgYrrayRdVUAWuqMLgVaKBRJrKKARWqwLwf+3eUjiLwU0hE90IVEcUxgEJCZVQD2YTReCPJw+kzhdAXXhWJhNBzKbeDQbT+DwrgKS2enAsb7rpkK8G2cgY+L/OWswG3yCFqM7KCxqgufITX6ftUyn/z8rTxmtdwEGACHEx5NTsUeYAAAAAElFTkSuQmCC";case"CircleRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWxJREFUeNqsk79Lw0AUx1+Lg2IRQargj9YaENvFxXYXiw6CBVf/hg6u/gGuDv1LzKhxcmtxcGlRNJAaKTRQhHZNzveVB+aKmgNz8OXlkrvP5d77voxSitIYM9MvriqFPIcTVp1VZRVZHqvDclj2ebcfTO/LxP+IIQccmuXdvcb6pkXLK6uUm1+gyceIhgOf/L5Lve7jNa9pMezuR5BALo9Oz2rWdoUoikiFEceQSCLm7kuPbm7tNq+9iMOyses0kyAUhrRVsOhw/7iG9bLvG4Sc4DpJkC/x99JGiXasckNyqYHqyIkJRMnzGudPCqKBqkisKQTKLy6RVFUDFVEdU4jieW52jsQaGshDiU0hiJPxmMRfGqgDn5hCcGAwGpKYVAM5MJspBAf6wwGJ0zWQDcfCbCYQ992jp7dXONzWQNI7LTjWdZ8TIc7DfVvaJPiz12A2+AQlRnWQWOQE15E/+b3XUu3+/4wspTQ+BRgAOf98T7zyo24AAAAASUVORK5CYII=";case"CircleYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWZJREFUeNqsk0FLQkEUha+SYWRiREHwyiBBwiAIdB3kMhLqd0jQsh/Qso0/onWvXdiqVboJJBDDUJIi3eirKDSY7olrvZHqDfQGDvfxmPmYOffcgFKK/Fhjoz+u98dnuWyzsqw0K85qssqsIstOHfU7o+cC7hsxZJNLfnptIze5tEIT84sUmopRv9emt4dbem5UqVu5POE9BYad/wgSyOHCzl4mmlwnUu+fUlKHcmpX1Do9LvHeAzcs6HpO3gtCakDRRJKsrd0M9su5bxA8wXO8IF+w5QTFUqs58VIDZeGJCWRYI5ZF0hANlIaxphDU8NwMSVc1UBzdMYVAoUiYJBoaqIkWm0LwPXB6JPnSQGXkxBSC+tp+JAmpBioibKYQWPByd0+SdA1kI7EImwnkqd6gbrWOhNsaSGangMQ6NxVPSOvsoiRj0vlz1hA25AQtRndgLDzBc+Qmv8+ar9P/nxUkn9aHAAMA0bFpX/he+/QAAAAASUVORK5CYII=";case"CrossRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAktJREFUeNqs1EtoE0EYAOB/9jW7qQoeDAhW6qHgQaoogkKFglpLLG2hVdOmRVpEMYciInjx6FnEQ9WbRC3W4qO+KCSmSHOoCILE0lIqCjm0iErSbh6Tndl1dsmWmF0RIT8MOzM78zH7z88iy7KgHiFAnUJyOzf277YfQTXQ8KZUyId4//tf9jRijN8SQlrtNZc/LnpOFORttb379AH7WRnXRhNHFjrbOppr12xACsafIhcuocadu2Dk4hXkgzWpWE33h/oatm3ZCt1H2pGq4IQHYpTGXj2O5Ug+DxrGMHxutBpzkHCod5MqyVDUdXiRipulMjnmhRi7qq/l7k7E7qwV8zposgLDg+cdrBaJTT8x+W1vr84jcq+/kmxACF3XtMBouHdoM5YksAwDEGNgUeog96efGqZl7nARv2Q7weFrxWLh1vjkPR34ZhehpZIH+WcdcWzMMi3BhmwEDAqSZZ8WrP8pyKAoil/7T/YFXMQFI60nFFEQMn6lUQsFeY5WhrrCipvYR4mp3M/sLwfTBBEiB9t8MaEWOdszILjIePx5MauvH5+am8m8X0ozG1M5NrD3sCKiP7ENiF/xTM/RTgchhQJMJl+vG5Tu468+lKnRsriSSaeW5wkvONCQCF3NLQoWpZQHImXyLDn3LscIgZez8WzJILf59FLlNR+XD335sTqbXJ7PM44lvi3kCKOnfOtIlqQxWZQHDWo8MBiN+t0OP8WELIgdHHlomCzq1pFUvYh/SpS3m1Un8QQHzvC2h3c/V8+jev3YfgswADMCLXXUtkcxAAAAAElFTkSuQmCC";case"ExclamationYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAM1JREFUeNpi/P//PwM1AAs+yVfZrDZAqgWIFYG4T2zq74k4FYNchAu/zGK58f3Usv9/Xtz8D2S/wqeWiYCL2ViVLGHsd2R7DQie/vvwVPH/zy8g9n1KDHr0990jhv8/PlJs0NPfzy8z/P/6nnKD/jy/CjToHeVe+/P6NgPDN7DX7lAW2J9eMjD+/A42lBKD7jN+/fQUSHMCEyPe6GekVhZhYqASIJTXVgCpcCh3PdB7QeS6yIbfi4cBhIHAg5LAnv5x25dAmIuGVmADBBgANf6AfKLR0tsAAAAASUVORK5CYII=";case"FlagGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAblJREFUeNqslDtIA0EQhueinkpOTRSTiA+EWAnBiIUgWlgINgoK4gO0tLO0UhuNlaVYiJVWVhai2AlaiIhPjIIgaJFo3rlcHpf3+R+cEIMhiXGOj1lmd/+dHWaPkSSJ/sPKvwdTK+NmuBlgAvI4Ds7A6v7awWs+IdX3IBFLbjrpY1EyxIa7B42GkYn+tnaTbhZTTzhkvmCh091zu+vST96UhwIxgVQVDJnMRqrrVrFpLr4NsaGChHhXwOJ4dvsSvjS5eA8JkRCpy9XUYtBTqkGUl+xBrCOvEIpuFYPiS+KNyCP4yCv4KZVOk75GR5yOJak5bMCyO4hZQE9OIdnEYHTr49ZpE/1Jcge8FBZF0lZrqJFrpKg2SM0DLNfaWbek1rDXEDvKKQQ7dr67bZWfHDmsAj3ev1KIj1JTrY7YMpY8fIAkfGE+bsfahcyNTHYfMQyzDmebXB67gh9VMCvT90pLbKAl7D82ykKZwLrAYXY8H9lXk4MPcBFk1ldMZ6tyxE/AdFFv5Lc0YQ3gHNT/+WqKuBfuBkyUlJGSVS+4KCkjxa5BFYreW0qx5VNScDtgrhAh5r9+bF8CDADfci8waj1snwAAAABJRU5ErkJggg==";case"FlagRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAbFJREFUeNqslNsrg3EYx7/vEm/DnFbkkFpulMNKUrh1607iQvkDlPuhzJRyQcmF041bdyJXkmOSY9w4jJlNo9m8NlM7+r56J7QZ5qlPz6/n/b3f9/v8Dq8QiUTwH5ESHYwaTXqmdlJJ5LGfrBJjd1/PRSIhIepoyNC7Xna811iQJqK4sBRifhFuvI/YFEVZsItik98JqaKDsZlp+5zTjSzLBVQuJ8SAH1VparRenaeWSO4JOm76kdDtncO0bbW5rrNz4X98QODZgxDdaUU1Khx2ecosxcoSCrHFE+lJOl1XayjkQkByIxQOIZKjhc7nRYPdWsBpBxQzkZq4QnJIHs/4ssVqu9VkvbkKvvgQTs8ENDnQW83odN5n1EIwaIFdii3EFWIsnl2abRvl1Vgp1WE/6Me9ilPoCsxe7xOtA05A7rUr5q69FwRhkMk20j+ww9ysoFceHypHYpi7aP/0oiz0EUY1mf9aT8TX1uTiEZOPzup/c7JVcepLpO1XdySWTUYeWSO5f25NEX9g2iMtSTlSXNWRraQcKbFLRC56XTKLLX8lxDRFOn4iJPzXj+1VgAEAH8EvI11TK0kAAAAASUVORK5CYII=";case"FlagYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAbZJREFUeNpi/P//PwM1AAuMMWfWZAMgFQXEukAMYv8C4oNA3JSSlnuHkEGMMBdNntR92Fxyh42oCD8Dn7gZwx9WdYanj64wnLsrADIwF2jYLHwGMcEYXd0Tns5Y/4NBhusMAxfjIwZu9t8MasoSDD6aG9mkeG7NBLrYlSiDnjx51nLg+NN3t1+IMTD9esjA+PcNw38WMQYBQQkGDcGjICWLgIapEDQI6MUr7z98uLnxlCwD0+/HDIy/n4HF/3JoMcgKvWIwldwlAeSeBxrWAsTGOA0CgQ8fPk7duPfJk4dvBIGuegR01SeG/2wKDP/Y1Bh0BLcyhJsf59FX/VctxPf/DNCwLTgNAoKtN67ferL+ogvD9osqDFdvv2F4/4Wd4R+HDsN/Ji6Gb5+egtzO8O4TI4iRizXW4AKMjK2gIJs9c9IpIO0HxQZQ6QvQJNENjMWnKBpBBiFjINAH4k3o4oQwutdAgheB1Degy6xISdlMOMS3A3EkSXkEmzOBQBiIDwGxENlegxr+FkidBeJQilwEdZU5EB+jyEVQcAaIOYCBbk5JYINs+QukZgNxHDEGMVKrYAMIMAANgSkwr5PF1QAAAABJRU5ErkJggg==";case"FromRedToBlackGray":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQFJREFUeNqskzEOgkAQRQeQAB2NNafAC0itLZfgAh7AC3AJWqnxAnIKahs6IITg/GQSl40GN/KTyRL4+8LO/rHmeaYttNNfFEWx5+XElXDFXBFXw1VzVVxlmqZPfZ+l/hFDjrxkQRCcPc8j13XJcRyaponGcaRhGKjruht7cobdP4IEcg3D8OD7/tcj9H1Pbds++PGiwmzlONkaBMJ3+OCXfW8QeoLjrEFUGPzSywUoQU9MJP5EB8VorInEH+ugCLdjIvFHOqjBFZtI/I0OqpETE4m/1kEVwmYi8Vc6qERiEbZfBJ8kvFyAZHZyJHYNpiQ7V2du+1nbdPr/kU0b6SXAANBmkg+dr/KQAAAAAElFTkSuQmCC";case"FromRedToBlackPink":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQNJREFUeNqsk7EKwkAMhnNV6CI4FF27+QYVnO2sT1IQRx/AUYQ+iZ3rLNg3cOuqOBS6OOiZQMBrENvD+yHk6P33cZcmSmsNLtSXH0773QjTAiPGiDBCjBKjwMgxstlqfZPnlHkjhMwxJWP9Wg5BwwC3fMwPUFArgArzVXkH9KQIO34FMWQ70c9p8OO5d6XgonpnXG5MmGc8J2mDkGiffOTncx8Q1YSeE3QsPPnIz7VsgGKqiY3YH0tQNLDsAvZHEhT6ljdifyhBJf1iG7G/lKCituMA+wsJyivLG7E/l6CMOpaarYvIxx2eNUA8Oyl1bBvM6OzUnDn3s+Z0+v+RB470FmAAb6uGD7csPvsAAAAASUVORK5CYII=";case"FromRedToBlackRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARxJREFUeNpi/P//PwM1AAu6wPEJfaJAyg+IXYDYFIjlgfghEJ8G4j1AvMmyoOg1uj5GZBcBDXEGUrliJ07689+6zcDz+BED+7v3DD+FBBm+yMoxfFRTZXhlYb4RqGYy0LC9KCaBDALhY/29zkB88o2+HshonBgkD1IHUg/T+x8iCzZEFIg3EDIEzbANIH0wg5igDvMDeUf44iWiAhakDqQeGpZgADPIBRQmpACoehd0g0xBAUsKgKo3RTdIHhQ7pACoenl0gx6CopgUAFX/EN2g06B0QgqAqj+NbtAeUGIjBUDV70E3aBMoxb7V1yPKEJA6aArfhGIQNO9MvpUQf4qQYSB5kDpoNnlN9bzGiF6MUCX3UwKYGKgEAAIMAARGyzW+NImdAAAAAElFTkSuQmCC";case"Latin1":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE9JREFUeNpi/P//PwM1AOPQMoiRkRFFEqiWEZdaJny2ADUqIrFD8allIsH1Z6hlEMOoQUPQIBkGAokOJwZJw7CCgsJ/fGoZR2juJwUABBgAdtBRjTJr3HoAAAAASUVORK5CYII=";case"Latin2":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFdJREFUeNpi/P//PwM1AOPQMIiRkRGv6UA9jOhiTDgUKiJrQuOHYtPDRISrFdD4Z8g1iCgwatAgM+gBGl8GVyrFwCBhGFZQUPiPzsemh3GE5X5yAECAAQDrlVERvvylPAAAAABJRU5ErkJggg==";case"Latin3":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFpJREFUeNpi/P//PwM1AOPgNoiRkZEkU4F6GZE5yFgBJAQRxuCHYJGHYyY8Fiqg8c/gk2dioBIYNWiQGPQAjS+DVx45UcESGwgrKCj8J8RH1ss4QnI/JQAgwABSHWh1IkE1yAAAAABJRU5ErkJggg==";case"Latin4":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAM1JREFUeNpi/P//PwM1AOOgM4gBZBDUsP/4MBAoYFMLE2NCMlARiR2KxldEs18aSpvABJhwOPQMiDA1NYXxH6DJS0Lp54QMAgNFRUU/EG1mZoYSkEALzuTk5IBc+gwjjEBhgB4ebW1t5uhiQCAFFTNG0ovfIBANtB05UEFqjKHqpJANYiIUq+jew+otQl7D5j1s3iLGa+jeUwC6BsNb+AyyQRYPCwvzRUqEGK5BMQg5tSooKPxHUQR0AchVgQEBWF0DwozDN/dTzSCAAAMAQQ5HEXoVVCwAAAAASUVORK5CYII=";case"LightsGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAoJJREFUeNqsU81PE0Ecfdtu22VLS1BEIsGkERA/YoIfkJh40pqoiCc9+hcQE/4Bbx706N2z9/oRDdGLMUbTRqJ4MSRIAaWLgMDuzHZndsffLAFpoJ74JbPz28zM2/fe7DOUUtiPMrea0ZEbN7O5fKnVthFGIWQYbc5CUh9CCIFQSgRBAJv2qFCOlp6/eLZ13tCMNAj1peKVIsqVMpjvg3MfjHMwxjaH58GjoXsN6tOekevXtsFiRprJxeFh3Bsfj9H7zw5g6PYges8dwaq/DMdl+POFQ76aw+Lk4rYcI2mW9PQPiKiWK5V48XzxAu4+uIMDLQfBpIf59VmSOA1+SqHvTD9an9j49mYq3ru2ttboUUgecJ+j82gXbt2/ikL7MfS1D+A3cyBkgCVWg0VSuVQ4MdYN57uDpTmnwexEDBRF5IeP45f7YSaSMA0TLaZFfQoJeo/ZK/00Yh0ni4W9by2KgTjsHhMrfBnV9R/ggsETLrFx4AYbqEcKSfqsSbiHeu29gYQU8W2EMoOf7jxCJTGXqkJEAcmrYYVky8hA3gIypoLcFLIbSMoQHgEpN4VfXh3r9VlY9PmQ1jwRwRWKpBpozShkUwZWvbA5I+4Ro6kI9lAWK3VFXkTQxmhPcmkCSUdotwykSdvsp+UmjAIB13NRezuNnksdyJ/OkDzyxDDIcGKTVshnDFjpJBY+1DE58XUXUCxW/6mczNb1/nEF9TJDVw44nFPx3JFNwkqZmJlgePnoY/Os6ewIypAub3UDrx++Q+fTThQGu5G2UwiYxMznBTjVWsPhtra2RiAdQMpOaecmp+rE43+lzzWEdiv9Ojs7f/tmpZnsmf79qAT2qf4KMADo908btDBkcwAAAABJRU5ErkJggg==";case"LightsRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnNJREFUeNqsVE1vElEUPQ8GinwUWrR+p1YTA2hDXGgT11YtlLr2DxhWJv03jfFXoBjizsSdJZomtJoYpS0KxgCF6QzIfHneJNA2wsKkL7nzZvLuO/fcc+8d4TgOTmMpw5e11WwuFJkuhIJBWJYFy7ZdM03zyAwDg8EAQfo4lrlWeF18NbwvJCMJwvfC8oNlfChvotfvo0/T9R40XeeuQzvUuNN6PRgEk+ermZURmMtIMrm/tITn6+suejwSQeZWEk/nZgGvCUfp4y08KP5W0VW1UTrCqxTkNgIKk+pmueweLl6bx8snq7g9fxUMC+vHPuy9KrKmhfydJPLVBrb2aq5vp9M5qZFJTSTl2UgYL1YeIn33HjwLC3DaLcYTcNQunE4bScvERiqBXLuDpqqeENsjH1LU/h/mnLyJxfNnIWIxeK/fgDg3BxEMAT4fPb1w6JdSFGQSiX+q5gLZdJCMHsXCbnSrUYf56SPs6nfYB22AZyAbQTB4FTy+dHl8+Q2WVtN0YMqCXa/DoX72T+pAlvavBuxWExgYwJkwhD9ALSb0kewRWWI2A4FqENohnIC8QGD1wGUpFB/TnHbBoB5OBtI0DSV+ZsjG6ZMVRSY1Vxfh87NHYhDROEQghNKXz+M1MtixOoGK32rYkVGnggzBy0zDE5mBmLkAT/wiRDiGCtm+2dmeoBE7Ve/p6LJ78193sZFOI0UWQjCO3z8CrjD9Z+/fodntjgeSs2NIMbm2dvfZJwfIJFOszhVWbOBaieIXtytoHeufaDR6hCRnLZfN5IQQ8jfwXybvyfvSxPA3IgdXzs7xtp+0JJOx038ay4NTWn8FGAAI2k45EVMz0AAAAABJRU5ErkJggg==";case"LightsYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAndJREFUeNqsk99rE0EQx797l1xqfhgSFVtbKqJobSwUrFRExIcIWmulLwp9ry+C0DcF/wP/A8V/oE8lrdCHCGJEKwmC2L74oyhCKNSWRruby93trrOnDakkPnVgbpe9mc/O7MwwrTX2QiI7m4nx6zcSqf2FZDwOqSQCqaCUgh8ECP6q7/vwPQ9xstEymCgsPJvf8WcmIgOhbeFKPo9KpQLhunAbLrioQwgRKuecVo46nXkEc8lmfOxaExZGZCK5MDqKezMzIf1Y32HcmRxE/mIMuQGO5XcSxZKDx4tbWKvVmukwO1IwSxNk0jGRGBk6dRQLTyfQe7yHwudQ7lcMjXxGbnAdt8aymHwQw4dP1dC21gK1zCeQEoJSyaaTmH+SR9/AMKzkZdIRWF39YJEMYNvo7vUx9ygb2v0rIUjSo7p1F9M3T+NIf5xCToI5PbQSwIqR2pRAmAG6+yVu5090Bgm3juGcBR1sQjVWobZfQ4kV6MY6tP8LoEoygjFm4dK5RPvym9JyLqBtAeV9B7apt+xvIAq0V4XyNwhGIIfuZTFox+oMMiWGCCBFlaL6STfvM3+gAoqm0aA0KTU7BmbFAY+1T+1PRByzRQ+gmxWvQfI1yO0f0PR22vg5UYKnqEm7MLu40R5kulUQaO7lF7yq0ENHWfiHRehNnAhpgiBZaKRQeiMx92KlA4haX9RFeDD1cBWltwdgORkCZmBFDxHxIEGSIWTqfrnzrJnZ8T0/PNiscVy9W0b+/EmcPZOmSjp4vyJQXt7C86WPu5zT6fRukBlAmp1Cq1GRnIpL/59447draHem38xOa9t3EhNJ2+nfC7GwR/JbgAEAuLY1t9ReJTUAAAAASUVORK5CYII=";case"MinusYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJdJREFUeNpi/P//PwM1ABMDlcCoQXQ0iAVE3ChkITsNaPT/YYQbBALqZb0MDP9+Mvz/95WB8e8Xhv9/PzEw/AHivx+B/M8Q/t+vQDU/gKr/gvXcWvYWi9fACfMfA+P/f0A2lAZr+AuU+guRY/gHpnF6DQRu9pQDDfiLoeA/0OGMUI//B9oLMYwJKA4yGAEYR7PISDYIIMAAwok/4ZjM2aEAAAAASUVORK5CYII=";case"QuarterFull":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALhJREFUeNpi/P//PwM1AAu6ACMjoyiQ8gNiFyA2BWJ5IH4IxKeBeA8QbwJa/hrDJJCLYBgInIF4A0gYDwbJOyPrA+tFM+QkAUNg+CS6YTBDRIlwCTaXiaIblEyiITCcDDOICRpULmRGlgtKYAPBHTJddAfmIkYwwcj4G1tSIAL8AepnBTFgXntIptfg+mAGnSbToNPoBu0h06A96IFNnXREtZRNjbzGiF6MkJv7GalVHjExUAkABBgAZ7bvMbpLRFkAAAAASUVORK5CYII=";case"QuarterFullGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAX9JREFUeNqsk8FKAlEUhq+OLixTMMxwJqegAYPcBOYD5LpXaCP0TIGbXsG1PoBICzeiJKQ2Y0TU4ExQLe5M548rzUyFF/LCP/fcgftxzzn/ifm+z9axEtEf5YtSnrZzUp1UJemkKalHapNaw+vZU/ReLPgigpwpSqKRyW2re0ZZ2dF1LbWVKboLe/44nZjWeMRfbdvyOG8SrPMrCJDNTPayfHJa2j+q1DzmMe7TV4gLmcNBd9Lvz95d9yoIiy/TwUtWQRAXDKOmVY5LcUVpiDJ8g1ATpLMKwj3+FeeNw1oqm1VFLUOgOmoiA1mecwe6IhoS6lqVCpuUhXCfs7S6q7EbVoiCdOqONARxMr1RDHZtmdoULZaFIH5znLnwVwjUg09kIdgd68EUJg2B2jCbLAT7YnLPhdNDoBYcC7PJQF7Gd90Px7VwLwTC7MD2cKw1GnZXQZ4HtzOfe83gzP2YNTgWZoNP0GJ0B4VFTZAOXiIgnT+Hdm3T/58VZ2tanwIMAF5R5JGe7b4mAAAAAElFTkSuQmCC";case"QuarterFullRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAYJJREFUeNqsk89KAlEUxmdsmEhn4SzMZpGWlkELK0No1UbXvYfLlj1By5a+h2tdtkkQlQiCQR0hxjIaw3BKZpzuR3dorhVeyAsf98yf++Pcc74jep4nLGNJ8y+u9hMxsp0RFYnyREkig6hOVCWqnN/1h/PnxGBGBFKQw5GSls5kdw+O1Y1YPKqsyNKbPXHMoTnSb5uW2dXbU3tSJrDaryBA4unMxdFpIZfSEqrguoIvD7vzFXdeBlbz5rrxaHQug7CQfx1ksggiOI6wHVHVw9xJTl4Ll2gZvkGoCa6zCOL5sFVF1Ta3srSWDKiImvBA/HgntafShjCgPArLC8G+HlaitKtM+5PoDi8E3xR3JlFrMBkZaDEvBP+MxZlD/cWA6vAJLwTPT/Z4RE3KgKowGy8Esd7TLep0BlSBY2E2HkjPm1qDh34b5xgQZge2h2O7r8/WIkjrvtWYvtvl4Mz9nDXiWJgNPkGLlQ9XQmFRE1wHmVBI7c+hXdr0/2eFhCWtTwEGAOMrnODZ7gExAAAAAElFTkSuQmCC";case"QuarterHalf":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANZJREFUeNqslDEOwjAMReuqHKEnYOECTIzkJjlclg4Vcy5Q5QphYOYIIJnvqkbFVB2ifOk3VVS/2G4SYuamhjo7QUQnDBfYwWf4CN/hBEf4hsWffyTJSA1d4dF7zyEEzjnLpPUo363j5lgDmYZh4LU2QOLJwhTSy0oWsgPSzHoL8lLOlnZAYq+gdmmVg0p+lvtpNpSlsQUZZc2I5gfRC+qgZmM77GX0RvxBXrS0B1RS2jdIQQkqASULilAJKNpm19lH1XZ2jbNG9hopPf1U6z5qm0r6CDAA2axZLQC7wZgAAAAASUVORK5CYII=";case"QuarterHalfGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAapJREFUeNpi/P//PwM1AAu6gEa8nCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qb7qx8NFrdH2MyC4CGuLMzsqeoiytKu1rGchsr+8ks+TxDrn/33/9+fL69YdbNy69f/T4zqXvP75NBxq2F6uLQIbIiMqmp/lky4U5RJnDxP8/ARJcbCw88tIiBnKSImpPDEQunjkiAFTPgGwYE8w7IJegG4IM/v3/x/Dn/18GJklBQW0jCyMODq5MaDAgDAKFCcg7hAz58w+E/zD8FecTlJZW0IOGJYpBLqAwIcaQ30D697/fDDIq6oLQCEEJI1NgwLJiMwibIb+BbBZBbgForKIYJC8vJo81fWAzBIR/sPxlgSYNFK89fPjq4TPsBmEaAsKsP4EEJH2hGHT64MV9T7AZhM0QEP77/vMHaCJFMWjP5uPr/2I3CNOQP///MLy4e/c9NKWjGLTp7tPbT1cdWHYS0yBMQ3je/nn/8tnjSyB9KAaB8s7P3z/nzNoy9RG6YdgMeXz58rmfP79PR85zBPNa3ZWZcqCABYUJyDsgl0AN2Ysz01It91MCmBioBAACDAD+QkmblNHNNgAAAABJRU5ErkJggg==";case"QuarterHalfRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAadJREFUeNpi/P//PwM1AAu6QL+WnCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qbyq89ug1uj5GZBcBDXFmYWdPEVJWldbwCWRWtHOS4Tp7Xu7L969/nj9/8uH2+dPvn9+5eenXt6/TgYbtxWoQyBB+Gdl009RsOd3QKHOYgl9r1iJU//3LcPfh3ffnD+059/Le7XZkw5hg3gG5BN0QFAA05P/vPwxKolKChpZ2RmycXJnQYEAYBAoTkHcIGcLw+zcQ/2JQ5BMRlFRQ1oOGJYpBLqAwIcaQ/z+B+NcvBhVVTUFohKDEmikwYFmxmYPNEIafPxnEOHkEoLGKYpC8gLw89gSCxZD/QMzz+w8LNGmgeO3hh4cPn2E3CNMQBiD78x+QU8HpC8Wg0/cP7XuC1WtYDAGJvfr26QM0kaIYtOfGlvV/sRqExRCQK+88uP0emtJRDNr07u7tp5dXLzuJYRIWQx78+/X+xbPHl0D6UAwC5Z0/P3/OOT176iN0w7AZcuHW5XO/fnyfjpznCOY1tjnz5UABCwoTkHdALoEashdnpqVa7qcEMDFQCQAEGAA1Zzns7WFLDgAAAABJRU5ErkJggg==";case"QuarterNone":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAORJREFUeNqsVLsNwjAUzIviEVIzBROQmiU8XJoUEXUWQFnBTWpGsCVzF9kIHhJg5JMulu17l/f8kxhjUwOdHhCRHs0ZHMAjeAA3cAUX8IKf396cmFEmcAJna20cxzE656L3fm/Z5zjnqXuO22OVyXWapvgJnKdOm2UTljN/M1FmzKzXRpZplyCVabNRm5ZqAIp2KemHl8UGHBe0BNQzLmck+0cEm+M74OeMQgiNMSYg3rCfS9uAotKS/hGUjVagyCjpV220AEVGSb/oxa5zjqqd7Bp3TfQz8u/tl1rvUdtUwl2AAQAjf9rqmeYw1gAAAABJRU5ErkJggg==";case"QuarterNoneGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARpJREFUeNpi/P//PwM1AAu6gEa8nCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qb7qx8NFrdH2MyC4CGuLMzsqeoiytKu1rGchsr+8kIy8mL/Xw1cNnBy/ue7L5+Pq/d5/efvrz9885QMP2opgEMgiE1eNknZ2LrVat3L/0xH88ACQPUgdSD9MLdgzUEFG9ZJXlhAxBNgykHqQPZhAT1GF+IO+EOUSZExOwIHUg9dCwBAOYQS6gMCEllqDqXdANMgUFLCkGQdWboke/PDB2SEo3oNhE5sNc9BAUxaQYBFX/EN2g06B0QopBUPWn0Q3aA0pspBgEVb8H3aBNoBS76sCyk8QYAlIHUg/SR/WUTbW8xohejFAl91MCmBioBAACDAC69SCCZRqp9wAAAABJRU5ErkJggg==";case"QuarterNoneRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARpJREFUeNpi/P//PwM1AAu6QL+WnCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qbyq89ug1uj5GZBcBDXFmYWdPEVJWldbwCWRWtHOSEZCXl/rw8OGz+4f2PbmxZf3fd3dvP/3z8+ccoGF7UUwCGQTCfZqyznNdrVZdWrX0xH88ACQPUgdSD9MLdgzUENFJBirLCRmCbBhIPUgfzCAmqMP8QN7RDY0yJyZgQepA6qFhCQYwg1xAYUJKLEHVu6AbZAoKWFIMgqo3RY9+eWDskJRuQLGJzIe56CEoikkxCKr+IbpBp0HphBSDoOpPoxu0B5TYSDEIqn4PukGbQCn28uplJ4kxBKQOpB6kj+opm2p5jRG9GKFK7qcEMDFQCQAEGACDrSM46epEZgAAAABJRU5ErkJggg==";case"QuarterQuarter":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQNJREFUeNqsVLsNgzAUxCgrpE7LAhkgInWW8AoZiM4NBUrNAogVnIIqRdpUpHDuWc+S8wIEECcdCDgf72cr51yyCcgoJrAHNWhASxKwBzuwADO5xq8TJjlYaa2dMcZZax0bxXyA11EjNmnKsnQxBoyIL2kWp1NJkwmjEFkmjTSlM4QJI2IRjFKu+RlY06vTV9eoO1TYFRH1ISLlL0q9gR3w80t8+zc+XhBS64BZcxaIDOjzPeiCUQssKg7rW2lUA4uMWF/LYo/O0RBIR3paN3uyR0wa0i/aa+imv9MzvedIcll8JY8RtJvSvNCQgkfwwDu/5ZrcsOb5MyZbnUdpshE+AgwAM8CytM/xk38AAAAASUVORK5CYII=";case"QuarterQuarterGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaBJREFUeNpi/P//PwM1AAu6gEa8nCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qb7qx8NFrdH2MyC4CGuLMzsqeoiytKu1rGchsr+8ks+TxDrl/33/++fjy1Ye7Ny+9f/Tk3qUfP75NBxq2F6uLQIbIiMqmp/lky4U5RJnDxP8+/sfwh4OJhU1WVERV2l5E4bmuyLVzJwSA6hmQDWOCeQfkEnRDQODP/78Mf/6B8B+G30D6tyiXoKqBsREHO2cmNBgQBoHCBOQddEPABiEb8u83EP9h+CbMLighLa8HDUsUg1xAYYItNtANgWEJJWVBaISghJEpMGBZsRmEzRAQZhbgEIDGKopB8vJi8gzYDcI05M//PwyfmP+xQJMGBICiXz1O9s7dZ3ce/icBgNSD9IH0gzAsjE4fvLjvCSkpGar+NHpg79l8fP1fUgyCqt+DbtCmu09vP111YNlJYgwBqQOpB+lDCSNoODk7F1utWrl/6Ql8YQOSB6kDqYfpBWGCeQ0Ym1IPXz18BgoTkHdALvn5++cc9LzGiF6MUCX3UwKYGKgEAAIMAKK6VKYTEvq8AAAAAElFTkSuQmCC";case"QuarterQuarterRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaNJREFUeNpi/P//PwM1AAu6QL+WnCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qbyq89ug1uj5GZBcBDXFmYWdPEVJWldbwCWRWtHOS4Tp7Xu7Lt89/nj99/OH2hTPvn9+9denX92/TgYbtxWoQyBB+Gdl009RsOd3QKHOYgl8rVzH8//2HgeH3byD+xXD3+ZP3F04eOvfywd12ZMOYYN4BuQTdEBBANuT/z18MijwCggaG5kZsnJyZ0GBAGAQKE5B30A0BAyRD/v/6xcDw8yeDAgunoKSMgh40LFEMcgGFCdboQDPkPxAzANnK8iqC0AhBiTVTYMCyYjMHmyEgMTFWDgForKIYJC8gL4/VQdgMAbmS589fFmjSQDHo4YeHD1mFlJTl0A3iLC7EasG7e3cfMRzc9Bs9jE7fP7TvCSkpGar+NLpBe25sWf+XFIOg6vegG7Tp3d3bTy+vXnaSGENA6kDqQfoQgQlM2SDcpynrPNfVatWlVUtP/McDQPIgdSD1ML0gTDCvAWNTChgRz0BhAvIOyCV/fv6cgzOvUTX3UwKYGKgEAAIMAFdBHxSzVPYAAAAAAElFTkSuQmCC";case"QuarterThreeFourth":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPZJREFUeNqslDEOgkAQRRmj8QTUtlzAE0jtJfYKFB7Bm9BQEGsuQLiAxTZUFLY2RpP1D3ENDhMkGyZ5QDaZx+wwLDnnoiViLReIKMbtCFKwBzvQggY8wBkvv45MXJEHcQClMcblee6stbwoKUE2zOtzhaQuisINQxExtZR5CW+nlJIJka8sliLD29FiQsQYL1p9WpUiQj5W+tNshOXGBlRkfUXUX4ie2ijMiBfyN/zgt9YGzuE3z4uaQFEjRVWgqJLNTkD3p7HaHCXaZGfgPlOiT7aQdTMqGf1rJI8RjAJv8wS2yt/PPbkg5zY6NZY6j1bRQvEWYAB1GjI1ev8a6gAAAABJRU5ErkJggg==";case"QuarterThreeFourthGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaZJREFUeNpi/P//PwM1AAu6gEa8nCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qb7qx8NFrdH2MyC4CGuLMzsqeoiytKu1rGchsr+8kM/P+ejnG77//fHv99sO9W1ffP3l6/9KPH9+mAw3bi9VFIENkRGXT03yy5cIcosxh4n/v/2P4x8HIwigjJKIgbS2i8EJH5Ma5UwJA9QzIhjHBvANyCbohIPDv/z+Gv1AMYv8W5RJUNTQ24mDnzIQGA8IgUJiAvINuCNhFSIb8/fcXzP4hwikoKa2gBw1LFINcQGGCLTbQDYHxpVRUBaERghJGpsCAZcVmEDZD/v7/y8AiwCUAjVUUg+SBscMCDli0MMFmCIj9jfU/CzRpoHjtISiKiTUExGb/xfgHmr5QDDoNSifEGgKi/7//8gGaSFEM2gNKbMQaAqJf3L3zHprSUQzaBEqxDC8+vifGEN63v9+/ePb4EkgfikGgvANO9udOnWN69fk9IUMeXb587ufP79OR8xxGXgOlWFBiA6cTYBR/Y/3LAgpYUJiAvANyCdSQvTgzLdVyPyWAiYFKACDAAIlapLjIYf36AAAAAElFTkSuQmCC";case"QuarterThreeFourthRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZxJREFUeNpi/P//PwM1AAu6QL+WnCiQ8gNiFyA2BWJ5IH4IxKeBeA8Qbyq89ug1uj5GZBcBDXFmYWdPEVJWldbwCWRWtHOS4TxwSO7L929/nr9+/uHOlQvvn9+/c+nX92/TgYbtxWoQyBB+Gdl009RsOd3QKHOYgp+z5zD8//uXgeEPEAPpe+9evL9w6ui5lw/vtSMbxgTzDsgl6IaAALIhDH/+MChyCwoaGFkYsXFyZUKDAWEQKExA3kE3BAyQDPkPM4ydR1BSVkEPGpYoBrmAwgRrdKAZAmOrKKkLQiMEJdZMgQHLitUgLIaAaDEuHgForKIYJA+MHZafe/djhAk2Q0ByPH//sUCTBorXHoKimFhDQGo+M/77A01fKAadBqUTYg0B8V99//wBmkhRDNoDSmzEGgJi33lw5z00paMYtAmUYkGJjRhDHvz/9f7F00eXQPpQDALlHVCyB6XY+x/fvCdkyMWbF8/9+vF9OnKew8hroBQLSmygdAKKYp6ff1lAAQsKE5B3QC6BGrIXZ6alWu6nBDAxUAkABBgAG6p7KNJI82AAAAAASUVORK5CYII=";case"Rating0":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIdJREFUeNqslGEKwCAIhVV2o87TWaqzdJ52pFqM7UcOmmlCiESP92mFrTXYEYf2YM459hT6St77SAYTwTkHjxhYhKA2BRpH4fukRbEIDSgmIR4oGf9fT7gSrfQEQYn26QkKbrYIZaJLUxQUGxrRquH9ktT6khDiHkfpLOXOb10Watz1sV0CDABFzzYl6O6gWAAAAABJRU5ErkJggg==";case"Rating1":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALFJREFUeNpi/P//PwM1AAu5GufPn/+fhYWF4c+fPwyJiYmMTGS7AGiIsbExmAYBJkq88+8/GV5D9wq6PBO5XiHbIHSvUGQQOmAkJvoJhQm6SUykhAkjA5lewwgTRiIMMgwsOcaon/AfRJMTRnCDLtx7Y1mVFQGm4QoZiXYQqtc+fPlOdgyiGPTq3ReiXYDXoJfvv1DuIgMlkeOHj54E0yA+KP2cPXsWTBPDZ6RWwQYQYAADAlUqgaDmawAAAABJRU5ErkJggg==";case"Rating2":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMhJREFUeNpi/P//PwM1AAu5GufPn/+fhYWF4c+fPwyJiYmMTGS7AGiIsbExmAYBJkq88+8/GV5D9wq6PBO5XiHbIHSvUGQQOmAkxiDDwJJjjPoJ/0E0MSbhNOjCvTeWVVkRYBqbC0jy2o9ff3D7BZdB2Lzy9ccv0sMIm1e+fPtJrINQvfbhy3cUyU9ffxAdgygGvXr3BUXyM5qLiDbo5XtUgwiFEVaDDJREjh8+ehJMw/inT5+D80F57OzZs2AaG5+RWgUbQIABABPEZS/gjRSzAAAAAElFTkSuQmCC";case"Rating3":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAOdJREFUeNpi/P//PwM1AAu5GufPn/+fhYWF4c+fPwyJiYmMTGS7AGiIsbExmAYBJkq88w8pVIg2yDCw5BijfsJ/EI1NnmiDLtx7Y1mVFQGmKTIIBP78/YdTjiSDfv3+g8JnJMYgbGHyE80gZJOYSAmTHz//kOe1H79QNX7/9ZuwQdi88vXHL1SDfhIRRti88uXbT1QX/vxNnNc+fPmOIvnp6w+8XsVp0Kt3X1AkP6O5CCPWcBn08j2qQehh9Ov3X8IGGSiJHD989CSYhvFPnz6Hwj937jycDyo+zp49C6bBAU+tgg0gwAAOf4E07dySjgAAAABJRU5ErkJggg==";case"Rating4":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAOhJREFUeNpi/P//PwM1ABO5Gg0DS44x6if8B9FgAZCLyMEMevH/q2Zs/w+iQXwmSrzz9+8/0r2G4RUg+E2OQRfuvbGsyooA03CD/vwlL7D/ILkABH6Ra9Cv339w8plICZOfGAYR4SJsYfLjJ6pBP3/9Ic5rP36havz+6zeqQdi8hs0rX3/8QjUI3UXYvIbNK1++/UR14c/fxAX2hy/fURR++voDr1dxRv+rd19QFH5GcxF6rOFMkC/foxqEHkbI0Q1OoH+wZBEDJZHjh4+eBNMw/unT51D4586dR+GfP38BzmekVsEGEGAAYtnSCDcWS3cAAAAASUVORK5CYII=";case"RhombRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAATFJREFUeNqs1GFOwjAUB/A/cyaAhJsYQ0gAlTowaLLhKTjImnkQb+EFqFHUkMXoSQx+MqP0dbBM3dqZsGRrP7z99rL332pSSuzjcOkyax+aasLteltWcPf5nUIm5OLMi6C6nj/NjZhrQ4KJDyQJ5HodieeHUsy1Ie3mESEIRlcAYa+PhZhTBaGOaB+wS7DuIMq9t1KoEEEO889HYJ3eH8ypitAqCWs04Q8Y2En3B+b8B8k6I6w3BDvuZNgOOqARO+q0IbuVaiG39+amxiknCglvxtdoqSeakNXXCvcLAfER0/T47/FznRPCvAla9UZlpChHXOdEYdPhWGNVkLJAcrFcpNipp7C6FTElm4v4RWFJOO0z3ZEJsX1rXLwtdWc0HRNig1LsPc72psLavn5sGwEGAFmY/uoyH+ELAAAAAElFTkSuQmCC";case"Square0":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJNJREFUeNpi/P//PwM1AAuIMAgoPnbx3htLdEl9JZHjFzb0WhGShxsEUlSUEgKRZQTi/2DE0D9njSUx8nCDQODrj18IqxiBqtG8TEgebtCX70gK/0NtRgKE5OEGff72A6gA6m64HxCAkDySQRAbGaG2occlIXkWWOjvP3gMa6wQIw+xYDQdjaajQZSOmBioBAACDACh/KcFkAtFXQAAAABJRU5ErkJggg==";case"Square1":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMVJREFUeNpi/P//PwM1AAuIMAgoPnbx3htLdEl9JZHjFzb0Wi1atKgByK3Hor8xLi6uAW4QyJCilBCIFCMQ/wcjhv45a2CG15uYmGCYcubMGZDhCINA4OuPXwgVjEDTSPQy3KAv35EM+g91GTkGff72A2gA1F9wP5JlEMRFjFDX/Ccn1kCxs//gMayxBosdaMBixBo8WOmajgjJE52OiEhnxKcjQvJEpyNC8kSnI0LyRKcjQvJEpSMi0hn10hETA5UAQIABAEDQjPQ2214MAAAAAElFTkSuQmCC";case"Square2":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMNJREFUeNpi/P//PwM1AAuIWLRoUQOQqsci3xgXF9dASB5uEEiRiYkJhqozZ86ANDcQIc/AxEAlMIwNggV2IzTgMGKFSHkGRqqmI4OA4mMX772xRJfUVxI5fmFDrxUhebhBIEVFKSFQNwLxfzBi6J+zxpIYeeQwYvj64xfCKkagajQvE5KHG/TlO5LC/1CbkQAhebhBn7/9ACqAuhvuBwQgJI9k0C9oNELUoMclIXkWWOjvP3gMa6wQI0/VdES1LAIQYAB+fHLbqufYXAAAAABJRU5ErkJggg==";case"Square3":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALZJREFUeNpi/P//PwM1AAuIWLRoUQOQqsci3xgXF9dASB5uEEiRiYkJhqozZ86ANDcQIc/AxEAlMIwNggV2IzTgMGKFSHkGRqqmI4OA4mMX772xRJfUVxI5fmFDrxXR6QhkSFFKCNSNQPwfjBj656yxJDKdwcOI4euPXwgVjEDTSPQy3KAv35EM+g91GTkGff72A2gA1F9wP5Jl0C9oNELM+E9OrIFiZ//BY1hjje7piGpZBCDAAJeNWMpRbKWWAAAAAElFTkSuQmCC";case"Square4":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeNpi/P//PwM1AAuIWLRoUQOQqsci3xgXF9dASB5uEEiRiYkJhqozZ86ANDcQIc/AxEAlMIwNggV2IzTgMGKFSHkGxtF0NJqOBlM6oprXAAIMAGHFPrGNYSSXAAAAAElFTkSuQmCC";case"StarFull":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAjdJREFUeNqslE1oE0EUx2dmZ3dnzYdiWmwaPxpqYiu0pdSUFKEnD6IHBW+lJ8WDeJCeeiw9evAqeBQ8iJKLeK09KCqCVFBUkJLa+NE02TRNdmG/ZsZZW0NMtolIB/77mJn3fvvmMW8g5xzsx8D+J7c4vuc+VpTvEMIl17Zn9nK6srACUKe/SBjfSaTTUc7YZTE90sm3EyjCGLs5dHaSnBg9TWSi3v8vkKyq95JjIxwJj9TEKFRUJSuWM/8CCglNC83JhOREbS6eyk5gzlzga/zc1EEs4ycSlu4Kn1mh4bZii8A16jj94VjMPNwf16K9MTWRSv4GcLoD0sIqyFyY6isXNm5UN7dma3qNO5Z7AMtoSSDO410gHTyTwels5hBnXiO42TIfFlLA0XQcJAZjEX/9w8sv9e2y8aNxNNeyJvPvVopGRQd/jtIQDbIe+Ph61dgum089l11trpHuOc7Yi4eP6rZR/ztQiLXAPr9ZNaul+jPPpTNBxd6kHj25/OAxbcuC7WTh29K3MqgUa69ch15qK3YzDADIPMeSEGQB2XjANi1RL57vdo96EIIUIRZ4JF+qJgHhMxTYa03juKoRWwQSP2irWAHrn9ZrqiYrA8O9RJIYUAkEotEHuoGSWoTAUmED5N/nq5ZpFVzHW0QSmi5+1a/3xMPsWCoaoh7v6wZ6Ky4aEnru2u6CmC/7i4yynDC3Sj+N23rRuAYhIK2vTytoTQBGfBvUT5zxecrAfNAe3K+H7ZcAAwA2+mLmimzXOgAAAABJRU5ErkJggg==";case"StarHalf":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAlxJREFUeNqslE1oE0EUx99+5sttweC2kcbPmNpaqYrWVsWP6qG3glJQ6Unx4EF68ODFi0dPXkQQT95aBa2lFTxYqV9JFQ8KCiJUMM2H2Y1NTeImO5kZZ7dNIG2ygvTBzPD2zfzmvf++XY5SCmthojWNPnxUNyhoM245/6mAwyMPTETONYKcHToNvNMtQlmPtoW380SbPcPcFqe9DUFC+kUAFr92Sy4e/M1eSZbl+/8Fkoke2bqnGyhBcGzoOrhcci97fOCfIKaHKqSeXRHi4+Oe1Fhcwtqm9h4GwsiOHznU1yxJ4oQoineYO8xGxyqxvT/uImwsiMqGAF0fULkmvwobQ4cBowLLyLQ3Kso6ONV/ojWZSl3W9cxw5tcCLRaLXkmSnrPwgA0CjqOhnoPQ3tfLEfQHCDJsCLFAyxlVYIoSgvCOkGL5b95Gc2lNT1RLK7nCu+Y+fiY5LVEDsaEE1dUkEn2X13R9EiF0oQrC6vFvprdz98uxx9T4nalC8IqMKjb7/kPhZ1qbNk10fpXYWO3/Um7a1zUzOlWFWCtdkdF8PAHJZCpimuZgw9dvwZheYBq5pbLKBrCpBmQYBiuXfHfsIyE9HeZ5HjhatCG0XARKcc0Bn88HgsDvdG5IWt4veVy0AsnqecjnePpq6h5ieiyDvCwjuqXuR1s1gvZ6PCJkklmIzZVoCXlKphy8DWaLPDH59FIw2Ea6Ojt8GONWZ5DgfpLLGldzhn/RFLfdwJsHbi2JZ5c3EovN34zHExc5jnM7grB68jXr46PWWq93mMjXrFEvxq3Vj+2vAAMAxrs0rpWgrjsAAAAASUVORK5CYII=";case"StarNone":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgFJREFUeNpi/P//PwM1AAuIWLF6HU55IHjKxMS499ev31G4FEWEBjEw4bOFmZm5V15Olu/fv/8BQK44PrX4DOL99+9ftoG+LoeqqjIHGxvbQrIMYmNjnammqvIf6CoGXW0tRnZ2NgugsCkxBnEDsR0QFwJtX8vCwuqtr6fDApO0sbLkZ2Vl2QQMs2lAbgwQa2IENtD2B3/+/JXi4+P9KiIizCkkKMiuIC+H6k9eHgYXJ0eJ5y9eZL558zbm7bv3/3/8+MHFysq6FyjtAbPxr7q6KgvQCwL4wgFkGC+vCgPQy7wg/tFjJz6/ev3mGdxrwKg1u3Pn7svPn78QnW6Onzj15fWbN1t+//6dhBxGb3///qO/a8++zz9+/CRoyMnTZ7++fPV6H3LaQg7sV3///lXZvHX7X3yGPHn6jOH58xfHf/365Y8v+l8xMjL+AwY8ToO+f//OAExf9wmlIxFgdvjLwsKM0yBubm5gimfSwJrXkIAcBwcHKJA4QBxgYDJcv3HrEzcXF5uujjYwdbMCDeICuui/AiGDFHl4eBifPX/BcPXa9Q9fv357DAyLRmDqtrv/4GGqrKzMPx0tTW5gWEoQMujs+/fvmU6fOXv4589f9UD+fnAi+/t3LZDKf/z4SefTp8+SgeHIQcigB0ADdEE0tvABBnI5CGOTY6RWwQYQYACCusaAujfEdQAAAABJRU5ErkJggg==";case"StarQuarter":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAkxJREFUeNqslMtrE1EUh8+daSbJxKmCMlZMfNAm2DysBYtWtGqr4E4piCKuBBfiwoWgf4W4cuFCsLgRfKEIIpqoUNuqRARBBR9RmyZpnm2TyeNO7lzPRCwWM7OQHrgz3HPOfHPOub8ZwjmH5bAO83Lz1l3LONqMIJAopfoJq6TjR0dBsHuLKIqXNm7wdRoGP4LbtXa5diDFMIyz2/oiLr+/2yVJ0th/gdyZ2+8D/h6OVUEkFCROp7QT3QO2M2q1kXuhAqsfA1YbkUQ64DCK6/q2hsmf+O5dgyufxp49wLO512w2J9AVx/VxCUj+eVVntVKHoq7nq71eskpdA5Vidmmfygo4MLy/K53JnMnnCycLxRKv1+uyw+GIYvjQ74oI4f7BPRDce5AYzQYYugafxpP/Dg1hitID2LJi7l9OTJWzuXxqcUYNZyD09e07YyGbakEYrYAJtLPJqdeVXD7/UNf1U4sgpu77TOXeyPOxa7w6lwPWmAfO6paQV2/i2mw2F/tbW4unxtThD3pnfzh2/UYLZFVRciYF6XRmklJ62PL4TRjOC6hWxIrag2q1GqC+ErY6ErOxgCCISNTAsAB5PB5UvLDFUkct483tktvJGS0TznSIP7oMmrJjwSPLUiQcQnU7ECRjRXyTPcjQ+11uEQqpEpSwuyrwBNVmL6C6hxLff5z2+bxGONjrYYx12X8iout+ea4KX77J82UheJ66Nnej9w4+eA7nIk9PJ688fhItEEKobUVMHRnHjCHz3m4+CLtornYxslw/tl8CDAAS2wfU7oS1lwAAAABJRU5ErkJggg==";case"StarThreeFourth":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAk5JREFUeNqs1MtrE0EYAPBvssnmVQtSjYlIW0uTFNvaRuxDlCIWoTdRKBYRBL3o2YNnj55E6MU/QCgIFcGT0galNlHppYcKjURsTWI2G/Nc9zkzziZtaEyyB+nAN7vLzPxm9pvZRZRSOIxiN6ull8ttG7ncexdf3ZTA7d+V/fP9nZCF+Rtgs5qFM3LxU6EBG0g7fZwQHbHq2xFiAwNQ2h4bujgJfaNh4HE6+l8QT8TY6fFxQGBA8Nww8FDu4bJv71jmaC8fPsDKTcDyLM+pEw6cD4SnLwE1FCAs/L1HUTLDLyK7fcowjHU2ZIPF1ybIs/Ncx3LB3nU8QHsCPtR97AScDM40EGLIQIkB1+8/69pOfHsgivnb+d8FqiiKx+FwrDBirr4ihOjgxCSEL0wjgtXa4INI7ZlBZgkFB804Yt5/XI9XhJyYbuRIdYaGk5tbpJLPtkUOQvslFv9czYniG13X7zYg7Luc0DxnRj8sLVO1UmxF/oE+fdmQskJuVdP0Wy27hn1XtozuyEj0xasWhGAFWFXr9zOVhkzmV0zTtGsdt9/EWL5AV6QmhBoqUFqHZJlNQsh3y3PECashm41jZ0dvQgjW2KvVIa/XCxxnG+p4jmqFGud5t4syBJlIUSjCblKiLp6w47MPediKaL81RPSI28uDmMrBj0SJKppT1RwDi5wiXYVqcsxYi/45G5nyYIz91hDnel0pVB+WJWdJs4ce4965p7Xc7TWnhPKTzLuVewghlyWEfbNrKsCMeW33PbEkPzKjXRs6rB/bXwEGAAZHY2m+lr3hAAAAAElFTkSuQmCC";case"TriangleGreen":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPlJREFUeNrsk0luwkAQRX+bTQ4QCcXgMNrtgBlkicG+i4GzcaTsQpTswhqJDdi4i3IjkCCLDMAKqvX1S+rqV9WLEkSES4SBC8Utg5xxgc4GyfEz1Ro+nOiJ/g3KICWvDScMYDW7kCOL/gxyIpNK7RbcYYA4jVHu+zBfPMhJkX4Nqo1MqnQ6kL0Aa4asFIv90ZcwXVc3+RFkR0WyvS7sfqghWpv4kD94VeTdpm52ChL7FbH5ss6QymCIWCX8pWTnrITzhDZIlQLxWb5+YjF7x9v0SxyBskkMIXRxjl0gx+Xp9/nJgCEYlT1XXMH+MZ2Lo4nuu3Z90FaAAQBat3AkY5cdmgAAAABJRU5ErkJggg==";case"TriangleRed":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAATBJREFUeNrsk71OAkEQx/9zx1MgRE1UVimwsxITTWzsTGy04A1Q4nvg17soDYno+QiXU69QwUMe4faAHXcRhBA4G2JhnGR2k53Jb2bng5gZsxALM5I/DEqY41ykexVXSsEGgcgGow2l4zABttI2Ut+Ru8QgbbCsBI69Opl3GnTtMpPmldw6tg8KwzCdDjhqA5EEhxIIQ32HcKrXcINXnPgBDVxptP0Gtipy2Doq9CERIL8gBmBATu0GXuMdRb9Oo1+j8Tm60jCxLJDfPwRLk8UQUrurwG294dRr0niNaNJAnmWSnF1YQ353rw+RuL2vwG81UHwMaFKxadpkl0WKs6l5bG7swHmowv14QempSdO6RnErcqEzW5pbxHMQD+mJAcVpWST5Jx+j9L+0vwf6FGAAUqTDoUy9nwgAAAAASUVORK5CYII=";case"TriangleYellow":return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAVdJREFUeNpi/P//PwM1AAuIuFnEgk+NE5Teh0uBet8fBhYiLOsC4r9AbI5PERMBQ0J41Y2NeVQNzYDsQHINYgbiFn59KwYBAysQvwUqRrJByfx6FupcMnIMXLIKDHzaJlpAsVhSDeIE4joBPSMGhv/fwRjMZmBoBGI2UgzKETQyk2YX5mdg+PcdjDnEhBkEDUzlgHKZxBokBMQVArraQAO+oWB+HU2QfDUQ8xBjUKmQsaEQCzcLw/+/31AwKx87g6ChnihQTREhg6TB3tJXxXANDAvqqoAtg7ocp0F1wqZaPEwsf+Bhg46ZOYAmGGrwQL2I1SCQVclC+nLwmMKFhQzkwBEC9QGGQS0i5irMDP9/Am3+gRczMv1mEDZWYoMmBxSDjNmFecIFtcSACn8ShYV0xUH6EkB5Fp77gaD959svDLfnHyO19GCGZp1QRmqVR0wMVAIAAQYArNiUNokAcDwAAAAASUVORK5CYII="}},t}();e.StiIconSetHelper=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.ContentAlignment,r=t.Base.JsonReportObject.IStiJsonReportObject,n=t.System.Enum,o=function(t){function o(r,n){void 0===r&&(r=e.StiIcon.None),void 0===n&&(n=i.MiddleLeft);var o=t.call(this)||this;return o._icon=e.StiIcon.None,o._alignment=i.MiddleLeft,o.icon=r,o.alignment=n,o}return __extends(o,t),o.prototype.implements=function(){return t.prototype.implements.call(this).concat([r])},o.prototype.saveToJsonObject=function(r){var n=t.prototype.saveToJsonObject.call(this,r);return n.addPropertyEnum("Icon",e.StiIcon,this.icon,e.StiIcon.None),n.addPropertyEnum("Alignment",i,this.alignment,i.MiddleLeft),n},o.prototype.loadFromJsonObject=function(t){for(var r=0,o=t.properties();r<o.length;r++){var a=o[r];switch(a.name){case"Icon":this._icon=n.parse(e.StiIcon,a.value);break;case"Alignment":this._alignment=n.parse(i,a.value);break}}},Object.defineProperty(o.prototype,"icon",{get:function(){return this._icon},set:function(t){this._icon=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"alignment",{get:function(){return this._alignment},set:function(t){this._alignment=t},enumerable:!0,configurable:!0}),o}(e.StiIndicator);e.StiIconSetIndicator=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAnchor="IStiAnchor"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiAutoWidth="IStiAutoWidth"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBorderColor="IStiBorderColor"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBreakable="IStiBreakable"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBrush="IStiBrush"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBusinessObject="IStiBusinessObject"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCanGrow="IStiCanGrow"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCanShrink="IStiCanShrink"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiComponent="IStiComponent"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiComponentGuid="IStiComponentGuid"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiComponentsOwnerRenderer="IStiComponentsOwnerRenderer"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiConditions="IStiConditions"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCrossTab="IStiCrossTab"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiCrossTabField="IStiCrossTabField"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiDataBarIndicator="IStiDataBarIndicator"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiDataRelation="IStiDataRelation"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiDataSource="IStiDataSource"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiExportImage="IStiExportImage"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiExportImageExtended="IStiExportImageExtended"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFilter="IStiFilter"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiFont="IStiFont"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGroup="IStiGroup"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGrowToHeight="IStiGrowToHeight"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiIgnoreBorderWhenExport="IStiIgnoreBorderWhenExport"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiIndicatorCondition="IStiIndicatorCondition"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiKeepChildTogether="IStiKeepChildTogether"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiKeepDetailsTogether="IStiKeepDetailsTogether"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiKeepFooterTogether="IStiKeepFooterTogether"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiKeepGroupFooterTogether="IStiKeepGroupFooterTogether"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiKeepGroupTogether="IStiKeepGroupTogether"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiKeepHeaderTogether="IStiKeepHeaderTogether"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiKeepReportSummaryTogether="IStiKeepReportSummaryTogether"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiMasterComponent="IStiMasterComponent"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiOddEvenStyles="IStiOddEvenStyles"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPageBreak="IStiPageBreak"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPrintAtBottom="IStiPrintAtBottom"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPrintIfDetailEmpty="IStiPrintIfDetailEmpty"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPrintIfEmpty="IStiPrintIfEmpty"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPrintOn="IStiPrintOn"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPrintOnAllPages="IStiPrintOnAllPages"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPrintOnEvenOddPages="IStiPrintOnEvenOddPages"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiRenderMaster="IStiRenderMaster"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiResetPageNumber="IStiResetPageNumber"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiShape="IStiShape"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiShift="IStiShift"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiSort="IStiSort"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTextBrush="IStiTextBrush"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTextHorAlignment="IStiTextHorAlignment"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiTextOptions="IStiTextOptions"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiUnitConvert="IStiUnitConvert"}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.Up=0]="Up",t[t.Down=1]="Down",t[t.Left=2]="Left",t[t.Right=3]="Right"}(e=t.StiShapeDirection||(t.StiShapeDirection={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiJson,n=t.Base.Services.StiService,o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.saveToJsonObject=function(t){var e=new r;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e},n.prototype.loadFromJsonObject=function(t){},n.loadFromJsonObjectInternal=function(t){var e=t.properties().firstOrDefault(function(t){return"Ident"==t.name}).value,i=StiOptions.Services.shapes.firstOrDefault(function(t){return t.serviceEnabled&&t.getStiType().getStiTypeName()==e});if(null==i)throw String.stiFormat("Type {0}.sti_is(not) found!",e);var r=i.createNew();return r.loadFromJsonObject(t),r},n.prototype.loadFromXml=function(t){},n.convertFromXml=function(t){switch(t.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Components.ShapeTypes.StiVerticalLineShapeType":return new i.StiVerticalLineShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiTriangleShapeType":return new i.StiTriangleShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiTrapezoidShapeType":return new i.StiTrapezoidShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiTopAndBottomLineShapeType":return new i.StiTopAndBottomLineShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiSnipSameSideCornerRectangleShapeType":return new i.StiSnipSameSideCornerRectangleShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiSnipDiagonalSideCornerRectangleShapeType":return new i.StiSnipDiagonalSideCornerRectangleShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiRoundedRectangleShapeType":return new i.StiRoundedRectangleShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiRegularPentagonShapeType":return new i.StiRegularPentagonShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiRectangleShapeType":return new i.StiRectangleShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiPlusShapeType":return new i.StiPlusShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiParallelogramShapeType":return new i.StiParallelogramShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiOvalShapeType":return new i.StiOvalShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiOctagonShapeType":return new i.StiOctagonShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiMultiplyShapeType":return new i.StiMultiplyShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiMinusShapeType":return new i.StiMinusShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiLeftAndRightLineShapeType":return new i.StiLeftAndRightLineShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiHorizontalLineShapeType":return new i.StiHorizontalLineShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFrameShapeType":return new i.StiFrameShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFlowchartSortShapeType":return new i.StiFlowchartSortShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFlowchartPreparationShapeType":return new i.StiFlowchartPreparationShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFlowchartOffPageConnectorShapeType":return new i.StiFlowchartOffPageConnectorShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFlowchartManualInputShapeType":return new i.StiFlowchartManualInputShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFlowchartDecisionShapeType":return new i.StiFlowchartDecisionShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFlowchartCollateShapeType":return new i.StiFlowchartCollateShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiFlowchartCardShapeType":return new i.StiFlowchartCardShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiEqualShapeType":return new i.StiEqualShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiDivisionShapeType":return new i.StiDivisionShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiDiagonalUpLineShapeType":return new i.StiDiagonalUpLineShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiDiagonalDownLineShapeType":return new i.StiDiagonalDownLineShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiComplexArrowShapeType":return new i.StiComplexArrowShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiChevronShapeType":return new i.StiChevronShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiBentArrowShapeType":return new i.StiBentArrowShapeType;case"Stimulsoft.Report.Components.ShapeTypes.StiArrowShapeType":return new i.StiArrowShapeType}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiShapeTypeService},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return null},n}(n);i.StiShapeTypeService=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e,r,n){void 0===e&&(e=i.StiShapeDirection.Up),void 0===r&&(r=.3),void 0===n&&(n=.4);var o=t.call(this)||this;return o._direction=i.StiShapeDirection.Up,o._arrowWidth=.3,o._arrowHeight=.4,o.direction=e,o.arrowWidth=r,o.arrowHeight=n,o}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Up),r.addPropertyNumber("ArrowWidth",this.arrowWidth,.3),r.addPropertyNumber("ArrowHeight",this.arrowHeight,.4),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this.direction=r.parse(i.StiShapeDirection,o.value);break;case"ArrowWidth":this.arrowWidth=o.value.toNumber();break;case"ArrowHeight":this.arrowHeight=o.value.toNumber();break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this.direction=r.parse(i.StiShapeDirection,o.textContent);break;case"ArrowWidth":this.arrowWidth=o.textContent.toNumber();break;case"ArrowHeight":this.arrowHeight=o.textContent.toNumber();break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiArrowShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"arrowWidth",{get:function(){return this._arrowWidth},set:function(t){t>=0&&t<=.5&&(this._arrowWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"arrowHeight",{get:function(){return this._arrowHeight},set:function(t){t>=0&&t<=1&&(this._arrowHeight=t)},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiArrowShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e){void 0===e&&(e=i.StiShapeDirection.Up);var r=t.call(this)||this;return r._direction=i.StiShapeDirection.Up,r.direction=e,r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Up),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.value);break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.textContent);break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiBentArrowShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiBentArrowShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e){void 0===e&&(e=i.StiShapeDirection.Right);var r=t.call(this)||this;return r._direction=i.StiShapeDirection.Right,r.direction=e,r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Right),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.value);break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.textContent);break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiChevronShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiChevronShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e){void 0===e&&(e=i.StiShapeDirection.Left);var r=t.call(this)||this;return r._direction=i.StiShapeDirection.Left,r.direction=e,r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Left),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.value);break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.textContent);break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiComplexArrowShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiComplexArrowShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiDiagonalDownLineShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiDiagonalDownLineShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiDiagonalUpLineShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiDiagonalUpLineShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiDivisionShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiDivisionShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiEqualShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiEqualShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiFlowchartCardShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiFlowchartCardShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e){void 0===e&&(e=i.StiShapeDirection.Down);var r=t.call(this)||this;return r._direction=i.StiShapeDirection.Left,r.direction=e,r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Up),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.value);break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.textContent);break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiFlowchartCollateShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiFlowchartCollateShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiFlowchartDecisionShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiFlowchartDecisionShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiFlowchartManualInputShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiFlowchartManualInputShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e){void 0===e&&(e=i.StiShapeDirection.Down);var r=t.call(this)||this;return r._direction=i.StiShapeDirection.Up,r.direction=e,r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Up),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.value);break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.textContent);break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiFlowchartOffPageConnectorShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiFlowchartOffPageConnectorShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e){void 0===e&&(e=i.StiShapeDirection.Left);var r=t.call(this)||this;return r._direction=i.StiShapeDirection.Left,r.direction=e,r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Left),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.value);break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.textContent);break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiFlowchartPreparationShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiFlowchartPreparationShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiFlowchartSortShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiFlowchartSortShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiFrameShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiFrameShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiHorizontalLineShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiHorizontalLineShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiLeftAndRightLineShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiLeftAndRightLineShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiMinusShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiMinusShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiMultiplyShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiMultiplyShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(t,i){void 0===t&&(t=!0),void 0===i&&(i=0);var r=e.call(this)||this;return r._autoSize=!0,r._bevel=0,r.autoSize=t,r.bevel=i,r}return __extends(i,e),i.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyBool("AutoSize",this.autoSize,!0),i.addPropertyNumber("Bevel",this.bevel,0),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"AutoSize":this._autoSize=r.value.toBoolean();break;case"Bevel":this._bevel=r.value.toNumber();break}}},i.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"AutoSize":this._autoSize=r.textContent.toBoolean();break;case"Bevel":this._bevel=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiOctagonShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoSize",{get:function(){return this._autoSize},set:function(t){this._autoSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bevel",{get:function(){return this._bevel},set:function(t){t>=0&&(this._bevel=t)},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiOctagonShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiOvalShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiOvalShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiParallelogramShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiParallelogramShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiPlusShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiPlusShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiRectangleShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiRectangleShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiRegularPentagonShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiRegularPentagonShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(t){void 0===t&&(t=.2);var i=e.call(this)||this;return i._round=.2,i.round=t,i}return __extends(i,e),i.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyNumber("Round",this.round,.2),i},i.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Round":this._round=r.value.toNumber();break}}},i.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"Round":this._round=r.textContent.toNumber();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiRoundedRectangleShapeType},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"round",{get:function(){return this._round},set:function(t){t>0&&t<=.5&&(this._round=t)},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiRoundedRectangleShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiSnipDiagonalSideCornerRectangleShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiSnipDiagonalSideCornerRectangleShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiSnipSameSideCornerRectangleShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiSnipSameSideCornerRectangleShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiTopAndBottomLineShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiTopAndBottomLineShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiTrapezoidShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiTrapezoidShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=function(t){function n(e){void 0===e&&(e=i.StiShapeDirection.Up);var r=t.call(this)||this;return r._direction=i.StiShapeDirection.Up,r.direction=e,r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyEnum("Direction",i.StiShapeDirection,this.direction,i.StiShapeDirection.Up),r},n.prototype.loadFromJsonObject=function(t){for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.value);break}}},n.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Direction":this._direction=r.parse(i.StiShapeDirection,o.textContent);break}}},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiTriangleShapeType},enumerable:!0,configurable:!0}),n.prototype.clone=function(){var t=this.memberwiseClone();return t.direction=this.direction,t},Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction=t},enumerable:!0,configurable:!0}),n.prototype.createNew=function(){return new n},n}(i.StiShapeTypeService);i.StiTriangleShapeType=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiVerticalLineShapeType},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(e.StiShapeTypeService);e.StiVerticalLineShapeType=i}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetChecked"},e}(t.StiEvent);t.StiGetCheckedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Events.StiGetExcelValueEventHandler,n=t.Report.Events.StiValueEventHandler,o=t.Report.Events.StiGetExcelValueEventArgs,a=t.Report.Events.StiGetExcelValueEvent,s=t.Report.Events.StiGetCheckedEvent,l=t.Base.StiJsonSaveMode,u=t.Report.Components.IStiEditable,c=t.Base.Drawing.StiBrush,p=t.Base.Drawing.StiSolidBrush,h=t.Base.Drawing.StiBorder,g=t.System.Drawing.Color,m=t.Base.StiJsonReportObjectHelper,d=t.System.Enum,S=t.Report.Expressions.StiExpression,f=t.System.Text.StiReportObjectStringConverter,y=t.Report.Events.StiValueEventArgs,b=function(b){function C(){var t=null!==b&&b.apply(this,arguments)||this;return t._brush=new p,t._border=new h,t._textBrush=new p(g.black),t._editable=!1,t._canBreak=!1,t._contourColor=g.black,t._size=1,t._checkStyle=i.StiCheckStyle.Check,t._values="true/false",t._checkStyleForTrue=i.StiCheckStyle.Check,t._checkStyleForFalse=i.StiCheckStyle.None,t._checked=String.empty,t._excelDataValue=String.empty,t._excelValue=String.empty,t}return __extends(C,b),C.prototype.implements=function(){return b.prototype.implements.call(this).concat([i.IStiBorder,i.IStiTextBrush,i.IStiBrush,i.IStiBreakable,u])},C.prototype.saveToJsonObject=function(t){var e=b.prototype.saveToJsonObject.call(this,t);return e.removeProperty("CanShrink"),e.removeProperty("CanGrow"),e.addPropertyStringNullOfEmpty("Brush",m.Serialize.jBrush(this.brush)),e.addPropertyStringNullOfEmpty("Border",m.Serialize.jBorder(this.border)),e.addPropertyStringNullOfEmpty("TextBrush",m.Serialize.jBrush(this.textBrush)),e.addPropertyBool("Editable",this.editable),e.addPropertyJObject("GetCheckedEvent",this.getCheckedEvent.saveToJsonObject(t)),e.addPropertyJObject("GetExcelValueEvent",this.getExcelValueEvent.saveToJsonObject(t)),e.addPropertyJObject("Checked",new S(this.checked).saveToJsonObject(t)),e.addPropertyJObject("ExcelValue",new S(this.excelValue).saveToJsonObject(t)),e.addPropertyStringNullOfEmpty("ExcelDataValue",this.excelDataValue),e.addPropertyStringNullOfEmpty("ContourColor",m.Serialize.jColor(this.contourColor,g.black)),e.addPropertyNumber("Size",this.size,1),e.addPropertyString("Values",this.values,"true/false"),e.addPropertyEnum("CheckStyleForTrue",i.StiCheckStyle,this.checkStyleForTrue,i.StiCheckStyle.Check),e.addPropertyEnum("CheckStyleForFalse",i.StiCheckStyle,this.checkStyleForFalse,i.StiCheckStyle.None),t==l.Document&&e.addPropertyString("CheckedValue",this.checkedValue.toString()),e},C.prototype.loadFromJsonObject=function(t){b.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"Brush":this.brush=m.Deserialize.brush(n.value);break;case"Border":this.border=m.Deserialize.border(n.value);break;case"TextBrush":this.textBrush=m.Deserialize.brush(n.value);break;case"Editable":this.editable=n.value.toBoolean();break;case"GetCheckedEvent":var o=new s;o.loadFromJsonObject(n.value),this.getCheckedEvent=o;break;case"GetExcelValueEvent":var o=new a;o.loadFromJsonObject(n.value),this.getExcelValueEvent=o;break;case"Checked":var l=new S;l.loadFromJsonObject(n.value),this.checked=l.value;break;case"ExcelDataValue":this.excelDataValue=n.value;break;case"ExcelValue":var l=new S;l.loadFromJsonObject(n.value),this.excelValue=l.value;break;case"ContourColor":this.contourColor=m.Deserialize.color(n.value);break;case"Size":this.size=n.value.toNumber();break;case"Values":this.values=n.value;break;case"CheckStyleForTrue":this.checkStyleForTrue=d.parse(i.StiCheckStyle,n.value);break;case"CheckStyleForFalse":this.checkStyleForFalse=d.parse(i.StiCheckStyle,n.value);break;case"CheckedValue":this.checkedValue=n.value;break}}},C.prototype.loadFromXml=function(t,e){b.prototype.loadFromXml.call(this,t,e);for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];switch(n.nodeName){case"Brush":case"bh":this.brush=c.loadFromXml(n.textContent);break;case"Border":case"br":this.border=h.loadFromXml(n.textContent);break;case"TextBrush":case"tb":this.textBrush=c.loadFromXml(n.textContent);break;case"Editable":this.editable=n.textContent.toBoolean();break;case"GetCheckedEvent":break;case"GetExcelValueEvent":break;case"Checked":var o=new S;o.loadFromXml(n),this.checked=o.value;break;case"ExcelDataValue":this.excelDataValue=n.textContent;break;case"ExcelValue":var o=new S;o.loadFromXml(n),this.excelValue=o.value;break;case"ContourColor":this.contourColor=f.convertStringToColor(n.textContent);break;case"Size":this.size=n.textContent.toNumber();break;case"Values":this.values=n.textContent;break;case"CheckStyleForTrue":this.checkStyleForTrue=d.parse(i.StiCheckStyle,n.textContent);break;case"CheckStyleForFalse":this.checkStyleForFalse=d.parse(i.StiCheckStyle,n.textContent);break}}},Object.defineProperty(C.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"textBrush",{get:function(){return this._textBrush},set:function(t){this._textBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"editable",{get:function(){return this._editable},set:function(t){this._editable=t},enumerable:!0,configurable:!0}),C.prototype.clone=function(t){var e=b.prototype.clone.call(this,t);return null!=this._textBrush?e._textBrush=this._textBrush.clone():e._textBrush=null,e},Object.defineProperty(C.prototype,"canBreak",{get:function(){return this._canBreak||this.growToHeight&&null!=this.page&&this.height/this.page.pageHeight>.5},set:function(t){this._canBreak=t},enumerable:!0,configurable:!0}),C.prototype.break=function(t,e,i){return e>.5||null!=this.page&&this.height/this.page.pageHeight>.5?t.checkedValue=null:this.checkedValue=null,i.ref=0,!0},C.prototype.invokeEvents=function(){b.prototype.invokeEvents.call(this);try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){if(null!=this.events.get(C.eventGetChecked)&&null==this.checkedValue){var t=new y;this.invokeGetChecked(this,t),this.checkedValue=t.value}}else if((null!=this.events.get(C.eventGetChecked)||!String.isNullOrEmpty(this.checked))&&null==this.checkedValue){var t=new y;this.invokeGetChecked(this,t),this.checkedValue=t.value}if(null!=this.events.get(C.eventGetExcelValue)&&null==this.excelDataValue){var t=new o;this.invokeGetExcelValue(this,t),null!=t.value&&(this.excelDataValue=t.value.toString())}}catch(t){}},C.prototype.onGetChecked=function(t){},C.prototype.invokeGetChecked=function(i,r){try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){this.onGetChecked(r);var n=this.events.get(C.eventGetChecked);if(null!=n)try{n(i,r)}catch(r){}}else{if(this.onGetChecked(r),null!=this.checked&&this.checked.length>0){var o=t.Report.Engine.StiParser.StiParser.parseTextValue(this.checked,this,i);null!=o&&(r.value=o)}var n=this.events.get(C.eventGetChecked);if(null!=n)try{n(i,r)}catch(r){}}}catch(t){}},Object.defineProperty(C.prototype,"getCheckedEvent",{get:function(){return new s(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventGetChecked,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),C.prototype.onGetExcelValue=function(t){},C.prototype.invokeGetExcelValue=function(t,e){try{this.onGetExcelValue(e);var i=this.events.get(C.eventGetExcelValue);if(null!=i)try{i(t,e)}catch(e){}}catch(t){}},Object.defineProperty(C.prototype,"getExcelValueEvent",{get:function(){return new a(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(C.eventGetExcelValue,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"checkedValue",{get:function(){return this._checkedValue},set:function(t){this._checkedValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"contourColor",{get:function(){return this._contourColor},set:function(t){this._contourColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"checkStyle",{get:function(){return this.checkStyleForTrue},set:function(t){this._checkStyle==t&&(this.checkStyleForTrue=t,this.checkStyleForFalse=i.StiCheckStyle.None)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"values",{get:function(){return this._values},set:function(t){this._values=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"checkStyleForTrue",{get:function(){return this._checkStyleForTrue},set:function(t){this._checkStyleForTrue=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"checkStyleForFalse",{get:function(){return this._checkStyleForFalse},set:function(t){this._checkStyleForFalse=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"excelDataValue",{get:function(){return this._excelDataValue},set:function(t){this._excelDataValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"excelValue",{get:function(){return this._excelValue},set:function(t){this._excelValue=t},enumerable:!0,configurable:!0}),C.eventGetChecked={},C.eventGetExcelValue={},C}(i.StiComponent);i.StiCheckBox=b}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.Base.Drawing.StiSolidBrush,n=t.Base.StiJsonReportObjectHelper,o=t.System.Text.StiReportObjectStringConverter,a=function(t){function e(e,n){void 0===e&&(e=null),void 0===n&&(n="");var o=t.call(this,e)||this;return o._contourColor=i.black,o._size=1,o.textBrush=new r(i.white),o}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.removeProperty("LinesOfUnderline"),r.addPropertyStringNullOfEmpty("ContourColor",n.Serialize.jColor(this.contourColor,i.black)),r.addPropertyNumber("Size",this.size,1),r},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var o=r[i];switch(o.name){case"ContourColor":this._contourColor=n.Deserialize.color(o.value);break;case"Size":this._size=o.value.toNumber();break}}},e.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"ContourColor":this._contourColor=o.convertStringToColor(n.textContent);break;case"Size":this._size=n.textContent.toNumber();break}}},Object.defineProperty(e.prototype,"contourColor",{get:function(){return this._contourColor},set:function(t){this._contourColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t},enumerable:!0,configurable:!0}),e}(e.StiText);e.StiContourText=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Drawing.Rectangle,n=function(t){function n(e,i){void 0===i&&(i=!1);var r=t.call(this)||this;return i||r.construct(e),r}return __extends(n,t),n.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("CanShrink"),i.removeProperty("CanGrow"),i.removeProperty("Shift"),i.removeProperty("UseParentStyles"),i.removeProperty("DockStyle"),i.removeProperty("GrowToHeight"),i.removeProperty("Conditions"),i},Object.defineProperty(n.prototype,"canShrink",{get:function(){return t.prototype.getCanShrink.call(this)},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canGrow",{get:function(){return t.prototype.getCanGrow.call(this)},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shift",{get:function(){return t.prototype.getShift.call(this)},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"useParentStyles",{get:function(){return t.prototype.getUseParentStyles.call(this)},set:function(e){t.prototype.setUseParentStyles.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dockStyle",{get:function(){return t.prototype.getDockStyle.call(this)},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"growToHeight",{get:function(){return t.prototype.getGrowToHeight.call(this)},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"conditions",{get:function(){return t.prototype.getConditions.call(this)},set:function(e){t.prototype.setConditions.call(this,e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"localizedCategory",{get:function(){return i.get("Report","Shapes")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"componentType",{get:function(){return e.StiComponentType.Simple},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"priority",{get:function(){return e.StiComponentPriority.Primitive},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"clientRectangle",{get:function(){return new r(this.left,this.top,this.width,this.height)},set:function(t){this.left=Math.round(t.left,2),this.top=Math.round(t.top,2),this.width=Math.round(t.width,2),this.height=Math.round(t.height,2)},enumerable:!0,configurable:!0}),n.prototype.getDisplayRectangle=function(){return new r(this.left,this.top,this.width,this.height)},n.prototype.setDisplayRectangle=function(t){this.left=Math.round(t.left,2),this.top=Math.round(t.top,2),this.width=Math.round(t.width,2),this.height=Math.round(t.height,2)},n.prototype.setDirectDisplayRectangle=function(t){this.displayRectangle=t},n.prototype.construct=function(e){null==e&&(e=r.empty),t.prototype.construct.call(this,e)},n}(e.StiComponent);e.StiPrimitive=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiPenStyle,r=t.System.Drawing.Color,n=t.Base.StiJsonReportObjectHelper,o=t.System.Drawing.Rectangle,a=t.System.Enum,s=t.System.Text.StiReportObjectStringConverter,l=function(t){function e(e){void 0===e&&(e=o.empty);var n=t.call(this,e)||this;return n._style=i.Solid,n._color=r.black,n._size=1,n}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.addPropertyEnum("Style",i,this.style,i.Solid),o.addPropertyStringNullOfEmpty("Color",n.Serialize.jColor(this.color,r.black)),o.addPropertyNumber("Size",this.size,1),o},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var r=0,o=e.properties();r<o.length;r++){var s=o[r];switch(s.name){case"Style":this._style=a.parse(i,s.value);break;case"Color":this._color=n.Deserialize.color(s.value);break;case"Size":this._size=s.value.toNumber();break}}},e.prototype.loadFromXml=function(e,r){t.prototype.loadFromXml.call(this,e,r);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"Style":this._style=a.parse(i,o.textContent);break;case"Color":this._color=s.convertStringToColor(o.textContent);break;case"Size":this._size=o.textContent.toNumber();break}}},Object.defineProperty(e.prototype,"invalidateOnMouseOver",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultClientRectangle",{get:function(){return new o(0,0,60,60)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(t){this._style=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t},enumerable:!0,configurable:!0}),e}(e.StiPrimitive);e.StiLinePrimitive=l}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.System.Drawing.Point,n=function(t){function n(e){void 0===e&&(e=i.empty);var r=t.call(this,e)||this;return r.storedStartPoint=null,r.storedEndPoint=null,r.newGuid(),r}return __extends(n,t),n.prototype.onRemoveComponent=function(){var t=this.getStartPoint();null!=t&&null!=t.parent&&t.parent.components.contains(t)&&(t.referenceToGuid=null,t.parent.components.remove(t));var e=this.getEndPoint();null!=e&&null!=e.parent&&e.parent.components.contains(e)&&(e.referenceToGuid=null,e.parent.components.remove(e))},n.prototype.canContainIn=function(t){return t.sti_is(e.StiPage)},Object.defineProperty(n.prototype,"linked",{get:function(){return t.prototype.getLinked.call(this)},set:function(e){t.prototype.setLinked.call(this,e);var i=this.getStartPoint();null!=i&&(i.linked=e);var r=this.getEndPoint();null!=r&&(r.linked=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){var e=this.getStartPoint();if(null==e)return t.prototype.getLeft.call(this);var i=new r(e.left,e.top);return Math.round(e.componentToPage(i).x,2)},set:function(e){var i=this.getStartPoint();if(null==i)t.prototype.setLeft.call(this,e);else if(!this.isParentContainerSelected(i)){var n=new r(e,0);n=i.pageToComponent(n),i.left=n.x}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){var e=this.getStartPoint();if(null==e)return t.prototype.getTop.call(this);var i=new r(e.left,e.top);return Math.round(e.componentToPage(i).y,2)},set:function(e){var i=this.getStartPoint();if(null==i)t.prototype.setTop.call(this,e);else if(!this.isParentContainerSelected(i)){var n=new r(0,e);n=i.pageToComponent(n),i.top=n.y}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){var e=this.getStartPoint(),i=this.getEndPoint();if(null==e||null==i)return t.prototype.getHeight.call(this);var n=new r(e.left,e.top),o=new r(i.left,i.top);return n=e.componentToPage(n),o=i.componentToPage(o),Math.round(o.y-n.y,2)},set:function(e){t.prototype.setHeight.call(this,e);var i=this.getStartPoint(),n=this.getEndPoint();if(null!=i&&null!=n){var o=new r(i.left,i.top);o=i.componentToPage(o);var a=new r(o.x,o.y+e);a=n.pageToComponent(a),n.top=a.y}},enumerable:!0,configurable:!0}),n.prototype.getStartPoint=function(t){if(void 0===t&&(t=null),null!=t){for(var i=0,r=t.components.list;i<r.length;i++){var o=r[i],a=o.sti_as(e.StiStartPointPrimitive);if(null!=a&&a.referenceToGuid==this.guid)return a;var s=o.sti_as(e.StiContainer);if(null!=s){var l=this.getStartPoint(s);if(null!=l)return l}}return null}if(null!=this.report&&!this.report.isRendering&&!this.isDesigning)return null;if(this.guid==n.nullGuid)return null;if(this.isDesigning&&null!=this.storedStartPoint)return this.storedStartPoint;if(null==this.page)return null;return this.storedStartPoint=this.getStartPoint(this.page),this.storedStartPoint},n.prototype.getEndPoint=function(t){if(void 0===t&&(t=null),null!=t){for(var i=0,r=t.components.list;i<r.length;i++){var n=r[i],o=n.sti_as(e.StiEndPointPrimitive);if(null!=o&&o.referenceToGuid==this.guid)return o;var a=n.sti_as(e.StiContainer);if(null!=a){var s=this.getEndPoint(a);if(null!=s)return s}}return null}if(null!=this.report&&!this.report.isRendering&&!this.getStartPoint)return null;if(this.getStartPoint&&null!=this.storedEndPoint)return this.storedEndPoint;if(null==this.page)return null;return this.storedEndPoint=this.getEndPoint(this.page),this.storedEndPoint},n.prototype.isParentContainerSelected=function(t){var e=t.parent;while(!0){if(null==e)return!1;e=e.parent}},n.nullGuid="nullGuid",n}(e.StiLinePrimitive);e.StiCrossLinePrimitive=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=function(t){function e(e){void 0===e&&(e=i.empty);var r=t.call(this,e)||this;return r._referenceToGuid=null,r.storedColumn=0,r}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("IsSelected"),i.addPropertyString("ReferenceToGuid",this.referenceToGuid),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"ReferenceToGuid":this._referenceToGuid=n.value;break}}},e.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"ReferenceToGuid":this._referenceToGuid=n.textContent;break}}},Object.defineProperty(e.prototype,"isSelected",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"referenceToGuid",{get:function(){return this._referenceToGuid},set:function(t){this._referenceToGuid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),e}(e.StiPrimitive);e.StiPointPrimitive=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=function(t){function e(e){return void 0===e&&(e=i.empty),t.call(this,e)||this}return __extends(e,t),e}(e.StiPointPrimitive);e.StiEndPointPrimitive=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJsonReportObjectHelper,r=t.Base.Drawing.StiBorder,n=t.Base.Drawing.StiBorderSides,o=t.Base.Drawing.StiCap,a=t.System.Drawing.Rectangle,s=function(t){function s(e){void 0===e&&(e=a.empty);var i=t.call(this,e)||this;return i._border=null,i._startCap=new o,i._endCap=new o,i}return __extends(s,t),s.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiBorder])},s.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyStringNullOfEmpty("StartCap",i.Serialize.jCap(this.startCap)),r.addPropertyStringNullOfEmpty("EndCap",i.Serialize.jCap(this.endCap)),r},s.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var r=0,n=e.properties();r<n.length;r++){var o=n[r];switch(o.name){case"StartCap":this._startCap=i.Deserialize.jCap(o.value);break;case"EndCap":this._endCap=i.Deserialize.jCap(o.value);break}}},s.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"StartCap":this._startCap.loadFromXml(n);break;case"EndCap":this._endCap.loadFromXml(n);break}}},s.prototype.clone=function(e){var i=t.prototype.clone.call(this,e);return null!=this._startCap?i._startCap=this._startCap.clone():i._startCap=null,null!=this._endCap?i._endCap=this._endCap.clone():i._endCap=null,i},Object.defineProperty(s.prototype,"border",{get:function(){return null==this._border&&(this._border=new r(n.Top,this.color,this.size,this.style,!1,0,null)),this._border},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startCap",{get:function(){return this._startCap},set:function(t){this._startCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"endCap",{get:function(){return this._endCap},set:function(t){this._endCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"height",{get:function(){if(null!=this.page&&null!=this.page.unit)return this.page.unit.convertFromHInches(1);return 1},set:function(t){},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},s}(e.StiLinePrimitive);e.StiHorizontalLinePrimitive=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGetImageDataEventHandler=new i("sender: Object, e: StiGetImageDataEventArgs");var n=function(t){function e(e){void 0===e&&(e=null);var i=t.call(this)||this;return i.value=e,i}return __extends(e,t),e}(r);e.StiGetImageDataEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiParser.StiParser,r=function(){function e(){}return e.parseText=function(e,r){if(String.isNullOrEmpty(r)||null==e)return r;if(r.contains("{")&&r.contains("}")&&!r.contains("{{")&&!r.contains("}}"))try{var n=new t.Report.Components.StiText;n.page=e;var o=i.parseTextValue(r,n);if(null!=o)return o.toString()}catch(t){}return r},e.parseBool=function(e,r){if(String.isNullOrEmpty(r))return!1;try{var n=new t.Report.Components.StiText;n.page=e,r=r.trim(),r.startsWith("{")||(r="{"+r),r.endsWith("}")||(r+="}");return i.parseTextValue(r,n).toBoolean()}catch(t){}return!1},e}();e.StiExpressionHelper=r}(i=e.Helpers||(e.Helpers={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetImageData"},e}(t.StiEvent);t.StiGetImageDataEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetImageURL"},e}(t.StiEvent);t.StiGetImageURLEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Image,r=t.Base.Drawing.StiImageConverter,n=function(){function e(){}return e.getImageFromObject=function(e){if(null!=e&&e.sti_is(i)){if(StiOptions.Engine.Image.useImageCloning)return e.sti_as(i).clone().sti_as(i);return e.sti_as(i)}if(null!=e&&e.sti_is(String)&&e.length>0)try{return r.stringToImage(e)}catch(e){t.System.StiError.showError(e.message,!1)}if(null!=e&&e.sti_is(Array)&&e.length>0)try{return r.bytesToImage(e)}catch(e){t.System.StiError.showError(e.message,!1)}return null},e.getImageName=function(t){if(this.isTiff(t))return"Tiff";if(this.isPng(t))return"Png";if(this.isGif(t))return"Gif";if(this.isJpeg(t))return"Jpeg";if(this.isBmp(t))return"Bmp";if(this.isEmf(t))return"Emf";if(this.isWmf(t))return"Wmf";if(this.isIcon(t))return"Icon";if(this.isSvg(t))return"Svg";if(this.isXml(t))for(var e=5;e<t.length-4;e++){if(60!=t[e])continue;if(115==t[e+1]&&118==t[e+2]&&103==t[e+3])return"Svg";break}return null},e.isXml=function(t){return 60==t[0]&&63==t[1]&&120==t[2]&&109==t[3]&&108==t[4]},e.isSvg=function(t){return 60==t[0]&&115==t[1]&&118==t[2]&&103==t[3]},e.isIcon=function(t){return 0==t[0]&&0==t[1]&&(1==t[2]||2==t[2])&&0==t[3]&&0!=t[4]},e.isWmf=function(t){return 215==t[0]&&205==t[1]&&198==t[2]&&154==t[3]||1==t[0]&&0==t[1]&&9==t[2]&&0==t[3]},e.isEmf=function(t){return 32==t[40]&&69==t[41]&&77==t[42]&&70==t[43]},e.isBmp=function(t){return 66==t[0]&&77==t[1]},e.isJpeg=function(t){return 255==t[0]&&216==t[1]},e.isGif=function(t){return 71==t[0]&&73==t[1]&&70==t[2]},e.isPng=function(t){return 137==t[0]&&80==t[1]&&78==t[2]&&71==t[3]},e.isTiff=function(t){return 73==t[0]&&73==t[1]&&42==t[2]&&0==t[3]||77==t[0]&&77==t[1]&&0==t[2]&&42==t[3]},e.isImage=function(e){if(e.sti_is(t.System.ByteArray))return this.isImage2(e);if(e.sti_is(String))return this.isImage3(e);return e.sti_is(i)},e.isImage2=function(t){if(t.length<128)return!1;return null!=this.getImageName(t)},e.isImage3=function(e){if(e.length<128)return!1;try{if(!e.isBase64String())return!1;var i=t.System.Convert.fromBase64String(e.substring(0,128));return null!=this.getImageName(i)}catch(t){}return!1},e}();e.StiImageHelper=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.IO.Path,r=t.System.Collections.Hashtable,n=function(){function t(){}return t.createNewCache=function(){return"StimulsoftImageCache"},t.getImageCacheName=function(t,e){return i.Combine(t,String.stiFormat("{0}.ich",e))},t.saveImage=function(e,i){null==t.imageCache&&(t.imageCache=new r),t.imageCache.set(i,e)},t.loadImage=function(e){if(null==t.imageCache)return null;return t.imageCache.get(e)},t.exist=function(e){return null!=t.imageCache&&t.imageCache.contains(e)},t}();e.StiFileImageCache=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Enum,n=t.Base.StiJsonSaveMode,o=t.Base.StiJsonReportObjectHelper,a=t.Base.Drawing.StiBorder,s=t.Base.Drawing.StiBrush,l=t.Base.Drawing.StiHorAlignment,u=t.Base.Drawing.StiVertAlignment,c=t.Base.Drawing.StiSolidBrush,p=t.System.Drawing.Color,h=t.System.Drawing.Size,g=t.Base.Drawing.StiImageConverter,m=t.Report.StiFileImageCache,d=function(d){function S(){var t=null!==d&&d.apply(this,arguments)||this;return t._horAlignment=l.Left,t._vertAlignment=u.Top,t._border=new a,t._brush=new c(p.transparent),t._smoothing=!0,t._isCachedImage=!1,t._objectToDraw=null,t._imageToDraw=null,t._stretch=!1,t._multipleFactor=1,t._aspectRatio=!1,t}return __extends(S,d),S.prototype.implements=function(){return S.ImplementsStiView||(S.ImplementsStiView=d.prototype.implements.call(this).concat([i.IStiHorAlignment,i.IStiVertAlignment,i.IStiBorder,i.IStiExportImage,i.IStiExportImageExtended,i.IStiBrush])),S.ImplementsStiView},S.prototype.saveToJsonObject=function(t){var e=d.prototype.saveToJsonObject.call(this,t);return e.addPropertyEnum("HorAlignment",l,this.horAlignment,l.Left),e.addPropertyEnum("VertAlignment",u,this.vertAlignment,u.Top),e.addPropertyStringNullOfEmpty("Border",o.Serialize.jBorder(this.border)),e.addPropertyStringNullOfEmpty("Brush",o.Serialize.jBrush(this.brush)),e.addPropertyBool("Smoothing",this.smoothing,!0),e.addPropertyBool("Stretch",this.stretch),e.addPropertyNumber("MultipleFactor",this.multipleFactor,1),e.addPropertyBool("AspectRatio",this.aspectRatio),t==n.Document&&e.addPropertyStringNullOfEmpty("ImageBytesToDraw",g.imageToString(this.imageToDraw)),e},S.prototype.loadFromJsonObject=function(t){d.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var n=i[e];switch(n.name){case"HorAlignment":this._horAlignment=r.parse(l,n.value);break;case"VertAlignment":this._vertAlignment=r.parse(u,n.value);break;case"Border":this._border=o.Deserialize.border(n.value);break;case"Brush":this._brush=o.Deserialize.brush(n.value);break;case"Smoothing":this._smoothing=n.value.toBoolean();break;case"Stretch":this._stretch=n.value.toBoolean();break;case"MultipleFactor":this._multipleFactor=n.value.toNumber();break;case"AspectRatio":this._aspectRatio=n.value.toBoolean();break;case"ImageToDraw":case"ImageBytesToDraw":this.imageToDraw=g.stringToImage(n.value);break}}},S.prototype.loadFromXml=function(e,i){d.prototype.loadFromXml.call(this,e,i);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"HorAlignment":case"ha":this._horAlignment=r.parse(l,o.textContent);break;case"VertAlignment":case"va":this._vertAlignment=r.parse(u,o.textContent);break;case"Border":case"br":this._border=t.Base.Drawing.StiBorder.loadFromXml(o.textContent);break;case"Brush":case"bh":this._brush=s.convertToBrush(o.textContent);break;case"Smoothing":this._smoothing=o.textContent.toBoolean();break;case"Stretch":this._stretch=o.textContent.toBoolean();break;case"MultipleFactor":this._multipleFactor=o.textContent.toNumber();break;case"AspectRatio":this._aspectRatio=o.textContent.toBoolean();break;case"ImageToDraw":case"ImageBytesToDraw":this.imageToDraw=g.stringToImage(o.textContent);break}}},S.prototype.clone=function(t){var e=d.prototype.clone.call(this,t);return null!=this._border?e._border=this._border.clone():e._border=null,null!=this._brush?e._brush=this._brush.clone():e._brush=null,e._horAlignment=this._horAlignment,e._vertAlignment=this._vertAlignment,e},Object.defineProperty(S.prototype,"horAlignment",{get:function(){return this._horAlignment},set:function(t){this._horAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"vertAlignment",{get:function(){return this._vertAlignment},set:function(t){this._vertAlignment=t},enumerable:!0,configurable:!0}),S.prototype.getImage=function(i,r){if(void 0===r&&(r=e.StiExportFormat.None),null!=this.objectToDraw){var n=t.Report.Painters.StiPainter.getPainter(this.getStiType());return n.getImage(this,i,r)}var n=t.Report.Painters.StiPainter.getPainter(this.getStiType());return n.getImage(this,i,r)},S.prototype.isExportAsImage=function(t){return!0},Object.defineProperty(S.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),S.prototype.getActualSize=function(){var t=new h(this.width,this.height);if(this.canGrow||this.canShrink){if(null==this.imageToDraw)return h.empty;var e=this.page.unit,i=e.convertToHInches(this.width),r=e.convertToHInches(this.height);this.canGrow&&(this.imageToDraw.width*this.multipleFactor>i&&(t.width=e.convertFromHInches(this.imageToDraw.width*this.multipleFactor)),this.imageToDraw.height*this.multipleFactor>r&&(t.height=e.convertFromHInches(this.imageToDraw.height*this.multipleFactor))),this.canShrink&&(this.imageToDraw.width*this.multipleFactor<i&&(t.width=e.convertFromHInches(this.imageToDraw.width*this.multipleFactor)),this.imageToDraw.height*this.multipleFactor<r&&(t.height=e.convertFromHInches(this.imageToDraw.height*this.multipleFactor)))}return t},S.prototype.getRealSize=function(){var t=new h(this.width,this.height);if(this.canGrow||this.canShrink){if(null==this.imageToDraw)return h.empty;var e=this.page.unit,i=e.convertToHInches(this.width),r=e.convertToHInches(this.height);this.canGrow&&(this.imageToDraw.width*this.multipleFactor>i&&(t.width=e.convertFromHInches(this.imageToDraw.width*this.multipleFactor)),this.imageToDraw.height*this.multipleFactor>r&&(t.height=e.convertFromHInches(this.imageToDraw.height*this.multipleFactor))),this.imageToDraw.width*this.multipleFactor<i&&(t.width=e.convertFromHInches(this.imageToDraw.width*this.multipleFactor)),this.imageToDraw.height*this.multipleFactor<r&&(t.height=e.convertFromHInches(this.imageToDraw.height*this.multipleFactor))}return t},S.prototype.setPage=function(t){var e=this.imageToDraw;d.prototype.setPage.call(this,t),this.imageToDraw=e},Object.defineProperty(S.prototype,"smoothing",{get:function(){return this._smoothing},set:function(t){this._smoothing=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"isCachedImage",{get:function(){return this._isCachedImage},set:function(t){this._isCachedImage=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"objectToDraw",{get:function(){return this._objectToDraw},set:function(t){this._objectToDraw=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"imageToDraw",{get:function(){if(null!=this._imageToDraw)return this._imageToDraw;if(null==this.guid)return null;if(null!=this.report&&null!=this.report.imageCachePath){var t=m.getImageCacheName(this.report.imageCachePath,this.guid);if(m.exist(t))return m.loadImage(t)}return null},set:function(t){if(this.isCachedImage=!1,null==this.report||this.isDesigning)this._imageToDraw=t;else if(null!=t){String.isNullOrEmpty(this.report.imageCachePath)&&(this.report.imageCachePath=m.createNewCache()),null==this.guid&&this.newGuid();var e=m.getImageCacheName(this.report.imageCachePath,this.guid);m.saveImage(t,e),this.isCachedImage=!0}else this._imageToDraw=null},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"stretch",{get:function(){return this._stretch},set:function(t){this._stretch=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"multipleFactor",{get:function(){return this._multipleFactor},set:function(t){this._multipleFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(t){this._aspectRatio=t},enumerable:!0,configurable:!0}),S.prototype.getImageFromSource=function(){return null},S}(i.StiComponent);i.StiView=d}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Drawing.Image,n=function(){function e(){}return e.getBytes=function(e,i){var r=this.getResource(e,this.getResourceNameFromHyperlink(i));if(null!=r)return r.content;var n=this.getVariable(e,this.getVariableNameFromHyperlink(i));if(null!=n)return n.valueObject;var o=this.getFileNameFromHyperlink(i);if(null!=o)try{return t.System.IO.File.getFile(o,!0)}catch(t){}return t.System.IO.File.getFile(i,!0)},e.getImage=function(t,e){var i=this.getResource(t,this.getResourceNameFromHyperlink(e));if(null!=i)return i.getResourceAsImage();var n=this.getVariable(t,this.getVariableNameFromHyperlink(e));if(null!=n)return n.valueObject;var o=this.getFileNameFromHyperlink(e);if(null!=o)try{return r.fromFile(o)}catch(t){}return r.fromFile(e)},e.getString=function(e,i){var r=this.getResource(e,this.getResourceNameFromHyperlink(i));if(null!=r)return String.fromBytesArray(r.content);var n=this.getVariable(e,this.getVariableNameFromHyperlink(i));if(null!=n)return n.valueObject;var o=this.getFileNameFromHyperlink(i);if(null!=o)try{return t.System.IO.File.getFile(o)}catch(t){}return t.System.IO.File.getFile(i)},e.getResource=function(t,e){if(null==t||String.isNullOrWhiteSpace(e))return null;return e=e.toLower().trim(),t.dictionary.resources.toList().firstOrDefault(function(t){return null!=t.name&&t.name.toLower().trim()==e})},e.getVariable=function(t,e){if(null==t||String.isNullOrWhiteSpace(e))return null;return e=e.toLower().trim(),t.dictionary.variables.toList().firstOrDefault(function(t){return null!=t.name&&t.name.toLower().trim()==e})},e.getServerNameFromHyperlink=function(t){if(!this.isServerHyperlink(t))return null;return t.remove(0,this.serverIdent.length)},e.getResourceNameFromHyperlink=function(t){if(!this.isResourceHyperlink(t))return null;return t.remove(0,this.resourceIdent.length)},e.getVariableNameFromHyperlink=function(t){if(!this.isVariableHyperlink(t))return null;return t.remove(0,this.variableIdent.length)},e.getFileNameFromHyperlink=function(t){if(!this.isFileHyperlink(t))return null;return t.remove(0,this.fileIdent.length)},e.isServerHyperlink=function(t){return!String.isNullOrWhiteSpace(t)&&t.toLower().startsWith(this.serverIdent)},e.isResourceHyperlink=function(t){return!String.isNullOrWhiteSpace(t)&&t.toLower().startsWith(this.resourceIdent)},e.isVariableHyperlink=function(t){return!String.isNullOrWhiteSpace(t)&&t.toLower().startsWith(this.variableIdent)},e.isFileHyperlink=function(t){return!String.isNullOrWhiteSpace(t)&&t.toLower().startsWith(this.fileIdent)},e.createResourceName=function(t){return String.stiFormat("{0}{1}",this.resourceIdent,t)},e.createVariableName=function(t){return String.stiFormat("{0}{1}",this.variableIdent,t)},e.createFileName=function(t){return String.stiFormat("{0}{1}",this.fileIdent,t)},e.hyperlinkToString=function(t){if(this.isResourceHyperlink(t))return String.stiFormat("{0}: {1}",i.get("PropertyMain","Resource"),this.getResourceNameFromHyperlink(t));if(this.isVariableHyperlink(t))return String.stiFormat("{0}: {1}",i.get("PropertyMain","Variable"),this.getVariableNameFromHyperlink(t));if(this.isServerHyperlink(t))return String.stiFormat("Server: {0}",this.getVariableNameFromHyperlink(t));if(this.isFileHyperlink(t))return String.stiFormat("{0}: {1}",i.get("PropertyMain","File"),this.getFileNameFromHyperlink(t));return String.stiFormat("{0}: {1}",i.get("PropertyMain","Hyperlink"),t)},e.serverIdent="stimulsoft-server://",e.resourceIdent="resource://",e.variableIdent="variable://",e.fileIdent="file://",e}();e.StiHyperlinkProcessor=n}(i=e.Helpers||(e.Helpers={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiImageFromURL,n=t.Report.Helpers.StiHyperlinkProcessor,o=t.Report.Helpers.StiExpressionHelper,a=t.Report.Events.StiGetImageDataEventHandler,s=t.Report.Events.StiValueEventHandler,l=t.Report.Events.StiGetImageDataEventArgs,u=t.Report.Events.StiValueEventArgs,c=t.Report.Events.StiGetImageDataEvent,p=t.Report.Events.StiGetImageURLEvent,h=t.System.Enum,g=t.Base.StiJsonSaveMode,m=t.System.Drawing.Image,d=t.Report.Components.IStiBreakable,S=t.Base.Drawing.StiImageConverter,f=t.Report.Components.StiImageHelper,y=t.Report.Expressions.StiExpression,b=t.System.Drawing.Rectangle,C=function(C){function v(){var t=null!==C&&C.apply(this,arguments)||this;return t._imageRotation=i.StiImageRotation.None,t._image=null,t._file=String.empty,t._dataColumn=String.empty,t._imageURL=String.empty,t._imageData=String.empty,t}return __extends(v,C),v.prototype.implements=function(){return v.ImplementsStiImage||(v.ImplementsStiImage=C.prototype.implements.call(this).concat([d])),v.ImplementsStiImage},v.prototype.saveToJsonObject=function(t){var e=C.prototype.saveToJsonObject.call(this,t);return e.addPropertyBool("CanBreak",this.canBreak),e.addPropertyJObject("GetImageURLEvent",this.getImageURLEvent.saveToJsonObject(t)),e.addPropertyJObject("GetImageDataEvent",this.getImageDataEvent.saveToJsonObject(t)),e.addPropertyEnum("ProcessingDuplicates",i.StiImageProcessingDuplicatesType,this.processingDuplicates,i.StiImageProcessingDuplicatesType.None),e.addPropertyEnum("ImageRotation",i.StiImageRotation,this.imageRotation,i.StiImageRotation.None),e.addPropertyStringNullOfEmpty("File",this.file),e.addPropertyStringNullOfEmpty("DataColumn",this.dataColumn),t==g.Document?e.addPropertyStringNullOfEmpty("ImageURLValue",this.imageURLValue):(e.addPropertyJObject("ImageURL",new y(this.imageURL).saveToJsonObject(t)),e.addPropertyJObject("ImageData",new y(this.imageData).saveToJsonObject(t)),e.addPropertyString("ImageBytes",S.imageToString(this.image))),e},v.prototype.loadFromJsonObject=function(t){C.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"GlobalizedName":break;case"CanBreak":this.canBreak=n.value.toBoolean();break;case"ImageURLValue":this._imageURLValue=n.value;break;case"ImageURL":var o=new y;o.loadFromJsonObject(n.value),this.imageURL=o.value;break;case"ImageData":var o=new y;o.loadFromJsonObject(n.value),this.imageData=o.value;break;case"GetImageURLEvent":var a=new p;a.loadFromJsonObject(n.value),this.getImageURLEvent=a;break;case"GetImageDataEvent":var a=new c;a.loadFromJsonObject(n.value),this.getImageDataEvent=a;break;case"ProcessingDuplicates":this.processingDuplicates=h.parse(i.StiImageProcessingDuplicatesType,n.value);break;case"ImageRotation":this._imageRotation=h.parse(i.StiImageRotation,n.value);break;case"Image":case"ImageBytes":this.image=S.stringToImage(n.value);break;case"File":this._file=n.value;break;case"DataColumn":this._dataColumn=n.value;break}}},v.prototype.loadFromXml=function(t,e){C.prototype.loadFromXml.call(this,t,e);for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];switch(n.nodeName){case"GlobalizedName":break;case"CanBreak":this.canBreak=n.textContent.toBoolean();break;case"ImageURLValue":this._imageURLValue=n.textContent;break;case"ImageURL":var o=new y;o.loadFromXml(n),this.imageURL=o.value;break;case"ImageData":var o=new y;o.loadFromXml(n),this.imageData=o.value;break;case"GetImageURLEvent":break;case"GetImageDataEvent":break;case"ProcessingDuplicates":this.processingDuplicates=h.parse(i.StiImageProcessingDuplicatesType,n.textContent);break;case"ImageRotation":this._imageRotation=h.parse(i.StiImageRotation,n.textContent);break;case"Image":case"ImageBytes":this.image=S.stringToImage(n.textContent);break;case"File":this._file=n.textContent;break;case"DataColumn":this._dataColumn=n.textContent;break}}},v.prototype.getImage=function(t,i){return void 0===i&&(i=e.StiExportFormat.None),this.imageToDraw},v.prototype.getImageFromFile=function(){if(!String.isNullOrEmpty(this.file)){var t=o.parseText(this.page,this.file);return m.fromFile(t)}return null},v.prototype.getImageFromUrl=function(){var e=this.imageURLValue;try{if(!String.isNullOrEmpty(e)){if(null!=n.getResourceNameFromHyperlink(e))return n.getImage(this.report,e);if(null!=n.getVariableNameFromHyperlink(e))return n.getImage(this.report,e);return r.loadBitmap(e)}}catch(e){t.System.StiError.showError(e.message,!1)}return null},v.prototype.getImageFromDataColumn=function(){try{var e=t.Report.Dictionary.StiDataColumn.getDataFromDataColumn(this.report.dictionary,this.dataColumn);return f.getImageFromObject(e)}catch(e){t.System.StiError.showError(e.message,!1)}return null},v.prototype.getImageFromSource=function(){var t=this.getImageFromFile();if(null!=t)return t;if(null!=(t=this.getImageFromDataColumn()))return t;return null},Object.defineProperty(v.prototype,"canBreak",{get:function(){return this.properties.getBool(v.propertyCanBreak,!1)},set:function(t){this.properties.setBool(v.propertyCanBreak,t,!1)},enumerable:!0,configurable:!0}),v.prototype.break=function(t,e,i){return i.ref=0,this.imageToDraw,!0},Object.defineProperty(v.prototype,"imageURLValue",{get:function(){return this._imageURLValue},set:function(t){this._imageURLValue!=t&&(this._imageURLValue=t,null==this._image&&(this.isDesigning||null!=this.report&&this.report.isRendering)&&null!=t&&(this.imageToDraw=this.getImageFromUrl()))},enumerable:!0,configurable:!0}),v.prototype.invokeEvents=function(){try{if(C.prototype.invokeEvents.call(this),this.report.calculationMode==e.StiCalculationMode.Compilation){if(null!=this.events.get(v.eventGetImageURL)&&(null==this.imageURLValue||this.imageURLValue.sti_is(String)&&0==this.imageURLValue.length)){var t=new u;this.invokeGetImageURL(this,t),this.imageURLValue=t.value}}else if(null==this.imageURLValue||this.imageURLValue.sti_is(String)&&0==this.imageURLValue.length){var i=new u;this.invokeGetImageURL(this,i),this.imageURLValue=i.value}if(this.report.calculationMode==e.StiCalculationMode.Compilation){if(null!=this.events.get(v.eventGetImageData)){var r=new l;this.invokeGetImageData(this,r),null!=r.value&&(this.image=r.value)}}else if(!String.isNullOrEmpty(this.imageData)){var r=new l;this.invokeGetImageData(this,r),null!=r.value&&(this.image=r.value)}}catch(t){}},v.prototype.onGetImageURL=function(t){},v.prototype.invokeGetImageURL=function(i,r){try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){this.onGetImageURL(r);var n=this.events.get(v.eventGetImageURL);if(null!=n)try{n(i,r)}catch(r){}}else{this.onGetImageURL(r);var o=t.Report.Engine.StiParser.StiParser.parseTextValue(this.imageURL,this,i);null!=o&&(r.value=o.toString());var n=this.events.get(v.eventGetImageURL);if(null!=n)try{n(i,r)}catch(r){}}}catch(t){}},Object.defineProperty(v.prototype,"getImageURLEvent",{get:function(){return new p(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(v.eventGetImageURL,s.create(t.script,this.report))},enumerable:!0,configurable:!0}),v.prototype.onGetImageData=function(t){},v.prototype.invokeGetImageData=function(i,r){try{if(this.report.calculationMode==e.StiCalculationMode.Compilation){this.onGetImageData(r);var n=this.events.get(v.eventGetImageData);if(null!=n)try{n(i,r)}catch(r){}}else{this.onGetImageData(r);var o=t.Report.Engine.StiParser.StiParser.parseTextValue(this.imageData,this,i);o.sti_is(m)&&(r.value=o);var n=this.events.get(v.eventGetImageData);if(null!=n)try{n(i,r)}catch(r){}}}catch(t){}},Object.defineProperty(v.prototype,"defaultClientRectangle",{get:function(){return new b(0,0,100,100)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"getImageDataEvent",{get:function(){return new c(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(v.eventGetImageData,a.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"processingDuplicates",{get:function(){return this.properties.get(v.propertyProcessingDuplicates,i.StiImageProcessingDuplicatesType.None)},set:function(t){this.properties.set(v.propertyProcessingDuplicates,t,i.StiImageProcessingDuplicatesType.None)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"imageRotation",{get:function(){return this._imageRotation},set:function(t){this._imageRotation=t},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"image",{get:function(){return this._image},set:function(t){this._image!=t&&(this._image=t,this.imageToDraw=this._image)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"margins",{get:function(){return this.properties.get(v.propertyMargins,i.StiMargins.empty)},set:function(t){this.properties.set(v.propertyMargins,t,i.StiMargins.empty)},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"file",{get:function(){return this._file},set:function(e){if(this._file!=e&&(this._file=e,null==this.image))try{var i=this.getImageFromFile();this.imageToDraw=i}catch(e){t.System.StiError.showError(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dataColumn",{get:function(){return this._dataColumn},set:function(t){this._dataColumn=t,this.imageToDraw=null},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"imageURL",{get:function(){return this._imageURL},set:function(t){this._imageURL=t,this.imageToDraw=null},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"imageData",{get:function(){return this._imageData},set:function(t){this._imageData=t,this.imageToDraw=null},enumerable:!0,configurable:!0}),v.prototype.convertImageMargins=function(t,e){var i=this.margins;if(i.isEmpty)return t;var r=this.page.zoom;e||(r=1);var n=i.left,o=i.right,a=i.top,s=i.bottom;return 0!=n&&(t.x+=n*r,t.width-=n*r),0!=a&&(t.y+=a*r,t.height-=a*r),0!=o&&(t.width-=o*r),0!=s&&(t.height-=s*r),t},v.propertyCanBreak=Math.random().toString().substr(2),v.eventGetImageURL={},v.eventGetImageData={},v.propertyProcessingDuplicates=Math.random().toString().substr(2),v.propertyMargins=Math.random().toString().substr(2),v}(i.StiView);i.StiImage=C}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiBorder,r=t.Base.Drawing.StiBorderSides,n=t.System.Drawing.Point,o=t.System.Drawing.Rectangle,a=function(t){function a(e){void 0===e&&(e=o.empty);var i=t.call(this,e)||this;return i._border=null,i._topSide=!0,i._leftSide=!0,i._bottomSide=!0,i._rightSide=!0,i}return __extends(a,t),a.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiBorder])},a.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyBool("TopSide",this.topSide,!0),i.addPropertyBool("LeftSide",this.leftSide,!0),i.addPropertyBool("BottomSide",this.bottomSide,!0),i.addPropertyBool("RightSide",this.rightSide,!0),i},a.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"TopSide":this._topSide=n.value.toBoolean();break;case"LeftSide":this._leftSide=n.value.toBoolean();break;case"BottomSide":this._bottomSide=n.value.toBoolean();break;case"RightSide":this._rightSide=n.value.toBoolean();break}}},a.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"TopSide":this._topSide=n.textContent.toBoolean();break;case"LeftSide":this._leftSide=n.textContent.toBoolean();break;case"BottomSide":this._bottomSide=n.textContent.toBoolean();break;case"RightSide":this._rightSide=n.textContent.toBoolean();break}}},Object.defineProperty(a.prototype,"border",{get:function(){return null==this._border&&(this._border=new i(r.All,this.color,this.size,this.style,!1,0,null)),this._border},set:function(t){},enumerable:!0,configurable:!0}),a.prototype.convert=function(e,i,r){void 0===r&&(r=!1),null==this.getStartPoint()&&null==this.getEndPoint()&&t.prototype.convert.call(this,e,i,r)},Object.defineProperty(a.prototype,"width",{get:function(){var e=this.getStartPoint(),i=this.getEndPoint();if(null==e||null==i)return t.prototype.getWidth.call(this);var r=new n(e.left,e.top),o=new n(i.left,i.top);return r=e.componentToPage(r),o=i.componentToPage(o),Math.round(o.x-r.x,2)},set:function(e){t.prototype.setWidth.call(this,e);var i=this.getStartPoint(),r=this.getEndPoint();if(null!=i&&null!=r){var o=new n(i.left,i.top);o=i.componentToPage(o);var a=new n(o.x+e,o.y);a=r.pageToComponent(a),r.left=a.x}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"topSide",{get:function(){return this._topSide},set:function(t){this._topSide=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"leftSide",{get:function(){return this._leftSide},set:function(t){this._leftSide=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bottomSide",{get:function(){return this._bottomSide},set:function(t){this._bottomSide=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rightSide",{get:function(){return this._rightSide},set:function(t){this._rightSide=t},enumerable:!0,configurable:!0}),a.prototype.createNew=function(){return new a},a}(e.StiCrossLinePrimitive);e.StiRectanglePrimitive=a}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetDataUrl"},e}(t.StiEvent);t.StiGetDataUrlEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Events.StiGetDataUrlEventHandler,n=t.Report.Events.StiGetDataUrlEvent,o=t.Report.Components.IStiEditable,a=t.Base.Drawing.StiBorder,s=t.System.Drawing.Color,l=t.Base.StiJsonReportObjectHelper,u=t.Report.Expressions.StiExpression,c=t.System.Text.StiReportObjectStringConverter,p=function(t){function p(){var e=null!==t&&t.apply(this,arguments)||this;return e._border=new a,e._margins=new i.StiMargins(0,0,0,0),e._defaultFont=null,e._defaultColor=s.empty,e._wordWrap=!0,e._detectUrls=!0,e._backColor=s.white,e._dataColumn=String.empty,e._wysiwyg=!1,e._rightToLeft=!1,e._dataUrl=String.empty,e}return __extends(p,t),p.prototype.implements=function(){return p.implementsStiRichText||(p.implementsStiRichText=t.prototype.implements.call(this).concat([o,i.IStiBreakable,i.IStiBorder,e.IStiGlobalizationProvider,i.IStiBackColor])),p.implementsStiRichText},p.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("GlobalizedName"),i.removeProperty("LinesOfUnderline"),i.removeProperty("HideZeros"),i.removeProperty("ProcessingDuplicates"),i.removeProperty("MaxNumberOfLines"),i.addPropertyBool("CanBreak",this.canBreak,!1),i.addPropertyStringNullOfEmpty("Border",l.Serialize.jBorder(this.border)),i.addPropertyJObject("GetDataUrlEvent",this.getDataUrlEvent.saveToJsonObject(e)),i.addPropertyJObject("Margins",this.margins.saveToJsonObject(e,0,0,0,0)),i.addPropertyBool("WordWrap",this.wordWrap,!0),i.addPropertyBool("DetectUrls",this.detectUrls,!0),i.addPropertyStringNullOfEmpty("BackColor",l.Serialize.jColor(this.backColor,s.white)),i.addPropertyStringNullOfEmpty("DataColumn",this.dataColumn),i.addPropertyJObject("DataUrl",new u(this.dataUrl).saveToJsonObject(e)),i.addPropertyBool("Wysiwyg",this.wysiwyg),i.addPropertyBool("RightToLeft",this.rightToLeft),i},p.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var o=r[i];switch(o.name){case"CanBreak":this.canBreak=o.value.toBoolean();break;case"Border":this.border=l.Deserialize.border(o.value);break;case"GetDataUrlEvent":var a=new n;a.loadFromJsonObject(o.value),this.getDataUrlEvent=a;break;case"Margins":this.margins.loadFromJsonObject(o.value);break;case"WordWrap":this.wordWrap=o.value.toBoolean();break;case"DetectUrls":this.detectUrls=o.value.toBoolean();break;case"BackColor":this.backColor=l.Deserialize.color(o.value);break;case"DataColumn":this.dataColumn=o.value.toString();break;case"DataUrl":var s=new u;s.loadFromJsonObject(o.value),this.dataUrl=s.value;break;case"FullConvertExpression":break;case"Wysiwyg":this.wysiwyg=o.value.toBoolean();break;case"RightToLeft":this.rightToLeft=o.value.toBoolean();break}}},p.prototype.loadFromXml=function(e,r){t.prototype.loadFromXml.call(this,e,r);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"CanBreak":this.canBreak=o.textContent.toBoolean();break;case"Border":case"br":this.border=a.loadFromXml(o.textContent);break;case"GetDataUrlEvent":break;case"Margins":this.margins=i.StiMargins.loadFromXml(o);break;case"WordWrap":this.wordWrap=o.textContent.toBoolean();break;case"DetectUrls":this.detectUrls=o.textContent.toBoolean();break;case"BackColor":this.backColor=c.convertStringToColor(o.textContent);break;case"DataColumn":this.dataColumn=o.textContent;break;case"DataUrl":var s=new u;s.loadFromXml(o),this.dataUrl=s.value;break;case"FullConvertExpression":break;case"Wysiwyg":this.wysiwyg=o.textContent.toBoolean();break;case"RightToLeft":this.rightToLeft=o.textContent.toBoolean();break}}},Object.defineProperty(p.prototype,"canBreak",{get:function(){return this.properties.getBool(p.propertyCanBreak,!1)},set:function(t){this.properties.setBool(p.propertyCanBreak,t,!1)},enumerable:!0,configurable:!0}),p.prototype.clone=function(e){var i=t.prototype.clone.call(this,e);return null!=this._border?i._border=this._border.clone():i._border=null,i},p.prototype.onGetDataUrl=function(t){},p.prototype.invokeGetDataUrl=function(t,e){try{this.onGetDataUrl(e);var i=this.events.get(p.eventGetDataUrl);if(null!=i)try{i(t,e)}catch(e){}}catch(t){}},Object.defineProperty(p.prototype,"getDataUrlEvent",{get:function(){return new n(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(p.eventGetDataUrl,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),p.prototype.setString=function(t,e){if("Text"==t)this.setTextInternal(e);else if("ToolTip"==t)this.toolTip=e;else if("Tag"==t)this.tag=e;else{if("Hyperlink"!=t)throw String.stiFormat("Property with name {0}",t);this.hyperlink=e}},p.prototype.getString=function(t){if("Text"==t)return this.getTextInternal();if("Tag"==t)return this.tag;if("ToolTip"==t)return this.toolTip;if("Hyperlink"==t)return this.hyperlink;throw String.stiFormat("Property with name {0}",t)},p.prototype.getAllStrings=function(){var t=[];return StiOptions.Engine.Globalization.allowUseText&&t.add("Text"),StiOptions.Engine.Globalization.allowUseTag&&t.add("Tag"),StiOptions.Engine.Globalization.allowUseToolTip&&t.add("ToolTip"),StiOptions.Engine.Globalization.allowUseHyperlink&&t.add("Hyperlink"),t},Object.defineProperty(p.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"margins",{get:function(){return this._margins},set:function(t){this._margins=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"defaultFont",{get:function(){return this._defaultFont},set:function(t){this._defaultFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"defaultColor",{get:function(){return this._defaultColor},set:function(t){this._defaultColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"detectUrls",{get:function(){return this._detectUrls},set:function(t){this._detectUrls=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"backColor",{get:function(){return this._backColor},set:function(t){this._backColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"dataColumn",{get:function(){return this._dataColumn},set:function(t){this._dataColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"wysiwyg",{get:function(){return this._wysiwyg},set:function(t){this._wysiwyg=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"rightToLeft",{get:function(){return this._rightToLeft},set:function(t){this._rightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"dataUrl",{get:function(){return this._dataUrl},set:function(t){this._dataUrl=t},enumerable:!0,configurable:!0}),p.propertyCanBreak=Math.random().toString().substr(2),p.eventGetDataUrl={},p}(i.StiSimpleText);i.StiRichText=p}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=function(t){function e(e){void 0===e&&(e=i.empty);var r=t.call(this,e)||this;return r._round=.2,r}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyNumber("Round",this.round,.2),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"Round":this._round=n.value.toNumber();break}}},e.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"Round":this._round=n.textContent.toNumber();break}}},Object.defineProperty(e.prototype,"round",{get:function(){return this._round},set:function(t){t>0&&t<=.5&&(this._round=t)},enumerable:!0,configurable:!0}),e.prototype.createNew=function(){return new e},e}(e.StiRectanglePrimitive);e.StiRoundedRectanglePrimitive=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Image,n=t.System.Enum,o=t.Base.StiJsonReportObjectHelper,a=t.Base.Drawing.StiBrush,s=t.System.Drawing.Color,l=t.Base.Drawing.StiSolidBrush,u=t.System.Drawing.Rectangle,c=t.Base.Drawing.StiPenStyle,p=t.Report.Components.IStiBorderColor,h=t.Report.Components.IStiShape,g=t.System.Xml.XmlTextWriter,m=t.System.Text.Encoding,d=t.System.Drawing.Imaging.ImageFormat,S=function(S){function f(t){void 0===t&&(t=u.empty);var e=S.call(this,t)||this;return e._brush=new l,e._borderColor=s.black,e._style=c.Solid,e._size=1,e._shapeType=new i.StiRectangleShapeType,e}return __extends(f,S),f.prototype.implements=function(){return this._implementsStiShape||(this._implementsStiShape=S.prototype.implements.call(this).concat([i.IStiBrush,p,i.IStiExportImageExtended,i.IStiExportImage,h])),this._implementsStiShape},f.prototype.saveToJsonObject=function(t){var e=S.prototype.saveToJsonObject.call(this,t);return e.removeProperty("CanShrink"),e.removeProperty("CanGrow"),e.addPropertyStringNullOfEmpty("Brush",o.Serialize.jBrush(this.brush)),e.addPropertyStringNullOfEmpty("BorderColor",o.Serialize.jColor(this.borderColor,s.black)),e.addPropertyEnum("Style",c,this.style,c.Solid),e.addPropertyNumber("Size",this.size,1),e.addPropertyJObject("ShapeType",this.shapeType.saveToJsonObject(t)),e},f.prototype.loadFromJsonObject=function(t){S.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var a=r[e];switch(a.name){case"Brush":this._brush=o.Deserialize.brush(a.value);break;case"BorderColor":this._borderColor=o.Deserialize.color(a.value);break;case"Style":this._style=n.parse(c,a.value);break;case"Size":this._size=a.value.toNumber();break;case"ShapeType":this._shapeType=i.StiShapeTypeService.loadFromJsonObjectInternal(a.value);break}}},f.prototype.loadFromXml=function(e,r){S.prototype.loadFromXml.call(this,e,r);for(var o=0;o<e.childNodes.length;o++){var s=e.childNodes[o];switch(s.nodeName){case"Brush":case"bh":this._brush=a.loadFromXml(s.textContent);break;case"BorderColor":this._borderColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(s.textContent);break;case"Style":this._style=n.parse(c,s.textContent);break;case"Size":this._size=s.textContent.toNumber();break;case"ShapeType":this._shapeType=i.StiShapeTypeService.convertFromXml(s),this._shapeType.loadFromXml(s);break}}},f.prototype.clone=function(t){var e=S.prototype.clone.call(this,t);return null!=this._shapeType?e._shapeType=this.shapeType.clone():e._shapeType=null,e},f.prototype.convert=function(t,e,r){void 0===r&&(r=!1),S.prototype.convert.call(this,t,e,r),this.shapeType.sti_is(i.StiOctagonShapeType)&&(this.shapeType.bevel=e.convertFromHInches(t.convertToHInches(this.shapeType.bevel)))},f.prototype.getImage=function(i,n){void 0===n&&(n=e.StiExportFormat.None);var o=new t.Report.Export.StiSvgData;o.x=0,o.y=0,o.width=this.report.unit.convertToHInches(this.right)-10,o.height=this.report.unit.convertToHInches(this.bottom)-10,o.component=this;var a=new g(m.UTF8);t.Report.Export.StiSvgHelper.writeShape(a,o),a.flush();var s=document.createElement("canvas");s.width=o.width+10,s.height=o.height+10;var l=new r,u=String.stiFormat('<svg xmlns="http://www.w3.org/2000/svg" style="width: {0}; height: {1}"><rect x="0" y="0" width="{0}" height="{1}" style="fill: white;"/>{2}</svg>',o.width+10,o.height+10,a.textWriter.getStringBuilder().toString());canvg(s,u);var c=s.toDataURL(d.Jpeg.mimeType,1);return l.base64=c,l},f.prototype.isExportAsImage=function(t){return!0},Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"borderColor",{get:function(){return this._borderColor},set:function(t){this._borderColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"defaultClientRectangle",{get:function(){return new u(0,0,64,64)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"style",{get:function(){return this._style},set:function(t){this._style=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"size",{get:function(){return this._size},set:function(t){t!=this._size&&(this._size=t<1?1:t)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"shapeType",{get:function(){return this._shapeType},set:function(t){this._shapeType=t},enumerable:!0,configurable:!0}),f}(i.StiComponent);i.StiShape=S}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Rectangle,n=function(t){function i(e){return void 0===e&&(e=r.empty),t.call(this,e)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiStartPointPrimitive},enumerable:!0,configurable:!0}),i}(i.StiPointPrimitive);i.StiStartPointPrimitive=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJsonReportObjectHelper,r=t.Base.Drawing.StiBorder,n=t.Base.Drawing.StiBorderSides,o=t.Base.Drawing.StiCap,a=t.System.Drawing.Rectangle,s=t.System.Drawing.Point,l=function(t){function l(e){void 0===e&&(e=a.empty);var i=t.call(this,e)||this;return i._border=null,i._startCap=new o,i._endCap=new o,i}return __extends(l,t),l.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiBorder])},l.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyStringNullOfEmpty("StartCap",i.Serialize.jCap(this._startCap)),r.addPropertyStringNullOfEmpty("EndCap",i.Serialize.jCap(this._endCap)),r},l.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var r=0,n=e.properties();r<n.length;r++){var o=n[r];switch(o.name){case"StartCap":this._startCap=i.Deserialize.jCap(o.value);break;case"EndCap":this._endCap=i.Deserialize.jCap(o.value);break}}},l.prototype.loadFromXml=function(e,i){t.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"StartCap":this._startCap.loadFromXml(n);break;case"EndCap":this._endCap.loadFromXml(n);break}}},l.prototype.clone=function(e){var i=t.prototype.clone.call(this,e);return null!=this._startCap?i._startCap=this._startCap.clone():i._startCap=null,null!=this._endCap?i._endCap=this._endCap.clone():i._endCap=null,i},Object.defineProperty(l.prototype,"border",{get:function(){return null==this._border&&(this._border=new r(n.Left,this.color,this.size,this.style,!1,0,null)),this._border},set:function(t){},enumerable:!0,configurable:!0}),l.prototype.convert=function(e,i,r){void 0===r&&(r=!1),null==this.getStartPoint()&&null==this.getEndPoint()&&t.prototype.convert.call(this,e,i,r)},Object.defineProperty(l.prototype,"startCap",{get:function(){return this._startCap},set:function(t){this._startCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"endCap",{get:function(){return this._endCap},set:function(t){this._endCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"width",{get:function(){if(null!=this.page)return this.page.unit.convertFromHInches(1);return 0},set:function(e){if(this.isDesigning){t.prototype.setWidth.call(this,e);var i=this.getStartPoint(),r=this.getEndPoint();if(null!=i&&null!=r){var n=new s(i.left,i.top);n=i.componentToPage(n);var o=new s(n.x,n.y);o=r.pageToComponent(o),r.left=o.x}}},enumerable:!0,configurable:!0}),l.prototype.createNew=function(){return new l},l}(e.StiCrossLinePrimitive);e.StiVerticalLinePrimitive=l}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.StyleNone=0]="StyleNone",t[t.Style11=11]="Style11",t[t.Style12=12]="Style12",t[t.Style13=13]="Style13",t[t.Style14=14]="Style14",t[t.Style15=15]="Style15",t[t.Style16=16]="Style16",t[t.Style17=17]="Style17",t[t.Style18=18]="Style18",t[t.Style19=19]="Style19",t[t.Style31=31]="Style31",t[t.Style32=32]="Style32",t[t.Style33=33]="Style33",t[t.Style34=34]="Style34",t[t.Style35=35]="Style35",t[t.Style36=36]="Style36",t[t.Style37=37]="Style37",t[t.Style38=38]="Style38",t[t.Style39=39]="Style39",t[t.Style41=41]="Style41",t[t.Style42=42]="Style42",t[t.Style43=43]="Style43",t[t.Style44=44]="Style44",t[t.Style45=45]="Style45",t[t.Style46=46]="Style46",t[t.Style47=47]="Style47",t[t.Style48=48]="Style48",t[t.Style49=49]="Style49",t[t.Style51=51]="Style51",t[t.Style52=52]="Style52",t[t.Style53=53]="Style53",t[t.Style54=54]="Style54",t[t.Style55=55]="Style55",t[t.Style56=56]="Style56",t[t.Style57=57]="Style57",t[t.Style58=58]="Style58",t[t.Style59=59]="Style59"}(e=t.StiTableStyle||(t.StiTableStyle={}));var i;!function(t){t[t.Text=0]="Text",t[t.Image=1]="Image",t[t.CheckBox=2]="CheckBox",t[t.RichText=3]="RichText"}(i=t.StiTablceCellType||(t.StiTablceCellType={}));var r;!function(t){t[t.None=0]="None",t[t.Page=1]="Page",t[t.Table=2]="Table"}(r=t.StiTableAutoWidth||(t.StiTableAutoWidth={}));var n;!function(t){t[t.None=0]="None",t[t.LastColumns=1]="LastColumns",t[t.FullTable=2]="FullTable"}(n=t.StiTableAutoWidthType||(t.StiTableAutoWidthType={}))}(e=t.Table||(t.Table={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiTableCell="IStiTableCell"}(e=t.Table||(t.Table={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiTableComponent="IStiTableComponent"}(e=t.Table||(t.Table={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t){this._widths=new Array(t),this._fixedColumn=new Array(t);for(var e=0;e<t;e++)this._widths[e]=0,this._fixedColumn[e]=!1}return t.prototype.setFixedColumn=function(t,e){this._fixedColumn[t]=!0,this._widths[t]<e&&(this._widths[t]=e)},t.prototype.add=function(t,e){this._fixedColumn[t]||(this._widths[t]+=e)},t.prototype.addLastNotFixed=function(t){for(var e=this._fixedColumn.length-1;0!=e;e--)if(!this._fixedColumn[e])return void(this._widths[e]+=t)},t.prototype.subtract=function(t,e){this._fixedColumn[t]||(this._widths[t]-=e)},t.prototype.setWidth=function(t,e){this._fixedColumn[t]||(this._widths[t]=e)},t.prototype.getFixed=function(t){return this._fixedColumn[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this._widths.length},enumerable:!0,configurable:!0}),t.prototype.getCountNotFixedColumn=function(){for(var t=0,e=0;e<this._fixedColumn.length;e++)this._fixedColumn[e]||t++;return t},t.prototype.getWidth=function(t){return this._widths[t]},t.prototype.normalize=function(){for(var t=0,e=0,i=0;i<this._widths.length;i++){t+=+this._widths[i];var r=Math.round(t-e,2);this._widths[i]=+r,e+=r}},t}();t.StiColumnSize=e}(e=t.Table||(t.Table={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Base.Localization.StiLocalization,o=t.System.Collections.Hashtable,a=t.System.Drawing.Rectangle,s=t.System.Drawing.Size,l=t.System.Enum,u=t.System.Drawing.Color,c=t.Base.Drawing.StiSolidBrush,p=t.Base.Drawing.StiBrush,h=t.Base.Drawing.StiBorder,g=t.Base.Drawing.StiBorderSides,m=t.Base.Drawing.StiPenStyle,d=t.System.Drawing.Font,S=t.System.StringComparison,f=t.Base.Drawing.StiEmptyBrush,y=function(y){function C(t){void 0===t&&(t=a.empty);var e=y.call(this,t)||this;return e.isConverted=!1,e._dockableTable=!0,e._autoWidth=r.StiTableAutoWidth.None,e._autoWidthType=r.StiTableAutoWidthType.None,e._rowCount=5,e._columnCount=5,e._footerRowsCount=0,e._headerRowsCount=0,e._headerPrintOn=i.StiPrintOnType.AllPages,e._headerCanGrow=!0,e._headerCanShrink=!1,e._headerCanBreak=!1,e._headerPrintAtBottom=!1,e._headerPrintIfEmpty=!0,e._headerPrintOnAllPages=!0,e._headerPrintOnEvenOddPages=i.StiPrintOnEvenOddPagesType.Ignore,e._footerPrintOn=i.StiPrintOnType.AllPages,e._footerCanGrow=!0,e._footerCanShrink=!1,e._footerCanBreak=!1,e._footerPrintAtBottom=!1,e._footerPrintIfEmpty=!0,e._footerPrintOnAllPages=!1,e._footerPrintOnEvenOddPages=i.StiPrintOnEvenOddPagesType.Ignore,e._numberID=0,e._tableStyle=r.StiTableStyle.StyleNone,e._rowCount=e._columnCount=5,e.placeOnToolbox=!1,e}return __extends(C,y),C.prototype.implements=function(){return C.ImplementsStiTable||(C.ImplementsStiTable=y.prototype.implements.call(this).concat([r.IStiTableComponent])),C.ImplementsStiTable},C.prototype.saveToJsonObject=function(t){var e=y.prototype.saveToJsonObject.call(this,t);return e.removeProperty("Columns"),e.removeProperty("ColumnWidth"),e.removeProperty("ColumnGaps"),e.removeProperty("MinRowsInColumn"),e.addPropertyBool("DockableTable",this.dockableTable,!0),e.addPropertyEnum("AutoWidth",r.StiTableAutoWidth,this.autoWidth,r.StiTableAutoWidth.None),e.addPropertyEnum("AutoWidthType",r.StiTableAutoWidthType,this.autoWidthType,r.StiTableAutoWidthType.None),e.addPropertyNumber("RowCount",this.rowCount,5),e.addPropertyNumber("ColumnCount",this.columnCount,5),e.addPropertyNumber("FooterRowsCount",this.footerRowsCount),e.addPropertyNumber("HeaderRowsCount",this.headerRowsCount),e.addPropertyEnum("HeaderPrintOn",i.StiPrintOnType,this.headerPrintOn,i.StiPrintOnType.AllPages),e.addPropertyBool("HeaderCanGrow",this.headerCanGrow,!0),e.addPropertyBool("HeaderCanShrink",this.headerCanShrink),e.addPropertyBool("HeaderCanBreak",this.headerCanBreak),e.addPropertyBool("HeaderPrintAtBottom",this.headerPrintAtBottom),e.addPropertyBool("HeaderPrintIfEmpty",this.headerPrintIfEmpty,!0),e.addPropertyBool("HeaderPrintOnAllPages",this.headerPrintOnAllPages,!0),e.addPropertyEnum("HeaderPrintOnEvenOddPages",i.StiPrintOnEvenOddPagesType,this.headerPrintOnEvenOddPages,i.StiPrintOnEvenOddPagesType.Ignore),e.addPropertyEnum("FooterPrintOn",i.StiPrintOnType,this.footerPrintOn,i.StiPrintOnType.AllPages),e.addPropertyBool("FooterCanGrow",this.footerCanGrow,!0),e.addPropertyBool("FooterCanShrink",this.footerCanShrink),e.addPropertyBool("FooterCanBreak",this.footerCanBreak),e.addPropertyBool("FooterPrintAtBottom",this.footerPrintAtBottom),e.addPropertyBool("FooterPrintIfEmpty",this.footerPrintIfEmpty,!0),e.addPropertyBool("FooterPrintOnAllPages",this.footerPrintOnAllPages),e.addPropertyEnum("FooterPrintOnEvenOddPages",i.StiPrintOnEvenOddPagesType,this.footerPrintOnEvenOddPages,i.StiPrintOnEvenOddPagesType.Ignore),e.addPropertyNumber("NumberID",this.numberID),e.addPropertyEnum("TableStyle",r.StiTableStyle,this.tableStyle,r.StiTableStyle.StyleNone),e},C.prototype.loadFromJsonObject=function(t){y.prototype.loadFromJsonObject.call(this,t);for(var e=0,n=t.properties();e<n.length;e++){var o=n[e];switch(o.name){case"DockableTable":this._dockableTable=o.value.toBoolean();break;case"AutoWidth":this._autoWidth=l.parse(r.StiTableAutoWidth,o.value);break;case"AutoWidthType":this._autoWidthType=l.parse(r.StiTableAutoWidthType,o.value);break;case"RowCount":this._rowCount=o.value.toNumber();break;case"ColumnCount":this._columnCount=o.value.toNumber();break;case"FooterRowsCount":this._footerRowsCount=o.value.toNumber();break;case"HeaderRowsCount":this._headerRowsCount=o.value.toNumber();break;case"HeaderPrintOn":this._headerPrintOn=l.parse(i.StiPrintOnType,o.value);break;case"HeaderCanGrow":this._headerCanGrow=o.value.toBoolean();break;case"HeaderCanShrink":this._headerCanShrink=o.value.toBoolean();break;case"HeaderCanBreak":this._headerCanBreak=o.value.toBoolean();break;case"HeaderPrintAtBottom":this._headerPrintAtBottom=o.value.toBoolean();break;case"HeaderPrintIfEmpty":this._headerPrintIfEmpty=o.value.toBoolean();break;case"HeaderPrintOnAllPages":this._headerPrintOnAllPages=o.value.toBoolean();break;case"HeaderPrintOnEvenOddPages":this._headerPrintOnEvenOddPages=l.parse(i.StiPrintOnEvenOddPagesType,o.value);break;case"FooterPrintOn":this._footerPrintOn=l.parse(i.StiPrintOnType,o.value);break;case"FooterCanGrow":this._footerCanGrow=o.value.toBoolean();break;case"FooterCanShrink":this._footerCanShrink=o.value.toBoolean();break;case"FooterCanBreak":this._footerCanBreak=o.value.toBoolean();break;case"FooterPrintAtBottom":this._footerPrintAtBottom=o.value.toBoolean();break;case"FooterPrintIfEmpty":this._footerPrintIfEmpty=o.value.toBoolean();break;case"FooterPrintOnAllPages":this._footerPrintOnAllPages=o.value.toBoolean();break;case"FooterPrintOnEvenOddPages":this._footerPrintOnEvenOddPages=l.parse(i.StiPrintOnEvenOddPagesType,o.value);break;case"NumberID":this._numberID=o.value.toNumber();break;case"TableStyle":this._tableStyle=l.parse(r.StiTableStyle,o.value);break}}},C.prototype.loadFromXml=function(t,e){y.prototype.loadFromXml.call(this,t,e);for(var n=0;n<t.childNodes.length;n++){var o=t.childNodes[n];switch(o.nodeName){case"DockableTable":this._dockableTable=o.textContent.toBoolean();break;case"AutoWidth":this._autoWidth=l.parse(r.StiTableAutoWidth,o.textContent);break;case"AutoWidthType":this._autoWidthType=l.parse(r.StiTableAutoWidthType,o.textContent);break;case"RowCount":this._rowCount=o.textContent.toNumber();break;case"ColumnCount":this._columnCount=o.textContent.toNumber();break;case"FooterRowsCount":this._footerRowsCount=o.textContent.toNumber();break;case"HeaderRowsCount":this._headerRowsCount=o.textContent.toNumber();break;case"HeaderPrintOn":this._headerPrintOn=l.parse(i.StiPrintOnType,o.textContent);break;case"HeaderCanGrow":this._headerCanGrow=o.textContent.toBoolean();break;case"HeaderCanShrink":this._headerCanShrink=o.textContent.toBoolean();break;case"HeaderCanBreak":this._headerCanBreak=o.textContent.toBoolean();break;case"HeaderPrintAtBottom":this._headerPrintAtBottom=o.textContent.toBoolean();break;case"HeaderPrintIfEmpty":this._headerPrintIfEmpty=o.textContent.toBoolean();break;case"HeaderPrintOnAllPages":this._headerPrintOnAllPages=o.textContent.toBoolean();break;case"HeaderPrintOnEvenOddPages":this._headerPrintOnEvenOddPages=l.parse(i.StiPrintOnEvenOddPagesType,o.textContent);break;case"FooterPrintOn":this._footerPrintOn=l.parse(i.StiPrintOnType,o.textContent);break;case"FooterCanGrow":this._footerCanGrow=o.textContent.toBoolean();break;case"FooterCanShrink":this._footerCanShrink=o.textContent.toBoolean();break;case"FooterCanBreak":this._footerCanBreak=o.textContent.toBoolean();break;case"FooterPrintAtBottom":this._footerPrintAtBottom=o.textContent.toBoolean();break;case"FooterPrintIfEmpty":this._footerPrintIfEmpty=o.textContent.toBoolean();break;case"FooterPrintOnAllPages":this._footerPrintOnAllPages=o.textContent.toBoolean();break;case"FooterPrintOnEvenOddPages":this._footerPrintOnEvenOddPages=l.parse(i.StiPrintOnEvenOddPagesType,o.textContent);break;case"NumberID":this._numberID=o.textContent.toNumber();break;case"TableStyle":this._tableStyle=l.parse(r.StiTableStyle,o.textContent);break}}},Object.defineProperty(C.prototype,"componentId",{get:function(){return e.StiComponentId.StiTable},enumerable:!0,configurable:!0}),C.prototype.clone=function(t,e){var n=y.prototype.clone.call(this,t,!1);if(n._numberID=this._numberID,n._rowCount=this._rowCount,n._columnCount=this._columnCount,n._footerRowsCount=this._footerRowsCount,n._headerRowsCount=this._headerRowsCount,n._tableStyle=this._tableStyle,n._dockableTable=this._dockableTable,n._headerPrintOn=this._headerPrintOn,n._headerCanGrow=this._headerCanGrow,n._headerCanShrink=this._headerCanShrink,n._headerCanBreak=this._headerCanBreak,n._headerPrintAtBottom=this._headerPrintAtBottom,n._headerPrintIfEmpty=this._headerPrintIfEmpty,n._headerPrintOnAllPages=this._headerPrintOnAllPages,n._headerPrintOnEvenOddPages=this._headerPrintOnEvenOddPages,n._footerPrintOn=this._footerPrintOn,n._footerCanGrow=this._footerCanGrow,n._footerCanShrink=this._footerCanShrink,n._footerCanBreak=this._footerCanBreak,n._footerPrintAtBottom=this._footerPrintAtBottom,n._footerPrintIfEmpty=this._footerPrintIfEmpty,n._footerPrintOnAllPages=this._footerPrintOnAllPages,n._footerPrintOnEvenOddPages=this._footerPrintOnEvenOddPages,n._autoWidth=this._autoWidth,n._autoWidthType=this._autoWidthType,n.components=new i.StiComponentsCollection(n),e)for(var o=0,a=this.components.list;o<a.length;o++){var s=a[o];switch(s.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:var l=s.clone(!0);l.parent=n,n.components.add(l);break;case r.StiTablceCellType.Image:var u=s.clone(!0);u.parent=n,n.components.add(u);break;case r.StiTablceCellType.CheckBox:var c=s.clone(!0);c.parent=n,n.components.add(c);break;case r.StiTablceCellType.RichText:var p=s.clone(!0);p.parent=n,n.components.add(p);break}}return n},C.prototype.convert=function(t,e,i){void 0===i&&(i=!1),y.prototype.convert.call(this,t,e,i),this.distributeRows(),this.distributeColumns()},Object.defineProperty(C.prototype,"canGrow",{get:function(){return y.prototype.getCanGrow.call(this)},set:function(t){y.prototype.setCanGrow.call(this,t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"localizedName",{get:function(){return n.get("Components","StiTable")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"localizedCategory",{get:function(){return n.get("Report","Bands")},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"dockableTable",{get:function(){return this._dockableTable},set:function(t){this._dockableTable=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"autoWidth",{get:function(){return this._autoWidth},set:function(t){this._autoWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"autoWidthType",{get:function(){return this._autoWidthType},set:function(t){this._autoWidthType=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"rowCount",{get:function(){return this._rowCount},set:function(t){if(t>0){var e=this._rowCount;this._rowCount=t,this.changeRowCount(e,t)}},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"columnCount",{get:function(){return this._columnCount},set:function(t){if(t>0){var e=this._columnCount;this._columnCount=t,this.changeColumnCount(e,t)}},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerRowsCount",{get:function(){return this._footerRowsCount},set:function(t){(!this.isDesigning||t<=this._rowCount-this._headerRowsCount)&&(this._footerRowsCount=t,this.refreshTableStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerRowsCount",{get:function(){return this._headerRowsCount},set:function(t){(!this.isDesigning||t<=this._rowCount-this._footerRowsCount)&&(this._headerRowsCount=t,this.refreshTableStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"defaultHeightCell",{get:function(){if(null!=this.page&&null!=this.page.report)switch(this.page.report.reportUnit){case e.StiReportUnitType.Centimeters:return.8;case e.StiReportUnitType.HundredthsOfInch:return 30;case e.StiReportUnitType.Inches:return.3;case e.StiReportUnitType.Millimeters:return 8}return 1},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerPrintOn",{get:function(){return this._headerPrintOn},set:function(t){this._headerPrintOn=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerCanGrow",{get:function(){return this._headerCanGrow},set:function(t){this._headerCanGrow=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerCanShrink",{get:function(){return this._headerCanShrink},set:function(t){this._headerCanShrink=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerCanBreak",{get:function(){return this._headerCanBreak},set:function(t){this._headerCanBreak=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerPrintAtBottom",{get:function(){return this._headerPrintAtBottom},set:function(t){this._headerPrintAtBottom=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerPrintIfEmpty",{get:function(){return this._headerPrintIfEmpty},set:function(t){this._headerPrintIfEmpty=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerPrintOnAllPages",{get:function(){return this._headerPrintOnAllPages},set:function(t){this._headerPrintOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerPrintOnEvenOddPages",{get:function(){return this._headerPrintOnEvenOddPages},set:function(t){this._headerPrintOnEvenOddPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerPrintOn",{get:function(){return this._footerPrintOn},set:function(t){this._footerPrintOn=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerCanGrow",{get:function(){return this._footerCanGrow},set:function(t){this._footerCanGrow=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerCanShrink",{get:function(){return this._footerCanShrink},set:function(t){this._footerCanShrink=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerCanBreak",{get:function(){return this._footerCanBreak},set:function(t){this._footerCanBreak=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerPrintAtBottom",{get:function(){return this._footerPrintAtBottom},set:function(t){this._footerPrintAtBottom=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerPrintIfEmpty",{get:function(){return this._footerPrintIfEmpty},set:function(t){this._footerPrintIfEmpty=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerPrintOnAllPages",{get:function(){return this._footerPrintOnAllPages},set:function(t){this._footerPrintOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"footerPrintOnEvenOddPages",{get:function(){return this._footerPrintOnEvenOddPages},set:function(t){this._footerPrintOnEvenOddPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"numberID",{get:function(){return this._numberID},set:function(t){this._numberID=t},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"columns",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"columnWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"columnGaps",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"minRowsInColumn",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"minHeight",{get:function(){return y.prototype.getMinHeight.call(this)},set:function(t){y.prototype.setMinHeight.call(this,t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"maxHeight",{get:function(){return y.prototype.getMaxHeight.call(this)},set:function(t){y.prototype.setMaxHeight.call(this,t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"minSize",{get:function(){return new s(0,0)},set:function(t){y.prototype.setMinSize.call(this,t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"rightToLeft",{get:function(){return y.prototype.getRightToLeft.call(this)},set:function(t){y.prototype.setRightToLeft.call(this,t)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"width",{get:function(){return y.prototype.getWidth.call(this)},set:function(t){var e=y.prototype.getWidth.call(this);if(t==y.prototype.getWidth.call(this))return;y.prototype.setWidth.call(this,t),t>0&&t!=e&&this.resizeWidthCell(e)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"height",{get:function(){return y.prototype.getHeight.call(this)},set:function(t){if(y.prototype.setHeight.call(this,t),0==this.components.count&&null!=this.page)return this.selectAll(),void this.createCell()},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"defaultClientRectangle",{get:function(){return new a(0,0,300,120)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"dockable",{get:function(){return this.dockableTable},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerStartColor",{get:function(){return u.fromArgb(144,192,241)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"headerEndColor",{get:function(){return u.fromArgb(144,192,241)},enumerable:!0,configurable:!0}),C.prototype.changeGrowToHeightAtCell=function(t){var e=this.components.indexOf(t);if(-1==e)return;for(var i=Math.trunc(e/this.columnCount),r=i*this.columnCount,n=!1,o=r;o<r+this.columnCount;o++){var a=this.components.getByIndex(o);if(a.canGrow){n||(n=!0);break}}for(var o=r;o<r+this.columnCount;o++){var a=this.components.getByIndex(o);a.growToHeight=n}},Object.defineProperty(C.prototype,"tableStyle",{get:function(){return this._tableStyle},set:function(t){this._tableStyle!=t&&(this._tableStyle=t,0!=+this._tableStyle&&this.refreshTableStyle())},enumerable:!0,configurable:!0}),C.prototype.refreshTableStyle=function(){switch(this._tableStyle){case r.StiTableStyle.StyleNone:break;case r.StiTableStyle.Style11:this.applyStyle1(b.getStyle(r.StiTableStyle.Style11));break;case r.StiTableStyle.Style12:this.applyStyle1(b.getStyle(r.StiTableStyle.Style12));break;case r.StiTableStyle.Style13:this.applyStyle1(b.getStyle(r.StiTableStyle.Style13));break;case r.StiTableStyle.Style14:this.applyStyle1(b.getStyle(r.StiTableStyle.Style14));break;case r.StiTableStyle.Style15:this.applyStyle1(b.getStyle(r.StiTableStyle.Style15));break;case r.StiTableStyle.Style16:this.applyStyle1(b.getStyle(r.StiTableStyle.Style16));break;case r.StiTableStyle.Style17:this.applyStyle1(b.getStyle(r.StiTableStyle.Style17));break;case r.StiTableStyle.Style18:this.applyStyle1(b.getStyle(r.StiTableStyle.Style18));break;case r.StiTableStyle.Style19:this.applyStyle1(b.getStyle(r.StiTableStyle.Style19));break;case r.StiTableStyle.Style31:this.applyStyle3(b.getStyle(r.StiTableStyle.Style31));break;case r.StiTableStyle.Style32:this.applyStyle3(b.getStyle(r.StiTableStyle.Style32));break;case r.StiTableStyle.Style33:this.applyStyle3(b.getStyle(r.StiTableStyle.Style33));break;case r.StiTableStyle.Style34:this.applyStyle3(b.getStyle(r.StiTableStyle.Style34));break;case r.StiTableStyle.Style35:this.applyStyle3(b.getStyle(r.StiTableStyle.Style35));break;case r.StiTableStyle.Style36:this.applyStyle3(b.getStyle(r.StiTableStyle.Style36));break;case r.StiTableStyle.Style37:this.applyStyle3(b.getStyle(r.StiTableStyle.Style37));break;case r.StiTableStyle.Style38:this.applyStyle3(b.getStyle(r.StiTableStyle.Style38));break;case r.StiTableStyle.Style39:this.applyStyle3(b.getStyle(r.StiTableStyle.Style39));break;case r.StiTableStyle.Style41:this.applyStyle4(b.getStyle(r.StiTableStyle.Style41));break;case r.StiTableStyle.Style42:this.applyStyle4(b.getStyle(r.StiTableStyle.Style42));break;case r.StiTableStyle.Style43:this.applyStyle4(b.getStyle(r.StiTableStyle.Style43));break;case r.StiTableStyle.Style44:this.applyStyle4(b.getStyle(r.StiTableStyle.Style44));break;case r.StiTableStyle.Style45:this.applyStyle4(b.getStyle(r.StiTableStyle.Style45));break;case r.StiTableStyle.Style46:this.applyStyle4(b.getStyle(r.StiTableStyle.Style46));break;case r.StiTableStyle.Style47:this.applyStyle4(b.getStyle(r.StiTableStyle.Style47));break;case r.StiTableStyle.Style48:this.applyStyle4(b.getStyle(r.StiTableStyle.Style48));break;case r.StiTableStyle.Style49:this.applyStyle4(b.getStyle(r.StiTableStyle.Style49));break;case r.StiTableStyle.Style51:this.applyStyle5(b.getStyle(r.StiTableStyle.Style51));break;case r.StiTableStyle.Style52:this.applyStyle5(b.getStyle(r.StiTableStyle.Style52));break;case r.StiTableStyle.Style53:this.applyStyle5(b.getStyle(r.StiTableStyle.Style53));break;case r.StiTableStyle.Style54:this.applyStyle5(b.getStyle(r.StiTableStyle.Style54));break;case r.StiTableStyle.Style55:this.applyStyle5(b.getStyle(r.StiTableStyle.Style55));break;case r.StiTableStyle.Style56:this.applyStyle5(b.getStyle(r.StiTableStyle.Style56));break;case r.StiTableStyle.Style57:this.applyStyle5(b.getStyle(r.StiTableStyle.Style57));break;case r.StiTableStyle.Style58:this.applyStyle5(b.getStyle(r.StiTableStyle.Style58));break;case r.StiTableStyle.Style59:this.applyStyle5(b.getStyle(r.StiTableStyle.Style59));break}},C.prototype.applyStyleNone=function(){if(0==this.components.count)return;for(var e=b.getStyle(r.StiTableStyle.StyleNone),i=0,n=this.components.list;i<n.length;i++){var o=n[i];switch(o.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:o.border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.brush=new c(t.System.Drawing.Color.transparent),o.textBrush=new c(e.dataTextColor);break;case r.StiTablceCellType.Image:o.sti_as(r.StiTableCellImage).border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.sti_as(r.StiTableCellImage).brush=new c(t.System.Drawing.Color.transparent);break;case r.StiTablceCellType.CheckBox:o.sti_as(r.StiTableCellCheckBox).border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.sti_as(r.StiTableCellCheckBox).brush=new c(t.System.Drawing.Color.transparent);break;case r.StiTablceCellType.RichText:o.sti_as(r.StiTableCellRichText).border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.sti_as(r.StiTableCellRichText).backColor=c.toColor(new c(t.System.Drawing.Color.transparent));break}}},C.prototype.applyStyleNoneForCell=function(e){var i=b.getStyle(r.StiTableStyle.StyleNone);switch(e.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:e.border=new h(g.All,i.gridColor,1,m.Solid,!1,4,new c(i.gridColor)),e.brush=new c(t.System.Drawing.Color.transparent),e.textBrush=new c(i.dataTextColor);break;case r.StiTablceCellType.Image:e.sti_as(r.StiTableCellImage).border=new h(g.All,i.gridColor,1,m.Solid,!1,4,new c(i.gridColor)),e.sti_as(r.StiTableCellImage).brush=new c(t.System.Drawing.Color.transparent);break;case r.StiTablceCellType.CheckBox:e.sti_as(r.StiTableCellCheckBox).border=new h(g.All,i.gridColor,1,m.Solid,!1,4,new c(i.gridColor)),e.sti_as(r.StiTableCellCheckBox).brush=new c(t.System.Drawing.Color.transparent);break;case r.StiTablceCellType.RichText:e.sti_as(r.StiTableCellRichText).border=new h(g.All,i.gridColor,1,m.Solid,!1,4,new c(i.gridColor)),e.sti_as(r.StiTableCellRichText).backColor=c.toColor(new c(t.System.Drawing.Color.transparent));break}},C.prototype.applyStyle1=function(e){if(0==this.components.count)return;for(var i=0,n=this.components.list;i<n.length;i++){var o=n[i];switch(o.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:o.border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.brush=new c(t.System.Drawing.Color.transparent),o.textBrush=new c(e.dataTextColor);break;case r.StiTablceCellType.Image:o.sti_as(r.StiTableCellImage).border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.sti_as(r.StiTableCellImage).brush=new c(t.System.Drawing.Color.transparent);break;case r.StiTablceCellType.CheckBox:o.sti_as(r.StiTableCellCheckBox).border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.sti_as(r.StiTableCellCheckBox).brush=new c(t.System.Drawing.Color.transparent);break;case r.StiTablceCellType.RichText:o.sti_as(r.StiTableCellRichText).border=new h(g.All,e.gridColor,1,m.Solid,!1,4,new c(e.gridColor)),o.sti_as(r.StiTableCellRichText).backColor=c.toColor(new c(t.System.Drawing.Color.transparent));break}}},C.prototype.applyStyle3=function(t){if(0==this.components.count)return;var e=new h(g.All,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),i=new c(t.headerColor),n=new c(t.headerFooterTextColor),o=new h(g.None|g.Top|g.Bottom,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),a=new h(g.None|g.Top|g.Left|g.Bottom,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),s=new h(g.None|g.Top|g.Right|g.Bottom,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),l=new c(t.dataColor),u=new c(t.dataTextColor),d=0;if(this._headerRowsCount>0){for(var S=0,f=0;f<this._headerRowsCount;f++)for(var y=0;y<this._columnCount;y++){var b=this.components.getByIndex(S);if(null!=b)switch(b.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:b.border=e.clone(),b.brush=i.clone(),b.textBrush=n.clone();break;case r.StiTablceCellType.Image:b.border=e.clone(),b.brush=i.clone();break;case r.StiTablceCellType.CheckBox:b.border=e.clone(),b.brush=i.clone();break;case r.StiTablceCellType.RichText:b.border=e.clone(),b.backColor=c.toColor(i.clone());break}S++}d=this._headerRowsCount}for(var C=this._rowCount-d,v=d*this._columnCount,f=d;f<this._rowCount;f++)for(var y=0;y<this._columnCount;y++){var I=this.components.getByIndex(v);if(null!=I)switch(I.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:0==y?I.border=a.clone():y==this._columnCount-1?I.border=s.clone():I.border=o.clone(),I.brush=l.clone(),I.textBrush=u.clone();break;case r.StiTablceCellType.Image:0==y?I.sti_as(r.StiTableCellImage).border=a.clone():y==this._columnCount-1?I.sti_as(r.StiTableCellImage).border=s.clone():I.sti_as(r.StiTableCellImage).border=o.clone(),I.sti_as(r.StiTableCellImage).brush=l.clone();break;case r.StiTablceCellType.CheckBox:0==y?I.sti_as(r.StiTableCellCheckBox).border=a.clone():y==this._columnCount-1?I.sti_as(r.StiTableCellCheckBox).border=s.clone():I.sti_as(r.StiTableCellCheckBox).border=o.clone(),I.sti_as(r.StiTableCellCheckBox).brush=l.clone();break;case r.StiTablceCellType.RichText:0==y?I.sti_as(r.StiTableCellRichText).border=a.clone():y==this._columnCount-1?I.sti_as(r.StiTableCellRichText).border=s.clone():I.sti_as(r.StiTableCellRichText).border=o.clone(),I.sti_as(r.StiTableCellRichText).backColor=p.toColor(l.clone());break}v++}},C.prototype.applyStyle4=function(t){if(0==this.components.count)return;var e=new h(g.All,t.footerColor,1,m.Solid,!1,4,new c(t.footerColor)),i=new c(t.footerColor),n=new c(t.headerFooterTextColor),o=new h(g.None|g.Top|g.Bottom,t.footerColor,1,m.Solid,!1,4,new c(t.footerColor)),a=new h(g.None|g.Top|g.Left|g.Bottom,t.footerColor,1,m.Solid,!1,4,new c(t.footerColor)),s=new h(g.None|g.Top|g.Right|g.Bottom,t.footerColor,1,m.Solid,!1,4,new c(t.footerColor)),l=new c(t.dataColor),u=new c(t.dataTextColor);if(this._footerRowsCount>0)for(var d=this._rowCount-this._footerRowsCount,S=d*this._columnCount,f=d;f<this._rowCount;f++)for(var y=0;y<this._columnCount;y++){var b=this.components.getByIndex(S);if(null!=b)switch(b.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:b.border=e.clone(),b.brush=i.clone(),b.textBrush=n.clone();break;case r.StiTablceCellType.Image:b.sti_as(r.StiTableCellImage).border=e.clone(),b.sti_as(r.StiTableCellImage).brush=i.clone();break;case r.StiTablceCellType.CheckBox:b.sti_as(r.StiTableCellCheckBox).border=e.clone(),b.sti_as(r.StiTableCellCheckBox).brush=i.clone();break;case r.StiTablceCellType.RichText:b.sti_as(r.StiTableCellRichText).border=e.clone(),b.sti_as(r.StiTableCellRichText).backColor=p.toColor(i.clone());break}S++}for(var C=0,f=0;f<this._rowCount-this._footerRowsCount;f++)for(var y=0;y<this._columnCount;y++){var v=this.components.getByIndex(C);if(null!=v)switch(v.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:0==y?v.border=a.clone():y==this._columnCount-1?v.border=s.clone():v.border=o.clone(),v.brush=l.clone(),v.textBrush=u.clone();break;case r.StiTablceCellType.Image:0==y?v.sti_as(r.StiTableCellImage).border=a.clone():y==this._columnCount-1?v.sti_as(r.StiTableCellImage).border=s.clone():v.sti_as(r.StiTableCellImage).border=o.clone(),v.sti_as(r.StiTableCellImage).brush=l.clone();break;case r.StiTablceCellType.CheckBox:0==y?v.sti_as(r.StiTableCellCheckBox).border=a.clone():y==this._columnCount-1?v.sti_as(r.StiTableCellCheckBox).border=s.clone():v.sti_as(r.StiTableCellCheckBox).border=o.clone(),v.sti_as(r.StiTableCellCheckBox).brush=l.clone();break;case r.StiTablceCellType.RichText:0==y?v.sti_as(r.StiTableCellRichText).border=a.clone():y==this._columnCount-1?v.sti_as(r.StiTableCellRichText).border=s.clone():v.sti_as(r.StiTableCellRichText).border=o.clone(),v.sti_as(r.StiTableCellRichText).backColor=p.toColor(l.clone());break}C++}},C.prototype.applyStyle5=function(t){if(0==this.components.count)return;var e=new h(g.All,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),i=new c(t.headerColor),n=new c(t.headerFooterTextColor),o=new h(g.None|g.Top|g.Bottom,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),a=new h(g.None|g.Top|g.Left|g.Bottom,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),s=new h(g.None|g.Top|g.Right|g.Bottom,t.headerColor,1,m.Solid,!1,4,new c(t.headerColor)),l=new c(t.dataColor),u=new c(t.dataTextColor),d=0;if(this._headerRowsCount>0){for(var S=0,f=0;f<this._headerRowsCount;f++)for(var y=0;y<this._columnCount;y++){var b=this.components.getByIndex(S);if(null!=b)switch(b.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:b.border=e.clone(),b.brush=i.clone(),b.textBrush=n.clone();break;case r.StiTablceCellType.Image:b.sti_as(r.StiTableCellImage).border=e.clone(),b.sti_as(r.StiTableCellImage).brush=i.clone();break;case r.StiTablceCellType.CheckBox:b.sti_as(r.StiTableCellCheckBox).border=e.clone(),b.sti_as(r.StiTableCellCheckBox).brush=i.clone();break;case r.StiTablceCellType.RichText:b.sti_as(r.StiTableCellRichText).border=e.clone(),b.sti_as(r.StiTableCellRichText).backColor=p.toColor(i.clone());break}S++}d=this._headerRowsCount}if(this.footerRowsCount>0)for(var C=this._rowCount-this._footerRowsCount,S=C*this._columnCount,f=C;f<this._rowCount;f++)for(var y=0;y<this._columnCount;y++){var v=this.components.getByIndex(S);if(null!=v)switch(v.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:v.border=e.clone(),v.brush=i.clone(),v.textBrush=n.clone();break;case r.StiTablceCellType.Image:v.sti_as(r.StiTableCellImage).border=e.clone(),v.sti_as(r.StiTableCellImage).brush=i.clone();break;case r.StiTablceCellType.CheckBox:v.sti_as(r.StiTableCellCheckBox).border=e.clone(),v.sti_as(r.StiTableCellCheckBox).brush=i.clone();break;case r.StiTablceCellType.RichText:v.sti_as(r.StiTableCellRichText).border=e.clone(),v.sti_as(r.StiTableCellRichText).backColor=p.toColor(i.clone());break}S++}for(var I=d*this._columnCount,f=d;f<this._rowCount-this._footerRowsCount;f++)for(var y=0;y<this._columnCount;y++){var A=this.components.getByIndex(I);if(null!=A)switch(A.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Text:0==y?A.border=a.clone():y==this._columnCount-1?A.border=s.clone():A.border=o.clone(),A.brush=l.clone(),A.textBrush=u.clone();break;case r.StiTablceCellType.Image:0==y?A.sti_as(r.StiTableCellImage).border=a.clone():y==this._columnCount-1?A.sti_as(r.StiTableCellImage).border=s.clone():A.sti_as(r.StiTableCellImage).border=o.clone(),A.sti_as(r.StiTableCellImage).brush=l.clone();break;case r.StiTablceCellType.CheckBox:0==y?A.sti_as(r.StiTableCellCheckBox).border=a.clone():y==this._columnCount-1?A.sti_as(r.StiTableCellCheckBox).border=s.clone():A.sti_as(r.StiTableCellCheckBox).border=o.clone(),A.sti_as(r.StiTableCellCheckBox).brush=l.clone();break;case r.StiTablceCellType.RichText:0==y?A.sti_as(r.StiTableCellRichText).border=a.clone():y==this._columnCount-1?A.sti_as(r.StiTableCellRichText).border=s.clone():A.sti_as(r.StiTableCellRichText).border=o.clone(),A.sti_as(r.StiTableCellRichText).backColor=p.toColor(l.clone());break}I++}},C.prototype.changeRowCount=function(t,e){if(null==this.page||null==this.report)return;if(e>0&&e!=t){e<this._headerRowsCount+this._footerRowsCount&&(this._headerRowsCount=0,this._footerRowsCount=0),y.prototype.setMinHeight.call(this,this.page.gridSize*e);var i=e-t;i>0?this.addNewRows(i):this.deleteLastRows(Math.abs(i),t)}},C.prototype.changeColumnCount=function(t,e){if(null==this.page||null==this.report)return;if(e>0&&e!=t){var i=e-t;i>0?this.addTableNewColumns(i,t):this.deleteTableColumns(Math.abs(i),t)}},C.prototype.createJoin=function(t,e,i,n){var o=t.ref,a=e.ref,s=i.ref,l=n.ref,u=this.getCountSelectedCells();if(u<=1||null==this.page)return new Array;for(var c=new Array(u),p=new Array(u),h=0,g=0,m=0,d=0,S=this.components.list;d<S.length;d++){var f=S[d];f.isSelected&&(c[m]=g,p[m]=h,m++,f.isSelected=!1),g++,g==this._columnCount&&(g=0,h++)}var y,b,C,v,I={ref:y},A={ref:b},w={ref:C},T={ref:v};this.findLeftSelectedElement(c,I,w),this.findRightSelectedElement(p,A,T),y=I.ref,b=A.ref,C=w.ref,v=T.ref,s=C-y+1,l=v-b+1;for(var B=new Array((v-b+1)*(C-y+1)),R=0,P=b;P<=v;P++){for(var F=null,x=y;x<=C;x++){var D=P*this._columnCount+x;if(F=this.components.getByIndex(D),F.sti_as(r.IStiTableCell).merged){F.sti_as(r.IStiTableCell).getJoinComponentByGuid(F.sti_as(r.IStiTableCell).parentJoin).sti_as(r.IStiTableCell).join=!1}B[R]=F.sti_as(r.IStiTableCell).id,P==b&&(o+=F.width),R++}a+=F.height}return t.ref=o,e.ref=a,i.ref=s,n.ref=l,B},C.prototype.getCountSelectedCells=function(){for(var t=0,e=0,i=this.components.list;e<i.length;e++){i[e].isSelected&&t++}return t},C.prototype.getCountJoinSelectedCells=function(t){var e=t.ref,i=0;e=0;for(var n=0,o=this.components.list;n<o.length;n++){var a=o[n];a.isSelected&&(i++,a.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged&&e++)}return t.ref=e,i},C.prototype.findLeftSelectedElement=function(t,e,i){var r=e.ref,n=i.ref;r=t[0],n=t[0];for(var o=1;o<t.length;o++)r>t[o]&&(r=t[o]),n<t[o]&&(n=t[o]);e.ref=r,i.ref=n},C.prototype.findRightSelectedElement=function(t,e,i){var r=e.ref,n=i.ref;r=t[0],n=t[0];for(var o=1;o<t.length;o++)r>t[o]&&(r=t[o]),n<t[o]&&(n=t[o]);e.ref=r,i.ref=n},C.prototype.changeTableCellContentInImage=function(t){if(t.sti_is(r.StiTableCell)){var e=t.sti_as(r.StiTableCell),i=this.components.indexOf(e);if(-1==i)return;var n=new r.StiTableCellImage;n.clientRectangle=e.clientRectangle,n.name=e.name,n.border=e.border,n.brush=e.brush,n.id=e.id,n.restrictions=e.restrictions,n.page=e.page,n.parent=e.parent,n.canBreak=e.canBreak,n.canGrow=e.canGrow,n.canShrink=e.canShrink,n.enabled=e.enabled,n.growToHeight=e.growToHeight,n.printable=e.printable,0!=e.text.length&&(n.dataColumn=e.text.substring(1,e.text.length-2)),e.join&&(n._join=e._join,n._parentJoin=e._parentJoin,n._joinCells=e._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),e=null}else if(t.sti_is(r.StiTableCellCheckBox)){var o=t.sti_as(r.StiTableCellCheckBox),i=this.components.indexOf(o);if(-1==i)return;var n=new r.StiTableCellImage;n.clientRectangle=o.clientRectangle,n.name=o.name,n.border=o.border,n.brush=o.brush,n.id=o.id,n.restrictions=o.restrictions,n.page=o.page,n.parent=o.parent,n.canGrow=o.canGrow,n.canShrink=o.canShrink,n.enabled=o.enabled,n.growToHeight=o.growToHeight,n.printable=o.printable,0!=o.checkedValue.toString().length&&(n.dataColumn=o.checkedValue.toString().substring(1,o.checkedValue.toString().length-2)),o._join&&(n._join=o._join,n._parentJoin=o._parentJoin,n._joinCells=o._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),o=null}else if(t.sti_is(r.StiTableCellRichText)){var a=t.sti_as(r.StiTableCellRichText),i=this.components.indexOf(a);if(-1==i)return;var n=new r.StiTableCellImage;n.clientRectangle=a.clientRectangle,n.name=a.name,n.border=a.border,n.brush=new c(a.backColor),n.id=a.id,n.restrictions=a.restrictions,n.page=a.page,n.parent=a.parent,n.canGrow=a.canGrow,n.canShrink=a.canShrink,n.enabled=a.enabled,n.growToHeight=a.growToHeight,n.printable=a.printable,0!=a.dataColumn.length&&(n.dataColumn=a.dataColumn),a._join&&(n._join=a._join,n._parentJoin=a._parentJoin,n._joinCells=a._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),a=null}return null},C.prototype.changeTableCellContentInText=function(t){if(t.sti_is(r.StiTableCellImage)){var e=t.sti_as(r.StiTableCellImage),i=this.components.indexOf(e);if(-1==i)return;var n=new r.StiTableCell;n.clientRectangle=e.clientRectangle,n.name=e.name,n.border=e.border,n.brush=e.brush,n.id=e.id,n.restrictions=e.restrictions,n.page=e.page,n.parent=e.parent,n.canBreak=e.canBreak,n.canGrow=e.canGrow,n.canShrink=e.canShrink,n.enabled=e.enabled,n.growToHeight=e.growToHeight,n.printable=e.printable,0!=e.dataColumn.length&&(n.text="{"+e.dataColumn+"}"),e._join&&(n._join=e._join,n._parentJoin=e._parentJoin,n._joinCells=e._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),e=null}else if(t.sti_is(r.StiTableCellCheckBox)){var o=t.sti_as(r.StiTableCellCheckBox),i=this.components.indexOf(o);if(-1==i)return;var n=new r.StiTableCell;n.clientRectangle=o.clientRectangle,n.name=o.name,n.border=o.border,n.brush=o.brush,n.id=o.id,n.restrictions=o.restrictions,n.page=o.page,n.parent=o.parent,n.canGrow=o.canGrow,n.canShrink=o.canShrink,n.enabled=o.enabled,n.growToHeight=o.growToHeight,n.printable=o.printable,0!=o.checkedValue.toString().length&&(n.text=o.checkedValue.toString()),o.join&&(n._join=o._join,n._parentJoin=o._parentJoin,n._joinCells=o._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),o=null}else if(t.sti_is(r.StiTableCellRichText)){var a=t.sti_as(r.StiTableCellRichText),i=this.components.indexOf(a);if(-1==i)return;var n=new r.StiTableCell;n.clientRectangle=a.clientRectangle,n.name=a.name,n.border=a.border,n.brush=new c(a.backColor),n.id=a.id,n.restrictions=a.restrictions,n.page=a.page,n.parent=a.parent,n.canGrow=a.canGrow,n.canShrink=a.canShrink,n.enabled=a.enabled,n.growToHeight=a.growToHeight,n.printable=a.printable,0!=a.dataColumn.length&&(n.text=a.dataColumn),a._join&&(n._join=a._join,n._parentJoin=a._parentJoin,n._joinCells=a._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),a=null}},C.prototype.changeTableCellContentInCheckBox=function(t){if(t.sti_is(r.StiTableCellImage)){var e=t.sti_as(r.StiTableCellImage),i=this.components.indexOf(e);if(-1==i)return;var n=new r.StiTableCellCheckBox;n.clientRectangle=e.clientRectangle,n.name=e.name,n.border=e.border,n.brush=e.brush,n.id=e.id,n.restrictions=e.restrictions,n.page=e.page,n.parent=e.parent,n.canGrow=e.canGrow,n.canShrink=e.canShrink,n.enabled=e.enabled,n.growToHeight=e.growToHeight,n.printable=e.printable,0!=e.dataColumn.length&&(n.checkedValue="{"+e.dataColumn+"}"),e._join&&(n._join=e._join,n._parentJoin=e._parentJoin,n._joinCells=e._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),e=null}else if(t.sti_is(r.StiTableCellRichText)){var o=t.sti_as(r.StiTableCellRichText),i=this.components.indexOf(o);if(-1==i)return;var n=new r.StiTableCellCheckBox;n.clientRectangle=o.clientRectangle,n.name=o.name,n.border=o.border,n.brush=new c(o.backColor),n.id=o.id,n.restrictions=o.restrictions,n.page=o.page,n.parent=o.parent,n.canGrow=o.canGrow,n.canShrink=o.canShrink,n.enabled=o.enabled,n.growToHeight=o.growToHeight,n.printable=o.printable,0!=o.dataColumn.length&&(n.checkedValue="{"+o.dataColumn+"}"),o._join&&(n._join=o._join,n._parentJoin=o._parentJoin,n._joinCells=o._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),o=null}else if(t.sti_is(r.StiTableCell)){var a=t.sti_as(r.StiTableCell),i=this.components.indexOf(a);if(-1==i)return;var n=new r.StiTableCellCheckBox;n.clientRectangle=a.clientRectangle,n.name=a.name,n.border=a.border,n.brush=a.brush,n.id=a.id,n.restrictions=a.restrictions,n.page=a.page,n.parent=a.parent,n.canGrow=a.canGrow,n.canShrink=a.canShrink,n.enabled=a.enabled,n.growToHeight=a.growToHeight,n.printable=a.printable,0!=a.text.length&&(n.checkedValue=a.text),a._join&&(n._join=a._join,n._parentJoin=a._parentJoin,n._joinCells=a._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),a=null}},C.prototype.changeTableCellContentInRichText=function(t){if(t.sti_is(r.StiTableCellImage)){var e=t.sti_as(r.StiTableCellImage),i=this.components.indexOf(e);if(-1==i)return;var n=new r.StiTableCellRichText;n.clientRectangle=e.clientRectangle,n.name=e.name,n.border=e.border,n.backColor=p.toColor(e.brush),n.id=e.id,n.restrictions=e.restrictions,n.page=e.page,n.parent=e.parent,n.canBreak=e.canBreak,n.canGrow=e.canGrow,n.canShrink=e.canShrink,n.enabled=e.enabled,n.growToHeight=e.growToHeight,n.printable=e.printable,0!=e.dataColumn.length&&(n.dataColumn=e.dataColumn),e._join&&(n._join=e._join,n._parentJoin=e._parentJoin,n._joinCells=e._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),e=null}else if(t.sti_is(r.StiTableCellCheckBox)){var o=t.sti_as(r.StiTableCellCheckBox),i=this.components.indexOf(o);if(-1==i)return;var n=new r.StiTableCellRichText;n.clientRectangle=o.clientRectangle,n.name=o.name,n.border=o.border,n.backColor=p.toColor(o.brush),n.id=o.id,n.restrictions=o.restrictions,n.page=o.page,n.parent=o.parent,n.canGrow=o.canGrow,n.canShrink=o.canShrink,n.enabled=o.enabled,n.growToHeight=o.growToHeight,n.printable=o.printable,0!=o.checkedValue.toString().length&&(n.dataColumn=o.checkedValue.toString().substring(1,o.checkedValue.toString().length-2)),o._join&&(n._join=o._join,n._parentJoin=o._parentJoin,n._joinCells=o._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),o=null}else if(t.sti_is(r.StiTableCell)){var a=t.sti_as(r.StiTableCell),i=this.components.indexOf(a);if(-1==i)return;var n=new r.StiTableCellRichText;n.clientRectangle=a.clientRectangle,n.name=a.name,n.border=a.border,n.backColor=p.toColor(a.brush),n.id=a.id,n.restrictions=a.restrictions,n.page=a.page,n.parent=a.parent,n.canBreak=a.canBreak,n.canGrow=a.canGrow,n.canShrink=a.canShrink,n.enabled=a.enabled,n.growToHeight=a.growToHeight,n.printable=a.printable,0!=a.text.length&&(n.dataColumn=a.text.substring(1,a.text.length-2)),a._join&&(n._join=a._join,n._parentJoin=a._parentJoin,n._joinCells=a._joinCells),this.components.removeAt(i),this.components.insert(i,n),n.select(),a=null}},C.prototype.getColumnForCell=function(t){return 0},C.prototype.setCellID=function(t){t.id=this._numberID,this._numberID++},C.prototype.createCell=function(){if(null==this.page||null==this.parent||null==this.page.report)return;var t=this.clientRectangle;if(t.width<0)return;y.prototype.setHeight.call(this,this._rowCount*this.defaultHeightCell),t=this.clientRectangle,0!=this.components.count&&this.components.clear();for(var e=t.width/this._columnCount,i=+e/this.page.gridSize,n=t.height/this._rowCount,o=+n/this.page.gridSize,s=i*this.page.gridSize,l=t.width-s*(this._columnCount-1),u=o*this.page.gridSize,c=t.height-u*(this._rowCount-1),p=0,h=1,g=0;g<this._rowCount;g++){for(var m=0;m<this._columnCount;m++){var d=new r.StiTableCell;this.setCellID(d.sti_as(r.IStiTableCell)),d.name=String.stiFormat("{0}_Cell{1}",this.name,h);var S=m==this._columnCount-1?l:s,f=g==this._rowCount-1?c:u;d.clientRectangle=new a(p,u*g,S,f),this.setStyleForCell(d,!1),p=d.right,this.components.add(d),h++}p=0}this.resizeHeightCell(),this.applyStyleNone()},C.prototype.setStyleForCell=function(e,n){if(e.sti_is(i.StiComponent)){var o=e.sti_as(i.StiComponent);o.restrictions=t.Report.Components.StiRestrictions.None|t.Report.Components.StiRestrictions.AllowMove|t.Report.Components.StiRestrictions.AllowSelect|t.Report.Components.StiRestrictions.AllowChange,o.isSelected=n,o.canGrow=!1,o.growToHeight=!1,o.page=this.page,o.parent=this}else if(e.sti_is(r.StiTableCell)){var o=e.sti_as(r.StiTableCell);o.restrictions=t.Report.Components.StiRestrictions.None|t.Report.Components.StiRestrictions.AllowMove|t.Report.Components.StiRestrictions.AllowSelect|t.Report.Components.StiRestrictions.AllowChange,o.brush=new c(u.white),o.font=new d("Arial",9),o.isSelected=n,o.canGrow=!1,o.growToHeight=!1,o.page=this.page,o.parent=this}},C.prototype.addNewRows=function(t){if(0==this.components.count)return;var e=this.components.count+1,n=this.clientRectangle;n.height+=this.defaultHeightCell*t,y.prototype.setClientRectangle.call(this,n);for(var o=0;o<t;o++)for(var s=0;s<this._columnCount;s++){var l=new r.StiTableCell,u=this.components.getByIndex(this.components.count-this._columnCount).sti_as(i.StiComponent);l.name=String.stiFormat("{0}_Cell{1}",this.name,e),this.setCellID(l.sti_as(r.IStiTableCell));var c=u.sti_as(r.IStiTableCell).getRealLeft(),p=u.sti_as(r.IStiTableCell).getRealWidth();l.clientRectangle=new a(c,u.bottom,p,this.defaultHeightCell),this.setStyleForCell(l,!0),this.tableStyle==r.StiTableStyle.StyleNone&&this.applyStyleNoneForCell(l),this.components.add(l),e++}this.refreshTableStyle()},C.prototype.deleteLastRows=function(t,e){if(0==this.components.count)return;for(var n=0,o=e-t;o<e;o++){if(o*this._columnCount>=this.components.count)break;for(var a=0;a<this._columnCount;a++){var s=this.components.getByIndex(o*this._columnCount+a).sti_as(i.StiComponent);if(s.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged){s.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getJoinComponentByGuid(s.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).parentJoin).sti_as(r.IStiTableCell).join=!1}}n+=this.components.getByIndex(o*this._columnCount).height}var l=(e-t)*this._columnCount;while(this.components.count>l)this.components.removeAt(this.components.count-1);y.prototype.setHeight.call(this,y.prototype.getHeight.call(this)-n),this.refreshTableStyle()},C.prototype.addTableNewColumns=function(t,e){if(0==this.components.count)return;for(var n=this.clientRectangle,o=+n.width/this.page.gridSize,s=this._columnCount,l=+o/s,u=o-l*s,c=new Array(s),p=0;p<s;p++)c[p]=l*this.page.gridSize,p<u&&(c[p]+=this.page.gridSize);c[s-1]+=n.width-o*this.page.gridSize;for(var h=0,g=0,m=0,p=0;p<this._rowCount;p++){for(var d=0;d<e;d++){var S=this.components.getByIndex(h).sti_as(i.StiComponent);if(S.name=String.stiFormat("{0}_Cell{1}",this.name,h+1),S.clientRectangle=new a(m,S.top,c[g],S.height),m+=c[g],h++,g++,d==e-1)for(var f=S.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealHeight(),y=S.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealTop(),b=0;b<t;b++){var C=new r.StiTableCell;C.name=String.stiFormat("{0}_Cell{1}",this.name,h+1),this.setCellID(C.sti_as(r.IStiTableCell)),C.clientRectangle=new a(m,y,c[g],f),this.setStyleForCell(C,!0),this._tableStyle==r.StiTableStyle.StyleNone&&this.applyStyleNoneForCell(C),this.components.insert(h,C),m+=c[g],h++,g++}}m=0,g=0}for(var p=0;p<this.components.count;p++){var v=this.components.getByIndex(p).sti_as(i.StiComponent);null!=v&&v.sti_as(r.IStiTableCell).join&&v.sti_as(r.IStiTableCell).setJoinSize()}this.refreshTableStyle()},C.prototype.deleteTableColumns=function(t,e){if(0==this.components.count)return;for(var n=e-t,o=0,a=0;a<this._rowCount;a++){o+=n;for(var s=0;s<t;s++)this.components.removeAt(o)}for(var l=this.clientRectangle,u=+l.width/this.page.gridSize,c=+u/n,p=u-c*n,h=new Array(n),a=0;a<n;a++)h[a]=c*this.page.gridSize,a<p&&(h[a]+=this.page.gridSize);var g=0;o=0;for(var a=0;a<this._rowCount;a++){for(var s=0;s<n;s++){var m=this.components.getByIndex(o).sti_as(i.StiComponent);m.name=String.stiFormat("{0}_Cell{1}",this.name,o+1),m.left=g,m.width=h[s],g+=h[s],o++}g=0}for(var a=0;a<this.components.count;a++){var d=this.components.getByIndex(a).sti_as(i.StiComponent);null!=d&&d.sti_as(r.IStiTableCell).join&&d.sti_as(r.IStiTableCell).setJoinSize()}this.refreshTableStyle()},C.prototype.insertColumnToLeft=function(t){if(t<0)return;if(0!=t)for(var e=t,n=0;n<this._rowCount;n++){var o=this.components.getByIndex(e).sti_as(i.StiComponent),a=this.components.getByIndex(e-1).sti_as(i.StiComponent);if(o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged&&a.sti_as(r.IStiTableCell).merged){var s=o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getJoinComponentByGuid(o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).parentJoin);s.sti_as(r.IStiTableCell).containsGuid(a.sti_as(r.IStiTableCell).id)&&(s.sti_as(r.IStiTableCell).join=!1)}e+=this.columnCount}for(var l=t,u=0;u<this._rowCount;u++){var o=this.components.getByIndex(l),c=new r.StiTableCell;this.setCellID(c.sti_as(r.IStiTableCell)),c.top=o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealTop(),c.height=o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealHeight(),this.setStyleForCell(c,!1),this._tableStyle==r.StiTableStyle.StyleNone&&this.applyStyleNoneForCell(c),this.components.insert(l,c),l++,l+=this._columnCount}this._columnCount++,this.resizeWidthCellsAfterChanges(),this.refreshTableStyle()},C.prototype.insertColumnToRight=function(t){if(t<0)return;if(t!=this._columnCount-1)for(var e=t,n=0;n<this._rowCount;n++){var o=this.components.getByIndex(e),a=this.components.getByIndex(e+1);if(o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged&&a.sti_as(r.IStiTableCell).merged){var s=o.sti_as(r.IStiTableCell).sti_as(i.StiComponent).getJoinComponentByGuid(o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).parentJoin);s.sti_as(r.IStiTableCell).containsGuid(a.sti_as(r.IStiTableCell).id)&&(s.sti_as(r.IStiTableCell).join=!1)}e+=this.columnCount}for(var l=t,u=0;u<this._rowCount;u++){var o=this.components.getByIndex(l),c=new r.StiTableCell;this.setCellID(c.sti_as(r.IStiTableCell)),c.top=o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealTop(),c.height=o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealHeight(),this.setStyleForCell(c,!1),this._tableStyle==r.StiTableStyle.StyleNone&&this.applyStyleNoneForCell(c),this.components.insert(l+1,c),l++,l+=this._columnCount}this._columnCount++,this.resizeWidthCellsAfterChanges(),this.refreshTableStyle()},C.prototype.insertRowAbove=function(t){if(t<0)return;if(0!=t)for(var e=t*this._columnCount,i=0;i<this._columnCount;i++){var n=this.components.getByIndex(e),o=this.components.getByIndex(e-this._columnCount);if(n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged&&o.sti_as(r.IStiTableCell).merged){var a=n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getJoinComponentByGuid(n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).parentJoin);a.sti_as(r.IStiTableCell).containsGuid(o.sti_as(r.IStiTableCell).id)&&(a.sti_as(r.IStiTableCell).join=!1)}e++}for(var s=t*this._columnCount,l=0;l<this._columnCount;l++){var n=this.components.getByIndex(s+l),u=new r.StiTableCell;this.setCellID(u.sti_as(r.IStiTableCell)),u.left=n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealLeft(),u.width=n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealWidth(),u.height=this.defaultHeightCell,this.setStyleForCell(u,!1),this._tableStyle==r.StiTableStyle.StyleNone&&this.applyStyleNoneForCell(u),this.components.insert(s,u),s++}this._rowCount++,this.resizeHeightCellsAfterChanges(this.defaultHeightCell),this.refreshTableStyle()},
C.prototype.insertRowBelow=function(t){if(t<0)return;if(t!=this._rowCount)for(var e=t*this._columnCount,i=0;i<this._columnCount;i++){var n=this.components.getByIndex(e),o=this.components.getByIndex(e-this._columnCount);if(n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged&&o.sti_as(r.IStiTableCell).merged){var a=n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getJoinComponentByGuid(n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).parentJoin);a.sti_as(r.IStiTableCell).containsGuid(o.sti_as(r.IStiTableCell).id)&&(a.sti_as(r.IStiTableCell).join=!1)}e++}for(var s=t*this._columnCount,l=0;l<this._columnCount;l++){var n=void 0;n=t==this._rowCount?this.components.getByIndex(s-this._columnCount):this.components.getByIndex(s+l);var u=new r.StiTableCell;this.setCellID(u.sti_as(r.IStiTableCell)),u.left=n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealLeft(),u.width=n.sti_as(r.IStiTableCell).getRealWidth(),u.height=this.defaultHeightCell,this.setStyleForCell(u,!1),this._tableStyle==r.StiTableStyle.StyleNone&&this.applyStyleNoneForCell(u),this.components.insert(s,u),s++}this._rowCount++,this.resizeHeightCellsAfterChanges(this.defaultHeightCell),this.refreshTableStyle()},C.prototype.deleteRows=function(t,e){var i=e-t+1;if(i==this._rowCount)return null;for(var n=new Array,o=t*this._columnCount,a=0,s=t;s<=e;s++)for(var l=0;l<this._columnCount;l++){var u=this.components.getByIndex(o);null!=u&&(u.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged&&(u.sti_as(r.IStiTableCell).getJoinComponentByGuid(u.sti_as(r.IStiTableCell).parentJoin).sti_as(r.IStiTableCell).join=!1),0==l&&(a+=u.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealHeight()),this.components.removeAt(o),n.add(u))}return this._rowCount-=i,this.resizeHeightCellsAfterChanges(-1*a),this.refreshTableStyle(),n},C.prototype.deleteColumns=function(t,e){var i=e-t+1;if(i==this._columnCount)return null;for(var n=new Array,o=t,a=0;a<this._rowCount;a++){for(var s=t;s<=e;s++){var l=this.components.getByIndex(o);null!=l&&(l.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).merged&&(l.sti_as(r.IStiTableCell).getJoinComponentByGuid(l.sti_as(r.IStiTableCell).parentJoin).sti_as(r.IStiTableCell).join=!1),this.components.removeAt(o),n.add(l))}o+=this._columnCount-i}return this._columnCount-=i,this.resizeWidthCellsAfterChanges(),this.refreshTableStyle(),n},C.prototype.distributeRows=function(){if(this.isConverted||null==this.parent&&null==this.page&&0==this.components.count)return;if(this._rowCount*this._columnCount!=this.components.count)return;for(var t=this.clientRectangle,e=+t.height/this.page.gridSize,n=e/this._rowCount,o=e-n*this._rowCount,s=new Array(this._rowCount),l=0;l<this._rowCount;l++)s[l]=n*this.page.gridSize,l<o&&(s[l]+=this.page.gridSize);s[s.length-1]+=t.height-e*this.page.gridSize;for(var u=0,c=0,l=0;l<this._rowCount;l++){for(var p=0;p<this._columnCount;p++){var h=this.components.getByIndex(c).sti_as(i.StiComponent);null!=h&&(h.clientRectangle=new a(h.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealLeft(),u,h.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealWidth(),s[l]),h.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).join&&h.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).setJoinSize(),c++)}u+=s[l]}},C.prototype.distributeColumns=function(){if(this.isConverted||null==this.parent&&null==this.page&&0==this.components.count)return;for(var t=this.clientRectangle,e=+t.width/this.page.gridSize,n=e/this._columnCount,o=e-n*this._columnCount,s=new Array(this._columnCount),l=0;l<this._columnCount;l++)s[l]=n*this.page.gridSize,l<o&&(s[l]+=this.page.gridSize);s[s.length-1]+=t.width-e*this.page.gridSize;for(var u=0,c=0,p=0;p<this._rowCount;p++){for(var l=0;l<this._columnCount;l++){var h=this.components.getByIndex(c).sti_as(i.StiComponent);null!=h&&(h.clientRectangle=new a(u,h.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealTop(),s[l],h.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealHeight()),u+=s[l],c++)}u=0}},C.prototype.autoSizeCells=function(){if(this.isConverted||0==this.components.count||null==this.page)return;for(var t=this.clientRectangle,e=+t.width/this.page.gridSize,i=e/this._columnCount,r=e-i*this._columnCount,n=new Array(this._columnCount),o=0;o<this._columnCount;o++)n[o]=i*this.page.gridSize,o<r&&(n[o]+=this.page.gridSize);n[n.length-1]+=t.width-e*this.page.gridSize;var s=+t.height/this.page.gridSize;i=s/this._rowCount;for(var l=s-i*this._rowCount,u=new Array(this._rowCount),c=0;c<this._rowCount;c++)u[c]=i*this.page.gridSize,c<l&&(u[c]+=this.page.gridSize);u[u.length-1]+=t.height-s*this.page.gridSize;for(var p=0,h=0,g=0,c=0;c<this._rowCount;c++){for(var o=0;o<this._columnCount;o++){this.components.getByIndex(g).clientRectangle=new a(p,h,n[o],u[c]),p+=n[o],g++}p=0,h+=u[c]}},C.prototype.resizeWidthCellsAfterChanges=function(){if(this.isConverted)return;for(var t=this.clientRectangle,e=+t.width/this.page.gridSize,n=+e/this._columnCount,o=e-n*this._columnCount,s=new Array(this._columnCount),l=0;l<this._columnCount;l++)s[l]=n*this.page.gridSize,l<o&&(s[l]+=this.page.gridSize);s[this._columnCount-1]+=t.width-e*this.page.gridSize;for(var u=0,c=0,p=0,l=0;l<this._rowCount;l++){for(var h=0;h<this._columnCount;h++){var g=this.components.getByIndex(u).sti_as(i.StiComponent);g.name=String.stiFormat("{0}_Cell{1}",this.name,u+1),g.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).join?(g.left=p,g.width=s[c],g.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).setJoinSize()):g.clientRectangle=new a(p,g.top,s[c],g.height),p+=s[c],u++,c++}c=0,p=0}},C.prototype.resizeHeightCellsAfterChanges=function(t){if(this.isConverted)return;var e=this.clientRectangle;e.height+=t;for(var i=0,n=0,o=null,a=0;a<this._rowCount;a++){for(var s=0;s<this._columnCount;s++)o=this.components.getByIndex(n),o.name=String.stiFormat("{0}_Cell{1}",this.name,n+1),o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).join?(o.height=o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealHeightAfterInsertRows(),o.top=i,o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).setJoinSize()):o.top=i,n++;null!=o&&(i+=o.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getRealHeight())}y.prototype.setClientRectangle.call(this,e)},C.prototype.resizeWidthCell=function(t){if(this.isConverted||0==this.components.count||null==this.page)return;if(this._columnCount*this._rowCount!=this.components.count)return;for(var e=y.prototype.getWidth.call(this)-t,r=e/this._columnCount,n=+r/this.page.gridSize,o=this.page.gridSize*n,a=e-o*(this._columnCount-1),s=0;s<this._columnCount;s++)for(var l=0;l<this._rowCount;l++){var u=this.components.getByIndex(l*this._columnCount+s).sti_as(i.StiComponent);s==this._columnCount-1?(u.left+=s*o,u.width+=a):(u.left+=s*o,u.width+=o)}},C.prototype.resizeHeightCell=function(){if(this.isConverted||null==this.page&&0==this.components.count)return;var t=this.clientRectangle;if(1==this._rowCount)for(var e=0;e<this._columnCount;e++){var n=this.components.getByIndex(e).sti_as(i.StiComponent);n.top=0,n.height=t.height}else{for(var o=new Array(this._rowCount),a=+t.height/this.page.gridSize,s=+a/this._rowCount,l=a-s*this._rowCount,u=s*this.page.gridSize,e=0;e<this._rowCount;e++)o[e]=u,e<l&&(o[e]+=this.page.gridSize);o[this._rowCount-1]+=t.height-this.page.gridSize*a;for(var c=0,e=0;e<this._rowCount;e++){for(var p=0;p<this._columnCount;p++){var n=this.components.getByIndex(e*this._columnCount+p).sti_as(i.StiComponent);if(n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).join){var h=n.sti_as(r.IStiTableCell).sti_as(r.IStiTableCell).getJoinComponentByIndex(0);n.left=h.left,n.top=h.top,n.height=c+o[e]-h.top}else n.top=c,n.height=o[e]}c+=o[e]}}},C.prototype.startRenderTableBand=function(t){var e=t.ref;if(!this.report.isInteractionRendering&&!this.enabled)return null;var r=this.parent.sti_as(i.StiPage),n=this.parent.sti_as(i.StiDataBand),o=this.parent.sti_as(i.StiPanel);if(this._dockableTable){if(null!=n){var a=new i.StiPanel;a.name=this.name+"_Panel",a.canBreak=!0,a.clientRectangle=n.clientRectangle,a.dockStyle=i.StiDockStyle.Fill;var s=n.components.indexOf(this);return n.components.insert(s,a),this.startRenderTable(a,0,t)}if(null!=r){var l=this.page.components.indexOf(this);return this.startRenderTable(r,l,t)}if(null!=o){var l=o.components.indexOf(this);return this.startRenderTable(o,l,t)}}else{if(null!=n){var a=new i.StiPanel;a.name=this.name+"_Panel",a.canBreak=!0,a.canGrow=!0,a.clientRectangle=this.clientRectangle;var s=n.components.indexOf(this);return n.components.insert(s,a),this.startRenderTable(a,0,t)}if(null!=r){var l=this.page.components.indexOf(this),u=new i.StiDataBand;u.name=this.name+"_Band",u.left=this.left,u.top=this.top,this.page.components.insert(l,u);var a=new i.StiPanel;return a.name=this.name+"_Panel",a.canBreak=!0,a.canGrow=!0,a.clientRectangle=this.clientRectangle,a.top=0,u.components.add(a),this.startRenderTable(a,0,t)}if(null!=o){var l=o.parent.components.indexOf(o);return this.startRenderTable(o,l,t)}}return null},C.prototype.startRenderTable=function(t,e,n){var s=n.ref,l=this.page,u=null;s.containsKey(l)?u=s.get(l).sti_as(Array):(u=new Array,s.add(l,u)),y.prototype.setEnabled.call(this,!1);var c=0,p=null,h=this.clientRectangle,g=this.dockableTable?h.y:0,m=0,d=0,S=0,b=+this.components.count/this._columnCount;this.reverseCells(this.rightToLeft);for(var C=0;C<this._rowCount;C++)for(var v=0;v<this._columnCount;v++)this.components.getByIndex(this._columnCount*C+v).sti_as(r.IStiTableCell).column=v,this.components.getByIndex(this._columnCount*C+v).sti_as(r.IStiTableCell).tableTag=this;var I=!1,A=this.parent.components.indexOf(this)-1;while(A>=0){var w=this.parent.components.getByIndex(A);if(!w.sti_is(i.StiHeaderBand))if(w.sti_is(i.StiChildBand));else if(!w.sti_is(i.StiEmptyBand)){if(w.sti_is(i.StiGroupHeaderBand)){I=!0;break}break}A--}if(this._headerRowsCount>0){for(var T=0;T<this._headerRowsCount;T++)m+=this.components.getByIndex(T*this._columnCount).sti_as(r.IStiTableCell).getRealHeight();var B=new o,R=new o,P=null;I?(P=new i.StiGroupHeaderBand,P.sti_as(i.StiGroupHeaderBand).groupHeaderBandInfo.isTableGroupHeader=!0,P.name=this.name+"_GrHd",P.sti_as(i.StiGroupHeaderBand).printOnAllPages=this._headerPrintOnAllPages):(P=new i.StiHeaderBand,P.name=this.name+"_Hd",P.sti_as(i.StiHeaderBand).headerBandInfo.isTableHeader=!0,P.sti_as(i.StiHeaderBand).printOnAllPages=this._headerPrintOnAllPages,P.sti_as(i.StiHeaderBand).printIfEmpty=this._headerPrintIfEmpty,P.sti_as(i.StiHeaderBand).printOnEvenOddPages=this._headerPrintOnEvenOddPages),P.height=m,P.clientRectangle=new a(h.x,g,h.width,m),P.border=this.border,P.brush=this.brush,P.page=this.page,P.parent=this.page,P.canGrow=this._headerCanGrow,P.canShrink=this._headerCanShrink,P.canBreak=this._headerCanBreak,P.printAtBottom=this._headerPrintAtBottom,P.printOn=this._headerPrintOn;for(var F=0,x=0;x<this._headerRowsCount;x++){var D=this.components.getByIndex(c).sti_as(r.IStiTableCell).getRealHeight(),k=new i.StiPanel;k.clientRectangle=new a(h.x,F,h.width,D),k.name=P.name+"_HPnl"+x.toString(),k.canGrow=!0,k.canShrink=!0,k.dockStyle=i.StiDockStyle.Top,P.components.add(k),F+=D,c+=this._columnCount;for(var E=this._columnCount*x;E<c;E++){var G=this.components.getByIndex(E),_=!1,L=null;if(-1!=G.sti_as(r.IStiTableCell).parentJoin){var N=0,O={ref:N};if(L=this.getParentJoin(G.sti_as(r.IStiTableCell).parentJoin,O),N=O.ref,B.containsKey(L)){if(x==+B.get(L))continue;var Z=new i.StiText;Z.page=G.page,Z.conditions=G.conditions,Z.setPaintRectangle(G.getPaintRectangle()),Z.clientRectangle=new a(G.sti_as(r.IStiTableCell).getRealLeft(),0,G.sti_as(r.IStiTableCell).getRealWidth(),G.sti_as(r.IStiTableCell).getRealHeight()),Z.name=G.name+"_Emp",Z.growToHeight=!0,Z.brush=new f,Z.dockStyle=G.sti_as(r.IStiTableCell).cellDockStyle,k.components.add(Z),u.add(Z),G==L&&(R.get(L).sti_as(r.IStiTableCell).parentJoinCell=Z);continue}B.add(L,x),G=L,_=!0}switch(G.top=0,G.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Image:var M=G.sti_as(r.StiTableCellImage).clone(!0).sti_as(i.StiImage);M.restrictions=M.restrictions^i.StiRestrictions.AllowDelete,M.dockStyle=G.sti_as(r.StiTableCellImage).cellDockStyle,this.setInteraction(G),k.components.add(M),u.add(M),_&&(M.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(M.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,M));break;case r.StiTablceCellType.Text:var H=G.sti_as(r.StiTableCell).clone(!0).sti_as(i.StiText);H.restrictions=H.restrictions^i.StiRestrictions.AllowDelete,H.dockStyle=G.sti_as(r.StiTableCell).cellDockStyle,this.setInteraction(G),k.components.add(H),u.add(H),_&&(H.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(H.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,H));break;case r.StiTablceCellType.CheckBox:var W=G.sti_as(r.StiTableCellCheckBox).clone(!0).sti_as(i.StiCheckBox);W.restrictions=W.restrictions^i.StiRestrictions.AllowDelete,W.dockStyle=G.sti_as(r.StiTableCellCheckBox).cellDockStyle,this.setInteraction(G),k.components.add(W),u.add(W),_&&(W.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(W.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,W));break;case r.StiTablceCellType.RichText:var V=G.sti_as(r.StiTableCellRichText).clone(!0).sti_as(i.StiRichText);V.restrictions=V.restrictions^i.StiRestrictions.AllowDelete,V.dockStyle=G.sti_as(r.StiTableCellRichText).cellDockStyle,this.setInteraction(G),k.components.add(V),u.add(V),_&&(V.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(V.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,V));break}}}t.components.insert(e,P),u.add(P),e++,g+=m+1}else if(I&&this._footerRowsCount>0){var Y=new i.StiGroupHeaderBand;Y.height=0,Y.clientRectangle=new a(h.x,g,h.width,0),Y.name=this.name+"_GrHdEmp",Y.page=this.page,Y.parent=this.page,Y.printAtBottom=this._headerPrintAtBottom,t.components.insert(e,Y),u.add(Y),e++,g+=1}if(this._rowCount-this._headerRowsCount-this._footerRowsCount>0){this.isConverted=!0,p=this.clone(!0,!1).sti_as(i.StiDataBand),this.isConverted=!1,p.components.clear(),this.setFilter(p);for(var T=this._headerRowsCount;T<b-this._footerRowsCount;T++)S+=this.components.getByIndex(T*this._columnCount).sti_as(r.IStiTableCell).getRealHeight();p.parent=this.parent,p.page=this.page,p.enabled=!0,p.clientRectangle=new a(h.x,g,h.width,S),p.name=this.name+"_DB",p.masterComponent=this.masterComponent;for(var B=new o,R=new o,j=this._headerRowsCount*this._columnCount,X=0,J=0;J<this._rowCount-this._headerRowsCount-this._footerRowsCount;J++){var D=this.components.getByIndex(j).sti_as(r.IStiTableCell).getRealHeight(),k=new i.StiPanel;k.clientRectangle=new a(h.x,X,h.width,D),k.name=p.name+"_DPnl"+J.toString(),k.canGrow=!0,k.canBreak=!0,k.canShrink=!0,k.dockStyle=i.StiDockStyle.Top,p.components.add(k),X+=D;for(var E=j;E<j+this._columnCount;E++){var G=this.components.getByIndex(E),_=!1,L=null;if(-1!=G.sti_as(r.IStiTableCell).parentJoin){var N=0,O={ref:N};if(L=this.getParentJoin(G.sti_as(r.IStiTableCell).parentJoin,O),N=O.ref,B.containsKey(L)){if(J==+B.get(L))continue;var Z=new i.StiText;Z.page=G.page,Z.conditions=G.conditions,Z.setPaintRectangle(G.getPaintRectangle()),Z.clientRectangle=new a(G.sti_as(r.IStiTableCell).getRealLeft(),0,G.sti_as(r.IStiTableCell).getRealWidth(),G.sti_as(r.IStiTableCell).getRealHeight()),Z.name=G.name+"_Emp",Z.growToHeight=!0,Z.brush=new f,Z.dockStyle=G.sti_as(r.IStiTableCell).cellDockStyle,k.components.add(Z),u.add(Z),G==L&&(R.get(L).sti_as(r.IStiTableCell).parentJoinCell=Z);continue}B.add(L,J),G=L,_=!0}switch(G.top=0,G.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Image:var M=G.sti_as(r.StiTableCellImage).sti_as(i.StiImage).clone(!0);M.restrictions=M.restrictions^i.StiRestrictions.AllowDelete,M.dockStyle=G.sti_as(r.StiTableCellImage).cellDockStyle,this.setInteraction(G),k.components.add(M),u.add(M),_&&(M.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(M.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,M));break;case r.StiTablceCellType.Text:var H=G.sti_as(r.StiTableCell).clone(!0).sti_as(i.StiText);H.restrictions=H.restrictions^i.StiRestrictions.AllowDelete,H.dockStyle=G.sti_as(r.StiTableCell).cellDockStyle,this.setInteraction(G),k.components.add(H),u.add(H),_&&(H.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(k.canGrow=!1),R.add(L,H));break;case r.StiTablceCellType.CheckBox:var W=G.sti_as(r.StiTableCellCheckBox).clone(!0).sti_as(i.StiCheckBox);W.restrictions=W.restrictions^i.StiRestrictions.AllowDelete,W.dockStyle=G.sti_as(r.StiTableCellCheckBox).cellDockStyle,this.setInteraction(G),k.components.add(W),u.add(W),_&&(W.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(W.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,W));break;case r.StiTablceCellType.RichText:var V=G.sti_as(r.StiTableCellRichText).clone(!0).sti_as(i.StiRichText);V.restrictions=V.restrictions^i.StiRestrictions.AllowDelete,V.dockStyle=G.sti_as(r.StiTableCellRichText).cellDockStyle,this.setInteraction(G),k.components.add(V),u.add(V),_&&(V.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(V.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,V));break}}j+=this._columnCount}t.components.insert(e,p),u.add(p),g+=S+.8,e++}if(this._footerRowsCount>0){for(var K=new o,R=new o,U=this.components.count-this._footerRowsCount*this._columnCount,T=b-this._footerRowsCount;T<b;T++)d+=this.components.getByIndex(T*this._columnCount).sti_as(r.IStiTableCell).getRealHeight();var z=null;I?(z=new i.StiGroupFooterBand,z.sti_as(i.StiGroupFooterBand).groupFooterBandInfo.isTableGroupFooter=!0,z.name=this.name+"_GrFt"):(z=new i.StiFooterBand,z.name=this.name+"_Ft",z.sti_as(i.StiFooterBand).footerBandInfo.isTableFooter=!0,z.sti_as(i.StiFooterBand).printOnAllPages=this._footerPrintOnAllPages,z.sti_as(i.StiFooterBand).printIfEmpty=this._footerPrintIfEmpty,z.sti_as(i.StiFooterBand).printOnEvenOddPages=this._footerPrintOnEvenOddPages),z.clientRectangle=new a(h.x,g,h.width,d),z.border=this.border,z.brush=this.brush,z.interaction=null,z.page=this.page,z.parent=this.page,z.canGrow=this._footerCanGrow,z.canShrink=this._footerCanShrink,z.canBreak=this._footerCanBreak,z.printAtBottom=this._footerPrintAtBottom,z.printOn=this._footerPrintOn;for(var Q=0,q=0;q<this._footerRowsCount;q++){var D=this.components.getByIndex(U).sti_as(r.IStiTableCell).getRealHeight(),k=new i.StiPanel;k.clientRectangle=new a(h.x,Q,h.width,D),k.name=z.name+"_FPnl"+q.toString(),k.canGrow=!0,k.canShrink=!0,k.dockStyle=i.StiDockStyle.Top,z.components.add(k),Q+=D;for(var E=U;E<U+this._columnCount;E++){var G=this.components.getByIndex(E),_=!1,L=null;if(-1!=G.sti_as(r.IStiTableCell).parentJoin){var N=0,O={ref:N};if(L=this.getParentJoin(G.sti_as(r.IStiTableCell).parentJoin,O),N=O.ref,K.containsKey(L)){if(q==+K.get(L))continue;var Z=new i.StiText;Z.page=G.page,Z.conditions=G.conditions,Z.setPaintRectangle(G.getPaintRectangle()),Z.clientRectangle=new a(G.sti_as(r.IStiTableCell).getRealLeft(),0,G.sti_as(r.IStiTableCell).getRealWidth(),G.sti_as(r.IStiTableCell).getRealHeight()),Z.name=G.name+"_Emp",Z.growToHeight=!0,Z.brush=new f,Z.dockStyle=G.sti_as(r.IStiTableCell).cellDockStyle,k.components.add(Z),u.add(Z),G==L&&(R.get(L).sti_as(r.IStiTableCell).parentJoinCell=Z);continue}K.add(L,q),G=L,_=!0}switch(G.top=0,G.sti_as(r.IStiTableCell).cellType){case r.StiTablceCellType.Image:var M=G.sti_as(r.StiTableCellImage).clone(!0).sti_as(i.StiImage);M.restrictions=M.restrictions^i.StiRestrictions.AllowDelete,M.dockStyle=G.sti_as(r.StiTableCellImage).cellDockStyle,this.setInteraction(G),k.components.add(M),u.add(M),_&&(M.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(M.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,M));break;case r.StiTablceCellType.Text:var H=G.sti_as(r.StiTableCell).clone(!0).sti_as(i.StiText);H.restrictions=H.restrictions^i.StiRestrictions.AllowDelete,H.dockStyle=G.sti_as(r.StiTableCell).cellDockStyle,this.setInteraction(G),k.components.add(H),u.add(H),_&&(H.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(H.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,H));break;case r.StiTablceCellType.CheckBox:var W=G.sti_as(r.StiTableCellCheckBox).clone(!0).sti_as(i.StiCheckBox);W.restrictions=W.restrictions^i.StiRestrictions.AllowDelete,W.dockStyle=G.sti_as(r.StiTableCellCheckBox).cellDockStyle,this.setInteraction(G),k.components.add(W),u.add(W),_&&(W.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(W.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,W));break;case r.StiTablceCellType.RichText:var V=G.sti_as(r.StiTableCellRichText).clone(!0).sti_as(i.StiRichText);V.restrictions=V.restrictions^i.StiRestrictions.AllowDelete,V.dockStyle=G.sti_as(r.StiTableCellRichText).cellDockStyle,this.setInteraction(G),k.components.add(V),u.add(V),_&&(V.canGrow=!0,this.isEqualRows(G,this.components.getByIndex(E))||(V.height=G.sti_as(r.IStiTableCell).getRealHeight()),R.add(L,V));break}}U+=this._columnCount}t.components.insert(e,z),e++,u.add(z)}else if(I&&this._headerRowsCount>0){var $=new i.StiGroupFooterBand;$.height=0,$.clientRectangle=new a(h.x,g,h.width,0),$.name=this.name+"_GrFtEmp",$.page=this.page,$.parent=this.page,$.printAtBottom=this._footerPrintAtBottom,t.components.insert(e,$),u.add($),e++}return this.reverseCells(this.rightToLeft),p},C.prototype.reverseCells=function(t){if(!t)return;for(var e=0;e<this.rowCount;e++)for(var i=e*this.columnCount,r=this.columnCount/2,n=0;n<r;n++){var o=this.components.getByIndex(i+n);this.components.setByIndex(i+n,this.components.getByIndex(i+this.columnCount-1-n)),this.components.setByIndex(i+this.columnCount-1-n,o)}for(var a=0;a<this.components.count;a++){var s=this.components.getByIndex(a);s.left=this.width-s.right}},C.prototype.setFilter=function(e){var r=e.sti_as(t.Report.Dictionary.IStiEnumerator),n=e.sti_as(i.IStiFilter),o=e.sti_as(i.IStiDataSource)},C.prototype.setInteraction=function(t){if(null==t.interaction)return;var e=t.interaction;if(e.sortingEnabled&&!String.isNullOrEmpty(e.sortingColumn)){var i=e.sortingColumn.indexOf(".",S.InvariantCulture);-1!=i&&(e.sortingColumn=e.sortingColumn.insert(i,"_DataBand",0))}},C.prototype.getParentJoin=function(t,e){for(var n=e.ref,o=0,a=0,s=this.components.list;a<s.length;a++){var l=s[a];if(l.sti_as(r.IStiTableCell).id==t)return n=+o/this._columnCount,l.sti_as(i.StiComponent);o++}return e.ref=n,null},C.prototype.isEqualRows=function(t,e){return+this.components.indexOf(t)/this._columnCount==+this.components.indexOf(e)/this._columnCount},C.prototype.createNew=function(){return new C},C}(i.StiDataBand);r.StiTable=y;var b=function(){function t(t,e,i,r,n){void 0===i&&(i=null),void 0===r&&(r=null),void 0===n&&(n=null),null!=n?n.sti_is(Boolean)?(this.dataColor=t,this.dataTextColor=i,this.headerFooterTextColor=r,n?this.headerColor=e:this.footerColor=e):(this.dataColor=t,this.dataTextColor=r,this.headerFooterTextColor=n.sti_as(u),this.headerColor=e,this.footerColor=i):(this.gridColor=t,this.dataTextColor=e)}return t.getStyle=function(e){switch(e){case r.StiTableStyle.StyleNone:return new t(u.fromArgb(105,105,105),u.black);case r.StiTableStyle.Style11:return new t(u.fromArgb(0,0,0),u.black);case r.StiTableStyle.Style12:return new t(u.fromArgb(79,129,189),u.black);case r.StiTableStyle.Style13:return new t(u.fromArgb(192,80,77),u.black);case r.StiTableStyle.Style14:return new t(u.fromArgb(155,187,89),u.black);case r.StiTableStyle.Style15:return new t(u.fromArgb(128,100,162),u.black);case r.StiTableStyle.Style16:return new t(u.fromArgb(75,172,198),u.black);case r.StiTableStyle.Style17:return new t(u.fromArgb(247,150,70),u.black);case r.StiTableStyle.Style18:return new t(u.fromArgb(221,160,221),u.black);case r.StiTableStyle.Style19:return new t(u.fromArgb(32,178,170),u.black);case r.StiTableStyle.Style31:return new t(u.white,u.fromArgb(0,0,0),u.black,u.white,!0);case r.StiTableStyle.Style32:return new t(u.white,u.fromArgb(79,129,189),u.black,u.white,!0);case r.StiTableStyle.Style33:return new t(u.white,u.fromArgb(192,80,77),u.black,u.white,!0);case r.StiTableStyle.Style34:return new t(u.white,u.fromArgb(155,187,89),u.black,u.white,!0);case r.StiTableStyle.Style35:return new t(u.white,u.fromArgb(128,100,162),u.black,u.white,!0);case r.StiTableStyle.Style36:return new t(u.white,u.fromArgb(75,172,198),u.black,u.white,!0);case r.StiTableStyle.Style37:return new t(u.white,u.fromArgb(247,150,70),u.black,u.white,!0);case r.StiTableStyle.Style38:return new t(u.white,u.fromArgb(221,160,221),u.black,u.white,!0);case r.StiTableStyle.Style39:return new t(u.white,u.fromArgb(32,178,170),u.black,u.white,!0);case r.StiTableStyle.Style41:return new t(u.white,u.fromArgb(0,0,0),u.black,u.white,!1);case r.StiTableStyle.Style42:return new t(u.white,u.fromArgb(79,129,189),u.black,u.white,!1);case r.StiTableStyle.Style43:return new t(u.white,u.fromArgb(192,80,77),u.black,u.white,!1);case r.StiTableStyle.Style44:return new t(u.white,u.fromArgb(155,187,89),u.black,u.white,!1);case r.StiTableStyle.Style45:return new t(u.white,u.fromArgb(128,100,162),u.black,u.white,!1);case r.StiTableStyle.Style46:return new t(u.white,u.fromArgb(75,172,198),u.black,u.white,!1);case r.StiTableStyle.Style47:return new t(u.white,u.fromArgb(247,150,70),u.black,u.white,!1);case r.StiTableStyle.Style48:return new t(u.white,u.fromArgb(221,160,221),u.black,u.white,!1);case r.StiTableStyle.Style49:return new t(u.white,u.fromArgb(32,178,170),u.black,u.white,!1);case r.StiTableStyle.Style51:return new t(u.white,u.fromArgb(0,0,0),u.fromArgb(0,0,0),u.black,u.white);case r.StiTableStyle.Style52:return new t(u.white,u.fromArgb(79,129,189),u.fromArgb(79,129,189),u.black,u.white);case r.StiTableStyle.Style53:return new t(u.white,u.fromArgb(192,80,77),u.fromArgb(192,80,77),u.black,u.white);case r.StiTableStyle.Style54:return new t(u.white,u.fromArgb(155,187,89),u.fromArgb(155,187,89),u.black,u.white);case r.StiTableStyle.Style55:return new t(u.white,u.fromArgb(128,100,162),u.fromArgb(128,100,162),u.black,u.white);case r.StiTableStyle.Style56:return new t(u.white,u.fromArgb(75,172,198),u.fromArgb(75,172,198),u.black,u.white);case r.StiTableStyle.Style57:return new t(u.white,u.fromArgb(247,150,70),u.fromArgb(247,150,70),u.black,u.white);case r.StiTableStyle.Style58:return new t(u.white,u.fromArgb(221,160,221),u.fromArgb(221,160,221),u.black,u.white);case r.StiTableStyle.Style59:return new t(u.white,u.fromArgb(32,178,170),u.fromArgb(32,178,170),u.black,u.white)}return null},t}()}(r=i.Table||(i.Table={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Base.StiJsonReportObjectHelper,o=t.System.Drawing.Rectangle,a=t.System.Drawing.Size,s=t.System.Enum,l=function(t){function l(){var e=null!==t&&t.apply(this,arguments)||this;return e._cellDockStyle=i.StiDockStyle.None,e._parentJoinCell=null,e._joinCells=new Array(0),e._parentJoin=-1,e._join=!1,e._id=-1,e._joinWidth=0,e._joinHeight=0,e._tableTag=null,e._cellType=r.StiTablceCellType.Text,e._fixedWidth=!1,e._column=0,e}return __extends(l,t),l.prototype.implements=function(){return l.ImplementsStiTableCell||(l.ImplementsStiTableCell=t.prototype.implements.call(this).concat([r.IStiTableCell,r.IStiTableComponent])),l.ImplementsStiTableCell},l.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.removeProperty("Locked"),o.removeProperty("Linked"),o.addPropertyEnum("CellDockStyle",i.StiDockStyle,this.cellDockStyle,i.StiDockStyle.None),o.addPropertyJObject("JoinCells",n.Serialize.numberArray(this.joinCells)),o.addPropertyNumber("ParentJoin",this.parentJoin,-1),o.addPropertyBool("Join",this.join),o.addPropertyNumber("ID",this.id,-1),o.addPropertyNumber("JoinWidth",this.joinWidth),o.addPropertyNumber("JoinHeight",this.joinHeight),o.addPropertyEnum("CellType",r.StiTablceCellType,this.cellType,r.StiTablceCellType.Text),o.addPropertyBool("FixedWidth",this.fixedWidth),o},l.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var o=0,a=e.properties();o<a.length;o++){var l=a[o];switch(l.name){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,l.value);break;case"JoinCells":this._joinCells=n.Deserialize.numberArray(l.value);break;case"ParentJoin":this._parentJoin=l.value.toNumber();break;case"Join":this._join=l.value.toBoolean();break;case"ID":this._id=l.value.toNumber();break;case"JoinWidth":this._joinWidth=l.value.toNumber();break;case"JoinHeight":this._joinHeight=l.value.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,l.value);break;case"FixedWidth":this._fixedWidth=l.value.toBoolean();break}}},l.prototype.loadJoinCellsFromXml=function(t){for(var e=[],i=0,r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];"value"==n.nodeName&&(e[i]=n.textContent.toNumber(),i++)}return e},l.prototype.loadFromXml=function(e,n){t.prototype.loadFromXml.call(this,e,n);for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];switch(a.nodeName){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,a.textContent);break;case"JoinCells":this._joinCells=this.loadJoinCellsFromXml(a);break;case"ParentJoin":this._parentJoin=a.textContent.toNumber();break;case"Join":this._join=a.textContent.toBoolean();break;case"ID":this._id=a.textContent.toNumber();break;case"JoinWidth":this._joinWidth=a.textContent.toNumber();break;case"JoinHeight":this._joinHeight=a.textContent.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,a.textContent);break;case"FixedWidth":this._fixedWidth=a.textContent.toBoolean();break}}},Object.defineProperty(l.prototype,"componentId",{get:function(){return e.StiComponentId.StiTableCell},enumerable:!0,configurable:!0}),l.prototype.clone=function(e){var i=t.prototype.clone.call(this,e).sti_as(l);return i._join=this._join,i.minSize=new a(0,0),i.maxSize=new a(0,0),i._cellDockStyle=this._cellDockStyle,i._joinWidth=this._joinWidth,i._joinHeight=this._joinHeight,i._cellType=this._cellType,i._column=this._column,i._fixedWidth=this._fixedWidth,i._id=this._id,i._joinCells=this._joinCells.clone(),-1!=this._parentJoin?i._parentJoin=this._parentJoin:i._parentJoin=-1,i},Object.defineProperty(l.prototype,"locked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"linked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"canGrow",{get:function(){return t.prototype.getCanGrow.call(this)},set:function(e){t.prototype.getCanGrow.call(this)!=e&&(t.prototype.setCanGrow.call(this,e),this.parent.sti_is(r.StiTable)&&this.parent.changeGrowToHeightAtCell(this))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"autoWidth",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"cellDockStyle",{get:function(){return this._cellDockStyle},set:function(t){this._cellDockStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"parentJoinCell",{get:function(){return this._parentJoinCell},set:function(t){this._parentJoinCell=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinCells",{get:function(){return this._joinCells},set:function(t){this._joinCells=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"parentJoin",{get:function(){return this._parentJoin},set:function(t){this._parentJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"join",{get:function(){return this._join},set:function(t){this._join!=t&&(t?(this.createJoin(),this._join=!0):(this.deleteJoin(),this._join=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinWidth",{get:function(){return this._joinWidth},set:function(t){this._joinWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinHeight",{get:function(){return this._joinHeight},set:function(t){this._joinHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"merged",{get:function(){return-1!=this._parentJoin},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeTopPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){return this.parent.components.indexOf(this)>=this.parent.columnCount}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeLeftPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=0;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.columnCount}return!0}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeRightPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=this.parent.columnCount-1;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.columnCount}}return!0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"tableTag",{get:function(){return this._tableTag},set:function(t){this._tableTag=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"cellType",{get:function(){return this._cellType},set:function(t){this._cellType=t;var e=this.parent.sti_as(r.StiTable);if(null!=e)switch(t){case r.StiTablceCellType.Image:e.changeTableCellContentInImage(this);break;case r.StiTablceCellType.CheckBox:e.changeTableCellContentInCheckBox(this);break;case r.StiTablceCellType.RichText:e.changeTableCellContentInRichText(this);break}},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"fixedWidth",{get:function(){return this._fixedWidth},set:function(t){this._fixedWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t},enumerable:!0,configurable:!0}),l.prototype.getJoinComponentByGuid=function(t){if(null==this.parent&&0==this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==t)return n}return null},l.prototype.getJoinComponentByIndex=function(t){if(t<0&&null==this.parent&&0==this._joinCells.length&&t>=this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==this._joinCells[t])return n}return null},l.prototype.containsGuid=function(t){if(0==this._joinCells.length)return!1;for(var e=0;e<this._joinCells.length;e++)if(this._joinCells[e]==t)return!0;return!1},l.prototype.createJoin=function(){var t=this.parent.sti_as(r.StiTable);if(null==t&&null==this.page)return;var e=0,i=0,n={ref:e},a={ref:i},s={ref:this._joinWidth},l={ref:this._joinHeight};if(this._joinCells=t.createJoin(n,a,s,l),0==this._joinCells.length)return;e=n.ref,i=a.ref,this._joinWidth=s.ref,this._joinHeight=l.ref;for(var u=0,c=0,p=0;p<this._joinCells.length-1;p++){var h=this.getJoinComponentByIndex(p);0==p&&(u=h.left,c=h.top),h.enabled=!1,h.sti_as(r.IStiTableCell).parentJoin=this._id}this._parentJoin=this._id,this.clientRectangle=new o(u,c,e,i)},l.prototype.deleteJoin=function(){if(null==this.page&&0==this._joinCells.length)return;for(var t=0;t<this._joinCells.length-1;t++){var e=this.getJoinComponentByIndex(t);e.enabled=!0,e.sti_as(r.IStiTableCell).parentJoin=-1}this.clientRectangle=this.getNewClientRectangle(),this._joinCells=new Array(0),this._parentJoin=-1,this._joinWidth=0,this._joinHeight=0},l.prototype.getNewClientRectangle=function(){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(t);return this.parent.components.indexOf(this)-e==1?new o(t.right,t.top,this.right-t.right,t.height):new o(t.left,t.bottom,t.width,this.bottom-t.bottom)},l.prototype.setJoinSize=function(){if(!this._join)return;var t=this.getJoinComponentByIndex(0),e=t.left,i=t.top;this.clientRectangle=new o(e,i,this.right-e,this.bottom-i)},l.prototype.getRealHeightAfterInsertRows=function(){if(this._join){if(1==this._joinHeight)return t.prototype.getHeight.call(this);for(var e=0,i=Math.trunc(this.parent.components.indexOf(this.getJoinComponentByIndex(0))/this.parent.columnCount),r=Math.trunc(this.parent.components.indexOf(this)/this.parent.columnCount),n=i;n<r;n++){var o=n*this.parent.columnCount;e+=this.parent.components.list[o].height}return t.prototype.getHeight.call(this)-e}return t.prototype.getHeight.call(this)},l.prototype.getRealHeight=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.columnCount>1?i-n==1?e.height:this.bottom-e.top-e.sti_as(r.IStiTableCell).getRealHeight():t.prototype.getBottom.call(this)-e.bottom}return t.prototype.getHeight.call(this)},l.prototype.getRealTop=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),r=this.parent.components.indexOf(e);return this.parent.columnCount>1&&i-r==1?e.top:e.bottom}return t.prototype.getTop.call(this)},l.prototype.getRealWidth=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),r=this.parent.components.indexOf(e);return this.parent.rowCount>1?i-r==1?this.right-e.right:e.width:this.right-e.right}return t.prototype.getWidth.call(this)},l.prototype.getRealLeft=function(){if(this._join){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(this),i=this.parent.components.indexOf(t);return this.parent.rowCount>1?e-i==1?t.right:t.left:t.right}return this.left},l.prototype.createNew=function(){return new l},l}(i.StiText);r.StiTableCell=l}(r=i.Table||(i.Table={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Base.StiJsonReportObjectHelper,o=t.System.Drawing.Rectangle,a=t.System.Drawing.Size,s=t.System.Enum,l=function(t){function l(){var e=null!==t&&t.apply(this,arguments)||this;return e._cellDockStyle=i.StiDockStyle.None,e._parentJoinCell=null,e._joinCells=new Array(0),e._parentJoin=-1,e._join=!1,e._id=-1,e._joinWidth=0,e._joinHeight=0,e._tableTag=null,e._cellType=r.StiTablceCellType.CheckBox,e._fixedWidth=!1,e._column=0,e}return __extends(l,t),l.prototype.implements=function(){return l.ImplementsStiTableCellCheckBox||(l.ImplementsStiTableCellCheckBox=t.prototype.implements.call(this).concat([r.IStiTableCell,r.IStiTableComponent])),l.ImplementsStiTableCellCheckBox},l.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.removeProperty("Locked"),o.removeProperty("Linked"),o.addPropertyEnum("CellDockStyle",i.StiDockStyle,this.cellDockStyle,i.StiDockStyle.None),o.addPropertyJObject("JoinCells",n.Serialize.numberArray(this.joinCells)),o.addPropertyNumber("ParentJoin",this.parentJoin,-1),o.addPropertyBool("Join",this.join),o.addPropertyNumber("ID",this.id,-1),o.addPropertyNumber("JoinWidth",this.joinWidth),o.addPropertyNumber("JoinHeight",this.joinHeight),o.addPropertyEnum("CellType",r.StiTablceCellType,this.cellType,r.StiTablceCellType.CheckBox),o.addPropertyBool("FixedWidth",this.fixedWidth),o},l.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var o=0,a=e.properties();o<a.length;o++){var l=a[o];switch(l.name){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,l.value);break;case"JoinCells":this._joinCells=n.Deserialize.numberArray(l.value);break;case"ParentJoin":this._parentJoin=l.value.toNumber();break;case"Join":this._join=l.value.toBoolean();break;case"ID":this._id=l.value.toNumber();break;case"JoinWidth":this._joinWidth=l.value.toNumber();break;case"JoinHeight":this._joinHeight=l.value.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,l.value);break;case"FixedWidth":this._fixedWidth=l.value.toBoolean();break}}},l.prototype.loadJoinCellsFromXml=function(t){for(var e=[],i=0,r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];"value"==n.nodeName&&(e[i]=n.textContent.toNumber(),i++)}return e},l.prototype.loadFromXml=function(e,n){t.prototype.loadFromXml.call(this,e,n);for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];switch(a.nodeName){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,a.textContent);break;case"JoinCells":this._joinCells=this.loadJoinCellsFromXml(a);break;case"ParentJoin":this._parentJoin=a.textContent.toNumber();break;case"Join":this._join=a.textContent.toBoolean();break;case"ID":this._id=a.textContent.toNumber();break;case"JoinWidth":this._joinWidth=a.textContent.toNumber();break;case"JoinHeight":this._joinHeight=a.textContent.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,a.textContent);break;case"FixedWidth":this._fixedWidth=a.textContent.toBoolean();break}}},Object.defineProperty(l.prototype,"componentId",{get:function(){return e.StiComponentId.StiTableCellCheckBox},enumerable:!0,configurable:!0}),l.prototype.clone=function(e){var i=t.prototype.clone.call(this,e).sti_as(l);return i._join=this._join,i.minSize=new a(0,0),i.maxSize=new a(0,0),i._cellDockStyle=this._cellDockStyle,i._joinWidth=this._joinWidth,i._joinHeight=this._joinHeight,i._cellType=this._cellType,i._column=this._column,i._fixedWidth=this._fixedWidth,i._id=this._id,i._joinCells=this._joinCells.clone(),-1!=this._parentJoin?i._parentJoin=this._parentJoin:i._parentJoin=-1,i},Object.defineProperty(l.prototype,"locked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"linked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"canShrink",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"canGrow",{get:function(){return t.prototype.getCanGrow.call(this)},set:function(e){t.prototype.getCanGrow.call(this)!=e&&(t.prototype.setCanGrow.call(this,e),this.parent.sti_is(r.StiTable)&&this.parent.sti_as(r.StiTable).changeGrowToHeightAtCell(this))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"cellDockStyle",{get:function(){return this._cellDockStyle},set:function(t){this._cellDockStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"parentJoinCell",{get:function(){return this._parentJoinCell},set:function(t){this._parentJoinCell=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinCells",{get:function(){return this._joinCells},set:function(t){this._joinCells=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"parentJoin",{get:function(){return this._parentJoin},set:function(t){this._parentJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"join",{get:function(){return this._join},set:function(t){this._join!=t&&(t?(this.createJoin(),this._join=!0):(this.deleteJoin(),this._join=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinWidth",{get:function(){return this._joinWidth},set:function(t){this._joinWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinHeight",{get:function(){return this._joinHeight},set:function(t){this._joinHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"merged",{get:function(){return-1!=this._parentJoin},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeTopPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){return this.parent.components.indexOf(this)>=this.parent.sti_as(r.StiTable).columnCount}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeLeftPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=0;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.sti_as(r.StiTable).columnCount}return!0}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeRightPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=this.parent.sti_as(r.StiTable).columnCount-1;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.sti_as(r.StiTable).columnCount}}return!0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"tableTag",{get:function(){return this._tableTag},set:function(t){this._tableTag=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"cellType",{get:function(){return this._cellType},set:function(t){this._cellType=t;var e=this.parent.sti_as(r.StiTable);if(null!=e)switch(t){case r.StiTablceCellType.Text:e.changeTableCellContentInText(this);break;case r.StiTablceCellType.Image:e.changeTableCellContentInImage(this);break;case r.StiTablceCellType.RichText:e.changeTableCellContentInRichText(this);break}},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"fixedWidth",{get:function(){return this._fixedWidth},set:function(t){this._fixedWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t},enumerable:!0,configurable:!0}),l.prototype.getJoinComponentByGuid=function(t){if(null==this.parent&&0==this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==t)return n}return null},l.prototype.getJoinComponentByIndex=function(t){if(t<0&&null==this.parent&&0==this._joinCells.length&&t>=this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==this._joinCells[t])return n}return null},l.prototype.containsGuid=function(t){if(0==this._joinCells.length)return!1;for(var e=0;e<this._joinCells.length;e++)if(this._joinCells[e]==t)return!0;return!1},l.prototype.createJoin=function(){var t=this.parent.sti_as(r.StiTable);if(null==t&&null==this.page)return;var e=0,i=0,n={ref:e},a={ref:i},s={ref:this._joinWidth},l={ref:this._joinHeight};if(this._joinCells=t.createJoin(n,a,s,l),e=n.ref,i=a.ref,this._joinWidth=s.ref,this._joinHeight=l.ref,null==this._joinCells||0==this._joinCells.length)return;for(var u=0,c=0,p=0;p<this._joinCells.length-1;p++){var h=this.getJoinComponentByIndex(p);0==p&&(u=h.left,c=h.top),h.enabled=!1,h.sti_as(r.IStiTableCell).parentJoin=this._id}this._parentJoin=this._id,this.clientRectangle=new o(u,c,e,i)},l.prototype.deleteJoin=function(){if(null==this.page&&0==this._joinCells.length)return;for(var t=0;t<this._joinCells.length-1;t++){var e=this.getJoinComponentByIndex(t);e.enabled=!0,e.sti_as(r.IStiTableCell).parentJoin=-1}this.clientRectangle=this.getNewClientRectangle(),this._joinCells=new Array(0),this._parentJoin=-1,this._joinWidth=0,this._joinHeight=0},l.prototype.getNewClientRectangle=function(){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(t);return this.parent.components.indexOf(this)-e==1?new o(t.right,t.top,this.right-t.right,t.height):new o(t.left,t.bottom,t.width,this.bottom-t.bottom)},l.prototype.setJoinSize=function(){if(!this._join)return;var t=this.getJoinComponentByIndex(0),e=t.left,i=t.top;this.clientRectangle=new o(e,i,this.right-e,this.bottom-i)},l.prototype.getRealHeightAfterInsertRows=function(){if(this._join){if(1==this._joinHeight)return t.prototype.getHeight.call(this);for(var e=0,i=+this.parent.components.indexOf(this.getJoinComponentByIndex(0))/this.parent.sti_as(r.StiTable).columnCount,n=+this.parent.components.indexOf(this)/this.parent.sti_as(r.StiTable).columnCount,o=i;o<n;o++){var a=o*this.parent.sti_as(r.StiTable).columnCount;e+=this.parent.components.getByIndex(a).height}return t.prototype.getHeight.call(this)-e}return t.prototype.getHeight.call(this)},l.prototype.getRealHeight=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).columnCount>1&&i-n==1?e.height:t.prototype.getBottom.call(this)-e.bottom}return t.prototype.getHeight.call(this)},l.prototype.getRealTop=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).columnCount>1&&i-n==1?e.top:e.bottom}return t.prototype.getTop.call(this)},l.prototype.getRealWidth=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).rowCount>1?i-n==1?this.right-e.right:e.width:this.right-e.right}return t.prototype.getWidth.call(this)},l.prototype.getRealLeft=function(){if(this._join){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(this),i=this.parent.components.indexOf(t);return this.parent.sti_as(r.StiTable).rowCount>1?e-i==1?t.right:t.left:t.right}return this.left},l.prototype.createNew=function(){return new l},l}(i.StiCheckBox);r.StiTableCellCheckBox=l}(r=i.Table||(i.Table={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Base.StiJsonReportObjectHelper,o=t.System.Drawing.Rectangle,a=t.System.Drawing.Size,s=t.System.Enum,l=function(t){function l(){var e=null!==t&&t.apply(this,arguments)||this;return e._cellDockStyle=i.StiDockStyle.None,e._parentJoinCell=null,e._joinCells=new Array(0),e._parentJoin=-1,e._join=!1,e._id=-1,e._joinWidth=0,e._joinHeight=0,e._tableTag=null,e._cellType=r.StiTablceCellType.Image,e._fixedWidth=!1,e._column=0,e}return __extends(l,t),l.prototype.implements=function(){return l.ImplementsStiTableCellImage||(l.ImplementsStiTableCellImage=t.prototype.implements.call(this).concat([r.IStiTableCell,r.IStiTableComponent])),l.ImplementsStiTableCellImage},l.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.removeProperty("Locked"),o.removeProperty("Linked"),o.addPropertyEnum("CellDockStyle",i.StiDockStyle,this.cellDockStyle,i.StiDockStyle.None),o.addPropertyJObject("JoinCells",n.Serialize.numberArray(this.joinCells)),o.addPropertyNumber("ParentJoin",this.parentJoin,-1),o.addPropertyBool("Join",this.join),o.addPropertyNumber("ID",this.id,-1),o.addPropertyNumber("JoinWidth",this.joinWidth),o.addPropertyNumber("JoinHeight",this.joinHeight),o.addPropertyEnum("CellType",r.StiTablceCellType,this.cellType,r.StiTablceCellType.Image),o.addPropertyBool("FixedWidth",this.fixedWidth),o},l.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var o=0,a=e.properties();o<a.length;o++){var l=a[o];switch(l.name){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,l.value);break;case"JoinCells":this._joinCells=n.Deserialize.numberArray(l.value);break;case"ParentJoin":this._parentJoin=l.value.toNumber();break;case"Join":this._join=l.value.toBoolean();break;case"ID":this._id=l.value.toNumber();break;case"JoinWidth":this._joinWidth=l.value.toNumber();break;case"JoinHeight":this._joinHeight=l.value.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,l.value);break;case"FixedWidth":this._fixedWidth=l.value.toBoolean();break}}},l.prototype.loadJoinCellsFromXml=function(t){for(var e=[],i=0,r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];"value"==n.nodeName&&(e[i]=n.textContent.toNumber(),i++)}return e},l.prototype.loadFromXml=function(e,n){t.prototype.loadFromXml.call(this,e,n);for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];switch(a.nodeName){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,a.textContent);break;case"JoinCells":this._joinCells=this.loadJoinCellsFromXml(a);break;case"ParentJoin":this._parentJoin=a.textContent.toNumber();break;case"Join":this._join=a.textContent.toBoolean();break;case"ID":this._id=a.textContent.toNumber();break;case"JoinWidth":this._joinWidth=a.textContent.toNumber();break;case"JoinHeight":this._joinHeight=a.textContent.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,a.textContent);break;case"FixedWidth":this._fixedWidth=a.textContent.toBoolean();break}}},Object.defineProperty(l.prototype,"componentId",{get:function(){return e.StiComponentId.StiTableCellImage},enumerable:!0,configurable:!0}),l.prototype.clone=function(e){var i=t.prototype.clone.call(this,e).sti_as(l);return i._join=this._join,i.minSize=new a(0,0),i.maxSize=new a(0,0),i._cellDockStyle=this._cellDockStyle,i._joinWidth=this._joinWidth,i._joinHeight=this._joinHeight,i._cellType=this._cellType,i._column=this._column,i._fixedWidth=this._fixedWidth,i._id=this._id,i._joinCells=this._joinCells.clone(),-1!=this._parentJoin?i._parentJoin=this._parentJoin:i._parentJoin=-1,i},Object.defineProperty(l.prototype,"locked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"linked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"canShrink",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"canGrow",{get:function(){return t.prototype.getCanGrow.call(this)},set:function(e){t.prototype.getCanGrow.call(this)!=e&&(t.prototype.setCanGrow.call(this,e),this.parent.sti_is(r.StiTable)&&this.parent.sti_as(r.StiTable).changeGrowToHeightAtCell(this))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"cellDockStyle",{get:function(){return this._cellDockStyle},set:function(t){this._cellDockStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"parentJoinCell",{get:function(){return this._parentJoinCell},set:function(t){this._parentJoinCell=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinCells",{get:function(){return this._joinCells},set:function(t){this._joinCells=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"parentJoin",{get:function(){return this._parentJoin},set:function(t){this._parentJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"join",{get:function(){return this._join},set:function(t){this._join!=t&&(t?(this.createJoin(),this._join=!0):(this.deleteJoin(),this._join=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinWidth",{get:function(){return this._joinWidth},set:function(t){this._joinWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"joinHeight",{get:function(){return this._joinHeight},set:function(t){this._joinHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"merged",{get:function(){return-1!=this._parentJoin},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeTopPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){return this.parent.components.indexOf(this)>=this.parent.sti_as(r.StiTable).columnCount}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeLeftPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=0;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.sti_as(r.StiTable).columnCount}return!0}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"changeRightPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=this.parent.sti_as(r.StiTable).columnCount-1;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.sti_as(r.StiTable).columnCount}}return!0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"tableTag",{get:function(){return this._tableTag},set:function(t){this._tableTag=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"cellType",{get:function(){return this._cellType},set:function(t){this._cellType=t;var e=this.parent.sti_as(r.StiTable);if(null!=e)switch(t){case r.StiTablceCellType.Text:e.changeTableCellContentInText(this);break;case r.StiTablceCellType.CheckBox:e.changeTableCellContentInCheckBox(this);break;case r.StiTablceCellType.RichText:e.changeTableCellContentInRichText(this);break}},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"fixedWidth",{get:function(){return this._fixedWidth},set:function(t){this._fixedWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t},enumerable:!0,configurable:!0}),l.prototype.getJoinComponentByGuid=function(t){if(null==this.parent&&0==this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==t)return n}return null},l.prototype.getJoinComponentByIndex=function(t){if(t<0&&null==this.parent&&0==this._joinCells.length&&t>=this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==this._joinCells[t])return n}return null},l.prototype.containsGuid=function(t){if(0==this._joinCells.length)return!1;for(var e=0;e<this._joinCells.length;e++)if(this._joinCells[e]==t)return!0;return!1},l.prototype.createJoin=function(){var t=this.parent.sti_as(r.StiTable);if(null==t&&null==this.page)return;var e=0,i=0,n={ref:e},a={ref:i},s={ref:this._joinWidth},l={ref:this._joinHeight};if(this._joinCells=t.createJoin(n,a,s,l),0==this._joinCells.length)return;e=n.ref,i=a.ref,this._joinWidth=s.ref,this._joinHeight=l.ref;for(var u=0,c=0,p=0;p<this._joinCells.length-1;p++){var h=this.getJoinComponentByIndex(p);0==p&&(u=h.left,c=h.top),h.enabled=!1,h.sti_as(r.IStiTableCell).parentJoin=this._id}this._parentJoin=this._id,this.clientRectangle=new o(u,c,e,i)},l.prototype.deleteJoin=function(){if(null==this.page&&0==this._joinCells.length)return;for(var t=0;t<this._joinCells.length-1;t++){var e=this.getJoinComponentByIndex(t);e.enabled=!0,e.sti_as(r.IStiTableCell).parentJoin=-1}this.clientRectangle=this.getNewClientRectangle(),this._joinCells=new Array(0),this._parentJoin=-1,this._joinWidth=0,this._joinHeight=0},l.prototype.getNewClientRectangle=function(){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(t);return this.parent.components.indexOf(this)-e==1?new o(t.right,t.top,this.right-t.right,t.height):new o(t.left,t.bottom,t.width,this.bottom-t.bottom)},l.prototype.setJoinSize=function(){if(!this._join)return;var t=this.getJoinComponentByIndex(0),e=t.left,i=t.top;this.clientRectangle=new o(e,i,this.right-e,this.bottom-i)},l.prototype.getRealHeightAfterInsertRows=function(){if(this._join){if(1==this._joinHeight)return t.prototype.getHeight.call(this);for(var e=0,i=+this.parent.components.indexOf(this.getJoinComponentByIndex(0))/this.parent.sti_as(r.StiTable).columnCount,n=+this.parent.components.indexOf(this)/this.parent.sti_as(r.StiTable).columnCount,o=i;o<n;o++){var a=o*this.parent.sti_as(r.StiTable).columnCount;e+=this.parent.components.getByIndex(a).height}return t.prototype.getHeight.call(this)-e}return t.prototype.getHeight.call(this)},l.prototype.getRealHeight=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).columnCount>1&&i-n==1?e.height:t.prototype.getBottom.call(this)-e.bottom}return t.prototype.getHeight.call(this)},l.prototype.getRealTop=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).columnCount>1&&i-n==1?e.top:e.bottom}return t.prototype.getTop.call(this)},l.prototype.getRealWidth=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).rowCount>1?i-n==1?this.right-e.right:e.width:this.right-e.right}return t.prototype.getWidth.call(this)},l.prototype.getRealLeft=function(){if(this._join){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(this),i=this.parent.components.indexOf(t);return this.parent.sti_as(r.StiTable).rowCount>1?e-i==1?t.right:t.left:t.right}return this.left},l.prototype.createNew=function(){return new l},l}(i.StiImage);r.StiTableCellImage=l}(r=i.Table||(i.Table={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Base.StiJsonReportObjectHelper,o=t.System.Drawing.Rectangle,a=t.System.Drawing.Size,s=t.System.Enum,l=t.System.Drawing.Color,u=function(t){function u(){var e=t.call(this)||this;return e._cellDockStyle=i.StiDockStyle.None,e._parentJoinCell=null,e._joinCells=new Array(0),e._parentJoin=-1,e._join=!1,e._id=-1,e._joinWidth=0,e._joinHeight=0,e._tableTag=null,e._cellType=r.StiTablceCellType.RichText,e._fixedWidth=!1,e._column=0,e.backColor=l.white,e}return __extends(u,t),u.prototype.implements=function(){return u.ImplementsStiTableCellRichText||(u.ImplementsStiTableCellRichText=t.prototype.implements.call(this).concat([r.IStiTableCell,r.IStiTableComponent])),u.ImplementsStiTableCellRichText},u.prototype.saveToJsonObject=function(e){var o=t.prototype.saveToJsonObject.call(this,e);return o.removeProperty("Locked"),o.removeProperty("Linked"),o.addPropertyEnum("CellDockStyle",i.StiDockStyle,this.cellDockStyle,i.StiDockStyle.None),o.addPropertyJObject("JoinCells",n.Serialize.numberArray(this.joinCells)),o.addPropertyNumber("ParentJoin",this.parentJoin,-1),o.addPropertyBool("Join",this.join),o.addPropertyNumber("ID",this.id,-1),o.addPropertyNumber("JoinWidth",this.joinWidth),o.addPropertyNumber("JoinHeight",this.joinHeight),o.addPropertyEnum("CellType",r.StiTablceCellType,this.cellType,r.StiTablceCellType.RichText),o.addPropertyBool("FixedWidth",this.fixedWidth),o},u.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var o=0,a=e.properties();o<a.length;o++){var l=a[o];switch(l.name){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,l.value);break;case"JoinCells":this._joinCells=n.Deserialize.numberArray(l.value);break;case"ParentJoin":this._parentJoin=l.value.toNumber();break;case"Join":this._join=l.value.toBoolean();break;case"ID":this._id=l.value.toNumber();break;case"JoinWidth":this._joinWidth=l.value.toNumber();break;case"JoinHeight":this._joinHeight=l.value.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,l.value);break;case"FixedWidth":this._fixedWidth=l.value.toBoolean();break}}},u.prototype.loadJoinCellsFromXml=function(t){for(var e=[],i=0,r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];"value"==n.nodeName&&(e[i]=n.textContent.toNumber(),i++)}return e},u.prototype.loadFromXml=function(e,n){t.prototype.loadFromXml.call(this,e,n);for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];switch(a.nodeName){case"CellDockStyle":this._cellDockStyle=s.parse(i.StiDockStyle,a.textContent);break;case"JoinCells":this._joinCells=this.loadJoinCellsFromXml(a);break;case"ParentJoin":this._parentJoin=a.textContent.toNumber();break;case"Join":this._join=a.textContent.toBoolean();break;case"ID":this._id=a.textContent.toNumber();break;case"JoinWidth":this._joinWidth=a.textContent.toNumber();break;case"JoinHeight":this._joinHeight=a.textContent.toNumber();break;case"CellType":this._cellType=s.parse(r.StiTablceCellType,a.textContent);break;case"FixedWidth":this._fixedWidth=a.textContent.toBoolean();break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return e.StiComponentId.StiTableCellRichText},enumerable:!0,configurable:!0}),u.prototype.clone=function(e){var i=t.prototype.clone.call(this,e).sti_as(u);return i._join=this._join,i.minSize=new a(0,0),i.maxSize=new a(0,0),i._cellDockStyle=this._cellDockStyle,i._joinWidth=this._joinWidth,i._joinHeight=this._joinHeight,i._cellType=this._cellType,i._column=this._column,i._fixedWidth=this._fixedWidth,i._id=this._id,i._joinCells=this._joinCells.clone(),-1!=this._parentJoin?i._parentJoin=this._parentJoin:i._parentJoin=-1,i},Object.defineProperty(u.prototype,"locked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"linked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"canShrink",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"canGrow",{get:function(){return t.prototype.getCanGrow.call(this)},set:function(e){t.prototype.getCanGrow.call(this)!=e&&(t.prototype.setCanGrow.call(this,e),this.parent.sti_is(r.StiTable)&&this.parent.sti_as(r.StiTable).changeGrowToHeightAtCell(this))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"cellDockStyle",{get:function(){return this._cellDockStyle},set:function(t){this._cellDockStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"parentJoinCell",{get:function(){return this._parentJoinCell},set:function(t){this._parentJoinCell=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"joinCells",{get:function(){return this._joinCells},set:function(t){this._joinCells=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"parentJoin",{get:function(){return this._parentJoin},set:function(t){this._parentJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"join",{get:function(){return this._join},set:function(t){this._join!=t&&(t?(this.createJoin(),this._join=!0):(this.deleteJoin(),this._join=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"joinWidth",{get:function(){return this._joinWidth},set:function(t){this._joinWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"joinHeight",{get:function(){return this._joinHeight},set:function(t){this._joinHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"merged",{get:function(){return-1!=this._parentJoin},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"changeTopPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){return this.parent.components.indexOf(this)>=this.parent.sti_as(r.StiTable).columnCount}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"changeLeftPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=0;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.sti_as(r.StiTable).columnCount}return!0}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"changeRightPosition",{get:function(){if(this.parent.sti_is(r.StiTable)){var t=this.parent.components.indexOf(this),e=this.parent.sti_as(r.StiTable).columnCount-1;while(e<this.parent.components.count){if(e==t)return!1;e+=this.parent.sti_as(r.StiTable).columnCount}}return!0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"tableTag",{get:function(){return this._tableTag},set:function(t){this._tableTag=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"cellType",{get:function(){return this._cellType},set:function(t){this._cellType=t;var e=this.parent.sti_as(r.StiTable);if(null!=e)switch(t){case r.StiTablceCellType.Text:e.changeTableCellContentInText(this);break;case r.StiTablceCellType.Image:e.changeTableCellContentInImage(this);break;case r.StiTablceCellType.CheckBox:e.changeTableCellContentInCheckBox(this);break}},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"fixedWidth",{get:function(){return this._fixedWidth},set:function(t){this._fixedWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t},enumerable:!0,configurable:!0}),u.prototype.getJoinComponentByGuid=function(t){if(null==this.parent&&0==this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==t)return n}return null},u.prototype.getJoinComponentByIndex=function(t){if(t<0&&null==this.parent&&0==this._joinCells.length&&t>=this._joinCells.length)return null;for(var e=0,i=this.parent.components.list;e<i.length;e++){var n=i[e];if(n.sti_as(r.IStiTableCell).id==this._joinCells[t])return n}return null},u.prototype.containsGuid=function(t){if(0==this._joinCells.length)return!1;for(var e=0;e<this._joinCells.length;e++)if(this._joinCells[e]==t)return!0;return!1},u.prototype.createJoin=function(){var t=this.parent.sti_as(r.StiTable);if(null==t&&null==this.page)return;var e=0,i=0,n={ref:e},a={ref:i},s={ref:this._joinWidth},l={ref:this._joinHeight};if(this._joinCells=t.createJoin(n,a,s,l),0==this._joinCells.length)return;e=n.ref,i=a.ref,this._joinWidth=s.ref,this._joinHeight=l.ref;for(var u=0,c=0,p=0;p<this._joinCells.length-1;p++){var h=this.getJoinComponentByIndex(p);0==p&&(u=h.left,c=h.top),h.enabled=!1,h.sti_as(r.IStiTableCell).parentJoin=this._id}this._parentJoin=this._id,this.clientRectangle=new o(u,c,e,i)},u.prototype.deleteJoin=function(){if(null==this.page&&0==this._joinCells.length)return;for(var t=0;t<this._joinCells.length-1;t++){var e=this.getJoinComponentByIndex(t);e.enabled=!0,e.sti_as(r.IStiTableCell).parentJoin=-1}this.clientRectangle=this.getNewClientRectangle(),this._joinCells=new Array(0),this._parentJoin=-1,this._joinWidth=0,this._joinHeight=0},u.prototype.getNewClientRectangle=function(){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(t);return this.parent.components.indexOf(this)-e==1?new o(t.right,t.top,this.right-t.right,t.height):new o(t.left,t.bottom,t.width,this.bottom-t.bottom)},u.prototype.setJoinSize=function(){if(!this._join)return;var t=this.getJoinComponentByIndex(0),e=t.left,i=t.top;this.clientRectangle=new o(e,i,this.right-e,this.bottom-i)},u.prototype.getRealHeightAfterInsertRows=function(){if(this._join){if(1==this._joinHeight)return t.prototype.getHeight.call(this);for(var e=0,i=+this.parent.components.indexOf(this.getJoinComponentByIndex(0))/this.parent.sti_as(r.StiTable).columnCount,n=+this.parent.components.indexOf(this)/this.parent.sti_as(r.StiTable).columnCount,o=i;o<n;o++){var a=o*this.parent.sti_as(r.StiTable).columnCount;e+=this.parent.components.getByIndex(a).height}return t.prototype.getHeight.call(this)-e}return t.prototype.getHeight.call(this)},u.prototype.getRealHeight=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).columnCount>1&&i-n==1?e.height:t.prototype.getBottom.call(this)-e.bottom}return t.prototype.getHeight.call(this)},u.prototype.getRealTop=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).columnCount>1&&i-n==1?e.top:e.bottom}return t.prototype.getTop.call(this)},u.prototype.getRealWidth=function(){if(this._join){var e=this.getJoinComponentByIndex(this._joinCells.length-2),i=this.parent.components.indexOf(this),n=this.parent.components.indexOf(e);return this.parent.sti_as(r.StiTable).rowCount>1?i-n==1?this.right-e.right:e.width:this.right-e.right}return t.prototype.getWidth.call(this)},u.prototype.getRealLeft=function(){if(this._join){var t=this.getJoinComponentByIndex(this._joinCells.length-2),e=this.parent.components.indexOf(this),i=this.parent.components.indexOf(t);return this.parent.sti_as(r.StiTable).rowCount>1?e-i==1?t.right:t.left:t.right}return this.left},u.prototype.createNew=function(){return new u},u}(i.StiRichText);r.StiTableCellRichText=u}(r=i.Table||(i.Table={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.ICloneable,n=function(){function t(t,e,i,r,n){this.falseValue=t,this.trueValue=e,this.falseDisplay=i,this.trueDisplay=r,this.nullDisplay=n}return t.prototype.implements=function(){return[r]},t.prototype.clone=function(){return this.memberwiseClone()},t}(),o=function(t){function e(e,r,n,o,a){void 0===e&&(e="false"),void 0===r&&(r="true"),void 0===n&&(n=i.get("FormFormatEditor","nameFalse")),void 0===o&&(o=i.get("FormFormatEditor","nameTrue")),void 0===a&&(a=" ");var s=t.call(this)||this;return s.falseValue=e,s.trueValue=r,s.falseDisplay=n,s.trueDisplay=o,s.nullDisplay=a,s}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return null!=this.bits&&(i.addPropertyStringNullOfEmpty("falseValue",this.bits.falseValue),i.addPropertyStringNullOfEmpty("trueValue",this.bits.trueValue),i.addPropertyStringNullOfEmpty("falseDisplay",this.bits.falseDisplay),i.addPropertyStringNullOfEmpty("trueDisplay",this.bits.trueDisplay),i.addPropertyStringNullOfEmpty("nullDisplay",this.bits.nullDisplay)),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"falseValue":this.falseValue=n.value;break;case"trueValue":this.trueValue=n.value;break;case"falseDisplay":this.falseDisplay=n.value;break;case"trueDisplay":this.trueDisplay=n.value;break;case"nullDisplay":this.nullDisplay=n.value;break}}},e.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"falseValue":this.falseValue=i.textContent;break;case"trueValue":this.trueValue=i.textContent;break;case"falseDisplay":this.falseDisplay=i.textContent;break;case"trueDisplay":this.trueDisplay=i.textContent;break;case"nullDisplay":this.nullDisplay=i.textContent;break}}},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return null!=this.bits&&(e.bits=this.bits.clone()),e},Object.defineProperty(e.prototype,"falseValue",{get:function(){return null==this.bits?"false":this.bits.falseValue},set:function(t){if("false"==t&&null==this.bits)return;null!=this.bits?this.bits.falseValue=t:this.bits=new n(t,this.trueValue,this.falseDisplay,this.trueDisplay,this.nullDisplay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trueValue",{get:function(){return null==this.bits?"true":this.bits.trueValue},set:function(t){if("true"==t&&null==this.bits)return;null!=this.bits?this.bits.trueValue=t:this.bits=new n(this.falseValue,t,this.falseDisplay,this.trueDisplay,this.nullDisplay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"falseDisplay",{get:function(){return null==this.bits?"false":this.bits.falseDisplay},set:function(t){if("false"==t&&null==this.bits)return;null!=this.bits?this.bits.falseDisplay=t:this.bits=new n(this.falseValue,this.trueValue,t,this.trueDisplay,this.nullDisplay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trueDisplay",{get:function(){return null==this.bits?"true":this.bits.trueDisplay},set:function(t){if("true"==t&&null==this.bits)return;null!=this.bits?this.bits.trueDisplay=t:this.bits=new n(this.falseValue,this.trueValue,this.falseDisplay,t,this.nullDisplay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nullDisplay",{get:function(){return null==this.bits?" ":this.bits.nullDisplay},set:function(t){if(" "==t&&null==this.bits)return;null!=this.bits?this.bits.nullDisplay=t:this.bits=new n(this.falseValue,this.trueValue,this.falseDisplay,this.trueDisplay,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sample",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.stiEquals=function(t){var e=t;if(null==e)return!1;if(this.falseValue!=e.falseValue)return!1;if(this.trueValue!=e.trueValue)return!1;if(this.falseDisplay!=e.falseDisplay)return!1;if(this.trueDisplay!=e.trueDisplay)return!1;if(this.nullDisplay!=e.nullDisplay)return!1;if(this.stringFormat!=e.stringFormat)return!1;return!0},e.prototype.format=function(t){return this.format2(this.stringFormat,t)},e.prototype.format2=function(t,e){if(null==e)return this.nullDisplay;var i=e.toString();if(i==this.trueValue)return this.trueDisplay;if(i==this.falseValue)return this.falseDisplay;return this.nullDisplay},e}(e.StiFormatService);e.StiBooleanFormatService=o}(i=e.TextFormats||(e.TextFormats={}))}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJson,r=t.System.ICloneable,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Report.Components.StiInteractionSortDirection,a=t.Report.Components.StiDrillDownMode,s=t.Base.StiGuidUtils,l=t.System.Enum,u=function(){function u(){this._sortingEnabled=!0,this._sortingColumn=String.empty,this._sortingIndex=0,this._sortingDirection=o.None,this._drillDownEnabled=!1,this._drillDownReport=String.empty,this._drillDownMode=a.MultiPage,this._drillDownParameter1=null,this._drillDownParameter2=null,this._drillDownParameter3=null,this._drillDownParameter4=null,this._drillDownParameter5=null,this._drillDownPageGuid=null,this.parentComponent=null,this.drillDownParameter1=new e.StiDrillDownParameter,this.drillDownParameter2=new e.StiDrillDownParameter,this.drillDownParameter3=new e.StiDrillDownParameter,this.drillDownParameter4=new e.StiDrillDownParameter,this.drillDownParameter5=new e.StiDrillDownParameter}return u.prototype.implements=function(){return[r,n]},u.prototype.saveToJsonObject=function(t){var e=new i;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e.addPropertyBool("SortingEnabled",this.sortingEnabled,!0),e.addPropertyStringNullOfEmpty("SortingColumn",this.sortingColumn),e.addPropertyBool("DrillDownEnabled",this.drillDownEnabled),e.addPropertyStringNullOfEmpty("DrillDownReport",this.drillDownReport),e.addPropertyEnum("DrillDownMode",a,this.drillDownMode,a.MultiPage),e.addPropertyStringNullOfEmpty("DrillDownPageGuid",this._drillDownPageGuid),e.addPropertyJObject("DrillDownParameter1",this.drillDownParameter1.saveToJsonObject(t)),e.addPropertyJObject("DrillDownParameter2",this.drillDownParameter2.saveToJsonObject(t)),e.addPropertyJObject("DrillDownParameter3",this.drillDownParameter3.saveToJsonObject(t)),e.addPropertyJObject("DrillDownParameter4",this.drillDownParameter4.saveToJsonObject(t)),e.addPropertyJObject("DrillDownParameter5",this.drillDownParameter5.saveToJsonObject(t)),e},u.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"SortingEnabled":this._sortingEnabled=r.value.toBoolean();break;case"SortingColumn":this._sortingColumn=r.value;break;case"DrillDownEnabled":this._drillDownEnabled=r.value.toBoolean();break;case"DrillDownReport":this._drillDownReport=r.value;break;case"DrillDownMode":this._drillDownMode=l.parse(a,l.getName(a,r.value));break;case"DrillDownPageGuid":this._drillDownPageGuid=r.value;break;case"DrillDownParameter1":this._drillDownParameter1.loadFromJsonObject(r.value);break;case"DrillDownParameter2":this._drillDownParameter2.loadFromJsonObject(r.value);break;case"DrillDownParameter3":this._drillDownParameter3.loadFromJsonObject(r.value);break;case"DrillDownParameter4":this._drillDownParameter4.loadFromJsonObject(r.value);break;case"DrillDownParameter5":this._drillDownParameter5.loadFromJsonObject(r.value);break}}},u.loadInteractionFromJsonObject=function(t){var i=t.properties().firstOrDefault(function(t){return"Ident"==t.name}).value,r=null;switch(i){case"StiInteraction":r=new u;break;case"StiBandInteraction":r=new e.StiBandInteraction;break;case"StiCrossHeaderInteraction":r=new e.StiCrossHeaderInteraction;break}return r.loadFromJsonObject(t),r},u.loadInteractionFromXml=function(e){switch(e.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Components.StiInteraction":var i=new t.Report.Components.StiInteraction;return i.loadFromXml(e),i;case"Stimulsoft.Report.Components.StiBandInteraction":var r=new t.Report.Components.StiBandInteraction;return r.loadFromXml(e),r;case"Stimulsoft.Report.Components.StiCrossHeaderInteraction":var n=new t.Report.Components.StiCrossHeaderInteraction;return n.loadFromXml(e),n}},u.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"SortingEnabled":this._sortingEnabled=i.textContent.toBoolean();break;case"SortingColumn":this._sortingColumn=i.textContent;break;case"DrillDownEnabled":this._drillDownEnabled=i.textContent.toBoolean();break;case"DrillDownReport":this._drillDownReport=i.textContent;break;case"DrillDownMode":this._drillDownMode=l.parse(a,i.textContent);break;case"DrillDownPageGuid":this._drillDownPageGuid=i.textContent;break;case"DrillDownParameter1":this._drillDownParameter1.loadFromXml(i);break;case"DrillDownParameter2":this._drillDownParameter2.loadFromXml(i);break;case"DrillDownParameter3":this._drillDownParameter3.loadFromXml(i);break;case"DrillDownParameter4":this._drillDownParameter4.loadFromXml(i);break;case"DrillDownParameter5":this._drillDownParameter5.loadFromXml(i);break}}},u.prototype.getReport=function(){if(null==this.parentComponent)return null;return this.parentComponent.report},u.prototype.clone=function(){return this.memberwiseClone()},u.prototype.isDefault=function(){return this.sortingEnabled&&String.isNullOrEmpty(this.sortingColumn)&&!this.drillDownEnabled&&String.isNullOrEmpty(this.drillDownReport)&&null==this.drillDownPageGuid&&this.drillDownParameter1.isDefault()&&this.drillDownParameter2.isDefault()&&this.drillDownParameter3.isDefault()&&this.drillDownParameter4.isDefault()&&this.drillDownParameter5.isDefault()},Object.defineProperty(u.prototype,"sortingEnabled",{get:function(){return this._sortingEnabled},set:function(t){this._sortingEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"sortingColumn",{get:function(){return this._sortingColumn},set:function(t){this._sortingColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"sortingIndex",{get:function(){return this._sortingIndex},set:function(t){this._sortingIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"sortingDirection",{get:function(){return this._sortingDirection},set:function(t){this._sortingDirection=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownEnabled",{get:function(){return this._drillDownEnabled},set:function(t){this._drillDownEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownReport",{get:function(){return this._drillDownReport},set:function(t){this._drillDownReport=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownMode",{get:function(){return this._drillDownMode},set:function(t){this._drillDownMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownParameter1",{get:function(){return this._drillDownParameter1},set:function(t){this._drillDownParameter1!=t&&(this._drillDownParameter1=t,null!=t&&(t.interaction=this))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownParameter2",{get:function(){return this._drillDownParameter2},set:function(t){this._drillDownParameter2!=t&&(this._drillDownParameter2=t,null!=t&&(t.interaction=this))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownParameter3",{get:function(){return this._drillDownParameter3},set:function(t){this._drillDownParameter3!=t&&(this._drillDownParameter3=t,null!=t&&(t.interaction=this))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownParameter4",{get:function(){return this._drillDownParameter4},set:function(t){this._drillDownParameter4!=t&&(this._drillDownParameter4=t,null!=t&&(t.interaction=this))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownParameter5",{get:function(){return this._drillDownParameter5},set:function(t){this._drillDownParameter5!=t&&(this._drillDownParameter5=t,null!=t&&(t.interaction=this))},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownPage",{get:function(){if(null==this.parentComponent||null==this.parentComponent.report)return null;for(var t=0,e=this.parentComponent.report.pages.list;t<e.length;t++){var i=e[t];if(i.guid==this.drillDownPageGuid)return i}return null},set:function(t){null==t?this._drillDownPageGuid=null:(null==t.guid&&(t.guid=s.newGuid()),this._drillDownPageGuid=t.guid)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drillDownPageGuid",{get:function(){return this._drillDownPageGuid},set:function(t){this._drillDownPageGuid=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"bookmark",{get:function(){return this.parentComponent.bookmark},set:function(t){this.parentComponent.bookmark=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hyperlink",{get:function(){return this.parentComponent.hyperlink},set:function(t){this.parentComponent.hyperlink=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"tag",{get:function(){return this.parentComponent.tag},set:function(t){this.parentComponent.tag=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"toolTip",{get:function(){return this.parentComponent.toolTip},set:function(t){this.parentComponent.toolTip=t},enumerable:!0,configurable:!0}),u.prototype.getSortDataBandName=function(){if(String.isNullOrEmpty(this.sortingColumn)||!this.sortingEnabled)return String.empty;var t=this.sortingColumn.indexOf(".");if(-1!=t)return this.sortingColumn.substr(0,t);return String.empty},u.prototype.getSortColumns=function(){var t=this.getSortColumnsString();if(0==t.length)return null;return t.split(".")},u.prototype.getSortColumnsString=function(){if(String.isNullOrEmpty(this.sortingColumn)||!this.sortingEnabled)return String.empty;var t=this.sortingColumn.indexOf(".");if(-1!=t)return this.sortingColumn.substr(t+1);return String.empty},u}();e.StiInteraction=u}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.collapsingEnabled=!1,t.selectionEnabled=!1,t.collapseGroupFooter=!1,t}return __extends(i,e),i.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyBool("CollapsingEnabled",this.collapsingEnabled),i.addPropertyBool("SelectionEnabled",this.selectionEnabled),i.addPropertyBool("CollapseGroupFooter",this.collapseGroupFooter),i},i.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"CollapsingEnabled":this.collapsingEnabled=n.value.toBoolean();break;case"SelectionEnabled":this.selectionEnabled=n.value.toBoolean();break;case"CollapseGroupFooter":this.collapseGroupFooter=n.value.toBoolean();break}}},i.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"CollapsingEnabled":this.collapsingEnabled=r.textContent.toBoolean();break;case"SelectionEnabled":this.selectionEnabled=r.textContent.toBoolean();break;case"CollapseGroupFooter":this.collapseGroupFooter=r.textContent.toBoolean();break}}},i.prototype.isDefault=function(){return e.prototype.isDefault.call(this)&&!this.collapsingEnabled&&!this.selectionEnabled},Object.defineProperty(i.prototype,"collapsed",{get:function(){return this.parentComponent.sti_is(t.StiGroupHeaderBand),this.parentComponent.collapsed},set:function(e){this.parentComponent.sti_is(t.StiGroupHeaderBand),this.parentComponent.collapsed=e},enumerable:!0,configurable:!0}),i}(t.StiInteraction);t.StiBandInteraction=e}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(t,e){void 0===t&&(t=String.empty),void 0===e&&(e=null),this._bookmarks=null,this._text=String.empty,this._pageIndex=-1,this._text=t}return e.prototype.add=function(t){-1==this.bookmarks.indexOf(t)&&this.bookmarks.add(new e(t))},Object.defineProperty(e.prototype,"bookmarks",{get:function(){return null==this._bookmarks&&(this._bookmarks=new t.StiBookmarksCollection),this._bookmarks},set:function(t){this._bookmarks=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentGuid",{get:function(){return this._componentGuid},set:function(t){this._componentGuid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isManualBookmark",{get:function(){return this._isManualBookmark},set:function(t){this._isManualBookmark=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){this._pageIndex=t},enumerable:!0,configurable:!0}),e}();t.StiBookmark=e}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype.add=function(t){this.list.add(t)},i.prototype.addRange=function(t){for(var e=t.sti_is(i)?t.list:t,r=0,n=e;r<n.length;r++){var o=n[r];this.add(o)}},i.prototype.contains=function(t){return this.list.contains(t)},i.prototype.indexOf=function(t){if(t.sti_is(e.StiBookmark))return this.list.indexOf(t);for(var i=0,r=0,n=this.list;r<n.length;r++){if(n[r].text==t)return i;i++}return-1},i.prototype.insert=function(t,e){this.list.insert(t,e)},i.prototype.remove=function(t){this.list.remove(t)},i.prototype.getByName=function(t){var i=null,r=this.indexOf(t);return-1==r?(i=new e.StiBookmark(t,this),this.add(i)):i=this.list[r],i},i.prototype.getByIndex=function(t){return this.list[t]},i.prototype.setByIndex=function(t,e){this.list[t]=e},i}(i);e.StiBookmarksCollection=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(){}return e.fillComponentPlacement=function(e){var i=e.parent;while(null!=i&&!i.sti_is(t.StiPage)&&(!i.sti_is(t.StiBand)||i.isCross))i=i.parent;if(null==i)return;if(i.sti_is(t.StiPage)&&(StiOptions.Export.optimizeDataOnlyMode&&e.sti_is(t.StiBand)?i=e.sti_as(t.StiContainer):e.componentPlacement="p"),i.sti_is(t.StiBand)){if(i.sti_is(t.StiChildBand)&&null!=i.parent){var r=i.parent,n=r.components.indexOf(i);if(n>0){while(n>0&&(r.components.list[n].sti_is(t.StiChildBand)||!r.components.list[n].sti_is(t.StiBand)))n--;r.components.list[n].sti_is(t.StiBand)&&(i=r.components.list[n])}}i.sti_is(t.StiReportTitleBand)&&(e.componentPlacement="rt"),i.sti_is(t.StiReportSummaryBand)&&(e.componentPlacement="rs"),i.sti_is(t.StiPageHeaderBand)&&(e.componentPlacement="ph"),i.sti_is(t.StiPageFooterBand)&&(e.componentPlacement="pf"),i.sti_is(t.StiHeaderBand)&&(i.printOnAllPages?e.componentPlacement="h.ap":e.componentPlacement="h"),i.sti_is(t.StiFooterBand)&&(i.printOnAllPages?e.componentPlacement="f.ap":e.componentPlacement="f"),i.sti_is(t.StiDataBand)&&(e.componentPlacement="d"),i.sti_is(t.StiGroupHeaderBand)&&(e.componentPlacement="gh"),i.sti_is(t.StiGroupFooterBand)&&(e.componentPlacement="gf"),i.sti_is(t.StiEmptyBand)&&(e.componentPlacement="e")}e.componentPlacement.length>0&&(e.parent.isCross?e.componentPlacement+="."+i.name:e.componentPlacement+="."+e.parent.name)},e}();t.StiComponentHelper=e}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.EventArgs,n=t.System.Collections.CollectionBase,o=t.System.Collections.Hashtable,a=t.Report.Components.StiComponent,s=t.Report.Components.StiBand,l=t.Report.Components.StiDockStyle,u=t.System.ICloneable,c=t.Base.JsonReportObject.IStiJsonReportObject,p=t.Base.StiJson,h=t.Base.StiActivator,g=function(n){function g(t){void 0===t&&(t=null);var e=n.call(this)||this;return e.parent=t,e}return __extends(g,n),g.prototype.implements=function(){return n.prototype.implements.call(this).concat([u,c])},g.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new p,i=0,r=0,n=this.list;r<n.length;r++){var o=n[r];e.addPropertyJObject(i.toString(),o.saveToJsonObject(t)),i++}return e},g.prototype.loadFromJsonObject=function(t){for(var e=function(t){var e=t.value,r=e.properties().firstOrDefault(function(t){return"Ident"==t.name}).value,n=StiOptions.Services.components.firstOrDefault(function(t){return t.getStiType().getStiTypeName()==r});if(null==n)throw String.stiFormat("Type {0} is not found!",r);var o=new n;i.add(o),o.loadFromJsonObject(t.value)},i=this,r=0,n=t.properties();r<n.length;r++){e(n[r])}},g.prototype.loadFromXml=function(e,r){for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];if(null==o.attributes)continue;if(null!=o.attributes.getNamedItem("type"))switch(o.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Components.StiReportTitleBand":case"ReportTitleBand":var a=new i.StiReportTitleBand;this.add(a),a.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiReportSummaryBand":case"ReportSummaryBand":var s=new i.StiReportSummaryBand;this.add(s),s.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiPageHeaderBand":case"PageHeaderBand":var l=new i.StiPageHeaderBand;this.add(l),l.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiPageFooterBand":case"PageFooterBand":var u=new i.StiPageFooterBand;this.add(u),u.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiGroupHeaderBand":case"GroupHeaderBand":var c=new i.StiGroupHeaderBand;this.add(c),c.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiGroupFooterBand":case"GroupFooterBand":var p=new i.StiGroupFooterBand;this.add(p),p.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiHeaderBand":case"HeaderBand":var g=new i.StiHeaderBand;this.add(g),g.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiFooterBand":case"FooterBand":var m=new i.StiFooterBand;this.add(m),m.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiColumnHeaderBand":case"ColumnHeaderBand":var d=new i.StiColumnHeaderBand;this.add(d),d.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiColumnFooterBand":case"ColumnFooterBand":var S=new i.StiColumnFooterBand;this.add(S),S.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiHierarchicalBand":case"HierarchicalBand":var f=new i.StiHierarchicalBand;this.add(f),f.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiEmptyBand":case"EmptyBand":var y=new i.StiEmptyBand;this.add(y),y.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiOverlayBand":case"OverlayBand":var b=new i.StiOverlayBand;this.add(b),b.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiDataBand":case"DataBand":var C=new i.StiDataBand;this.add(C),C.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.Table.StiTable":case"Table":var v=new t.Report.Components.Table.StiTable;this.add(v),v.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.Table.StiTableCell":case"TableCell":var I=new t.Report.Components.Table.StiTableCell;this.add(I),I.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.Table.StiTableCellCheckBox":case"TableCellCheckBox":var A=new t.Report.Components.Table.StiTableCellCheckBox;this.add(A),A.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.Table.StiTableCellImage":case"TableCellImage":var w=new t.Report.Components.Table.StiTableCellImage;this.add(w),w.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.Table.StiTableCellRichText":case"TableCellRichText":var T=new t.Report.Components.Table.StiTableCellRichText;this.add(T),T.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiPage":case"Page":var B=new t.Report.Components.StiPage;this.add(B),B.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiPanel":case"Panel":var R=new t.Report.Components.StiPanel;this.add(R),R.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiContainer":case"Container":var P=new t.Report.Components.StiContainer;this.add(P),P.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiCheckBox":case"CheckBox":var F=new t.Report.Components.StiCheckBox;this.add(F),F.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiChildBand":case"ChildBand":var x=new t.Report.Components.StiChildBand;this.add(x),x.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiText":case"Text":var D=new t.Report.Components.StiText;this.add(D),D.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiImage":case"Image":var k=new t.Report.Components.StiImage;this.add(k),k.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiRichText":case"RichText":var E=new t.Report.Components.StiRichText;this.add(E),E.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiShape":case"Shape":var G=new t.Report.Components.StiShape;this.add(G),G.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiSubReport":case"SubReport":var _=new t.Report.Components.StiSubReport;this.add(_),_.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiHorizontalLinePrimitive":case"HorizontalLinePrimitive":var L=new t.Report.Components.StiHorizontalLinePrimitive;this.add(L),L.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiVerticalLinePrimitive":case"VerticalLinePrimitive":var N=new t.Report.Components.StiVerticalLinePrimitive;this.add(N),N.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiRectanglePrimitive":case"RectanglePrimitive":var O=new t.Report.Components.StiRectanglePrimitive;this.add(O),O.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiRoundedRectanglePrimitive":case"RoundedRectanglePrimitive":var Z=new t.Report.Components.StiRoundedRectanglePrimitive;this.add(Z),Z.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiStartPointPrimitive":case"StartPointPrimitive":var M=new t.Report.Components.StiStartPointPrimitive;this.add(M),M.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiEndPointPrimitive":case"EndPointPrimitive":var H=new t.Report.Components.StiEndPointPrimitive;this.add(H),H.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiCrossDataBand":case"CrossDataBand":var W=new t.Report.Components.StiCrossDataBand;this.add(W),W.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiCrossHeaderBand":case"CrossHeaderBand":var V=new t.Report.Components.StiCrossHeaderBand;this.add(V),V.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiCrossFooterBand":case"CrossFooterBand":var Y=new t.Report.Components.StiCrossFooterBand;this.add(Y),Y.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiCrossGroupHeaderBand":case"CrossGroupHeaderBand":var j=new t.Report.Components.StiCrossGroupHeaderBand;this.add(j),j.loadFromXml(o,r);break;case"Stimulsoft.Report.Components.StiCrossGroupFooterBand":case"CrossGroupFooterBand":var X=new t.Report.Components.StiCrossGroupFooterBand;this.add(X),X.loadFromXml(o,r);break;case"Stimulsoft.Report.BarCodes.StiBarCode":case"BarCode":var J=new t.Report.BarCodes.StiBarCode;this.add(J),J.loadFromXml(o,r);break;case"Stimulsoft.Report.CrossTab.StiCrossTab":case"CrossTab":var K=new t.Report.CrossTab.StiCrossTab;this.add(K),K.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossColumn":case"CrossColumn":var U=new t.Report.CrossTab.StiCrossColumn;this.add(U),U.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossTotal":case"CrossTotal":var z=new t.Report.CrossTab.StiCrossTotal;this.add(z),z.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossRowTotal":case"CrossRowTotal":var Q=new t.Report.CrossTab.StiCrossRowTotal;this.add(Q),Q.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossColumnTotal":case"CrossColumnTotal":var q=new t.Report.CrossTab.StiCrossColumnTotal;this.add(q),q.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossRow":case"CrossRow":var $=new t.Report.CrossTab.StiCrossRow;this.add($),$.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossSummary":case"CrossSummary":var tt=new t.Report.CrossTab.StiCrossSummary;this.add(tt),tt.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossTitle":case"CrossTitle":var et=new t.Report.CrossTab.StiCrossTitle;this.add(et),et.loadFromXml(o);break;case"Stimulsoft.Report.CrossTab.StiCrossSummaryHeader":case"CrossSummaryHeader":var it=new t.Report.CrossTab.StiCrossSummaryHeader;this.add(it),it.loadFromXml(o);break;case"Stimulsoft.Report.Chart.StiChart":case"Chart":var rt=h.createObject(t.Report.Components.StiChart);rt.report=this.parent.report,this.add(rt),rt.loadFromXml(o,r);break}}},g.prototype.loadDocumentFromXml=function(e){for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];if(null==n.attributes)continue;var o=n.attributes.getNamedItem("type");if(null!=o)switch(o.value){case"Stimulsoft.Report.Components.StiReportTitleBand":case"ReportTitleBand":var a=new i.StiReportTitleBand;this.add(a),a.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiReportSummaryBand":case"ReportSummaryBand":var s=new i.StiReportSummaryBand;this.add(s),s.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiPageHeaderBand":case"PageHeaderBand":var l=new i.StiPageHeaderBand;this.add(l),l.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiPageFooterBand":case"PageFooterBand":var u=new i.StiPageFooterBand;this.add(u),u.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiGroupHeaderBand":case"GroupHeaderBand":var c=new i.StiGroupHeaderBand;this.add(c),c.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiGroupFooterBand":case"GroupFooterBand":var p=new i.StiGroupFooterBand;this.add(p),p.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiHeaderBand":case"HeaderBand":var g=new i.StiHeaderBand;this.add(g),g.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiFooterBand":case"FooterBand":var m=new i.StiFooterBand;this.add(m),m.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiColumnHeaderBand":case"ColumnHeaderBand":var d=new i.StiColumnHeaderBand;this.add(d),d.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiColumnFooterBand":case"ColumnFooterBand":var S=new i.StiColumnFooterBand;this.add(S),S.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiHierarchicalBand":case"HierarchicalBand":var f=new i.StiHierarchicalBand;this.add(f),f.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiEmptyBand":case"EmptyBand":var y=new i.StiEmptyBand;this.add(y),y.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiOverlayBand":case"OverlayBand":var b=new i.StiOverlayBand;this.add(b),b.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiDataBand":case"DataBand":var C=new i.StiDataBand;this.add(C),C.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.Table.StiTable":case"Table":var v=new t.Report.Components.Table.StiTable;this.add(v),v.loadFromXml(n,!0);break;case"TableCell":var I=new t.Report.Components.Table.StiTableCell;this.add(I),I.parseTextFromXml(n);break;case"Stimulsoft.Report.Components.Table.StiTableCellCheckBox":case"TableCellCheckBox":var A=new t.Report.Components.Table.StiTableCellCheckBox;this.add(A),A.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.Table.StiTableCellImage":case"TableCellImage":var w=new t.Report.Components.Table.StiTableCellImage;this.add(w),w.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.Table.StiTableCellRichText":case"TableCellRichText":var T=new t.Report.Components.Table.StiTableCellRichText;this.add(T),T.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiPage":case"Page":var B=new t.Report.Components.StiPage;this.add(B),B.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiPanel":case"Panel":var R=new t.Report.Components.StiPanel;this.add(R),R.loadFromXml(n,!0);break;case"Container":var P=new t.Report.Components.StiContainer;this.add(P),P.parseContainerFromXml(n);break;case"Stimulsoft.Report.Components.StiCheckBox":case"CheckBox":var F=new t.Report.Components.StiCheckBox;this.add(F),F.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiChildBand":case"ChildBand":var x=new t.Report.Components.StiChildBand;this.add(x),x.loadFromXml(n,!0);break;case"Text":case"SystemText":var D=new t.Report.Components.StiText;this.add(D),D.parseTextFromXml(n);break;case"Stimulsoft.Report.Components.StiImage":case"Image":var k=new t.Report.Components.StiImage;this.add(k),k.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiRichText":case"RichText":var E=new t.Report.Components.StiRichText;this.add(E),E.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiShape":case"Shape":var G=new t.Report.Components.StiShape;this.add(G),G.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiSubReport":case"SubReport":var _=new t.Report.Components.StiSubReport;this.add(_),_.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiHorizontalLinePrimitive":case"HorizontalLinePrimitive":var L=new t.Report.Components.StiHorizontalLinePrimitive;this.add(L),L.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiVerticalLinePrimitive":case"VerticalLinePrimitive":var N=new t.Report.Components.StiVerticalLinePrimitive;this.add(N),N.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiRectanglePrimitive":case"RectanglePrimitive":var O=new t.Report.Components.StiRectanglePrimitive;this.add(O),O.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiRoundedRectanglePrimitive":case"RoundedRectanglePrimitive":var Z=new t.Report.Components.StiRoundedRectanglePrimitive;this.add(Z),Z.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiStartPointPrimitive":case"StartPointPrimitive":var M=new t.Report.Components.StiStartPointPrimitive;this.add(M),M.loadFromXml(n,!0);break;case"Stimulsoft.Report.Components.StiEndPointPrimitive":case"EndPointPrimitive":var H=new t.Report.Components.StiEndPointPrimitive;this.add(H),H.loadFromXml(n,!0);break;case"Stimulsoft.Report.Chart.StiChart":case"Chart":var W=h.createObject(t.Report.Components.StiChart);W.report=this.parent.report,this.add(W),W.loadFromXml(n,!0);break}}},g.prototype.clone=function(){for(var t=new g,e=0,i=this.list;e<i.length;e++){var r=i[e];t.add(r.clone())}return t},g.prototype.memberwiseClone=function(){var t=new(this.getStiType());return t.parent=this.parent,t},g.prototype.toList=function(){var t=[];return this.list.forEach(function(e){return t.add(e)}),t},g.prototype.addCore=function(t){null!=this.parent&&(t.parent=this.parent,null!=this.parent.page&&(t.page=this.parent.page,String.isNullOrEmpty(t.name)&&(null!=t.report&&t.report.isDesigning?t.name=e.StiNameCreation.createName(this.parent.report,e.StiNameCreation.generateName(t)):t.name=e.StiNameCreation.createSimpleName(this.parent.report,e.StiNameCreation.generateName(t))))),this.list.push(t)},g.prototype.add=function(t){this.addCore(t),this.invokeComponentAdded(t,r.empty)},g.prototype.addRange=function(t){for(var e=t.sti_is(g)?t.list:t,i=0,r=e;i<r.length;i++){var n=r[i];this.add(n)}},g.prototype.contains=function(t){return this.list.contains(t)},g.prototype.indexOf=function(t){if("string"==typeof t){for(var e=t.toLowerCase(),i=0,r=0,n=this.list;r<n.length;r++){if(n[r].name.toLower()==e)return i;i++}return-1}return this.list.indexOf(t)},g.prototype.insertRange=function(t,e){for(var i=0,r=e.list;i<r.length;i++){var n=r[i];this.insert(t,n)}},g.prototype.insert=function(t,e){null!=this.parent&&(e.parent=this.parent,null!=this.parent.page&&(e.page=this.parent.page)),this.list.splice(t,0,e),this.invokeComponentAdded(e,r.empty)},g.prototype.remove=function(t,e){void 0===e&&(e=!0),e&&null!=t.page&&null!=t.report&&(t.parent=null),this.contains(t)&&this.list.remove(t),this.invokeComponentRemoved(t,r.empty)},g.prototype.onComponentAdded=function(t){},g.prototype.invokeComponentAdded=function(t,e){this.onComponentAdded(e)},g.prototype.onComponentRemoved=function(t){},g.prototype.invokeComponentRemoved=function(t,e){this.onComponentRemoved(e)},g.prototype.getByIndex=function(t){return this.list[t]},g.prototype.setByIndex=function(t,e){this.list[t]=e},g.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t)return r}return null},g.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].sti_as(a).name.toLower()==t)return void(this.list[i]=e)}this.addCore(e)},g.prototype.sortBySelectionTick=function(){},g.prototype.sortByPriority=function(){if(this.count>1){var t=1;while(t<this.count)if(this.list[t-1].priority>this.list[t].priority){var e=this.list[t-1];this.list[t-1]=this.list[t],this.list[t]=e,1!=t&&t--}else t++}},g.prototype.sortByTopPosition=function(){if(this.count>1){var t=!0,e=null,i=this.count;if(i>100){t=!1;var r=this.list[0].top;e=new o;for(var n=0;n<i;n++){var a=this.list[n].top;e.set(a,null),a<r&&(t=!0),r=a}var s=e.keys.count;if(e.clear(),t&&s<i/2){for(var n=0;n<this.count;n++){var l=this.list[n],a=l.top,u=e.get(a);null==u&&(u=[],e[a]=u),u.add(l)}var c=Array.create(Object,e.keys.count);e.keys.copyTo(c,0),c=Array.sort(c);for(var p=0,h=0,g=c;h<g.length;h++)for(var m=g[h],u=e.get(m),d=0,S=u;d<S.length;d++){var l=S[d];this.list[p++]=l}e.clear(),t=!1}}if(t){var f=1;while(f<i)if(this.list[f-1].top>this.list[f].top){var y=this.list[f-1];this.list[f-1]=this.list[f],this.list[f]=y,1!=f&&f--}else f++}}},g.prototype.sortByBottomPosition=function(){if(this.count>1){var t=1;while(t<this.count)if(this.list[t-1].bottom>this.list[t].bottom){var e=this.list[t-1];this.list[t-1]=this.list[t],this.list[t]=e,1!=t&&t--}else t++}},g.prototype.sortByLeftPosition=function(){if(this.count>1){var t=1;while(t<this.count)if(this.list[t-1].left>this.list[t].left){var e=this.list[t-1];this.list[t-1]=this.list[t],this.list[t]=e,1!=t&&t--}else t++}},g.prototype.sortByRightPosition=function(){if(this.count>1){var t=1;while(t<this.count)if(this.list[t-1].right>this.list[t].right){var e=this.list[t-1];this.list[t-1]=this.list[t],this.list[t]=e,1!=t&&t--}else t++}},g.prototype.sortBandsByTopPosition=function(){if(this.count>1){var t=1;while(t<this.count)if(this.list[t-1].sti_is(s)&&this.list[t].sti_is(s)&&this.list[t-1].dockStyle==this.list[t].dockStyle&&(this.list[t-1].dockStyle==l.Top&&this.list[t-1].top>this.list[t].top||this.list[t-1].dockStyle==l.Bottom&&this.list[t-1].top<this.list[t].top)){var e=this.list[t-1];this.list[t-1]=this.list[t],this.list[t]=e,1!=t&&t--}else t++}},g.prototype.sortBandsByLeftPosition=function(){if(this.count>1){var t=1;while(t<this.count)if(this.list[t-1].sti_is(s)&&this.list[t].sti_is(s)&&this.list[t-1].left>this.list[t].left){var e=this.list[t-1];this.list[t-1]=this.list[t],this.list[t]=e,1!=t&&t--}else t++}},g.prototype.getComponentByName=function(t,e){for(var r=0,n=e.components.list;r<n.length;r++){var o=n[r];if(o.name==t)return o;var a=o.sti_as(i.StiContainer);if(null!=a){var s=this.getComponentByName(t,a);if(null!=s)return s}}return null},g.prototype.getPageByAlias=function(t){for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.alias==t)return r}return null},g.prototype.setParent=function(t){this.parent=t;for(var e=0,r=this.list;e<r.length;e++){var n=r[e];n.parent=t;var o=n.sti_as(i.StiContainer);null!=o&&o.components.setParent(o)}},g}(n);i.StiComponentsCollection=g}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._collapsingEnabled=!1,e}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyBool("CollapsingEnabled",this.collapsingEnabled),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"CollapsingEnabled":this._collapsingEnabled=n.value.toBoolean();break}}},e.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"CollapsingEnabled":this._collapsingEnabled=r.textContent.toBoolean();break}}},e.prototype.isDefault=function(){return t.prototype.isDefault.call(this)&&!this.collapsingEnabled},Object.defineProperty(e.prototype,"collapsingEnabled",{get:function(){return this._collapsingEnabled},set:function(t){this._collapsingEnabled=t},enumerable:!0,configurable:!0}),e}(t.StiInteraction);t.StiCrossHeaderInteraction=e}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiEnumerator="IStiEnumerator"}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Dictionary.StiBusinessObjectsCollection,n=t.System.Collections.Hashtable,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.Base.StiJson,s=t.System.ICloneable,l=t.Report.Components.StiGroupSortDirection,u=t.Report.Engine.StiParser.StiFilterParserData,c;!function(t){t[t.Name=100]="Name",t[t.Alias=200]="Alias",t[t.Category=300]="Category",t[t.Columns=400]="Columns"}(c||(c={}));var p=function(){function c(e,n,o,a,s){void 0===e&&(e=String.empty),void 0===n&&(n=String.empty),void 0===o&&(o=String.empty),void 0===a&&(a=null),void 0===s&&(s=null),this._states=null,this._inherited=!1,this.positionValue=0,this.countFiltered=null,this.isBofValue=!1,this.isEofValue=!1,this._isEmpty=!1,this._key=null,this.isEnumeratorCreated=!1,this.specPrevValue=null,this.specNextValue=null,this.specNextValueRead=!1,this.specMoveNextResult=!1,this.specStoredCurrentValue=null,this.enumerator=null,this.rowToLevel=null,this.specSetPrevValue=!1,this.specSetNextValue=!1,this.specFilterData=!1,this.specSortGroup=!1,this.specTotalsCalculation=!1,this.previousResetException=!1,this._category=e,this._name=n,this._alias=o,this._columns=new i.StiDataColumnsCollection(this),this._businessObjects=new r(null,this),null==this._guid&&(this._guid=t.System.Guid.newGuid().toString().replaceAll("-","")),this._guid=a,this._key=s}return c.prototype.implements=function(){return[s,e.IStiStateSaveRestore,i.IStiEnumerator,e.IStiInherited,o]},c.prototype.saveToJsonObject=function(t){var e=new a;return e.addPropertyBool("Inherited",this.inherited),e.addPropertyJObject("BusinessObjects",this.businessObjects.saveToJsonObject(t)),e.addPropertyJObject("Columns",this.columns.saveToJsonObject(t)),e.addPropertyStringNullOfEmpty("Guid",this.guid),e.addPropertyStringNullOfEmpty("Category",this.category),e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyStringNullOfEmpty("Alias",this.alias),e.addPropertyStringNullOfEmpty("Key",this.key),e},c.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Inherited":this._inherited=r.value.toBoolean();break;case"BusinessObjects":this._businessObjects.loadFromJsonObject(r.value);break;case"Columns":this._columns.loadFromJsonObject(r.value);break;case"Guid":this._guid=r.value;break;case"Category":this._category=r.value;break;case"Name":this._name=r.value;break;case"Alias":this._alias=r.value;break;case"Key":this._key=r.value;break}}},c.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"Inherited":this._inherited=i.textContent.toBoolean();break;case"Name":this._name=i.textContent;break;case"Guid":this._guid=i.textContent;break;case"Category":this._category=i.textContent;break;case"Alias":this._alias=i.textContent;break;case"Key":this._key=i.textContent;break;case"Columns":this._columns.loadFromXml(i);break;case"BusinessObjects":this._businessObjects.loadFromXml(i);break}}},Object.defineProperty(c.prototype,"states",{get:function(){return null==this._states&&(this._states=new e.StiStatesManager),this._states},enumerable:!0,configurable:!0}),c.prototype.saveState=function(t){this.states.pushInt(t,this,"positionValue",this.positionValue),this.states.pushBool(t,this,"isEofValue",this.isEofValue),this.states.pushBool(t,this,"isBofValue",this.isBofValue),this.states.pushBool(t,this,"isEmpty",this.isEmpty),this.states.push(t,this,"current",this.currentObject),this.states.push(t,this,"businessObjectValue",this.businessObjectValue),this.states.push(t,this,"specPrevValue",this.specPrevValue),this.states.push(t,this,"specNextValue",this.specNextValue),this.states.push(t,this,"specStoredCurrentValue",this.specStoredCurrentValue),this.states.push(t,this,"enumerator",this.enumerator),this.states.push(t,this,"countFiltered",this.countFiltered),this.states.pushBool(t,this,"isEnumeratorCreated",this.isEnumeratorCreated),this.states.pushBool(t,this,"specNextValueRead",this.specNextValueRead),this.states.pushBool(t,this,"specMoveNextResult",this.specMoveNextResult)},c.prototype.restoreState=function(t){this.states.isExist(t,this)&&(this.positionValue=this.states.popInt(t,this,"positionValue"),this.isBofValue=this.states.popBool(t,this,"isBofValue"),this.isEofValue=this.states.popBool(t,this,"isEofValue"),this._isEmpty=this.states.popBool(t,this,"isEmpty"),this.currentObject=this.states.pop(t,this,"current"),this.businessObjectValue=this.states.pop(t,this,"businessObjectValue"),this.specPrevValue=this.states.pop(t,this,"specPrevValue"),this.specNextValue=this.states.pop(t,this,"specNextValue"),this.specStoredCurrentValue=this.states.pop(t,this,"specStoredCurrentValue"),this.enumerator=this.states.pop(t,this,"enumerator"),this.countFiltered=this.states.pop(t,this,"countFiltered"),this.isEnumeratorCreated=this.states.popBool(t,this,"isEnumeratorCreated"),this.specNextValueRead=this.states.popBool(t,this,"specNextValueRead"),this.specMoveNextResult=this.states.popBool(t,this,"specMoveNextResult"))},c.prototype.clearAllStates=function(){this._states=null},Object.defineProperty(c.prototype,"inherited",{get:function(){return this._inherited},set:function(t){this._inherited=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"position",{get:function(){return this.positionValue},set:function(t){if(t!=this.positionValue){this.first();var e=t;while(e>0)e--,this.next()}},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"count",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isBof",{get:function(){return this.isBofValue},set:function(t){this.isBofValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isEof",{get:function(){return this.isEofValue},set:function(t){this.isEofValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isEmpty",{get:function(){return this._isEmpty},enumerable:!0,configurable:!0}),c.prototype.enumeratorReset=function(){},c.prototype.first=function(){if(this.specNextValue=null,this.specNextValueRead=!1,this.specPrevValue=null,this.positionValue=0,this.isEofValue=!1,this.isBofValue=!0,null!=this.enumerator){this.enumeratorReset();this.enumerator.moveNext()?(this.currentObject=this.enumerator.current,this.specPrevValue=null,this._isEmpty=!1):(this._isEmpty=!0,this.isEofValue=!0,this.currentObject=null,this.specPrevValue=null)}else this.currentObject=null,this.specPrevValue=null,this._isEmpty=!0,this.isEofValue=!0},c.prototype.prior=function(){throw"StiBusinessObject does not support IStiEnumerator.Prior"},c.prototype.next=function(){if(null!=this.enumerator)if(this.specNextValueRead){var t=this.specMoveNextResult;t?(this.specPrevValue=this.current,this.currentObject=this.specNextValue,this.isBofValue=!1,this.isEofValue=!1,this.isEofValue||this.positionValue++):(this.isEofValue=!0,this.currentObject=null,this.specPrevValue=null),this.specNextValueRead=!1,this.specNextValue=null}else{this.specNextValue=null,this.specNextValueRead=!1;var t=this.enumerator.moveNext();t?(this.specPrevValue=this.currentObject,this.currentObject=this.enumerator.current,this.isBofValue=!1,this.isEofValue=!1,this.isEofValue||this.positionValue++):(this.isEofValue=!0,this.specPrevValue=this.currentObject,this.currentObject=null)}},c.prototype.last=function(){while(!this.isEof)this.next()},c.prototype.clone=function(){var t=this.memberwiseClone();t.columns=new i.StiDataColumnsCollection(t),t.businessObjects=new r(this.dictionary,t);for(var e=0,n=this.columns.list;e<n.length;e++){var o=n[e],a=o.clone();a.businessObject=t,t.columns.add(a)}for(var s=0,l=this.businessObjects.list;s<l.length;s++){var u=l[s],c=u.clone();c.parentBusinessObject=t,t.businessObjects.add(c)}return t},Object.defineProperty(c.prototype,"current",{get:function(){if(this.checkEnumerator(),null==this.currentObject&&this.isEof)return this.specPrevValue;return this.currentObject},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"report",{get:function(){if(null==this.dictionary)return null;return this.dictionary.report},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"businessObjects",{get:function(){return this._businessObjects},set:function(t){this._businessObjects=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"columns",{get:function(){return this._columns},set:function(t){this._columns=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"guid",{get:function(){return this._guid},set:function(t){this._guid=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"category",{get:function(){return this._category},set:function(t){this._category=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"businessObjectValue",{get:function(){return null!=this.parentBusinessObject&&this.parentBusinessObject.specTotalsCalculation&&(this._businessObjectValue=this.parentBusinessObject.getByName(this.name)),this._businessObjectValue},set:function(t){this._businessObjectValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"dictionary",{get:function(){return this._dictionary},set:function(t){if(this._dictionary=t,this.businessObjects.dictionary=this._dictionary,null!=t)for(var e=0,i=this.businessObjects.list;e<i.length;e++){var r=i[e];r.dictionary=this._dictionary}},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"parentBusinessObject",{get:function(){return this._parentBusinessObject},set:function(t){this._parentBusinessObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"ownerBand",{get:function(){return this._ownerBand},set:function(t){this._ownerBand=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"key",{get:function(){return this._key},set:function(t){this._key=t},enumerable:!0,configurable:!0}),Object.defineProperty(c,"fieldsIgnoreList",{get:function(){return c._fieldsIgnoreList},set:function(t){c._fieldsIgnoreList=t},enumerable:!0,configurable:!0}),c.prototype.getLevel=function(){if(null==this.rowToLevel)return 0;var t=this.rowToLevel.get(this.current);if(t.sti_is(Number))return+t;return 0},c.prototype.checkEnumerator=function(){this.isEnumeratorCreated||this.setDetails()},c.prototype.setPrevValue=function(){this.specStoredCurrentValue=this.current,this.currentObject=this.specPrevValue,this.specSetPrevValue=!0},c.prototype.setNextValue=function(){this.specStoredCurrentValue=this.current,this.specNextValueRead?this.currentObject=this.specNextValue:(this.specMoveNextResult=this.enumerator.moveNext(),this.specMoveNextResult?(this.specNextValue=this.enumerator.current,this.currentObject=this.specNextValue):(this.specNextValue=null,this.currentObject=null),this.specNextValueRead=!0),this.specSetNextValue=!0},c.prototype.restoreCurrentValue=function(){this.currentObject=this.specStoredCurrentValue,this.specSetPrevValue=!1,this.specSetNextValue=!1},c.prototype.getTopParentBusinessObject=function(){var t=this;while(null!=t.parentBusinessObject)t=t.parentBusinessObject;return t},c.prototype.createEnumerator=function(){},c.prototype.sortData=function(){if(null!=this.ownerBand&&null!=this.ownerBand.sort&&this.ownerBand.sort.length>0&&null!=this.enumerator){var e=new Array;try{this.enumerator.reset()}catch(e){t.System.StiError.showError(e,!1)}while(this.enumerator.moveNext())e.add(this.enumerator.current);if(this.ownerBand.sti_is(t.Report.Components.StiHierarchicalBand)){var r=new i.StiHierarchicalBusinessObjectSort(this,this.ownerBand,this.ownerBand.sort);e.sort()}else{var r=new i.StiBusinessObjectSort(this.ownerBand.sort,this,null,null);e.sort()}}},c.prototype.sortDataByGroups=function(){if(null==this.ownerBand||null==this.enumerator)return;if(!t.Report.Components.StiDataHelper.needGroupSort(this.ownerBand))return;var e=null;e=this.ownerBand.dataBandInfo.groupHeaders;for(var r=0,o=0,a=e.list;o<a.length;o++){var s=a[o];s.sortDirection!=l.None&&r++}var u=new Array;try{this.enumerator.reset()}catch(e){t.System.StiError.showError(e,!1)}var c=0;while(this.enumerator.moveNext())c++;var p=Array.create(Object,c,r+1,2),h=new n,g=0,m=this.currentObject;this.specSortGroup=!0;try{this.enumerator.reset()}catch(e){t.System.StiError.showError(e,!1)}while(this.enumerator.moveNext()){var d=this.enumerator.current;u.add(d),h.set(d,g),this.currentObject=d;for(var S=0,f=0,y=e.list;f<y.length;f++){var s=y[f];s.sortDirection!=l.None&&(p[g][S][0]=t.Report.Engine.StiGroupHeaderBandBuilder.getCurrentConditionValue(s),p[g][S][1]=s.sortDirection,S++)}p[g][r][0]=g,p[g][r][1]=l.Ascending,g++}this.specSortGroup=!1,this.currentObject=m;var b=new i.StiBusinessObjectSort(this.ownerBand.sort,this,h,p);u.sort(),this.first()},c.prototype.filterData=function(){if(null!=this.enumerator){var e=t.Report.Components.StiDataHelper.getFilterEventHandler(this.ownerBand,this);if(null!=this.ownerBand&&null!=e){this.isEnumeratorCreated=!0;var i=this.position,r=this.dictionary.report.line,n=new Array;if(this.specFilterData=!0,e.sti_is(u)){var o=e,a=0;try{this.enumerator.reset()}catch(e){t.System.StiError.showError(e,!1)}while(this.enumerator.moveNext()){this.position=a,0==a&&0==this.positionValue&&(this.currentObject=this.enumerator.current),this.dictionary.report.line=a+1;try{var s=t.Report.Engine.StiParser.StiParser.parseTextValue(o.expression,o.component);s.sti_is(Boolean)&&s&&n.add(this.enumerator.current)}catch(e){t.System.StiError.showError(e,!1)}a++}}this.specFilterData=!1,this.position=i,this.dictionary.report.line=r,this.isEnumeratorCreated=!1}}},c.prototype.destroyEnumerator=function(){this.isEnumeratorCreated=!1,this.countFiltered=null},c.prototype.setDetails=function(){this.updateChilds(),this.createEnumerator()},c.prototype.updateChilds=function(){this.isEnumeratorCreated=!1;for(var t=0,e=this.businessObjects.list;t<e.length;t++){e[t].updateChilds()}},c.prototype.getBusinessObjectDataFromParent=function(t){for(var e=0,i=t.dictionary.report.businessObjectsStore;e<i.length;e++){var r=i[e];if(r.name==t.name)return r.businessObjectValue}return null},c.prototype.getColumnIndex=function(t){for(var e=0,i=0,r=this.columns.list;i<r.length;i++){var n=r[i];if(n.nameInSource==t)return e;e++}e=0;for(var o=0,a=this.columns.list;o<a.length;o++){var n=a[o];if(n.name==t||n.alias==t)return e;e++}return-1},c.prototype.getBusinessObjectData=function(t){if(void 0===t&&(t=!1),null==this.parentBusinessObject)return this.getBusinessObjectDataFromParent(this);var e=new Array,i=this;while(null!=i.parentBusinessObject)e.insert(0,i),i=i.parentBusinessObject;return this.getBusinessObjectDataFromParent(i)},c.prototype.getFullName=function(){return null},c.prototype.getCorrectFullName=function(){return null!=this.parentBusinessObject?this.parentBusinessObject.getCorrectFullName()+"."+t.Report.StiNameValidator.correctName(this.name):this.name},c.prototype.toString=function(){return name==this.alias?name:String.stiFormat("{0} [{1}]",this.name,this.alias)},c.prototype.connect=function(){this.createEnumerator()},c.prototype.disconnect=function(){this.destroyEnumerator(),this.businessObjectValue=null,this.rowToLevel=null},c.prototype.getByName=function(t){var e=this.isEnumeratorCreated;try{var i=this.current,r=this.parentBusinessObject;while(null!=r){if(r.specSetPrevValue||r.specSetNextValue||r.specFilterData||r.specSortGroup||r.specTotalsCalculation){i=this.parentBusinessObject.getByName(this.name);break}r=r.parentBusinessObject}if(null==i&&this.isEof&&(i=this.specPrevValue),null==i)return null;return null}finally{e||(this.businessObjectValue=null,this.enumerator=null,this.isEnumeratorCreated=!1)}},c._fieldsIgnoreList=new n,c}();i.StiBusinessObject=p}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Dictionary.StiBusinessObject,n=t.Report.Dictionary.IStiEnumerator,o=t.Report.Components.IStiDataSource,a=t.Report.Engine.StiParser,s=function(){function s(){}return s.setData=function(e,r,a){void 0===a&&(a=null);var l=e.sti_as(o);if(null!=l&&null!=l.dataSource){var u=e.sti_as(i.IStiDataRelation),c=null;if(null!=u&&null!=u.dataRelation&&(c=u.dataRelationName),null==a){var p=e.sti_as(i.IStiMasterComponent);null!=p&&null!=p.masterComponent||(c=null)}var h=s.getFilterEventHandler(e,l),g=e.sti_as(t.Report.Components.IStiSort),m=null;null!=g&&null!=g.sort&&g.sort.length>0&&(m=g.sort),l.dataSource.setData(e.sti_as(i.StiDataBand),c,h,m,r,e)}var d=e.sti_as(n);null!=d&&d.first();var S=e.sti_as(i.IStiBusinessObject),f=null!=S?S.businessObject:null;if(null!=f){var y=e;f.setDetails()}},s.needGroupSort=function(t){if(null==t||null==t.report)return!1;var e=null;if(null==(e=t.dataBandInfo.groupHeaders)||0==e.count)return!1;for(var r=0,n=0,o=e.list;n<o.length;n++){o[n].sortDirection!=i.StiGroupSortDirection.None&&r++}return r>0},s.getFilterEventHandler=function(n,l){var u=n.sti_as(t.Report.Components.IStiFilter),c=null;null!=u&&null!=u.filterMethodHandler&&(c=u.filterMethodHandler);var p=null;if(null!=n&&null!=n.report&&(p=n.report),null==p&&null!=l&&l.sti_is(r)&&null!=l.dictionary&&(p=l.dictionary.report),null!=p&&(p.calculationMode==e.StiCalculationMode.Interpretation||p.isDesigning)&&null!=u&&u.filterOn&&u.filters.count>0){for(var h="{",g=0;g<u.filters.count;g++){var m=u.filters.list[g];h+="(",l.sti_is(o)?h+=s.getFilterExpression(m,e.StiNameValidator.correctName(l.dataSourceName)+"."+m.column,p):h+=s.getFilterExpression(m,l.name+"."+m.column,p),h+=")",g<u.filters.count-1&&(h+=u.filterMode==i.StiFilterMode.And?" && ":" || ")}h+="}",c=new a.StiFilterParserData(n,h)}return c},s.getFilterExpression=function(t,e,r){var n="";if(t.item==i.StiFilterItem.Expression){var o=t.expression;null!=o&&(o.startsWith("{")&&o.endsWith("}")?n+=o.substr(1,o.length-2):n+=o)}else if(t.item==i.StiFilterItem.Value)if(t.condition==i.StiFilterCondition.IsNull||t.condition==i.StiFilterCondition.IsNotNull){var a=null,s=e.lastIndexOf(".");if(s<0)a=e;else{var l=e.substr(0,s),u=e.substr(s+1);a=String.stiFormat('{0}["{1}"]',l,u)}t.condition==i.StiFilterCondition.IsNull?n+=String.stiFormat("{0} == null || {0} == DBNull.Value",a):n+=String.stiFormat("{0} != null && {0} != DBNull.Value",a)}else if(t.dataType==i.StiFilterDataType.String)t.condition==i.StiFilterCondition.EqualTo?n+=String.stiFormat('{0}.ToString().ToLower() == ToString("{1}").ToLower()',e,t.value1):t.condition==i.StiFilterCondition.NotEqualTo?n+=String.stiFormat('{0}.ToString().ToLower() != ToString("{1}").ToLower()',e,t.value1):t.condition==i.StiFilterCondition.Containing?n+=String.stiFormat('ToString({0}).ToLower().IndexOf(ToString("{1}").ToLower()) != -1',e,t.value1):t.condition==i.StiFilterCondition.NotContaining?n+=String.stiFormat('ToString({0}).ToLower().IndexOf(ToString("{1}").ToLower()) == -1',e,t.value1):t.condition==i.StiFilterCondition.BeginningWith?n+=String.stiFormat('ToString({0}).ToLower().StartsWith(ToString("{1}").ToLower())',e,t.value1):t.condition==i.StiFilterCondition.EndingWith&&(n+=String.stiFormat('ToString({0}).ToLower().EndsWith(ToString("{1}").ToLower())',e,t.value1));else if(t.dataType==i.StiFilterDataType.Numeric)t.condition==i.StiFilterCondition.EqualTo?n+=String.stiFormat("(decimal){0} == (decimal){1}",e,t.value1):t.condition==i.StiFilterCondition.NotEqualTo?n+=String.stiFormat("(decimal){0} != (decimal){1}",e,t.value1):t.condition==i.StiFilterCondition.Between?n+=String.stiFormat("(decimal){0} >= (decimal){1} && (decimal){0} <= (decimal){2}",e,t.value1,t.value2):t.condition==i.StiFilterCondition.NotBetween?n+=String.stiFormat("(decimal){0} < (decimal){1} || (decimal){0} > (decimal){2}",e,t.value1,t.value2):t.condition==i.StiFilterCondition.GreaterThan?n+=String.stiFormat("(decimal){0} > (decimal){1}",e,t.value1):t.condition==i.StiFilterCondition.GreaterThanOrEqualTo?n+=String.stiFormat("(decimal){0} >= (decimal){1}",e,t.value1):t.condition==i.StiFilterCondition.LessThan?n+=String.stiFormat("(decimal){0} < (decimal){1}",e,t.value1):t.condition==i.StiFilterCondition.LessThanOrEqualTo&&(n+=String.stiFormat("(decimal){0} <= (decimal){1}",e,t.value1));else if(t.dataType==i.StiFilterDataType.DateTime){var c=String.empty;if(!String.isNullOrEmpty(t.value1)){var p=t.value1.split("/");c=String.stiFormat("DateSerial({0},{1},{2})",p[2],p[0],p[1])}var h=String.empty;if(!String.isNullOrEmpty(t.value2)){var p=t.value2.split("/");h=String.stiFormat("DateSerial({0},{1},{2})",p[2],p[0],p[1])}t.condition==i.StiFilterCondition.EqualTo?n+=String.stiFormat("(DateTime){0} == {1}",e,c):t.condition==i.StiFilterCondition.NotEqualTo?n+=String.stiFormat("(DateTime){0} != {1}",e,c):t.condition==i.StiFilterCondition.Between?n+=String.stiFormat("(DateTime){0} >= {1} && (DateTime){0} <= {2}",e,c,h):t.condition==i.StiFilterCondition.NotBetween?n+=String.stiFormat("(DateTime){0} < {1} || (DateTime){0} > {2}",e,c,h):t.condition==i.StiFilterCondition.GreaterThan?n+=String.stiFormat("(DateTime){0} > {1}",e,c):t.condition==i.StiFilterCondition.GreaterThanOrEqualTo?n+=String.stiFormat("(DateTime){0} >= {1}",e,c):t.condition==i.StiFilterCondition.LessThan?n+=String.stiFormat("(DateTime){0} < {1}",e,c):t.condition==i.StiFilterCondition.LessThanOrEqualTo&&(n+=String.stiFormat("(DateTime){0} <= {1}",e,c))}else t.dataType==i.StiFilterDataType.Boolean?t.condition==i.StiFilterCondition.EqualTo?n+=String.stiFormat("(bool){0} == {1}",e,t.value1):t.condition==i.StiFilterCondition.NotEqualTo&&(n+=String.stiFormat("(bool){0} != {1}",e,t.value1)):t.dataType==i.StiFilterDataType.Expression&&(t.condition==i.StiFilterCondition.EqualTo?n+=String.stiFormat("{0} == {1}",e,t.value1):t.condition==i.StiFilterCondition.NotEqualTo?n+=String.stiFormat("{0} != ){1}",e,t.value1):t.condition==i.StiFilterCondition.Between?n+=String.stiFormat("{0} >= {1} && {0} <= {2}",e,t.value1,t.value2):t.condition==i.StiFilterCondition.NotBetween?n+=String.stiFormat("{0} < {1} || {0} > {2}",e,t.value1,t.value2):t.condition==i.StiFilterCondition.GreaterThan?n+=String.stiFormat("{0} > {1}",e,t.value1):t.condition==i.StiFilterCondition.GreaterThanOrEqualTo?n+=String.stiFormat("{0} >= {1}",e,t.value1):t.condition==i.StiFilterCondition.LessThan?n+=String.stiFormat("{0} < {1}",e,t.value1):t.condition==i.StiFilterCondition.LessThanOrEqualTo&&(n+=String.stiFormat("{0} <= {1}",e,t.value1)));return n},s}();i.StiDataHelper=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.JsonReportObject.IStiJsonReportObject,r=t.Base.StiJson,n=t.Report.Expressions.StiExpression,o=function(){function t(){this._name=String.empty,this._expression=new n,this._interaction=null}return t.prototype.implements=function(){return[i]},t.prototype.saveToJsonObject=function(t){var e=new r;if(e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyJObject("Expression",this.expression.saveToJsonObject(t)),0==e.count)return null;return e},t.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Name":this._name=r.value;break;case"Expression":this._expression.loadFromJsonObject(r.value);break}}},t.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"Name":this._name=i.textContent;break;case"Expression":this._expression.loadFromXml(i);break}}},t.prototype.isDefault=function(){return String.isNullOrEmpty(this.name)&&(null==this.expression||0==this.expression.value.length)},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this._expression},set:function(t){this._expression=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interaction",{set:function(t){this._interaction=t},enumerable:!0,configurable:!0}),t}();e.StiDrillDownParameter=o}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=function(){function t(){}return t.convertStringToCondition=function(t){if(t==i.get("PropertyEnum","StiFilterConditionEqualTo"))return e.StiFilterCondition.EqualTo;if(t==i.get("PropertyEnum","StiFilterConditionNotEqualTo"))return e.StiFilterCondition.NotEqualTo;if(t==i.get("PropertyEnum","StiFilterConditionBetween"))return e.StiFilterCondition.Between;if(t==i.get("PropertyEnum","StiFilterConditionNotBetween"))return e.StiFilterCondition.NotBetween;if(t==i.get("PropertyEnum","StiFilterConditionGreaterThan"))return e.StiFilterCondition.GreaterThan;if(t==i.get("PropertyEnum","StiFilterConditionGreaterThanOrEqualTo"))return e.StiFilterCondition.GreaterThanOrEqualTo;if(t==i.get("PropertyEnum","StiFilterConditionLessThan"))return e.StiFilterCondition.LessThan;if(t==i.get("PropertyEnum","StiFilterConditionLessThanOrEqualTo"))return e.StiFilterCondition.LessThanOrEqualTo;if(t==i.get("PropertyEnum","StiFilterConditionContaining"))return e.StiFilterCondition.Containing;if(t==i.get("PropertyEnum","StiFilterConditionNotContaining"))return e.StiFilterCondition.NotContaining;if(t==i.get("PropertyEnum","StiFilterConditionBeginningWith"))return e.StiFilterCondition.BeginningWith;if(t==i.get("PropertyEnum","StiFilterConditionEndingWith"))return e.StiFilterCondition.EndingWith;if(t==i.get("PropertyEnum","StiFilterConditionIsNull"))return e.StiFilterCondition.IsNull;if(t==i.get("PropertyEnum","StiFilterConditionIsNotNull"))return e.StiFilterCondition.IsNotNull;return e.StiFilterCondition.EqualTo},t.convertConditionToString=function(t){switch(t){case e.StiFilterCondition.EqualTo:return i.get("PropertyEnum","StiFilterConditionEqualTo");case e.StiFilterCondition.NotEqualTo:return i.get("PropertyEnum","StiFilterConditionNotEqualTo");case e.StiFilterCondition.Between:return i.get("PropertyEnum","StiFilterConditionBetween");case e.StiFilterCondition.NotBetween:return i.get("PropertyEnum","StiFilterConditionNotBetween");case e.StiFilterCondition.GreaterThan:return i.get("PropertyEnum","StiFilterConditionGreaterThan");case e.StiFilterCondition.GreaterThanOrEqualTo:return i.get("PropertyEnum","StiFilterConditionGreaterThanOrEqualTo");case e.StiFilterCondition.LessThan:return i.get("PropertyEnum","StiFilterConditionLessThan");case e.StiFilterCondition.LessThanOrEqualTo:return i.get("PropertyEnum","StiFilterConditionLessThanOrEqualTo");case e.StiFilterCondition.Containing:return i.get("PropertyEnum","StiFilterConditionContaining");case e.StiFilterCondition.NotContaining:return i.get("PropertyEnum","StiFilterConditionNotContaining");case e.StiFilterCondition.BeginningWith:return i.get("PropertyEnum","StiFilterConditionBeginningWith");case e.StiFilterCondition.EndingWith:return i.get("PropertyEnum","StiFilterConditionEndingWith");case e.StiFilterCondition.IsNull:return i.get("PropertyEnum","StiFilterConditionIsNull");case e.StiFilterCondition.IsNotNull:return i.get("PropertyEnum","StiFilterConditionIsNotNull")}return String.empty},t.convertStringToDataType=function(t){if(t==i.get("PropertyEnum","StiFilterDataTypeString"))return e.StiFilterDataType.String;if(t==i.get("PropertyEnum","StiFilterDataTypeNumeric"))return e.StiFilterDataType.Numeric;if(t==i.get("PropertyEnum","StiFilterDataTypeDateTime"))return e.StiFilterDataType.DateTime;if(t==i.get("PropertyEnum","StiFilterDataTypeBoolean"))return e.StiFilterDataType.Boolean;if(t==i.get("PropertyEnum","StiFilterDataTypeExpression"))return e.StiFilterDataType.Expression;return e.StiFilterDataType.String},t.convertDataTypeToString=function(t){switch(t){case e.StiFilterDataType.String:return i.get("PropertyEnum","StiFilterDataTypeString");case e.StiFilterDataType.Numeric:return i.get("PropertyEnum","StiFilterDataTypeNumeric");case e.StiFilterDataType.DateTime:return i.get("PropertyEnum","StiFilterDataTypeDateTime");case e.StiFilterDataType.Boolean:return i.get("PropertyEnum","StiFilterDataTypeBoolean");case e.StiFilterDataType.Expression:return i.get("PropertyEnum","StiFilterDataTypeExpression")}return String.empty},t.setFilter=function(t){},t}();e.StiFilterHelper=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.ICloneable,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiJson,a=t.System.Enum,s=t.System.Text.XMLConvert,l=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype.implements=function(){return t.prototype.implements.call(this).concat([r,n])},i.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new o,i=0,r=0,n=this.list;r<n.length;r++){var a=n[r];e.addPropertyJObject(i.toString(),a.saveToJsonObject(t)),i++}return e},i.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i],o=null;switch(n.value.properties().firstOrDefault(function(t){return"Ident"==t.name}).value){case"StiFilter":o=new e.StiFilter;break;case"StiBaseCondition":o=new e.StiBaseCondition;break;case"StiConditionHelper":o=new e.StiConditionHelper;break}o.loadFromJsonObject(n.value),this.list.add(o)}},i.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];if("value"==r.nodeName){var n=r.textContent.split(","),o=void 0;o=1==n.length?new e.StiFilter(e.StiFilterItem.Expression,String.empty,e.StiFilterCondition.EqualTo,String.empty,String.empty,e.StiFilterDataType.String,s.decodeName(n[0])):new e.StiFilter(e.StiFilterItem.Value,s.decodeName(n[0]),a.parse(e.StiFilterCondition,n[1]),s.decodeName(n[2]),s.decodeName(n[3]),a.parse(e.StiFilterDataType,n[4])),this.list.add(o)}}},i.prototype.clone=function(){for(var t=new i,e=0,r=this.list;e<r.length;e++){var n=r[e];t.add(n.clone())}return t},i.prototype.add=function(t){this.list.add(t)},i.prototype.addRange=function(t){for(var e=t.sti_is(i)?t.list:t,r=0,n=e;r<n.length;r++){var o=n[r];this.add(o)}},i.prototype.contains=function(t){return this.list.contains(t)},i.prototype.indexOf=function(t){return this.list.indexOf(t)},i.prototype.insert=function(t,e){this.list.insert(t,e)},i.prototype.remove=function(t){this.list.remove(t)},i.prototype.getByIndex=function(t){return this.list[t]},i.prototype.setByIndex=function(t,e){this.list[t]=e},i}(i);e.StiFiltersCollection=l}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJson,r=function(){function t(t,e,i,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),this._left=t,this._top=i,this._right=e,this._bottom=r}return t.prototype.implements=function(){return[]},t.prototype.saveToJsonObject=function(t,e,r,n,o){if(this._left==e&&this._right==r&&this._top==n&&this._bottom==o)return null;var a=new i;return a.addPropertyNumberNoDefaultValue("Left",this.left),a.addPropertyNumberNoDefaultValue("Right",this.right),a.addPropertyNumberNoDefaultValue("Top",this.top),a.addPropertyNumberNoDefaultValue("Bottom",this.bottom),a},t.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Left":this._left=r.value.toNumber();break;case"Right":this._right=r.value.toNumber();break;case"Top":this._top=r.value.toNumber();break;case"Bottom":this._bottom=r.value.toNumber();break}}},t.loadFromText=function(e){var i=e.split(",");return new t(i[0].toNumber(),i[1].toNumber(),i[2].toNumber(),i[3].toNumber())},t.loadFromXml=function(e){var i=e.textContent.split(",");return new t(i[0].toNumber(),i[1].toNumber(),i[2].toNumber(),i[3].toNumber())},t.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(t.prototype,"left",{get:function(){return this._left},set:function(t){this._left=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this._right},set:function(t){this._right=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this._top},set:function(t){this._top=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this._bottom},set:function(t){this._bottom=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this._left&&0==this._right&&0==this._top&&0==this._bottom},enumerable:!0,configurable:!0}),t.empty=new t(0,0,0,0),t}();e.StiMargins=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetExcelSheet"},e}(t.StiEvent);t.StiGetExcelSheetEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"ColumnEndRender"},e}(t.StiEvent);t.StiColumnEndRenderEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"ColumnBeginRender"},e}(t.StiEvent);t.StiColumnBeginRenderEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Printing.PaperKind,r=t.System.Drawing.Printing.PrinterUnitConvert,n=t.System.Drawing.Printing.PrinterUnit,o=t.System.Drawing.Printing.PrinterSettings.PrinterSettings,a=t.System.Drawing.Size,s=function(){function s(){}return s.getPaperSizeFromPaperKind=function(t){if(t==i.Custom||!StiOptions.Print.allowUsePaperSizesFromPrinterSettings)return null;var e=StiOptions.Print.customPaperSizes;if(null==e){e=(new o).paperSizes}for(var r=0,n=e.list;r<n.length;r++){var a=n[r];if(a.kind==t)return a}return null},s.getPaperSize=function(i,o){var s=o.width,l=o.height;return i.unit.sti_is(t.Report.Units.StiCentimetersUnit)||i.unit.sti_is(t.Report.Units.StiMillimetersUnit)?(s=r.convert(o.width,n.ThousandthsOfAnInch,n.TenthsOfAMillimeter),l=r.convert(o.height,n.ThousandthsOfAnInch,n.TenthsOfAMillimeter),i.unit.sti_is(t.Report.Units.StiCentimetersUnit)&&(s/=10,l/=10)):(s=Math.round(i.convertFromHInches(i.unit,s),2),l=Math.round(i.convertFromHInches(i.unit,l),2)),i.orientation==e.StiPageOrientation.Landscape?new a(l,s):new a(s,l)},s}();e.StiPageHelper=s}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.ICloneable,r=function(){function t(){}return t.prototype.implements=function(){return[i]},t.prototype.clone=function(){return this.memberwiseClone()},t}();e.StiComponentInfo=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.overlays=null,e.indexOfStartRenderedPages=-1,e.masterDataBand=null,e.isReportTitlesRendered=!1,e.renderedCount=0,e.positionFromTop=0,e.positionFromBottom=0,e}return __extends(e,t),e}(i);e.StiPageInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiJson,n=t.System.Drawing.Rectangle,o=t.System.Drawing.Size,a=function(){function t(){}return t.saveToJsonObject=function(t){var e=new r;return e.addPropertyIdent("Ident",t.getStiType().getStiTypeName()),e},t.loadFromJsonObject=function(t){switch(t.properties().firstOrDefault(function(t){return"Ident"==t.name}).value){case"StiMillimetersUnit":return new i.StiMillimetersUnit;case"StiInchesUnit":return new i.StiInchesUnit;case"StiHundredthsOfInchUnit":return new i.StiHundredthsOfInchUnit;case"StiCentimetersUnit":return new i.StiCentimetersUnit}return null},t.loadFromXml=function(t){switch(t.textContent){case"Millimeters":return new i.StiMillimetersUnit;case"Inches":return new i.StiInchesUnit;case"HundredthsOfInch":return new i.StiHundredthsOfInchUnit;case"Centimeters":return new i.StiCentimetersUnit}},t.getUnitFromReportUnit=function(i){switch(i){case e.StiReportUnitType.HundredthsOfInch:return t.HundredthsOfInch;case e.StiReportUnitType.Inches:return t.Inches;case e.StiReportUnitType.Millimeters:return t.Millimeters;default:return t.Centimeters}},Object.defineProperty(t,"Centimeters",{get:function(){return null==this._centimeters&&i.StiCentimetersUnit&&(this._centimeters=new i.StiCentimetersUnit),this._centimeters},enumerable:!0,configurable:!0}),Object.defineProperty(t,"HundredthsOfInch",{get:function(){return null==this._hundredthsOfInch&&i.StiHundredthsOfInchUnit&&(this._hundredthsOfInch=new i.StiHundredthsOfInchUnit),this._hundredthsOfInch},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Inches",{get:function(){return null==this._inches&&i.StiInchesUnit&&(this._inches=new i.StiInchesUnit),this._inches},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Millimeters",{get:function(){return null==this._millimeters&&i.StiMillimetersUnit&&(this._millimeters=new i.StiMillimetersUnit),this._millimeters},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rulerStep",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"factor",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shortName",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return String.empty},enumerable:!0,configurable:!0}),t.prototype.convertToHInches=function(t){if("number"!=typeof t){if(t.sti_is(n))return this.convertRectangleToHInches(t);if(t.sti_is(o))return this.convertSizeToHInches(t)}return t},t.prototype.convertFromHInches=function(t){if(t.sti_is(n))return this.convertRectangleFromHInches(t);if(t.sti_is(o))return this.convertSizeFromHInches(t);return t},t.prototype.convertRectangleToHInches=function(t){return new n(this.convertToHInches(t.left),this.convertToHInches(t.top),this.convertToHInches(t.width),this.convertToHInches(t.height))},t.prototype.convertRectangleFromHInches=function(t){return new n(this.convertFromHInches(t.left),this.convertFromHInches(t.top),this.convertFromHInches(t.width),this.convertFromHInches(t.height))},t.prototype.convertSizeToHInches=function(t){return new o(this.convertToHInches(t.width),this.convertToHInches(t.height))},t.prototype.convertSizeFromHInches=function(t){return new o(this.convertFromHInches(t.width),this.convertFromHInches(t.height))},t}();i.StiUnit=a}(i=e.Units||(e.Units={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Helpers.StiHyperlinkProcessor,r=t.Base.Drawing.StiImageConverter,n=t.System.Drawing.ContentAlignment,o=t.System.Enum,a=t.Base.Drawing.StiBrush,s=t.Base.Drawing.StiSolidBrush,l=t.System.Drawing.Font,u=t.System.Drawing.Color,c=t.Base.StiJson,p=t.Base.StiJsonReportObjectHelper,h=t.System.ICloneable,g=t.Base.JsonReportObject.IStiJsonReportObject,m=function(){function e(t,e,i,r,o,a,c,p){void 0===t&&(t=null),void 0===e&&(e=""),void 0===i&&(i=45),void 0===r&&(r=null),void 0===o&&(o=!1),void 0===a&&(a=!0),void 0===c&&(c=!1),void 0===p&&(p=!1),this._font=new l("Arial",100),this._textBrush=new s(u.fromArgb(50,0,0,0)),this._text=String.empty,this._angle=45,this._enabled=!0,this._showImageBehind=!0,this._showBehind=!1,this._rightToLeft=!1,this._imageMultipleFactor=1,this._imageTransparency=0,this._image=null,this._imageHyperlink="",this._imageAlignment=n.MiddleCenter,this._imageTiling=!1,this._imageStretch=!1,this._aspectRatio=!1,this._enabledExpression=String.empty,this.imageHyperlink=String.empty,null!=t&&(this._textBrush=t),this._text=e,this._angle=i,null!=r&&(this._font=r),this._showBehind=o,this._enabled=a,this._aspectRatio=c,this._rightToLeft=p}return e.prototype.implements=function(){return[h,g]},e.prototype.saveToJsonObject=function(t){var e=new c;if(e.addPropertyStringNullOfEmpty("Font",p.Serialize.font(this.font,"Arial",100)),e.addPropertyStringNullOfEmpty("TextBrush",p.Serialize.jBrush(this.textBrush)),e.addPropertyStringNullOfEmpty("Text",this.text),e.addPropertyStringNullOfEmpty("ImageHyperlink",this.imageHyperlink),e.addPropertyNumber("Angle",this.angle,45),e.addPropertyBool("Enabled",this.enabled,!0),e.addPropertyBool("ShowImageBehind",this.showImageBehind,!0),e.addPropertyBool("ShowBehind",this.showBehind),e.addPropertyBool("RightToLeft",this.rightToLeft),e.addPropertyNumber("ImageMultipleFactor",this.imageMultipleFactor,1),e.addPropertyNumber("ImageTransparency",this.imageTransparency,0),e.addPropertyStringNullOfEmpty("ImageBytes",r.imageToString(this.image)),e.addPropertyEnum("ImageAlignment",n,this.imageAlignment,n.MiddleCenter),e.addPropertyBool("ImageTiling",this.imageTiling),e.addPropertyBool("ImageStretch",this.imageStretch),e.addPropertyBool("AspectRatio",this.aspectRatio),e.addPropertyStringNullOfEmpty("EnabledExpression",this.enabledExpression),0==e.count)return null;return e},e.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var a=i[e];switch(a.name){case"Font":case"fn":this._font=p.Deserialize.font(a.value,this.font);break;case"TextBrush":case"tb":this._textBrush=p.Deserialize.brush(a.value);break;case"Text":case"text":this._text=a.value;break;case"Angle":this._angle=a.value.toNumber();break;case"Enabled":this._enabled=a.value.toBoolean();break;case"ShowImageBehind":this._showImageBehind=a.value.toBoolean();break;case"ShowBehind":this._showBehind=a.value.toBoolean();break;case"RightToLeft":this._rightToLeft=a.value.toBoolean();break;case"ImageMultipleFactor":this._imageMultipleFactor=a.value.toNumber();break;case"ImageTransparency":this._imageTransparency=a.value.toNumber();break;case"Image":case"ImageBytes":this._image=r.stringToImage(a.value);break;case"ImageHyperlink":this.imageHyperlink=a.value.toString();break;case"ImageAlignment":this._imageAlignment=o.parse(n,a.value);break;case"ImageTiling":this._imageTiling=a.value.toBoolean();break;case"ImageStretch":this._imageStretch=a.value.toBoolean();break;case"AspectRatio":this._aspectRatio=a.value.toBoolean();break;case"EnabledExpression":this._enabledExpression=a.value;break}}},e.prototype.loadFromXml=function(e){for(var i=0;i<e.childNodes.length;i++){var s=e.childNodes[i];switch(s.nodeName){case"Font":this._font=t.System.Convert.toFont(s.textContent);break;case"TextBrush":this._textBrush=a.convertToBrush(s.textContent);break;case"Text":this._text=s.textContent;break;case"Angle":this._angle=s.textContent.toNumber();break;case"Enabled":this._enabled=s.textContent.toBoolean();break;case"ShowImageBehind":this._showImageBehind=s.textContent.toBoolean();break;case"ShowBehind":this._showBehind=s.textContent.toBoolean();break;case"RightToLeft":this._rightToLeft=s.textContent.toBoolean();break;case"ImageMultipleFactor":this._imageMultipleFactor=s.textContent.toNumber();break;case"ImageTransparency":this._imageTransparency=s.textContent.toNumber();break;case"Image":case"ImageBytes":this._image=r.stringToImage(s.textContent);break;case"ImageAlignment":this._imageAlignment=o.parse(n,s.textContent);break;case"ImageTiling":this._imageTiling=s.textContent.toBoolean();break;case"ImageStretch":this._imageStretch=s.textContent.toBoolean();break;case"ImageHyperlink":this._imageHyperlink=s.textContent;break;case"AspectRatio":this._aspectRatio=s.textContent.toBoolean();break}}},e.prototype.clone=function(){var t=this.memberwiseClone();return t._font=this._font.clone(),t._textBrush=this._textBrush.clone(),null!=this._image&&(t._image=this._image.clone()),null!=this.cachedImage&&(t.cachedImage=this.cachedImage.clone()),t},Object.defineProperty(e.prototype,"font",{get:function(){return this._font},set:function(t){this._font=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textBrush",{get:function(){return this._textBrush},set:function(t){this._textBrush=t},enumerable:!0,configurable:!0}),e.prototype.shouldSerializeTextBrush=function(){return!(this._textBrush.sti_is(s)&&this._textBrush.color.stiEquals(u.fromArgb(50,0,0,0)))},Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showImageBehind",{get:function(){return this._showImageBehind},set:function(t){this._showImageBehind=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showBehind",{get:function(){return this._showBehind},set:function(t){this._showBehind=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return this._rightToLeft},set:function(t){this._rightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageMultipleFactor",{get:function(){return this._imageMultipleFactor},set:function(t){this._imageMultipleFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageTransparency",{get:function(){return this._imageTransparency},set:function(t){(t=Math.max(0,Math.min(t,255)))!=this._imageTransparency&&(this._imageTransparency=t,this.disposeCachedImage())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"image",{get:function(){return this._image},set:function(t){this._image!=t&&(this._image=t,this.disposeCachedImage())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageHyperlink",{get:function(){return this._imageHyperlink},set:function(t){this._imageHyperlink!=t&&(this._imageHyperlink=t)},enumerable:!0,configurable:!0}),e.prototype.getImage=function(t){var e=String.isNullOrWhiteSpace(this.imageHyperlink)?this.image:i.getImage(t,this.imageHyperlink);if(0==this.imageTransparency)return e;return null==this.cachedImage&&(this.cachedImage=this.getTransparentedImage(e,1-this.imageTransparency/255)),this.cachedImage},Object.defineProperty(e.prototype,"imageAlignment",{get:function(){return this._imageAlignment},set:function(t){this._imageAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageTiling",{get:function(){return this._imageTiling},set:function(t){this._imageTiling=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageStretch",{get:function(){return this._imageStretch},set:function(t){this._imageStretch=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(t){this._aspectRatio=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabledExpression",{get:function(){return this._enabledExpression},set:function(t){this._enabledExpression=t},enumerable:!0,configurable:!0}),e.prototype.getTransparentedImage=function(t,e){return t},e.prototype.disposeCachedImage=function(){null!=this.cachedImage&&(this.cachedImage.dispose(),this.cachedImage=null)},e}();e.StiWatermark=m}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGetExcelSheetEventHandler=new i("sender: Object, e: StiGetExcelSheetEventArgs");var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(r);e.StiGetExcelSheetEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.EventHandler,n=t.Report.Events.StiGetExcelSheetEventHandler,o=t.Report.Events.StiGetExcelSheetEventArgs,a=t.Report.Events.StiBeginRenderEvent,s=t.Report.Events.StiRenderingEvent,l=t.Report.Events.StiEndRenderEvent,u=t.Report.Events.StiColumnBeginRenderEvent,c=t.Report.Events.StiColumnEndRenderEvent,p=t.Report.Events.StiGetExcelSheetEvent,h=t.Base.Drawing.StiAdvancedBorder,g=t.System.Drawing.Font,m=t.Report.Units.StiUnit,d=t.Report.Components.StiShiftMode,S=t.Report.Components.StiMargins,f=t.Report.Components.StiPageInfo,y=t.Report.Components.StiPageOrientation,b=t.Report.Components.StiWatermark,C=t.System.Drawing.Printing.PaperKind,v=t.Report.Components.StiPageHelper,I=t.Report.Components.IStiResetPageNumber,A=t.System.Drawing.Rectangle,w=t.System.Collections.Hashtable,T=t.Base.Drawing.StiBorderSides,B=t.Base.Drawing.StiSolidBrush,R=t.System.Drawing.Color,P=t.System.Enum,F=function(F){function x(t,e){void 0===e&&(e=!1);var i=F.call(this,A.empty,!0)||this;return i._resetPageNumber=!1,i._excelSheetValue="",i._excelSheet="",i._printOnPreviousPage=!1,i._printHeadersFootersFromPreviousPage=!1,i._paperSize=C.Custom,i._paperSourceOfFirstPage=String.empty,i._paperSourceOfOtherPages=String.empty,i._numberOfCopies=1,i._unlimitedBreakable=!0,i._largeHeight=!1,i._largeHeightFactor=4,i._largeHeightAutoFactor=1,i._stopBeforePrint=0,i._skip=!1,i._stretchToPrintArea=!1,i._titleBeforeHeader=!1,i._unlimitedHeight=!1,i._unlimitedWidth=!0,i._offsetRectangle=A.empty,i._orientation=y.Portrait,i._segmentPerWidth=1,i._segmentPerHeight=1,i._margins=new S(39,39,39,39),i._mirrorMargins=!1,i._reportUnit=null,i._drillDownActivated=!1,i._cacheGuid=null,e||i.construct(t),i}return __extends(x,F),x.prototype.implements=function(){return x.ImplementsStiPage||(x.ImplementsStiPage=F.prototype.implements.call(this).concat([I])),x.ImplementsStiPage},x.prototype.saveToJsonObject=function(t){var e=F.prototype.saveToJsonObject.call(this,t);return e.removeProperty("CanShrink"),e.removeProperty("CanGrow"),e.removeProperty("PrintOn"),e.removeProperty("CanBreak"),e.removeProperty("DockStyle"),e.removeProperty("MinSize"),e.removeProperty("MaxSize"),e.removeProperty("ClientRectangle"),e.removeProperty("DisplayRectangle"),e.removeProperty("UseParentStyles"),e.removeProperty("GrowToHeight"),e.removeProperty("ShiftMode"),e.removeProperty("Printable"),e.removeProperty("Page"),e.removeProperty("Parent"),e.removeProperty("Restrictions"),e.removeProperty("Locked"),e.removeProperty("Linked"),e.addPropertyBool("ResetPageNumber",this.resetPageNumber),e.addPropertyJObject("BeginRenderEvent",this.beginRenderEvent.saveToJsonObject(t)),e.addPropertyJObject("RenderingEvent",this.renderingEvent.saveToJsonObject(t)),e.addPropertyJObject("EndRenderEvent",this.endRenderEvent.saveToJsonObject(t)),e.addPropertyJObject("ColumnBeginRenderEvent",this.columnBeginRenderEvent.saveToJsonObject(t)),e.addPropertyJObject("ColumnEndRenderEvent",this.columnEndRenderEvent.saveToJsonObject(t)),e.addPropertyJObject("GetExcelSheetEvent",this.getExcelSheetEvent.saveToJsonObject(t)),e.addPropertyBool("PrintOnPreviousPage",this.printOnPreviousPage),e.addPropertyBool("PrintHeadersFootersFromPreviousPage",this.printHeadersFootersFromPreviousPage),e.addPropertyEnum("PaperSize",C,this.paperSize,C.Custom),e.addPropertyStringNullOfEmpty("PaperSourceOfFirstPage",this.paperSourceOfFirstPage),e.addPropertyStringNullOfEmpty("PaperSourceOfOtherPages",this.paperSourceOfOtherPages),e.addPropertyNumber("NumberOfCopies",this.numberOfCopies,1),e.addPropertyBool("UnlimitedBreakable",this.unlimitedBreakable,!0),e.addPropertyBool("LargeHeight",this.largeHeight),e.addPropertyNumber("LargeHeightFactor",this.largeHeightFactor,4),e.addPropertyNumber("StopBeforePrint",this.stopBeforePrint),e.addPropertyBool("StretchToPrintArea",this.stretchToPrintArea),e.addPropertyBool("TitleBeforeHeader",this.titleBeforeHeader),e.addPropertyBool("UnlimitedHeight",this.unlimitedHeight),e.addPropertyBool("UnlimitedWidth",this.unlimitedWidth,!0),e.addPropertyEnum("Orientation",y,this.orientation,y.Portrait),e.addPropertyNumber("PageWidth",this.pageWidth,827),e.addPropertyNumber("PageHeight",this.pageHeight,1169),e.addPropertyNumber("SegmentPerWidth",this.segmentPerWidth,1),e.addPropertyNumber("SegmentPerHeight",this.segmentPerHeight,1),e.addPropertyJObject("Watermark",this.watermark.saveToJsonObject(t)),e.addPropertyJObject("Margins",this.margins.saveToJsonObject(t,39,39,39,39)),e.addPropertyBool("MirrorMargins",this.mirrorMargins,!1),null!=this.reportUnit&&e.addPropertyJObject("ReportUnit",m.saveToJsonObject(this.reportUnit)),e},x.prototype.loadFromJsonObject=function(t){F.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"ResetPageNumber":this._resetPageNumber=r.value.toBoolean();break;case"BeginRenderEvent":this.beginRenderEvent.loadFromJsonObject(r.value);break;case"RenderingEvent":this.renderingEvent.loadFromJsonObject(r.value);break;case"EndRenderEvent":this.endRenderEvent.loadFromJsonObject(r.value);break;case"ColumnBeginRenderEvent":this.columnBeginRenderEvent.loadFromJsonObject(r.value);break;case"ColumnEndRenderEvent":this.columnEndRenderEvent.loadFromJsonObject(r.value);break;case"GetExcelSheetEvent":this.getExcelSheetEvent.loadFromJsonObject(r.value);break;case"ExcelSheetValue":this._excelSheetValue=r.value;break;case"ExcelSheet":break;case"PrintOnPreviousPage":this._printOnPreviousPage=r.value.toBoolean();break;case"PrintHeadersFootersFromPreviousPage":this._printHeadersFootersFromPreviousPage=r.value.toBoolean();break;case"PaperSize":this._paperSize=P.parse(C,r.value);break;case"PaperSourceOfFirstPage":this._paperSourceOfFirstPage=r.value;break;case"PaperSourceOfOtherPages":this._paperSourceOfOtherPages=r.value;break;case"NumberOfCopies":this._numberOfCopies=r.value.toNumber();break;case"UnlimitedBreakable":this._unlimitedBreakable=r.value.toBoolean();break;case"LargeHeight":this._largeHeight=r.value.toBoolean();break;case"LargeHeightFactor":this._largeHeightFactor=r.value.toNumber();break;case"StopBeforePrint":this._stopBeforePrint=r.value.toNumber();break;case"StretchToPrintArea":this._stretchToPrintArea=r.value.toBoolean();break;case"TitleBeforeHeader":this._titleBeforeHeader=r.value.toBoolean();break;case"UnlimitedHeight":this._unlimitedHeight=r.value.toBoolean();break;case"UnlimitedWidth":this._unlimitedWidth=r.value.toBoolean();break;case"Orientation":this._orientation=P.parse(y,r.value);break;case"PageWidth":this._pageWidth=r.value.toNumber();break;case"PageHeight":this._pageHeight=r.value.toNumber();break;case"SegmentPerWidth":this._segmentPerWidth=r.value.toNumber();break;case"SegmentPerHeight":this._segmentPerHeight=r.value.toNumber();break;case"Watermark":this.watermark.loadFromJsonObject(r.value);break;case"Margins":this._margins.loadFromJsonObject(r.value);break;case"MirrorMargins":this._mirrorMargins=r.value.toBoolean();break;case"ReportUnit":this._reportUnit=m.loadFromJsonObject(r.value);break}}},x.prototype.loadFromXml=function(e,i){F.prototype.loadFromXml.call(this,e,i);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"ResetPageNumber":this._resetPageNumber=n.textContent.toBoolean();break;case"BeginRenderEvent":break;case"RenderingEvent":break;case"EndRenderEvent":break;case"ColumnBeginRenderEvent":break;case"ColumnEndRenderEvent":break;case"GetExcelSheetEvent":break;case"ExcelSheetValue":this._excelSheetValue=n.textContent;break;case"ExcelSheet":break;case"PrintOnPreviousPage":this._printOnPreviousPage=n.textContent.toBoolean();break;case"PrintHeadersFootersFromPreviousPage":this._printHeadersFootersFromPreviousPage=n.textContent.toBoolean();break;case"PaperSize":this._paperSize=P.parse(C,n.textContent);break;case"PaperSourceOfFirstPage":this._paperSourceOfFirstPage=n.textContent;break;case"PaperSourceOfOtherPages":this._paperSourceOfOtherPages=n.textContent;break;case"NumberOfCopies":this._numberOfCopies=n.textContent.toNumber();break;case"UnlimitedBreakable":this._unlimitedBreakable=n.textContent.toBoolean();break;case"LargeHeight":this._largeHeight=n.textContent.toBoolean();break;case"LargeHeightFactor":this._largeHeightFactor=n.textContent.toNumber();break;case"StopBeforePrint":this._stopBeforePrint=n.textContent.toNumber();break;case"StretchToPrintArea":this._stretchToPrintArea=n.textContent.toBoolean();break;case"TitleBeforeHeader":this._titleBeforeHeader=n.textContent.toBoolean();break;case"UnlimitedHeight":this._unlimitedHeight=n.textContent.toBoolean();break;case"UnlimitedWidth":this._unlimitedWidth=n.textContent.toBoolean();break;case"Orientation":this._orientation=P.parse(y,n.textContent);break;case"PageWidth":this._pageWidth=n.textContent.toNumber();break;case"PageHeight":this._pageHeight=n.textContent.toNumber();break;case"SegmentPerWidth":this._segmentPerWidth=n.textContent.toNumber();break;case"SegmentPerHeight":this._segmentPerHeight=n.textContent.toNumber();break;case"Watermark":this.watermark.loadFromXml(n);break;case"Margins":this._margins=S.loadFromXml(n);break;case"MirrorMargins":this._mirrorMargins=n.textContent.toBoolean();break;case"ReportUnit":this._reportUnit=t.Report.Units.StiUnit.loadFromXml(n);break}}},Object.defineProperty(x.prototype,"componentId",{get:function(){return e.StiComponentId.StiPage},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"resetPageNumber",{get:function(){return this._resetPageNumber},set:function(t){this._resetPageNumber=t},enumerable:!0,configurable:!0}),x.prototype.convertToHInches=function(e,i){if(e.sti_is(t.Report.Units.StiCentimetersUnit)){if(21==i)return 827;if(29.7==i)return 1169;if(1==i)return 39}else if(e.sti_is(t.Report.Units.StiMillimetersUnit)){if(210==i)return 827;if(297==i)return 1169;if(10==i)return 39}return e.convertToHInches(i)},x.prototype.convertFromHInchesRect=function(t,e){return new A(this.convertFromHInches(t,e.left),this.convertFromHInches(t,e.top),this.convertFromHInches(t,e.width),this.convertFromHInches(t,e.height))},x.prototype.convertFromHInches=function(e,i){if(e.sti_is(t.Report.Units.StiCentimetersUnit)){if(827==i)return 21;if(1169==i)return 29.7;if(39==i)return 1}else if(e.sti_is(t.Report.Units.StiMillimetersUnit)){if(827==i)return 210;if(1169==i)return 297;if(39==i)return 10}return e.convertFromHInches(i)},x.prototype.convert=function(t,e,i){void 0===i&&(i=!1),this.pageWidth=this.convertFromHInches(e,this.convertToHInches(t,this.pageWidth)),this.pageHeight=this.convertFromHInches(e,this.convertToHInches(t,this.pageHeight)),this.margins=new S(this.convertFromHInches(e,this.convertToHInches(t,this.margins.left)),this.convertFromHInches(e,this.convertToHInches(t,this.margins.right)),this.convertFromHInches(e,this.convertToHInches(t,this.margins.top)),this.convertFromHInches(e,this.convertToHInches(t,this.margins.bottom))),this.columnWidth=this.convertFromHInches(e,this.convertToHInches(t,this.columnWidth)),this.columnGaps=this.convertFromHInches(e,this.convertToHInches(t,this.columnGaps));for(var r=0,n=this.components.list;r<n.length;r++){n[r].convert(t,e,i)}},x.prototype.clone=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var r=F.prototype.clone.call(this,t,e);if(r._pageInfo=this.pageInfo.clone(),r._margins=this.margins.clone(),r._orientation=this._orientation,null!=this._watermark?r._watermark=this._watermark.clone():r._watermark=null,r.components=new i.StiComponentsCollection(r),e){for(var n=0,o=this.components.list;n<o.length;n++){var a=o[n];r.components.add(a.clone())}for(var s=r.getComponents(),l=0,u=s.list;l<u.length;l++){var a=u[l];a.page=r}}return r},Object.defineProperty(x.prototype,"pageInfo",{get:function(){return null==this._pageInfo&&(this._pageInfo=new f),this._pageInfo},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"isAutomaticDock",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"left",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"top",{get:function(){return 0},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"width",{get:function(){return(this.pageWidth-this.margins.left-this.margins.right)*this.segmentPerWidth},set:function(t){this._pageWidth=t/this.segmentPerWidth+this.margins.left+this.margins.right},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"height",{get:function(){var t=(this._pageHeight-this.margins.top-this.margins.bottom)*this.segmentPerHeight;return this.isDesigning&&(this.largeHeight?t*=this.largeHeightAutoFactor:t+=(this._pageHeight-this.margins.top-this.margins.bottom)*(this.largeHeightAutoFactor-1)),t},set:function(t){this._pageHeight=t/this.segmentPerHeight+this.margins.top+this.margins.bottom,this.page.largeHeight&&this.isDesigning&&(this._pageHeight/=this.largeHeightFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"right",{get:function(){return this.width},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"bottom",{get:function(){return this.height},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"clientRectangle",{get:function(){return new A(0,0,this.width,this.height)},set:function(t){this.width=t.width,this.height=t.height},enumerable:!0,configurable:!0}),x.prototype.getDisplayRectangle=function(){return new A(0,0,this.width+this.margins.left+this.margins.right,this.height+this.margins.top+this.margins.bottom)},Object.defineProperty(x.prototype,"shiftMode",{get:function(){return d.None},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"printable",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"page",{get:function(){return this},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"parent",{get:function(){return null},set:function(t){},enumerable:!0,configurable:!0}),x.prototype.invokeEvents=function(){if(F.prototype.invokeEvents.call(this),null!=this.report&&this.report.calculationMode==e.StiCalculationMode.Interpretation&&null==this.excelSheetValue&&this.excelSheet.length>0){var i=t.Report.Engine.StiParser.StiParser.parseTextValue(this.excelSheet,this);null!=i&&(this.excelSheetValue=this.report.toString2(i))}if(null!=this.events.get(x.eventGetExcelSheet)&&null==this.excelSheetValue){var r=new o;this.invokeGetExcelSheet(this,r),null!=r.value&&(this.excelSheetValue=r.value.toString())}this.printOnPreviousPage&&this.printHeadersFootersFromPreviousPage&&null!=this.report&&this.report.renderedPages.count>0&&(this.excelSheetValue=this.report.renderedPages.getByIndex(this.report.renderedPages.count-1).excelSheetValue)},x.prototype.onBeginRender=function(){},x.prototype.invokeBeginRender=function(){this.onBeginRender();var t=this.events.get(x.eventBeginRender);null!=t&&t(this)},Object.defineProperty(x.prototype,"beginRenderEvent",{get:function(){return new a(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(x.eventBeginRender,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),x.prototype.onRendering=function(){},x.prototype.invokeRendering=function(){this.onRendering();var t=this.events.get(x.eventRendering);null!=t&&t(this)},Object.defineProperty(x.prototype,"renderingEvent",{get:function(){return new s(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(x.eventRendering,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),x.prototype.onEndRender=function(){},x.prototype.invokeEndRender=function(){this.onEndRender();var t=this.events.get(x.eventEndRender);null!=t&&t(this)},Object.defineProperty(x.prototype,"endRenderEvent",{get:function(){return new l(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(x.eventEndRender,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),x.prototype.onColumnBeginRender=function(){},x.prototype.invokeColumnBeginRender=function(t){void 0===t&&(t=this),this.onColumnBeginRender();var e=this.events.get(x.eventColumnBeginRender);null!=e&&e(t)},Object.defineProperty(x.prototype,"columnBeginRenderEvent",{get:function(){return new u(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(x.eventColumnBeginRender,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),x.prototype.onColumnEndRender=function(){},x.prototype.invokeColumnEndRender=function(t){void 0===t&&(t=this),this.onColumnEndRender();var e=this.events.get(x.eventColumnEndRender);null!=e&&e(t)},Object.defineProperty(x.prototype,"columnEndRenderEvent",{get:function(){return new c(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(x.eventColumnEndRender,r.create(t.script,this.report))},enumerable:!0,configurable:!0}),x.prototype.onGetExcelSheet=function(t){},x.prototype.invokeGetExcelSheet=function(t,e){try{this.onGetExcelSheet(e);var i=this.events.get(x.eventGetExcelSheet);if(null!=i)try{i(t,e)}catch(e){}}catch(t){}},Object.defineProperty(x.prototype,"getExcelSheetEvent",{get:function(){return new p(this)},set:function(t){null!=t&&t.set(this,t.script),this.events.set(x.eventGetExcelSheet,n.create(t.script,this.report))},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"excelSheetValue",{get:function(){return this._excelSheetValue},set:function(t){this._excelSheetValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"excelSheet",{get:function(){return this._excelSheet},set:function(t){this._excelSheet=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"zoom",{get:function(){if(null==this.report||null==this.report.info)return 1;return this.report.info.zoom},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"gridSize",{get:function(){if(this.report.unit.sti_is(t.Report.Units.StiMillimetersUnit))return this.report.info.gridSizeMillimeters;if(this.report.unit.sti_is(t.Report.Units.StiCentimetersUnit))return this.report.info.gridSizeCentimetres;if(this.report.unit.sti_is(t.Report.Units.StiHundredthsOfInchUnit))return this.report.info.gridSizeHundredthsOfInch;return this.report.info.gridSizeInch},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"printOnPreviousPage",{get:function(){return this._printOnPreviousPage},set:function(t){this._printOnPreviousPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"printHeadersFootersFromPreviousPage",{get:function(){return this._printHeadersFootersFromPreviousPage},set:function(t){this._printHeadersFootersFromPreviousPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"paperSize",{get:function(){return this._paperSize},set:function(e){if(this._paperSize!=e){if(this._paperSize=e,e==C.Custom||null==this._report)return;var i=t.Report.Components.StiPageHelper.getPaperSizeFromPaperKind(e);if(null==i)return;var r=v.getPaperSize(this,i);this.pageWidth=r.width,this.pageHeight=r.height}},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"paperSourceOfFirstPage",{get:function(){return this._paperSourceOfFirstPage},set:function(t){this._paperSourceOfFirstPage!=t&&(this._paperSourceOfFirstPage=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"paperSourceOfOtherPages",{get:function(){return this._paperSourceOfOtherPages},set:function(t){this._paperSourceOfOtherPages!=t&&(this._paperSourceOfOtherPages=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"numberOfCopies",{get:function(){return this._numberOfCopies},set:function(t){this._numberOfCopies!=t&&(this._numberOfCopies=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"unlimitedBreakable",{get:function(){return this._unlimitedBreakable},set:function(t){this._unlimitedBreakable=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"largeHeight",{get:function(){return this._largeHeight},set:function(t){this._largeHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"largeHeightFactor",{get:function(){return this._largeHeightFactor},set:function(t){t>=1&&t<=20&&(this._largeHeightFactor=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"largeHeightAutoFactor",{get:function(){if(this.largeHeight)return this.largeHeightFactor;return this._largeHeightAutoFactor},set:function(t){t<1&&(this._largeHeightAutoFactor=1),t>=1&&t<=50&&(this._largeHeightAutoFactor=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"currentWidthSegment",{get:function(){return this._currentWidthSegment},set:function(t){this._currentWidthSegment=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"currentHeightSegment",{get:function(){return this._currentHeightSegment},set:function(t){this._currentHeightSegment=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"stopBeforePrint",{get:function(){return this._stopBeforePrint},set:function(t){this._stopBeforePrint=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"skip",{get:function(){return this._skip},set:function(t){this._skip=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"stretchToPrintArea",{get:function(){return this._stretchToPrintArea},set:function(t){this._stretchToPrintArea=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"titleBeforeHeader",{get:function(){return this._titleBeforeHeader},set:function(t){this._titleBeforeHeader!=t&&(this._titleBeforeHeader=t,this.correct())},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"unlimitedHeight",{get:function(){return this._unlimitedHeight},set:function(t){this._unlimitedHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"unlimitedWidth",{get:function(){return this._unlimitedWidth},set:function(t){this._unlimitedWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"offsetRectangle",{get:function(){return this._offsetRectangle},set:function(t){this._offsetRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"orientation",{get:function(){return this._orientation},set:function(t){var e=this.margins.left,i=this.margins.right,r=this.margins.top,n=this.margins.bottom;if(this._orientation!=t&&null!=this._report&&!this._report.isSerializing){var o=this.pageHeight;this.pageHeight=this.pageWidth,this.pageWidth=o,t==y.Landscape?this.margins=new S(r,n,i,e):this.margins=new S(n,r,e,i)}this._orientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"locked",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"linked",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"pageWidth",{get:function(){return this._pageWidth},set:function(t){this._pageWidth=Math.round(t,2)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"pageHeight",{get:function(){return this._pageHeight},set:function(t){this._pageHeight=Math.round(t,2)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"segmentPerWidth",{get:function(){return this._segmentPerWidth},set:function(t){t>0&&(this._segmentPerWidth=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"segmentPerHeight",{get:function(){return this._segmentPerHeight},set:function(t){t>0&&(this._segmentPerHeight=t)},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"watermark",{get:function(){return null==this._watermark&&(this._watermark=new b),this._watermark},set:function(t){this._watermark=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"margins",{get:function(){return this._margins},set:function(t){this._margins=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"mirrorMargins",{get:function(){return this._mirrorMargins},set:function(t){this._mirrorMargins=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"report",{get:function(){return this._report},set:function(t){this._report=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"unit",{get:function(){if(null==this._report)return m.HundredthsOfInch;return this._report.unit},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"reportUnit",{get:function(){return this._reportUnit},set:function(t){this._reportUnit=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"drillDownActivated",{get:function(){return this._drillDownActivated},set:function(t){this._drillDownActivated=t},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"cacheGuid",{get:function(){return null==this._cacheGuid&&this.newCacheGuid(),this._cacheGuid},set:function(t){this._cacheGuid=t},enumerable:!0,configurable:!0}),x.prototype.newCacheGuid=function(){this._cacheGuid=t.System.Guid.newGuid().toString().replaceAll("-","")},x.prototype.getIsPageTotalDataBand=function(t){if(null==this.report||null==this.report.dataBandsUsedInPageTotals)return!1;for(var e=0,i=this.report.dataBandsUsedInPageTotals;e<i.length;e++){var r=i[e];if(r==t||"Breaked_"+r==t||"Continued_"+r==t)return!0}return!1},x.prototype.clearPage=function(){var t=new w,e={},r={};if(this.components.setParent(this),1e11==this.height)return;this.removeNewPageContainers(this),this.moveComponentsToPage();var n=new i.StiComponentsCollection(this),o=0;while(o<this.components.count){var a=this.components.getByIndex(o),s=a.sti_as(i.StiContainer),l=!1;null!=s&&(null==t.get(s.name)?(l=this.getIsPageTotalDataBand(s.name),l?t.set(s.name,e):t.set(s.name,r)):l=t.get(s.name)==e);!l&&null!=s&&null==s.tagValue&&null==s.bookmarkValue&&null==s.toolTipValue&&null==s.hyperlinkValue&&null==s.guid&&null==s.interaction&&(null==s.border||s.border.side==T.None&&0==s.border.dropShadow)&&(null==s.brush||s.brush.sti_is(B)&&s.brush.color.stiEquals(R.transparent))||n.add(a),o++}this.components.clear(),this.components.addRange(n),n.clear()},x.prototype.removeNewPageContainers=function(e){for(var r=!1,n=e.components.count-1;n>=0;n--){var o=e.components.getByIndex(n);if(o.sti_is(t.Report.Engine.StiNewPageContainer))e.components.removeAt(n),r=!0;else{var a=o.sti_as(i.StiContainer);null!=a&&this.removeNewPageContainers(a)}}r&&(e.canGrow&&(e.canShrink=!0),i.StiContainerHelper.checkSize(e))},x.prototype.getComponentsCount2=function(t){for(var e=t.components.count,r=0,n=t.components.list;r<n.length;r++){var o=n[r],a=o.sti_as(i.StiContainer);null!=a&&(e+=this.getComponentsCount2(a))}return e},x.prototype.getComponentsCount=function(){return this.getComponentsCount2(this)},x.prototype.resizePage=function(t,e,r){if(void 0===r&&(r=!0),r&&(this.margins=new S(Math.round(this.margins.left*t,2),Math.round(this.margins.right*t,2),Math.round(this.margins.top*e,2),Math.round(this.margins.bottom*e,2))),this.columnWidth*=t,this.columnGaps*=t,null!=this.conditions)for(var n=0,o=this.conditions.list;n<o.length;n++){var a=o[n];a.font=new g(a.font.name,a.font.size*t,a.font.style)}for(var s=this.getComponents(),l=0,u=s.list;l<u.length;l++){var c=u[l];c.sti_is(i.StiLinePrimitive)&&(c.size*=t),c.left*=t,c.top*=e,c.width*=t,c.height*=e;var p=c.sti_as(i.IStiFont);null!=p&&(p.font=new g(p.font.name,p.font.size*t,p.font.style));var m=c.sti_as(i.StiDataBand);null!=m&&(m.columnWidth*=t,m.columnGaps*=t);var d=c.sti_as(i.StiPanel);if(null!=d&&(d.columnWidth*=t,d.columnGaps*=t),null!=c.conditions)for(var f=0,y=c.conditions.list;f<y.length;f++){var a=y[f];a.font=new g(a.font.name,a.font.size*t,a.font.style)}var b=c.sti_as(i.IStiBorder);null!=b&&(b.sti_is(h)?(b.border=b.border.clone(),b.border.leftSide.size*=t,b.border.rightSide.size*=t,b.border.bottomSide.size*=e,b.border.topSide.size*=e):(b.border=b.border.clone(),b.border.size*=t))}},x.prototype.toString=function(){return String.isNullOrEmpty(this.alias)?this.name:this.name+" ["+this.alias+"]"},x.prototype.construct=function(e){F.prototype.construct.call(this);try{this.newGuid(),this.border.size=2,this.parent=null,this.paperSize=C.Custom;var i=null;if(this.paperSize!=C.Custom&&(i=v.getPaperSizeFromPaperKind(this.paperSize)),null==i||this.paperSize==C.Custom)this._pageWidth=827,this._pageHeight=1169;else{var r=v.getPaperSize(this,i);this.pageWidth=r.width,this.pageHeight=r.height}this._report=e,this._segmentPerWidth=1,this._segmentPerHeight=1,this._margins=new S(39,39,39,39),null==this._report||this._report.isSerializing||this.convert(m.HundredthsOfInch,this.unit)}catch(e){t.System.StiError.showError(e,!1)}},x.eventBeginRender={},x.eventRendering={},x.eventEndRender={},x.eventColumnBeginRender={},x.eventColumnEndRender={},x.eventGetExcelSheet={},x}(i.StiPanel);i.StiPage=F}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.EventArgs,n=t.System.Collections.CollectionBase,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.Base.StiJson,s=function(t){function n(e,i){void 0===i&&(i=null);var r=t.call(this)||this;return r._canUseCacheMode=!1,r._cacheMode=!1,r.quickCachedPages=null,r.notCachedPages=null,r.report=e,r}return __extends(n,t),n.prototype.implements=function(){return t.prototype.implements.call(this).concat([e.IStiStateSaveRestore,o])},n.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new a,i=0,r=0,n=this.list;r<n.length;r++){var o=n[r];e.addPropertyJObject(i.toString(),o.saveToJsonObject(t)),i++}return e},n.prototype.loadFromJsonObject=function(t){for(var e=0,r=t.properties();e<r.length;e++){var n=r[e],o=null,a=n.value;switch(a.properties().firstOrDefault(function(t){return"Ident"==t.name}).value){case"StiPage":o=new i.StiPage;break;case"StiForm":break}this.add(o),o.loadFromJsonObject(a)}},n.prototype.loadFromXml=function(t,e){for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(null==n.attributes)continue;var o=n.attributes.getNamedItem("type");if(null!=o)switch(o.value){case"Page":var a=new i.StiPage;a.report=this.report,this.list.add(a),a.loadFromXml(n,e);break;case"Form":break}}},n.prototype.toList=function(){return this.list.toArray()},n.prototype.add=function(t){null!=this.report&&(t.displayRectangle=t.convertFromHInchesRect(t.unit,t.displayRectangle)),null!=this.report&&this.report.isDesigning&&String.isNullOrEmpty(t.name)&&(t.name=e.StiNameCreation.createName(this.report,e.StiNameCreation.generateName(t))),String.isNullOrEmpty(t.name)&&(null!=this.report&&this.report.isDesigning?t.name=e.StiNameCreation.createName(this.report,e.StiNameCreation.generateName(t)):t.name=e.StiNameCreation.createSimpleName(this.report,e.StiNameCreation.generateName(t))),this.addV2Internal(t)},n.prototype.addV2Internal=function(t){null==t.report&&(t.report=this.report),this.list.add(t),this.invokePageAdded(t,r.empty)},n.prototype.addRange=function(t){var e=this;t.forEach(function(t){e.add(t)})},n.prototype.contains=function(t){return this.list.contains(t)},n.prototype.indexOf=function(t){return this.list.indexOf(t)},n.prototype.insert=function(t,e){this.list.insert(t,e),this.invokePageAdded(e,r.empty)},n.prototype.remove=function(t,e){if(t.sti_is(i.StiPage))return void this.list.remove(t);while(e>0)this.removeAt(this.count-1),e--;while(t>0)this.removeAt(0),t--},n.prototype.getPageWithoutCache=function(t){return this.list[t]},n.prototype.getByIndex=function(t){return this.list[t]},n.prototype.setByIndex=function(t,e){this.list[t]=e},n.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t)return r}return null},n.prototype.setByName=function(t,e){t=t.toLower();for(var r=0;r<this.list.count;r++){if(this.list[r].sti_as(i.StiComponent).name.toLower()==t)return void(this.list[r]=e)}this.add(e)},n.prototype.onClear=function(){t.prototype.onClear.call(this)},n.prototype.onInsertComplete=function(e,i){t.prototype.onInsertComplete.call(this,e,i),this.invokePageAdded(i,r.empty)},n.prototype.onRemoveComplete=function(e,i){t.prototype.onRemoveComplete.call(this,e,i),this.invokePageRemoved(i,r.empty)},n.prototype.onClearComplete=function(){t.prototype.onClearComplete.call(this),this.invokePageCleared(this,r.empty)},n.prototype.getComponentByName=function(t){for(var e=0,i=this.list;e<i.length;e++){var r=i[e],n=r.components.getComponentByName(t,r);if(null!=n)return n}return null},n.setParent=function(t){for(var e=0,r=t.components.list;e<r.length;e++){var o=r[e];o.parent=t;var a=o.sti_as(i.StiContainer);null!=a&&n.setParent(a)}},n.prototype.saveState=function(t){for(var e=0,i=this.list;e<i.length;e++){i[e].saveState(t)}},n.prototype.restoreState=function(t){for(var e=0,i=this.list;e<i.length;e++){i[e].restoreState(t)}},n.prototype.clearAllStates=function(){for(var t=0,e=this.list;t<e.length;t++){e[t].clearAllStates()}},Object.defineProperty(n.prototype,"canUseCacheMode",{get:function(){return this._canUseCacheMode},set:function(t){this._canUseCacheMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"report",{get:function(){return this._report},set:function(t){this._report=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cacheMode",{get:function(){return this._cacheMode},set:function(t){this._cacheMode=t},enumerable:!0,configurable:!0}),n.prototype.isNotSavedPage=function(t){return!1},n.prototype.markPageAsNotSaved=function(t){},n.prototype.getPage=function(t){return t},n.prototype.savePage=function(t){},n.prototype.onPageAdded=function(t){},n.prototype.invokePageAdded=function(t,e){this.onPageAdded(e)},n.prototype.onPageRemoved=function(t){},n.prototype.invokePageRemoved=function(t,e){this.onPageRemoved(e)},n.prototype.onPageCleared=function(t){},n.prototype.invokePageCleared=function(t,e){this.onPageCleared(e)},n}(n);i.StiPagesCollection=s;var l=function(){function t(t,e){this.page=t,this.savePage=e}return Object.defineProperty(t.prototype,"isNotSaved",{get:function(){return this.savePage},enumerable:!0,configurable:!0}),t}()}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJson,r=t.Report.Expressions.StiExpression,n=function(){function t(){this._name=String.empty,this._expression=""}return t.prototype.saveToJsonObject=function(t){var e=new i;return e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyJObject("Expression",new r(this._expression).saveToJsonObject(t)),e},t.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var n=i[e];switch(n.name){case"Name":this._name=n.value.toString();break;case"Expression":var o=new r;o.loadFromJsonObject(n.value),this._expression=o.value;break}}},Object.defineProperty(t.prototype,"isDefault",{get:function(){return String.isNullOrEmpty(this.name)&&(null==this.expression||0==this.expression.length)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this._expression},set:function(t){this._expression=t},enumerable:!0,configurable:!0}),t}();e.StiParameter=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJson,r=t.System.Collections.CollectionBase,n=function(t){function r(){return t.call(this)||this}return __extends(r,t),r.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new i,r=0,n=0,o=this.list;n<o.length;n++){var a=o[n];e.addPropertyJObject(r.toString(),a.saveToJsonObject(t)),r++}return e},r.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i],o=new e.StiParameter;o.loadFromJsonObject(n.value),this.list.add(o)}},r.prototype.clone=function(){for(var t=new r,i=0,n=this.list;i<n.length;i++){var o=n[i],a=new e.StiParameter;a.name=o.name,a.expression=o.expression,t.add(a)}return t},r.prototype.addCore=function(t){this.list.add(t)},r.prototype.add=function(t){this.addCore(t)},r.prototype.addRange=function(t){for(var e=0,i=t.list;e<i.length;e++){var r=i[e];this.add(r)}},r.prototype.addRange2=function(t){for(var e=0,i=t;e<i.length;e++){var r=i[e];this.add(r)}},r.prototype.contains=function(t){return this.list.contains(t)},r.prototype.indexOf=function(t){return this.list.indexOf(t)},r.prototype.indexOf2=function(t){t=t.toLower();for(var e=0,i=0,r=this.list;i<r.length;i++){if(r[i].name.toLower()==t)return e;e++}return-1},r.prototype.insertRange=function(t,e){for(var i=0,r=e.list;i<r.length;i++){var n=r[i];this.insert(t,n)}},r.prototype.insert=function(t,e){this.list.insert(t,e)},r.prototype.remove=function(t){for(var e=0,i=t.list;e<i.length;e++){var r=i[e];this.remove2(r)}},r.prototype.remove2=function(t){this.list.contains(t)&&this.list.remove(t)},r.prototype.getByIndex=function(t){return this.list[t]},r.prototype.setByIndex=function(t,e){this.list[t]=e},r.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t)return r}return null},r.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].name.toLower()==t)return void(this.list[i]=e)}this.addCore(e)},r.prototype.copyTo=function(t,e){this.list.copyTo(t,e)},r}(r);e.StiParametersCollection=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(){}return e.isAllowChange=function(e){if(null==e)return!0;return(e.restrictions&t.StiRestrictions.AllowChange)>0},e.isAllowDelete2=function(e){return(e&t.StiRestrictions.AllowDelete)>0},e.isAllowDelete=function(e){if(null==e)return!0;return(e.restrictions&t.StiRestrictions.AllowDelete)>0},e.isAllowMove=function(e){if(null==e)return!0;return(e.restrictions&t.StiRestrictions.AllowMove)>0},e.isAllowSelect=function(e){if(null==e)return!0;return(e.restrictions&t.StiRestrictions.AllowSelect)>0},e.isAllowResize=function(e){if(null==e)return!0;return(e.restrictions&t.StiRestrictions.AllowResize)>0},e.isAllowChangePosition=function(t){return this.isAllowMove(t)||this.isAllowResize(t)},e}();t.StiRestrictionsHelper=e}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(){}return e.getColumnIndexInSorting=function(t,e){for(var i=0,r="",n=0,o=0,a=t;o<a.length;o++){var s=a[o];if("ASC"!=s&&"DESC"!=s&&(0==r.length?r=s:r+="."+s),("ASC"==s||"DESC"==s||n==t.length-1)&&r.length>0){if(e==r)return i;r="",i++}n++}return-1},e.getColumnSortDirection=function(e,i){var r=this.getColumnIndexInSorting(e,i);if(-1==r)return t.StiInteractionSortDirection.None;for(var n=0,o=e;n<o.length;n++){var a=o[n];if("ASC"==a||"DESC"==a){if(0==r){if("ASC"==a)return t.StiInteractionSortDirection.Ascending;if("DESC"==a)return t.StiInteractionSortDirection.Descending}r--}}return t.StiInteractionSortDirection.None},e.changeColumnSortDirection=function(t,e){var i=this.getColumnIndexInSorting(t,e);if(-1==i)return t;for(var r=0,n=0,o=t;n<o.length;n++){var a=o[n];if("ASC"==a||"DESC"==a){if(0==i)return"ASC"==a&&(t[r]="DESC"),"DESC"==a&&(t[r]="ASC"),t;i--}r++}return t},e.isColumnExistInSorting=function(t,e){return-1!=this.getColumnIndexInSorting(t,e)},e.addColumnToSorting=function(t,e,i){for(var r=e.split("."),n=Array.create(String,t.length+r.length+1),o=0;o<t.length;o++)n[o]=t[o];n[t.length]=i?"ASC":"DESC";for(var o=0;o<r.length;o++)n[t.length+o+1]=r[o];return n},e}();t.StiSortHelper=e}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiFontUtils,n=function(){function i(){}return i.measureString=function(i,n,o){var a=n;e.StiDpiHelper.needDeviceCapsScale&&(a=r.changeFontSize(n,n.size));var s=t.Base.Drawing.StiTextDrawing.measureString(null,o.text,a,i,o.textOptions,o.horAlignment,o.vertAlignment,!1),l=o.report;if(null!=l&&l.reportUnit!=e.StiReportUnitType.HundredthsOfInch){var u=l.unit,c=o.margins,p=s.width+c.left+c.right+o.border.size;u.convertToHInches(Math.round(u.convertFromHInches(p),2))<p&&(s.width+=u.convertToHInches(.01))}return s},i}();i.StiStandardTextRenderer=n}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.Asc=0]="Asc",t[t.Desc=1]="Desc",t[t.None=2]="None"}(e=t.StiSortDirection||(t.StiSortDirection={}));var i;!function(t){t[t.None=0]="None",t[t.Sum=1]="Sum",t[t.Average=2]="Average",t[t.Min=3]="Min",t[t.Max=4]="Max",t[t.Count=5]="Count",t[t.CountDistinct=6]="CountDistinct",t[t.Image=7]="Image"}(i=t.StiSummaryType||(t.StiSummaryType={}));var r;!function(t){t[t.AllValues=0]="AllValues",t[t.SkipZerosAndNulls=1]="SkipZerosAndNulls",t[t.SkipNulls=2]="SkipNulls"}(r=t.StiSummaryValues||(t.StiSummaryValues={}));var n;!function(t){t[t.ByValue=0]="ByValue",t[t.ByDisplayValue=1]="ByDisplayValue"}(n=t.StiSortType||(t.StiSortType={}));var o;!function(t){t[t.Column=0]="Column",t[t.Row=1]="Row",t[t.Cell=2]="Cell"}(o=t.StiFieldType||(t.StiFieldType={}));var a;!function(t){t[t.LeftToRight=0]="LeftToRight",t[t.UpToDown=1]="UpToDown"}(a=t.StiSummaryDirection||(t.StiSummaryDirection={}));var s;!function(t){t[t.None=0]="None",t[t.Arabic=1]="Arabic",t[t.Roman=2]="Roman",t[t.ABC=3]="ABC"}(s=t.StiEnumeratorType||(t.StiEnumeratorType={}));var l;!function(t){t[t.Dot=0]="Dot",t[t.Dash=1]="Dash",t[t.Colon=2]="Colon",t[t.RoundBrackets=3]="RoundBrackets",t[t.SquareBrackets=4]="SquareBrackets"}(l=t.StiEnumeratorSeparator||(t.StiEnumeratorSeparator={}))}(e=t.Core||(t.Core={}))}(e=t.CrossTab||(t.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.Drawing.Size,r=function(){function t(t,e,r,n,o){void 0===t&&(t=String.empty),void 0===e&&(e=0),void 0===r&&(r=NaN),void 0===n&&(n=NaN),void 0===o&&(o=null),this.size=i.empty,this.isChangeWidthForRightToLeft=!1,this.isNumeric=!1,this.isImage=!1,this.field=null,this._text=String.empty,this.hyperlinkValue=null,this.toolTipValue=null,this.tagValue=null,this.width=1,this.height=1,this.summaryIndex=-1,this.level=-1,this._drillDownParameters=null,(isNaN(r)||isNaN(n))&&(this.isNumeric=!0,r=1,n=1),this._text=t,this.value=e,this.width=r,this.height=n,this.field=o}return t.prototype.clone=function(){var e=this.memberwiseClone().sti_as(t);return e.parentCell=e,e},Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"drillDownParameters",{get:function(){return this._drillDownParameters},set:function(t){this._drillDownParameters!=t&&(this._drillDownParameters=t)},enumerable:!0,configurable:!0}),t}();e.StiCell=r}(i=e.Core||(e.Core={}))}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(e,i){this.hyperlinkValue=null,this.tagValue=null,this.toolTipValue=null,this.drillDownParameters=null,this.isTotal=!1,this.level=-1,this.value=e,this.displayValue=i,this.cols=new t.StiColumnCollection}return e}();t.StiColumn=e}(e=t.Core||(t.Core={}))}(e=t.CrossTab||(t.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.Collections.Hashtable,n=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.directionFactor=1,i.sortType=e.StiSortType.ByDisplayValue,i.items=new r,i}return __extends(i,t),i.prototype.compare=function(t,i){var r=t.sti_as(e.StiColumn),n=i.sti_as(e.StiColumn),o=r.cols.sortType,a=r.cols.directionFactor;return this.sortType==e.StiSortType.ByDisplayValue?null!=r.displayValue?r.displayValue.compareTo(n.displayValue)*a:1:null!=r.value?r.value.compareTo(n.value)*a:1},i.prototype.insert=function(t,e){this.list.insert(t,e)},i.prototype.add2=function(t,i){var r=new e.StiColumn(t,i);this.add(r)},i.prototype.add=function(t){this.list.add(t),t.isTotal||this.items.add(t.value,t)},i.prototype.sort=function(t,i){this.sortType=i,t==e.StiSortDirection.Asc?this.directionFactor=1:this.directionFactor=-1,this.list.sort(this.compare)},i.prototype.clear=function(){this.list.clear(),this.items.clear()},i.prototype.getByValue=function(t){for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.value==t)return r}return null},i.prototype.getByIndex=function(t){return this.list[t]},i}(i);e.StiColumnCollection=n}(i=e.Core||(e.Core={}))}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(i){var r=t.System.Drawing.Rectangle,n=t.Base.Drawing.StiTextRenderer,o=t.System.Drawing.Point,a=t.Report.Events.StiValueEventArgs,s=t.System.Drawing.Size,l=t.System.Collections.Hashtable,u=t.Base.StiAlignValue,c=function(){function t(){this.fields=new l,this.designTime=!1,this.maxWidth=10,this.maxHeight=10}return Object.defineProperty(t.prototype,"gridSize",{get:function(){return this.report.info.gridSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.heights.length},set:function(t){this.init(this.widths.length,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.widths.length},set:function(t){this.init(t,this.heights.length)},enumerable:!0,configurable:!0}),t.prototype.setTextOfCell=function(t,e,i){this.cells[t][e].text=i},t.prototype.align=function(t){return u.alignToMaxGrid(t,this.gridSize,!0)},t.prototype.getCellTotalWidth=function(t,e){for(var i=0,r=t;r<t+e;r++)r<this.widths.length&&(i+=this.widths[r]);return i},t.prototype.getCellTotalHeight=function(t,e){for(var i=0,r=t;r<t+e;r++)i+=this.heights[r];return i},t.prototype.doAutoSize=function(){for(var t=0;t<this.colCount;t++)for(var e=0;e<this.rowCount;e++){var i=this.cells[t][e];if(null!=i.field&&i.parentCell==i){var r=1e4;0!=i.field.maxSize.width&&(r=this.getFieldWidth(i.field,i.field.report.unit.convertToHInches(i.field.maxSize.width))),0==i.field.maxSize.height||90!=i.field.angle&&270!=i.field.angle||(r=this.getFieldHeight(i.field,i.field.report.unit.convertToHInches(i.field.maxSize.height)));var o=s.empty;o=n.measureString(r,i.field.font,i.text),o.width+=i.field.margins.left+i.field.margins.right,o.height+=i.field.margins.top+i.field.margins.bottom,o.width=this.report.unit.convertFromHInches(o.width),o.height=this.report.unit.convertFromHInches(o.height),0!=i.field.maxSize.width&&i.field.maxSize.width<o.width&&(o.width=i.field.maxSize.width),0!=i.field.minSize.width&&i.field.minSize.width>o.width&&(o.width=i.field.maxSize.width),i.size=o}else i.size=s.empty,t>0&&null==i.parentCell&&1==this.cells[t-1][e].width&&this.cells[t-1][e].width++}for(var t=0;t<this.colCount;t++){for(var a=this.report.unit.convertFromHInches(StiOptions.Engine.CrossTab.defaultWidth),e=0;e<this.rowCount;e++){var i=this.cells[t][e];if(i.width>1)continue;var l=i.size.width;null!=i.field&&(0!=i.field.minSize.width&&(l=Math.max(l,i.field.minSize.width)),0!=i.field.maxSize.width&&(l=Math.min(l,i.field.maxSize.width))),a=Math.max(a,l)}a=Math.min(a,this.maxWidth),a=this.align(a),this.widths[t]=a}for(var e=0;e<this.rowCount;e++){for(var c=this.report.unit.convertFromHInches(StiOptions.Engine.CrossTab.defaultHeight),t=0;t<this.colCount;t++){var i=this.cells[t][e];if(i.height>1)continue;var p=i.size.height;null!=i.field&&(0!=i.field.minSize.height&&(p=Math.max(p,i.field.minSize.height)),0!=i.field.maxSize.height&&(p=Math.min(p,i.field.maxSize.height))),c=Math.max(c,p)}c=Math.min(c,this.maxHeight),c=this.align(c),this.heights[e]=c}for(var t=0;t<this.colCount;t++)for(var e=0;e<this.rowCount;e++){var i=this.cells[t][e];if(null!=i.field&&i.parentCell==i&&(i.width>1||i.height>1)){var h=this.getCellTotalWidth(t,i.width),g=this.getCellTotalHeight(e,i.height);if(i.size.width>h)for(var m=i.size.width/h,d=t;d<t+i.size.width;d++)d<this.widths.length&&(this.widths[d]*=m);if(i.size.height>g)for(var m=i.size.height/g,d=e;d<e+i.size.height;d++)d<this.heights.length&&(this.heights[d]*=m)}}for(var t=0;t<this.colCount;t++)this.widths[t]=u.alignToMaxGrid(this.widths[t],this.report.info.gridSize,!0);for(var e=0;e<this.rowCount;e++)this.heights[e]=u.alignToMaxGrid(this.heights[e],this.report.info.gridSize,!0);for(var S=0,t=0;t<this.colCount;t++)this.coordX[t]=S,S+=this.widths[t];for(var f=0,e=0;e<this.rowCount;e++)this.coordY[e]=f,f+=this.heights[e]},t.prototype.getFieldWidth=function(t,e){var i=new r(0,0,e,t.height);return i=t.convertTextMargins(i,!1),i=t.convertTextBorders(i,!1),i.width},t.prototype.getFieldHeight=function(t,e){var i=new r(0,0,t.height,e);return i=t.convertTextMargins(i,!1),i=t.convertTextBorders(i,!1),i.height},t.prototype.setCell=function(t,i,r,n,s,l,u,c,p,h,g,m,d){void 0===d&&(d=-1);var S=this.cells[t][i];this.designTime||(u=u.clone(!0).sti_as(e.StiCrossField));var f=u.tagValue,y=u.toolTipValue,b=u.hyperlinkValue,C=u.textValue,v=new a(l);u.tagValue=g,u.toolTipValue=h,u.hyperlinkValue=p;var I=u.sti_as(e.StiCrossSummary);null!=I&&(this.cellExists(0,i)&&(I.crossRowValue=this.cells[0][i].value),this.cellExists(t,1)&&(I.crossColumnValue=this.cells[t][1].value)),u.invokeTextProcess(u,v),u.tagValue=f,u.toolTipValue=y,u.hyperlinkValue=b,u.sti_is(e.StiCrossSummary)&&(u.crossRowValue=null,u.crossColumnValue=null),u.textValue!=C&&(s=u.textValue);for(var A=t;A<t+r;A++)for(var w=i;w<i+n;w++)null!=s&&(this.cells[A][w].text=s.toString()),this.cells[A][w].parentCell=S,this.cells[A][w].value=l,this.cells[A][w].width=r-(A-t),this.cells[A][w].height=n-(w-i),this.cells[A][w].field=u,this.cells[A][w].isNumeric=c,this.cells[A][w].hyperlinkValue=p,this.cells[A][w].toolTipValue=h,this.cells[A][w].tagValue=g,this.cells[A][w].drillDownParameters=m,this.cells[A][w].level=d;return this.designTime&&null==this.fields.get(u)&&this.fields.set(u,new o(t,i)),this.cells[t][i]},t.prototype.cellExists=function(t,e){return this.cells.getStiLength(0)>t&&this.cells[t].getStiLength(0)>e},t.prototype.setCellField=function(t,e,i){null!=this.cells[t][e]&&(this.cells[t][e].field=i)},t.prototype.init=function(t,e){this.widths=Array.create(Number,t),this.heights=Array.create(Number,e),this.coordX=Array.create(Number,t),this.coordY=Array.create(Number,e);for(var r=0;r<t;r++)this.widths[r]=10;for(var r=0;r<e;r++)this.heights[r]=10;this.cells=Array.create(Array,t);for(var n=0;n<t;n++){this.cells[n]=Array.create(i.StiCell,e);for(var o=0;o<e;o++)this.cells[n][o]=new i.StiCell}},t}();i.StiGrid=c}(i=e.Core||(e.Core={}))}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r;!function(r){var n=t.Report.Components.TextFormats.StiGeneralFormatService,o=t.System.EventArgs,a=t.Report.Engine.StiParser.StiParser,s=t.System.Data.DBNull,l=t.System.DateTime,u=t.Report.Components.TextFormats.StiFormatService,c=t.Report.Components.StiComponentsCollection,p=t.System.Drawing.Rectangle,h=t.Report.Events.StiValueEventArgs,g=t.Report.Components.StiCrossHeaderInteraction,m=t.System.Char,d=t.Report.Events.StiGetValueEventArgs,S=t.System.Collections.Hashtable,f=function(f){function y(){var t=null!==f&&f.apply(this,arguments)||this;return t.crossTab=null,t.strNull="",t.emptyField=y.emptyField,t.oneCellSize=0,t.oneCellWidth=0,t.oneCellHeight=0,t.summaryDirection=r.StiSummaryDirection.LeftToRight,t.widthCorrection=0,t.heightCorrection=0,t.columnsCell=new S,t.rowsCell=new S,t.rows=new r.StiRowCollection,t.cols=new r.StiColumnCollection,t.summaryContainer=null,t.leftCrossTitle=null,t.rightCrossTitle=null,t.summaryCrossTitle=null,t}return __extends(y,f),y.prototype.invokeEvents2=function(t,i){var r=!0;if(null!=this.report&&(r=this.report.calculationMode==e.StiCalculationMode.Compilation),r){var n=new h;n.displayValue=i,t.invokeGetHyperlink(t,n),t.hyperlinkValue=n.value;var s=new h;s.displayValue=i,t.invokeGetToolTip(t,s),t.toolTipValue=s.value;var l=new h;l.displayValue=i,t.invokeGetTag(t,l),t.tagValue=l.value}else{if(t.hyperlink.length>0){var u=a.parseTextValue(t.hyperlink,t);t.hyperlinkValue=this.report.toString2(u)}if(t.toolTip.length>0){var u=a.parseTextValue(t.toolTip,t);t.toolTipValue=this.report.toString2(u)}if(t.tag.length>0){var u=a.parseTextValue(t.tag,t);t.tagValue=this.report.toString2(u)}}t.invokeBeforePrint(t,o.empty),t.invokeAfterPrint(t,o.empty)},y.prototype.invokeEvents=function(t){var i=!0;if(null!=this.report&&(i=this.report.calculationMode==e.StiCalculationMode.Compilation),i){var r=new h;t.invokeGetHyperlink(t,r),t.hyperlinkValue=r.value;var n=new h;t.invokeGetToolTip(t,n),t.toolTipValue=n.value;var s=new h;t.invokeGetTag(t,s),t.tagValue=s.value}else{if(t.hyperlink.length>0){var l=a.parseTextValue(t.hyperlink,t);t.hyperlinkValue=this.report.toString2(l)}if(t.toolTip.length>0){var l=a.parseTextValue(t.toolTip,t);t.toolTipValue=this.report.toString2(l)}if(t.tag.length>0){var l=a.parseTextValue(t.tag,t);t.tagValue=this.report.toString2(l)}}t.invokeBeforePrint(t,o.empty),t.invokeAfterPrint(t,o.empty)},y.prototype.addRowTotal=function(t,e,i,n){while(!0){var o=new r.StiRow("","");o.isTotal=!0,o.level=n;var a=new d,s=this.rowFields.getByIndex(n).total;if(null!=s&&s.invokeGetValue(s,a),o.displayValue=a.value,t.add(o),++e>=i)return;t=t.getByIndex(t.count-1).rows}},y.prototype.addColTotal=function(t,e,i,n){while(!0){var o=new r.StiColumn("","");o.isTotal=!0,o.level=n;var a=new d,s=this.colFields.getByIndex(n).total;if(null!=s&&s.invokeGetValue(s,a),o.displayValue=a.value,t.add(o),++e>=i)return;t=t.getByIndex(t.count-1).cols}},y.prototype.sortRows=function(t,e,i){void 0===t&&(t=this.rows),void 0===e&&(e=0),void 0===i&&(i=this.getRowsHeaderWidth());for(var n=0,o=t.list;n<o.length;n++){var a=o[n];this.sortRows(a.rows,e+1,i)}if(e<i){var s=this.rowFields.getByIndex(e).sortDirection;s!=r.StiSortDirection.None&&t.sort(s,this.rowFields.getByIndex(e).sortType)}},y.prototype.sortCols=function(t,e,i){void 0===t&&(t=this.cols),void 0===e&&(e=0),void 0===i&&(i=this.getColsHeaderHeight());for(var n=0,o=t.list;n<o.length;n++){var a=o[n];this.sortCols(a.cols,e+1,i)}if(e<i){var s=this.colFields.getByIndex(e).sortDirection;s!=r.StiSortDirection.None&&t.sort(s,this.colFields.getByIndex(e).sortType)}},y.prototype.createRowTotals=function(){var t=this.getRowsHeaderWidth();t>0&&this.createRowTotals2(this.rows,0,t)},y.prototype.createRowTotals2=function(t,e,r){if(t.count>0){for(var n=0,o=t.list;n<o.length;n++){var a=o[n];this.createRowTotals2(a.rows,e+1,r)}var s=this.rowFields.getByIndex(e).sti_as(i.StiCrossRow),l=0==e?null:this.rowFields.getByIndex(e-1).sti_as(i.StiCrossRow);this.allowTotal(s,l)&&this.addRowTotal(t,e,r,e)}},y.prototype.createColTotals=function(){var t=this.getColsHeaderHeight();t>0&&this.createColTotals2(this.cols,0,t)},y.prototype.createColTotals2=function(t,e,r){if(t.count>0){for(var n=0,o=t.list;n<o.length;n++){var a=o[n];this.createColTotals2(a.cols,e+1,r)}var s=this.colFields.getByIndex(e).sti_as(i.StiCrossColumn),l=0==e?null:this.colFields.getByIndex(e-1).sti_as(i.StiCrossColumn);this.allowTotal(s,l)&&this.addColTotal(t,e,r,e)}},y.prototype.getDataFromDataRow=function(t,e){if(null==t)return this.strNull;return null!=t.gett(e)?t.gett(e):this.strNull},y.prototype.getValueFromDataRow=function(e,i){if(null==e)return null;try{var n=e.gett(i.name),o=i.summary;if(o==r.StiSummaryType.Image)return n;if(o==r.StiSummaryType.Count)return n;if(o==r.StiSummaryType.CountDistinct)return n;if(o==r.StiSummaryType.None){if(n.sti_is(l))return n;if(i.hideZeros){var a=0;try{if(n.sti_is(String)){for(var u=n.toString(),c=!1,p=0;p<u.length;p++)if(m.isDigit(u[p])){c=!0;break}if(!c)return n;u=u.replaceAll(".",",").replaceAll(",",t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator).replaceAll(" ",""),a=u.toNumber()}else a=t.System.Convert.changeType(n,Number);if(0==a)return String.empty}catch(t){}return n}return n}if(n.sti_is(String)){var u=n.toString();if(0==u.length)return null;u=u.replaceAll(".",",").replace(",",t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);var h=u.toNumber();return isNaN(h)?0:h}if(n.sti_is(l))return n;if(null==n)return 0;if(n==s)return 0;return t.System.Convert.changeType(n,Number)}catch(t){return 0}},y.prototype.allowTotal=function(t,e){if(null==t)return!1;if(null!=e){var i=null==e.interaction?null:e.interaction.sti_as(g);if(null!=i&&i.collapsingEnabled)return!1}return t.isTotalVisible},y.prototype.getRow=function(e){for(var n=!1,o=this.rows,a=null,s=0,l=0,u=this.rowFields.list;l<u.length;l++){var c=u[l],p=this.strNull,g=this.strNull;if(c.name!=this.emptyField&&(p=this.getDataFromDataRow(e,c.name),g=this.getDataFromDataRow(e,"Display__"+c.name)),n&&(p="all",g="all"),null==(a=o.getByValue(p))){a=new r.StiRow(p,g);var m=new h;c.invokeGetHyperlink(c,m),a.hyperlinkValue=m.value;var d=new h;c.invokeGetToolTip(c,d),a.toolTipValue=d.value;var S=new h;c.invokeGetTag(c,S),a.tagValue=S.value,o.add(a)}n=c.sti_is(i.StiCrossHeader)&&t.Report.Engine.StiCrossTabBuilder.isCollapsed2(c.sti_as(i.StiCrossHeader),s,p.toString()),o=a.rows,s++}return a},y.prototype.getColumn=function(e){for(var n=!1,o=this.cols,a=null,s=0,l=0,u=this.colFields.list;l<u.length;l++){var c=u[l],p=String.empty,g=String.empty;if(c.name!=this.emptyField&&(p=this.getDataFromDataRow(e,c.name),g=this.getDataFromDataRow(e,"Display__"+c.name)),n&&(p="all",g="all"),null==(a=o.getByValue(p))){a=new r.StiColumn(p,g);var m=new h;c.invokeGetHyperlink(c,m),a.hyperlinkValue=m.value;var d=new h;c.invokeGetToolTip(c,d),a.toolTipValue=d.value;var S=new h;c.invokeGetTag(c,S),a.tagValue=S.value,o.add(a)}n=c.sti_is(i.StiCrossHeader)&&t.Report.Engine.StiCrossTabBuilder.isCollapsed2(c.sti_as(i.StiCrossHeader),s,p.toString()),o=a.cols,s++}return a},y.prototype.calculateDataTable=function(t){if(null==t||0==t.rows.count)this.calculateDataRow(null);else if(null!=this.crossTab.dataSource){for(var e=this.crossTab.dataSource.position,i=0,r=0,n=t.rows.list;r<n.length;r++){var o=n[r];this.crossTab.dataSource.position=i++,this.calculateDataRow(o)}this.crossTab.dataSource.position=e}else if(null!=this.crossTab.businessObject){for(var e=this.crossTab.businessObject.position,i=0,a=0,s=t.rows.list;a<s.length;a++){var o=s[a];this.crossTab.businessObject.position=i++,this.calculateDataRow(o)}this.crossTab.businessObject.position=e}},y.prototype.calculateDataRow=function(t){for(var e=this.getRow(t),i=this.getColumn(t),r=this.summaryContainer.getSummary(i,e),n=0,o=0,a=this.sumFields.list;o<a.length;o++){var s=a[o];if(s.name!=this.emptyField){var l=this.getValueFromDataRow(t,s);r.sums[n].add(l),this.invokeEvents(s),r.hyperlinkValues[n]=s.hyperlinkValue,r.toolTipValues[n]=s.toolTipValue,r.tagValues[n]=s.tagValue,null!=s.drillDownParameters&&(null==r.drillDownParameters&&(r.drillDownParameters=Array.create(Object,r.tagValues.length)),r.drillDownParameters[n]=s.drillDownParameters),n++}}for(var u=0,c=this.rowFields.list;u<c.length;u++){var s=c[u];s.name!=this.emptyField&&(this.invokeEvents(s),e.hyperlinkValue=s.hyperlinkValue,e.toolTipValue=s.toolTipValue,e.tagValue=s.tagValue,null!=s.drillDownParameters&&(null==e.drillDownParameters&&(e.drillDownParameters={}),e.drillDownParameters=s.drillDownParameters))}for(var p=0,h=this.colFields.list;p<h.length;p++){var s=h[p];s.name!=this.emptyField&&(this.invokeEvents(s),i.hyperlinkValue=s.hyperlinkValue,i.toolTipValue=s.toolTipValue,i.tagValue=s.tagValue,null!=s.drillDownParameters&&(null==i.drillDownParameters&&(i.drillDownParameters={}),i.drillDownParameters=s.drillDownParameters))}},y.prototype.copyRows=function(e,r,o,a,s,l){for(var u=0,c=0,h=e.list;c<h.length;c++){var g=h[c],m=this.copyRows(g.rows,r+1,o,a+1,s,l),d=this.rowFields.getByIndex(a).sti_as(i.StiCrossField);u+=m;var S=1;if(t.Report.Engine.StiCrossTabBuilder.isCollapsed2(d.sti_as(i.StiCrossHeader),a,g.value.toString())){var f=g;while(!0){if(0==f.rows.count)break;S++,f=f.rows.getByIndex(0)}}var y=new p(r,o,S,m);g.isTotal&&(y.width=this.rowsHeaderWidth+this.widthCorrection-y.x,d=d.total);var b=d.textFormat.format(g.displayValue);this.invokeEvents2(d,b);var C=null!=d&&d.sti_is(i.StiCrossRow)&&!d.textFormat.sti_is(n);if(d.mergeHeaders||this.report.isDesigning)this.setCell(y.x,y.y,y.width,y.height,b,b,d,C,g.hyperlinkValue,g.toolTipValue,g.tagValue,g.drillDownParameters,a);else for(var v=0;v<y.height;v++)this.setCell(y.x,y.y+v,y.width,1,b,b,d,C,g.hyperlinkValue,g.toolTipValue,g.tagValue,g.drillDownParameters,a);o+=y.height}return Math.max(u,this.oneCellHeight)},y.prototype.copyCols=function(e,r,o,a,s,l){for(var u=0,c=0,h=e.list;c<h.length;c++){var g=h[c],m=this.copyCols(g.cols,r,o+1,a+1,s,l),d=this.colFields.getByIndex(a).sti_as(i.StiCrossField);u+=m;var S=1;if(t.Report.Engine.StiCrossTabBuilder.isCollapsed2(d.sti_as(i.StiCrossHeader),a,g.value.toString())){var f=g;while(!0){if(0==f.cols.count)break;S++,f=f.cols.getByIndex(0)}}var y=new p(r,o,m,S);g.isTotal&&(y.height=this.colsHeaderHeight+this.heightCorrection-y.y,d=d.total);var b=d.textFormat.format(g.displayValue);this.invokeEvents2(d,b);var C=null!=d&&d.sti_is(i.StiCrossColumn)&&!d.textFormat.sti_is(n);if(d.mergeHeaders||this.report.isDesigning)this.setCell(y.x,y.y,y.width,y.height,b,b,d,C,g.hyperlinkValue,g.toolTipValue,g.tagValue,g.drillDownParameters,a);else for(var v=0;v<y.width;v++)this.setCell(y.x+v,y.y,1,y.height,b,b,d,C,g.hyperlinkValue,g.toolTipValue,g.tagValue,g.drillDownParameters,a);r+=y.width}return Math.max(u,this.oneCellWidth)},y.prototype.convertToDecimal=function(t){try{if(t.sti_is(String)&&("-"==t.toString()||""==t.toString()))return 0;return t.toNumber()}catch(t){return 0}},y.prototype.isAllowConvertToDecimal=function(t){if(null==t||s.stiEquals(t))return!1;if(t.sti_is(Number))return!0;return!1},y.prototype.getSummaryResult=function(t,e,n,o){void 0===o&&(o=!1);var a=this.sumFields.getByIndex(e).sti_as(i.StiCrossSummary),u=a.summary,c=a.summaryValues;!n||u!=r.StiSummaryType.Count&&u!=r.StiSummaryType.CountDistinct||(u=r.StiSummaryType.Sum),!o||u!=r.StiSummaryType.Count&&u!=r.StiSummaryType.CountDistinct||(u=r.StiSummaryType.Sum);var p=0,h=!0;switch(u){case r.StiSummaryType.None:case r.StiSummaryType.Image:var g=0;if(0!=e)for(var m=e-1;m>=0;m--)if(-1!=this.sumFields.getByIndex(m).indexOfSelectValue){if((g=this.sumFields.getByIndex(m).indexOfSelectValue)<t.count)break;g=0}if(null==t||0==t.count)return String.empty;return t[g];case r.StiSummaryType.Sum:for(var d=0,f=t;d<f.length;d++){var y=f[d];if(null==y||s.stiEquals(y))continue;h=!1,this.isAllowConvertToDecimal(p)&&(p+=this.convertToDecimal(y))}if(h)return this.crossTab.emptyValue;return p;case r.StiSummaryType.Max:if(null!=t&&t.count>0&&this.isDateTime(t)){for(var b=!1,C=null,v=-1,m=0,I=0,A=t;I<A.length;I++){var y=A[I];if(null==y||s.stiEquals(y))continue;if(h=!1,y.sti_is(l)){var w=y;b?C<w&&(C=w,v=m):(C=w,b=!0,v=0)}m++}if(a.indexOfSelectValue=v,h)return this.crossTab.emptyValue;return b?C:null}for(var v=-1,m=0,T=0,B=t;T<B.length;T++){var y=B[T];if(null==y||s.stiEquals(y))continue;if(h=!1,0==m)this.isAllowConvertToDecimal(y)&&(p=this.convertToDecimal(y),v=m);else if(this.isAllowConvertToDecimal(y)){var R=this.convertToDecimal(y);p<R&&(p=R,v=m)}m++}if(a.indexOfSelectValue=v,h)return this.crossTab.emptyValue;return p;case r.StiSummaryType.Min:if(null!=t&&t.count>0&&this.isDateTime(t)){for(var b=!1,P=null,v=-1,m=0,F=0,x=t;F<x.length;F++){var y=x[F];if(null==y||s.stiEquals(y))continue;if(h=!1,y.sti_is(l)){var w=y;b?P>w&&(P=w,v=m):(P=w,b=!0,v=0)}m++}if(a.indexOfSelectValue=v,h)return this.crossTab.emptyValue;return b?P:null}for(var D=0,v=-1,k=0,E=t;k<E.length;k++){var y=E[k];if(null==y||s.stiEquals(y))continue;if(h=!1,0==D)this.isAllowConvertToDecimal(y)&&(p=this.convertToDecimal(y),v=0);else if(this.isAllowConvertToDecimal(y)){var R=this.convertToDecimal(y);p>R&&(p=R,v=D)}D++}if(a.indexOfSelectValue=v,h)return this.crossTab.emptyValue;return p;case r.StiSummaryType.Count:if(null==t||0==t.count)return 0;for(var G=0,_=0,L=t;_<L.length;_++){var y=L[_];h=!1;var N=0;this.isAllowConvertToDecimal(y)&&(N=this.convertToDecimal(y)),c==r.StiSummaryValues.AllValues&&G++,c==r.StiSummaryValues.SkipNulls&&null!=y&&G++,c==r.StiSummaryValues.SkipZerosAndNulls&&null!=y&&0!=N&&G++}if(h)return this.crossTab.emptyValue;return G;case r.StiSummaryType.Average:if(null!=t&&t.count>0&&this.isDateTime(t)){for(var O=0,Z=0,M=0,H=t;M<H.length;M++){var y=H[M];if(null==y||s.stiEquals(y))continue;if(h=!1,y.sti_is(l)){var w=y;O+=w.ticks,Z++}}if(0==Z)return null;if(h)return this.crossTab.emptyValue;return new l(O/Z)}if(null==t||0==t.count)return 0;for(var W=0,V=0,Y=t;V<Y.length;V++){var y=Y[V];if(null==y||s.stiEquals(y))continue;h=!1;var N=0;this.isAllowConvertToDecimal(y)&&(N=this.convertToDecimal(y),p+=N),c==r.StiSummaryValues.AllValues&&W++,c==r.StiSummaryValues.SkipNulls&&null!=y&&W++,c==r.StiSummaryValues.SkipZerosAndNulls&&null!=y&&0!=N&&W++}if(0==W)return 0;if(h)return this.crossTab.emptyValue;return Math.round(p/W,4);case r.StiSummaryType.CountDistinct:if(null==t||0==t.count)return 0;for(var j=new S,X=0,J=!1,K=0,U=t;K<U.length;K++){var y=U[K];h=!1;var N=0,z=!1;if(this.isAllowConvertToDecimal(y)&&(N=this.convertToDecimal(y),z=!0),null==y)c==r.StiSummaryValues.AllValues&&(J||(J=!0,X++));else if(null==j.get(y)){if(0==N&&z&&c==r.StiSummaryValues.SkipZerosAndNulls)continue;j.set(y,y),X++}}if(h)return this.crossTab.emptyValue;return X}return p},y.prototype.copySummaries=function(t,e,n){for(var o=this.getRowsArray(),a=this.getColsArray(),s=Array.create(Array,this.colsHeaderHeight*this.oneCellSize),l=0;l<s.length;l++)s[l]=[];for(var u=0,c=0,p=0,h=o;p<h.length;p++){for(var g=h[p],l=0;l<s.length;l++)s[l].clear();c=0;for(var m=0,d=a;m<d.length;m++){var S=d[m];if(S.isTotal)for(var f=0;f<this.oneCellSize;f++){var y=s[S.level*this.oneCellSize+f],b=this.getSummaryResult(y,f,!0);y.clear();var C=0,v=0;this.summaryDirection==r.StiSummaryDirection.UpToDown?(C=t+c,v=e+u*this.oneCellSize+f):(C=t+c*this.oneCellSize+f,v=e+u);var I=this.summaryContainer.getSummary(S,g,!0);I.sums[f].add(b),this.invokeEvents(this.sumFields.getByIndex(f));var A=this.setCellValue(C,v,b,f,S.level,r.StiFieldType.Column,this.sumFields.getByIndex(f).hyperlinkValue,this.sumFields.getByIndex(f).toolTipValue,this.sumFields.getByIndex(f).tagValue,this.sumFields.getByIndex(f).drillDownParameters);A.summaryIndex=f,A.isCrossSummary=!0,this.sumFields.getByIndex(f).summary!=r.StiSummaryType.Image&&this.sumFields.getByIndex(f).summary!=r.StiSummaryType.None||(A.value=null,A.text=String.empty);var w=0;A.isNumeric&&null!=A.value&&(w=A.value.toNumber());for(var T=!1,B=C-1;B>=0;B--){var R=this.cells[B][v];if(null!=R.field&&!R.field.sti_is(i.StiCrossSummary))break;var P=0;R.isNumeric&&(P=R.value.toNumber()),P=0!=w?Math.round(P/w*100,2):0,R.isNumeric&&null!=R.field&&R.field.sti_is(i.StiCrossSummary)&&R.field.showPercents&&(R.value=P,R.text=String.stiFormat("{0}%",P),T=!0)}T&&null!=A.field&&A.field.sti_is(i.StiCrossTotal)&&(A.text="100%"),this.sumFields.getByIndex(f).useStyleOfSummaryInColumnTotal&&this.setCellField(C,v,this.sumFields.getByIndex(f).clone().sti_as(i.StiCrossField))}else for(var I=this.summaryContainer.getSummary(S,g,!1),F=this.copySummary(I,t,e,c,u,!0,!1,n),l=0;l<this.colsHeaderHeight;l++)for(var f=0;f<this.oneCellSize;f++){var y=s[l*this.oneCellSize+f];y.add(F[f])}c++}u++}s=Array.create(Array,this.rowsHeaderWidth*this.oneCellSize);for(var l=0;l<s.length;l++)s[l]=[];c=0;for(var x=0,D=a;x<D.length;x++){for(var S=D[x],l=0;l<this.rowsHeaderWidth*this.oneCellSize;l++)s[l].clear();u=0;for(var k=0,E=o;k<E.length;k++){var g=E[k];if(g.isTotal)for(var f=0;f<this.oneCellSize;f++){var y=s[g.level*this.oneCellSize+f],G=c==a.count-1&&u==o.count-1,b=this.getSummaryResult(y,f,!0,G);y.clear();var C=0,v=0;this.summaryDirection==r.StiSummaryDirection.UpToDown?(C=t+c,v=e+u*this.oneCellSize+f):(C=t+c*this.oneCellSize+f,v=e+u),this.invokeEvents(this.sumFields.getByIndex(f));var A=this.setCellValue(C,v,b,f,g.level,r.StiFieldType.Row,this.sumFields.getByIndex(f).hyperlinkValue,this.sumFields.getByIndex(f).toolTipValue,this.sumFields.getByIndex(f).tagValue,this.sumFields.getByIndex(f).drillDownParameters);A.summaryIndex=f,this.sumFields.getByIndex(f).summary!=r.StiSummaryType.Image&&this.sumFields.getByIndex(f).summary!=r.StiSummaryType.None||(A.value=null,A.text=String.empty),this.sumFields.getByIndex(f).useStyleOfSummaryInRowTotal&&this.setCellField(C,v,this.sumFields.getByIndex(f).clone().sti_as(i.StiCrossField))}else for(var I=this.summaryContainer.getSummary(S,g,!1),F=this.copySummary(I,t,e,c,u,!1,a.indexOf(S)==a.count-1,n),l=0;l<this.rowsHeaderWidth;l++)for(var f=0;f<this.oneCellSize;f++){var y=s[l*this.oneCellSize+f];y.add(F[f])}u++}c++}},y.prototype.copySummary=function(t,e,i,n,o,a,s,l){for(var u=Array.create(Object,this.oneCellSize),c=0;c<this.oneCellSize;c++){var p=l;null!=t&&(p=this.getSummary(t,c,s),u[c]=p);var h=0,g=0;this.summaryDirection==r.StiSummaryDirection.UpToDown?(h=e+n,g=i+o*this.oneCellSize+c):(h=e+n*this.oneCellSize+c,g=i+o);var m=null!=t?t.hyperlinkValues[c]:null,d=null!=t?t.toolTipValues[c]:null,S=null!=t?t.tagValues[c]:null,f=null!=t&&null!=t.drillDownParameters?t.drillDownParameters[c]:null;if(a){this.setCellValue(h,g,p,c,0,r.StiFieldType.Cell,m,d,S,f).summaryIndex=c}}return u},y.prototype.getSummary=function(t,e,i){for(var r=[],n=0,o=t.sums[e];n<o.length;n++){var a=o[n];r.add(a)}return this.getSummaryResult(r,e,i)},y.prototype.isDateTime=function(t){for(var e=0,i=t;e<i.length;e++){if(i[e].sti_is(l))return!0}return!1},y.prototype.setCellValue=function(t,e,i,n,o,a,s,u,c,p){switch(a){case r.StiFieldType.Column:var h=this.getColumnTotalCell(o,n),g=void 0;return g=null==i?String.empty:i.sti_is(Number)?0==i.toNumber()&&h.hideZeros?String.empty:h.textFormat.format(i.toNumber()):i.sti_is(l)?null==i&&h.hideZeros?String.empty:h.textFormat.format(i):i.toString(),this.setCell(t,e,1,1,g,i,h,null!=i&&i.sti_is(Number),s,u,c,p);case r.StiFieldType.Row:var m=this.getRowTotalCell(o,n),d=void 0;return d=null==i?String.empty:i.sti_is(Number)?0==i.toNumber()&&m.hideZeros?String.empty:m.textFormat.format(i.toNumber()):i.sti_is(l)?null==i&&m.hideZeros?String.empty:m.textFormat.format(i):i.toString(),this.setCell(t,e,1,1,d,i,m,null!=i&&i.sti_is(Number),s,u,c,p);case r.StiFieldType.Cell:var S=this.sumFields.getByIndex(n),f=void 0;return f=null==i?String.empty:i.sti_is(Number)?0==i.toNumber()&&S.hideZeros?this.crossTab.emptyValue:S.textFormat.format(i):i.sti_is(l)?null==i&&S.hideZeros?this.crossTab.emptyValue:S.textFormat.format(i):i.toString(),this.setCell(t,e,1,1,f,i,S,null!=i&&i.sti_is(Number),s,u,c,p)}return null},y.prototype.getColumnTotalCell=function(t,e){var r=this.columnsCell.get(t*this.oneCellSize+e);if(null==r){r=this.colFields.getByIndex(t).sti_as(i.StiCrossHeader).total.clone(!0).sti_as(i.StiCrossField),this.columnsCell.set(t*this.oneCellSize+e,r),r.horAlignment=this.sumFields.getByIndex(e).horAlignment,r.vertAlignment=this.sumFields.getByIndex(e).vertAlignment,r.textFormat=this.sumFields.getByIndex(e).textFormat.clone().sti_as(u)}return r},y.prototype.getRowTotalCell=function(t,e){var r=this.rowsCell.get(t*this.oneCellSize+e);return null==r&&(r=this.rowFields.getByIndex(t).total.clone(!0).sti_as(i.StiCrossField),this.rowsCell.set(t*this.oneCellSize+e,r),r.horAlignment=this.sumFields.getByIndex(e).horAlignment,r.vertAlignment=this.sumFields.getByIndex(e).vertAlignment,r.textFormat=this.sumFields.getByIndex(e).textFormat.clone().sti_as(u)),r},y.prototype.getRowsArray=function(){var t=[];return this.getRowsArray2(this.rows,t),t},y.prototype.getRowsArray2=function(t,e){for(var i=0,r=t.list;i<r.length;i++){var n=r[i];0==n.rows.count&&e.add(n),this.getRowsArray2(n.rows,e)}},y.prototype.getColsArray=function(){var t=[];return this.getColsArray2(this.cols,t),t},y.prototype.getColsArray2=function(t,e){for(var i=0,r=t.list;i<r.length;i++){var n=r[i];0==n.cols.count&&e.add(n),this.getColsArray2(n.cols,e)}},y.prototype.getRowsHeaderWidth=function(){if(this.isRowsEmpty)return 0;return this.getRowsHeaderWidth2(this.rows)},y.prototype.getRowsHeaderWidth2=function(t){var e=0;while(t.count>0)e++,t=t.getByIndex(0).rows;return e},y.prototype.getColsHeaderHeight=function(){if(this.isColsEmpty)return 0;return this.getColsHeaderHeight2(this.cols)},y.prototype.getColsHeaderHeight2=function(t){var e=0;while(t.count>0)e++,t=t.getByIndex(0).cols;return e},y.prototype.getRowsHeight=function(t,e,i){void 0===t&&(t=this.rows),void 0===e&&(e=this.getRowsHeaderWidth()),void 0===i&&(i=0);for(var r=0,n=0,o=t.list;n<o.length;n++){var a=o[n];r+=this.getRowsHeight(a.rows,e,i+1),i==e-1&&(r+=this.oneCellHeight)}return r},y.prototype.getColsWidth=function(t,e,i){void 0===t&&(t=this.cols),void 0===e&&(e=this.getColsHeaderHeight()),void 0===i&&(i=0);for(var r=0,n=0,o=t.list;n<o.length;n++){var a=o[n];r+=this.getColsWidth(a.cols,e,i+1),i==e-1&&(r+=this.oneCellWidth)}return r},y.prototype.enumerateRows=function(t,n){for(var o=this.rowFields.getByIndex(n).sti_as(i.StiCrossRow),a=o.enumeratorSeparator,s=0,l=0,u=t.list;l<u.length;l++){var c=u[l];if(null!=c.rows&&c.rows.count>0&&this.enumerateRows(c.rows,n+1),o.enumeratorType!=r.StiEnumeratorType.None){s++;var p=null;p=o.enumeratorType==r.StiEnumeratorType.Arabic?s.toString():o.enumeratorType==r.StiEnumeratorType.ABC?e.Func.Convert.toABC(s):e.Func.Convert.toRoman(s),c.displayValue=String.stiFormat("{0}{1}{2}",p,a,c.displayValue)}}},y.prototype.enumerateColumns=function(t,n){for(var o=this.colFields.getByIndex(n).sti_as(i.StiCrossColumn),a=o.enumeratorSeparator,s=0,l=0,u=t.list;l<u.length;l++){var c=u[l];if(null!=c.cols&&c.cols.count>0&&this.enumerateColumns(c.cols,n+1),o.enumeratorType!=r.StiEnumeratorType.None){s++;var p=null;p=o.enumeratorType==r.StiEnumeratorType.Arabic?s.toString():o.enumeratorType==r.StiEnumeratorType.ABC?e.Func.Convert.toABC(s):e.Func.Convert.toRoman(s),c.displayValue=String.stiFormat("{0}{1}{2}",p,a,c.displayValue)}}},y.prototype.checkSeparators=function(){for(var t=0,e=new S,i=new S,n=!1,o=0;o<this.colCount;o++){for(var a=1,s=0;s<this.rowCount;s++){var l=this.cells[o][s];if(l.parentCell==l&&l.text.contains("#|#")&&1==l.width){for(var u=1,c=0;c<l.text.length;c++)c<l.text.length-3&&"#"==l.text[c]&&"|"==l.text[c+1]&&"#"==l.text[c+2]&&(e.set(l,l),n=!0,u++);a=Math.max(a,u)}}i[o]=a,t+=a}if(t>this.colCount||n){var p=this.colCount,h=this.cells;this.init(t,this.rowCount);for(var g=0,o=0;o<p;o++){for(var m=Math.trunc(i.get(o)),a=1,s=0;s<this.rowCount;s++){var d=h[o][s];if(null!=e.get(d)&&d.parentCell==d){var f=d.text.split("#|#");a=Math.max(a,f.length+1),d.text=f[0],this.cells[g][s]=d;for(var c=1;c<f.length;c++){var y=d.clone().sti_as(r.StiCell);this.cells[g+c][s]=y,y.text=f[c]}}else d.parentCell.width+=m-1,this.cells[g][s]=d}g+=m}}},y.prototype.create=function(t,e,n,o){this.summaryDirection=n,this.report=e,this.oneCellSize=this.sumFields.count,this.oneCellWidth=this.summaryDirection==r.StiSummaryDirection.LeftToRight?this.oneCellSize:1,this.oneCellHeight=this.summaryDirection==r.StiSummaryDirection.UpToDown?this.oneCellSize:1,this.summaryContainer=new r.StiSummaryContainer(this.oneCellSize),this.rows.clear(),this.cols.clear(),this.calculateDataTable(t),this.sortRows(),this.sortCols(),this.rows.count>0&&this.enumerateRows(this.rows,0),this.cols.count>0&&this.enumerateColumns(this.cols,0),this.createRowTotals(),this.createColTotals(),this.colsHeaderHeight=this.getColsHeaderHeight(),this.rowsHeaderWidth=this.getRowsHeaderWidth(),this.isSummarySubHeadersPresent&&(n==r.StiSummaryDirection.LeftToRight?this.colsHeaderHeight++:this.rowsHeaderWidth++),this.colsWidth=this.getColsWidth(),this.rowsHeight=this.getRowsHeight();var a=this.colsWidth+this.rowsHeaderWidth,s=this.rowsHeight+this.colsHeaderHeight;if(this.isRowsEmpty&&(s+=this.oneCellHeight),this.isColsEmpty&&(a+=this.oneCellWidth),this.widthCorrection=0,this.heightCorrection=0,this.isColsEmpty&&this.isSummaryPresent&&(this.heightCorrection=1),this.isRowsEmpty&&this.isSummaryPresent&&(this.widthCorrection=1),this.isTopLinePresent&&this.heightCorrection++,f.prototype.init.call(this,a+this.widthCorrection,s+this.heightCorrection),this.isRowsEmpty&&this.isColsEmpty)return;for(var l=0,u=0,c=this.colFields.list;u<c.length;u++){for(var p=c[u],h=null,g=0,m=this.colTitleFields.list;g<m.length;g++){var S=m[g];if(S.typeOfComponent=="Col:"+p.name){h=S;break}}if(null!=h&&h.isEnabled){var y=1,b=Math.max(this.rowsHeaderWidth,1);this.invokeEvents(h),this.setCell(0,l++,b,y,h.getTextInternal(),o,h,!1,h.hyperlinkValue,h.toolTipValue,h.tagValue,h.drillDownParameters)}}var C=this.isRowTitlePresent;l=0;for(var v=0,I=this.rowFields.list;v<I.length;v++){for(var A=I[v],h=null,w=0,T=this.rowTitleFields.list;w<T.length;w++){var S=T[w];if(S.typeOfComponent=="Row:"+A.name){h=S;break}}if(null!=h&&C){var b=1,y=Math.max(this.colsHeaderHeight,1),B=this.isTopLinePresent?1:0;this.invokeEvents(h),n==r.StiSummaryDirection.LeftToRight&&this.isColsEmpty&&this.sumFields.count>1&&y++,this.setCell(l++,B,b,y,h.getTextInternal(),o,h,!1,h.hyperlinkValue,h.toolTipValue,h.tagValue,h.drillDownParameters)}}if(this.isSummarySubHeadersPresent)if(n==r.StiSummaryDirection.LeftToRight){var R=this.colsHeaderHeight+this.heightCorrection-1;l=this.rowsHeaderWidth+this.widthCorrection;for(var P=0,F=0;F<this.sumFields.count;F++){var x=this.sumHeaderFields.getByIndex(P).sti_as(i.StiCrossSummaryHeader);if(!this.designTime){var D=new d;x.invokeGetValue(x,D),x.setTextInternal(D.value)}this.invokeEvents(x),this.setCell(l,R,1,1,x.getTextInternal(),o,x,!1,x.hyperlinkValue,x.toolTipValue,x.tagValue,x.drillDownParameters),l++,P++,P==this.sumHeaderFields.count&&(P=0)}}else{var k=this.rowsHeaderWidth+this.widthCorrection-1;l=this.colsHeaderHeight+this.heightCorrection;var P=0,E=0;E=0==this.rowsHeight?this.sumHeaderFields.count:this.rowsHeight;for(var F=0;F<E;F++){var x=this.sumHeaderFields.getByIndex(P).sti_as(i.StiCrossSummaryHeader);if(!this.designTime){var D=new d;x.invokeGetValue(x,D),x.setTextInternal(D.value)}this.invokeEvents(x),this.setCell(k,l,1,1,x.getTextInternal(),o,x,!1,x.hyperlinkValue,x.toolTipValue,x.tagValue,x.drillDownParameters),l++,P++,P==this.sumHeaderFields.count&&(P=0)}}if(this.isTopLinePresent&&(this.isLeftTopLinePresent&&(this.invokeEvents(this.leftCrossTitle),this.setCell(0,0,this.rowsHeaderWidth,1,this.leftCrossTitle.getTextInternal(),o,this.leftCrossTitle,!1,this.leftCrossTitle.hyperlinkValue,this.leftCrossTitle.toolTipValue,this.leftCrossTitle.tagValue,this.leftCrossTitle.drillDownParameters)),this.isRightTopLinePresent&&(this.invokeEvents(this.rightCrossTitle),this.setCell(this.rowsHeaderWidth,0,a-this.rowsHeaderWidth,1,this.rightCrossTitle.getTextInternal(),o,this.rightCrossTitle,!1,this.rightCrossTitle.hyperlinkValue,this.rightCrossTitle.toolTipValue,this.rightCrossTitle.tagValue,this.rightCrossTitle.drillDownParameters))),null!=this.summaryCrossTitle&&(this.isColsEmpty&&(this.invokeEvents(this.summaryCrossTitle),this.setCell(this.rowsHeaderWidth,0,this.oneCellWidth,1,this.summaryCrossTitle.getTextInternal(),o,this.summaryCrossTitle,!1,this.summaryCrossTitle.hyperlinkValue,this.summaryCrossTitle.toolTipValue,this.summaryCrossTitle.tagValue,this.summaryCrossTitle.drillDownParameters)),this.isRowsEmpty)){this.invokeEvents(this.summaryCrossTitle);var G=n==r.StiSummaryDirection.LeftToRight?this.colsHeaderHeight-1:this.colsHeaderHeight,_=n==r.StiSummaryDirection.LeftToRight?this.oneCellHeight+1:this.oneCellHeight;this.setCell(0,G,1,_,this.summaryCrossTitle.getTextInternal(),o,this.summaryCrossTitle,!1,this.summaryCrossTitle.hyperlinkValue,this.summaryCrossTitle.toolTipValue,this.summaryCrossTitle.tagValue,this.summaryCrossTitle.drillDownParameters)}this.isRowsEmpty||this.copyRows(this.rows,0,this.colsHeaderHeight+this.heightCorrection,0,o,this.colsWidth),this.isColsEmpty||this.copyCols(this.cols,this.rowsHeaderWidth+this.widthCorrection,this.heightCorrection,0,o,this.rowsHeight),this.copySummaries(this.rowsHeaderWidth+this.widthCorrection,this.colsHeaderHeight+this.heightCorrection,o),this.designTime||this.checkSeparators(),this.report.cells.clear();for(var L=0;L<this.colCount;L++)for(var N=0;N<this.rowCount;N++){var O=this.cells[L][N];O.isNumeric&&null!=O.value&&O.value.sti_is(Number)?this.report.cells.setCell(L,N,O.value.toNumber()):this.report.cells.setCell(L,N,0)}for(var L=0;L<this.colCount;L++)for(var N=0;N<this.rowCount;N++){var O=this.cells[L][N];if(O.parentCell==O){O.field.sti_is(i.StiCrossSummary)&&O.field.summary==r.StiSummaryType.Image&&(O.isImage=!0);var Z=new i.StiProcessCellEventArgs;Z.row=N,Z.column=L,Z.cell=O;var M=0;if(null!=O.value&&O.value.sti_is(Number)&&(M=O.value.toNumber()),Z.text=O.text,Z.value=M,e.cells.distX=L,e.cells.distY=N,O.field.sti_is(i.StiCrossTotal)&&(O.field=O.field),null!=O.field&&O.field.invokeProcessCell(Z),Z.value!=M?(this.report.cells.setCell(L,N,Z.value),O.value=Z.value,O.text=O.field.textFormat.format(Z.value)):O.text=Z.text,O.isNumeric&&null!=O.field){if(O.field.hideZeros&&(null!=O.value?O.value.sti_is(Number):!1&&0==O.value.toNumber()))continue;null!=O.value&&(O.field.excelDataValue=O.value.toString())}}}},y.prototype.clear=function(){var t=!1;if(null!=this.cells&&this.cells.length>1&&null!=this.cells[0]){this.cells.length*this.cells[0].length>5e4&&(t=!0)}return this.cells=null,t},y.prototype.getCorrectedColumnsHeaderHeight=function(){return this.colsHeaderHeight+this.heightCorrection},Object.defineProperty(y.prototype,"isSummaryPresent",{get:function(){if(this.report.isDesigning)return!0;return null!=this.summaryCrossTitle&&this.summaryCrossTitle.isEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isRowTitlePresent",{get:function(){if(this.report.isDesigning)return!0;for(var t=0,e=this.rowFields.list;t<e.length;t++){if(!e[t].isEnabled)return!1}return!0},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isTopLinePresent",{get:function(){if(this.isColsEmpty)return!1;if(null==this.leftCrossTitle&&null==this.rightCrossTitle)return!1;if(this.report.isDesigning)return!0;if(this.leftCrossTitle.isEnabled&&this.rightCrossTitle.isEnabled)return!0;return!1},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isShowSummarySubHeaders",{get:function(){if(this.designTime)return!0;for(var t=0,e=this.sumHeaderFields.list;t<e.length;t++){if(e[t].enabled)return!0}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isSummarySubHeadersPresent",{get:function(){return this.sumFields.count>1&&this.isShowSummarySubHeaders&&this.sumHeaderFields.count>1},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isLeftTopLinePresent",{get:function(){if(!this.isTopLinePresent)return!1;if(null==this.leftCrossTitle)return!1;if(this.report.isDesigning)return!0;return this.leftCrossTitle.isEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isRightTopLinePresent",{get:function(){if(!this.isTopLinePresent)return!1;if(null==this.rightCrossTitle)return!1;if(this.report.isDesigning)return!0;return this.rightCrossTitle.isEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isRowsEmpty",{get:function(){return 1==this.rowFields.count&&this.rowFields.getByIndex(0).name==this.emptyField},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isColsEmpty",{get:function(){return 1==this.colFields.count&&this.colFields.getByIndex(0).name==this.emptyField},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"rowFields",{get:function(){return this._rowFields},set:function(t){if(null==t||0==t.count){null==t?t=new c:t.clear();var e=new i.StiCrossRow;e.name=this.emptyField,t.add(e)}this._rowFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"colFields",{get:function(){return this._colFields},set:function(t){if(null==t||0==t.count){null==t?t=new c:t.clear();var e=new i.StiCrossColumn;e.name=this.emptyField,t.add(e)}this._colFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"sumFields",{get:function(){return this._sumFields},set:function(t){if(null==t||0==t.count){null==t?t=new c:t.clear();var e=new i.StiCrossSummary;e.name=this.emptyField,t.add(e)}this._sumFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"sumHeaderFields",{get:function(){return this._sumHeaderFields},set:function(t){if(null==t||0==t.count){null==t?t=new c:t.clear();var e=new i.StiCrossSummaryHeader;e.name=this.emptyField,t.add(e)}this._sumHeaderFields=t},enumerable:!0,configurable:!0}),y.emptyField="EMPTY_FIELD",y}(r.StiGrid);r.StiCross=f}(r=i.Core||(i.Core={}))}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(e,i){this.hyperlinkValue=null,this.tagValue=null,this.toolTipValue=null,this.drillDownParameters=null,this.isTotal=!1,this.level=-1,this.value=e,this.displayValue=i,this.rows=new t.StiRowCollection}return e}();t.StiRow=e}(e=t.Core||(t.Core={}))}(e=t.CrossTab||(t.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.Collections.Hashtable,n=t.System.Data.DBNull,o=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.directionFactor=1,i.sortType=e.StiSortType.ByDisplayValue,i.items=new r,i}return __extends(i,t),i.prototype.compare=function(t,i){var r=t.sti_as(e.StiRow),o=i.sti_as(e.StiRow),a=r.rows.sortType,s=r.rows.directionFactor;if(a==e.StiSortType.ByDisplayValue){if(null!=r.displayValue&&r.displayValue!=n.value){if(o.displayValue==n.value)return-1;return r.displayValue.compareTo(o.displayValue)*s}return 1}if(null!=r.value&&r.value!=n.value){if(o.value==n.value)return-1;return r.value.compareTo(o.value)*s}return 1},i.prototype.insert=function(t,e){this.list.insert(t,e)},i.prototype.add2=function(t,i){var r=new e.StiRow(t,i);this.add(r)},i.prototype.add=function(t){this.list.add(t),t.isTotal||this.items.add(t.value,t)},i.prototype.clear=function(){this.list.clear(),this.items.clear()},i.prototype.sort=function(t,i){this.sortType=i,t==e.StiSortDirection.Asc?this.directionFactor=1:this.directionFactor=-1,this.list.sort(this.compare)},i.prototype.getByValue=function(t){for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.value==t)return r}return null},i.prototype.getByIndex=function(t){return this.list[t]},i}(i);e.StiRowCollection=o}(i=e.Core||(e.Core={}))}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t){this.sums=null,this.hyperlinkValues=null,this.tagValues=null,this.toolTipValues=null,this.drillDownParameters=null,this.sums=Array.create(Array,t),this.hyperlinkValues=Array.create(Object,t),this.tagValues=Array.create(Object,t),this.toolTipValues=Array.create(Object,t);for(var e=0;e<t;e++)this.sums[e]=[]}return t}();t.StiSummary=e}(e=t.Core||(t.Core={}))}(e=t.CrossTab||(t.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(t){this.level=0,this.dataCol=new i,this.level=t}return t.prototype.getSummary=function(t,r,n){void 0===n&&(n=!0);var o=this.dataCol.get(t);if(null==o){if(!n)return null;this.dataCol.set(t,new i),o=this.dataCol.get(t)}var a=o.get(r);if(null==a){if(!n)return null;a=new e.StiSummary(this.level),o.set(r,a)}return a},t}();e.StiSummaryContainer=r}(i=e.Core||(e.Core={}))}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Events.StiEvent,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetCrossValue"},e}(i);e.StiGetCrossValueEvent=r}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventArgs,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(i);e.StiGetCrossValueEventArgs=r}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Events.StiEvent,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetDisplayCrossValue"},e}(i);e.StiGetDisplayCrossValueEvent=r}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Events.StiEvent,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"ProcessCell"},e}(i);e.StiProcessCellEvent=r}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventArgs,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(i);e.StiProcessCellEventArgs=r}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.None=3]="None",t[t.Width=4]="Width"}(e=t.StiCrossHorAlignment||(t.StiCrossHorAlignment={}))}(e=t.CrossTab||(t.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiRestrictionsHelper,r=t.Report.Components.StiText,n=t.Report.Components.StiRestrictions,o=t.Base.Localization.StiLocalization,a=t.Base.Drawing.StiBorderSides,s=t.System.Drawing.Rectangle,l=t.Report.Components.IStiBorder,u=t.Report.Components.IStiBrush,c=t.Report.Components.IStiFont,p=t.Report.Components.IStiTextBrush,h=t.Report.Components.IStiTextHorAlignment,g=t.Report.Components.IStiVertAlignment,m=t.Base.Drawing.StiTextHorAlignment,d=t.Base.Drawing.StiVertAlignment,S=t.Report.Components.IStiCrossTabField,f=function(f){function y(){var i=f.call(this,new s(0,0,1,1))||this;return i.processCellEvent=new e.StiProcessCellEvent,i._mergeHeaders=!0,i.newGuid(),i.border.side=a.All,i.vertAlignment=d.Center,i.horAlignment=m.Center,i.restrictions=t.Report.Components.StiRestrictions.None|t.Report.Components.StiRestrictions.AllowMove|t.Report.Components.StiRestrictions.AllowResize|t.Report.Components.StiRestrictions.AllowSelect|t.Report.Components.StiRestrictions.AllowChange,i}return __extends(y,f),y.prototype.implements=function(){return y.ImplementsStiCrossField||(y.ImplementsStiCrossField=f.prototype.implements.call(this).concat([h,g,l,c,u,p,S])),y.ImplementsStiCrossField},y.prototype.saveToJsonObject=function(t){var e=f.prototype.saveToJsonObject.call(this,t);return e.addPropertyEnum("HorAlignment",m,this.horAlignment,m.Center),e.addPropertyEnum("VertAlignment",d,this.vertAlignment,d.Center),e.removeProperty("ExcelValue"),e.removeProperty("PrintOn"),e.removeProperty("ExportAsImage"),e.removeProperty("ShrinkFontToFit"),e.removeProperty("ShrinkFontToFitMinimumSize"),e.removeProperty("Locked"),e.removeProperty("Linked"),e.removeProperty("CanBreak"),e.removeProperty("WYSIWYG"),e.removeProperty("Editable"),e.removeProperty("GlobalizedName"),e.removeProperty("LinesOfUnderline"),e.removeProperty("ProcessingDuplicates"),e.removeProperty("OnlyText"),e.removeProperty("ProcessAtEnd"),e.removeProperty("ProcessAt"),e.removeProperty("MaxNumberOfLines"),e.removeProperty("DockStyle"),e.removeProperty("GrowToHeight"),e.removeProperty("ShiftMode"),e.removeProperty("Left"),e.removeProperty("Top"),e.removeProperty("Width"),e.removeProperty("Height"),e.removeProperty("CanShrink"),e.removeProperty("CanGrow"),e.removeProperty("AutoWidth"),e.removeProperty("Printable"),e.removeProperty("Bookmark"),e.removeProperty("GetBookmarkEvent"),e.addPropertyJObject("ProcessCellEvent",this.processCellEvent.saveToJsonObject(t)),e.addPropertyBool("MergeHeaders",this.mergeHeaders,!0),e},y.prototype.loadFromJsonObject=function(t){f.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"ProcessCellEvent":var o=new e.StiProcessCellEvent;o.loadFromJsonObject(n.value),this.processCellEvent=o;break;case"MergeHeaders":this._mergeHeaders=n.value.toBoolean();break}}},y.prototype.loadFromXml=function(t){f.prototype.loadFromXml.call(this,t,!1);var e=t.getAttribute("Ref");String.isNullOrEmpty(e)||(this.report.jsonLoaderHelper.refNames[e.toNumber()]=t.nodeName);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"ProcessCellEvent":break;case"MergeHeaders":this._mergeHeaders=r.textContent.toBoolean();break}}},Object.defineProperty(y.prototype,"defaultHorAlignment",{get:function(){return m.Center},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"locked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"linked",{get:function(){return this.isDesigning&&!this.report.isPageDesigner},set:function(t){},enumerable:!0,configurable:!0}),y.prototype.onProcessCell=function(t){},y.prototype.invokeProcessCell=function(t){this.onProcessCell(t)},Object.defineProperty(y.prototype,"helpUrl",{get:function(){return null},enumerable:!0,configurable:!0}),y.prototype.toString=function(){return this.name},Object.defineProperty(y.prototype,"localizedCategory",{get:function(){return o.get("Report","CrossBands")},enumerable:!0,configurable:!0}),y.prototype.getRestrictions=function(){return null!=this.report&&this.report.isPageDesigner?f.prototype.getRestrictions.call(this)^n.AllowDelete:f.prototype.getRestrictions.call(this)},y.prototype.setRestrictions=function(t){i.isAllowDelete2(t)&&(t^=n.AllowDelete),f.prototype.setRestrictions.call(this,t)},y.prototype.getTextBoxFromField=function(){var t=new r;return t.border=this.border.clone(),t.brush=this.brush.clone(),t.font=this.font.clone(),t.textFormat=this.textFormat.clone(),t.textBrush=this.textBrush.clone(),t.textOptions=this.textOptions.clone(),t.horAlignment=this.horAlignment,t.vertAlignment=this.vertAlignment,t},Object.defineProperty(y.prototype,"cellText",{get:function(){return this.alias},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"mergeHeaders",{get:function(){return this._mergeHeaders},set:function(t){this._mergeHeaders=t},enumerable:!0,configurable:!0}),y}(r);e.StiCrossField=f}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Expressions.StiExpression,n=t.Report.Engine.StiParser.StiParser,o=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.getCrossValueEvent=new i.StiGetCrossValueEvent,e.val="",e}return __extends(o,t),o.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyJObject("GetCrossValueEvent",this.getCrossValueEvent.saveToJsonObject(e)),i.addPropertyJObject("Value",new r(this.value).saveToJsonObject(e)),i},o.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var n=0,o=e.properties();n<o.length;n++){var a=o[n];switch(a.name){case"GetCrossValueEvent":var s=new i.StiGetCrossValueEvent;s.loadFromJsonObject(a.value),this.getCrossValueEvent=s;break;case"Value":var l=new r;l.loadFromJsonObject(a.value),this.val=l.value;break}}},o.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);var i=e.getAttribute("Ref");String.isNullOrEmpty(i)||(this.report.jsonLoaderHelper.refNames[i.toNumber()]=e.nodeName);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"GetCrossValueEvent":break;case"Value":var a=new r;a.loadFromXml(o),this.val=a.value;break}}},o.prototype.paint=function(t){this.parent.sti_is(i.StiCrossTab)&&this.setTextInternal(this.cellText)},o.prototype.onGetCrossValue=function(t){},o.prototype.invokeGetCrossValue=function(t){if(this.report.calculationMode==e.StiCalculationMode.Compilation)this.onGetCrossValue(t);else{this.onGetCrossValue(t);var i=n.parseTextValue(this.value,this);null!=i&&(t.value=i)}},Object.defineProperty(o.prototype,"value",{get:function(){return this.getValue()},set:function(t){this.setValue(t)},enumerable:!0,configurable:!0}),o.prototype.getValue=function(){return this.val},o.prototype.setValue=function(t){this.val=t},o}(i.StiCrossField);i.StiCrossCell=o}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiSolidBrush,n=t.System.Drawing.Color,o=t.Report.CrossTab.Core.StiSortType,a=t.Report.CrossTab.Core.StiSortDirection,s=t.Report.Engine.StiParser.StiParser,l=t.Report.Expressions.StiExpression,u=t.System.Enum,c=function(t){function c(){var e=t.call(this)||this;return e.getDisplayCrossValueEvent=new i.StiGetDisplayCrossValueEvent,e._displayValue="",e._headerLevel=-1,e._headerValue=null,e._totalGuid=null,e._showTotal=!0,e._sortDirection=a.Asc,e._sortType=o.ByDisplayValue,e._printOnAllPages=!0,e.brush=new r(n.lightGray),e}return __extends(c,t),c.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("HideZeros"),i.addPropertyJObject("GetDisplayCrossValueEvent",this.getDisplayCrossValueEvent.saveToJsonObject(e)),i.addPropertyJObject("DisplayValue",new l(this.displayValue).saveToJsonObject(e)),i.addPropertyStringNullOfEmpty("TotalGuid",this.totalGuid),i.addPropertyBool("ShowTotal",this.showTotal,!0),i.addPropertyEnum("SortDirection",a,this.sortDirection,a.Asc),i.addPropertyEnum("SortType",o,this.sortType,o.ByDisplayValue),i.addPropertyBool("PrintOnAllPages",this.printOnAllPages,!0),i},c.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var r=0,n=e.properties();r<n.length;r++){var s=n[r];switch(s.name){case"GetDisplayCrossValueEvent":var c=new i.StiGetDisplayCrossValueEvent;c.loadFromJsonObject(s.value),this.getDisplayCrossValueEvent=c;break;case"DisplayValue":var p=new l;p.loadFromJsonObject(s.value),this.displayValue=p.value;break;case"TotalGuid":this.totalGuid=s.value.toString();break;case"ShowTotal":this.showTotal=s.value.toBoolean();break;case"SortDirection":this.sortDirection=u.parse(a,s.value.toString());break;case"SortType":this.sortType=u.parse(o,s.value.toString());break;case"PrintOnAllPages":this.printOnAllPages=s.value.toBoolean();break}}},c.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);var i=e.getAttribute("Ref");String.isNullOrEmpty(i)||(this.report.jsonLoaderHelper.refNames[i.toNumber()]=e.nodeName);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"GetDisplayCrossValueEvent":break;case"DisplayValue":var s=new l;s.loadFromXml(n),this.displayValue=s.value;break;case"TotalGuid":this.totalGuid=n.textContent.toString();break;case"ShowTotal":this.showTotal=n.textContent.toBoolean();break;case"SortDirection":this.sortDirection=u.parse(a,n.textContent.toString());break;case"SortType":this.sortType=u.parse(o,n.textContent.toString());break;case"PrintOnAllPages":this.printOnAllPages=n.textContent.toBoolean();break}}},c.prototype.onGetDisplayCrossValue=function(t){},c.prototype.invokeGetDisplayCrossValue=function(t){if(this.report.calculationMode==e.StiCalculationMode.Compilation)this.onGetDisplayCrossValue(t);else{this.onGetDisplayCrossValue(t);var i=s.parseTextValue(this.displayValue,this);null!=i&&(t.value=i)}},c.prototype.setValue=function(e){t.prototype.getValue.call(this)==this.displayValue&&(this.displayValue=e),t.prototype.setValue.call(this,e)},Object.defineProperty(c.prototype,"displayValue",{get:function(){return this._displayValue},set:function(t){this._displayValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"total",{get:function(){if(null==this.totalGuid||null==this.parent)return null;for(var t=0,e=this.parent.components.list;t<e.length;t++){var r=e[t],n=r.sti_as(i.StiCrossTotal);if(null!=n&&n.guid==this.totalGuid)return n}return null},set:function(t){this.totalGuid=null==t?null:t.guid},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isTotalVisible",{get:function(){return this.showTotal&&null!=this.total&&this.total.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"headerLevel",{get:function(){return this._headerLevel},set:function(t){this._headerLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"headerValue",{get:function(){return this._headerValue},set:function(t){this._headerValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"totalGuid",{get:function(){return this._totalGuid},set:function(t){this._totalGuid=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"showTotal",{get:function(){return this._showTotal},set:function(t){this._showTotal=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"sortDirection",{get:function(){return this._sortDirection},set:function(t){this._sortDirection=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"sortType",{get:function(){return this._sortType},set:function(t){this._sortType=t},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"printOnAllPages",{get:function(){return this._printOnAllPages},set:function(t){this._printOnAllPages=t},enumerable:!0,configurable:!0}),c}(i.StiCrossCell);i.StiCrossHeader=c}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Localization.StiLocalization,n=t.System.Enum,o=t.Report.CrossTab.Core.StiEnumeratorType,a=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._enumeratorType=o.None,e._enumeratorSeparator=".",e}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyEnum("EnumeratorType",o,this.enumeratorType,o.None),i.addPropertyString("EnumeratorSeparator",this.enumeratorSeparator,"."),i},i.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var a=r[i];switch(a.name){case"EnumeratorType":this._enumeratorType=n.parse(o,a.value.toString());break;case"EnumeratorSeparator":this._enumeratorSeparator=a.value.toString();break}}},i.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);var i=e.getAttribute("Ref");String.isNullOrEmpty(i)||(this.report.jsonLoaderHelper.refNames[i.toNumber()]=e.nodeName);for(var r=0;r<e.childNodes.length;r++){var a=e.childNodes[r];switch(a.nodeName){case"EnumeratorType":this._enumeratorType=n.parse(o,a.textContent.toString());break;case"EnumeratorSeparator":this._enumeratorSeparator=a.textContent.toString();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossColumn},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Components","StiCrossColumn")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enumeratorType",{get:function(){return this._enumeratorType},set:function(t){this._enumeratorType=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enumeratorSeparator",{get:function(){return this._enumeratorSeparator},set:function(t){this._enumeratorSeparator=t},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(i.StiCrossHeader);i.StiCrossColumn=a}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiSolidBrush,n=t.System.Drawing.Color,o=function(t){function i(){var e=t.call(this)||this;return e.brush=new r(n.whiteSmoke),e}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("TextFormat"),i.removeProperty("HideZeros"),i},Object.defineProperty(i.prototype,"cellText",{get:function(){return this.text},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossTotal},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(i.StiCrossField);i.StiCrossTotal=o}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Localization.StiLocalization,n=function(t){function i(){var e=t.call(this)||this;return e.text="Total",e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossColumnTotal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Components","StiCrossColumnTotal")},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(i.StiCrossTotal);i.StiCrossColumnTotal=n}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.CrossTab.Core.StiEnumeratorType,n=t.System.Enum,o=t.Base.Localization.StiLocalization,a=function(t){function a(){var e=null!==t&&t.apply(this,arguments)||this;return e._enumeratorType=r.None,e._enumeratorSeparator=".",e}return __extends(a,t),a.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyEnum("EnumeratorType",r,this.enumeratorType,r.None),i.addPropertyString("EnumeratorSeparator",this.enumeratorSeparator,"."),i},a.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,o=e.properties();i<o.length;i++){var a=o[i];switch(a.name){case"EnumeratorType":this._enumeratorType=n.parse(r,a.value.toString());break;case"EnumeratorSeparator":this._enumeratorSeparator=a.value.toString();break}}},a.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);var i=e.getAttribute("Ref");String.isNullOrEmpty(i)||(this.report.jsonLoaderHelper.refNames[i.toNumber()]=e.nodeName);for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];switch(a.nodeName){case"EnumeratorType":this._enumeratorType=n.parse(r,a.textContent.toString());break;case"EnumeratorSeparator":this._enumeratorSeparator=a.textContent.toString();break}}},Object.defineProperty(a.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossRow},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"localizedName",{get:function(){return o.get("Components","StiCrossRow")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"enumeratorType",{get:function(){return this._enumeratorType},set:function(t){this._enumeratorType=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"enumeratorSeparator",{get:function(){return this._enumeratorSeparator},set:function(t){this._enumeratorSeparator=t},enumerable:!0,configurable:!0}),a.prototype.getCrossRowTitle=function(){var t=this.parent.sti_as(i.StiCrossTab);if(null==t)return null;var e=String.stiFormat("{0}_Title",this.name);return t.components.toList().firstOrDefault(function(t){return t.sti_is(i.StiCrossTitle)&&t.name==e}).sti_as(i.StiCrossTitle)},a.prototype.getCrossRowTotal=function(){var t=this.parent.sti_as(i.StiCrossTab);if(null==t)return null;var e=this.name.replaceAll("Row","RowTotal");return t.components.toList().firstOrDefault(function(t){return t.sti_is(i.StiCrossRowTotal)&&t.name==e}).sti_as(i.StiCrossRowTotal)},a.prototype.createNew=function(){return new a},a}(i.StiCrossHeader);i.StiCrossRow=a}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Localization.StiLocalization,n=function(t){function i(){var e=t.call(this)||this;return e.text="Total",e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossRowTotal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Components","StiCrossRowTotal")},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(i.StiCrossTotal);i.StiCrossRowTotal=n}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiTextHorAlignment,n=t.Base.Drawing.StiHorAlignment,o=t.Base.Drawing.StiVertAlignment,a=t.Report.CrossTab.Core.StiSummaryType,s=t.Report.CrossTab.Core.StiSummaryValues,l=t.System.Enum,u=t.Base.Localization.StiLocalization,c=function(t){function i(){var e=t.call(this)||this;return e._aspectRatio=!1,e._stretch=!0,e._imageHorAlignment=n.Left,e._imageVertAlignment=o.Top,e._indexOfSelectValue=-1,e._summary=a.Sum,e._summaryValues=s.AllValues,e._useStyleOfSummaryInRowTotal=!1,e._useStyleOfSummaryInColumnTotal=!1,e._showPercents=!1,e.horAlignment=r.Right,e.hideZeros=!0,e}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyEnum("HorAlignment",r,this.horAlignment,r.Right),i.addPropertyBool("HideZeros",this.hideZeros,!0),i.addPropertyBool("AspectRatio",this.aspectRatio),i.addPropertyBool("Stretch",this.stretch,!0),i.addPropertyEnum("Summary",a,this.summary,a.Sum),i.addPropertyEnum("SummaryValues",s,this.summaryValues,s.AllValues),i.addPropertyBool("UseStyleOfSummaryInRowTotal",this.useStyleOfSummaryInRowTotal),i.addPropertyBool("UseStyleOfSummaryInColumnTotal",this.useStyleOfSummaryInColumnTotal),i.addPropertyBool("ShowPercents",this.showPercents),i},i.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"AspectRatio":this._aspectRatio=n.value.toBoolean();break;case"Stretch":this._stretch=n.value.toBoolean();break;case"Summary":this._summary=l.parse(a,n.value.toString());break;case"SummaryValues":this._summaryValues=l.parse(s,n.value.toString());break;case"UseStyleOfSummaryInRowTotal":this._useStyleOfSummaryInRowTotal=n.value.toBoolean();break;case"UseStyleOfSummaryInColumnTotal":this._useStyleOfSummaryInColumnTotal=n.value.toBoolean();break;case"ShowPercents":this._showPercents=n.value.toBoolean();break}}},i.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);var i=e.getAttribute("Ref");String.isNullOrEmpty(i)||(this.report.jsonLoaderHelper.refNames[i.toNumber()]=e.nodeName);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"AspectRatio":this._aspectRatio=n.textContent.toBoolean();break;case"Stretch":this._stretch=n.textContent.toBoolean();break;case"Summary":this._summary=l.parse(a,n.textContent.toString());break;case"SummaryValues":this._summaryValues=l.parse(s,n.textContent.toString());break;case"UseStyleOfSummaryInRowTotal":this._useStyleOfSummaryInRowTotal=n.textContent.toBoolean();break;case"UseStyleOfSummaryInColumnTotal":this._useStyleOfSummaryInColumnTotal=n.textContent.toBoolean();break;case"ShowPercents":this._showPercents=n.textContent.toBoolean();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossSummary},enumerable:!0,configurable:!0}),i.prototype.clone=function(e){var i=t.prototype.clone.call(this,e);return i.aspectRatio=this.aspectRatio,i.stretch=this.stretch,i.imageHorAlignment=this.imageHorAlignment,i.imageVertAlignment=this.imageVertAlignment,i.summary=this.summary,i.summaryValues=this.summaryValues,i.useStyleOfSummaryInRowTotal=this.useStyleOfSummaryInRowTotal,i.useStyleOfSummaryInColumnTotal=this.useStyleOfSummaryInColumnTotal,i},Object.defineProperty(i.prototype,"defaultHorAlignment",{get:function(){return r.Right},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(t){this._aspectRatio=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stretch",{get:function(){return this._stretch},set:function(t){this._stretch=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"imageHorAlignment",{get:function(){return this._imageHorAlignment},set:function(t){this._imageHorAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"imageVertAlignment",{get:function(){return this._imageVertAlignment},set:function(t){this._imageVertAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"crossColumnValue",{get:function(){return this._crossColumnValue},set:function(t){this._crossColumnValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"crossRowValue",{get:function(){return this._crossRowValue},set:function(t){this._crossRowValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"indexOfSelectValue",{get:function(){return this._indexOfSelectValue},set:function(t){this._indexOfSelectValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellText",{get:function(){return"0"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"summary",{get:function(){return this._summary},set:function(t){this._summary=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"summaryValues",{get:function(){return this._summaryValues},set:function(t){this._summaryValues=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useStyleOfSummaryInRowTotal",{get:function(){return this._useStyleOfSummaryInRowTotal},set:function(t){this._useStyleOfSummaryInRowTotal=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useStyleOfSummaryInColumnTotal",{get:function(){return this._useStyleOfSummaryInColumnTotal},set:function(t){this._useStyleOfSummaryInColumnTotal=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return u.get("Components","StiCrossSummary")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showPercents",{get:function(){return this._showPercents},set:function(t){this._showPercents=t},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(i.StiCrossCell);i.StiCrossSummary=c}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Localization.StiLocalization,n=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"cellText",{get:function(){return this.getTextInternal()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Components","StiCrossSummaryHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossSummaryHeader},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(i.StiCrossField);i.StiCrossSummaryHeader=n}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(e){var i=t.System.ICloneable,r=t.System.Collections.CollectionBase,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiJson,a=function(r){function a(){return null!==r&&r.apply(this,arguments)||this}return __extends(a,r),a.prototype.implements=function(){return[i,n]},a.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new o,i=0,r=0,n=this.list;r<n.length;r++){var a=n[r];e.addPropertyJObject(i.toString(),a.saveToJsonObject(t)),i++}return e},a.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i],o=new e.StiStyleCondition;o.loadFromJsonObject(n.value),this.list.add(o)}},a.prototype.loadFromXml=function(e){for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];if(null==r.attributes)continue;if(null!=r.attributes.getNamedItem("type")){var n=new t.Report.Styles.Conditions.StiStyleCondition;n.loadFromXml(r),this.list.add(n)}}},a.prototype.clone=function(){for(var t=new a,e=0,i=this.list;e<i.length;e++){var r=i[e];t.add(r.clone())}return t},a.prototype.add=function(t){if(t.sti_is(e.StiStyleCondition))this.list.add(t);else{var i=new e.StiStyleCondition;i.fromElements(t),this.add(i)}},a.prototype.addRange=function(t){for(var e=t.sti_is(a)?t.list:t,i=0,r=e;i<r.length;i++){var n=r[i];this.add(n)}},a.prototype.contains=function(t){return this.list.contains(t)},a.prototype.indexOf=function(t){return this.list.indexOf(t)},a.prototype.insert=function(t,e){this.list.insert(t,e)},a.prototype.remove=function(t){this.list.remove(t)},a.prototype.getByIndex=function(t){return this.list[t]},a.prototype.setByIndex=function(t,e){this.list[t]=e},a}(r);e.StiStyleConditionsCollection=a}(i=e.Conditions||(e.Conditions={}))}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.ICloneable,n=t.Report.Styles.Conditions.StiStyleConditionsCollection,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.Base.StiJson,s=function(){function t(t,e,i){void 0===t&&(t=""),void 0===e&&(e=""),void 0===i&&(i=null),this._collectionName=String.empty,this._conditions=null,this._description=String.empty,this._name=String.empty,this.report=null,this._name=t,this._description=e,this.report=i}return t.prototype.implements=function(){return[r,o]},t.prototype.saveToJsonObject=function(t){var e=new a;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e.addPropertyStringNullOfEmpty("CollectionName",this.collectionName),e.addPropertyJObject("Conditions",this.conditions.saveToJsonObject(t)),e.addPropertyStringNullOfEmpty("Description",this.description),e.addPropertyStringNullOfEmpty("Name",this.name),e},t.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"CollectionName":this._collectionName=r.value;break;case"Conditions":this.conditions.loadFromJsonObject(r.value);break;case"Description":this._description=r.value;break;case"Name":this._name=r.value;break}}},t.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"CollectionName":this._collectionName=i.textContent;break;case"Description":this._description=i.textContent;break;case"Name":this._name=i.textContent;break;case"Conditions":this.conditions.loadFromXml(i);break}}},t.prototype.stiEquals=function(t,e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!0),this.sti_is(i.StiStyle)){var n=t.sti_as(i.StiStyle);if(null==n)return!1;var o=this.sti_as(i.StiStyle);if(!n.border.stiEquals(o.border))return!1;if(!n.brush.stiEquals(o.brush))return!1;if(!n.font.stiEquals(o.font))return!1;if(null==n.image&&null!=n.image)return!1;if(null!=n.image&&null==n.image)return!1;if(null!=n.image&&null!=o.image&&!n.image.stiEquals(o.image))return!1;if(!n.textBrush.stiEquals(o.textBrush))return!1;if(!n.collectionName.stiEquals(o.collectionName))return!1;if(!n.conditions.stiEquals(o.conditions))return!1;if(n.allowUseBorderFormatting!=o.allowUseBorderFormatting)return!1;if(n.allowUseBorderSides!=o.allowUseBorderSides)return!1;if(n.allowUseBorderSidesFromLocation!=o.allowUseBorderSidesFromLocation)return!1;if(n.allowUseBrush!=o.allowUseBrush)return!1;if(n.allowUseFont!=o.allowUseFont)return!1;if(n.allowUseHorAlignment!=o.allowUseHorAlignment)return!1;if(n.allowUseImage!=o.allowUseImage)return!1;if(n.allowUseTextBrush!=o.allowUseTextBrush)return!1;if(n.allowUseTextOptions!=o.allowUseTextOptions)return!1;if(n.allowUseVertAlignment!=o.allowUseVertAlignment)return!1;if(n.horAlignment!=o.horAlignment)return!1;if(n.vertAlignment!=o.vertAlignment)return!1;if(e&&n.name!=o.name)return!1;if(r&&n.description!=o.description)return!1;return!0}if(this.sti_is(i.StiChartStyle)){var n=t.sti_as(i.StiChartStyle);if(null==n)return!1;var o=this.sti_as(i.StiChartStyle);if(!n.border.stiEquals(o.border))return!1;if(!n.brush.stiEquals(o.brush))return!1;if(!n.basicStyleColor.stiEquals(o.basicStyleColor))return!1;if(n.brushType!=o.brushType)return!1;if(!n.styleColors.stiEquals(o.styleColors))return!1;if(n.allowUseBorderFormatting!=o.allowUseBorderFormatting)return!1;if(n.allowUseBorderSides!=o.allowUseBorderSides)return!1;if(n.allowUseBrush!=o.allowUseBrush)return!1;if(e&&n.name!=o.name)return!1;if(r&&n.description!=o.description)return!1;return!0}if(this.sti_is(i.StiCrossTabStyle)){var n=t.sti_as(i.StiCrossTabStyle);if(null==n)return!1;var o=this.sti_as(i.StiCrossTabStyle);if(!n.color.stiEquals(o.color))return!1;if(e&&n.name!=o.name)return!1;if(r&&n.description!=o.description)return!1;return!0}if(this.sti_is(i.StiDialogStyle)){var n=t.sti_as(i.StiDialogStyle);if(null==n)return!1;var o=this.sti_as(i.StiDialogStyle);if(!n.foreColor.stiEquals(o.foreColor))return!1;if(!n.backColor.stiEquals(o.backColor))return!1;if(n.allowUseFont!=o.allowUseFont)return!1;if(n.allowUseBackColor!=o.allowUseBackColor)return!1;if(n.allowUseForeColor!=o.allowUseForeColor)return!1;if(e&&n.name!=o.name)return!1;if(r&&n.description!=o.description)return!1;return!0}return!1},t.prototype.clone=function(){var t=this.memberwiseClone();return null!=this.conditions?t.conditions=this.conditions.clone():t.conditions=null,t},t.getStyle=function(r,n,o){void 0===o&&(o=null),n&&!n.sti_is(t)||(n=e.StiStyleElements.All);var a=new i.StiStyle;return a.getStyleFromComponent(r,n,o),a},t.prototype.getStyleFromComponents=function(t,e){for(var i=t.count-1;i>=0;i--)this.getStyleFromComponent(t[i],e)},t.prototype.toString=function(){if(String.isNullOrEmpty(this.description))return this.name;return this.description},t.prototype.getStyleFromComponent=function(t,e){},t.prototype.setStyleToComponent=function(t){},Object.defineProperty(t.prototype,"collectionName",{get:function(){return this._collectionName},set:function(t){this._collectionName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"conditions",{get:function(){return null==this._conditions&&(this._conditions=new n),this._conditions},set:function(t){this._conditions=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},set:function(t){this._description=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){if(null!=this.report&&this.report.isDesigning&&String.isNullOrWhiteSpace(t))throw"ArgumentException()";this._name!=t&&null!=this.report&&this.report.renameStyle(this._name,t),this._name=t},enumerable:!0,configurable:!0}),t}();i.StiBaseStyle=s}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.Base.StiJsonReportObjectHelper,n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._color=i.white,e}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var n=t.prototype.saveToJsonObject.call(this,e);return n.addPropertyStringNullOfEmpty("Color",r.Serialize.jColor(this.color,i.white)),n},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,n=e.properties();i<n.length;i++){var o=n[i];switch(o.name){case"Color":this._color=r.Deserialize.color(o.value);break}}},Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=t},enumerable:!0,configurable:!0}),e}(e.StiBaseStyle);e.StiCrossTabStyle=n}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Styles.StiCrossTabStyle,n=t.Report.Dictionary.StiBusinessObjectHelper,o=t.Report.Components.StiFilter,a=t.Report.Components.StiFilterItem,s=t.Report.Components.StiComponentPriority,l=t.Report.Components.StiBand,u=t.Report.Components.StiComponentType,c=t.System.Drawing.Color,p=t.Base.Drawing.StiSolidBrush,h=t.Base.Drawing.StiColorUtils,g=t.System.Drawing.Rectangle,m=t.Report.CrossTab.Core.StiSummaryDirection,d=t.Report.Components.StiFilterMode,S=t.Report.Components.StiFilterEngine,f=t.Base.Localization.StiLocalization,y=t.Report.Components.StiContainer,b=t.System.Enum,C=t.Report.Components.IStiDataSource,v=t.Report.Components.IStiFilter,I=t.Report.Components.IStiCrossTab,A=t.Report.Components.IStiSort,w=t.Report.Components.IStiDataRelation,T=t.Report.Components.IStiPrintIfEmpty,B=t.Report.Components.IStiBusinessObject,R=t.Base.StiJsonReportObjectHelper,P=function(P){function F(e){void 0===e&&(e=g.empty);var r=P.call(this,e)||this;return r._printIfEmpty=!0,r._dataRelationName="",r._dataSourceName=String.empty,r._businessObjectGuid=String.empty,r._sort=[],r._crossTabInfo=new i.StiCrossTabInfo,r._filterEngine=S.ReportEngine,r._filterMode=d.And,r._filters=new t.Report.Components.StiFiltersCollection,r._filterOn=!0,r._crossTabStyleIndex=0,r._crossTabStyleColor=null,r._horAlignment=i.StiCrossHorAlignment.None,r._printTitleOnAllPages=!0,r._summaryDirection=m.UpToDown,r._keepCrossTabTogether=!1,r._emptyValue=String.empty,r._wrap=!1,r._wrapGap=0,r._rightToLeft=!1,r.placeOnToolbox=!1,r.canGrow=!0,r}return __extends(F,P),F.prototype.implements=function(){return F.ImplementsStiCrossTab||(F.ImplementsStiCrossTab=P.prototype.implements.call(this).concat([C,v,I,A,w,T,B])),F.ImplementsStiCrossTab},F.prototype.saveToJsonObject=function(t){var e=P.prototype.saveToJsonObject.call(this,t);return e.addPropertyBool("CanGrow",this.canGrow,!0),e.addPropertyBool("PrintIfEmpty",this.printIfEmpty,!0),e.addPropertyStringNullOfEmpty("DataRelationName",this.dataRelationName),e.addPropertyStringNullOfEmpty("DataSourceName",this.dataSourceName),e.addPropertyStringNullOfEmpty("BusinessObjectGuid",this.businessObjectGuid),e.addPropertyJObject("Sort",R.Serialize.stringArray(this.sort)),e.addPropertyEnum("FilterEngine",S,this.filterEngine,S.ReportEngine),e.addPropertyEnum("FilterMode",d,this.filterMode,d.And),e.addPropertyJObject("Filters",this.filters.saveToJsonObject(t)),e.addPropertyBool("FilterOn",this.filterOn,!0),e.addPropertyNumber("CrossTabStyleIndex",this.crossTabStyleIndex),e.addPropertyEnum("HorAlignment",i.StiCrossHorAlignment,this.horAlignment,i.StiCrossHorAlignment.None),e.addPropertyBool("PrintTitleOnAllPages",this.printTitleOnAllPages,!0),e.addPropertyEnum("SummaryDirection",m,this.summaryDirection,m.UpToDown),e.addPropertyBool("KeepCrossTabTogether",this.keepCrossTabTogether),e.addPropertyStringNullOfEmpty("EmptyValue",this.emptyValue),e.addPropertyBool("Wrap",this.wrap),e.addPropertyNumber("WrapGap",this.wrapGap,0),e.addPropertyBool("RightToLeft",this.rightToLeft),e},F.prototype.loadFromJsonObject=function(t){P.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"PrintIfEmpty":this.printIfEmpty=n.value.toBoolean();break;case"DataRelationName":this.dataRelationName=n.value.toString();break;case"DataSourceName":this.dataSourceName=n.value.toString();break;case"BusinessObjectGuid":this.businessObjectGuid=n.value.toString();break;case"Sort":this.sort=R.Deserialize.stringArray(n.value);break;case"FilterEngine":this.filterEngine=b.parse(S,n.value.toString());break;case"FilterMode":this.filterMode=b.parse(d,n.value.toString());break;case"Filters":this.filters.loadFromJsonObject(n.value);break;case"FilterOn":this.filterOn=n.value.toBoolean();break;case"CrossTabStyleIndex":this.crossTabStyleIndex=n.value.toNumber();break;case"HorAlignment":this.horAlignment=b.parse(i.StiCrossHorAlignment,n.value.toString());break;case"PrintTitleOnAllPages":this.printTitleOnAllPages=n.value.toBoolean();break;case"SummaryDirection":this.summaryDirection=b.parse(m,n.value.toString());break;case"KeepCrossTabTogether":this.keepCrossTabTogether=n.value.toBoolean();break;case"EmptyValue":this.emptyValue=n.value.toString();break;case"Wrap":this.wrap=n.value.toBoolean();break;case"WrapGap":this.wrapGap=n.value.toNumber();break;case"RightToLeft":this.rightToLeft=n.value.toBoolean();break}}},F.prototype.loadFromXml=function(e){P.prototype.loadFromXml.call(this,e,!1);var r=e.getAttribute("Ref");String.isNullOrEmpty(r)||(this.report.jsonLoaderHelper.refNames[r.toNumber()]=e.nodeName);for(var n=0;n<e.childNodes.length;n++){var o=e.childNodes[n];switch(o.nodeName){case"PrintIfEmpty":this.printIfEmpty=o.textContent.toBoolean();break;case"DataRelationName":this.dataRelationName=o.textContent.toString();break;case"DataSourceName":this.dataSourceName=o.textContent.toString();break;case"BusinessObjectGuid":this.businessObjectGuid=o.textContent.toString();break;case"Sort":this._sort=t.Report.Components.StiDataBand.loadXmlSort(o);break;case"FilterEngine":this.filterEngine=b.parse(S,o.textContent.toString());break;case"FilterMode":this.filterMode=b.parse(d,o.textContent.toString());break;case"Filters":null==this._filters&&(this._filters=new t.Report.Components.StiFiltersCollection),this._filters.loadFromXml(o);break;case"FilterOn":this.filterOn=o.textContent.toBoolean();break;case"CrossTabStyleIndex":this.crossTabStyleIndex=o.textContent.toNumber();break;case"HorAlignment":this.horAlignment=b.parse(i.StiCrossHorAlignment,o.textContent.toString());break;case"PrintTitleOnAllPages":this.printTitleOnAllPages=o.textContent.toBoolean();break;case"SummaryDirection":this.summaryDirection=b.parse(m,o.textContent.toString());break;case"KeepCrossTabTogether":this.keepCrossTabTogether=o.textContent.toBoolean();break;case"EmptyValue":this.emptyValue=o.textContent.toString();break;case"Wrap":this.wrap=o.textContent.toBoolean();break;case"WrapGap":this.wrapGap=o.textContent.toNumber();break;case"RightToLeft":this.rightToLeft=o.textContent.toBoolean();break}}for(var a=0,s=this.components.list;a<s.length;a++){s[a].paint(null)}},Object.defineProperty(F.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossTab},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"helpUrl",{get:function(){return"user-manual/report_internals_crosstable.htm"},enumerable:!0,configurable:!0}),F.prototype.convert=function(t,e,i){void 0===i&&(i=!1),P.prototype.convert.call(this,t,e,i),this.wrapGap=e.convertFromHInches(t.convertToHInches(this.wrapGap))},Object.defineProperty(F.prototype,"printIfEmpty",{get:function(){return this._printIfEmpty},set:function(t){this._printIfEmpty=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"dataRelation",{get:function(){if(null==this.page||null==this.report||null==this.report.dictionary||null==this.report.dictionary.relations||null==this.dataRelationName||0==this.dataRelationName.length)return null;return this.report.dictionary.relations.getByName(this.dataRelationName)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"dataRelationName",{get:function(){return this._dataRelationName},set:function(t){this._dataRelationName=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"dataSource",{get:function(){if(null==this.page||null==this.report||null==this.report.dataSources||null==this.dataSourceName||0==this.dataSourceName.length)return null;return this.report.dataSources.getByName(this.dataSourceName)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"dataSourceName",{get:function(){return this._dataSourceName},set:function(t){this._dataSourceName!=t&&(this._dataSourceName=t)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isDataSourceEmpty",{get:function(){return String.isNullOrEmpty(this.dataSourceName)||null==this.dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isBusinessObjectEmpty",{get:function(){return String.isNullOrEmpty(this.businessObjectGuid)||null==this.businessObject},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"businessObject",{get:function(){if(null==this.page||null==this.report||null==this.businessObjectGuid||0==this.businessObjectGuid.length)return null;return n.getBusinessObjectFromGuid(this.report,this.businessObjectGuid)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"businessObjectGuid",{get:function(){return this._businessObjectGuid},set:function(t){this._businessObjectGuid!=t&&(this._businessObjectGuid=t,String.isNullOrEmpty(t)||(this.dataSourceName=null))},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"sort",{get:function(){return this._sort},set:function(t){this._sort=t},enumerable:!0,configurable:!0}),F.prototype.first=function(){null!=this.dataSource?this.dataSource.first():null!=this.businessObject&&this.businessObject.first()},F.prototype.prior=function(){null!=this.dataSource?this.dataSource.prior():null!=this.businessObject&&this.businessObject.prior()},F.prototype.next=function(){null!=this.dataSource?this.dataSource.next():null!=this.businessObject&&this.businessObject.next()},F.prototype.last=function(){null!=this.dataSource?this.dataSource.last():null!=this.businessObject&&this.businessObject.last()},Object.defineProperty(F.prototype,"isEof",{get:function(){return null!=this.dataSource?this.dataSource.isEof:null==this.businessObject||this.businessObject.isEof},set:function(t){null!=this.dataSource?this.dataSource.isEof=t:null!=this.businessObject&&(this.businessObject.isEof=t)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isBof",{get:function(){return null!=this.dataSource?this.dataSource.isBof:null==this.businessObject||this.businessObject.isBof},set:function(t){null!=this.dataSource?this.dataSource.isBof=t:null!=this.businessObject&&(this.businessObject.isBof=t)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"isEmpty",{get:function(){return null!=this.dataSource?this.dataSource.isEmpty:null==this.businessObject||this.businessObject.isEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"position",{get:function(){return null!=this.dataSource?this.dataSource.position:null!=this.businessObject?this.businessObject.position:0},set:function(t){null!=this.dataSource?this.dataSource.position=t:null!=this.businessObject&&(this.businessObject.position=t)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"count",{get:function(){return null!=this.dataSource?this.dataSource.count:null!=this.businessObject?this.businessObject.count:0},enumerable:!0,configurable:!0}),F.prototype.clone=function(){var e=P.prototype.clone.call(this);return e._crossTabInfo=this.crossTabInfo.clone().sti_as(i.StiCrossTabInfo),null!=this._filters?e._filters=this._filters.clone().sti_as(t.Report.Components.StiFiltersCollection):e._filters=null,e},F.prototype.packService=function(){this._filters=null},Object.defineProperty(F.prototype,"crossTabInfo",{get:function(){return this._crossTabInfo},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"filterEngine",{get:function(){return this._filterEngine},set:function(t){this._filterEngine=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"filterMode",{get:function(){return this._filterMode},set:function(t){this._filterMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"filters",{get:function(){return this._filters},set:function(t){this._filters=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"filter",{get:function(){return 0==this.filters.count&&this.filters.add(new o),this.filters.getByIndex(0).item=a.Expression,this.filters.getByIndex(0).expression},set:function(t){
0==this.filters.count&&this.filters.add(new o),this.filters.getByIndex(0).item=a.Expression,this.filters.getByIndex(0).expression=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"filterOn",{get:function(){return this._filterOn},set:function(t){this._filterOn=t},enumerable:!0,configurable:!0}),F.prototype.canContainIn=function(t){if(t.sti_is(F))return!1;if(t.sti_is(y))return!0;return!1},Object.defineProperty(F.prototype,"localizedCategory",{get:function(){return f.get("Report","Components")},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"priority",{get:function(){return s.CrossTab},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"defaultClientRectangle",{get:function(){return new g(0,0,300,100)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"componentType",{get:function(){if(null!=this.report)return u.Simple;if(this.parent.sti_is(l))return u.Simple;return u.Master},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"localizedName",{get:function(){return f.get("Components","StiCrossTab")},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"crossTabStyleIndex",{get:function(){return this._crossTabStyleIndex},set:function(t){t!=this._crossTabStyleIndex&&(-1!=t&&(P.prototype.setComponentStyle.call(this,""),this._crossTabStyleColor=null),t>=StiOptions.Designer.CrossTab.styleColors.length?this._crossTabStyleIndex=StiOptions.Designer.CrossTab.styleColors.length-1:this._crossTabStyleIndex=t,this.isDesigning&&null!=this.report&&!this.report.isSerializing&&this.updateStyles())},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"crossTabStyleColor",{get:function(){return this._crossTabStyleColor},set:function(t){this._crossTabStyleColor!=t&&(this._crossTabStyleColor=t)},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"crossTabStyle",{get:function(){return this.componentStyle},set:function(t){this.componentStyle=t},enumerable:!0,configurable:!0}),F.prototype.setComponentStyle=function(t){if(null==t&&(t=""),P.prototype.getComponentStyle.call(this)!=t){P.prototype.setComponentStyle.call(this,t),this._crossTabStyleColor=null,this._crossTabStyleIndex=-1,this.updateStyles();for(var e=0,i=this.components.list;e<i.length;e++){i[e].componentStyle=this.componentStyle}}},F.prototype.updateStyles=function(){for(var t=0,e=this.components.list;t<e.length;t++){var i=e[t];this.applyFieldStyle(i)}},F.prototype.getCellColor=function(){if(null!=this.crossTabStyleColor&&this.crossTabStyleColor.sti_is(c))return this.crossTabStyleColor;if(!String.isNullOrEmpty(this.crossTabStyle)&&null!=this.report){var t=this.report.styles.getByName(this.crossTabStyle).sti_as(r);if(null!=t)return t.color}if(-1!=this.crossTabStyleIndex)return StiOptions.Designer.CrossTab.styleColors[this.crossTabStyleIndex];return c.white},F.prototype.applyFieldStyle=function(t){null!=t&&(t.brush=new p(c.white),t.border.color=h.dark(this.getCellColor(),100),(t.sti_is(i.StiCrossTitle)||t.sti_is(i.StiCrossRow)||t.sti_is(i.StiCrossColumn)||t.sti_is(i.StiCrossSummaryHeader))&&(t.brush=new p(this.getCellColor()),t.textBrush=new p(h.dark(this.getCellColor(),150))),t.sti_is(i.StiCrossTotal)&&(t.brush=new p(h.light(this.getCellColor(),50))),t.sti_is(i.StiCrossSummary)&&(t.brush=new p(h.light(this.getCellColor(),100))))},Object.defineProperty(F.prototype,"horAlignment",{get:function(){return this._horAlignment},set:function(t){this._horAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"printTitleOnAllPages",{get:function(){return this._printTitleOnAllPages},set:function(t){this._printTitleOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"summaryDirection",{get:function(){return this._summaryDirection},set:function(t){this._summaryDirection=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"keepCrossTabTogether",{get:function(){return this._keepCrossTabTogether},set:function(t){this._keepCrossTabTogether=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"emptyValue",{get:function(){return this._emptyValue},set:function(t){this._emptyValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"wrap",{get:function(){return this._wrap},set:function(t){this._wrap=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"wrapGap",{get:function(){return this._wrapGap},set:function(t){this._wrapGap=t},enumerable:!0,configurable:!0}),Object.defineProperty(F.prototype,"rightToLeft",{get:function(){return this._rightToLeft},set:function(t){this._rightToLeft!=t&&(this._rightToLeft=t)},enumerable:!0,configurable:!0}),F.prototype.createNew=function(){return new F},F}(y);i.StiCrossTab=P}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiFontUtils,r=t.Report.Components.StiDataHelper,n=t.Report.Components.StiImageHelper,o=t.Base.Drawing.StiBorder,a=t.Base.Drawing.StiBorderSides,s=t.Report.Events.StiGetValueEventArgs,l=t.Report.CrossTab.Core.StiCross,u=t.Report.Components.StiComponentsCollection,c=t.System.Data.DataColumn,p=t.System.Data.DataTable,h=t.Report.Components.StiDataBand,g=t.System.Drawing.Size,m=t.Report.Components.StiText,d=t.Report.Components.StiImage,S=t.Report.CrossTab.Core.StiCell,f=t.System.Drawing.Rectangle,y=t.Base.StiAlignValue,b=t.System.Collections.Hashtable,C=function(){function t(){}return t.getCellRect=function(t,e,i){for(var r=0,n=0,o=t.crossTabInfo.cross.cells[e][i],a=e;a<e+o.width;a++)r+=t.crossTabInfo.cross.widths[a];for(var s=i;s<i+o.height;s++)n+=t.crossTabInfo.cross.heights[s];return new f(t.crossTabInfo.cross.coordX[e],t.crossTabInfo.cross.coordY[i],r,n)},t.getCellsRect=function(t,e,i,r,n){for(var o=0,a=0,s=e;s<r;s++)o+=t.crossTabInfo.cross.widths[s];for(var l=i;l<n;l++)a+=t.crossTabInfo.cross.heights[l];return new g(o,a)},t.renderCells=function(t,i,r,s,l,u,c){t.crossTabInfo.hidedCells.clear();for(var p=c.left-t.crossTabInfo.cross.coordX[r],h=c.top-t.crossTabInfo.cross.coordY[s],S=s;S<u;S++)for(var y=r;y<l;y++){var b=t.crossTabInfo.cross.cells[y][S];if(null==t.crossTabInfo.hidedCells.get(b)){var C=null;if(b.isImage){var v=null;null!=b.field?(v=new d,v.border=b.field.border.clone().sti_as(o)):(v=new d,v.border.side=a.All),null!=b.value&&(v.image=n.getImageFromObject(b.value)),b.field.sti_is(e.StiCrossSummary)&&(v.stretch=b.field.stretch,v.aspectRatio=b.field.aspectRatio,v.horAlignment=b.field.imageHorAlignment,v.vertAlignment=b.field.imageVertAlignment),C=v}else{var I=null;if(null!=b.field){I=b.width>1||b.height>1||!b.isNumeric||b.field.sti_is(e.StiCrossHeader)?b.field.clone(!0).sti_as(e.StiCrossField):b.field;var A=I.sti_as(e.StiCrossHeader);null!=A&&(A.headerLevel=b.level,A.headerValue=null!=b.value?b.value.toString():null),I.border=b.field.border.clone().sti_as(o),I.maxSize=new g(0,0),I.minSize=new g(0,0),b.height>1&&(I.canBreak=!0)}else b.width<=1&&b.height<=1||(I=new m,I.border.side=a.All);null!=I&&(I.setTextInternal(b.text),C=I)}null!=C&&(C.hyperlinkValue=b.hyperlinkValue,C.toolTipValue=b.toolTipValue,C.tagValue=b.tagValue,C.drillDownParameters=b.drillDownParameters,b.field.sti_is(e.StiCrossColumn)?StiOptions.Export.optimizeDataOnlyMode?C.componentPlacement="d":C.componentPlacement="h":b.field.sti_is(e.StiCrossHeader)?StiOptions.Export.optimizeDataOnlyMode?C.componentPlacement="d":C.componentPlacement="h":b.field.sti_is(e.StiCrossTitle)?C.componentPlacement="h":C.componentPlacement="d",C.componentPlacement.length>0&&null!=b.field&&null!=b.field.parent&&(C.componentPlacement+="."+b.field.parent.name),i.components.add(C));var w=y+b.width,T=S+b.height;w>l&&(w=l),T>u&&(T=u);for(var B=y;B<w;B++)for(var R=S;R<T;R++){var P=t.crossTabInfo.cross.cells[B][R];t.crossTabInfo.hidedCells.set(P,P)}for(var F=0,x=0,B=y;B<w;B++)F+=t.crossTabInfo.cross.widths[B];for(var R=S;R<T;R++)x+=t.crossTabInfo.cross.heights[R];var D=new f(t.crossTabInfo.cross.coordX[y],t.crossTabInfo.cross.coordY[S],F,x);D.x+=p,D.y+=h,null!=C&&(C.clientRectangle=D.clone())}}},t.createCrossForCrossTabDataSource=function(t){return r.setData(t,!0,t.parent.sti_as(h)),this.buildCrossForCrossTabDataSource(t,!1)},t.buildCrossForCrossTabDataSource=function(t,i){for(var r=new u(null),n=new u(null),o=new u(null),a=new u(null),l=new u(null),h=new u(null),g=new p,m=0,d=t.components.list;m<d.length;m++){var S=d[m];if(S.sti_is(e.StiCrossCell)||S.sti_is(e.StiCrossTitle)||S.sti_is(e.StiCrossSummaryHeader)){var f=S.sti_as(e.StiCrossRow),y=S.sti_as(e.StiCrossColumn),b=S.sti_as(e.StiCrossSummary),C=S.sti_as(e.StiCrossSummaryHeader),v=S.sti_as(e.StiCrossTitle);if(null!=v){v.typeOfComponent.startsWith("Row:")&&l.add(v),v.typeOfComponent.startsWith("Col:")&&h.add(v);continue}null!=f&&(n.add(f),f.isTotalVisible||(f.total.height=0)),null!=y&&(r.add(y),y.isTotalVisible||(y.total.width=0)),null!=b&&o.add(b),null!=C&&a.add(C);var I=new c(S.name,Object);g.columns.add(I),S.sti_is(e.StiCrossHeader)&&(I=new c("Display__"+S.name,Object),g.columns.add(I))}}if(!i){t.first();while(!t.isEof){for(var f=g.newRow(),A=0,w=t.components.list;A<w.length;A++){var S=w[A];if(S.sti_is(e.StiCrossSummaryHeader))continue;var T=S.sti_as(e.StiCrossCell);if(null!=T){var B=new e.StiGetCrossValueEventArgs;T.invokeGetCrossValue(B),f.sett(T.name,B.value),T.sti_is(e.StiCrossHeader)&&(B=new e.StiGetCrossValueEventArgs,T.sti_as(e.StiCrossHeader).InvokeGetDisplayCrossValue(B),f.sett("Display__"+S.name,B.value))}else if(S.sti_is(e.StiCrossTitle)){var R=new s;S.invokeGetValue(S,R),S.setTextInternal(R.value)}}g.rows.add(f),t.next()}}return g},t.buildCross=function(t,i){for(var r=new u(null),n=new u(null),o=new u(null),a=new u(null),h=new u(null),g=new u(null),m=null,d=null,S=null,f=new p,y=0,b=t.components.list;y<b.length;y++){var C=b[y];if(C.sti_is(e.StiCrossCell)||C.sti_is(e.StiCrossTitle)||C.sti_is(e.StiCrossSummaryHeader)){var v=C.sti_as(e.StiCrossRow),I=C.sti_as(e.StiCrossColumn),A=C.sti_as(e.StiCrossSummary),w=C.sti_as(e.StiCrossSummaryHeader),T=C.sti_as(e.StiCrossTitle);if(null!=T){T.typeOfComponent.startsWith("Row:")&&h.add(T),T.typeOfComponent.startsWith("Col:")&&g.add(T),T.typeOfComponent.startsWith("LeftTitle")&&(m=T),T.typeOfComponent.startsWith("RightTitle")&&(d=T),T.typeOfComponent.startsWith("SummaryTitle")&&(S=T);continue}null!=v&&(n.add(v),v.isTotalVisible||(v.total.height=0)),null!=I&&(r.add(I),I.isTotalVisible||(I.total.width=0)),null!=A&&o.add(A),null!=w&&a.add(w);var B=new c(C.name,Object);f.columns.add(B),C.sti_is(e.StiCrossHeader)&&(B=new c("Display__"+C.name,Object),f.columns.add(B))}}if(!i){t.first();while(!t.isEof){for(var v=f.newRow(),R=0,P=t.components.list;R<P.length;R++){var C=P[R];if(C.sti_is(e.StiCrossSummaryHeader))continue;var F=C.sti_as(e.StiCrossCell);if(null!=F){var x=new e.StiGetCrossValueEventArgs;F.invokeGetCrossValue(x);var D=x.value;null!=D&&D.sti_is(Number)&&(D=D.toNumber()),v.sett(F.name,D),F.sti_is(e.StiCrossHeader)&&(x=new e.StiGetCrossValueEventArgs,F.invokeGetDisplayCrossValue(x),v.sett("Display__"+C.name,x.value))}else if(C.sti_is(e.StiCrossTitle)){var k=new s;C.invokeGetValue(C,k),C.setTextInternal(k.value)}}f.rows.add(v),t.next()}}t.crossTabInfo.cross=new l,t.crossTabInfo.cross.designTime=i,t.crossTabInfo.cross.colFields=r,t.crossTabInfo.cross.rowFields=n,t.crossTabInfo.cross.sumFields=o,t.crossTabInfo.cross.sumHeaderFields=a,t.crossTabInfo.cross.colTitleFields=g,t.crossTabInfo.cross.rowTitleFields=h,t.crossTabInfo.cross.leftCrossTitle=m,t.crossTabInfo.cross.rightCrossTitle=d,t.crossTabInfo.cross.summaryCrossTitle=S,t.crossTabInfo.cross.crossTab=t,t.crossTabInfo.cross.create(f,t.report,t.summaryDirection,t.emptyValue),t.crossTabInfo.cross.crossTab=null},t.getEndCol=function(t,i,r){var n=t.crossTabInfo.cross.colCount;if(t.horAlignment!=e.StiCrossHorAlignment.None&&t.horAlignment!=e.StiCrossHorAlignment.Left&&!t.wrap)return n;for(var o=i,a=0,s=i;s<t.crossTabInfo.cross.colCount;s++){if((a+=t.crossTabInfo.cross.widths[s])>r.width)break;o++}return o==i&&o+1<=n&&o++,o},t.getEndRow=function(t,e,i){for(var r=t.crossTabInfo.cross.rowCount,n=e,o=0,a=e;a<t.crossTabInfo.cross.rowCount;a++){if((o+=t.crossTabInfo.cross.heights[a])>i.height)break;n++}return n==e&&n+1<=r&&n++,n},t.getPageSegmentsRequired=function(t){if(t.horAlignment==e.StiCrossHorAlignment.Width||t.wrap)return 1;for(var i=t.crossTabInfo.cross,r=t.page,n=r.pageWidth-r.margins.left-r.margins.right,o=1,a=0,s=0;s<i.colCount;s++)n<a+i.widths[s]&&(o++,a=0),a+=i.widths[s];return o},t.isColFieldsEmpty=function(t){return 1==t.crossTabInfo.cross.colFields.count&&t.crossTabInfo.cross.colFields.getByIndex(0).name==l.emptyField},t.isRowFieldsEmpty=function(t){return 1==t.crossTabInfo.cross.rowFields.count&&t.crossTabInfo.cross.rowFields.getByIndex(0).name==l.emptyField},t.createCross=function(t){r.setData(t,!0,t.parent.sti_as(h)),this.buildCross(t,!1),t.crossTabInfo.cross.maxWidth=t.page.width,t.crossTabInfo.cross.maxHeight=t.page.height,t.rightToLeft&&this.makeRightToLeft(t),t.crossTabInfo.cross.doAutoSize()},t.makeRightToLeft=function(t){for(var e=t.crossTabInfo.cross,i=Array.create(Array,e.colCount),r=0;r<e.colCount;r++){i[r]=Array.create(S,e.rowCount);for(var n=0;n<e.rowCount;n++){var o=e.cells[e.colCount-r-1][n];i[r][n]=o}}for(var a=new b,r=0;r<e.colCount;r++)for(var n=0;n<e.rowCount;n++)if(n<2){var o=i[e.colCount-r-1][n];if(null!=o&&o.width>1&&!o.isChangeWidthForRightToLeft){var s=0;a.contains(o.text)?(s=Math.trunc(a.get(o.text)),2==o.width&&a.remove(o.text)):(s=r,a.set(o.text,r));var l=i[e.colCount-s-o.width][n];o.isChangeWidthForRightToLeft=!0,l.isChangeWidthForRightToLeft=!0,i[e.colCount-s-o.width][n]=o,i[e.colCount-r-1][n]=l}}else{var o=i[r][n];if(null!=o&&o.width>1){var l=i[r-o.width+1][n];i[r-o.width+1][n]=o,i[r][n]=l}}a.clear(),e.cells=i;for(var c=new u,r=e.colFields.count-1;r>=0;r--)c.add(e.colFields.getByIndex(r))},t.calculateMaxAndMin=function(t,e,i,r){var n=e.ref,o=i.ref;n=0,o=0;for(var a=r;a<t.components.count;a++){var s=t.components.getByIndex(a);a==r?(n=s.left,o=s.right):(n=Math.min(n,s.left),o=Math.max(o,s.right))}e.ref=n,i.ref=o},t.makeHorAlignmentByWidth=function(t,e){var r=0,n=0,o={ref:r},a={ref:n};this.calculateMaxAndMin(t,o,a,e),r=o.ref,n=a.ref;for(var s=new b,l=e;l<t.components.count;l++){var u=t.components.getByIndex(l);s.set(u.left,u.left),s.set(u.right,u.right)}var c=t.width/(n-r),p=Array.create(Number,s.count);s.keys.copyTo(p,0);for(var h=0,g=p;h<g.length;h++){var d=g[h],S=d-r;S=y.alignToGrid(S*c,.01,!0),s.set(d,S)}for(var l=e;l<t.components.count;l++){var u=t.components.getByIndex(l),f=0;s.containsKey(u.left)&&(f=s.get(u.left));var C=0;if(s.containsKey(u.right)&&(C=s.get(u.right)),u.left=f,u.width=C-f,c<1){var v=u.sti_as(m);null!=v&&(v.font=i.changeFontSize(v.font,v.font.size*c))}}},t.clearCross=function(t){if(null!=t&&null!=t.crossTabInfo&&null!=t.crossTabInfo.cross){var e=t.crossTabInfo.cross.clear();t.crossTabInfo.cross=null}},t.isCrossTabRendering=!1,t}();e.StiCrossTabHelper=C}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=t.System.Drawing.Rectangle,n=t.System.Collections.Hashtable,o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultWidth=60,e.defaultHeight=14,e.hidedCells=new n,e.cross=null,e.renderRect=r.empty,e.finishRender=!1,e}return __extends(e,t),e}(i);e.StiCrossTabInfo=o}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=function(){function t(){this._startRow=0,this._startColumn=0,this._renderingIsFinished=!1,this._allowRendering=!0,this._destinationRectangle=i.empty}return Object.defineProperty(t.prototype,"startRow",{get:function(){return this._startRow},set:function(t){this._startRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startColumn",{get:function(){return this._startColumn},set:function(t){this._startColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderingIsFinished",{get:function(){return this._renderingIsFinished},set:function(t){this._renderingIsFinished=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRendering",{get:function(){return this._allowRendering},set:function(t){this._allowRendering=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destinationRectangle",{get:function(){return this._destinationRectangle},set:function(t){this._destinationRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destinationContainer",{get:function(){return this._destinationContainer},set:function(t){this._destinationContainer=t},enumerable:!0,configurable:!0}),t}();e.StiCrossTabParams=r}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiSolidBrush,n=t.System.Drawing.Color,o=t.Base.Localization.StiLocalization,a=function(t){function i(){var e=t.call(this)||this;return e._printOnAllPages=!0,e._typeOfComponent=String.empty,e.brush=new r(n.lightGray),e}return __extends(i,t),i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("TextFormat"),i.removeProperty("HideZeros"),i.removeProperty("Conditions"),i.addPropertyBool("PrintOnAllPages",this.printOnAllPages,!0),i.addPropertyStringNullOfEmpty("TypeOfComponent",this.typeOfComponent),i},i.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"PrintOnAllPages":this.printOnAllPages=n.value.toBoolean();break;case"TypeOfComponent":this.typeOfComponent=n.value.toString();break}}},i.prototype.loadFromXml=function(e){t.prototype.loadFromXml.call(this,e);var i=e.getAttribute("Ref");String.isNullOrEmpty(i)||(this.report.jsonLoaderHelper.refNames[i.toNumber()]=e.nodeName);for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];switch(n.nodeName){case"PrintOnAllPages":this.printOnAllPages=n.textContent.toBoolean();break;case"TypeOfComponent":this.typeOfComponent=n.textContent.toString();break}}},Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCrossTitle},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return o.get("Components","StiCrossTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"printOnAllPages",{get:function(){return this._printOnAllPages},set:function(t){this._printOnAllPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"typeOfComponent",{get:function(){return this._typeOfComponent},set:function(t){this._typeOfComponent=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellText",{get:function(){return this.getTextInternal()},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(i.StiCrossField);i.StiCrossTitle=a}(i=e.CrossTab||(e.CrossTab={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Text.XMLConvert,r=t.System.ComponentModel.TypeConverter,n=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return __extends(n,r),Object.defineProperty(n.prototype,"GetPropertiesSupported",{get:function(){return!1},enumerable:!0,configurable:!0}),n.rangeToString=function(t){return(new n).convertTo(null,null,t,String)},n.stringToRange=function(t){return(new n).convertFrom(null,null,t)},n.prototype.convertTo=function(t,n,o,a){if(a==String){var s=o.sti_as(e.CharRange);if(null!=s)return String.stiFormat("Char,{0},{1}",i.encodeName(s.from.toString()),i.encodeName(s.to.toString()));var l=null,u=null,c=o.sti_as(e.DateTimeRange);if(null!=c){try{l=c.from?c.from.toString():"",u=c.to?c.to.toString():""}finally{}return String.stiFormat("DateTime,{0},{1}",i.encodeName(l),i.encodeName(u))}var p=o.sti_as(e.TimeSpanRange);if(null!=p){try{l=p.from?p.from.toString():"",u=p.to?p.to.toString():""}finally{}return String.stiFormat("TimeSpan,{0},{1}",i.encodeName(l),i.encodeName(u))}var h=o.sti_as(e.DecimalRange);if(null!=h)return String.stiFormat("Decimal,{0},{1}",i.encodeName(h.from.toString().replaceAll(",",".")),i.encodeName(h.to.toString().replaceAll(",",".")));var g=o.sti_as(e.FloatRange);if(null!=g)return String.stiFormat("Float,{0},{1}",i.encodeName(g.from.toString().replaceAll(",",".")),i.encodeName(g.to.toString().replaceAll(",",".")));var m=o.sti_as(e.DoubleRange);if(null!=m)return String.stiFormat("Double,{0},{1}",i.encodeName(m.from.toString().replaceAll(",",".")),i.encodeName(m.to.toString().replaceAll(",",".")));var d=o.sti_as(e.ByteRange);if(null!=d)return String.stiFormat("Byte,{0},{1}",d.from,d.to);var S=o.sti_as(e.ShortRange);if(null!=S)return String.stiFormat("Short,{0},{1}",S.from,S.to);var f=o.sti_as(e.IntRange);if(null!=f)return String.stiFormat("Int,{0},{1}",f.from,f.to);var y=o.sti_as(e.LongRange);if(null!=y)return String.stiFormat("Long,{0},{1}",y.from,y.to);var b=o.sti_as(e.GuidRange);if(null!=b)return String.stiFormat("Guid,{0},{1}",i.encodeName(b.from.toString()),i.encodeName(b.to.toString()));var C=o.sti_as(e.StringRange);if(null!=C)return String.stiFormat("String,{0},{1}",i.encodeName(C.from.toString()),i.encodeName(C.to.toString()))}return r.prototype.convertTo.call(this,t,n,o,a)},n.prototype.canConvertFrom=function(t,e){if("string"==typeof e)return!0;return r.prototype.canConvertFrom.call(this,t,e)},n.prototype.canConvertTo=function(t,e){if("object"==typeof e)return!0;if("string"==typeof e)return!0;return r.prototype.canConvertTo.call(this,t,e)},n.prototype.convertFrom=function(n,o,a){if("string"==typeof a){var s=a.sti_as(String),l=s.split(",");if("Char"==l[0])return new e.CharRange(i.decodeName(l[1])[0],i.decodeName(l[2])[0]);if("DateTime"==l[0]){var u=void 0,c=void 0;try{var p=i.decodeName(l[1]),h=i.decodeName(l[2]);u=String.isNullOrEmpty(p.trim())?null:new t.System.DateTime(Date.parse(p)),c=String.isNullOrEmpty(h.trim())?null:new t.System.DateTime(Date.parse(h))}finally{}return new e.DateTimeRange(u,c)}if("TimeSpan"==l[0]){var g=void 0,m=void 0;try{var p=i.decodeName(l[1]),h=i.decodeName(l[2]);g=String.isNullOrEmpty(p.trim())?null:t.System.TimeSpan.fromString(p),m=String.isNullOrEmpty(h.trim())?null:t.System.TimeSpan.fromString(h)}finally{}return new e.TimeSpanRange(g,m)}if("Decimal"==l[0]){var d=".",S=parseFloat(i.decodeName(l[1]).replaceAll(".",",").replaceAll(",",d)),f=parseFloat(i.decodeName(l[2]).replaceAll(".",",").replaceAll(",",d));return new e.DecimalRange(S,f)}if("Float"==l[0]){var d=".",S=parseFloat(i.decodeName(l[1]).replaceAll(".",",").replaceAll(",",d)),f=parseFloat(i.decodeName(l[2]).replaceAll(".",",").replaceAll(",",d));return new e.FloatRange(S,f)}if("Double"==l[0]){var d=".",S=parseFloat(i.decodeName(l[1]).replaceAll(".",",").replaceAll(",",d)),f=parseFloat(i.decodeName(l[2]).replaceAll(".",",").replaceAll(",",d));return new e.DoubleRange(S,f)}if("Byte"==l[0]){var S=parseInt(l[1]),f=parseInt(l[2]);return new e.ByteRange(S,f)}if("Short"==l[0]){var S=parseInt(l[1]),f=parseInt(l[2]);return new e.ShortRange(S,f)}if("Int"==l[0]){var S=parseInt(l[1]),f=parseInt(l[2]);return new e.IntRange(S,f)}if("Long"==l[0]){var S=parseInt(l[1]),f=parseInt(l[2]);return new e.LongRange(S,f)}if("Guid"==l[0]){var p=i.decodeName(l[1]),h=i.decodeName(l[2]),y=void 0,b=void 0;return y=String.isNullOrEmpty(p)?t.System.Guid.empty:new t.System.Guid(p),b=String.isNullOrEmpty(h)?t.System.Guid.empty:new t.System.Guid(h),new e.GuidRange(y,b)}if("String"==l[0]){var p=i.decodeName(l[1]),h=i.decodeName(l[2]);return new e.StringRange(p,h)}}return r.prototype.convertFrom.call(this,n,o,a)},n}(r);e.RangeConverter=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.System.Drawing.Size,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"rulerStep",{get:function(){return 100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"factor",{get:function(){return 100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shortName",{get:function(){return"hi"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return"HundredthsOfInch"},enumerable:!0,configurable:!0}),e.prototype.convertToHInches=function(e){if(e.sti_is(i))return t.prototype.convertToHInches.call(this,e);if(e.sti_is(r))return t.prototype.convertToHInches.call(this,e);return e},e.prototype.convertFromHInches=function(e){if(e.sti_is(i))return t.prototype.convertFromHInches.call(this,e);if(e.sti_is(r))return t.prototype.convertFromHInches.call(this,e);return e},e}(e.StiUnit);e.StiHundredthsOfInchUnit=n}(i=e.Units||(e.Units={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.System.Drawing.Size,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"rulerStep",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"factor",{get:function(){return 100/2.54},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shortName",{get:function(){return"cm"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return"Centimeters"},enumerable:!0,configurable:!0}),e.prototype.convertToHInches=function(e){if("number"!=typeof e)return t.prototype.convertToHInches.call(this,e);return 100*e/2.54},e.prototype.convertFromHInches=function(e){if(e.sti_is(i))return t.prototype.convertFromHInches.call(this,e);if(e.sti_is(r))return t.prototype.convertFromHInches.call(this,e);return 2.54*e/100},e}(e.StiUnit);e.StiCentimetersUnit=n}(i=e.Units||(e.Units={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.System.Drawing.Size,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"rulerStep",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"factor",{get:function(){return 100/2.54},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shortName",{get:function(){return"mm"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return"Millimeters"},enumerable:!0,configurable:!0}),e.prototype.convertToHInches=function(e){if(e.sti_is(i))return t.prototype.convertToHInches.call(this,e);if(e.sti_is(r))return t.prototype.convertToHInches.call(this,e);return 10*e/2.54},e.prototype.convertFromHInches=function(e){if(e.sti_is(i))return t.prototype.convertFromHInches.call(this,e);if(e.sti_is(r))return t.prototype.convertFromHInches.call(this,e);return 2.54*e/10},e}(t.Report.Units.StiUnit);e.StiMillimetersUnit=n}(i=e.Units||(e.Units={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiAction,n=t.Report.Units.StiMillimetersUnit,o=t.Report.Units.StiCentimetersUnit,a=t.Report.Units.StiHundredthsOfInchUnit,s=t.System.Drawing.Color,l=t.Base.Drawing.StiColorUtils,u=t.Report.Components.StiQuickInfoType,c=function(){function t(t){void 0===t&&(t=null),this._forceDesigningMode=!1,this._quickInfoType=u.None,this._generateLocalizedName=!1,this._showDimensionLines=!0,this._quickInfoOverlay=!0,this._isComponentsMoving=!1,this._currentAction=r.None,this._isTableMode=!1,this._drawEventMarkers=!0,this._drawMarkersWhenMoving=!0,this._runDesignerAfterInsert=!0,this._useLastFormat=!1,this._autoSaveInterval=15,this._enableAutoSaveMode=!1,this._showOrder=!1,this._alignToGrid=!0,this._autoSaveReportToReportClass=!1,this._showHeaders=!0,this._showGrid=!0,this._showInteractive=!0,this._zoom=.75,this._showRulers=!0,this._gridSizePixels=8,this._gridSizeCentimetres=.2,this._gridSizeHundredthsOfInch=10,this._gridSizeInch=.1,this._gridSizeMillimeters=2,this._fillBands=!0,this._fillCrossBands=!0,this._fillContainer=!0,this._fillComponent=!0,this._useComponentColor=!0,this._gridMode=e.StiGridMode.Lines,this._report=t}return t.prototype.clone=function(e){var i=new t(e);return i._forceDesigningMode=this._forceDesigningMode,i._quickInfoType=this._quickInfoType,i._generateLocalizedName=this._generateLocalizedName,i._showDimensionLines=this._showDimensionLines,i._quickInfoOverlay=this._quickInfoOverlay,i._isComponentsMoving=this._isComponentsMoving,i._currentAction=this._currentAction,i._isTableMode=this._isTableMode,i._drawMarkersWhenMoving=this._drawMarkersWhenMoving,i._runDesignerAfterInsert=this._runDesignerAfterInsert,i._useLastFormat=this._useLastFormat,i._autoSaveInterval=this._autoSaveInterval,i._enableAutoSaveMode=this._enableAutoSaveMode,i._showOrder=this._showOrder,i._alignToGrid=this._alignToGrid,i._autoSaveReportToReportClass=this._autoSaveReportToReportClass,i._showGrid=this._showGrid,i._showInteractive=this._showInteractive,i._zoom=this._zoom,i._showRulers=this._showRulers,i._gridSizePixels=this._gridSizePixels,i._gridSizeCentimetres=this._gridSizeCentimetres,i._gridSizeHundredthsOfInch=this._gridSizeHundredthsOfInch,i._gridSizeInch=this._gridSizeInch,i._gridSizeMillimeters=this._gridSizeMillimeters,i._fillBands=this._fillBands,i._fillCrossBands=this._fillCrossBands,i._fillContainer=this._fillContainer,i._fillComponent=this._fillComponent,i._useComponentColor=this._useComponentColor,i._gridMode=this._gridMode,i._forceDesigningMode=this._forceDesigningMode,i._quickInfoType=this._quickInfoType,i._generateLocalizedName=this._generateLocalizedName,i._showDimensionLines=this._showDimensionLines,i._quickInfoOverlay=this._quickInfoOverlay,i._isComponentsMoving=this._isComponentsMoving,i._currentAction=this._currentAction,i._isTableMode=this._isTableMode,i._drawEventMarkers=this._drawEventMarkers,i._drawMarkersWhenMoving=this._drawMarkersWhenMoving,i._runDesignerAfterInsert=this._runDesignerAfterInsert,i._useLastFormat=this._useLastFormat,i._autoSaveInterval=this._autoSaveInterval,i._enableAutoSaveMode=this._enableAutoSaveMode,i._showOrder=this._showOrder,i._alignToGrid=this._alignToGrid,i._autoSaveReportToReportClass=this._autoSaveReportToReportClass,i._showHeaders=this._showHeaders,i._showGrid=this._showGrid,i._showInteractive=this._showInteractive,i._zoom=this._zoom,i._showRulers=this._showRulers,i._gridSizePixels=this._gridSizePixels,i._gridSizeCentimetres=this._gridSizeCentimetres,i._gridSizeHundredthsOfInch=this._gridSizeHundredthsOfInch,i._gridSizeInch=this._gridSizeInch,i._gridSizeMillimeters=this._gridSizeMillimeters,i._fillBands=this._fillBands,i._fillCrossBands=this._fillCrossBands,i._fillContainer=this._fillContainer,i._fillComponent=this._fillComponent,i._useComponentColor=this._useComponentColor,i._gridMode=this._gridMode,i},Object.defineProperty(t.prototype,"forceDesigningMode",{get:function(){return this._forceDesigningMode},set:function(t){this._forceDesigningMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quickInfoType",{get:function(){return this._quickInfoType},set:function(t){this._quickInfoType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"generateLocalizedName",{get:function(){return this._generateLocalizedName},set:function(t){this._generateLocalizedName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showDimensionLines",{get:function(){return this._showDimensionLines},set:function(t){this._showDimensionLines=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quickInfoOverlay",{get:function(){return this._quickInfoOverlay},set:function(t){this._quickInfoOverlay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isComponentsMoving",{get:function(){return this._isComponentsMoving},set:function(t){this._isComponentsMoving=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAction",{get:function(){return this._currentAction},set:function(t){this._currentAction=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTableMode",{get:function(){return this._isTableMode},set:function(t){this._isTableMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"drawEventMarkers",{get:function(){return this._drawEventMarkers},set:function(t){this._drawEventMarkers=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"drawMarkersWhenMoving",{get:function(){return this._drawMarkersWhenMoving},set:function(t){this._drawMarkersWhenMoving=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runDesignerAfterInsert",{get:function(){return this._runDesignerAfterInsert},set:function(t){this._runDesignerAfterInsert=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useLastFormat",{get:function(){return this._useLastFormat},set:function(t){this._useLastFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoSaveInterval",{get:function(){return this._autoSaveInterval},set:function(t){this._autoSaveInterval=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableAutoSaveMode",{get:function(){return this._enableAutoSaveMode},set:function(t){this._enableAutoSaveMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showOrder",{get:function(){return this._showOrder},set:function(t){this._showOrder=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignToGrid",{get:function(){return this._alignToGrid},set:function(t){this._alignToGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoSaveReportToReportClass",{get:function(){return this._autoSaveReportToReportClass},set:function(t){this._autoSaveReportToReportClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHeaders",{get:function(){return this._showHeaders},set:function(t){this._showHeaders=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showGrid",{get:function(){return this._showGrid},set:function(t){this._showGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showInteractive",{get:function(){return this._showInteractive},set:function(t){this._showInteractive=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zoom",{get:function(){return this._zoom},set:function(t){this._zoom=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showRulers",{get:function(){return this._showRulers},set:function(t){this._showRulers=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSizePixels",{get:function(){return this._gridSizePixels},set:function(t){this._gridSizePixels=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSizeCentimetres",{get:function(){return this._gridSizeCentimetres},set:function(t){this._gridSizeCentimetres=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSizeHundredthsOfInch",{get:function(){return this._gridSizeHundredthsOfInch},set:function(t){this._gridSizeHundredthsOfInch=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSizeInch",{get:function(){return this._gridSizeInch},set:function(t){this._gridSizeInch=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSizeMillimeters",{get:function(){return this._gridSizeMillimeters},set:function(t){this._gridSizeMillimeters=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSize",{get:function(){if(this.report.unit.sti_is(n))return this.report.info.gridSizeMillimeters;if(this.report.unit.sti_is(o))return this.report.info.gridSizeCentimetres;if(this.report.unit.sti_is(a))return this.report.info.gridSizeHundredthsOfInch;return this.report.info.gridSizeInch},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillBands",{get:function(){return this._fillBands},set:function(t){this._fillBands=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillCrossBands",{get:function(){return this._fillCrossBands},set:function(t){this._fillCrossBands=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillContainer",{get:function(){return this._fillContainer},set:function(t){this._fillContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillComponent",{get:function(){return this._fillComponent},set:function(t){this._fillComponent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useComponentColor",{get:function(){return this._useComponentColor},set:function(t){this._useComponentColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridMode",{get:function(){return this._gridMode},set:function(t){this._gridMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"report",{get:function(){return this._report},set:function(t){this._report=t},enumerable:!0,configurable:!0}),t.prototype.getFillColor=function(t){var e=s.empty;return this.useComponentColor?e=s.fromArgb(40,t):(e=l.dark(s.white,40),e=s.fromArgb(100,e)),e},t}();i.StiDesignerInfo=c}(i=e.Design||(e.Design={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.Base.Services.StiService,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceCategory",{get:function(){return i.get("Services","categoryDictionary")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serviceType",{get:function(){return e.getStiType()},enumerable:!0,configurable:!0}),e.prototype.getDataCategoryName=function(t){return null},e.getDataAdapter=function(t){var e=StiOptions.Services.dataAdapters.where(function(t){return t.serviceEnabled}),i=null;if(null!=i)return i;return e.firstOrDefault(function(e){return e.getDataSourceType()==t.getStiType()})},e.getDataAdapter2=function(t){if(null==t||null==t.data)return null;for(var e=t.data.getStiType(),i=0,r=StiOptions.Services.dataAdapters.where(function(t){return t.serviceEnabled});i<r.length;i++){var n=r[i];if(null!=n&&n.isAdapterDataType(e))return n}return null},e.prototype.create=function(t,e){return void 0===e&&(e=!0),null},e.prototype.getDataSourceType=function(){return null},e.prototype.getDataTypes=function(){return null},e.prototype.isAdapterDataType=function(t){if(null==t)return!1;var e=this.getDataTypes();if(null==e)return!1;for(var i=0,r=e;i<r.length;i++){if(r[i]==t)return!0}return!1},e.prototype.getColumnsFromDataAsync=function(t,e,i){return null},e.prototype.getColumnsFromData=function(t,e,i){return null},e.prototype.getParametersFromData=function(t,e){return},e.prototype.setDataSourceNames=function(t,e){},e.prototype.connectDataSourceToDataAsync=function(t,e,i){return null},e.prototype.connectDataSourceToData=function(t,e,i){},e.prototype.toString=function(){return this.serviceName},e}(r);e.StiDataAdapterService=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Activator,n=t.Base.Localization.StiLocalization,o=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),o.prototype.setDataSourceNames=function(t,e){e.sti_as(i.StiDataStoreSource).nameInSource=t.name},o.prototype.create=function(t,i){void 0===i&&(i=!0);var o=r.createInstance(this.getDataSourceType());return null!=o&&i&&(o.name=o.alias=e.StiNameCreation.createName(t.report,n.get("PropertyMain","DataSource")),t.dataSources.add(o)),o},o}(i.StiDataAdapterService);i.StiDataStoreAdapterService=o}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return String.stiFormat(i.get("Adapters","AdapterConnection"))},enumerable:!0,configurable:!0}),e.prototype.getDataCategoryName=function(t){return t.name},e}(e.StiDataStoreAdapterService);e.StiFileAdapterService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiCsvHelper,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return"CSV"},enumerable:!0,configurable:!0}),n.prototype.getColumnsFromData=function(t,n){var o=new i.StiDataColumnsCollection,a=n.sti_as(i.StiCsvSource);if(null==a)return o;try{for(var s=r.getTable(a.path,a.codePage,a.separator),l=0,u=s.columns.list;l<u.length;l++){var c=u[l],p=e.StiNameValidator.correctName(c.columnName);o.add(new i.StiDataColumn(p,c.caption,"",c.dataType))}}catch(t){}return o},n.prototype.getParametersFromData=function(t,e){return new i.StiDataParametersCollection},n.prototype.setDataSourceNames=function(e,i){t.prototype.setDataSourceNames.call(this,e,i);var r=i.path;r=null==r||0==r.trim().length?"Csv":r.substr(r.lastIndexOf(".")),i.name=r,i.alias=r},n.prototype.getDataSourceType=function(){return i.StiCsvSource},n.prototype.getDataTypes=function(){return[i.StiCsvSource]},n.prototype.connectDataSourceToData=function(t,e,i){try{e.disconnect();var n=e,o=r.getTable(n.path,n.codePage,n.separator);i||o.rows.clear(),o.tableName=n.name,e.dataTable=o,this.checkConvertNulls(n)}catch(t){}},n.prototype.checkConvertNulls=function(t){if(null==t.dictionary||null==t.dictionary.report)return;if(!t.convertEmptyStringToNull)return;for(var e=t.dataTable,i=Array.create(Boolean,e.columns.count),r=0;r<e.columns.count;r++){var n=e.columns.getByIndex(r),o=t.columns.getByName(n.columnName);null!=o&&o.type!=String&&(i[r]=!0)}for(var a=0,s=e.rows.list;a<s.length;a++)for(var l=s[a],r=0;r<e.columns.count;r++)if(i[r]){var u=l.getValueByIndex(r);u.sti_is(String)&&u==String.empty&&l.setValueByIndex(r,null)}},n}(i.StiFileAdapterService);i.StiCsvAdapterService=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.getDataCategoryName=function(t){return t.name},r.prototype.testConnection=function(e){try{return""}catch(e){return t.System.StiError.showError(e,!1),i.get("DesignerFx","ConnectionError")+": "+e.message}},r}(e.StiDataStoreAdapterService);e.StiNoSqlAdapterService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),Object.defineProperty(i.prototype,"name",{get:function(){return"MongoDB"},enumerable:!0,configurable:!0}),i.prototype.getDataSourceType=function(){return t.StiMongoDbSource},i.prototype.getColumnsFromData=function(e,i){var r=new t.StiDataColumnsCollection,n=i;return r},i.prototype.connectDataSourceToData=function(t,e,i){if(e.disconnect(),!i)return},i}(t.StiNoSqlAdapterService);t.StiMongoDbAdapterService=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Promise,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"serviceName",{get:function(){return i.get("Adapters","AdapterVirtualSource")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isObjectAdapter",{get:function(){return!0},enumerable:!0,configurable:!0}),n.prototype.getDataTypes=function(){return null},n.prototype.getColumnsFromDataAsync=function(t,i,n){var o=new r;return o.callTry(new e.StiDataColumnsCollection),o},n.prototype.getColumnsFromData=function(t,i,r){return new e.StiDataColumnsCollection},n.prototype.getParametersFromData=function(t,i){return new e.StiDataParametersCollection},n.prototype.getDataCategoryName=function(t){return this.serviceName},n.prototype.getDataSourceType=function(){return e.StiVirtualSource},n.prototype.connectDataSourceToDataAsync=function(t,e,i){var n=new r;return e.disconnect(),n.callTry(),n},n.prototype.connectDataSourceToData=function(t,e,i){e.disconnect()},n}(e.StiDataStoreAdapterService);e.StiVirtualAdapterService=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Data.DataColumn,r=t.Base.StiDataColumnSchema,n=t.Base.StiDataTableSchema,o=t.System.Collections.Hashtable,a=t.Base.StiDataSchema,s=t.System.Data.DataTable,l=t.Base.Localization.StiLocalization,u=t.System.Promise,c=function(c){function p(){return c.call(this)||this}return __extends(p,c),Object.defineProperty(p.prototype,"url",{get:function(){return StiOptions.WebServer.url},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"serviceName",{get:function(){return String.stiFormat(l.get("Adapters","AdapterConnection"),this.name)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"name",{get:function(){return"MS SQL"},enumerable:!0,configurable:!0}),p.prototype.getDatabaseSpecificName=function(t){return String.stiFormat("[{0}]",t)},p.prototype.getDataCategoryName=function(t){return t.name},p.prototype.getColumnsFromDataAsync=function(i,r,n){var o=new u,a=new e.StiDataColumnsCollection,s=r;try{if(String.isNullOrEmpty(s.sqlCommand))o.callCatch();else{var l=s.type==e.StiSqlSourceType.StoredProcedure;l||0||this.retrieveDataAsync(s.dictionary.report,s,n,s.sqlCommand).try(function(t){for(var i=0,r=t.columns.list;i<r.length;i++){var n=r[i],s=n.dataType;a.add(new e.StiDataColumn(n.columnName,n.columnName,n.columnName,s))}o.callTry(a)}).catch(function(t){o.callCatch(t)}).abort(o)}}catch(e){t.System.StiError.showError(e,!1)}return o},p.prototype.getParametersFromData=function(t,i){var r=new e.StiDataParametersCollection,n=i;if(n.type==e.StiSqlSourceType.StoredProcedure)try{String.isNullOrEmpty(n.sqlCommand)}catch(t){}return r},p.prototype.getDataSourceType=function(){return e.StiSqlSource},p.prototype.connectDataSourceToDataAsync=function(e,i,r){var n=new u;if(i.disconnect(),!r)return i.dataTable=new s,n.callTry(),n;var o=i,a=o.nameInSource.toLower();try{o.retrieveDataAsync(!r).try(function(){n.callTry()}).catch(function(t){n.callCatch(t)}).abort(n)}catch(e){t.System.StiError.showError(e,!1),n.callCatch(e)}return n},p.prototype.callRemoteApi=function(e,i){var r=new u;e.rnd=Math.random();try{if(String.isNullOrEmpty(this.url))r.callCatch('The database type is not supported by pure JavaScript. Please read <a href="https://www.stimulsoft.com/en/documentation/online/programming-manual/index.html?reports_js_connect_to_mysql_and_ms_sql_database.htm">documentation</a>.');else{var n=new XMLHttpRequest;n.open("post",this.url,!0),n.timeout=i,n.onload=function(){if(200==n.status){var t=n.responseText;n.abort(),r.callTry(t)}},n.onerror=function(t){r.callCatch(l.get("DesignerFx","ConnectionError"))};var o=JSON.stringify(e);n.send(o)}}catch(e){t.System.StiError.showError(e,!1),r.callCatch(e.message)}return r.catch(function(t){n&&n.abort()}),r.onAbort(function(){n&&n.abort()}),r},p.prototype.process=function(e,i,r){var n=this,o=new u;p.callTurn.insert(0,{command:i,timeout:r,promise:o});var a=function(){if(p.callTurn.length>0){var i=p.callTurn.peek(),r=function(r){var n=r;try{if(null!=r&&r.sti_is(String)&&(n=JSON.parse(r)),n.hasOwnProperty("types")&&null!=n.types&&n.types.sti_is(Array))for(var o in n.types)if("array"==n.types[o])for(var s=0,l=n.rows;s<l.length;s++){var u=l[s];u[o]=t.System.Convert.fromBase64String(u[o])}}catch(t){n={success:!1,notice:"Error Parse."}}var c={result:n};e.invokeEndProcessData(c),c.result.success?i.promise.callTry(c.result):i.promise.callCatch(c.result),p.callTurn.pop(),a()};i.command.preventDefault=!1,e.invokeBeginProcessData(i.command,r),0==i.command.preventDefault&&(delete i.command.preventDefault,n.callRemoteApi(i.command,i.timeout).timeout(i.timeout).try(function(e){try{r(e)}catch(e){t.System.StiError.showError(e,!1),i.promise.callCatch({success:!1,notice:e.message}),p.callTurn.pop(),a()}}).catch(function(t){i.promise.callCatch({success:!1,notice:t}),p.callTurn.pop(),a()}).abort(o))}};return 1==p.callTurn.length&&a(),o},p.prototype.testConnectionAsync=function(t,e){var i=new u;if(String.isNullOrEmpty(e))return i.callCatch(l.get("DesignerFx","ConnectionError")+": Connection string empty"),i;var r={command:"TestConnection",connectionString:e,database:this.name};return this.process(t,r,1e4).try(function(t){i.callTry(l.get("DesignerFx","ConnectionSuccessfull"))}).catch(function(t){i.callCatch(l.get("DesignerFx","ConnectionError")+": "+t.notice)}).abort(i),i},p.prototype.createConnectionInDataStore=function(i,r){try{if(null==r.name)return;var n=i.dataStore.toList().firstOrDefault(function(t){return null!=t.name&&t.name.toLower()==r.name.toLower()});null!=n&&i.dataStore.remove(n),n=new e.StiData(r.name,null),n.isReportData=!0,i.dataStore.add(n)}catch(e){t.System.StiError.showError(e,!1)}},p.prototype.retrieveSchemaAsync=function(e,i,s,c){void 0===c&&(c=null);var p=new u;if(String.isNullOrEmpty(s))return p.callCatch(l.get("DesignerFx","ConnectionError")+": Connection string empty"),p;c||(c="SELECT TABLE_NAME, TABLE_TYPE FROM INFORMATION_SCHEMA.TABLES");var h={command:"ExecuteQuery",connectionString:s,queryString:c.replaceAll("\t"," ").replaceAll("\\t"," ").replaceAll("\r"," ").replaceAll("\n"," "),database:this.name};if(i){var g=i.nameInSource.indexOf(".");-1==g&&(g=i.nameInSource.length);var m=i.nameInSource.substring(0,g);h.dataSource=i.name,h.connection=m}var d=i?1e3*i.commandTimeout:30*1e3,S=this,f=new a;S.process(e,h,d).try(function(i){for(var a=new o,s="",l=0,u=i.rows;l<u.length;l++){var c=u[l],g=c[i.columns.indexOf("TABLE_NAME")],m=c[i.columns.indexOf("TABLE_TYPE")],b=n.newTableOrView(g);a.set(g,b),String.isNullOrEmpty(s)?s=" WHERE ":s+=" OR ",s+="TABLE_NAME='"+g+"'","BASE TABLE"==m&&f.tables.add(b),"VIEW"==m&&f.views.add(b)}if(s.length<=0)return void y(f);h.queryString="SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS"+s,S.process(e,h,d).try(function(e){for(var i=0,o=e.rows;i<o.length;i++){var s=o[i],l=s[e.columns.indexOf("TABLE_NAME")],u=s[e.columns.indexOf("COLUMN_NAME")],c=s[e.columns.indexOf("DATA_TYPE")],p=String;switch(c.toLower()){case"bigint":p=t.System.Int64;break;case"numeric":case"bit":p=t.System.Int16;break;case"smallint":p=t.System.Int16;break;case"decimal":p=t.System.Decimal;break;case"smallmoney":p=t.System.Decimal;break;case"int":p=t.System.Int32;break;case"tinyint":p=t.System.Int16;break;case"money":p=t.System.Decimal;break;case"float":case"real":p=t.System.Float;break;case"date":case"datetimeoffset":case"datetime2":case"smalldatetime":case"datetime":case"time":p=t.System.DateTime;break;case"char":case"varchar":case"text":case"nchar":case"nvarchar":case"ntext":case"binary strings":p=String;break;case"binary":case"varbinary":case"image":p=t.System.ByteArray;break;case"cursor":case"timestamp":case"hierarchyid":case"uniqueidentifier":case"sql_variant":case"xml":case"table":case"spatial types":}var h=new r(u,p),g=a.get(l).sti_as(n);null!=g&&g.columns.add(h)}}).catch(function(e){t.System.StiError.showError(e.notice)}).finally(function(t){y(f)}).abort(p)}).catch(function(t){p.callCatch(t.notice)}).abort(p);var y=function(t){h.queryString="SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_TYPE='PROCEDURE'",S.process(e,h,d).try(function(e){for(var i=0,r=e.rows;i<r.length;i++){var o=r[i],a=o[e.columns.indexOf("ROUTINE_NAME")],s=n.newProcedure(a);t.storedProcedures.add(s)}p.callTry(t)}).catch(function(t){p.callCatch(t.notice)}).abort(p)};return p},p.prototype.retrieveDataAsync=function(e,r,n,o){var a=new u;String.isNullOrEmpty(n)&&a.callCatch("connectionString empty"),String.isNullOrEmpty(o)&&a.callCatch("queryString empty");var l={command:"ExecuteQuery",connectionString:n,queryString:o.replaceAll("\t"," ").replaceAll("\\t"," ").replaceAll("\r"," ").replaceAll("\n"," "),database:this.name};if(r){var c=r.nameInSource.indexOf(".");-1==c&&(c=r.nameInSource.length);var p=r.nameInSource.substring(0,c);l.dataSource=r.name,l.connection=p}var h=r?1e3*r.commandTimeout:30*1e3,g;return this.process(e,l,h).try(function(e){try{g=new s("table1");for(var r in e.columns){var n=e.columns[r],o=String;if(e.hasOwnProperty("types")&&null!=e.types)switch(e.types[r]){case"number":o=t.System.Int32;break;case"string":o=String;break;case"array":o=t.System.ByteArray;break;case"datetime":o=t.System.DateTime;break}var l=new i(n,o);g.columns.add(l)}for(var u=0,c=e.rows;u<c.length;u++){var p=c[u],h=g.addNewRow();for(var r in p){var l=g.columns.list[r],m=p[r];h.setValue(l,m)}}a.callTry(g)}catch(e){t.System.StiError.showError(e,!1),a.callCatch(e.message)}}).catch(function(t){a.callCatch(t.notice)}).abort(a),a},p.callTurn=[],p}(e.StiDataStoreAdapterService);e.StiSqlAdapterService=c}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Data.DataTable,n=t.System.Data.DataColumn,o=t.Base.StiODataHelper,a=t.Base.StiDataSchema,s=t.System.Promise,l=function(l){function u(){return null!==l&&l.apply(this,arguments)||this}return __extends(u,l),Object.defineProperty(u.prototype,"serviceName",{get:function(){return i.get("Adapters","AdapterDataTables")},enumerable:!0,configurable:!0}),u.prototype.getDataSourceType=function(){return e.StiODataSource},u.prototype.connectDataSourceToDataAsync=function(e,i,r){var n=new s,o=this;return setTimeout(function(){try{o.connectDataSourceToData(e,i,r),n.callTry()}catch(e){t.System.StiError.showError(e,!1),n.callCatch(e.message)}}),n},u.prototype.connectDataSourceToData=function(t,i,a){if(!a)return;i.disconnect();for(var s=i.sti_as(e.StiODataSource),l,u=0;u<t.databases.count;u++){var c=t.databases.getByIndex(u).sti_as(e.StiODataDatabase);if(null!=c&&c.name==s.nameInSource){l=c;break}}if(null==l)return;for(var p=new r(s.name),u=0;u<s.columns.count;u++){var h=s.columns.list[u];p.columns.add(new n(h.name,h.type))}new o(l.connectionString).fillDataTable(p,s.sqlCommand),s.dataTable=p},u.prototype.testConnectionAsync=function(e,r){var n=new s;try{var a=new o(r),l=a.testConnection();1==l.success?n.callTry(i.get("DesignerFx","ConnectionSuccessfull")):n.callCatch(i.get("DesignerFx","ConnectionError")+": "+l.notice)}catch(e){t.System.StiError.showError(e,!1),n.callCatch(i.get("DesignerFx","ConnectionError")+": "+e.message)}return n},u.prototype.retrieveSchemaAsync=function(e,i,r,n){void 0===n&&(n=null);var l=new s;if(String.isNullOrEmpty(r))return l.callCatch("connectionString empty"),l;var u=new a;try{u=new o(r).retrieveSchema(),l.callTry(u)}catch(e){t.System.StiError.showError(e,!1),l.callCatch(e.message)}return l},u}(e.StiSqlAdapterService);e.StiODataAdapterService=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiDataSchema,r=t.Base.StiDataColumnSchema,n=t.Base.StiDataTableSchema,o=t.System.Collections.Hashtable,a=t.Base.Localization.StiLocalization,s=t.System.Promise,l=function(l){function u(){return null!==l&&l.apply(this,arguments)||this}return __extends(u,l),Object.defineProperty(u.prototype,"name",{get:function(){return"Firebird"},enumerable:!0,configurable:!0}),u.prototype.getDataSourceType=function(){return e.StiFirebirdSource},u.prototype.retrieveSchemaAsync=function(e,l,u,c){void 0===c&&(c=null);var p=new s;if(String.isNullOrEmpty(u))return p.callCatch(a.get("DesignerFx","ConnectionError")+": Connection string empty"),p;c||(c="SELECT RDB$RELATION_NAME, RDB$VIEW_BLR FROM RDB$RELATIONS WHERE (RDB$SYSTEM_FLAG IS NULL OR RDB$SYSTEM_FLAG = 0)");var h={command:"ExecuteQuery",connectionString:u,queryString:c,database:this.name};if(l){var g=l.nameInSource.indexOf(".");-1==g&&(g=l.nameInSource.length);var m=l.nameInSource.substring(0,g);h.dataSource=l.name,h.connection=m}var d=l?1e3*l.commandTimeout:30*1e3,S=this;return S.process(e,h,d).try(function(a){for(var s=new i,l=new o,u="",c=0;c<a.columns.length;c++)a.columns[c]=a.columns[c].toLowerCase();for(var g=0,m=a.rows;g<m.length;g++){var f=m[g],y=f[a.columns.indexOf("rdb$relation_name")].trim(),b=f[a.columns.indexOf("rdb$view_blr")],C=n.newTableOrView(y);l.set(y,C),String.isNullOrEmpty(u)?u=" AND (":u+=" OR ",u+="b.RDB$RELATION_NAME='"+y+"'",null==b?s.tables.add(C):s.views.add(C)}String.isNullOrEmpty(u)||(u+=") "),h.queryString="SELECT b.RDB$FIELD_NAME, d.RDB$TYPE_NAME, b.RDB$RELATION_NAME "+"FROM   RDB$RELATIONS a "+"INNER JOIN RDB$RELATION_FIELDS b "+"ON     a.RDB$RELATION_NAME = b.RDB$RELATION_NAME "+"INNER JOIN RDB$FIELDS c "+"ON     b.RDB$FIELD_SOURCE = c.RDB$FIELD_NAME "+"INNER JOIN RDB$TYPES d "+"ON     c.RDB$FIELD_TYPE = d.RDB$TYPE "+"WHERE  a.RDB$SYSTEM_FLAG = 0 "+"AND  d.RDB$FIELD_NAME = 'RDB$FIELD_TYPE'"+u+"ORDER BY a.RDB$RELATION_NAME, b.RDB$FIELD_ID",S.process(e,h,d).try(function(e){for(var i=0;i<e.columns.length;i++)e.columns[i]=e.columns[i].toLowerCase();for(var o=0,a=e.rows;o<a.length;o++){var s=a[o],u=s[e.columns.indexOf("rdb$relation_name")].trim(),c=s[e.columns.indexOf("rdb$field_name")].trim(),p=s[e.columns.indexOf("rdb$type_name")].trim(),h=String;switch(p){case"BLOB":h=t.System.ByteArray;break;case"CHAR":case"CHARACTER":case"VARCHAR":case"VARYING":case"CHAR VARYING":case"CHARACTER VARYING":case"NCHAR":case"NATIONAL CHAR":case"NATIONAL CHARACTER":h=String;break;case"DATE":case"TIME":case"TIMESTAMP":h=t.System.DateTime;break;case"DECIMAL":h=t.System.Decimal;break;case"LONG":h=t.System.Long;break;case"SHORT":h=t.System.Short;break;case"DOUBLE PRECISION":h=t.System.Double;break;case"FLOAT":h=t.System.Float;break;case"INT64":h=t.System.Int64;break;case"INTEGER":h=t.System.Int32;break;case"NUMERIC":h=t.System.Int64;break;case"SMALLINT":h=t.System.Int16;break}var g=new r(c,h),m=l.get(u).sti_as(n);null!=m&&m.columns.add(g)}}).catch(function(e){t.System.StiError.showError(e.notice)}).finally(function(t){p.callTry(s)})}).catch(function(t){p.callCatch(t.notice)}).abort(p),p},u}(e.StiSqlAdapterService);e.StiFirebirdAdapterService=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiDataSchema,r=t.Base.StiDataColumnSchema,n=t.Base.StiDataTableSchema,o=t.System.Collections.Hashtable,a=t.Base.Localization.StiLocalization,s=t.System.Promise,l=function(l){function u(){return null!==l&&l.apply(this,arguments)||this}return __extends(u,l),Object.defineProperty(u.prototype,"name",{get:function(){return"MySQL"},enumerable:!0,configurable:!0}),u.prototype.getDatabaseSpecificName=function(t){return String.stiFormat("`{0}`",t)},u.prototype.getDataSourceType=function(){return e.StiMySqlSource},u.prototype.retrieveSchemaAsync=function(e,l,u,c){void 0===c&&(c=null);var p=new s;if(String.isNullOrEmpty(u))return p.callCatch(a.get("DesignerFx","ConnectionError")+": Connection string empty"),p;var h={command:"ExecuteQuery",connectionString:u,queryString:c,database:this.name};if(l){var g=l.nameInSource.indexOf(".");-1==g&&(g=l.nameInSource.length);var m=l.nameInSource.substring(0,g);h.dataSource=l.name,h.connection=m}if(null==h.queryString){for(var d="",S=0,f=u.split(";");S<f.length;S++){var y=f[S];if(y){var b=y.split("=");if(b&&b.length>=2)switch(b[0]=b[0].trim().toLowerCase(),b[1]=b[1].trim(),b[0]){case"database":case"data source":d=b[1];break}}}h.queryString="SELECT TABLE_NAME, TABLE_TYPE FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '"+d+"'"}var C=l?1e3*l.commandTimeout:30*1e3,v=this;v.process(e,h,C).try(function(a){for(var s=new i,l=new o,u="",c=0,g=a.rows;c<g.length;c++){var m=g[c],d=m[a.columns.indexOf("TABLE_NAME")],S=m[a.columns.indexOf("TABLE_TYPE")],f=n.newTableOrView(d);l.set(d,f),String.isNullOrEmpty(u)?u=" WHERE ":u+=" OR ",u+="TABLE_NAME='"+d+"'","BASE TABLE"==S&&s.tables.add(f),"VIEW"==S&&s.views.add(f)}if(u.length<=0)return void I(s);h.queryString="SELECT TABLE_NAME, COLUMN_NAME, COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS"+u,v.process(e,h,C).try(function(e){for(var i=0,n=e.rows;i<n.length;i++){var o=n[i],a=o[e.columns.indexOf("TABLE_NAME")],s=o[e.columns.indexOf("COLUMN_NAME")],u=o[e.columns.indexOf("COLUMN_TYPE")],c=String;switch(u.indexOf("(")>0&&(u=u.substr(0,u.indexOf("("))),u.indexOf(" ")>0&&(u=u.substr(0,u.indexOf(" "))),u.toUpper()){case"CHAR":case"VARCHAR":case"TINYTEXT":case"TEXT":case"MEDIUMTEXT":case"LONGTEXT":c=String;break;case"BLOB":case"MEDIUMBLOB":case"LONGBLOB":c=t.System.ByteArray;break;case"ENUM":case"SET":c=String;break;case"TINYINT":c=t.System.Int16;break;case"SMALLINT":c=t.System.Int16;break;case"MEDIUMINT":c=t.System.Int32;break;case"INT":c=t.System.Int16;break;case"BIGINT":c=t.System.Int64;break;case"FLOAT":c=t.System.Float;break;case"DOUBLE":c=t.System.Double;break;case"DECIMAL":c=t.System.Decimal;break;case"DATE":case"DATETIME":case"TIMESTAMP":case"TIME":case"YEAR":c=t.System.DateTime;break}var p=new r(s,c),h=l.get(a);null!=h&&h.columns.add(p)}}).catch(function(e){t.System.StiError.showError(e.notice)}).finally(function(t){I(s)}).abort(p)}).catch(function(t){p.callCatch(t.notice)}).abort(p);var I=function(t){h.queryString="SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_TYPE='PROCEDURE'",v.process(e,h,C).try(function(e){for(var i=0,r=e.rows;i<r.length;i++){var o=r[i],a=o[e.columns.indexOf("ROUTINE_NAME")],s=n.newProcedure(a);t.storedProcedures.add(s)}p.callTry(t)}).catch(function(t){p.callCatch(t.notice)}).abort(p)};return p},u}(e.StiSqlAdapterService);e.StiMySqlAdapterService=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiDataSchema,r=t.Base.StiDataColumnSchema,n=t.Base.StiDataTableSchema,o=t.System.Collections.Hashtable,a=t.Base.Localization.StiLocalization,s=t.System.Promise,l=function(l){function u(){return null!==l&&l.apply(this,arguments)||this}return __extends(u,l),Object.defineProperty(u.prototype,"name",{get:function(){return"Oracle"},enumerable:!0,configurable:!0}),u.prototype.getDataSourceType=function(){return e.StiOracleSource},u.prototype.retrieveSchemaAsync=function(e,l,u,c){void 0===c&&(c=null);var p=new s;if(String.isNullOrEmpty(u))return p.callCatch(a.get("DesignerFx","ConnectionError")+": Connection string empty"),p;c||(c="SELECT OWNER, TABLE_NAME FROM ALL_TABLES WHERE OWNER NOT IN ('SYS','SYSTEM','OUTLN','WMSYS','CTXSYS','ORDSYS','XDB','MDSYS','TSMSYS','LBACSYS')");var h={command:"ExecuteQuery",connectionString:u,queryString:c,database:this.name};if(l){var g=l.nameInSource.indexOf(".");-1==g&&(g=l.nameInSource.length);var m=l.nameInSource.substring(0,g);h.dataSource=l.name,h.connection=m}var d=l?1e3*l.commandTimeout:30*1e3,S=this,f=new i;return S.process(e,h,d).try(function(i){for(var a=new o,s="",l=0,u=i.rows;l<u.length;l++){var c=u[l],g=c[i.columns.indexOf("OWNER")],m=c[i.columns.indexOf("TABLE_NAME")],y=n.newTableOrView(g+"."+m);a.set(m,y),String.isNullOrEmpty(s)?s=" WHERE ":s+=" OR ",s+="TABLE_NAME='"+m+"'",f.tables.add(y)}if(s.length<=0)return void p.callTry(f);h.queryString="SELECT TABLE_NAME, COLUMN_NAME FROM ALL_TAB_COLS"+s,S.process(e,h,d).try(function(t){for(var e=0,i=t.rows;e<i.length;e++){var o=i[e],s=o[t.columns.indexOf("TABLE_NAME")],l=o[t.columns.indexOf("COLUMN_NAME")],u=new r(l),c=a.get(s).sti_as(n);null!=c&&c.columns.add(u)}}).catch(function(e){t.System.StiError.showError(e.notice)}).finally(function(t){p.callTry(f)}).abort(p)}).catch(function(t){p.callCatch(t.notice)}).abort(p),p},u}(e.StiSqlAdapterService);e.StiOracleAdapterService=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiDataColumnSchema,r=t.Base.StiDataTableSchema,n=t.System.Collections.Hashtable,o=t.Base.StiDataSchema,a=t.Base.Localization.StiLocalization,s=t.System.Promise,l=function(l){function u(){return null!==l&&l.apply(this,arguments)||this}return __extends(u,l),Object.defineProperty(u.prototype,"name",{get:function(){return"PostgreSQL"},enumerable:!0,configurable:!0}),u.prototype.getDataSourceType=function(){return e.StiPostgreSQLSource},u.prototype.retrieveSchemaAsync=function(e,l,u,c){void 0===c&&(c=null);var p=new s;if(String.isNullOrEmpty(u))return p.callCatch(a.get("DesignerFx","ConnectionError")+": Connection string empty"),p;c||(c="SELECT TABLE_NAME, TABLE_TYPE FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'public'");var h={command:"ExecuteQuery",connectionString:u,queryString:c,database:this.name};if(l){var g=l.nameInSource.indexOf(".");-1==g&&(g=l.nameInSource.length);var m=l.nameInSource.substring(0,g);h.dataSource=l.name,h.connection=m}var d=l?1e3*l.commandTimeout:30*1e3,S=this,f=new o;S.process(e,h,d).try(function(o){for(var a=new n,s="",l=0,u=o.rows;l<u.length;l++){var c=u[l],g=c[o.columns.indexOf(o.columns.firstOrDefault(function(t){return"TABLE_NAME"==t.toUpperCase()}))],m=c[o.columns.indexOf(o.columns.firstOrDefault(function(t){return"TABLE_TYPE"==t.toUpperCase()}))],b=r.newTableOrView(g);a.set(g,b),String.isNullOrEmpty(s)?s=" WHERE ":s+=" OR ",s+="TABLE_NAME='"+g+"'","BASE TABLE"==m&&f.tables.add(b),"VIEW"==m&&f.views.add(b)}if(s.length<=0)return void y(f);h.queryString="SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS"+s,S.process(e,h,d).try(function(t){for(var e=0,n=t.rows;e<n.length;e++){var o=n[e],s=o[t.columns.indexOf(t.columns.firstOrDefault(function(t){return"TABLE_NAME"==t.toUpperCase()}))],l=o[t.columns.indexOf(t.columns.firstOrDefault(function(t){return"COLUMN_NAME"==t.toUpperCase()}))],u=o[t.columns.indexOf(t.columns.firstOrDefault(function(t){return"DATA_TYPE"==t.toUpperCase()}))],c=new i(l),p=a.get(s).sti_as(r);null!=p&&p.columns.add(c)}}).catch(function(e){t.System.StiError.showError(e.notice)}).finally(function(t){y(f)}).abort(p)}).catch(function(t){p.callCatch(t.notice)}).abort(p);var y=function(t){h.queryString="SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_TYPE='PROCEDURE'",S.process(e,h,d).try(function(e){for(var i=0,n=e.rows;i<n.length;i++){var o=n[i],a=o[e.columns.indexOf("ROUTINE_NAME")],s=r.newProcedure(a);t.storedProcedures.add(s)}p.callTry(t)}).catch(function(t){p.callCatch(t.notice)}).abort(p)};return p},u}(e.StiSqlAdapterService);e.StiPostgreSQLAdapterService=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Promise,n=t.Base.StiDataSchema,o=t.Base.StiDataColumnSchema,a=t.Base.StiDataTableSchema,s=t.System.Data.DataSet,l=function(l){function u(){var t=l.call(this)||this;return t._name="Custom",t}return __extends(u,l),u.registerCustomAdapterService=function(t){var e=new u;e._name=t.name,e.processUserFunction=t.process,StiOptions.Services.dataAdapters.add(e)},Object.defineProperty(u.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),u.prototype.getDataSourceType=function(){return e.StiCustomSource},u.prototype.callRemoteApi=function(e,i){var n=this,o=new r,a,s;try{a=setTimeout(function(){null!=s&&clearTimeout(s),delete e.event,n.processUserFunction(e,function(t){return o.callTry(t)})}),s=setTimeout(function(){o.catch(function(t){null!=a&&clearTimeout(a)})},i)}catch(e){t.System.StiError.showError(e,!1),o.callCatch(e.message)}return o},u.prototype.retrieveDataAsync=function(e,i,n,o){var a=new r;String.isNullOrEmpty(n)&&a.callCatch("connectionString empty"),String.isNullOrEmpty(o)&&a.callCatch("queryString empty");var l={command:"RetrieveData",connectionString:n,queryString:o.replaceAll("\t"," ").replaceAll("\\t"," ").replaceAll("\r"," ").replaceAll("\n"," "),database:this.name},u=i?1e3*i.commandTimeout:30*1e3,c;return this.process(e,l,u).try(function(e){try{var i=new s;i.readJson({table1:e.data}),a.callTry(i.tables.getByIndex(0))}catch(e){t.System.StiError.showError(e,!1),a.callCatch(e.message)}}).catch(function(t){a.callCatch(t.notice)}).abort(a),a},u.prototype.retrieveSchemaAsync=function(t,e,l,u){void 0===u&&(u=null);var c=new r;if(String.isNullOrEmpty(l))return c.callCatch(i.get("DesignerFx","ConnectionError")+": Connection string empty"),c;var p={command:"RetrieveSchema",connectionString:l,database:this.name},h=e?1e3*e.commandTimeout:30*1e3;return this.process(t,p,h).try(function(t){var e=new s;e.readJson(t.data);for(var i=new n,r=0,l=e.tables.list;r<l.length;r++){for(var u=l[r],p=a.newTableOrView(u.tableName),h=0,g=u.columns.list;h<g.length;h++){var m=g[h],d=new o(m.columnName,m.dataType);p.columns.add(d)}i.tables.add(p)}c.callTry(i)}).catch(function(t){c.callCatch(t.notice)}).abort(c),c},u}(e.StiSqlAdapterService);e.StiCustomAdapterService=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function r(){}return r.getBuilder=function(i){var r=this.typeToBuilder.get(i);return null==r&&(t.Report.Components.StiChart&&(i===t.Report.Components.StiChart||i.prototype instanceof t.Report.Components.StiChart)?r=new e.StiChartBuilder:t.Report.Components.StiGauge&&(i===t.Report.Components.StiGauge||i.prototype instanceof t.Report.Components.StiGauge)?r=new e.StiGaugeBuilder:i===t.Report.Maps.StiMap||i.prototype instanceof t.Report.Maps.StiMap?r=new e.StiMapBuilder:i===t.Report.Components.StiColumnFooterBand||i.prototype instanceof t.Report.Components.StiColumnFooterBand?r=new e.StiColumnFooterBandBuilder:i===t.Report.Components.StiColumnHeaderBand||i.prototype instanceof t.Report.Components.StiColumnHeaderBand?r=new e.StiColumnHeaderBandBuilder:i===t.Report.CrossTab.StiCrossTab||i.prototype instanceof t.Report.CrossTab.StiCrossTab?r=new e.StiCrossTabBuilder:i===t.Report.Components.StiHierarchicalBand||i.prototype instanceof t.Report.Components.StiHierarchicalBand?r=new e.StiHierarchicalBandBuilder:i===t.Report.Components.StiDataBand||i.prototype instanceof t.Report.Components.StiDataBand||i===t.Report.Components.StiCrossDataBand||i.prototype instanceof t.Report.Components.StiCrossDataBand||i===t.Report.Components.Table.StiTable||i.prototype instanceof t.Report.Components.Table.StiTable?r=new e.StiDataBandBuilder:i===t.Report.Components.StiFooterBand||i.prototype instanceof t.Report.Components.StiFooterBand||i===t.Report.Components.StiCrossFooterBand||i.prototype instanceof t.Report.Components.StiCrossFooterBand?r=new e.StiFooterBandBuilder:i===t.Report.Components.StiGroupFooterBand||i.prototype instanceof t.Report.Components.StiGroupFooterBand||i===t.Report.Components.StiCrossGroupFooterBand||i.prototype instanceof t.Report.Components.StiCrossGroupFooterBand?r=new e.StiGroupFooterBandBuilder:i===t.Report.Components.StiGroupHeaderBand||i.prototype instanceof t.Report.Components.StiGroupHeaderBand||i===t.Report.Components.StiCrossGroupHeaderBand||i.prototype instanceof t.Report.Components.StiCrossGroupHeaderBand?r=new e.StiGroupHeaderBandBuilder:i===t.Report.Components.StiHeaderBand||i.prototype instanceof t.Report.Components.StiHeaderBand||i===t.Report.Components.StiCrossHeaderBand||i.prototype instanceof t.Report.Components.StiCrossHeaderBand?r=new e.StiHeaderBandBuilder:i===t.Report.Components.StiImage||i.prototype instanceof t.Report.Components.StiImage||i===t.Report.Components.Table.StiTableCellImage||i.prototype instanceof t.Report.Components.Table.StiTableCellImage?r=new e.StiImageBuilder:i===t.Report.Components.StiPage||i.prototype instanceof t.Report.Components.StiPage?r=new e.StiPageBuilder:i===t.Report.Components.StiPointPrimitive||i.prototype instanceof t.Report.Components.StiPointPrimitive||i===t.Report.Components.StiEndPointPrimitive||i.prototype instanceof t.Report.Components.StiEndPointPrimitive||i===t.Report.Components.StiStartPointPrimitive||i.prototype instanceof t.Report.Components.StiStartPointPrimitive?r=new e.StiPointPrimitiveBuilder:i===t.Report.Components.StiVerticalLinePrimitive||i.prototype instanceof t.Report.Components.StiVerticalLinePrimitive||i===t.Report.Components.StiRoundedRectanglePrimitive||i.prototype instanceof t.Report.Components.StiRoundedRectanglePrimitive||i===t.Report.Components.StiRectanglePrimitive||i.prototype instanceof t.Report.Components.StiRectanglePrimitive?r=new e.StiCrossLinePrimitiveBuilder:i===t.Report.Components.StiSubReport||i.prototype instanceof t.Report.Components.StiSubReport?r=new e.StiSubReportBuilder:i===t.Report.Components.StiSimpleText||i.prototype instanceof t.Report.Components.StiSimpleText||i===t.Report.Components.Table.StiTableCell||i.prototype instanceof t.Report.Components.Table.StiTableCell?r=new e.StiSimpleTextBuilder:i===t.Report.Components.StiView||i.prototype instanceof t.Report.Components.StiView?r=new e.StiViewBuilder:i===t.Report.Components.StiBand||i.prototype instanceof t.Report.Components.StiBand?r=new e.StiBandBuilder:i===t.Report.Components.StiContainer||i.prototype instanceof t.Report.Components.StiContainer?r=new e.StiContainerBuilder:(i===t.Report.Components.StiComponent||i.prototype instanceof t.Report.Components.StiComponent)&&(r=new e.StiComponentBuilder),this.typeToBuilder.set(i,r)),r},r.prototype.setReportVariables=function(t){},r.prototype.prepare=function(t){},r.prototype.unPrepare=function(t){},r.prototype.internalRender=function(t){return null},r.prototype.render=function(t){return null},r.typeToBuilder=new i,r}();e.StiBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Report.Styles.StiBaseStyle,n=t.System.EventArgs,o=t.Report.Components.StiSubReport,a=t.Base.Drawing.StiBorderSides,s=t.Report.Components.StiEmptyBand,l=t.Report.Components.IStiTextBrush,u=t.Report.Components.IStiFont,c=t.Report.Components.IStiBrush,p=t.Report.Components.IStiBorder,h=t.Report.Components.StiComponentHelper,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.setReportVariables=function(t){},e.prototype.prepare=function(t){h.fillComponentPlacement(t),StiOptions.Engine.allowResetValuesAtComponent&&(t.tagValue=null,t.toolTipValue=null,t.bookmarkValue=null,t.hyperlinkValue=null)},e.prototype.unPrepare=function(t){},e.prototype.internalRender=function(t){return t.clone(!1)},e.prototype.render=function(t){var e=null,h=t.sti_as(l),g=t.sti_as(c),m=t.sti_as(u),d=t.sti_as(p),S=null,f=null,y=null,b=a.None;null!=h&&(S=h.textBrush),null!=g&&(f=g.brush),null!=m&&(y=m.font),null!=d&&null!=d.border&&(b=d.border.side);var C=t.enabled,v=t.report,I=!1,A=null;if(t.useParentStyles&&null!=t.parent&&(null!=v&&null!=v.engine&&null!=v.engine.hashParentStyles&&v.engine.hashParentStyles.count>0&&(A=v.engine.hashParentStyles.get(t.parent).sti_as(r)),null==A&&(A=r.getStyle(t.parent)),null!=A)){A.setStyleToComponent(t),I=!0;var w=t.getComponentStyle2();null!=w&&w.setStyleToComponent(t)}if(t.invokeBeforePrint(t,n.empty),null!=v&&null!=v.engine&&v.engine.hashUseParentStyles.containsKey(t)){var T=r.getStyle(t,A);null==v.engine.hashParentStyles&&(v.engine.hashParentStyles=new i),v.engine.hashParentStyles.set(t,T),I=!0}t.isEnabled&&(t.sti_is(s)||t.doBookmark(),null!=(e=t.internalRender())&&e.invokeEvents()),t.invokeAfterPrint(t,n.empty),I&&null!=v.engine.hashParentStyles&&v.engine.hashParentStyles.remove(t),null!=h&&(h.textBrush=S),null!=g&&(g.brush=f),null!=m&&(m.font=y),null!=d&&null!=d.border&&(d.border.side=b),t.sti_is(o)||(t.enabled=C);var B=t.sti_as(p);if(null!=B){var R=e?e.sti_as(p):null;null!=R&&B.border!=R.border&&B.border.stiEquals(R.border)&&(R.border=B.border)}var P=t.sti_as(c);if(null!=P){var F=e?e.sti_as(c):null;null!=F&&P.brush!=F.brush&&P.brush.stiEquals(F.brush)&&(F.brush=P.brush)}var x=t.sti_as(l);if(null!=x){var D=e?e.sti_as(l):null;null!=D&&x.textBrush!=D.textBrush&&x.textBrush.stiEquals(D.textBrush)&&(D.textBrush=x.textBrush)}return t.isRendered=!0,e},e}(e.StiBuilder);e.StiComponentBuilder=g}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiBand,n=t.Report.Components.StiGroupHeaderBand,o=t.Report.Components.IStiComponentsOwnerRenderer,a=t.Report.Components.StiComponentType,s=t.Report.Components.StiContainerHelper,l=t.Report.Components.StiContainer,u=t.Report.Components.StiPanel,c=function(c){function p(){return null!==c&&c.apply(this,arguments)||this}return __extends(p,c),p.getRenderContainer=function(e,i){void 0===i&&(i=null);var o=null;null!=i?(o=t.System.Activator.createInstance(i),o.clientRectangle=e.clientRectangle.clone()):e.sti_is(u)?(o=new u(e.clientRectangle.clone()),o.columns=e.columns):o=new l(e.clientRectangle.clone()),o.minSize=e.minSize,o.maxSize=e.maxSize,o.dockStyle=e.dockStyle,o.name=e.name,o.parentComponentIsBand=e.sti_is(r),o.parentComponentIsCrossBand=e.sti_is(t.Report.Components.StiCrossDataBand),o.canBreak=e.canBreak,o.canGrow=e.canGrow,o.canShrink=e.canShrink,o.growToHeight=e.growToHeight,o.shiftMode=e.shiftMode,o.printable=e.printable,o.printOn=e.printOn,o.componentStyle=e.componentStyle,o.currentBookmark=e.currentBookmark,o.parentBookmark=e.parentBookmark,o.guid=e.guid,o.interaction=e.interaction,o.drillDownParameters=e.drillDownParameters,e.sti_is(n)&&(o.collapsingIndex=e.collapsingIndex,o.collapsedValue=e.collapsedValue),e.sti_is(t.Report.Components.StiDataBand)&&(o.collapsingIndex=e.collapsingIndex,o.collapsedValue=e.collapsedValue,o.collapsingTreePath=e.collapsingTreePath);var a=e.sti_as(r);null!=a&&(a.bandInfo.forceCanBreak&&(o.canBreak=!0),a.bandInfo.forceCanGrow&&(o.canGrow=!0));var s=e.sti_as(l);return null!=s&&(o.brush=s.brush.clone(),o.border=s.border.clone()),StiOptions.Export.optimizeDataOnlyMode&&(o.componentPlacement=e.componentPlacement),o},p.prototype.internalRender=function(r){var n=r,u=!1,c=p.getRenderContainer(n);if(n.report.calculationMode==e.StiCalculationMode.Interpretation&&(c.bookmark=n.bookmark,c.hyperlink=n.hyperlink,c.tag=n.tag),!n.sti_is(o))for(var h=0,g=n.components.list;h<g.length;h++){var m=g[h];if(null==m.parentBookmark&&(m.parentBookmark=n.currentBookmark),m.componentType==a.Simple){m.parentBookmark=n.currentBookmark;var d=m.render();if(null!=d){var S=d.sti_as(l);if(null!=S&&-1!=S.containerInfo.setSegmentPerWidth&&(c.containerInfo.setSegmentPerWidth=S.containerInfo.setSegmentPerWidth),c.components.add(d),StiOptions.Engine.allowInteractionInChartWithComponents){var f=d.sti_as(t.Report.Chart.IStiChart);if(null!=f&&null!=f.chartInfo.interactiveComps)for(var y=0,b=f.chartInfo.interactiveComps;y<b.length;y++){var C=b[y];C.left+=d.left,C.top+=d.top,c.components.add(C)}}}}}if(!n.report.engine.denyRenderMasterComponentsInContainer&&!n.sti_is(o))for(var v=0,I=n.components.list;v<I.length;v++){var m=I[v];m.parentBookmark=n.currentBookmark,m.componentType==a.Master&&(m.render(),m.sti_is(t.Report.Components.StiDataBand)&&(u=!0))}if(u){var A=!1,w=n;while(!0){if(w.sti_is(t.Report.Components.StiPageHeaderBand)||w.sti_is(t.Report.Components.StiPageFooterBand)||w.sti_is(t.Report.Components.StiReportTitleBand)||w.sti_is(t.Report.Components.StiReportSummaryBand)){A=!0;break}if(null==w||w.sti_is(t.Report.Components.StiPage))break;w=w.parent}i.StiSubReportsHelper.renderDataBandsInContainer(c,n,A)}var T=c.width;return s.checkSize(c),c.parentComponentIsCrossBand||(c.width=T),c},p}(i.StiComponentBuilder);i.StiContainerBuilder=c}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.CrossTab.StiCrossTab,r=t.Report.Components.StiChildBand,n=t.Report.Components.StiSubReport,o=t.Report.Components.StiComponentsCollection,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.getChildBands=function(t){var e=new o,i=t.parent.components.indexOf(t)+1;while(i<t.parent.components.count){if(!t.parent.components.list[i].sti_is(r))break;e.add(t.parent.components.list[i]),i++}return e},e.getSubReports=function(t){for(var e=new o,i=0,r=t.components.list;i<r.length;i++){var a=r[i];a.sti_is(n)&&e.add(a)}return e},e.prototype.prepare=function(e){t.prototype.prepare.call(this,e);for(var r=e,o=r.getComponents(),a=0,s=o.list;a<s.length;a++){var l=s[a],u=l.sti_as(n);if(null!=u){u.keepSubReportTogether||(r.bandInfo.forceCanBreak=!0),r.bandInfo.forceCanGrow=!0;break}var c=l.sti_as(i);if(null!=c){c.keepCrossTabTogether||(r.bandInfo.forceCanBreak=!0),r.bandInfo.forceCanGrow=!0;break}}},e}(e.StiContainerBuilder);e.StiBandBuilder=a}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDataBand,r=t.Report.Events.StiValueEventArgs,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.getMaster=function(t){var e=t.parent.components.indexOf(t)+1;while(e<t.parent.components.count){if(t.parent.components.list[e].sti_is(i))return t.parent.components.list[e];e++}return null},e.getCurrentConditionValue=function(t){var e=new r(null);return t.invokeGetValue(e),e.value},e.getCurrentSummaryExpressionValue=function(t){var e=new r(null);return t.invokeGetSummaryExpression(e),e.value},e.prototype.setReportVariables=function(t){var e=t;e.report.groupLine=e.line},e.prototype.prepare=function(e){var i=e;t.prototype.prepare.call(this,i),i.line=1},e}(e.StiBandBuilder);e.StiGroupHeaderBandBuilder=n}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiText,n=t.System.Data.DBNull,o=t.System.Data.DataRow,a=t.System.Data.DataTable,s=t.System.Data.DataColumn,l=t.System.ICloneable,u=t.System.Collections.IEnumerable,c=t.System.Collections.IEnumerator,p=t.Base.JsonReportObject.IStiJsonReportObject,h=t.System.Collections.Hashtable,g=t.System.Convert,m=t.Report.Components.StiHierarchicalBand,d=t.Report.Components.StiGroupSortDirection,S=t.Report.Engine.StiParser.StiParser,f=t.Report.Engine.StiParser.StiFilterParserData,y=t.Report.Engine.StiParser.StiParserData,b=t.Report.Engine.StiGroupHeaderBandBuilder,C=t.Report.Components.StiGroupSummaryType,v=t.System.TimeSpan,I=t.System.DateTime,A=t.Base.StiJson,w=t.System.Promise,T;!function(t){t[t.NameInSource=100]="NameInSource",t[t.Name=200]="Name",t[t.Alias=300]="Alias",t[t.AllowExpressions=400]="AllowExpressions",t[t.Columns=500]="Columns",t[t.CommandTimeout=600]="CommandTimeout",t[t.ConnectOnStart=700]="ConnectOnStart",t[t.Parameters=800]="Parameters",t[t.ReconnectOnEachRow=900]="ReconnectOnEachRow",t[t.SqlCommand=1e3]="SqlCommand",t[t.Type=1100]="Type"}(T||(T={}));var B=function(){function T(e,r,n){void 0===n&&(n=String.empty),this._inherited=!1,this.positionValue=0,this.isBofValue=!1,this.isEofValue=!1,this._states=null,this.nameOfDataBandWhichInitDataSource=null,this.isInited=!1,this.initForSubreport=!1,this.xmlRefAttrValue=null,this.relationNameStored=null,this.resFilterMethod=null,this.resSortColumns=null,this.calcColumns=new h,this.detailRows=null,this.rowToLevel=null,this._isCloud=!1,this.connectionOrder=t.Report.Dictionary.StiConnectionOrder.Standard,this.connectOnStart=!0,this._key=null,this.name=e,this.alias=r,String.isNullOrEmpty(this.alias)&&(this.alias=e),this.rows=new t.Report.Dictionary.StiRowsCollection(this),this.columns=new i.StiDataColumnsCollection(this),this.parameters=new t.Report.Dictionary.StiDataParametersCollection(this),this.key=n}return T.prototype.implements=function(){return[l,e.IStiStateSaveRestore,i.IStiEnumerator,c,u,e.IStiName,e.IStiInherited,p]},T.prototype.saveToJsonObject=function(t){var e=new A;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e.addPropertyBool("Inherited",this.inherited),e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyBool("IsCloud",this.isCloud),e.addPropertyStringNullOfEmpty("Alias",this.alias),e.addPropertyStringNullOfEmpty("Key",this.key),e.addPropertyJObject("Columns",this.columns.saveToJsonObject(t)),e},T.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Inherited":this._inherited=r.value.toBoolean();break;case"Name":this._name=r.value;break;case"IsCloud":this._isCloud=r.value.toBoolean();break;case"Alias":this._alias=r.value;break;case"Key":this._key=r.value;break;case"Columns":this._columns.loadFromJsonObject(r.value);break}}},T.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"Inherited":this._inherited=i.textContent.toBoolean();break;case"Name":this._name=i.textContent;break;case"IsCloud":this._isCloud=i.textContent.toBoolean();break;case"Alias":this._alias=i.textContent;break;case"Key":this._key=i.textContent;break;case"Columns":this._columns.loadFromXml(i);break}}},Object.defineProperty(T.prototype,"inherited",{get:function(){return this._inherited},set:function(t){this._inherited=t},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"current",{get:function(){return this},enumerable:!0,configurable:!0}),T.prototype.moveNext=function(){return this.next(),!this.isEof},T.prototype.reset=function(){this.first()},T.prototype.getEnumerator=function(){return this},Object.defineProperty(T.prototype,"name",{get:function(){return this._name},set:function(t){null!=this.dictionary&&null!=this.dictionary.report&&this.dictionary.report.isDesigning&&(t=e.StiNameValidator.correctName(t)),this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"position",{get:function(){return this.positionValue},set:function(t){this.positionValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"realCount",{get:function(){if(null!=this.detailRows)return this.detailRows.length;return null==this.dataTable?0:this.dataTable.rows.count},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"count",{get:function(){if(0==this.realCount&&StiOptions.Engine.emulateData){if(null==this.dataTable)return 1;if(null!=this.dataTable&&0==this.dataTable.rows.count)return 1}return this.realCount},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"isBof",{get:function(){if(this.isEmpty)return!0;return this.isBofValue},set:function(t){this.isBofValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"isEof",{get:function(){if(this.isEmpty)return!0;return this.isEofValue},set:function(t){this.isEofValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"isEmpty",{get:function(){return 0==this.count},enumerable:!0,configurable:!0}),T.prototype.first=function(){this.positionValue=0,this.isEofValue=!1,this.isBofValue=!0},T.prototype.prior=function(){this.isBofValue=!1,this.isEofValue=!1,this.positionValue<=0?this.isBofValue=!0:this.positionValue--},T.prototype.next=function(){if(this.isBofValue=!1,this.isEofValue=!1,this.positionValue>=this.count-1)return void(this.isEofValue=!0);this.positionValue++},T.prototype.last=function(){this.positionValue=this.count-1,this.isEofValue=!0,this.isBofValue=!1},T.prototype.clone=function(){var t=this.memberwiseClone();t.columns=new i.StiDataColumnsCollection(t);for(var e=0,r=this.columns.list;e<r.length;e++){var n=r[e],o=n.clone();o.dataSource=t,t.columns.add(o)}return t},T.prototype.memberwiseClone=function(){return new(this.getStiType())},Object.defineProperty(T.prototype,"states",{get:function(){return null==this._states&&(this._states=new e.StiStatesManager),this._states},enumerable:!0,configurable:!0}),T.prototype.saveState=function(t){this.states.pushInt(t,this,"positionValue",this.positionValue),this.states.pushBool(t,this,"isEofValue",this.isEofValue),this.states.pushBool(t,this,"isBofValue",this.isBofValue),this.states.push(t,this,"detailRows",this.detailRows),this.states.push(t,this,"resFilterMethod",this.resFilterMethod)},T.prototype.restoreState=function(t){this.states.isExist(t,this)&&(this.isBofValue=this.states.popBool(t,this,"isBofValue"),this.isEofValue=this.states.popBool(t,this,"isEofValue"),this.positionValue=this.states.popInt(t,this,"positionValue"),this.detailRows=this.states.pop(t,this,"detailRows"),this.resFilterMethod=this.states.pop(t,this,"resFilterMethod"))},T.prototype.clearAllStates=function(){this._states=null},T.prototype.isEqualSort=function(t,e){if(null==t&&null==e)return!0;if(null!=t&&null==e)return!1;if(null==t&&null!=e)return!1;if(t.length!=e.length)return!1;for(var i=0,r=0,n=t;r<n.length;r++){if(n[r]!=e[i])return!1;i++}return!0},T.prototype.setData=function(t,e,i,r,n,o){if(this.resFilterMethod!=i&&(this.isInited=!1),this.isEqualSort(r,this.resSortColumns)||(this.isInited=!1),null!=t&&(t.name!=this.nameOfDataBandWhichInitDataSource&&(this.isInited=!1),this.nameOfDataBandWhichInitDataSource=t.name),!!1&&this.isInited&&!n&&!this.initForSubreport&&e==this.relationNameStored)return;if(null!=t){var a=t.report;null==a&&null!=o&&(a=o.report),null!=a&&a.cacheTotals&&null!=a.cachedTotals&&!a.cachedTotalsLocked&&a.cachedTotals.set(t,null)}var s=!1,l=i,u=r,c=null;null!=t&&(c=t.dataBandInfo.groupHeaders),this.detailRows=null,this.setDetails(e);var p=this.getConditions(t);this.setSort(p,r,o,t,c),this.setFilter(i),this.isInited=!0,e=this.relationNameStored},T.prototype.getConditions=function(t){var e=null;if(null==t)return e;var i=null;if(null!=(i=t.dataBandInfo.groupHeaders)&&i.count>0){for(var r=t.isEof,n=t.isBof,o=0,a=0,s=i.list;a<s.length;a++){var l=s[a];l.sortDirection!=d.None&&o++}if(0==o)return e;e=Array.create(Object,t.count,o,2);for(var u=0;u<t.count;u++){t.position=u;for(var c=0,p=0,h=i.list;p<h.length;p++){var l=h[p];l.sortDirection!=d.None&&(e[u][c][0]=b.getCurrentConditionValue(l),e[u][c][1]=l.sortDirection,c++)}}t.isEof=r,t.isBof=n}return e},T.prototype.setDetails=function(t){var e=this.sti_as(i.StiSqlSource);if(null!=e&&e.reconnectOnEachRow&&e.updateParameters(),!String.isNullOrEmpty(t)){var r=this.dictionary.relations.getByName(t);if(null!=r){var n=r.parentSource;if(null!=n){var o=n.dataTable;null!=o&&(null!=n.detailRows?0!=n.detailRows.length?n.position<n.detailRows.length?this.detailRows=n.detailRows[n.position].getChildRows(t):this.detailRows=[]:this.detailRows=n.detailRows:n.position<o.rows.count&&(this.detailRows=o.rows.list[n.position].getChildRows(t)))}}}},T.prototype.setFilter=function(e){if(null!=e&&this.realCount>0){var i=this.position,r=this.dictionary.report.line,n=new Array;if(e.sti_is(f))for(var o=e,a=0;a<this.count;a++){this.position=a,this.dictionary.report.line=a+1;try{var s=S.parseTextValue(o.expression,o.component);null!=s&&s.sti_is(Boolean)&&s&&(null==this.detailRows?n.add(this.dataTable.rows.list[a]):n.add(this.detailRows[a]))}catch(e){t.System.StiError.showError(e,!1)}}this.detailRows=n,this.position=i,this.dictionary.report.line=r}},T.prototype.setSort=function(r,n,a,s,l){try{if(null!=a&&a.sti_is(m)){if(0==this.realCount)return;null==this.detailRows&&null!=this.dataTable&&(this.detailRows=Array.create(o,this.dataTable.rows.count),this.dataTable.rows.copyTo(this.detailRows,0));for(var u=new h,c=0,p=0,f=this.detailRows;p<f.length;p++){var b=f[p];u.set(b.recordIndex,c++)}return void new i.StiHierarchicalDataSort(this,a.sti_as(m),n).process(u)}if((null!=r||null!=n)&&this.realCount>0){var A=[];if(null==this.detailRows&&null!=this.dataTable)for(var w=0,T=this.dataTable.rows.list;w<T.length;w++){var b=T[w];A.add(b)}if(null!=this.detailRows)for(var B=0,R=this.detailRows;B<R.length;B++){var b=R[B];A.add(b)}for(var u=new h,c=0,P=0,F=A;P<F.length;P++){var b=F[P];u.set(b.recordIndex,c++)}var x=new i.StiDataSort(u,r,n,this);A.sort2(x);var D=0;this.detailRows=[];for(var k=0,E=A;k<E.length;k++){var b=E[k];this.detailRows[D++]=b}var G=!1;if(null!=l)for(var _=0,L=l.list;_<L.length;_++){var N=L[_];if(N.summarySortDirection!=d.None){G=!0;break}}if(G){for(var O=new h,Z=new h,M=Array.create(Number,l.count),H=new h,W=0,V=0,Y=A;V<Y.length;V++){var b=Y[V];s.position=W,H.set(b,W),t.Report.Engine.StiDataBandBuilder.prepareGroupResults(s);for(var j=0,X=0,J=l.list;X<J.length;X++){var N=J[X];if(s.dataBandInfo.groupHeaderResults[j]&&null!=N.report){var K=N.report;K.cacheTotals&&null!=K.cachedTotals&&K.cachedTotals.set(N,null)}var U=null,z=N;if(N.summaryType!=C.Count)if(N.report.calculationMode==e.StiCalculationMode.Compilation){if(U=N.name+"__GetSummaryExpression",null==t.Report.Totals.getMethod(N.report,U))continue}else{if(String.isNullOrEmpty(N.summaryExpression))continue;var Q=!1,q=new S,$={ref:Q},tt=S.parseTextValue("{"+N.summaryExpression+"}",N,$,!1,!0);z=new y(N,tt,q)}var et=null;switch(N.summaryType){case C.Avg:try{et=g.changeType(t.Report.Totals.avg(z,N.report,U),Number)}catch(e){t.System.StiError.showError(e,!1)}break;case C.AvgDate:try{et=t.System.Convert.changeType(t.Report.Totals.avgDate(z,N.report,U),I)}catch(e){t.System.StiError.showError(e,!1)}break;case C.AvgTime:try{et=t.System.Convert.changeType(t.Report.Totals.avgTime(z,N.report,U),v)}catch(e){t.System.StiError.showError(e,!1)}break;case C.Count:try{et=t.Report.Totals.count(N)}catch(e){t.System.StiError.showError(e,!1)}break;case C.CountDistinct:try{et=t.Report.Totals.countDistinct(N,N.report,U)}catch(e){t.System.StiError.showError(e,!1)}break;case C.Max:try{et=t.System.Convert.changeType(t.Report.Totals.max(z,N.report,U),Number)}catch(e){t.System.StiError.showError(e,!1)}break;case C.MaxDate:try{et=t.System.Convert.changeType(t.Report.Totals.maxDate(z,N.report,U),I)}catch(e){t.System.StiError.showError(e,!1)}break;case C.MaxTime:try{et=t.System.Convert.changeType(t.Report.Totals.maxTime(z,N.report,U),v)}catch(e){t.System.StiError.showError(e,!1)}break;case C.Median:try{et=t.System.Convert.changeType(t.Report.Totals.median(z,N.report,U),Number)}catch(e){t.System.StiError.showError(e,!1)}break;case C.Min:try{et=t.System.Convert.changeType(t.Report.Totals.min(z,N.report,U),Number)}catch(e){t.System.StiError.showError(e,!1)}break;case C.MinDate:try{et=t.System.Convert.changeType(t.Report.Totals.minDate(z,N.report,U),I)}catch(e){t.System.StiError.showError(e,!1)}break;case C.MinTime:try{et=t.System.Convert.changeType(t.Report.Totals.minTime(z,N.report,U),v)}catch(e){t.System.StiError.showError(e,!1)}break;case C.Mode:try{et=t.System.Convert.changeType(t.Report.Totals.mode(z,N.report,U),Number)}catch(e){t.System.StiError.showError(e,!1)}break;case C.Sum:try{et=t.System.Convert.changeType(t.Report.Totals.sum(z,N.report,U),Number)}catch(e){t.System.StiError.showError(e,!1)}break;case C.SumTime:try{et=t.System.Convert.changeType(t.Report.Totals.sumTime(z,N.report,U),v)}catch(e){t.System.StiError.showError(e,!1)}break}s.dataBandInfo.groupHeaderResults[j]&&M[j]++;var it=O.get(N);null==it&&(it=new h,O.set(N,it)),it.set(b,et),it=Z.get(N),null==it&&(it=new h,Z.set(N,it)),it.set(b,M[j]),j++}W++}if(null!=O&&O.count>0){var rt=new t.Report.Dictionary.StiGroupSummaryDataSort(O,Z,l,H);A.sort2(rt),D=0,this.detailRows=[];for(var nt=0,ot=A;nt<ot.length;nt++){var b=ot[nt];this.detailRows[D++]=b}rt.clear()}}x.clear()}}catch(e){t.System.StiError.showError("SetSort...ERROR:"+e.message,!1)}},T.prototype.resetDetailsRows=function(){this.detailRows=null},T.prototype.resetData=function(){this.isInited=!1,this.relationNameStored=null,this.resFilterMethod=null,this.resSortColumns=null},T.prototype.getDataRow=function(t){if(null==this.detailRows){if(null!=this.dataTable&&t<this.dataTable.rows.count)return this.dataTable.rows.list[t];return null}if(t<this.detailRows.length)return this.detailRows[t];return null},T.prototype.getParentData=function(t){var e=this.getDataRow(this.position);if(null!=e){var r=this.dictionary.relations.getByName(t);null!=r&&(t=r.nameInSource);var n=e.getParentRows(t);e=null!=n&&n.length>0?n[0]:null}return new i.StiDataRow(this.dictionary.relations.getByName(t).parentSource,e)},T.prototype.getParentRelations=function(){var e=new t.Report.Dictionary.StiDataRelationsCollection(this.dictionary);if(null==this.dictionary)return e;for(var i=0,r=this.dictionary.relations.list;i<r.length;i++){var n=r[i];n.childSource==this&&e.add(n)}return e},T.prototype.getChildRelations=function(){for(var e=new t.Report.Dictionary.StiDataRelationsCollection(this.dictionary),i=0,r=this.dictionary.relations.list;i<r.length;i++){var n=r[i];n.parentSource==this&&e.add(n)}return e},T.prototype.getParentDataSource=function(e){for(var i=0,r=this.dictionary.relations.list;i<r.length;i++){var n=r[i];if(n.childSource==this&&n.nameInSource==e)return n.parentSource}for(var o=0,a=this.dictionary.relations.list;o<a.length;o++){var n=a[o];if(n.childSource==this&&t.Report.StiNameValidator.correctName(n.nameInSource)==e)return n.parentSource}return null},T.prototype.getChildDataSource=function(t){for(var e=0,i=this.dictionary.relations.list;e<i.length;e++){var r=i[e];if(r.parentSource==this&&r.nameInSource==t)return r.childSource}return null},T.prototype.invokeConnecting=function(){try{var n=!0;if(null!=this.dictionary&&null!=this.dictionary.report&&this.dictionary.report.calculationMode==e.StiCalculationMode.Interpretation&&(n=!1),!n){var o=new r;o.name="**DataSourceParameter**",o.page=this.dictionary.report.pages.getByIndex(0);for(var a=0,s=this.parameters.list;a<s.length;a++){var l=s[a];l.parameterValue=S.parseTextValue("{"+l.value+"}",o)}var u=this.sti_as(i.StiSqlSource);if(null!=u){var c=null;if(null!=this.dictionary.report.variables&&null!=this.dictionary.report.variables.get("**StoredDataSourceSqlCommandForInterpretationMode**"+u.name)&&(c=this.dictionary.report.variables.get("**StoredDataSourceSqlCommandForInterpretationMode**"+u.name)),null!=c&&c.sti_is(String)){o.name="**DataSourceSqlCommand**";var p="";while(c.indexOf("{")>=0){p+=c.substr(0,c.indexOf("{")),c=c.substr(c.indexOf("{"));var h=c.substr(0,c.indexOf("}")+1),g=t.System.Convert.toString(S.parseTextValue(h,o));null!=g?!0===StiOptions.Engine.escapeQueryParameters?p+=g.replace(/\\/gi,"\\\\").replace(/\'/gi,"\\'").replace(/\"/gi,'\\"'):p+=g:p+=h,c=c.substr(c.indexOf("}")+1)}u.sqlCommand=p+c}}}}catch(t){}},T.prototype.invokeDisconnecting=function(){},T.prototype.connectAsync=function(t,e){var i=new w;null==this.dictionary||this.dictionary.useInternalData||this.invokeConnecting();var r=this.getDataAdapter();return null!=r?r.connectDataSourceToDataAsync(this.dictionary,this,e).try(function(){i.callTry()}).catch(function(t){i.callCatch(t)}).abort(i):i.callCatch("No Find StiDataAdapterService"),i},T.prototype.connect=function(e,i){null==this.dictionary||this.dictionary.useInternalData||this.invokeConnecting();var r=this.getDataAdapter();if(null!=r&&r.connectDataSourceToData(this.dictionary,this,i),(null==this.dataTable||0==this.realCount)&&StiOptions.Engine.emulateData&&this.dictionary.report.isRendering){var o=this.dataTable;if(null==o){o=new a;for(var l=0,u=this.columns.list;l<u.length;l++){var c=u[l],p=new s(c.nameInSource,c.type);o.columns.add(p)}}try{for(var h=o.newRow(),g=0,m=this.columns.list;g<m.length;g++){var c=m[g],d=c.type,S=n.value;d==String?S=null!=this.dataTable&&null!=this.dataTable.columns.getByName(c.nameInSource)&&this.dataTable.columns.getByName(c.nameInSource).getStiType()==String?"Test":"":d==Boolean?S=!0:d==I?S=I.now:d==t.System.Char&&(S=" "),S=0,h.setValue(c.nameInSource,S)}o.rows.add(h)}catch(e){t.System.StiError.showError(e,!1),this.dataTable=null,this.dataTable=o}}},T.prototype.getDataAdapterType=function(){return null},Object.defineProperty(T.prototype,"dataAdapterType",{get:function(){return this.getDataAdapterType().getStiType().getStiTypeName()},enumerable:!0,configurable:!0}),T.prototype.fillColumns=function(){try{if(null==i.StiDataAdapterService.getDataAdapter(this))return}catch(e){t.System.StiError.showError(e,!1)}},T.prototype.getDataAdapter=function(){var t=StiOptions.Services.dataAdapters.where(function(t){return t.serviceEnabled}),e=this.dataAdapterType;return t.firstOrDefault(function(t){return t.getStiType().getStiTypeName()==e})},Object.defineProperty(T.prototype,"parameters",{get:function(){return this._parameters},set:function(t){this._parameters=t},enumerable:!0,configurable:!0}),T.prototype.getDataTable=function(e){if(void 0===e&&(e=null),null==e){if(null!=this.dataTable)return this.getDataTable(this.dataTable);return new a(this.name)}for(var i=e.clone(),r=new Array(i.columns.count),n=0;n<i.columns.count;n++){var o=i.columns.getByIndex(n);r[n]=e.columns.getIndexByName(o.columnName)}for(var n=0;n<e.rows.count;n++)for(var s=i.addNewRow(),l=0;l<i.columns.count;l++)try{s.sett(l,e.rows.list[n].gett(r[l]))}catch(e){t.System.StiError.showError(e,!1)}return i},T.prototype.getByName=function(t){return this.getData(t)},T.prototype.getData=function(e,i){void 0===i&&(i=this.position);try{if(this.isConnected){var n=this.calcColumns.get(e);if(null!=n){var o=new r;return o.page=this.dictionary.report.pages.getByIndex(0),o.name=this.dictionary.report.reportGuid,S.parseTextValue("{"+n.expression+"}",o)}var a=this.getColumnIndex(e);if(a<0)return null;var s=this.getDataRow(i);if(null==s)return null;return s.getValue(a)}return t.System.Data.DBNull}catch(e){t.System.StiError.showError(e,!1)}return null},T.prototype.getColumnIndex=function(t){if(null!=this.columnsIndexs){var e=this.columnsIndexs.get(t);if((null==e||e.sti_is(Number)&&-1==+e)&&null==(e=this.columnsIndexs.get(t))&&(e=this.columnsIndexs.get(t.toLower())),null==e)return-1;if(-1==+e)throw String.stiFormat("Column '{0}' from data source '{1}' not found in table '{2}'",t,this.name,this.dataTable.tableName);return+e}for(var e=0,i=0,r=this.columns.list;i<r.length;i++){var n=r[i];if(n.nameInSource==t)return e;e++}e=0;for(var o=0,a=this.columns.list;o<a.length;o++){var n=a[o];if(n.name==t||n.alias==t)return e;e++}return-1},Object.defineProperty(T.prototype,"rows",{get:function(){return this._rows},set:function(t){this._rows=t},enumerable:!0,configurable:!0}),T.prototype.synchronizeColumns=function(){var t=this.sti_as(i.StiDataStoreSource);if(null==t)return;for(var e=null,r=0,n=this.dictionary.dataStore.list;r<n.length;r++){var o=n[r];if(o.name.toLower()==t.nameInSource.toLower()){e=o;break}}if(null==e)return;this.dictionary.synchronizeColumns(e,this)},T.prototype.checkColumnsIndexs=function(){if((null==this.columnsIndexs||0==this.columnsIndexs.keys.count)&&null!=this.dataTable&&this.dataTable.columns.count>0){this.columnsIndexs=new h;for(var t=new h,r=0;r<this.dataTable.columns.count;r++)t.set(this.dataTable.columns.getByIndex(r).columnName.toLower(),r);for(var n=0,o=this.columns.list;n<o.length;n++){var a=o[n];if(a.sti_is(i.StiCalcDataColumn)){this.calcColumns.set(a.nameInSource.toLower(),a),this.calcColumns.set(a.nameInSource,a),this.calcColumns.set(a.name,a),this.calcColumns.set(a.alias,a),this.calcColumns.set(e.StiNameValidator.correctName(a.name),a);continue}var r=-1,s=t.get(a.nameInSource.toLower());null!=s&&(r=Math.trunc(s.toNumber())),this.columnsIndexs.set(a.nameInSource.toLower(),r),this.columnsIndexs.set(a.nameInSource,r),this.columnsIndexs.set(a.name,r),this.columnsIndexs.set(a.alias,r),this.columnsIndexs.set(e.StiNameValidator.correctName(a.name),r)}}},T.prototype.toString=function(){if(StiOptions.Dictionary.showOnlyAliasForDataSource)return this.alias;return name==this.alias||String.isNullOrEmpty(this.alias)?name:String.stiFormat("{0} [{1}]",this.name,this.alias)},T.prototype.getLevel=function(){if(null==this.rowToLevel)return 0;var t=null;if(null!=this.detailRows){if(this.detailRows.length<=this.position)return 0;t=this.detailRows[this.position]}else{if(null==this.dataTable||this.dataTable.rows.count<=this.position)return 0;t=this.dataTable.rows.list[this.position]}var e=this.rowToLevel.get(t);if(e.sti_is(Number))return+e;return 0},T.prototype.getCategoryName=function(){var t=i.StiDataAdapterService.getDataAdapter(this);if(null!=t)return t.serviceName;return String.empty},T.prototype.createNew=function(){return null},Object.defineProperty(T.prototype,"isCloud",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"dictionary",{get:function(){return this._dictionary},set:function(t){this._dictionary=t},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"dataTable",{get:function(){return this._dataTable},set:function(t){if(this._dataTable=t,this.detailRows=null,null!=t&&(this.checkColumnsIndexs(),(this.sti_is(i.StiDataTableSource)&&this.dictionary.report.cacheAllData||null==this._dataTable.dataSet)&&null!=this.dictionary.cacheDataSet)){var e=0,r=this._dataTable.tableName;while(null!=this.dictionary.cacheDataSet.tables.getByName(r))e++,r=String.stiFormat("{0}{1}",this.dataTable.tableName,e);this.dataTable.tableName!=r&&(this.dataTable.tableName=r),this.dictionary.cacheDataSet.tables.add(this.dataTable)}this.first()},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"isConnected",{get:function(){return null!=this._dataTable},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"columns",{get:function(){return this._columns},set:function(t){var e=this;this._columns=t,null!=t&&(t.dataSource=this,t.toList().forEach(function(t){return t.dataSource=e}))},enumerable:!0,configurable:!0}),T.prototype.disconnect=function(){if(null!=this.dataTable&&null!=this.dictionary&&null!=this.dictionary.cacheDataSet&&-1!=this.dictionary.cacheDataSet.tables.list.indexOf(this.dataTable)){var t=0;while(t<this.dictionary.cacheDataSet.relations.count){var e=this.dictionary.cacheDataSet.relations.getByIndex(t);e.parentTable==this.dataTable||e.childTable==this.dataTable?this.dictionary.cacheDataSet.relations.removeAt(t):t++}this.dictionary.cacheDataSet.tables.remove(this.dataTable),this.dataTable=null}this.rowToLevel=null,this.detailRows=null},T.prototype.getByColumnName=function(t){return this.getData(t)},Object.defineProperty(T.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"key",{get:function(){return this._key},set:function(t){this._key=t},enumerable:!0,configurable:!0}),T}();i.StiDataSource=B}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(t,i,r,n){void 0===t&&(t=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r=i),void 0===n&&(n=String.empty);var o=e.call(this,i,r,n)||this;return o.nameInSource=t,o}return __extends(i,e),i.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyStringNullOfEmpty("NameInSource",this.nameInSource),i},i.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"NameInSource":this._nameInSource=n.value;break}}},i.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"NameInSource":this._nameInSource=r.textContent;break}}},i.prototype.getCategoryName=function(){var i=t.StiDataAdapterService.getDataAdapter(this),r=this.dictionary.dataStore.getByName(this.nameInSource);if(null!=r&&null!=i)return i.getDataCategoryName(r);if(this.nameInSource.endsWith("."+this.name)&&this.nameInSource.length>this.name.length+1)return this.nameInSource.substr(0,this.nameInSource.length-(this.name.length+1));var n=this.nameInSource.lastIndexOf(".");if(-1!=n)return this.nameInSource.substr(0,n);if(!String.isNullOrEmpty(this.nameInSource))return this.nameInSource;return e.prototype.getCategoryName.call(this)},Object.defineProperty(i.prototype,"dataName",{get:function(){return this.nameInSource},set:function(t){this.nameInSource=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nameInSource",{get:function(){return this._nameInSource},set:function(t){this._nameInSource=t},enumerable:!0,configurable:!0}),i}(t.StiDataSource);t.StiDataStoreSource=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),i.call(this,t,e,r,n)||this}return __extends(r,i),r.prototype.saveToJsonObject=function(t){var e=i.prototype.saveToJsonObject.call(this,t);return e.addPropertyStringNullOfEmpty("NameInSource",this.nameInSource),e},r.prototype.loadFromJsonObject=function(t){i.prototype.loadFromJsonObject.call(this,t)},r.prototype.getCategoryName=function(){var t=this.nameInSource;if(String.isNullOrEmpty(t))return i.prototype.getCategoryName.call(this);if(t=t.toLower(),null!=this.dictionary){var r=this.dictionary.databases.list.firstOrDefault(function(e){return e.name.toLower()==t});if(null!=r)return r.name}var n=e.StiDataAdapterService.getDataAdapter(this);if(null!=n&&null!=n.sti_as(e.StiDataTableAdapterService)){var o=n.getDataFromDataSource(this.dictionary,this);if(null==o)return i.prototype.getCategoryName.call(this);return n.getDataCategoryName(o)}return i.prototype.getCategoryName.call(this)},r.prototype.getDataAdapterType=function(){return e.StiDataTableAdapterService},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiDataTableSource},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiDataStoreSource);e.StiDataTableSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Localization.StiLocalization,n=t.System.Data.DataTable,o=t.System.Promise,a=function(a){function s(){return null!==a&&a.apply(this,arguments)||this}return __extends(s,a),Object.defineProperty(s.prototype,"serviceName",{get:function(){return r.get("Adapters","AdapterDataTables")},enumerable:!0,configurable:!0}),s.prototype.getDataCategoryName=function(t){var e=t.name,i=t.viewData.sti_as(n);if(null==i&&t.viewData.sti_is(n)&&(i=t.viewData),null!=i)if(null!=t.name&&t.data.sti_is(n)){var r=e.lastIndexOf("."),o=i.tableName.indexOf(".");-1!=o?e.length>i.tableName.length&&(e=e.substr(0,e.length-i.tableName.length-1)):-1!=r&&-1!=e.indexOf(i.tableName)&&(e=e.substr(0,r))}else if(null!=i.dataSet)return i.dataSet.dataSetName;if(t.alias!=e&&!String.isNullOrEmpty(t.alias)){if(StiOptions.Dictionary.showOnlyAliasForData)return t.alias;e=String.stiFormat("{0} [{1}]",e,t.alias)}return e},s.prototype.getColumnsFromDataAsync=function(t,e){var i=new o;return i.callTry(this.getColumnsFromData(t,e)),i},s.prototype.getColumnsFromData=function(t,r){var o=new i.StiDataColumnsCollection,a=t.viewData.sti_as(n);null==a&&t.viewData.sti_is(n)&&(a=t.viewData.sti_as(n));for(var s=0,l=a.columns.list;s<l.length;s++){var u=l[s];o.add(new i.StiDataColumn(u.columnName,u.caption,u.caption,u.dataType))}for(var c=0;c<o.list.count;c++){var u=o.list[c].sti_as(i.StiDataColumn),p=u.name,h=u.alias,g=u.name;u.name=e.StiNameValidator.correctName(u.name),u.nameInSource=g,u.alias=g,h!=p&&(u.alias=h)}return o},s.prototype.getParametersFromData=function(t,e){return new i.StiDataParametersCollection},s.prototype.setDataSourceNames=function(t,e){a.prototype.setDataSourceNames.call(this,t,e);var i=t.viewData;null==i&&t.viewData.sti_is(n)&&(i=t.viewData),e.name=i.tableName,e.alias=i.tableName;var r=i.tableName;String.isNullOrEmpty(r)||(r=r.trim(),r.startsWith("'")&&r.endsWith("'")&&(e.alias=r.substr(1,r.length-2)))},s.prototype.create=function(t,e){return void 0===e&&(e=!0),a.prototype.create.call(this,t,e)},s.prototype.getDataSourceType=function(){return t.Report.Dictionary.StiDataTableSource},s.prototype.getDataTypes=function(){return[n.getStiType()]},s.prototype.getDataFromDataSource=function(t,e){for(var i=e,r=i.nameInSource.toLower(),o=0,a=e.dictionary.dataStore.list;o<a.length;o++){var s=a[o];if(s.name.toLower()==r&&s.viewData.sti_is(n))return s}if(!StiOptions.Dictionary.useAdvancedDataSearch)return null;if(null!=e.dictionary&&null!=e.dictionary.report&&e.dictionary.report.isDesigning)return null;var l=null;-1!=r.indexOf(".")&&(l=r.substr(r.indexOf(".")+1));for(var u=0,c=e.dictionary.dataStore.list;u<c.length;u++){var s=c[u];if(null!=s.viewData&&!s.viewData.sti_is(n))continue;var p=s.name.toLower();if(p==r||p==l)return s;if(-1!=p.indexOf(".")&&(p=p.substr(p.indexOf(".")+1)),p==r||p==l)return s}for(var h=0,g=null,m=0,d=e.dictionary.dataStore.list;m<d.length;m++){var s=d[m];if(null!=s.viewData&&s.viewData.sti_is(n)){if(++h>1)return null;StiOptions.Dictionary.allowConnectToFirstTableForEmptyDataSource&&(g=s)}}return(0==h||h>1)&&(g=null),g},s.prototype.connectDataSourceToDataAsync=function(e,i,r){var n=new o,a=this;return setTimeout(function(){try{a.connectDataSourceToData(e,i,r),n.callTry()}catch(e){t.System.StiError.showError(e,!1),n.callCatch(e.message)}}),n},s.prototype.connectDataSourceToData=function(t,e,i){e.disconnect();var r=this.getDataFromDataSource(t,e);if(null==r)return;var o=r.viewData.sti_as(n);if(null==o&&r.viewData.sti_is(n)&&(o=r.viewData),null==o)return;e.dictionary.report.cacheAllData&&i?e.dataTable=e.getDataTable(o):e.dictionary.report.cacheAllData?(e.dictionary.report.cacheAllData=!1,e.dataTable=o,e.dictionary.report.cacheAllData=!0):e.dataTable=o},s}(i.StiDataStoreAdapterService);i.StiDataTableAdapterService=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t){void 0===t&&(t=!1),this.isFirstInit=!1,this._runningTotal=!1,this._runningTotal=t}return Object.defineProperty(t.prototype,"serviceName",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.init=function(){},t.prototype.reset=function(){var t=this.runningTotal;this._runningTotal=!1,this.init(),this._runningTotal=t},t.prototype.calcItem=function(t){return null},t.prototype.getValue=function(){return null},t.prototype.setValue=function(t){return null},Object.defineProperty(t.prototype,"recureParam",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"runningTotal",{get:function(){return this._runningTotal},set:function(t){this._runningTotal=t},enumerable:!0,configurable:!0}),t}();t.StiAggregateFunctionService=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.DateTime,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.avgValue=0,e.count=0,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"AvgDate"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.avgValue=0,this.count=0)},e.prototype.calcItem=function(t){if(null!=t&&t.sti_is(i)){var e=t;this.count++}},e.prototype.getValue=function(){if(0==this.count)return null},e.prototype.setValue=function(t){},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiAvgDateFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiObjectConverter,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Avg"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.summary=0,this.count=0)},e.prototype.calcItem=function(t){if(null==t)return;this.summary+=i.convertToNumber(t),this.count++},e.prototype.getValue=function(){if(0==this.count)return 0;return this.summary/this.count},e.prototype.setValue=function(t){},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiAvgFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.TimeSpan,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.avgValue=0,e.count=0,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"AvgTime"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.avgValue=0,this.count=0)},e.prototype.calcItem=function(t){if(null!=t&&t.sti_is(i)){var e=t;this.avgValue+=e.ticks,this.count++}},e.prototype.getValue=function(){if(0==this.count)return null;return new i(this.avgValue/this.count)},e.prototype.setValue=function(t){},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiAvgTimeFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"CountDistinct"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.counter=0,this.values=new i)},e.prototype.calcItem=function(t){null==this.values&&(this.values=new i),null==this.values.get(t)&&(this.values.set(t,t),this.counter++)},e.prototype.getValue=function(){return this.counter},e.prototype.setValue=function(t){this.counter=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiCountDistinctFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Count"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.counter=0)},e.prototype.calcItem=function(t){this.counter++},e.prototype.getValue=function(){return this.counter},e.prototype.setValue=function(t){this.counter=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(t.StiAggregateFunctionService);t.StiCountFunctionService=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.first=!0,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"First"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.first=!0,this.value=null)},e.prototype.calcItem=function(t){this.first&&(this.first=!1,this.value=t)},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t){this.value=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(t.StiAggregateFunctionService);t.StiFirstFunctionService=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Last"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.value=null)},e.prototype.calcItem=function(t){this.value=t},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t){this.value=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(t.StiAggregateFunctionService);t.StiLastFunctionService=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.DateTime,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueProcessed=!1,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"MaxDate"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.valueProcessed=!1)},e.prototype.calcItem=function(t){if(t.sti_is(i)){var e=t;this.valueProcessed?this.maximum.ticks<e.ticks&&(this.maximum=e):(this.maximum=e,this.valueProcessed=!0)}},e.prototype.getValue=function(){if(this.valueProcessed)return this.maximum;return null},e.prototype.setValue=function(t){this.maximum=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiMaxDateFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiObjectConverter,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Max"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.maximum=Number.MIN_VALUE)},e.prototype.calcItem=function(t){if(null==t)return;var e=i.convertToNumber(t);this.maximum<e&&(this.maximum=e)},e.prototype.getValue=function(){return this.maximum},e.prototype.setValue=function(t){this.maximum=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiMaxFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.ascComparison=function(t,e){return t.compareTo(e)},Object.defineProperty(e.prototype,"serviceName",{get:function(){return"MaxStr"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.values=new Array)},e.prototype.calcItem=function(t){var e=null!=t?t.toString():String.empty;this.values.add(e)},e.prototype.getValue=function(){if(null==this.values||0==this.values.count)return String.empty;return this.values.sort(e.ascComparison),this.values[this.values.count-1]},e.prototype.setValue=function(t){},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(t.StiAggregateFunctionService);t.StiMaxStrFunctionService=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.TimeSpan,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueProcessed=!1,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"MaxTime"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.valueProcessed=!1)},e.prototype.calcItem=function(t){if(t.sti_is(i)){var e=t;this.valueProcessed?this.maximum.ticks<e.ticks&&(this.maximum=e):(this.maximum=e,this.valueProcessed=!0)}},e.prototype.getValue=function(){return this.maximum},e.prototype.setValue=function(t){this.maximum=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiMaxTimeFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiObjectConverter,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Median"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.values=new Array)},e.prototype.calcItem=function(t){if(null==t)return;var e=i.convertToNumber(t);this.values.add(e)},e.prototype.getValue=function(){if(null==this.values||this.values.count<2)return null;this.values.sort();var t=this.values.count/2;if(this.values.count%2==1)return this.values[t];return(this.values[t-1]+this.values[t])/2},e.prototype.setValue=function(t){},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiMedianFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.DateTime,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueProcessed=!1,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"MinDate"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.valueProcessed=!1)},e.prototype.calcItem=function(t){if(t.sti_is(i)){var e=t;this.valueProcessed?this.minimum.ticks>e.ticks&&(this.minimum=e):(this.minimum=e,this.valueProcessed=!0)}},e.prototype.getValue=function(){if(this.valueProcessed)return this.minimum;return null},e.prototype.setValue=function(t){this.minimum=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiMinDateFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiObjectConverter,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Min"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.minimum=Number.MAX_VALUE)},e.prototype.calcItem=function(t){if(null==t)return;var e=i.convertToNumber(t);this.minimum>e&&(this.minimum=e)},e.prototype.getValue=function(){return this.minimum},e.prototype.setValue=function(t){this.minimum=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiMinFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.ascComparison=function(t,e){return t.compareTo(e)},Object.defineProperty(e.prototype,"serviceName",{get:function(){return"MinStr"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.values=new Array)},e.prototype.calcItem=function(t){var e=null!=t?t.toString():String.empty;this.values.add(e)},e.prototype.getValue=function(){if(null==this.values||0==this.values.count)return String.empty;return this.values.sort(e.ascComparison),this.values[0]},e.prototype.setValue=function(t){},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(t.StiAggregateFunctionService);t.StiMinStrFunctionService=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.TimeSpan,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueProcessed=!1,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"MinTime"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.valueProcessed=!1)},e.prototype.calcItem=function(t){if(t.sti_is(i)){var e=t;this.valueProcessed?this.minimum.ticks>e.ticks&&(this.minimum=e):(this.minimum=e,this.valueProcessed=!0)}},e.prototype.getValue=function(){return this.minimum},e.prototype.setValue=function(t){this.minimum=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiMinTimeFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Base.StiObjectConverter,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Mode"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.values=new i)},e.prototype.calcItem=function(t){if(null==t)return;var e=r.convertToNumber(t),i=this.values.get(e);null==i&&(i=0),i+=1,this.values.set(e,i)},e.prototype.getValue=function(){if(null==this.values||0==this.values.count)return null;for(var t=0,e=0,i=0,r=this.values.keys;i<r.length;i++){var n=r[i],o=this.values.get(n);o>e&&(e=o,t=n)}return t},e.prototype.setValue=function(t){},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiModeFunctionService=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Report.StiRankOrder,n=function(t){function e(e,n,o){void 0===n&&(n=!0),void 0===o&&(o=r.Asc);var a=t.call(this,e)||this;return a.hash=new i,a.sortOrder=r.Asc,a.dense=!0,a.dense=n,a.sortOrder=o,a}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Rank"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.isFirstInit&&this.hash.clear()},e.prototype.calcItem=function(t){if(null==t)return;if(this.hash.containsKey(t)){var e=this.hash.get(t);this.hash.set(t,e+1)}else this.hash.set(t,1)},e.prototype.getValue=function(){var t=new Array(this.hash.keys.count);this.hash.keys.copyTo(t),t.sort(function(t,e){return t-e}),this.sortOrder==r.Desc&&t.reverse();for(var e=1,i=0,n=t;i<n.length;i++){var o=n[i],a=this.hash.get(o);this.hash.set(o,e),e+=this.dense?1:a}return this.hash},e.prototype.setValue=function(t){this.hash=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiRankFunctionService=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Base.StiObjectConverter,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"SumDistinct"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.summary=0,this.values=new i)},e.prototype.calcItem=function(t,e){if(void 0===e&&(e=t),null==this.values&&(this.values=new i),null==t)return;null==this.values.get(t)&&(this.values.set(t,t),this.summary+=r.convertToNumber(t))},e.prototype.getValue=function(){return this.summary},e.prototype.setValue=function(t){this.summary=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiSumDistinctFunctionService=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiObjectConverter,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"Sum"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.summary=0)},e.prototype.calcItem=function(t){if(null==t)return;this.summary+=i.convertToNumber(t)},e.prototype.getValue=function(){return Math.round(this.summary,8)},e.prototype.setValue=function(t){this.summary=i.convertToNumber(t)},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiSumFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiObjectConverter,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"SumNullable"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.summary=0,this.hasValues=!1)},e.prototype.calcItem=function(t){if(null==t)return;this.summary+=i.convertToNumber(t),this.hasValues=!0},e.prototype.getValue=function(){if(this.hasValues)return this.summary;return null},e.prototype.setValue=function(t){this.summary=t,this.hasValues=null!=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiSumNullableFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.TimeSpan,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sumValue=0,e}return __extends(e,t),Object.defineProperty(e.prototype,"serviceName",{get:function(){return"SumTime"},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.runningTotal&&!this.isFirstInit||(this.sumValue=0)},e.prototype.calcItem=function(t){if(null!=t&&t.sti_is(i)){var e=t;this.sumValue+=e.ticks}},e.prototype.getValue=function(){return new i(this.sumValue)},e.prototype.setValue=function(t){this.sumValue=t},Object.defineProperty(e.prototype,"recureParam",{get:function(){return!0},enumerable:!0,configurable:!0}),e}(e.StiAggregateFunctionService);e.StiSumTimeFunctionService=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t){this._category=t}return Object.defineProperty(t.prototype,"category",{get:function(){return this._category},set:function(t){this._category=t},enumerable:!0,configurable:!0}),t}();t.StiBusinessObjectCategory=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e,i,r){this.category=t,this.name=e,this.alias=i,this.businessObjectValue=r}return Object.defineProperty(t.prototype,"category",{get:function(){return this._category},set:function(t){this._category=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"businessObjectValue",{get:function(){return this._businessObjectValue},set:function(t){this._businessObjectValue=t},enumerable:!0,configurable:!0}),t}();t.StiBusinessObjectData=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(t,i,r,n,o){void 0===t&&(t=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r=String.empty),void 0===n&&(n=0),void 0===o&&(o=null);var a=e.call(this,i,i,r,o)||this;return a.path=t,a.codePage=n,a}return __extends(i,e),Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiFileDataSource},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.nameInSource},set:function(t){this.nameInSource=t},enumerable:!0,configurable:!0}),i}(e.StiDataStoreSource);e.StiFileDataSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o,a){void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=String.empty),void 0===n&&(n=0),void 0===o&&(o=null),void 0===a&&(a=String.empty);var s=i.call(this,t,e,r,n,a)||this;return s.convertEmptyStringToNull=!0,s.separator=o,s}return __extends(r,i),r.prototype.saveToJsonObject=function(t){var e=i.prototype.saveToJsonObject.call(this,t);return e.addPropertyStringNullOfEmpty("Path",this.path),e.addPropertyNumber("CodePage",this.codePage),e.addPropertyStringNullOfEmpty("Separator",this.separator),e.addPropertyBool("ConvertEmptyStringToNull",this.convertEmptyStringToNull,!0),e},r.prototype.loadFromJsonObject=function(t){i.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"Path":this.path=n.toString();break;case"CodePage":this.codePage=n.toNumber();break;case"Separator":this.separator=n.toString();break;case"ConvertEmptyStringToNull":this.convertEmptyStringToNull=n.toBoolean();break}}},r.prototype.loadFromXml=function(t){i.prototype.loadFromXml.call(this,t);for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"Path":this.path=r.textContent;break;case"CodePage":this.codePage=r.textContent.toNumber();break;case"Separator":this.separator=r.textContent;break;case"ConvertEmptyStringToNull":this.convertEmptyStringToNull=r.textContent.toBoolean();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiCsvSource},enumerable:!0,configurable:!0}),r.prototype.getDataAdapterType=function(){return e.StiCsvAdapterService},r.prototype.createNew=function(){return new r},r}(e.StiFileDataSource);e.StiCsvSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Data.DataColumn,n=t.System.Enum,o=t.System.Promise,a=function(a){function s(t,e,r,n,o,s,l,u){void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===s&&(s=!1),void 0===l&&(l=30),void 0===u&&(u=String.empty);var c=a.call(this,t,e,r,u)||this;return c._allowExpressions=!0,c._type=i.StiSqlSourceType.Table,c._commandTimeout=30,c._reconnectOnEachRow=!1,c._sqlCommand=String.empty,c._sqlCommand=n,c.connectOnStart=o,c._reconnectOnEachRow=s,c._commandTimeout=l,c.connectionOrder=i.StiConnectionOrder.Sql,c}return __extends(s,a),s.prototype.saveToJsonObject=function(t){var e=a.prototype.saveToJsonObject.call(this,t);return e.addPropertyBool("ConnectOnStart",this.connectOnStart,!0),e.addPropertyBool("AllowExpressions",this.allowExpressions,!0),e.addPropertyEnum("Type",i.StiSqlSourceType,this.type,i.StiSqlSourceType.Table),e.addPropertyNumber("CommandTimeout",this.commandTimeout,30),e.addPropertyBool("ReconnectOnEachRow",this.reconnectOnEachRow),e.addPropertyStringNullOfEmpty("SqlCommand",this.sqlCommand),e.addPropertyJObject("Parameters",this.parameters.saveToJsonObject(t)),e},s.prototype.loadFromJsonObject=function(e){a.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var o=r[i];switch(o.name){case"ConnectOnStart":this.connectOnStart=o.value.toBoolean();break;case"AllowExpressions":this._allowExpressions=o.value.toBoolean();break;case"Type":this._type=n.parse(t.Report.Dictionary.StiSqlSourceType,o.value.toString());break;case"CommandTimeout":this._commandTimeout=o.value.toNumber();break;case"ReconnectOnEachRow":this._reconnectOnEachRow=o.value.toBoolean();break;case"SqlCommand":this._sqlCommand=o.value.toString();break;case"Parameters":this.parameters.loadFromJsonObject(o.value);break}}},s.prototype.loadFromXml=function(t){a.prototype.loadFromXml.call(this,t);for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];switch(r.nodeName){case"ConnectOnStart":this.connectOnStart=r.textContent.toBoolean();break;case"AllowExpressions":this._allowExpressions=r.textContent.toBoolean();break;case"Type":this._type=n.parse(i.StiSqlSourceType,r.textContent);break;case"CommandTimeout":this._commandTimeout=r.textContent.toNumber();break;case"ReconnectOnEachRow":this._reconnectOnEachRow=r.textContent.toBoolean();break;case"SqlCommand":this._sqlCommand=r.textContent;break;case"Parameters":this.parameters.loadFromXml(r);break}}},Object.defineProperty(s.prototype,"allowExpressions",{get:function(){return this._allowExpressions},set:function(t){this._allowExpressions=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"commandTimeout",{get:function(){return this._commandTimeout},set:function(t){this._commandTimeout=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"reconnectOnEachRow",{get:function(){return this._reconnectOnEachRow},set:function(t){this._reconnectOnEachRow=t},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"sqlCommand",{get:function(){return this._sqlCommand},set:function(t){this._sqlCommand=t},enumerable:!0,configurable:!0}),s.prototype.getDataAdapterType=function(){return i.StiSqlAdapterService},s.prototype.updateParameters=function(){if(null==this.dataTable||0==this.parameters.count)return;this.invokeConnecting()},s.prototype.retrieveDataAsync=function(e){var i=this;void 0===e&&(e=!1);var n=new o;if(this.parameters.count>0){this.invokeConnecting();for(var a=0,s=this.parameters.list;a<s.length;a++)var l=s[a],u=l.getParameterValue()}var c=this.getDataAdapter(),p=this.nameInSource.indexOf(".");-1==p&&(p=this.nameInSource.length);var h=this.nameInSource.substring(0,p),g=this.dictionary.databases.list.firstOrDefault(function(t){return t.name==h}),m=this;if(null==g)return n.callTry(),n;return e?c.retrieveSchemaAsync(m.dictionary.report,m,g.connectionString,this.sqlCommand).try(function(e){try{for(var o=0,a=e.tables;o<a.length;o++){var s=a[o];s.name==m.name&&s.columns.forEach(function(t){null==m.dataTable.columns.getByName(t.name)&&m.dataTable.columns.add(new r(t.name,t.type))})}i.checkColumnsIndexs(),n.callTry()}catch(e){t.System.StiError.showError(e,!1),n.callCatch(e.message)}}).catch(function(t){n.callCatch(t)}).abort(n):c.retrieveDataAsync(this.dictionary.report,this,g.connectionString,this.sqlCommand).try(function(t){m.dataTable=t,m.checkColumnsIndexs(),n.callTry()}).catch(function(t){n.callCatch(t)}).abort(n),n},s.prototype.getFinalSqlCommand=function(){return null},Object.defineProperty(s.prototype,"componentId",{get:function(){return e.StiComponentId.StiSqlSource},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},s}(i.StiDataTableSource);i.StiSqlSource=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(e,i,r,n,o,a,s,l){return void 0===e&&(e=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r=i),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=30),void 0===l&&(l=String.empty),t.call(this,e,i,r,n,o,a,s,l)||this}return __extends(e,t),Object.defineProperty(e.prototype,"query",{get:function(){return this.sqlCommand},set:function(t){this.sqlCommand=t},enumerable:!0,configurable:!0}),e}(t.StiSqlSource);t.StiNoSqlSource=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o,a,s,l){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=30),void 0===l&&(l=String.empty),i.call(this,t,e,r,n,o,a,s,l)||this}return __extends(r,i),r.prototype.getDataAdapterType=function(){return e.StiMongoDbAdapterService},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiMongoDbSource},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiNoSqlSource);e.StiMongoDbSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.StiError,n=t.System.Data.DBNull,o=t.System.Collections.Hashtable,a=t.System.Data.DataColumn,s=t.System.Data.DataTable,l=t.Report.Components.StiDataHelper,u=t.Report.Components.StiDataBand,c=t.Base.StiJsonReportObjectHelper,p=t.Report.Components.StiFilterMode,h=t.System.Enum,g=function(g){function m(e,r,n){void 0===e&&(e=String.empty),void 0===r&&(r=String.empty),void 0===n&&(n=String.empty);var o=g.call(this,e,r,r,n)||this;return o._filterOn=!0,o._filterMode=p.And,o._filters=new t.Report.Components.StiFiltersCollection,o._groupColumns=[],o._results=[],o._sort=[],o.connectionOrder=i.StiConnectionOrder.None,o}return __extends(m,g),m.prototype.saveToJsonObject=function(t){var e=g.prototype.saveToJsonObject.call(this,t);return e.addPropertyEnum("FilterMode",p,this.filterMode,p.And),e.addPropertyJObject("Filters",this.filters.saveToJsonObject(t)),e.addPropertyJObject("GroupColumns",c.Serialize.stringArray(this.groupColumns)),e.addPropertyJObject("Results",c.Serialize.stringArray(this.results)),e.addPropertyJObject("Sort",c.Serialize.stringArray(this.sort)),e},m.prototype.loadFromJsonObject=function(t){g.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"FilterMode":this._filterMode=h.parse(p,r.value.toString());break;case"Filters":this._filters.loadFromJsonObject(r.value);break;case"GroupColumns":this._groupColumns=c.Deserialize.stringArray(r.value);break;case"Results":this._results=c.Deserialize.stringArray(r.value);break;case"Sort":this._sort=c.Deserialize.stringArray(r.value);break}}},m.prototype.loadFromXml=function(t){g.prototype.loadFromXml.call(this,t);for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"FilterMode":this._filterMode=h.parse(p,i.textContent.toString());break;case"Filters":this._filters.loadFromXml(i);break;case"GroupColumns":for(var r=0;r<i.childNodes.length;r++)"value"==i.childNodes[r].nodeName&&this._groupColumns.add(i.childNodes[r].textContent);break;case"Results":for(var n=0;n<i.childNodes.length;n++)"value"==i.childNodes[n].nodeName&&this._results.add(i.childNodes[n].textContent);break;case"Sort":for(var o=0;o<i.childNodes.length;o++)"value"==i.childNodes[o].nodeName&&this._sort.add(i.childNodes[o].textContent);break}}},Object.defineProperty(m.prototype,"filterMethodHandler",{get:function(){return this._filterMethodHandler},set:function(t){this._filterMethodHandler=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"filterOn",{get:function(){return this._filterOn},set:function(t){this._filterOn=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"filterMode",{get:function(){return this._filterMode},set:function(t){this._filterMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"filters",{get:function(){return this._filters},set:function(t){this._filters=t},enumerable:!0,configurable:!0}),m.prototype.getDataAdapterType=function(){return i.StiVirtualAdapterService},Object.defineProperty(m.prototype,"groupColumns",{get:function(){return this._groupColumns},set:function(t){this._groupColumns=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"results",{get:function(){return this._results},set:function(t){this._results=t},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"sort",{get:function(){return this._sort},set:function(t){this._sort=t},enumerable:!0,configurable:!0}),m.prototype.connectToData=function(){var t=null,c=e.StiNameValidator.correctName(this.name);if(null==t&&this.dictionary.report.calculationMode==e.StiCalculationMode.Interpretation||this.dictionary.report.isDesigning){var p=new u;p.name="VirtualSourceBand",p.page=this.dictionary.report.pages.getByIndex(0),p.dataSourceName=this.nameInSource,p.filters=this.filters,t=l.getFilterEventHandler(p,p)}var h=this.dictionary.dataSources.getByName(this.nameInSource);if(null==h)throw String.stiFormat("'{0}' filter. Datasource '{1}' is not found.",this.name,this.nameInSource);for(var g=[],m=0,d=this.groupColumns;m<d.length;m++){var S=d[m],f=S;if(f.startsWith("DESC"))null!=h.columns.getByName(f)&&null==h.columns.getByName(f.substr(4))?g.add("ASC"):(g.add("DESC"),f=f.substr(4));else{if(f.startsWith("NONE"))continue;g.add("ASC")}for(var y=f.split("."),b=0,C=0,v=y;C<v.length;C++){var I=v[C],A=I;(0==b&&y.length>1||b<y.length-1)&&(A=i.StiDataColumn.getRelationName(this.dictionary,h,I)),g.add(A)}}for(var w=0,T=this.sort;w<T.length;w++){var B=T[w];g.add(B)}var R=g.toArray();0==R.length&&(R=null),h.resetDetailsRows(),h.first(),h.setSort(null,R,null,null,null),h.setFilter(t);for(var P=new s,F=0,x=this.columns.list;F<x.length;F++){var D=x[F],k=new a(D.name,D.type);P.columns.add(k)}for(var E=!1,G=new o,_=[],L=0,N=this.groupColumns;L<N.length;L++){var S=N[L],f=S;f.startsWith("DESC")?null!=h.columns.getByName(f)&&null==h.columns.getByName(f.substr(4))||(f=f.substr(4)):f.startsWith("NONE")&&(f=f.substr(4));var O=new i.StiFirstFunctionService;G.set(f,O),_.add(O)}var Z=0;while(Z<this.results.length){var D=this.results[Z++],M=this.results[Z++],H=this.results[Z++];switch(M){case"Sum":var W=new i.StiSumFunctionService;G.set(H,W),_.add(W),E=!0;break;case"SumDistinct":var V=new i.StiSumDistinctFunctionService;G.set(H,V),_.add(V),E=!0;break;case"Count":var Y=new i.StiCountFunctionService;G.set(H,Y),_.add(Y),E=!0;break;case"CountDistinct":var j=new i.StiCountDistinctFunctionService;G.set(H,j),_.add(j),E=!0;break;case"Min":var X=new i.StiMinFunctionService;G.set(H,X),_.add(X),E=!0;break;case"Max":var J=new i.StiMaxFunctionService;G.set(H,J),_.add(J),E=!0;break;case"Avg":var K=new i.StiAvgFunctionService;G.set(H,K),_.add(K),E=!0;break;case"First":var U=new i.StiFirstFunctionService;G.set(H,U),_.add(U),E=!0;break;case"Last":var z=new i.StiLastFunctionService;G.set(H,z),_.add(z),E=!0;break;case"MinDate":var Q=new i.StiMinDateFunctionService;G.set(H,Q),_.add(Q),E=!0;break;case"MaxDate":var q=new i.StiMaxDateFunctionService;G.set(H,q),_.add(q),E=!0;break;case"MinTime":var $=new i.StiMinTimeFunctionService;G.set(H,$),_.add($),E=!0;break;case"MaxTime":var tt=new i.StiMaxTimeFunctionService;G.set(H,tt),_.add(tt),E=!0;break;case"MinStr":var et=new i.StiMinStrFunctionService;G.set(H,et),_.add(et),E=!0;break;case"MaxStr":var it=new i.StiMaxStrFunctionService;G.set(H,it),_.add(it),E=!0;break;case"Mode":var rt=new i.StiModeFunctionService;G.set(H,rt),_.add(rt),E=!0;break;case"Median":var nt=new i.StiMedianFunctionService;G.set(H,nt),_.add(nt),E=!0;break;default:var ot=new i.StiFirstFunctionService;G.set(H,ot),_.add(ot);break}}var at=this.groupColumns.length>0,st=Array.create(Object,this.groupColumns.length),lt=!0,ut=0;!at&&E&&this.initTotals(_);var ct=!E&&!at;h.first(),this.dictionary.report.line=1,this.dictionary.report.lineThrough=1;while(!h.isEof){if(at){for(var pt=Array.create(Object,this.groupColumns.length),ht=0,gt=0,mt=this.groupColumns;gt<mt.length;gt++){var S=mt[gt],f=S;f.startsWith("DESC")?null!=h.columns.getByName(f)&&null==h.columns.getByName(f.substr(4))||(f=f.substr(4)):f.startsWith("NONE")&&(f=f.substr(4)),pt[ht++]=i.StiDataColumn.getDataFromDataColumn(this.dictionary,e.StiNameValidator.correctName(h.name)+"."+f,!1)}var dt=!1;lt?this.initTotals(_):dt=this.compare(st,pt),dt&&(this.addRow(P,G),this.initTotals(_),ut=0),st=pt,lt=!1}var St=null;ct&&(St=P.newRow());try{for(var ft=0,yt=this.groupColumns;ft<yt.length;ft++){var S=yt[ft],f=S;f.startsWith("DESC")?null!=h.columns.getByName(f)&&null==h.columns.getByName(f.substr(4))||(f=f.substr(4)):f.startsWith("NONE")&&(f=f.substr(4));var bt=i.StiDataColumn.getDataFromDataColumn(this.dictionary,e.StiNameValidator.correctName(h.name)+"."+f,!1);if(null==bt&&(bt=n.value),ct)St.sett(S,bt);else{var Ct=G.get(f).sti_as(i.StiAggregateFunctionService);null!=Ct&&Ct.calcItem(bt)}}}catch(t){r.showError(t,!1)}var vt=0;while(vt<this.results.length)try{var D=this.results[vt++],M=this.results[vt++],It=this.results[vt++],bt=n.value;if(String.isNullOrEmpty(D)||null==(bt=i.StiDataColumn.getDataFromDataColumn(this.dictionary,e.StiNameValidator.correctName(h.name)+"."+D,!1))&&(bt=n.value),ct)St.sett(It,bt);else{var Ct=G.get(It).sti_as(i.StiAggregateFunctionService);null!=Ct&&Ct.calcItem(bt)}}catch(t){r.showError(t,!1)}ut++,ct&&P.rows.add(St),h.next(),this.dictionary.report.line++,this.dictionary.report.lineThrough++}ut>0&&(E||at)&&this.addRow(P,G),this.dataTable=P,h.resetData(),h.first()},m.prototype.compare=function(t,e){for(var i=0,r=0,n=t;r<n.length;r++){var o=n[r];if(null==o){if(null==e[i]){i++;continue}return!0}if(!Object.stiEquals(o,e[i++]))return!0}return!1},m.prototype.initTotals=function(t){for(var e=0,i=t;e<i.length;e++){i[e].init()}},m.prototype.addRow=function(t,e){for(var r=t.newRow(),o=0,a=this.columns.list;o<a.length;o++){var s=a[o],l=null!=e.get(s.name)?e.get(s.name).sti_as(i.StiAggregateFunctionService):null;if(null!=l){var u=l.getValue();null==u&&(u=n.value),r.sett(s.name,u)}}t.rows.add(r)},Object.defineProperty(m.prototype,"componentId",{get:function(){return e.StiComponentId.StiVirtualSource},enumerable:!0,configurable:!0}),m.prototype.createNew=function(){return new m},m}(i.StiDataStoreSource);i.StiVirtualSource=g}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(t,i,r,n,o,a,s,l){return void 0===t&&(t=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r=i),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=30),void 0===l&&(l=String.empty),e.call(this,t,i,r,n,o,a,s,l)||this}return __extends(i,e),i.prototype.getDataAdapterType=function(){return t.StiODataAdapterService},i.prototype.createNew=function(){return new i},i}(t.StiSqlSource);t.StiODataSource=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o,a,s,l){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=30),void 0===l&&(l=String.empty),i.call(this,t,e,r,n,o,a,s,l)||this}return __extends(r,i),r.prototype.getDataAdapterType=function(){return e.StiFirebirdAdapterService},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiFirebirdSource},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiSqlSource);e.StiFirebirdSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o,a,s,l){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=30),void 0===l&&(l=String.empty),i.call(this,t,e,r,n,o,a,s,l)||this}return __extends(r,i),r.prototype.getDataAdapterType=function(){return e.StiMySqlAdapterService},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiMySqlSource},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiSqlSource);e.StiMySqlSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o,a,s,l){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=100),void 0===l&&(l=String.empty),i.call(this,t,e,r,n,o,a,s,l)||this}return __extends(r,i),r.prototype.getDataAdapterType=function(){return e.StiOracleAdapterService},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiOracleSource},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiSqlSource);e.StiOracleSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o,a,s,l){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=30),void 0===l&&(l=String.empty),i.call(this,t,e,r,n,o,a,s,l)||this}return __extends(r,i),r.prototype.getDataAdapterType=function(){return e.StiPostgreSQLAdapterService},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiPostgreSQLSource},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiSqlSource);e.StiPostgreSQLSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o,a,s,l){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=e),void 0===n&&(n=String.empty),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=30),void 0===l&&(l=String.empty),i.call(this,t,e,r,n,o,a,s,l)||this}return __extends(r,i),r.registerCustomSource=function(){var t=new r;StiOptions.Services.dataSource.add(t)},r.prototype.getDataAdapterType=function(){return e.StiCustomAdapterService},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiSqlSource},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiSqlSource);e.StiCustomSource=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.CrossTab.StiCrossHeader,n=t.Report.CrossTab.StiCrossCell,o=t.Report.Components.StiFilterMode,a=t.Report.Components.StiCondition,s=t.Report.Components.StiRichText,l=t.Report.Components.StiDataHelper,u=t.System.Text.StringBuilder,c=t.Report.Components.StiMultiCondition,p=t.Report.BarCodes.StiBarCode,h=t.Report.Components.IStiConditions,g=t.Report.CrossTab.StiCrossTab,m=t.Report.Chart.IStiChart,d=t.Report.Components.StiCheckBox,S=t.Report.Components.StiImage,f=t.System.Collections.Hashtable,y=t.Report.Components.StiDataBand,b=t.Report.Components.StiGroupHeaderBand,C=t.Report.Components.StiSimpleText,v=t.Report.Components.StiText,I=t.Report.Engine.StiParser.StiParser,A=t.Report.Engine.StiAsmCommandType,w=t.Report.Engine.StiParser.StiAsmCommand,T=function(){function T(){}return T.getUsedDataSourcesNamesList=function(t){for(var e=T.getUsedDataSourcesNames(t),i=new Array,r=0,n=e.keys;r<n.length;r++){var o=n[r];i.add(o)}return i},T.getUsedDataSourcesNames=function(e){var I=new f,A=e.renderedPages.count>0?e.renderedPages.getByIndex(0):new t.Report.Components.StiPage;A.report=e;var w=new v;w.page=A,w.name="*GetUsedDataSourcesNames*";for(var B=e.getComponents(),R=0;R<B.count;R++){var P=B.getByIndex(R);try{var F=P.sti_as(y);null!=F&&null!=F.dataSourceName&&F.dataSourceName.length>0&&(this.addDataSourceName(I,F.dataSourceName),this.addRelation(I,F.dataRelation),this.addSort(I,w,F.sort,F.dataSourceName));var x=P.sti_as(g);null!=x&&null!=x.dataSourceName&&x.dataSourceName.length>0&&(this.addDataSourceName(I,x.dataSourceName),this.addSort(I,w,x.sort,x.dataSourceName));var D=P.sti_as(b);null!=D&&T.checkExpression(D.condition,P,I);var k=P.sti_as(n);null!=k&&T.checkExpression(k.value,P,I);var E=P.sti_as(r);null!=E&&T.checkExpression(E.displayValue,P,I);var G=P.sti_as(C);null!=G&&T.checkExpression(G.text,P,I);var _=P.sti_as(v);null!=_&&T.checkExpression(_.excelValue,P,I);var L=P.sti_as(s),N=P.sti_as(S);null!=N&&(this.checkExpression(N.imageData,P,I),this.checkExpression("{"+N.dataColumn+"}",P,I));var O=P.sti_as(p);null!=O&&this.checkExpression(O.code,P,I);var Z=P.sti_as(d);null!=Z&&this.checkExpression(Z.checked,P,I);var M=P.sti_as(m);if(null!=M){String.isNullOrEmpty(M.dataSourceName)||this.addDataSourceName(I,M.dataSourceName);for(var H=0,W=M.series.list;H<W.length;H++){var V=W[H];this.checkExpression(V.argument,P,I),this.checkExpression("{"+V.argumentDataColumn+"}",P,I)}}var Y=P.sti_as(t.Report.Components.StiPage),j=P.sti_as(h);if(null!=j&&j.conditions.count>0){for(var X=[],J=0,K=j.conditions.list;J<K.length;J++){var U=K[J],z=U.sti_as(a),Q=null;if(U.sti_is(c)){var q=U.sti_as(c);if(q.filterOn&&q.filters.count>0){for(var $=new u("{"),tt=0;tt<q.filters.count;tt++){var et=q.filters.getByIndex(tt);$.append("("),$.append(l.getFilterExpression(et,et.column,e)),$.append(")"),tt<q.filters.count-1&&$.append(q.filterMode==o.And?" && ":" || ")}$.append("}");var it={condition:q,expression:$.toString()};X.add(it)}}else if(null!=z){Q="{"+l.getFilterExpression(z,z.column,e)+"}";var it={condition:z,expression:Q};X.add(it)}}if(X.count>0)for(var rt=0,nt=X;rt<nt.length;rt++){var it=nt[rt];this.checkExpression(it.condition,P,I)}}}catch(e){t.System.StiError.showError(e,!1)}}for(var ot=new Array,at=0,st=I.keys;at<st.length;at++){var lt=st[at],ut=lt,ct=e.dictionary.dataSources.getByName(ut);if(null!=ct){var pt=ct.sti_as(i.StiVirtualSource);null==pt||String.isNullOrEmpty(pt.nameInSource)||ot.add(ut)}}for(var ht=0,gt=ot;ht<gt.length;ht++){var mt=gt[ht],dt=e.dictionary.dataSources.getByName(mt).sti_as(i.StiVirtualSource),ct=e.dictionary.dataSources.getByName(dt.nameInSource);this.addDataSourceName(I,ct.name);for(var St=0,ft=dt.groupColumns;St<ft.length;St++){var yt=ft[St];this.addDataSourceColumn(I,ct.name,yt)}var tt=0;while(tt<dt.results.length)this.addDataSourceColumn(I,ct.name,dt.results[tt]),tt+=3;this.addSort(I,w,dt.sort,ct.name)}for(var bt=0,Ct=e.dictionary.variables.list;bt<Ct.length;bt++){var vt=Ct[bt];vt.initBy==i.StiVariableInitBy.Expression&&(this.checkExpression("{"+vt.value+"}",w,I),vt.type==t.Report.Range&&(this.checkExpression("{"+vt.initByExpressionFrom+"}",w,I),this.checkExpression("{"+vt.initByExpressionTo+"}",w,I))),vt.requestFromUser&&vt.dialogInfo.itemsInitializationType==i.StiItemsInitializationType.Columns&&this.checkExpression("{"+vt.dialogInfo.keysColumn+"}",w,I)}if(null!=e.listOfUsedData)for(var It=0,At=e.listOfUsedData;It<At.length;It++){var mt=At[It];this.addDataSourceName(I,mt)}return I},T.checkExpression=function(e,r,n){try{var o=!1,a={ref:o},s=I.parseTextValue(e,r,r,a,!1,!0);if(o=a.ref,null!=s&&s.sti_is(Array)&&s.length>0&&s[0].sti_is(w))for(var l=function(t){if(t.type==A.PushDataSourceField){var e=t.parameter1.split("."),o=r.report.dictionary.dataSources.getByName(e[0]);if(o.sti_is(i.StiVirtualSource)&&e.count>2){var a=e[1]+"."+e[2];o.columns.contains(a)?(e[1]=a,e.removeAt(2)):e.count>3&&(a+="."+e[3],o.columns.contains(a)&&(e[1]=a,e.removeAt(2),e.removeAt(2)))}if(u.addDataSourceName(n,o.name),e.count>2){var s=e[1];u.addRelation(n,o.getParentRelations().toList().where(function(t){return t.nameInSource==s}).first()),o=o.getParentDataSource(s),u.addDataSourceName(n,o.name);var l=2;while(l<e.count-1)s=e[l],u.addRelation(n,o.getParentRelations().toList().where(function(t){return t.nameInSource==s}).first()),o=o.getParentDataSource(s),u.addDataSourceName(n,o.name),l++}e.count>1&&u.addDataSourceColumn(n,o.name,e[e.count-1])}},u=this,c=0,p=s;c<p.length;c++){var h=p[c];l(h)}}catch(e){t.System.StiError.showError(e,!1)}},T.addDataSourceName=function(t,e){t.containsKey(e)||t.set(e,new f)},T.addDataSourceColumn=function(t,e,i){var r=t.get(e).sti_as(f);null==r&&(r=new f,t.set(e,r)),r.set(i,i)},T.addRelation=function(t,e){if(null!=e){if(null!=e.childSource){this.addDataSourceName(t,e.childSource.name);for(var i=0,r=e.childColumns;i<r.length;i++){var n=r[i];this.addDataSourceColumn(t,e.childSource.name,n)}}if(null!=e.parentSource){this.addDataSourceName(t,e.parentSource.name);for(var o=0,a=e.parentColumns;o<a.length;o++){var n=a[o];this.addDataSourceColumn(t,e.parentSource.name,n)}}}},T.addSort=function(t,e,i,r){var n=1;while(n<i.length){var o=i[n];o.startsWith("{")?this.checkExpression(o,e,t):this.addDataSourceColumn(t,r,o),n+=2}},T.getDataSourcesUsedInRequestFromUsersVariables=function(r){var n=new f,o=new v;o.name="*RequestFromUserVariable*",o.page=new t.Report.Components.StiPage(r);for(var a=0,s=r.dictionary.variables.list;a<s.length;a++){var l=s[a];l.requestFromUser&&(l.dialogInfo.itemsInitializationType==i.StiItemsInitializationType.Columns&&this.checkExpression("{"+l.dialogInfo.keysColumn+"}",o,n),l.initBy==i.StiVariableInitBy.Expression&&(this.checkExpression("{"+l.value+"}",o,n),l.type==e.Range&&(this.checkExpression("{"+l.initByExpressionFrom+"}",o,n),this.checkExpression("{"+l.initByExpressionTo+"}",o,n))))}return n},T}();i.StiDataSourceHelper=T}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.Value=0]="Value",t[t.Expression=1]="Expression"}(e=t.StiVariableInitBy||(t.StiVariableInitBy={}));var i;!function(t){t[t.Date=0]="Date",t[t.DateAndTime=1]="DateAndTime",t[t.Time=2]="Time"}(i=t.StiDateTimeType||(t.StiDateTimeType={}));var r;!function(t){t[t.Items=0]="Items",t[t.Columns=1]="Columns"}(r=t.StiItemsInitializationType||(t.StiItemsInitializationType={}));var n;!function(t){t[t.Value=0]="Value",t[t.NullableValue=1]="NullableValue",t[t.List=2]="List",t[t.Range=3]="Range"}(n=t.StiTypeMode||(t.StiTypeMode={}));var o;!function(t){t[t.Asc=0]="Asc",t[t.Desc=1]="Desc"}(o=t.StiSortOrder||(t.StiSortOrder={}));var a;!function(t){t[t.None=0]="None",t[t.IfDictionaryEmpty=1]="IfDictionaryEmpty",t[t.Always=2]="Always"}(a=t.StiAutoSynchronizeMode||(t.StiAutoSynchronizeMode={}));var s;!function(t){t[t.None=0]="None",t[t.DenyEdit=1]="DenyEdit",t[t.DenyDelete=2]="DenyDelete",t[t.DenyMove=4]="DenyMove",t[t.DenyShow=8]="DenyShow"}(s=t.StiRestrictionTypes||(t.StiRestrictionTypes={}));var l;!function(t){t[t.BusinessObject=0]="BusinessObject",t[t.DataSource=1]="DataSource",t[t.DataRelation=2]="DataRelation",t[t.DataColumn=3]="DataColumn",t[t.Database=4]="Database",t[t.Resource=5]="Resource",t[t.Variable=6]="Variable",t[t.Total=7]="Total"}(l=t.StiDataType||(t.StiDataType={}));var u;!function(t){t[t.Never=0]="Never",t[t.OnEachRecord=1]="OnEachRecord",t[t.OnGroupChanged=2]="OnGroupChanged",t[t.OnPageChanged=3]="OnPageChanged",t[t.OnColumnChanged=4]="OnColumnChanged",t[t.OnEachNewBand=5]="OnEachNewBand",t[t.OnExpressionChanged=6]="OnExpressionChanged"}(u=t.StiTotalEvent||(t.StiTotalEvent={}));var c;!function(t){t[t.Image=0]="Image",t[t.Csv=1]="Csv",t[t.Dbf=2]="Dbf",t[t.Json=3]="Json",t[t.Xml=4]="Xml",t[t.Xsd=5]="Xsd",t[t.Excel=6]="Excel",t[t.Rtf=7]="Rtf",t[t.Txt=8]="Txt",t[t.Report=9]="Report",t[t.FontTtc=10]="FontTtc",t[t.FontTtf=11]="FontTtf",t[t.FontOtf=12]="FontOtf",t[t.FontEot=13]="FontEot",t[t.FontWoff=14]="FontWoff"}(c=t.StiResourceType||(t.StiResourceType={}));var p;!function(t){t[t.All=0]="All",t[t.Browsable=1]="Browsable"}(p=t.StiPropertiesProcessingType||(t.StiPropertiesProcessingType={}));var h;!function(t){t[t.All=0]="All",t[t.Browsable=1]="Browsable"}(h=t.StiFieldsProcessingType||(t.StiFieldsProcessingType={}));var g;!function(t){t[t.None=0]="None",t[t.Standard=1]="Standard",t[t.Sql=2]="Sql"}(g=t.StiConnectionOrder||(t.StiConnectionOrder={}));var m;!function(t){t[t.Table=0]="Table",t[t.StoredProcedure=1]="StoredProcedure"}(m=t.StiSqlSourceType||(t.StiSqlSourceType={}));var d;!function(t){t[t.KeepAbsentColumns=0]="KeepAbsentColumns",t[t.RemoveAbsentColumns=1]="RemoveAbsentColumns"}(d=t.StiColumnsSynchronizationMode||(t.StiColumnsSynchronizationMode={}));var S;!function(t){t[t.FromVariable=0]="FromVariable",t[t.Nothing=1]="Nothing",t[t.First=2]="First"}(S=t.StiSelectionMode||(t.StiSelectionMode={}))}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(t.StiDataTableSource);t.StiUndefinedDataSource=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Collections.CollectionBase,n=t.System.ICloneable,o=t.System.Collections.IComparer,a=t.System.Collections.Hashtable,s=t.Base.JsonReportObject.IStiJsonReportObject,l=t.Base.StiJson,u=t.Report.Dictionary.StiUndefinedDataSource,c=t.System.Promise,p=function(t){function r(e){var i=t.call(this)||this;return i.directionFactor=1,i.dictionary=e,i}return __extends(r,t),r.prototype.implements=function(){return[s,n,o]},r.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new l,i=0,r=0,n=this.list;r<n.length;r++){var o=n[r];e.addPropertyJObject(i.toString(),o.saveToJsonObject(t)),i++}return e},r.prototype.loadFromJsonObject=function(t){for(var e=StiOptions.Services.dataSource,i=function(t){var i=t.value,n=i.properties().firstOrDefault(function(t){return"Ident"==t.name}),o=n.value,a=e.firstOrDefault(function(t){return t.getStiType().getStiTypeName()==o}).createNew();a.dictionary=r.dictionary,a.loadFromJsonObject(i),r.list.add(a)},r=this,n=0,o=t.properties();n<o.length;n++){i(o[n])}},r.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(null==r.attributes)continue;if(null!=r.attributes.getNamedItem("type")){var n=r.attributes.getNamedItem("Ref").value,o=r.attributes.getNamedItem("type").value.split(".").pop();switch(0==o.indexOf("Sti")&&(o=o.substr(3)),o){case"DataTableSource":var a=new i.StiDataTableSource;a.xmlRefAttrValue=n,a.dictionary=this.dictionary,a.loadFromXml(r),this.list.add(a);break;case"MySqlSource":var s=new i.StiMySqlSource;s.xmlRefAttrValue=n,s.dictionary=this.dictionary,s.loadFromXml(r),this.list.add(s);break;case"SqlSource":var l=new i.StiSqlSource;l.xmlRefAttrValue=n,l.dictionary=this.dictionary,l.loadFromXml(r),this.list.add(l);break;case"UndefinedDataSource":var c=new u;c.xmlRefAttrValue=n,c.dictionary=this.dictionary,c.loadFromXml(r),this.list.add(c);break;case"VirtualSource":var p=new i.StiVirtualSource;p.xmlRefAttrValue=n,p.dictionary=this.dictionary,p.loadFromXml(r),this.list.add(p);break;case"FirebirdSource":var h=new i.StiFirebirdSource;h.xmlRefAttrValue=n,h.dictionary=this.dictionary,h.loadFromXml(r),this.list.add(h);break;case"OracleSource":var g=new i.StiOracleSource;g.xmlRefAttrValue=n,g.dictionary=this.dictionary,g.loadFromXml(r),this.list.add(g);break;case"PostgreSQLSource":var m=new i.StiPostgreSQLSource;m.xmlRefAttrValue=n,m.dictionary=this.dictionary,m.loadFromXml(r),this.list.add(m);break;case"ODataSource":var d=new i.StiODataSource;d.xmlRefAttrValue=n,d.dictionary=this.dictionary,d.loadFromXml(r),this.list.add(d);break}}}},r.prototype.compare=function(t,e){var r=t.sti_as(i.StiDataSource),n=e.sti_as(i.StiDataSource);return r.name.compareTo(n.name)*this.directionFactor},Object.defineProperty(r.prototype,"cachedDataSources",{get:function(){return null==this._cachedDataSources&&(this._cachedDataSources=new a),this._cachedDataSources},enumerable:!0,configurable:!0}),r.prototype.toList=function(){return this.list},r.prototype.add=function(t){null!=this.dictionary&&(t.dictionary=this.dictionary),this.list.add(t)},r.prototype.addRange=function(t){for(var e=t.sti_is(r)?t.list:t,i=0,n=e;i<n.length;i++){var o=n[i];this.add(o)}},r.prototype.contains=function(t){if(t.sti_is(i.StiDataSource))return this.list.contains(t.sti_as(i.StiDataSource));if(t.sti_is(String))return null!=this.getByName(name);return!1},r.prototype.indexOf=function(t){return this.list.indexOf(t)},r.prototype.insert=function(t,e){this.list.insert(t,e)},r.prototype.onClear=function(){t.prototype.onClear.call(this),null!=this.dictionary&&this.dictionary.relations.clear(),null!=this._cachedDataSources&&(this._cachedDataSources.clear(),this._cachedDataSources=null)},r.prototype.remove=function(t){if(this.list.remove(t),null!=this.dictionary){var e=0;while(e<this.dictionary.relations.count)this.dictionary.relations.getByIndex(e).parentSource==t||this.dictionary.relations.getByIndex(e).childSource==t?this.dictionary.relations.remove(this.dictionary.relations.getByIndex(e)):e++}var i=t.name.toLower();null!=this.cachedDataSources.get(i)&&this.cachedDataSources.remove(i)},r.prototype.getByIndex=function(t){return this.list[t]},r.prototype.setByIndex=function(t,e){this.list[t]=e},r.prototype.getByName=function(t){t=t.toLower();var i=this.cachedDataSources.get(t);if(null!=i)return i;for(var r=0,n=this.list;r<n.length;r++){var o=n[r];if(o.name.toLower()==t)return this.cachedDataSources.set(t,o),o;if(e.StiNameValidator.correctName(o.name.toLower())==e.StiNameValidator.correctName(t))return this.cachedDataSources.set(t,o),o}return null},r.prototype.getByXmlRef=function(t){for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.xmlRefAttrValue==t)return r}return null},r.prototype.setByName=function(t,e){t=t.toLower();for(var r=0;r<this.list.count;r++){if(this.list[r].sti_as(i.StiDataSource).name.toLower()==t)return void(this.list[r]=e)}this.add(e)},Object.defineProperty(r.prototype,"items",{get:function(){return this._list},enumerable:!0,configurable:!0}),r.prototype.clone=function(){for(var t=new r(this.dictionary),e=0,n=this.list;e<n.length;e++){var o=n[e];t.add(o.clone().sti_as(i.StiDataSource))}return t},r.prototype.sort=function(t,e){if(void 0===t&&(t=i.StiSortOrder.Asc),void 0===e&&(e=!0),t==i.StiSortOrder.Asc?this.directionFactor=1:this.directionFactor=-1,this.list.sort(),e)for(var r=0,n=this.list;r<n.length;r++){var o=n[r];o.columns.sort(t)}},r.prototype.clearParametersExpression=function(){for(var t=0,e=this.list;t<e.length;t++){var i=e[t],r=i;if(null!=r)for(var n=0,o=r.parameters.list;n<o.length;n++){var a=o[n];a.expression=String.empty}}},r.prototype.connectAsync=function(t,e){void 0===e&&(e=null);var r=new c,n=[];this.items.copyTo(n),n.sort();for(var o=0,a=0,s=n;a<s.length;a++){var l=s[a];if(l.connectionOrder==i.StiConnectionOrder.None)continue;l.connectOnStart&&(t||l.sti_is(i.StiDataTableSource))&&(o++,l.connectAsync(e,t).try(function(){0==--o&&r.callTry()}).catch(function(t){r.callCatch(t)}).abort(r))}return 0==o&&r.callTry(),r},r.prototype.connect=function(t,e){void 0===e&&(e=null);var r=[];this.items.copyTo(r),r.sort();for(var n=0,o=r;n<o.length;n++){var a=o[n];if(a.connectionOrder==i.StiConnectionOrder.None)continue;a.connectOnStart&&(t||a.sti_is(i.StiDataTableSource))&&a.connect(e,t)}},r.prototype.disconnect=function(){for(var t=0,e=this.list;t<e.length;t++){e[t].disconnect()}},r}(r);i.StiDataSourcesCollection=p;var h=function(){function t(){}return t.prototype.compare=function(t,e){return t.connectionOrder.compareTo(e.connectionOrder)},t}()}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiDataLoaderHelper,r=t.Base.StiDataLoaderHelperData,n=function(){function t(){}return t.loadSingle=function(t,n,o){if(String.isNullOrEmpty(n))return null;if(e.StiHyperlinkProcessor.isResourceHyperlink(n))return new r(e.StiHyperlinkProcessor.getResourceNameFromHyperlink(n),e.StiHyperlinkProcessor.getBytes(t,n));return i.loadSingle(n,o)},t}();e.StiUniversalDataLoader=n}(i=e.Helpers||(e.Helpers={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Char,n;!function(t){t[t.Simple=0]="Simple",t[t.Advanced=1]="Advanced"}(n=e.StiNamingRule||(e.StiNamingRule={}));var o=function(){function e(){}return Object.defineProperty(e,"namingRule",{get:function(){return StiOptions.Engine.namingRule},set:function(t){StiOptions.Engine.namingRule=t},enumerable:!0,configurable:!0}),e.removeSpacesFromName=function(e,i){if(i){for(var n=e,o=0,a=e.length,s=0;s<a;s++)" "==e.charAt(s)?(n.remove(o,1),o<n.length&&r.isLetter(n.charAt(o))&&n.insert(o,r.toUpper(n.charAt(o)),1)):o++;return e=n.toString(),t.Report.StiNameValidator.correctName(e)}return e},e.createSimpleName=function(t,e){return(e=this.removeSpacesFromName(e,!0))+(t.indexName++).toString()},e.createName=function(t,i,r,o,a){if(void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===a&&(a=!1),i=e.removeSpacesFromName(i,o),!(a||t.isDesigning&&e.namingRule!=n.Simple))return i+(t.indexName++).toString();var s=t.getComponents(),l=1;if(0==s.count&&0==t.dataSources.count&&0==t.dictionary.dataSources.count&&0==t.dictionary.relations.count&&0==t.dictionary.variables.count){if(r)return i+"1";return i}while(!0){var u=i+l.toString(),c=void 0;if(c=r||1!=l?u:i,null==e.getObjectWithName(null,t,s,c)){if(!r&&1==l)return i;return u}l++}},e.createResourceName=function(t,e){e=this.removeSpacesFromName(e,!1);var i=1;while(!0){var r=1==i?e:e+i;if(!this.isResourceNameExists(t,r))return r;i++}},e.createConnectionName=function(t,e){e=this.removeSpacesFromName(e,!1);var i=1;while(!0){var r=1==i?e:e+i;if(!this.isConnectionNameExists(t,r))return r;i++}},e.isResourceNameExists=function(t,e){return e=e.toLower().trim(),t.dictionary.resources.toList().any(function(t){return t.name.toLower().trim()==e})},e.isConnectionNameExists=function(t,e){return e=e.toLower().trim(),t.dictionary.databases.toList().any(function(t){return t.name.toLower().trim()==e})},e.isValidName=function(t,e){if(String.isNullOrEmpty(e)||!r.isLetter(e.charAt(0))&&"_"!=e.charAt(0))return!1;for(var i=0;i<e.length;i++)if(!r.isLetterOrDigit(e.charAt(i))&&"_"!=e.charAt(i))return!1;for(var n=t.getComponents(),o=0,a=n.list;o<a.length;o++){if(e==a[o].name)return!1}return!0},e.exists=function(t,i,r){if(null==i)return null;return null!=e.getObjectWithName(t,i,i.getComponents(),r)},e.checkName=function(t,i,r,n,o){if(void 0===o&&(o=!0),null!=i&&i.isDesigning){if(e.exists(t,i,r))return!1;if(o&&!e.isValidName(i,r))return!1}return!0},e.getObjectWithName=function(t,e,i,r){if(null==e)return null;for(var n=0;n<i.count;n++){var o=i.getByIndex(n);if(r==o.name&&t!=o)return o}for(var n=0;n<e.dictionary.dataSources.count;n++){var a=e.dictionary.dataSources.getByIndex(n);if(r==a.name&&t!=a)return a}for(var n=0;n<e.dictionary.businessObjects.count;n++){var s=e.dictionary.businessObjects.getByIndex(n);if(r==s.name&&t!=s)return s}for(var n=0;n<e.dictionary.variables.count;n++){var l=e.dictionary.variables.getByIndex(n);if(r==l.name&&t!=l)return l}return null},e.generateName1=function(t,e,i){if(StiOptions.Engine.forceGenerationLocalizedName)return e;if(!StiOptions.Engine.forceGenerationNonLocalizedName&&null!=t&&t.info.generateLocalizedName)return e;var r=i;return r.length>1&&"Sti"==r.substr(0,3)&&(r=r.substr(3)),r},e.generateName2=function(t,i,r){return e.generateName1(t,i,r.getStiType().getStiTypeName())},e.generateName=function(t){return e.generateName2(t.report,t.localizedName,t.getStiType())},e.generateName4=function(t){return e.generateName2(t.dictionary.report,i.get("PropertyMain","DataRelation"),t.getStiType())},e.generateName5=function(t){return e.generateName2(t.dictionary.report,i.get("PropertyMain","DataSource"),t.getStiType())},e}();e.StiNameCreation=o}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Disconnected"},e}(t.StiEvent);t.StiDisconnectedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Disconnecting"},e}(t.StiEvent);t.StiDisconnectingEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Connected"},e}(t.StiEvent);t.StiConnectedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Connecting"},e}(t.StiEvent);t.StiConnectingEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Events.StiDisconnectedEvent,n=t.Report.Events.StiDisconnectingEvent,o=t.Report.Events.StiConnectedEvent,a=t.Report.Events.StiConnectingEvent,s=t.System.EventArgs,l=t.Base.Services.StiService,u=t.Base.Localization.StiLocalization,c=t.Base.JsonReportObject.IStiJsonReportObject,p=t.Base.StiJson,h=t.System.Promise,g;!function(t){t[t.Name=100]="Name",t[t.Alias=200]="Alias",t[t.ConnectionString=300]="ConnectionString",t[t.FirstRowIsHeader=350]="FirstRowIsHeader",t[t.PathSchema=400]="PathSchema",t[t.PathData=500]="PathData",t[t.XmlType=600]="XmlType",t[t.PromptUserNameAndPassword=700]="PromptUserNameAndPassword",t[t.SaveDataInReportResources=800]="SaveDataInReportResources"}(g=i.Order||(i.Order={}));var m=function(t){function l(e,i,s){void 0===e&&(e=String.empty),void 0===i&&(i=null),void 0===s&&(s=null);var l=t.call(this)||this;return l._inherited=!1,l.connectingEvent=new a,l.connectedEvent=new o,l.disconnectingEvent=new n,l.disconnectedEvent=new r,l._key=null,l._name=e,l._alias=i||e,l._key=s,l}return __extends(l,t),l.prototype.implements=function(){return[e.IStiInherited,c]},l.prototype.saveToJsonObject=function(t){var e=new p;return e.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),e.addPropertyBool("Inherited",this.inherited),e.addPropertyJObject("ConnectingEvent",this.connectingEvent.saveToJsonObject(t)),e.addPropertyJObject("ConnectedEvent",this.connectedEvent.saveToJsonObject(t)),e.addPropertyJObject("DisconnectingEvent",this.disconnectingEvent.saveToJsonObject(t)),e.addPropertyJObject("DisconnectedEvent",this.disconnectedEvent.saveToJsonObject(t)),e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyStringNullOfEmpty("Alias",this.alias),e.addPropertyStringNullOfEmpty("Key",this.key),e},l.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Inherited":this._inherited=r.value.toBoolean();break;case"ConnectingEvent":this.connectingEvent.loadFromJsonObject(r.value);break;case"ConnectedEvent":this.connectedEvent.loadFromJsonObject(r.value);break;case"DisconnectingEvent":this.disconnectingEvent.loadFromJsonObject(r.value);break;case"DisconnectedEvent":this.disconnectedEvent.loadFromJsonObject(r.value);break;case"Name":this._name=r.value;break;case"Alias":this._alias=r.value;break;case"Key":this._key=r.value;break}}},l.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"Inherited":this._inherited=i.textContent.toBoolean();break;case"Name":this._name=i.textContent;break;case"Alias":this._alias=i.textContent;break;case"Key":this._key=i.textContent;break}}},Object.defineProperty(l.prototype,"inherited",{get:function(){return this._inherited},set:function(t){this._inherited=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"serviceCategory",{get:function(){return u.get("PropertyMain","CategoryConnections")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"serviceType",{get:function(){return l.getStiType()},enumerable:!0,configurable:!0}),l.prototype.onConnecting=function(t){},l.prototype.invokeConnecting=function(){this.onConnecting(s.empty)},l.prototype.onConnected=function(t){},l.prototype.invokeConnected=function(){this.onConnected(s.empty)},l.prototype.onDisconnecting=function(t){},l.prototype.invokeDisconnecting=function(){this.onDisconnecting(s.empty)},l.prototype.onDisconnected=function(t){},l.prototype.invokeDisconnected=function(){this.onDisconnected(s.empty)},Object.defineProperty(l.prototype,"serviceName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"key",{get:function(){return this._key},set:function(t){this._key=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"connectionType",{get:function(){return i.StiConnectionType.Other},enumerable:!0,configurable:!0}),l.prototype.applyDatabaseInformation=function(t,r,n){void 0===n&&(n=null);for(var o=0,a=t.tables;o<a.length;o++){for(var s=a[o],l=new i.StiDataTableSource(this.name+"."+s.tableName,e.StiNameCreation.createName(r,s.tableName,!1,!1,!0)),u=0,c=s.columns.list;u<c.length;u++){var p=c[u],h=new i.StiDataColumn(p.columnName,p.columnName,p.columnName,p.dataType);l.columns.add(h)}r.dictionary.dataSources.add(l)}},l.prototype.getDatabaseInformationAsync=function(t){var e=new h,i=this;return setTimeout(function(){try{var r=i.getDatabaseInformation(t);e.callTry(r)}catch(t){e.callCatch(t.message)}}),e},l.prototype.getDatabaseInformation=function(t){return null},l.prototype.toString=function(){if(!StiOptions.Dictionary.showOnlyAliasForDatabase){if(this.name==this.alias||0==this.alias.length)return String.stiFormat("{0} [{1}] ",this.name,this.serviceName);return String.stiFormat("{0} [{1}] ",this.name,this.alias)}if(!String.isNullOrEmpty(this.alias))return this.alias;return this.name},l.prototype.regData=function(t,e){},l.prototype.regDataAsync=function(t,e){var i=new h,r=this;return setTimeout(function(){try{r.regData(t,e),i.callTry()}catch(t){i.callTry()}}),i},l.prototype.createNew=function(){return null},l}(l);i.StiDatabase=m}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiText,n=function(n){function o(t,e,i){void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===i&&(i=String.empty);var r=n.call(this,t,t,i)||this;return r.pathData=e,r}return __extends(o,n),o.prototype.saveToJsonObject=function(t){var e=n.prototype.saveToJsonObject.call(this,t);return e.addPropertyStringNullOfEmpty("PathData",this.pathData),e},o.prototype.loadFromJsonObject=function(t){n.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"PathData":this.pathData=r.value;break}}},o.prototype.loadFromXml=function(t){n.prototype.loadFromXml.call(this,t);for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"PathData":this.pathData=i.textContent;break}}},o.prototype.createDataSources=function(t){var e=this;this.getDatabaseInformation(t).tables.select(function(r){var n=new i.StiDataTableSource;return n.dictionary=t,n.nameInSource=String.stiFormat("{0}.{1}",e.name,r.tableName),n.name=r.tableName,n.alias=r.tableName,n.columns=new i.StiDataColumnsCollection(r.columns.list),t.dataSources.add(n),n})},o.prototype.parsePathExpression=function(i,n){if(!StiOptions.Dictionary.allowRestConnections)return n;var o=new r;if(o.name="**RestConnection**",o.page=i.report.pages.getByIndex(0),n.match(/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi)){var a="",s=0;while(s<n.length){var l=s;while(s<n.length&&"{"!=n[s])s++;if(s!=l&&(a+=n.substr(l,s-l)),s<n.length&&"{"==n[s]){s++,l=s;var u=!1;while(s<n.length){if('"'==n[s]){s++;var c=s;while(c<n.length){if('"'==n[c])break;"\\"==n[c]&&c++,c++}s=c+1;continue}if("}"==n[s]){var p=n.substr(l,s-l),h=t.Report.Engine.StiParser.StiParser.parseTextValue("{"+p+"}",o);null!=h&&(a+=t.Report.Export.StiExportUtils.stringToUrl(h.toString())),u=!0,s++;break}s++}u||(a+=n.substr(l))}}return a}var g=e.Engine.StiParser.StiParser.parseTextValue(n,o);if(null==g)return"";return g.toString()},o}(i.StiDatabase);i.StiFileDatabase=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Helpers.StiHyperlinkProcessor,n=t.Report.Helpers.StiUniversalDataLoader,o=t.System.Data.DataSet,a=function(a){function s(t,e,i,r,n){void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===i&&(i=0),void 0===r&&(r=null),void 0===n&&(n=String.empty);var o=a.call(this,t,e,n)||this;return o.codePage=i,o.separator=r,o}return __extends(s,a),s.prototype.saveToJsonObject=function(t){var e=a.prototype.saveToJsonObject.call(this,t);return e.addPropertyStringNullOfEmpty("Separator",this.separator),e.addPropertyNumberNoDefaultValue("CodePage",this.codePage),e},s.prototype.loadFromJsonObject=function(t){a.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Separator":this.separator=r.value;break;case"CodePage":this.codePage=r.value.toNumber();break}}},s.prototype.loadFromXml=function(t){a.prototype.loadFromXml.call(this,t);for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"Separator":this.separator=i.textContent;break;case"CodePage":this.codePage=i.textContent.toNumber();break}}},Object.defineProperty(s.prototype,"serviceName",{get:function(){return"CSV"},enumerable:!0,configurable:!0}),s.prototype.createNew=function(){return new s},Object.defineProperty(s.prototype,"componentId",{get:function(){return e.StiComponentId.StiCsvDatabase},enumerable:!0,configurable:!0}),s.prototype.getDatabaseInformation=function(e){var o=new i.StiDatabaseInformation;try{if(!String.isNullOrEmpty(this.pathData))try{var a=n.loadSingle(e.report,this.pathData,!1).array;if(null!=a){var s=t.Base.StiCsvHelper.getTable2(a,this.codePage,this.separator);if(null!=s){var l=this.pathData.substring(this.pathData.lastIndexOf("/"));this.pathData!=l?l=l.substr(1):(l=this.pathData.substring(this.pathData.lastIndexOf("\\")),this.pathData!=l&&(l=l.substr(1))),s.tableName=l.substring(0,l.lastIndexOf(".")),r.isResourceHyperlink(this.pathData)&&(s.tableName=r.getResourceNameFromHyperlink(this.pathData)),s.rows.clear(),o.tables.add(s)}}}catch(t){}}catch(t){}return o},s.prototype.regData=function(e,r){var a=null,s=this.parsePathExpression(e,this.pathData);if(!String.isNullOrEmpty(s))try{var l=n.loadSingle(e.report,s,!0).array;if(null!=l){var u=t.Base.StiCsvHelper.getTable2(l,this.codePage,this.separator,r);if(null!=u){var c=this.pathData.substring(this.pathData.lastIndexOf("/"));this.pathData!=c?c=c.substr(1):(c=this.pathData.substring(this.pathData.lastIndexOf("\\")),this.pathData!=c&&(c=c.substr(1))),u.tableName=c.substring(0,c.lastIndexOf(".")),a=new o,a.enforceConstraints=!1,a.tables.add(u)}}l=null}catch(t){}if(null!=a){a.dataSetName=this.name;for(var p=0,h=a.tables.list;p<h.length;p++){var g=h[p],m=new i.StiData(this.name+"."+g.tableName,g);m.isReportData=!0,e.dataStore.setByName(m.name,m)}}},s}(i.StiFileDatabase);i.StiCsvDatabase=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.DateTime,n=t.Report.Helpers.StiUniversalDataLoader,o=t.System.Data.DataColumn,a=t.System.Data.DataSet,s=function(s){function l(t,e,i,r){void 0===t&&(t=""),void 0===e&&(e=""),void 0===i&&(i=null),void 0===r&&(r=!0);var n=s.call(this,t,e,i)||this;return n._firstRowIsHeader=!0,n.pathData=e,n.firstRowIsHeader=r,n}return __extends(l,s),l.prototype.createNew=function(){return new l},Object.defineProperty(l.prototype,"serviceName",{get:function(){return"Excel"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"componentId",{get:function(){return e.StiComponentId.StiExcelDatabase},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"firstRowIsHeader",{get:function(){return this._firstRowIsHeader},set:function(t){this._firstRowIsHeader=t},enumerable:!0,configurable:!0}),l.prototype.getDatabaseInformation=function(e){try{for(var r=this.getDataSet(e),n=new i.StiDatabaseInformation,o=0,a=r.tables.list;o<a.length;o++){var s=a[o];n.tables.add(s)}return n}catch(e){throw 0==e.message.indexOf("Unsupported file")&&(e.message="Unsupported file."),t.System.StiError.showError(e,!1),e}},l.prototype.regData=function(e,r){try{var n=this.getDataSet(e);if(null!=n){n.dataSetName=this.name;for(var o=0,a=n.tables.list;o<a.length;o++){var s=a[o],l=new i.StiData(this.name+"."+s.tableName,s);l.isReportData=!0,e.dataStore.setByName(l.name,l)}}}catch(e){throw 0==e.message.indexOf("Unsupported file")&&(e.message="Unsupported file."),t.System.StiError.showError(e,!1),e}},l.prototype.getDataSet=function(e){var i=this.parsePathExpression(e,this.pathData),r={pathData:i,database:this.serviceName,command:"GetData",preventDefault:!1},o=new a,s=this,l=function(r){if(null==r){var a=n.loadSingle(e.report,i,!0);null!=a&&(r=a.array)}o=t.Report.Helpers.StiResourceArrayToDataSet.get(t.Report.Dictionary.StiResourceType.Excel,r)};return e.report.invokeBeginProcessData(r,l),0==r.preventDefault&&l(null),e.report.invokeEndProcessData({dataSet:o}),o},l.prototype.getDataSetPrivate=function(e){if(null==e)return null;for(var i=new a,n=0,s=e.SheetNames;n<s.length;n++){var l=s[n],u=e.Sheets[l],c=[];for(var p in u){if("!range"==p||"!ref"==p||"!merges"==p||"!margins"==p)continue;var h=u[p],g=p.match(/(\w+?)(\d+)/),m=g[1],d=+g[2],S=c[d];S?S[m]=h:(S={},S[m]=h,c[d]=S)}var f=new t.System.Data.DataTable(l);i.tables.add(f),c.splice(0,1);var y={},b=0,C=c[0];this.firstRowIsHeader&&(C=c.splice(0,1)[0]);for(var m in C){var v=String;switch(c[0][m].t){case"b":v=Boolean;break;case"n":v=Number;break;case"d":v=r;break}y[m]=b++,f.columns.add(new o(C[m].w,v))}for(var I=0,A=c;I<A.length;I++){var S=A[I],w=f.addNewRow();for(var m in S)w.sett(y[m],S[m].v)}}return i},l}(i.StiFileDatabase);i.StiExcelDatabase=s}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Helpers.StiUniversalDataLoader,r=t.System.Promise,n=t.System.Data.DataSet,o=function(o){function a(t,e,i){void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===i&&(i=null);var r=o.call(this,t,t,i)||this;return r.pathData=e,r}return __extends(a,o),a.prototype.createNew=function(){return new a},Object.defineProperty(a.prototype,"serviceName",{get:function(){return"JSON"},enumerable:!0,configurable:!0}),a.prototype.getDataSet=function(e){var r=this.parsePathExpression(e,this.pathData),o={pathData:r,database:this.serviceName,command:"GetData",preventDefault:!1},a=new n,s=function(n){if(null==n){var o=i.loadSingle(e.report,r,!1);null!=o&&(n=o.array)}a=t.Report.Helpers.StiResourceArrayToDataSet.get(t.Report.Dictionary.StiResourceType.Json,n)};return e.report.invokeBeginProcessData(o,s),0==o.preventDefault&&s(null),e.report.invokeEndProcessData({dataSet:a}),a},a.prototype.getDataSetAsync=function(e){var o=new r,a=this.parsePathExpression(e,this.pathData),s={pathData:a,database:this.serviceName,command:"GetData",preventDefault:!1},l=new n,u=function(r){if(null==r){var n=i.loadSingle(e.report,a,!1);null!=n&&(r=n.array)}l=t.Report.Helpers.StiResourceArrayToDataSet.get(t.Report.Dictionary.StiResourceType.Json,r),o.callTry(l)};return e.report.invokeBeginProcessData(s,u),0==s.preventDefault&&u(null),e.report.invokeEndProcessData({dataSet:l}),o},a.prototype.getDatabaseInformation=function(i){try{for(var r=this.getDataSet(i),n=new e.StiDatabaseInformation,o=0,a=r.tables.list;o<a.length;o++){var s=a[o];n.tables.add(s)}return n}catch(e){throw t.System.StiError.showError(e,!1),e}},a.prototype.getDatabaseInformationAsync=function(i){var n=new r;try{this.getDataSetAsync(i).try(function(t){for(var i=new e.StiDatabaseInformation,r=0,o=t.tables.list;r<o.length;r++){var a=o[r];i.tables.add(a)}n.callTry(i)}).abort(n)}catch(e){t.System.StiError.showError(e,!1);var o=e;null!=e&&null!=e.message&&(o=e.message),n.callCatch(o)}return n},a.prototype.regData=function(t,i){var r=this.getDataSet(t);if(null!=r){r.dataSetName=this.name;for(var n=0,o=r.tables.list;n<o.length;n++){var a=o[n],s=new e.StiData(this.name+"."+a.tableName,a);s.isReportData=!0,t.dataStore.setByName(s.name,s)}}},a.prototype.regDataAsync=function(t,i){var n=new r,o=this;return o.getDataSetAsync(t).try(function(i){if(null!=i){i.dataSetName=o.name;for(var r=0,a=i.tables.list;r<a.length;r++){var s=a[r],l=new e.StiData(o.name+"."+s.tableName,s);l.isReportData=!0,t.dataStore.setByName(l.name,l)}}n.callTry()}).abort(n),n},a}(e.StiFileDatabase);e.StiJsonDatabase=o}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Helpers.StiUniversalDataLoader,n=t.System.Promise,o=t.System.Enum,a=t.System.Data.DataSet,s=function(s){function l(t,i,r,n,o){void 0===t&&(t=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r=String.empty),void 0===n&&(n=null),void 0===o&&(o=e.StiXmlType.AdoNetXml);var a=s.call(this,t,t,n)||this;return a._xmlType=e.StiXmlType.AdoNetXml,a.pathSchema=i,a.pathData=r,a.xmlType=o,a}return __extends(l,s),l.prototype.createNew=function(){return new l},l.prototype.saveToJsonObject=function(t){var i=s.prototype.saveToJsonObject.call(this,t);return i.addPropertyStringNullOfEmpty("PathSchema",this.pathSchema),i.addPropertyStringNullOfEmpty("PathData",this.pathData),i.addPropertyEnum("XmlType",e.StiXmlType,this.xmlType,e.StiXmlType.AdoNetXml),i},l.prototype.loadFromJsonObject=function(t){s.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"PathSchema":this._pathSchema=n.value;break;case"PathData":this.pathData=n.value;break;case"XmlType":this._xmlType=o.parse(e.StiXmlType,n.value);break}}},l.prototype.loadFromXml=function(t){s.prototype.loadFromXml.call(this,t);for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];switch(r.nodeName){case"PathSchema":this._pathSchema=r.textContent;break;case"PathData":this.pathData=r.textContent;break;case"XmlType":this._xmlType=o.parse(e.StiXmlType,r.textContent);break}}},Object.defineProperty(l.prototype,"serviceName",{get:function(){return"XML"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"pathSchema",{get:function(){return this._pathSchema},set:function(t){this._pathSchema=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"xmlType",{get:function(){return this._xmlType},set:function(t){this._xmlType=t},enumerable:!0,configurable:!0}),l.prototype.getDataSet=function(t){var e=this.parsePathExpression(t,this.pathSchema),i=this.parsePathExpression(t,this.pathData),n={pathData:e,database:this.serviceName,command:"GetSchema",preventDefault:!1},o={pathData:i,database:this.serviceName,command:"GetData",preventDefault:!1},s=new a,l=function(i){if(null==i&&!String.isNullOrEmpty(e)){var n=r.loadSingle(t.report,e,!1);null!=n&&(i=n.array)}s.readXmlSchema(i)},u=function(e){if(null==e&&!String.isNullOrEmpty(i)){var n=r.loadSingle(t.report,i,!1);null!=n&&(e=n.array)}s.readXml(e)};return t.report.invokeBeginProcessData(n,l),t.report.invokeBeginProcessData(o,u),0==n.preventDefault&&l(null),0==o.preventDefault&&u(null),t.report.invokeEndProcessData({dataSet:s}),s},l.prototype.getDataSetAsync=function(t){var e=new n,i=this.parsePathExpression(t,this.pathSchema),o=this.parsePathExpression(t,this.pathData),s={pathData:i,database:this.serviceName,command:"GetSchema",preventDefault:!1},l={pathData:o,database:this.serviceName,command:"GetData",preventDefault:!1},u=new a,c=!1,p=!1,h=function(n){c=!0,null!=n||String.isNullOrEmpty(i)||(n=r.loadSingle(t.report,i,!1).array),u.readXmlSchema(n),p&&e.callTry(u)},g=function(i){p=!0,null!=i||String.isNullOrEmpty(o)||(i=r.loadSingle(t.report,o,!1).array),u.readXml(i),c&&e.callTry(u)};return t.report.invokeBeginProcessData(s,h),t.report.invokeBeginProcessData(l,g),0==s.preventDefault&&h(null),0==l.preventDefault&&g(null),c&&p&&e.callTry(u),t.report.invokeEndProcessData({dataSet:u}),e},l.prototype.regData=function(t,e){var r=this.getDataSet(t);if(null!=r){r.dataSetName=this.name;for(var n=0,o=r.tables.list;n<o.length;n++){var a=o[n],s=new i.StiData(this.name+"."+a.tableName,a);s.isReportData=!0,t.dataStore.setByName(s.name,s)}}},l.prototype.regDataAsync=function(t,e){var r=this,o=new n;return this.getDataSetAsync(t).try(function(e){if(null!=e){e.dataSetName=r.name;for(var n=0,a=e.tables.list;n<a.length;n++){var s=a[n],l=new i.StiData(r.name+"."+s.tableName,s);l.isReportData=!0,t.dataStore.setByName(l.name,l)}}o.callTry()}).abort(o),o},l.prototype.getDatabaseInformation=function(e){try{for(var r=this.getDataSet(e),n=new i.StiDatabaseInformation,o=0,a=r.tables.list;o<a.length;o++){var s=a[o];n.tables.add(s)}return n}catch(e){throw t.System.StiError.showError(e,!1),e}},l.prototype.getDatabaseInformationAsync=function(e){var r=new n;try{this.getDataSetAsync(e).try(function(t){for(var e=new i.StiDatabaseInformation,n=0,o=t.tables.list;n<o.length;n++){var a=o[n];e.tables.add(a)}r.callTry(e)}).abort(r)}catch(e){t.System.StiError.showError(e,!1),r.callCatch(e.message)}return r},l}(i.StiFileDatabase);i.StiXmlDatabase=s}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiEncryption,n=t.System.Data.DataColumn,o=t.System.Data.DataTable,a=function(a){function s(t,e,i,r,n){void 0===t&&(t=String.empty),void 0===e&&(e=null),void 0===i&&(i=String.empty),void 0===r&&(r=!1),void 0===n&&(n=null);var o=a.call(this,t,e,n)||this;return o.connectionString=i,o.promptUserNameAndPassword=r,o}return __extends(s,a),s.prototype.saveToJsonObject=function(t){var e=a.prototype.saveToJsonObject.call(this,t);return e.addPropertyStringNullOfEmpty("ConnectionStringEncrypted",this.connectionStringEncrypted),e.addPropertyBool("PromptUserNameAndPassword",this.promptUserNameAndPassword),e},s.prototype.loadFromJsonObject=function(t){a.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"ConnectionStringEncrypted":this.connectionStringEncrypted=r.value.toString();break;case"PromptUserNameAndPassword":this.promptUserNameAndPassword=r.value.toBoolean();break}}},Object.defineProperty(s.prototype,"connectionType",{get:function(){return i.StiConnectionType.NoSql},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"connectionStringEncrypted",{get:function(){return r.encryptS(this.connectionString,"8pTP5X15uKADcSw7")},set:function(t){this.connectionString=r.decryptS(t,"8pTP5X15uKADcSw7")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"canEditConnectionString",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"dataAdapterType",{get:function(){return this.getDataAdapterType().getStiTypeName()},enumerable:!0,configurable:!0}),s.prototype.regData=function(t,e){if(null==this.getDataAdapter())throw String.stiFormat("A data adapter for the database {0} not found",this.getStiTypeName())},s.prototype.getDataAdapterType=function(){return null},s.prototype.getDataAdapter=function(){var t=this.getDataAdapterType(),e=this.dataAdapterType,i=StiOptions.Services.dataAdapters.where(function(t){return t.serviceEnabled}).firstOrDefault(function(t){return t.getStiType().getStiTypeName()==e});if(null!=i)return i;throw String.stiFormat("Data adapter for the {0} database is not found!",this)},s.prototype.applyDatabaseInformation=function(t,e,i){void 0===i&&(i=null);for(var r=0,n=t.tables;r<n.length;r++){var o=n[r];this.applyDatabaseInformationSource(t,e,i,o)}},s.prototype.applyDatabaseInformationSource=function(t,r,n,o,a){void 0===a&&(a=i.StiSqlSourceType.Table);var s=this.createDataSource(this.name,e.StiNameCreation.createName(r,o.tableName,!1,!1,!0));s.alias=o.tableName;for(var l=0,u=o.columns.list;l<u.length;l++){var c=u[l];s.columns.add(new i.StiDataColumn(c.columnName,"","",c.dataType))}r.dictionary.dataSources.add(s)},s.prototype.getDatabaseInformation=function(){try{return new i.StiDatabaseInformation}catch(e){return t.System.StiError.showError(e,!1),null}},s.prototype.getDatabaseInformationTables=function(e){for(var i=[],r=0,a=e.tables;r<a.length;r++){var s=a[r];try{for(var l=new o(s.name),u=0,c=s.columns;u<c.length;u++){var p=c[u];null==l.columns.getByName(p.name)&&l.columns.add(new n(p.name,p.type))}String.isNullOrWhiteSpace(s.query)||(l.extendedProperties.Query=s.query),i.add(l)}catch(e){t.System.StiError.showError(e,!1)}}return i},s.prototype.createDataSource=function(t,e){return null},s.prototype.getConnectionStringHelper=function(){return null},s.prototype.getSampleConnectionString=function(){return""},s}(i.StiDatabase);i.StiNoSqlDatabase=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o){return void 0===t&&(t=String.empty),void 0===e&&(e=null),void 0===r&&(r=String.empty),void 0===n&&(n=!1),void 0===o&&(o=null),i.call(this,t,e,r,n,o)||this}return __extends(r,i),r.prototype.createNew=function(){return new r},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiMongoDbDatabase},enumerable:!0,configurable:!0}),r.prototype.getDataAdapterType=function(){return e.StiMongoDbAdapterService},r.prototype.createDataSource=function(t,i){return new e.StiMongoDbSource(t,i)},r.prototype.getSampleConnectionString=function(){return"mongodb://<user>:<password>@localhost/test"},r}(e.StiNoSqlDatabase);e.StiMongoDbDatabase=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.StringBuilder,n=t.System.Data.DataColumn,o=t.System.Data.DataTable,a=t.Base.StiEncryption,s=t.System.Promise,l=function(l){function u(t,e,i,r,n){void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===i&&(i=""),void 0===r&&(r=!1),void 0===n&&(n=null);var o=l.call(this,t,e,n)||this;return o._promptUserNameAndPassword=!1,o._connectionString=i,o._promptUserNameAndPassword=r,o}return __extends(u,l),u.prototype.createNew=function(){return new u},Object.defineProperty(u.prototype,"serviceName",{get:function(){return"MS SQL"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"componentId",{get:function(){return e.StiComponentId.StiSqlDatabase},enumerable:!0,configurable:!0}),u.prototype.saveToJsonObject=function(t){var e=l.prototype.saveToJsonObject.call(this,t);return e.addPropertyStringNullOfEmpty("ConnectionStringEncrypted",this.connectionStringEncrypted),e.addPropertyBool("PromptUserNameAndPassword",this.promptUserNameAndPassword),e},u.prototype.loadFromJsonObject=function(t){l.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"ConnectionString":this.connectionString=r.value.toString();break;case"ConnectionStringEncrypted":this.connectionStringEncrypted=r.value.toString();break;case"PromptUserNameAndPassword":this._promptUserNameAndPassword=r.value.toBoolean();break}}},u.prototype.loadFromXml=function(t){l.prototype.loadFromXml.call(this,t);for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"ConnectionString":this.connectionString=i.textContent;break;case"ConnectionStringEncrypted":this.connectionStringEncrypted=i.textContent;break;case"PromptUserNameAndPassword":this._promptUserNameAndPassword=i.textContent.toBoolean();break}}},Object.defineProperty(u.prototype,"dataAdapterType",{get:function(){return this.getDataAdapterType().getStiTypeName()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"connectionType",{get:function(){return i.StiConnectionType.Sql},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"connectionString",{get:function(){return this._connectionString},set:function(t){this._connectionString=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"connectionStringEncrypted",{get:function(){return a.encryptS(this._connectionString,u.encryptedId)},set:function(t){this._connectionString=a.decryptS(t,u.encryptedId)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"promptUserNameAndPassword",{get:function(){return this._promptUserNameAndPassword},set:function(t){this._promptUserNameAndPassword=t},enumerable:!0,configurable:!0}),u.prototype.createDataSource=function(t,e){return new i.StiSqlSource(t,e)},u.prototype.getDataAdapter=function(){var t=this.dataAdapterType,e=StiOptions.Services.dataAdapters.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==t});if(null!=e)return e;throw String.stiFormat("Data adapter for the {0} database is not found!",this)},u.prototype.getDataAdapterType=function(){return i.StiSqlAdapterService},u.prototype.regData=function(t,e){var i=this.getDataAdapter();if(null==i)throw"Database "+this.getStiType()+" not found";i.createConnectionInDataStore(t,this)},u.prototype.applyDatabaseInformation=function(t,e,i){void 0===i&&(i=null),this.applyDatabaseInformationTables(t,e,i),this.applyDatabaseInformationViews(t,e,i),this.applyDatabaseInformationProcedures(t,e,i)},u.prototype.applyDatabaseInformationTables=function(t,e,i){for(var r=0,n=t.tables;r<n.length;r++){var o=n[r];this.applyDatabaseInformationSource(t,e,i,o)}},u.prototype.applyDatabaseInformationViews=function(t,e,i){for(var r=0,n=t.views;r<n.length;r++){var o=n[r];this.applyDatabaseInformationSource(t,e,i,o)}},u.prototype.applyDatabaseInformationProcedures=function(t,e,r){for(var n=0,o=t.storedProcedures;n<o.length;n++){var a=o[n];this.applyDatabaseInformationSource(t,e,r,a,i.StiSqlSourceType.StoredProcedure)}},u.prototype.applyDatabaseInformationSource=function(t,n,o,a,s){void 0===s&&(s=i.StiSqlSourceType.Table);var l=this.createDataSource(this.name,e.StiNameCreation.createName(n,a.tableName,!1,!1,!0));l.sqlCommand=null!=a.extendedProperties.Query?l.sqlCommand=a.extendedProperties.Query:String.stiFormat("select * from {0}",a.tableName);for(var u=new r,c=0,p=a.columns.list;c<p.length;c++){var h=p[c];u=0==u.length?u.append(h.columnName):u.appendFormat(", {0}",h.columnName),l.columns.add(new i.StiDataColumn(h.columnName,h.columnName,h.columnName,h.dataType))}l.type=s;var g=null!=o?o.tables.firstOrDefault(function(t){return t.tableName==a.tableName}):null;null!=g&&a.columns.count!=g.columns.count&&l.sqlCommand.contains("*")&&u.length>0&&(l.sqlCommand=l.sqlCommand.replaceAll("*",u.toString())),n.dictionary.dataSources.add(l)},u.prototype.getDatabaseInformationAsync=function(e){var r=new s,n=new i.StiDatabaseInformation;return this.getDataAdapter().retrieveSchemaAsync(e.report,null,this.connectionString).try(function(t){n.tables.addRange(u.getDatabaseInformationTables(t)),n.views.addRange(u.getDatabaseInformationViews(t)),n.storedProcedures.addRange(u.getDatabaseInformationProcedures(t))}).catch(function(e){t.System.StiError.showError(e)}).finally(function(){r.callTry(n)}).abort(r),r},u.getDatabaseInformationTables=function(e){for(var i=[],r=function(e){try{var r=new o(e.name);e.columns.forEach(function(t){null==r.columns.getByName(t.name)&&r.columns.add(new n(t.name,t.type))}),String.isNullOrWhiteSpace(e.query)||(r.extendedProperties.Query=e.query),i.add(r)}catch(e){throw t.System.StiError.showError(e,!1),e}},a=0,s=e.tables;a<s.length;a++){r(s[a])}return i},u.getDatabaseInformationViews=function(e){for(var i=[],r=function(e){try{var r=new o(e.name);e.columns.forEach(function(t){null==r.columns.getByName(t.name)&&r.columns.add(new n(t.name,t.type))}),String.isNullOrWhiteSpace(e.query)||(r.extendedProperties.Query=e.query),i.add(r)}catch(e){throw t.System.StiError.showError(e,!1),e}},a=0,s=e.views;a<s.length;a++){r(s[a])}return i},u.getDatabaseInformationProcedures=function(e){for(var i=[],r=function(e){try{var r=new o(e.name);e.columns.forEach(function(t){if(null==r.columns.getByName(t.name)){var e=new n(t.name,t.type);e.caption="Columns",r.columns.add(e)}}),e.parameters.forEach(function(t){if(null==r.columns.getByName(t.name)){var e=new n(t.name,t.type);e.caption="Parameters",r.columns.add(e)}}),String.isNullOrWhiteSpace(e.query)||(r.extendedProperties.Query=e.query),i.add(r)}catch(e){throw t.System.StiError.showError(e,!1),e}},a=0,s=e.storedProcedures;a<s.length;a++){r(s[a])}return i},u.prototype.getSampleConnectionString=function(){return"Integrated Security=False; Data Source=myServerAddress;"+"\r\n"+"Initial Catalog=myDataBase; User ID=myUsername; Password=myPassword;"},u.encryptedId="8pTP5X15uKADcSw7",u}(i.StiDatabase);i.StiSqlDatabase=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=null),void 0===n&&(n=!1),void 0===o&&(o=null),i.call(this,t,e,r,n,o)||this}return __extends(r,i),r.prototype.createNew=function(){return new r},Object.defineProperty(r.prototype,"serviceName",{get:function(){return"OData"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiODataDatabase},enumerable:!0,configurable:!0}),r.prototype.createDataSource=function(t,i){return new e.StiODataSource(t,i)},r.prototype.getDataAdapterType=function(){return e.StiODataAdapterService},r.prototype.getConnectionStringHelper=function(){return"StiODataConnectionHelper"},r.prototype.mapUserNameAndPassword=function(t,e){return String.stiFormat("UserName = {0}; Password = {1}",t,e)},Object.defineProperty(r.prototype,"connectionType",{get:function(){return e.StiConnectionType.Rest},enumerable:!0,configurable:!0}),r.prototype.getSampleConnectionString=function(){return"http://services.odata.org/v3/odata/OData.svc/"},r}(e.StiSqlDatabase);e.StiODataDatabase=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=null),void 0===n&&(n=!1),void 0===o&&(o=null),i.call(this,t,e,r,n,o)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiFirebirdDatabase},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"Firebird"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.createDataSource=function(t,i){return new e.StiFirebirdSource(t,i)},r.prototype.getDataAdapterType=function(){return e.StiFirebirdAdapterService},r.prototype.getSampleConnectionString=function(){return"User=SYSDBA; Password=masterkey; Database=SampleDatabase.fdb;"+"\r\n"+"DataSource=myServerAddress; Port=3050; Dialect=3; Charset=NONE;"+"\r\n"+"Role=; Connection lifetime=15; Pooling=true; MinPoolSize=0;"+"\r\n"+"MaxPoolSize=50; Packet Size=8192; ServerType=0;"},r}(e.StiSqlDatabase);e.StiFirebirdDatabase=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=null),void 0===n&&(n=!1),void 0===o&&(o=null),i.call(this,t,e,r,n,o)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiMySqlDatabase},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},Object.defineProperty(r.prototype,"serviceName",{get:function(){return"MySQL"},enumerable:!0,configurable:!0}),r.prototype.createDataSource=function(t,i){return new e.StiMySqlSource(t,i)},r.prototype.getDataAdapterType=function(){return e.StiMySqlAdapterService},r.prototype.getSampleConnectionString=function(){return"Server=myServerAddress; Database=myDataBase;"+"\r\n"+"UserId=myUsername; Pwd=myPassword;"},r}(e.StiSqlDatabase);e.StiMySqlDatabase=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=null),void 0===n&&(n=!1),void 0===o&&(o=null),i.call(this,t,e,r,n,o)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiOracleDatabase},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"Oracle"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.createDataSource=function(t,i){return new e.StiOracleSource(t,i)},r.prototype.getDataAdapterType=function(){return e.StiOracleAdapterService},r.prototype.getSampleConnectionString=function(){return"Data Source=TORCL;User Id=myUsername;Password=myPassword;"},r}(e.StiSqlDatabase);e.StiOracleDatabase=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t,e,r,n,o){return void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=null),void 0===n&&(n=!1),void 0===o&&(o=null),i.call(this,t,e,r,n,o)||this}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiPostgreSQLDatabase},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"PostgreSQL"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.createDataSource=function(t,i){return new e.StiPostgreSQLSource(t,i)},r.prototype.getDataAdapterType=function(){return e.StiPostgreSQLAdapterService},r.prototype.getSampleConnectionString=function(){return"Server=myServerAddress; Port=5432; Database=myDataBase;"+"\r\n"+"User Id=myUsername; Password=myPassword;"},r}(e.StiSqlDatabase);e.StiPostgreSQLDatabase=i}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(t,i,r){void 0===t&&(t=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r="");var n=e.call(this,t,i,r)||this;return n._serviceName="Custom",n._sampleConnectionString="Sample ConnectionString",n}return __extends(i,e),i.registerCustomDatabase=function(e){var r=new i;r._serviceName=e.serviceName,"sampleConnectionString"in e&&(r._sampleConnectionString=e.sampleConnectionString),StiOptions.Services.databases.add(r),t.StiCustomAdapterService.registerCustomAdapterService({name:e.serviceName,process:e.process}),t.StiCustomSource.registerCustomSource()},i.prototype.createNew=function(){return new i},Object.defineProperty(i.prototype,"serviceName",{get:function(){return this._serviceName},enumerable:!0,configurable:!0}),i.prototype.createDataSource=function(e,i){return new t.StiCustomSource(e,i)},i.prototype.getDataAdapterType=function(){return t.StiCustomAdapterService},i.prototype.applyDatabaseInformationSource=function(i,r,n,o,a){void 0===a&&(a=t.StiSqlSourceType.Table),o.extendedProperties.Query=o.tableName,e.prototype.applyDatabaseInformationSource.call(this,i,r,n,o,a)},i.prototype.getSampleConnectionString=function(){return this._sampleConnectionString},i}(t.StiSqlDatabase);t.StiCustomDatabase=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.ICloneable,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiJson,a=function(i){function a(t){var e=i.call(this)||this;return e.dictionary=t,e}return __extends(a,i),a.prototype.implements=function(){return i.prototype.implements.call(this).concat([r,n])},a.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new o,i=0,r=0,n=this.list;r<n.length;r++){var a=n[r];e.addPropertyJObject(i.toString(),a.saveToJsonObject(t)),i++}return e},a.prototype.loadFromJsonObject=function(t){for(var e=function(t){var e=t.value,r=e.properties().firstOrDefault(function(t){return"Ident"==t.name}).value,n=StiOptions.Services.databases.firstOrDefault(function(t){return t.getStiType().getStiTypeName()==r}),o=n.createNew();o.loadFromJsonObject(t.value),i.list.add(o)},i=this,r=0,n=t.properties();r<n.length;r++){e(n[r])}},a.prototype.loadFromXml=function(e){for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];if(null==r.attributes)continue;if(null!=r.attributes.getNamedItem("type"))switch(r.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Dictionary.StiXmlDatabase":var n=new t.Report.Dictionary.StiXmlDatabase;n.loadFromXml(r),this.list.add(n);break;case"Stimulsoft.Report.Dictionary.StiJsonDatabase":var o=new t.Report.Dictionary.StiJsonDatabase;o.loadFromXml(r),this.list.add(o);break;case"Stimulsoft.Report.Dictionary.StiUndefinedDatabase":var a=new t.Report.Dictionary.StiUndefinedDatabase;a.loadFromXml(r),this.list.add(a);break;case"Stimulsoft.Report.Dictionary.StiSqlDatabase":var s=new t.Report.Dictionary.StiSqlDatabase;s.loadFromXml(r),this.list.add(s);break;case"Stimulsoft.Report.Dictionary.StiMySqlDatabase":var l=new t.Report.Dictionary.StiMySqlDatabase;l.loadFromXml(r),this.list.add(l);break;case"Stimulsoft.Report.Dictionary.StiExcelDatabase":var u=new t.Report.Dictionary.StiExcelDatabase;u.loadFromXml(r),this.list.add(u);break;case"Stimulsoft.Report.Dictionary.StiODataDatabase":var c=new t.Report.Dictionary.StiODataDatabase;c.loadFromXml(r),this.list.add(c);break;case"Stimulsoft.Report.Dictionary.StiPostgreSQLDatabase":var p=new t.Report.Dictionary.StiPostgreSQLDatabase;p.loadFromXml(r),this.list.add(p);break;case"Stimulsoft.Report.Dictionary.StiOracleDatabase":var h=new t.Report.Dictionary.StiOracleDatabase;h.loadFromXml(r),this.list.add(h);break;case"Stimulsoft.Report.Dictionary.StiFirebirdDatabase":var g=new t.Report.Dictionary.StiFirebirdDatabase;g.loadFromXml(r),this.list.add(g);break}}},a.prototype.toList=function(){return this._list.toArray()},a.prototype.add=function(t){this.list.add(t)},a.prototype.addRange=function(t){for(var e=t.sti_is(a)?t.list:t,i=0,r=e;i<r.length;i++){var n=r[i];this.add(n)}},a.prototype.contains=function(t){return this.list.contains(t)},a.prototype.indexOf=function(t){if(t.sti_is(e.StiDatabase))return this.list.indexOf(t);for(var i=0,r=0,n=this.list;r<n.length;r++){if(t==n[r].name)return i;i++}return-1},a.prototype.insert=function(t,e){this.list.insert(t,e)},a.prototype.remove=function(t){if(t.sti_is(e.StiDatabase))this.list.remove(t);else{alert();var i=this.indexOf(t);if(-1==i)throw"Database '"+t+"' is not found";this.list.splice(i,1)}},a.prototype.getByIndex=function(t){return this.list[t]},a.prototype.setByIndex=function(t,e){this.list[t]=e},a.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t)return r}return null},a.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].name.toLower()==t)return void(this.list[i]=e)}this.add(e)},a.prototype.clone=function(){return this.memberwiseClone()},a.prototype.memberwiseClone=function(){return new(this.getStiType())},a}(i);e.StiDatabaseCollection=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(e,i,r,n,o){return void 0===e&&(e=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r=String.empty),void 0===n&&(n=!1),void 0===o&&(o=String.empty),t.call(this,e,i,o)||this}return __extends(e,t),e}(t.StiDatabase);t.StiUndefinedDatabase=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.Sql=0]="Sql",t[t.NoSql=1]="NoSql",t[t.Other=2]="Other",t[t.Rest=3]="Rest",t[t.Custom=4]="Custom"}(e=t.StiConnectionType||(t.StiConnectionType={}))}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.convertTypeToString=function(t){if(null!=t)return t.getStiType().getStiNetTypeName()},t}();t.StiDataColumnConverter=e}(e=t.Design||(t.Design={}))}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.IComparable,n=t.System.Text.StringBuilder,o=function(){function i(t,e,i,r,n,o,a,s,l,u){void 0===a&&(a=String.empty),void 0===s&&(s=null),void 0===l&&(l=null),void 0===u&&(u=null),this._useFullPath=!0,this._category=String.empty,this._groupFunctionName=String.empty,this._functionName=String.empty,this._description=String.empty,this._typeOfFunction=null,this._returnType=null,this._returnDescription=String.empty,this._argumentTypes=null,this._argumentNames=null,this._argumentDescriptions=null,this.category=t,this.description=r,this.returnDescription=a,this.groupFunctionName=e,this.functionName=i,this.typeOfFunction=n,this.returnType=o,this.argumentTypes=s,this.argumentNames=l,this.argumentDescriptions=u}return i.prototype.implements=function(){return[r]},i.prototype.compareTo=function(t){var e=t.sti_as(i);return this.functionName.compareTo(e.functionName)},Object.defineProperty(i.prototype,"useFullPath",{get:function(){return this._useFullPath},set:function(t){this._useFullPath=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"category",{get:function(){return this._category},set:function(t){this._category=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupFunctionName",{get:function(){return this._groupFunctionName},set:function(t){this._groupFunctionName=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"functionName",{get:function(){return this._functionName},set:function(t){this._functionName=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"description",{get:function(){return this._description},set:function(t){this._description=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"typeOfFunction",{get:function(){return this._typeOfFunction},set:function(t){this._typeOfFunction=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"returnType",{get:function(){return this._returnType},set:function(t){this._returnType=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"returnDescription",{get:function(){return this._returnDescription},set:function(t){this._returnDescription=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"argumentTypes",{get:function(){return this._argumentTypes},set:function(t){this._argumentTypes=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"argumentNames",{get:function(){return this._argumentNames},set:function(t){this._argumentNames=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"argumentDescriptions",{get:function(){return this._argumentDescriptions},set:function(t){this._argumentDescriptions=t},enumerable:!0,configurable:!0}),i.prototype.toString=function(){return this.functionName},i.prototype.getLongFunctionString=function(t){if(t==e.StiReportLanguageType.CSharp){var i=new n;i.append(this.convertTypeToString(this.returnType,t)),i.append("  "),i.append(this.functionName),i.append(" (");var r=0;if(null!=this.argumentTypes)for(var o=0,a=this.argumentTypes;o<a.length;o++){var s=a[o],l=this.argumentNames[r];s.sti_is(Array)||(i.append(this.convertTypeToString(s,t)),i.append(" ")),i.append(l),r++,r!=this.argumentTypes.length&&i.append(", ")}return i.append(")"),i.toString()}var i=new n;i.append(this.functionName),i.append("(");var r=0;if(null!=this.argumentTypes)for(var u=0,c=this.argumentTypes;u<c.length;u++){var s=c[u],l=this.argumentNames[r];i.append(l),i.append(" As "),i.append(this.convertTypeToString(s,t)),r++,r!=this.argumentTypes.length&&i.append(", ")}return i.append(")"),"void"!=this.returnType.toString()&&i.append(" As "+this.convertTypeToString(this.returnType,t)),i.toString()},i.prototype.getFunctionString=function(t,e){void 0===e&&(e=!0);var i=new n;e&&i.append(this.functionName),i.append(" (");var r=0;if(null!=this.argumentTypes)for(var o=0,a=this.argumentTypes;o<a.length;o++){var s=a[o],l=this.argumentNames[r];s.sti_is(Array)?i.append(l):i.append(this.convertTypeToString(s,t)),r++,r!=this.argumentTypes.length&&i.append(", ")}return i.append(")"),"void"!=this.returnType.toString()&&i.append(" : "+this.convertTypeToString(this.returnType,t)),i.toString()},i.prototype.convertTypeToString=function(e,i){if(e==t.System.Int32)return"int";if(e==t.System.UInt32)return"uint";if(e==t.System.Int64)return"long";if(e==t.System.UInt64)return"ulong";if(e==String)return"string";if(e==Boolean)return"bool";if(e==t.System.Byte)return"byte";if(e==t.System.SByte)return"sbyte";if(e==t.System.Int16)return"short";if(e==t.System.UInt16)return"ushort";if(e==t.System.Char)return"char";if(e==t.System.Double)return"double";if(e==t.System.Single)return"float";if(e==t.System.Decimal)return"decimal";if(e==t.System.DateTime)return"DateTime";if(e==t.System.TimeSpan)return"TimeSpan";if(e==t.System.Guid)return"Guid";if(e==t.System.NullableByte)return"byte?";if(e==t.System.NullableSByte)return"sbyte?";if(e==t.System.NullableBoolean)return"bool?";if(e==t.System.NullableByte)return"char?";if(e==t.System.NullableInt16)return"short?";if(e==t.System.NullableUInt16)return"ushort?";if(e==t.System.NullableInt32)return"int?";if(e==t.System.NullableUInt32)return"uint?";if(e==t.System.NullableInt64)return"long?";if(e==t.System.NullableUInt64)return"ulong?";if(e==t.System.NullableDouble)return"double?";if(e==t.System.NullableSingle)return"float?";if(e==t.System.NullableDecimal)return"decimal?";if(e==t.System.NullableDateTime)return"DateTime?";if(e==t.System.NullableTimeSpan)return"TimeSpan?";if(e==t.System.NullableGuid)return"Guid?";if(e==Object)return"object";return e.getStiType().getStiTypeName()},i}();i.StiFunction=o}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=function(){function i(){}return i.create=function(){0==i.isCreated&&(e.StiFunctions.addFunction("Math","","Abs","Returns the absolute value of an integer.","System.Math",t.System.Int64,"An integer.",[t.System.Int64],["value"],["integer."]),e.StiFunctions.addFunction("Math","","Abs","Returns the absolute value of a decimal number.","System.Math",t.System.Decimal,"A decimal number.",[t.System.Decimal],["value"],["A decimal number."]),e.StiFunctions.addFunction("Math","","Abs","Returns the absolute value of a floating-point number.","System.Math",t.System.Double,"A floating-point number.",[t.System.Double],["value"],["A floating-point number."]),e.StiFunctions.addFunction("Math","","Div","Returns result of dividing a value1 and a value2. If the value2 is zero, then the result is 0.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Int64,"Result of checking.",[t.System.Int64,t.System.Int64],["value1","value2"],["Divisible","Divisor"]),e.StiFunctions.addFunction("Math","","Div","Returns the result of dividing a value1 and a value2. If the value2 is zero, then the result is zeroResult (third argument).","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Int64,"The result of checking.",[t.System.Int64,t.System.Int64,t.System.Int64],["value1","value2","zeroResult"],["Divisible","Divisor"]),e.StiFunctions.addFunction("Math","","Div","Returns the result of dividing a value1 and a value2. If the value2 is zero, then the result is equal to 0.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Double,"Result of checking.",[t.System.Double,t.System.Double],["value1","value2"],["Divisible","Divisor"]),e.StiFunctions.addFunction("Math","","Div","Returns the result of dividing a value1 and a value2. If the value2 is zero, then the result is zeroResult (third argument).","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Double,"Result of checking.",[t.System.Double,t.System.Double,t.System.Double],["value1","value2","zeroResult"],["Divisible","Divisor","A value for zero result."]),e.StiFunctions.addFunction("Math","","Div","Returns the result of dividing a value1 and a value2. If the value2 is zero, then the result is 0.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Decimal,"Result of checking.",[t.System.Decimal,t.System.Decimal],["value1","value2"],["Divisible","Divisor"]),e.StiFunctions.addFunction("Math","","Div","Returns result of dividing value1 and value2. If value2 is zero, then result is zeroResult (third argument).","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Decimal,"Result of checking.",[t.System.Decimal,t.System.Decimal,t.System.Decimal],["value1","value2","zeroResult"],["Divisible","Divisor","A value for zero result."]),e.StiFunctions.addFunction("Math","","Sign","Returns a value indicating the sign of an integer.","System.Math",t.System.Int64,"A number indicating the sign of a value. -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. ",[t.System.Int64],["value"],["integer."]),e.StiFunctions.addFunction("Math","","Sign","Returns a value indicating the sign of a decimal number.","System.Math",t.System.Int64,"A number indicating the sign of a value. -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. ",[t.System.Decimal],["value"],["A decimal number."]),e.StiFunctions.addFunction("Math","","Sign","Returns a value indicating the sign of a floating-point number.","System.Math",t.System.Int64,"A number indicating the sign of a value. -1 value is less than zero. 0 value is equal to zero. 1 value is greater than zero. ",[t.System.Double],["value"],["A floating-point number."]),e.StiFunctions.addFunction("Math","","Round","Rounds a decimal value to the nearest integer.","System.Math",t.System.Decimal,"The nearest integer parameter value. If the value is halfway between two integers, one of which is even and the other is odd, then the even number is returned.",[t.System.Decimal],["value"],["A decimal number to be rounded."]),e.StiFunctions.addFunction("Math","","Round","Rounds a decimal value to the nearest integer.","System.Math",t.System.Decimal,"The number nearest to a value with a precision equal to decimals. If the value is halfway between two numbers, one of which is even and the other odd, then the even number is returned. If the precision of value is less than decimals, then value is returned unchanged.",[t.System.Decimal,t.System.Int32],["value","decimals"],["A decimal number to be rounded.","The number of significant decimal places (precision) in the return value."]),e.StiFunctions.addFunction("Math","","Round","Rounds a floating-point value to the nearest integer.","System.Math",t.System.Double,"The nearest integer parameter value. If the value is halfway between two integers, one of which is even and the other odd, then the even number is returned.",[t.System.Double],["value"],["A floating-point number to be rounded."]),e.StiFunctions.addFunction("Math","","Round","Rounds a floating-point value to the nearest integer.","System.Math",t.System.Double,"The number nearest value with a precision equal to decimals. If the value is halfway between two numbers, one of which is even and the other odd, then the even number is returned. If the precision of a value is less than decimals, then the value is returned unchanged.",[t.System.Double,t.System.Int32],["value","decimals"],["A floating-point number to be rounded.","The number of significant decimal places (precision) in the return value."]),e.StiFunctions.addFunction("Math","","Truncate","Calculates an integral part of the specified decimal number.","System.Math",t.System.Decimal,"The integral part of a value; that is, the number that remains after any fractional digits have been discarded.",[t.System.Decimal],["value"],["A number to truncate."]),e.StiFunctions.addFunction("Math","","Truncate","Calculates the integral part of a specified floating-point number.","System.Math",t.System.Double,"An integral part of a value; that is, the number that remains after any fractional digits were discarded.",[t.System.Double],["value"],["A number to truncate."]),e.StiFunctions.addFunction("Math","","Sin","Returns the sine of the specified angle.","System.Math",t.System.Double,"The sine of an angle.",[t.System.Double],["angle"],["angle, measured in radians."]),e.StiFunctions.addFunction("Math","","Cos","Returns the cosine of the specified angle.","System.Math",t.System.Double,"The cosine of an angle.",[t.System.Double],["angle"],["angle, measured in radians."]),e.StiFunctions.addFunction("Math","","Tan","Returns the tangent of the specified angle.","System.Math",t.System.Double,"The tangent of an angle.",[t.System.Double],["angle"],["angle, measured in radians."]),e.StiFunctions.addFunction("Math","","Acos","Returns an angle which cosine is the specified number.","System.Math",t.System.Double,"An angle, measured in radians.",[t.System.Double],["value"],["A number representing a cosine."]),e.StiFunctions.addFunction("Math","","Asin","Returns the angle which sine is the specified number.","System.Math",t.System.Double,"An angle, measured in radians.",[t.System.Double],["value"],["A number representing a sine."]),e.StiFunctions.addFunction("Math","","Atan","Returns the angle which tangent is the specified number.","System.Math",t.System.Double,"An angle, measured in radians.",[t.System.Double],["value"],["A number representing a tangent."]),e.StiFunctions.addFunction("Math","","Sqrt","Returns the square root of a specified number.","System.Math",t.System.Double,"Return the positive square root of value.",[t.System.Double],["value"],["A number."]),e.StiFunctions.addFunction("Math","","Exp","Returns e raised to the specified power.","System.Math",t.System.Double,"The number e raised to the power value.",[t.System.Int64],["value"],["A number specifying a power."]),e.StiFunctions.addFunction("Math","","Log","Returns the natural (base e) logarithm of a specified number.","System.Math",t.System.Double,"Returns the natural logarithm of a value.",[t.System.Double],["value"],["A number which logarithm is to be found."]),e.StiFunctions.addFunction("Math","","Maximum","Returns the larger of two floating-point numbers.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Double,"Parameter val1 or val2, whichever is larger.",[t.System.Double,t.System.Double],["value1","value2"],["The first of two floating-point numbers to compare.","The second of two floating-point numbers to compare."]),e.StiFunctions.addFunction("Math","","Maximum","Returns the larger of two decimal numbers.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Decimal,"Parameter val1 or val2, whichever is larger.",[t.System.Decimal,t.System.Decimal],["value1","value2"],["The first of two decimal numbers to compare.","The second of two decimal numbers to compare."]),e.StiFunctions.addFunction("Math","","Maximum","Returns the larger of two integers numbers.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Int64,"Parameter val1 or val2, whichever is larger.",[t.System.Int64,t.System.Int64],["value1","value2"],["The first of two integer numbers to compare.","The second of two integer numbers to compare."]),e.StiFunctions.addFunction("Math","","Minimum","Returns the smaller of two floating-point numbers.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Double,"Parameter val1 or val2, whichever is smaller.",[t.System.Double,t.System.Double],["value1","value2"],["The first of two floating-point numbers to compare.","The second of two floating-point numbers to compare."]),e.StiFunctions.addFunction("Math","","Minimum","Returns the smaller of two decimal numbers.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Decimal,"Parameter val1 or val2, whichever is smaller.",[t.System.Decimal,t.System.Decimal],["value1","value2"],["The first of two decimal numbers to compare.","The second of two decimal numbers to compare."]),e.StiFunctions.addFunction("Math","","Minimum","Returns the smaller of two integer numbers.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Int64,"Parameter val1 or val2, whichever is smaller.",[t.System.Int64,t.System.Int64],["value1","value2"],["The first of two integer numbers to compare.","The second of two integer numbers to compare."]),e.StiFunctions.addFunction("Math","","Ceiling","Returns the smallest integer greater than or equal to the specified floating-point number.","Stimulsoft.Report.Dictionary.StiFunctionsMath",t.System.Double,"The smallest integer greater or equal to value.",[t.System.Double],["value"],["A floating-point number. "]),e.StiFunctions.addFunction("Math","","Ceiling","Returns the smallest integer greater or equal to the specified decimal number.","System.Math",t.System.Decimal,"The smallest integer greater or equal to value.",[t.System.Decimal],["value"],["A decimal number."]),e.StiFunctions.addFunction("Math","","Floor","Returns the largest integer less or equal to the specified floating-point number.","System.Math",t.System.Double,"The largest integer less or equal to value.",[t.System.Double],["value"],["A floating-point number. "]),e.StiFunctions.addFunction("Math","","Floor","Returns the largest integer less or equal to the specified decimal number.","System.Math",t.System.Decimal,"The largest integer less or equal to d.",[t.System.Decimal],["value"],["A decimal number."]),i.isCreated=!0)},i.isCreated=!1,i}();e.StiFunctionsMath=i}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(){}return e.create=function(){0==e.isCreated&&(t.StiFunctions.addFunction("Print State","","IsNull","Returns true if the specified row value is equal to null or DBNull.Value.","Stimulsoft.Report.Dictionary.StiFunctionsPrintState",Boolean,"Boolean value.",[Object,String],["dataSource","dataColumn"],["Data Source for processing.","Name of Data Column."]),t.StiFunctions.addFunction("Print State","","NextIsNull","Returns true if the next row value is equal to null or DBNull.Value. If the next row does not exist then the function returns true.","Stimulsoft.Report.Dictionary.StiFunctionsPrintState",Boolean,"Boolean value.",[Object,String],["dataSource","dataColumn"],["The Data Source for processing.","Name of the Data Column."]),t.StiFunctions.addFunction("Print State","","PreviousIsNull","Returns true if the previous row value is equal to null or DBNull.Value. If the previous row does not exist then the function returns true.","Stimulsoft.Report.Dictionary.StiFunctionsPrintState",Boolean,"Boolean value.",[Object,String],["dataSource","dataColumn"],["The Data Source for processing.","A name of the Data Column."]),t.StiFunctions.addFunction("Print State","","Previous","Returns a value of the specified field in the previous entry. If the previous row does not exist then the function returns null.","Stimulsoft.Report.Dictionary.StiFunctionsPrintState",Object,"A value of the specified field in the previous entry.",[Object,String],["dataSource","dataColumn"],["The Data Source for processing.","A name of the Data Column."]),t.StiFunctions.addFunction("Print State","","Next","Returns a value of the specified field in the previous entry. If the next row does not exist then the function returns null.","Stimulsoft.Report.Dictionary.StiFunctionsPrintState",Object,"A value of the specified field in the previous entry.",[Object,String],["dataSource","dataColumn"],["The Data Source for processing.","A name of the Data Column."]),e.isCreated=!0)},e.isNull=function(t,e){var i=t;if(null!=i){return null==i.getData(e)}},e.next=function(t,e){var i=t,r="*nextFunction*";null!=i&&i.saveState(r);var n=null;try{if(null!=i){if(i.next(),i.isEof)return null;n=i.getData(e)}}finally{null!=i&&i.restoreState(r)}return n},e.nextIsNull=function(t,e){return null==this.next(t,e)},e.previous=function(t,e){var i=t,r="*prevFunction*";null!=i&&i.saveState(r);var n=null;try{if(null!=i){if(i.prior(),i.isBof)return null;n=i.getData(e)}}finally{null!=i&&i.restoreState(r)}return n},e.previousIsNull=function(t,e){return null==this.previous(t,e)},e.isCreated=!1,e}();t.StiFunctionsPrintState=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(){}return e.create=function(){0==e.isCreated&&(t.StiFunctions.addFunction("Programming Shortcut","","Choose","Choose returns a value from the list of choices based on the value of index.","Stimulsoft.Report.Dictionary.StiFunctionsProgrammingShortcut",Object,"A value from the given list of choices.",[Object],["index, choice1, choice2, ..."],["The index is a number that specifies the index of the choice. It should be between 1 and the number of available choices. If it is out of bounds, Choose returns null."]),t.StiFunctions.addFunction("Programming Shortcut","","Switch","The Switch evaluates the expressions from left to right, and returns the value associated with the first expression to evaluate to True. If all of the expressions are False, then Switch returns null.","Stimulsoft.Report.Dictionary.StiFunctionsProgrammingShortcut",Object,"One of the values in the value list value1, value2, and so on.",[Object],["condition1, value1, condition2, value2, ..."],["Condition1, condition2, and so on are Boolean expressions. value1, value2, and so on are the possible values that may be returned."]),t.StiFunctions.addFunction("Programming Shortcut","","IIF","Returns one of two parts, depending on the evaluation of the expression.","IsNull",Object,"truePart if an expression is True and falsePart if an expression is False.",[Boolean,Object,Object],["condition","truePart","falsePart"],["A Boolean expression.","A value is returned if an expression is True.","A value is returned if an expression is False."]),e.isCreated=!0)},e.isCreated=!1,e}();t.StiFunctionsProgrammingShortcut=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Data.DBNull,n=function(){function n(){}return n.create=function(){0==n.isCreated&&(i.StiFunctions.addFunction("Strings","","Length","Returns the number of characters of the specified String.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",t.System.Int32,"A number of characters.",[String],["str"],["The Text String."]),i.StiFunctions.addFunction("Strings","","Trim","Removes all occurrences of white space characters from the beginning and end of the specified String.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"String after white space characters are removed.",[String],["str"],["The Text String."]),i.StiFunctions.addFunction("Strings","","ToLowerCase","Returns a string converted to lowercase.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"String in the lowercase.",[String],["str"],["The Text String."]),i.StiFunctions.addFunction("Strings","","ToUpperCase","Returns a string converted to uppercase.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"String in the uppercase.",[String],["str"],["The Text String."]),i.StiFunctions.addFunction("Strings","","ToProperCase","Capitalizes the first letter of each word in the string and converts all other letters to lower case.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A converted String.",[String],["str"],["The Text String."]),i.StiFunctions.addFunction("Strings","","Substring","Retrieves a substring from the specified String. The substring starts at a specified character position and has a specified length.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A String equivalent to the substring of length length that begins at startIndex in this instance, or Empty if startIndex is equal to the length of this instance and length is zero.",[String,t.System.Int32,t.System.Int32],["str","startIndex","length"],["Text String.","The index of the start of the subString.","The number of characters in the subString."]),i.StiFunctions.addFunction("Strings","","Mid","Retrieves a substring from the specified String. The substring starts at a specified character position and has a specified length.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A String equivalent to the substring of length length that begins at startIndex in this instance, or Empty if startIndex is equal to the length of this instance and length is zero.",[String,t.System.Int32,t.System.Int32],["str","startIndex","length"],["Text String.","The index of the start of the subString.","The number of characters in the subString."]),i.StiFunctions.addFunction("Strings","","Left","Returns a string containing a specified number of characters from the left side of a String.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A String equivalent to the specified number of characters from the left side of a string, or Empty if length is zero.",[String,t.System.Int32],["str","length"],["Text String.","The number of characters in the subString."]),i.StiFunctions.addFunction("Strings","","Right","Returns a string containing a specified number of characters from the right side of a String.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A String equivalent to the specified number of characters from the right side of a string, or Empty if length is zero.",[String,t.System.Int32],["str","length"],["Text String.","The number of characters in the subString."]),i.StiFunctions.addFunction("Strings","","Roman","Converts an Arabic numeral to a Roman numeral, as text.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A string which is the roman numeral representation of value.",[t.System.Int32],["value"],["Arabic numeral to be converted."]),i.StiFunctions.addFunction("Strings","","Arabic","Converts Number to Arabic numerals, as text.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A string which is the arabic numeral representation of value.",[t.System.Int32],["value"],["Number to be converted."]),i.StiFunctions.addFunction("Strings","","Arabic","Converts all digits in string to Arabic digits.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A string with arabic digits.",[String],["value"],["String to be converted."]),i.StiFunctions.addFunction("Strings","","Persian","Converts Number to Persian numerals, as text.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A string which is the persian numeral representation of value.",[t.System.Int32],["value"],["Number to be converted."]),i.StiFunctions.addFunction("Strings","","Persian","Converts all digits in string to Persian digits.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A string with persian digits.",[String],["value"],["String to be converted."]),i.StiFunctions.addFunction("Strings","","Replace","Replaces all occurrences of a specified string in the specified instance, with another specified String.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A string equivalent to specified string but with all instances of an oldValue replaced with a newValue.",[String,String,String],["str","oldValue","newValue"],["A string to be processed.","A string to be replaced.","A string to replace all occurrences of oldValue."]),i.StiFunctions.addFunction("Strings","","Remove","Deletes a specified number of characters from this instance beginning at a specified position.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A new string that is equivalent to the specified string less count number of characters.",[String,t.System.Int32,t.System.Int32],["str","startIndex","count"],["A string to be processed.","The position to begin deleting characters. ","The number of characters to delete."]),i.StiFunctions.addFunction("Strings","","Insert","Inserts a specified instance of a string to the specified index position in the specified String.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A new string equivalent to the specified string but with value inserted at the startIndex position.",[String,t.System.Int32,String],["str","startIndex","value"],["A string to be processed.","The index position of the insertion.","The String to insert."]),i.StiFunctions.addFunction("Strings","","ToWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","","ToWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","","ToWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","","ToWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","ToWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","ToWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","DateToStr","Converts the specified value: DateTime to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime with the first symbol in the uppercase.",[t.System.DateTime,Boolean],["value","upperCase"],["A value containing a datetime to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","DateToStr","Converts the specified value: DateTime to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime.",[t.System.DateTime],["value"],["A value containing a datetime to convert."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the integer value with cents.",[t.System.Int64],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with or without cents with the first symbol in the uppercase.",[t.System.Int64,Boolean,Boolean],["value","upperCase","showCents"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.","If this parameter is true then cents of the value will be added to the resulting String."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the decimal value with cents.",[t.System.Decimal],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with or without cents with the first symbol in the uppercase.",[t.System.Decimal,Boolean,Boolean],["value","upperCase","showCents"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.","If this parameter is true then cents of the value will be added to the resulting String."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the float-point value with cents.",[t.System.Double],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with or without cents with the first symbol in the uppercase.",[t.System.Double,Boolean,Boolean],["value","upperCase","showCents"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.","If this parameter is true then cents of the value will be added to the resulting String."]),i.StiFunctions.addFunction("Strings","","ToCurrencyWords","Converts the specified value to its equivalent string representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with or without cents with the first symbol in the uppercase. Names of cents and dollars of the currency is to be specified in the dollars and cents parameters.",[t.System.Double,Boolean,Boolean,String,String],["value","upperCase","showCents","dollars","cents"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.","If this parameter is true then cents of the value will be added to the resulting String.",'A string in format "dollar/ dollars" ("pound/ pounds"), etc.','A string in format "cent/ cents" ("penny/ pence"), etc.']),i.StiFunctions.addFunction("Strings","ToWords","ToWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","DateToStr","DateToStrRu","Converts the specified value: DateTime to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime with the first symbol in the uppercase.",[t.System.DateTime,Boolean],["value","upperCase"],["A value containing a datetime to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","DateToStr","DateToStrRu","Converts the specified value: DateTime to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime.",[t.System.DateTime],["value"],["A value containing a datetime to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the integer value with kopecks.",[t.System.Int64],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the decimal value with kopecks.",[t.System.Decimal],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the float-point value with kopecks.",[t.System.Double],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation with using specified currency in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean,String],["value","showCents","currency"],["A value containing a currency to convert.","If this parameter is true then cents of the value will be added to the resulting String.",'Designation currency, which will be used to transform numbers. "RUR", "USD", "EUR", "UAH", "KZT".']),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation with using specified currency in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean,String],["value","showCents","currency"],["A value containing a currency to convert.","If this parameter is true then cents of the value will be added to the resulting String.",'Designation currency, which will be used to transform numbers. "RUR", "USD", "EUR", "UAH", "KZT".']),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation with using specified currency in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean,String],["value","showCents","currency"],["A value containing a currency to convert.","If this parameter is true then cents of the value will be added to the resulting String.",'Designation currency, which will be used to transform numbers. "RUR", "USD", "EUR", "UAH", "KZT".']),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation with using specified currency in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,String,Boolean],["value","currency","upperCase"],["A value containing a currency to convert.",'Designation currency, which will be used to transform numbers. "RUR", "USD", "EUR", "UAH", "KZT".',"If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation with using specified currency in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,String,Boolean],["value","currency","upperCase"],["A value containing a currency to convert.",'Designation currency, which will be used to transform numbers."RUR", "USD", "EUR", "UAH", "KZT".',"If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsRu","Converts the specified value to its equivalent string representation with using specified currency in Russian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float- point value with the first symbol in the uppercase.",[t.System.Double,String,Boolean],["value","currency","upperCase"],["A value containing a currency to convert.",'Designation currency, which will be used to transform numbers."RUR", "USD", "EUR", "UAH", "KZT".',"If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsThai","Converts the specified value to its equivalent string representation with using specified currency in Thai language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value.",[t.System.Int64],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsThai","Converts the specified value to its equivalent string representation with using specified currency in Thai language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value.",[t.System.Double],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsThai","Converts the specified value to its equivalent string representation with using specified currency in Thai language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value.",[t.System.Decimal],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","DateToStr","DateToStrUa","Converts the specified value: DateTime to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime with the first symbol in the uppercase.",[t.System.DateTime,Boolean],["value","upperCase"],["A value containing a datetime to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","DateToStr","DateToStrUa","Converts the specified value: DateTime to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime.",[t.System.DateTime],["value"],["A value containing a datetime to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the integer value with kopecks.",[t.System.Int64],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the decimal value with kopecks.",[t.System.Decimal],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the float-point value with kopecks.",[t.System.Double],["value"],["A value containing a currency to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean],["value","upperCase"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation with using specified currency in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,Boolean,String],["value","upperCase","currency"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.",'Designation currency, which will be used to transform numbers. "UAH", "USD", "EUR", "RUR".']),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation with using specified currency in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Double,Boolean,String],["value","upperCase","currency"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.",'Designation currency, which will be used to transform numbers. "UAH", "USD", "EUR", "RUR".']),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsUa","Converts the specified value to its equivalent string representation with using specified currency in Ukrainian language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean,String],["value","upperCase","currency"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.",'Designation currency, which will be used to transform numbers. "UAH", "USD", "EUR", "RUR".']),i.StiFunctions.addFunction("Strings","ToWords","ToWordsPt","Converts the specified value to its equivalent string representation in Portuguese language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the integer value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsPt","Converts the specified value to its equivalent string representation in Portuguese language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with or without cents with the first symbol in the uppercase.",[t.System.Decimal,Boolean,Boolean],["value","upperCase","showCents"],["A value containing a currency to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.","If this parameter is true then cents of the value will be added to the resulting String."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsPtBr","Converts the specified value to its equivalent string representation in Portuguese (Brazil) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Decimal],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","DateToStr","DateToStrPt","Converts the specified value: DateTime to its equivalent string representation in Portuguese language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime.",[t.System.DateTime],["value"],["A value containing a datetime to convert."]),i.StiFunctions.addFunction("Strings","DateToStr","DateToStrPtBr","Converts the specified value: DateTime to its equivalent string representation in Portuguese (Brazil) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime.",[t.System.DateTime],["value"],["A value containing a datetime to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsFr","Converts the specified value to its equivalent string representation in French (Standard) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Decimal,String,t.System.Int32],["number","currencyISO","decimals"],["A value containing a number to convert.",'A value containing a currency ISO code ("EUR", "GBP", "MXN" or "DHS").',"A value containing a decimals."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsEs","Converts the specified value to its equivalent string representation in Spanish (Spain Traditional) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Decimal,String,t.System.Int32],["number","currencyISO","decimals"],["A value containing a number to convert.",'A value containing a currency ISO code ("USD", "EUR", "GBP", "MXN" or "DHS").',"A value containing a decimals."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsEs","Converts the specified value to its equivalent string representation in Spanish (Spain Traditional) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsEs","Converts the specified value to its equivalent string representation in Spanish (Spain Traditional) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Int64,Boolean,Boolean],["value","upperCase","female"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase.","If this parameter is true then the female form will be used."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsNl","Converts the specified value to its equivalent string representation in Dutch (Standard) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Decimal,String,t.System.Int32],["number","currencyISO","decimals"],["A value containing a number to convert.",'A value containing a currency ISO code ("EUR", "GBP", "MXN" or "DHS").',"A value containing a decimals."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsEnGb","Converts the specified value to its equivalent string representation in English (United Kingdom) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the float-point value with the first symbol in the uppercase.",[t.System.Decimal,String,t.System.Int32],["number","currencyISO","decimals"],["A value containing a number to convert.",'A value containing a currency ISO code ("EUR", "GBP", "MXN" or "DHS").',"A value containing a decimals."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsFa","Converts the specified value to its equivalent string representation in Persian (Farsi) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the value: number.",[t.System.Int64],["value"],["A value containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsPl","Converts the specified value to its equivalent string representation in Polish language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Int64,Boolean],["value","upperCase"],["A value containing a number to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","DateToStr","DateToStrPl","Converts the specified value: DateTime to its equivalent string representation in Polish language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value: DateTime with the first symbol in the uppercase.",[t.System.DateTime,Boolean],["value","upperCase"],["A value containing a datetime to convert.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsPl","Converts the specified value to its equivalent string representation with using specified currency in Polish language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value with the first symbol in the uppercase.",[t.System.Decimal,String,Boolean,Boolean],["value","currencyISO","showCents","upperCase"],["A value containing a currency to convert.",'Designation currency, which will be used to transform numbers. "USD", "EUR", "PLN".',"If this parameter is true then cents of the value will be added to the resulting String.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","ToWords","ToWordsEnIn","Converts the specified value to its equivalent string representation in English(Indian) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the value.",[t.System.Int64,Boolean],["value","blankIfZero"],["A value containing a number to convert.","If this parameter is true and the value to convert is zero then return a empty String."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsEnIn","Converts the specified value to its equivalent string representation with using specified currency in English(Indian) language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns the string representation of the decimal value.",[String,String,t.System.Decimal,t.System.Int32,Boolean],["currencyBasicUnit","currencyFractionalUnit","value","decimalPlaces","blankIfZero"],['The basic unit of the currency ("Rupees").','The fractional unit of the currency ("paisa").',"A value containing a currency to convert.","The number of decimal places to use while converting.","If this parameter is true then the first symbol of the resulting string will be in the uppercase."]),i.StiFunctions.addFunction("Strings","","TryParseDecimal","Converts the object representation of a number to its Decimal equivalent.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",Boolean,"True, if value was converted successfully; otherwise, false.",[String],["value"],["An object containing the value to convert."]),i.StiFunctions.addFunction("Strings","","TryParseDouble","Converts the object representation of a number to its double-precision floating-point number equivalent.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",Boolean,"True, if value was converted successfully; otherwise, false.",[String],["value"],["An object containing a number to convert."]),i.StiFunctions.addFunction("Strings","","TryParseLong","Converts the object representation of a number to its 64-bit signed integer equivalent","Stimulsoft.Report.Dictionary.StiFunctionsStrings",Boolean,"True, if value was converted successfully; otherwise, false.",[String],["value"],["An object containing a number to convert."]),i.StiFunctions.addFunction("Strings","","ToOrdinal","Converts the specified value to its ordinal representation.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"A value containing an ordinal representation of the number.",[t.System.Int64],["value"],["An object containing a number to convert."]),i.StiFunctions.addFunction("Strings","ToCurrencyWords","ToCurrencyWordsZh","Converts the specified value to its equivalent string representation in Chinese language.","Stimulsoft.Report.Dictionary.StiFunctionsStrings",String,"Returns or does not return the string representation of the decimal value.",[t.System.Int64],["value"],["A value containing a number to convert."]),n.isCreated=!0)},n.toProperCase=function(t){if(null==t||t==r.value)return String.empty;return t.toLowerCase().replace(/(^|[\s\xA0])[^\s\xA0]/g,function(t){return t.toUpperCase()})},n.substring=function(t,e,i){if(null==t||t==r.value)return String.empty;var n=t.toString();if(e+i>=n.length)return n.substr(e);return n.substr(e,i)},n.left=function(t,e){if(null==t||t==r.value)return String.empty;var i=t.toString();if(e>=i.length)return i;return i.substr(0,e)},n.right=function(t,e){if(null==t||t==r.value)return String.empty;var i=t.toString();if(e>=i.length)return i;return i.substr(i.length-e,e)},n.mid=function(t,e,i){return this.substring(t,e,i)},n.roman=function(t){return e.Func.Convert.toRoman(t)},n.abc=function(t){return e.Func.Convert.toABC(+t)},n.arabic=function(t){return e.Func.Convert.toArabic(t,!1)},n.persian=function(t){return e.Func.Convert.toArabic(t,!1)},n.toWords=function(t,i,r){return void 0===i&&(i=null),void 0===r&&(r=null),e.Func.En.numToStr(t,i)},n.dateToStr=function(t,i){return void 0===i&&(i=null),e.Func.En.dateToStr(t,i)},n.toCurrencyWords=function(t,i,r,n,o){return void 0===n&&(n="dollar/dollars"),void 0===o&&(o="cent/cents"),e.Func.En.currToStr(t,i,r,n,o)},n.toCurrencyWords2=function(t,e,i,r,n){return void 0===e&&(e=null),void 0===i&&(i=null),void 0===r&&(r=null),void 0===n&&(n=null),"EN only implemented"},n.toOrdinal=function(t){var e=""+t;if(t<1)return e;if((t%=100)>=11&&t<=13)return e+"th";switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}},n.toWordsRu=function(t,i){return void 0===i&&(i=!0),e.Func.Ru.numToStr(t,i)},n.dateToStrRu=function(t,i){return void 0===i&&(i=!1),e.Func.Ru.dateToStr(t,i)},n.toCurrencyWordsRu=function(t,i,r,n){return void 0===i&&(i=!0),void 0===r&&(r="RUR"),void 0===n&&(n=!0),e.Func.Ru.currToStr(t,i,r,n)},n.toCurrencyWordsThai=function(t){return this.SP_STRtNumToMny(t)},n.SP_STRtNumToMny=function(t){var e=String.empty,i=String.empty,r=null,n=String.empty,o=String.empty,a=String.empty,s=String.empty;if(s=Math.round(t,2).toString(),r=s.split("."),r.length-1>1)return"";if(i=r[0],r.length-1>0&&(e=r[1],e.length>2))return"";if(n=String.isNullOrEmpty(i)?this.tC_0:this.SP_XCGtNumToMny(i),String.isNullOrEmpty(e))o=this.tC_0;else{switch(e.length){case 1:e+="0";break;case 2:break;default:e=e.remove(2);break}o=this.SP_XCGtNumToMny(e)}return n==this.tC_0&&o==this.tC_0?a=n+this.tC_Baht+this.tC_Complete:n==this.tC_0&&o!=this.tC_0?a=o+this.tC_Satang:n!=this.tC_0&&o==this.tC_0?a=n+this.tC_Baht+this.tC_Complete:n!=this.tC_0&&o!=this.tC_0&&(a=n+this.tC_Baht+o+this.tC_Satang),a},n.SP_XCGtNumToMny=function(t){var e=t;if(String.isNullOrEmpty(t))return"";while("0"==e[0]&&e.length>1)e=e.remove(1,1);e=this.reverseString(e);var i=0,r="",n=e;for(i=0;i<=n.length-1;i++){var o="",a="",s=0;switch(s=i%6,n[i]){case"0":a="";break;case"1":switch(s){case 0:a=n.length%6==0&&i==n.length-1?this.tC_1:this.tC_01;break;case 1:a=this.tC_10;break;default:a=this.tC_1;break}break;case"2":switch(s){case 1:a=this.tC_20;break;default:a=this.tC_2;break}break;case"3":a=this.tC_3;break;case"4":a=this.tC_4;break;case"5":a=this.tC_5;break;case"6":a=this.tC_6;break;case"7":a=this.tC_7;break;case"8":a=this.tC_8;break;case"9":a=this.tC_9;break}if(!String.isNullOrEmpty(a)||i%6==0)switch(s){case 0:o=i/6<=0?"":this.tC_1000000;break;case 1:o=a==this.tC_10?"":this.tC_10;break;case 2:o=this.tC_100;break;case 3:o=this.tC_1000;break;case 4:o=this.tC_10000;break;case 5:o=this.tC_100000;break}r=a+o+r}return String.isNullOrEmpty(r)&&(r=this.tC_0),r},n.reverseString=function(t){var e=t.split("");return Array.reverse(e),e.join()},n.toWordsUa=function(i,r,n){return void 0===r&&(r=!0),void 0===n&&(n=t.Report.Func.Gender.Masculine),e.Func.Ua.numToStr(i,r,n)},n.dateToStrUa=function(t,i){return void 0===i&&(i=!1),e.Func.Ua.dateToStr(t,i)},n.toCurrencyWordsUa=function(t,i,r,n){return void 0===i&&(i=!0),void 0===r&&(r="UAH"),void 0===n&&(n=!0),e.Func.Ua.currToStr(t,i,r,n)},n.toWordsPt=function(t,i){return e.Func.Pt.numToStr(t,i)},n.toCurrencyWordsPt=function(t,i,r){return e.Func.Pt.currToStr(t,i,r)},n.toCurrencyWordsPtBr=function(t){return e.Func.PtBr.numToStr(t)},n.DateToStrPt=function(t){
return e.Func.Pt.dateToStr(t)},n.dateToStrPtBr=function(t){return e.Func.Pt.dateToStr(t).toLower()},n.toCurrencyWordsFr=function(t,i,r){return e.Func.Fr.convertToWord(t,i,r)},n.toCurrencyWordsEs=function(t,i,r){return e.Func.Es.convertToWord(t,i,r)},n.toWordsEs=function(t,i){return e.Func.Es.numToStr(t,i)},n.toWordsEs2=function(t,i,r){return e.Func.Es.numToStr2(t,i,r)},n.toCurrencyWordsNl=function(t,i,r){return e.Func.Nl.convertToWord(t,i,r)},n.toCurrencyWordsEnGb=function(t,i,r){return e.Func.EnGb.convertToWord(t,i,r)},n.toWordsPl=function(t,i){return e.Func.Pl.numToStr(t,i)},n.dateToStrPl=function(t,i){return e.Func.Pl.dateToStr(t,i)},n.toCurrencyWordsPl=function(t,i,r,n){return e.Func.Pl.currToStr(t,i,r,n)},n.toWordsEnIn=function(t,i){return e.Func.EnIn.numberToStr(t,i)},n.toCurrencyWordsEnIn=function(t,i,r,n,o){return void 0===o&&(o=!1),e.Func.EnIn.currencyToStr(t,i,r,n,o)},n.toWordsFa=function(t){return e.Func.Fa.convertToWord(t)},n.toWordsZh=function(t){return e.Func.Zh.toWordsZh(t)},n.toCurrencyWordsZh=function(t){return e.Func.Zh.toCurrencyWordsZh(t)},n.isCreated=!1,n.tC_0="ศูนย์",n.tC_1="หนึ่ง",n.tC_2="สอง",n.tC_3="สาม",n.tC_4="สี่",n.tC_5="ห้า",n.tC_6="หก",n.tC_7="เจ็ด",n.tC_8="แปด",n.tC_9="เก้า",n.tC_01="เอ็ด",n.tC_10="สิบ",n.tC_20="ยี่",n.tC_100="ร้อย",n.tC_1000="พัน",n.tC_10000="หมื่น",n.tC_100000="แสน",n.tC_1000000="ล้าน",n.tC_Baht="บาท",n.tC_Satang="สตางค์",n.tC_Complete="ถ้วน",n}();i.StiFunctionsStrings=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=function(){function i(){}return i.create=function(){0==i.isCreated&&(e.StiFunctions.addFunction("Totals","Max","Max","Function returns the largest value in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object],["expression"],["Expression - can be a decimal field in the data souce or formula which returns decimal number."]),e.StiFunctions.addFunction("Totals","Max","Max","A function returns the largest value in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxD","Function returns the largest value in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxD","A function returns the largest value in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxI","A function returns the largest value in the specified column or expression.","IsNull",t.System.Int64,"An integer number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxI","A function returns the largest value in the specified column or expression.","IsNull",t.System.Int64,"An integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxDate","A function returns the largest value in the specified column or expression.","IsNull",t.System.DateTime,"A DateTime value.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxDate","A function returns the largest value in the specified column or expression.","IsNull",t.System.DateTime,"A DateTime value.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxTime","A function returns the largest value in the specified column or expression.","IsNull",t.System.TimeSpan,"A TimeSpan value.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxTime","A function returns the largest value in the specified column or expression.","IsNull",t.System.TimeSpan,"A TimeSpan value.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxStr","The function adds string values and sorts them alphabetically. Then returns the bottom value from the sorted list.","IsNull",String,"A string.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Max","MaxStr","The function adds string values and sorts them alphabetically. Then returns the bottom value from the sorted list.","IsNull",String,"A string.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","Min","A function returns the lowest value in the column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","Min","A function returns the lowest value in the column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinD","A function returns the lowest value in the column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinD","A function returns the lowest value in the column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object,Object],["The DataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinI","Function returns the lowest value in the column or expression.","IsNull",t.System.Int64,"An integer number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinI","A function returns the lowest value in the column or expression.","IsNull",t.System.Int64,"An integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinDate","A function returns the lowest value in the column or expression.","IsNull",t.System.DateTime,"The DateTime value.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinDate","A function returns the lowest value in the column or expression.","IsNull",t.System.DateTime,"The DateTime value.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinTime","A function returns the lowest value in the column or expression.","IsNull",t.System.TimeSpan,"The TimeSpan value.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinTime","A function returns the lowest value in the column or expression.","IsNull",t.System.TimeSpan,"The TimeSpan value.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinStr","A function adds string values and sorts them alphabetically. Then returns the top value from the sorted list.","IsNull",String,"The string.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Min","MinStr","A function adds string values and sorts them alphabetically. Then returns the top value from the sorted list.","IsNull",String,"The string.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","Avg","A function returns the average of all values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","Avg","A function returns the average of all values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on which to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgD","A function returns the average of all values in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgD","A function returns the average of all values in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgI","A function returns the average of all values in the specified column or expression.","IsNull",t.System.Int64,"A integer number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgI","A function returns the average of all values in the specified column or expression.","IsNull",t.System.Int64,"A integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on which to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgDate","A function returns the average of all values in the specified column or expression.","IsNull",t.System.DateTime,"A DateTime value.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgDate","A function returns the average of all values in the specified column or expression.","IsNull",t.System.DateTime,"The DateTime value.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgTime","A function returns the average of all values in the specified column or expression.","IsNull",t.System.TimeSpan,"A TimeSpan value.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Avg","AvgTime","A function returns the average of all values in the specified column or expression.","IsNull",t.System.TimeSpan,"The TimeSpan value.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","Sum","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","Sum","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumD","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumD","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumI","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.Int64,"A integer number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumI","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.Int64,"A integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumDistinct","A function returns the sum of all unique values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumDistinct","A function returns the sum of all unique values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumDistinct","A function returns the sum of all unique values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object,Object],["dataSource","conditionExpression","sumExpression"],["The Data Source for processing.","A condition expression to perform summing on.","An expression to sum up."]),e.StiFunctions.addFunction("Totals","Sum","SumTime","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.TimeSpan,"A TimeSpan value.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Sum","SumTime","A function returns the sum of all the values in the specified column or expression.","IsNull",t.System.TimeSpan,"The TimeSpan value.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Mode","Mode","A function returns the most common value of all the values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Mode","Mode","A function returns the most common value of all the values in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Mode","ModeD","A Function returns the most common value of all the values in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Mode","ModeD","A function returns the most common value of all the values in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Mode","ModeI","A function returns the most common value of all the values in the specified column or expression.","IsNull",t.System.Int64,"A integer number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Mode","ModeI","A function returns the most common value of all the values in the specified column or expression.","IsNull",t.System.Int64,"A integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Median","Median","A function returns the median of the given numbers in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Median","Median","A function returns the median of the given numbers in the specified column or expression.","IsNull",t.System.Decimal,"A decimal number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Median","MedianD","A function returns the median of the given numbers in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Median","MedianD","A function returns the median of the given numbers in the specified column or expression.","IsNull",t.System.Double,"A floating-point number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Median","MedianI","A function returns the median of the given numbers in the specified column or expression.","IsNull",t.System.Int64,"An integer number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Median","MedianI","A function returns the median of the given numbers in the specified column or expression.","IsNull",t.System.Int64,"A integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","First","First","A function returns the first value in a set of the given values in the specified column or expression.","IsNull",Object,"A first value in a set of the given values.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","First","First","A function returns the first value in a set of the given values in the specified column or expression.","IsNull",Object,"The first value in a set of given values.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Last","Last","A function returns the last value in a set of given values in the specified column or expression.","IsNull",Object,"A first value in a set of the given values.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Last","Last","A function returns the last value in a set of given values in the specified column or expression.","IsNull",Object,"The first value in a set of given values.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Count","Count","A function counts how many values are in the specified data source.","IsNull",t.System.Int64,"An integer number.",[Object],["dataSource"],["The Data Source for processing."]),e.StiFunctions.addFunction("Totals","Count","Count","A function counts how many values are in the specified data source.","IsNull",t.System.Int64,"An integer number."),e.StiFunctions.addFunction("Totals","Count","CountDistinct","A function counts how many unique values are in the specified data source.","IsNull",t.System.Int64,"An integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Count","CountDistinct","A function counts how many unique values are in the specified data source.","IsNull",t.System.Int64,"An integer number.",[Object],["expression"],["An expression on what to perform the aggregation."]),e.StiFunctions.addFunction("Totals","Rank","Rank","A function returns a rank of the number in the list of numbers from the specified data source. Works only with 'Totals' prefix.","IsNull",t.System.Int64,"An integer number.",[Object,Object],["dataSource","expression"],["The Data Source for processing.","An expression on what to perform the calculation."]),e.StiFunctions.addFunction("Totals","Rank","Rank","A function returns a rank of the number in the list of numbers from the specified data source. Works only with 'Totals' prefix.","IsNull",t.System.Int64,"An integer number.",[Object,Object,Boolean,Object],["dataSource","expression","dense","sortOrder"],["The Data Source for processing.","An expression on what to perform the calculation.","Use dense rank mode.","Sorting order."]),i.isCreated=!0)},i.isCreated=!1,i}();e.StiFunctionsTotals=i}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t){this._alias=t}return Object.defineProperty(t.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),t}();t.StiAliasAttribute=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Data.DBNull,r=t.Report.Components.StiGroupSortDirection,n=function(){function e(t,e,i,r){this.businessObject=null,this.businessObject=e,this.sortColumns=t,this.conditions=r,this.rowToConditions=i}return e.prototype.compare=function(e,i){try{if(e==i)return 0;if(null!=this.rowToConditions&&null!=this.conditions)for(var n=this.rowToConditions.get(e),o=this.rowToConditions.get(i),a=this.conditions.length,s=0;s<a;s++){var l=this.conditions[n][s][0],u=this.conditions[o][s][0],c=+this.conditions[n][s][1],p=this.compareValues(l,u,c==r.Ascending);if(0==p)continue;return p}if(null==this.sortColumns||0==this.sortColumns.length)return 0;var h=0,g=0;while(g<this.sortColumns.length){var m=!1;"ASC"==this.sortColumns[g++]&&(m=!0);var d=g;while(g<this.sortColumns.length&&"ASC"!=this.sortColumns[g]&&"DESC"!=this.sortColumns[g])g++;var S=e,f=i;if(g-d>1)var y=d;var b=this.sortColumns[g-1];h++}return 0}catch(e){return t.System.StiError.showError(e,!1),0}},e.prototype.compareValues=function(t,e,r){void 0===r&&(r=!0);var n=1;if(r||(n=-1),t==i.value&&e==i.value)return 0;if(t==i.value)return-1*n;if(e==i.value)return 1*n;var o=t,a=e;if(null==o&&null==a)return 0;if(null==o)return-1*n;if(null==a)return 1*n;if(o!=a){var s=o.compareTo(a);if(r||(s=-s),0!=s)return s}return 0},e.prototype.clear=function(){this.sortColumns=null},e}();e.StiBusinessObjectSort=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Data.DataSet,r=function(){function t(t,e,i,r,n){this.name=t,this.parentTableName=e,this.childTableName=i,this.parentColumnName=r,this.childColumnName=n}return t}(),n=function(){function t(){this.dataSet=null,this.relations=null,this.uniques=null,this.level=0}return t.prototype.convertBusinessObjectToDataSet=function(t,e){return new i(t)},t}();e.StiBusinessObjectToDataSet=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiTypeFinder,n=t.Report.Dictionary.Design.StiDataColumnConverter,o=t.System.ICloneable,a=t.Base.StiJson,s=t.Base.JsonReportObject.IStiJsonReportObject,l=function(){function l(t,e,i,r,n){void 0===t&&(t="Column"),void 0===e&&(e="Column"),void 0===i&&(i=e),void 0===r&&(r=String),void 0===n&&(n=null),this.dataColumnsCollection=null,this._index=0,this._nameInSource="Column",this.nameInSource=t,this.name=e,this.alias=i,this.type=r,this.index=-1,this.key=n}return l.prototype.implements=function(){return[s,o,e.IStiName,e.IStiInherited]},l.prototype.saveToJsonObject=function(t){var e=new a;return e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyNumber("Index",this.index),e.addPropertyStringNullOfEmpty("NameInSource",this.nameInSource),e.addPropertyStringNullOfEmpty("Alias",this.alias),e.addPropertyStringNullOfEmpty("Type",n.convertTypeToString(this.type)),e.addPropertyStringNullOfEmpty("Key",this.key),e},l.prototype.loadFromJsonObject=function(e){for(var i=0,n=e.properties();i<n.length;i++){var o=n[i];switch(o.name){case"Name":this._name=o.value;break;case"Index":this._index=o.value.toNumber();break;case"NameInSource":this._nameInSource=o.value;break;case"Alias":this._alias=o.value;break;case"Type":try{this._type=r.getStiType(o.value)}catch(e){t.System.StiError.showError(e,!1)}break;case"Key":this._key=o.value;break}}},l.prototype.clone=function(){return this.memberwiseClone()},l.prototype.memberwiseClone=function(){return new(this.getStiType())},Object.defineProperty(l.prototype,"name",{get:function(){return this._name},set:function(t){null!=this.dataSource&&null!=this.dataSource.dictionary&&null!=this.dataSource.dictionary.report&&this.dataSource.dictionary.report.isDesigning&&StiOptions.Designer.autoCorrectDataColumnName&&(t=e.StiNameValidator.correctName(t)),this._name!=t&&(this._name==this._nameInSource&&(this._nameInSource=t),this._name==this._alias&&(this._alias=t),this._name=t)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"inherited",{get:function(){if(null!=this.dataSource)return this.dataSource.inherited;return!1},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"businessObject",{get:function(){return this._businessObject},set:function(t){this._businessObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this._index},set:function(t){this._index=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"nameInSource",{get:function(){return this._nameInSource},set:function(t){this._nameInSource!=t&&(this._nameInSource=t)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"key",{get:function(){return this._key},set:function(t){this._key=t},enumerable:!0,configurable:!0}),l.prototype.getColumnPath=function(){return String.stiFormat("{0}.{1}",this.dataSource.name,this.name)},l.prototype.toString=function(){if(StiOptions.Dictionary.showOnlyAliasForDataColumn)return this.alias;return name==this._alias||String.isNullOrEmpty(this._alias)?this.name:String.stiFormat("{0} [{1}]",this.name,this.alias)},l.getDataColumnFromColumnName=function(t,e){if(null==e)return null;if(e=e.trim(),0==e.length)return null;var i=e.split("."),r=t.dataSources.getByName(i[0]);if(null==r)return null;var n=i.length-1,o=1;while(n>0){if(!(n>=2))return r.columns.contains(i[o])?r.columns.getByName(i[o]):null;r=r.getParentDataSource(i[o]),o++,n--}},l.getRelationName=function(t,e,i){for(var r=0,n=t.relations.list;r<n.length;r++){var o=n[r];if(o.childSource==e&&o.name==i)return o.nameInSource}return i},l.getDataFromBusinessObject=function(t,e){var i=e.split("."),r=t.businessObjects.getByName(i[0]);if(null==r)return null;var n=1;while(n<i.length){if(n==i.length-1)return r.getByName(i[n]);r=r.businessObjects.getByName(i[n]),n++}return null},l.getBusinessObjectFromDataColumn=function(t,e){var i=e.split("."),r=t.businessObjects.getByName(i[0]);if(null==r)return null;var n=1;while(n<i.length){if(n==i.length-1)return r;r=r.businessObjects.getByName(i[n]),n++}return null},l.getDataFromDataColumn=function(r,n,o){if(void 0===o&&(o=!0),null==n)return null;var a=n.split("."),s=r.dataSources.getByName(a[0]);if(null==s)return this.getDataFromBusinessObject(r,n);var l=null,u=a.length-1,c=1;while(u>0){if(!(u>=2)){if(null!=s){var p=null!=s.columns.getByName(a[c])?s.columns.getByName(a[c]).sti_as(i.StiCalcDataColumn):null;if(null!=p){if(null!=r&&null!=r.report&&r.report.isDesigning)return null;if(null!=r&&null!=r.report&&r.report.calculationMode==e.StiCalculationMode.Interpretation){var h=new t.Report.Components.StiText;h.name="**StiCalcDataColumn**",h.page=r.report.pages.getByIndex(0);return t.Report.Engine.StiParser.StiParser.parseTextValue("{"+p.expression+"}",h)}var g=String.stiFormat("Get{0}_{1}",e.StiNameValidator.correctName(p.dataSource.name),e.StiNameValidator.correctName(p.name));if(r.report.hasOwnProperty(g))return r.report[g](r.report,[])}}if(null!=l)return l.getByColumnName(a[c]);if(null==s)return null;return s.getByColumnName(a[c])}var m=a[c];o||(m=this.getRelationName(r,s,m)),l=null==l?s.getParentData(m):l.getParentData(m),s=s.getParentDataSource(m),c++,u--}},l.getDataSourceFromDataColumn=function(t,e){var i=e.split(".");return t.dataSources.getByName(i[0])},l.getColumnNameFromDataColumn=function(t,e){var i=e.split(".");return e.substr(i[0].length+1)},l.getDataListFromDataColumn=function(t,e,i){void 0===i&&(i=null);var r=this.getDatasFromDataColumn(t,e,i);return null!=r?r:null},l.getDatasFromDataColumn=function(t,e,i){void 0===i&&(i=null);var r=[],n=l.getDataSourceFromDataColumn(t,e);if(null!=n){var o=0;while(!n.isEof){var a=l.getDataFromDataColumn(t,e);if(null!=a&&r.add(a),n.next(),o++,null!=i&&i==o)break}n.first()}var s=l.getBusinessObjectFromDataColumn(t,e);if(null!=s){s.saveState("Totals"),s.createEnumerator();var o=0;while(!s.isEof){var a=l.getDataFromDataColumn(t,e);if(null!=a&&r.add(a),s.next(),o++,null!=i&&i==o)break}s.restoreState("Totals")}return r},l}();i.StiDataColumn=l;var u;!function(t){t[t.NameInSource=100]="NameInSource",t[t.Name=200]="Name",t[t.Alias=300]="Alias",t[t.Expression=400]="Expression",t[t.Type=500]="Type"}(u||(u={}))}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Type,r=function(t){function e(e,r,n,o,a){void 0===e&&(e="CalcColumn"),void 0===r&&(r="CalcColumn"),void 0===n&&(n=new i),void 0===o&&(o=""),void 0===a&&(a="");var s=t.call(this,e,e,r,n)||this;return s._value=o,""!=a&&(s.key=a),s}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.addPropertyIdent("Ident","Calc"),i.addPropertyString("Expression",this.expression),i},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"Expression":this.expression=n.value;break}}},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expression",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),e}(e.StiDataColumn);e.StiCalcDataColumn=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e,i){this.OriginalConnectionState=null,this._name=t,this._data=e,this._viewData=i,i||(this._viewData=e)}return Object.defineProperty(t.prototype,"viewData",{get:function(){return this._viewData},set:function(t){this._viewData=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name!=t&&(this._alias==name&&(this._alias=t),this._name=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReportData",{get:function(){return this._isReportData},set:function(t){this._isReportData=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBusinessObjectData",{get:function(){return this._isReportData},set:function(t){this._isBusinessObjectData=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.name==this.alias?this.name+"("+this.viewData.getStiTypeName()+")":this.name+"("+this.alias+")"},t}();t.StiData=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Char,r=t.System.Collections.Hashtable,n=function(){function t(){}return t.correctName=function(e,r){if(void 0===r&&(r=!0),null==e||0==e.length)return String.empty;var n="_"+e;if(t.cache.contains(n)){var o=t.cache.get(n);if(o.sti_is(Boolean))return e;return o}for(var a=e,s=0;s<a.length;s++)i.isLetterOrDigit(a.charAt(s))||(a=a.substr(0,s)+"_"+a.substr(s+1));return a.length>0&&i.isDigit(a.charAt(0))&&(a="n"+a),e==a?t.cache.add(n,!0):t.cache.add(n,a),a},t.checkKeyword=function(t){return t},t.correctBusinessObjectName=function(e){if(String.isNullOrEmpty(e))return String.empty;for(var i=e.split("."),r=0;r<i.length;r++)e+=t.correctName(i[r]),r<i.length-1&&(e+=".");return e},t.cache=new r,t}();e.StiNameValidator=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.StiNameValidator,r=function(){function t(){}return t.getColumnFromPath=function(t,e){for(var r=t.split("."),n=r[0],o=0,a=e.dataSources.list;o<a.length;o++){var s=a[o];if(i.correctName(s.name)==n&&t.length>s.name.length+1){var l=t.substring(s.name.length+1);return this.getColumnFromPath2(l,s)}}return null},t.getColumnFromPath2=function(t,e){var r=t.split("."),n=0,o=r[n];while(1==1){for(var a=0,s=e.columns.list;a<s.length;a++){var l=s[a];if(i.correctName(l.name)==o&&n==r.length-1)return l}for(var u=e.getParentRelations(),c=0,p=u.list;c<p.length;c++){var h=p[c];if(i.correctName(h.name)==o){var g=t.substring(h.name.length+1);return this.getColumnFromPath2(g,h.parentSource)}}if(n==r.length-1)return null;n++,o+="."+r[n]}},t}();e.StiDataBuilder=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.Data.DataTable,n=t.System.Data.DataSet,o=function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return __extends(o,i),o.prototype.toList=function(){var t=[];return this.list.forEach(function(e){return t.add(e)}),t},o.prototype.add=function(t){this.list.push(t)},o.prototype.addRange=function(t){this.list.addRange(t)},o.prototype.contains=function(t){return this.list.contains(t)},o.prototype.indexOf=function(t){return this.list.indexOf(t)},o.prototype.insert=function(t,e){this.list.insert(t,e)},o.prototype.remove=function(t){this.list.remove(t)},o.prototype.getByIndex=function(t){return this.list[t]},o.prototype.setByIndex=function(t,e){this.list[t]=e},o.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t)return r}return null},o.prototype.setByName=function(t,e){for(var i=t.toLower(),r=0;r<this.list.count;r++){if(this.list[r].name.toLower()==i)return void(this.list[r]=e)}this.add(e)},Object.defineProperty(o.prototype,"items",{get:function(){return this.list},enumerable:!0,configurable:!0}),o.prototype.regData=function(i,a,s){if(null!=s){if(String.isNullOrEmpty(a)&&!String.isNullOrEmpty(i)&&(a=i),s.sti_is(r))return void(String.isNullOrEmpty(a)?this.regDataDataTable2(s):this.regDataDataTable(i,a,s));if(s.sti_is(n))return String.isNullOrEmpty(a)&&this.regDataDataSet2(s),void this.regDataDataSet(i,a,s);if(s.sti_is(String))try{var l=new n(i);return s.trim().startsWith("<?xml")?l.readXml(s):l.readJson(s),void this.regDataDataSet(i,a,l)}catch(e){t.System.StiError.showError(e,!1)}if(s.sti_is(o))return void this.regDataStiDataCollection(s);if(s.sti_is(Object))try{var u=new n(i);return void 0!==s.firstChild&&void 0!==s.lastChild?u.readXml(s):u.readJson(s),void this.regDataDataSet(i,a,u)}catch(e){t.System.StiError.showError(e,!1)}var c=new e.StiBusinessObjectToDataSet,p=c.convertBusinessObjectToDataSet(i,s);if(null!=p)for(var h=0,g=p.tables.list;h<g.length;h++){var m=g[h];this.regDataDataTable(m.tableName,a,m),this.getByIndex(this.count-1).data=s,this.getByIndex(this.count-1).isBusinessObjectData=!0}else this.add(new e.StiData(i,s)),this.getByIndex(this.count-1).alias=a,this.getByIndex(this.count-1).isBusinessObjectData=!0}},o.prototype.regDataDataTable=function(t,i,r){null!=r&&(null==this.getByName(t)?(this.add(new e.StiData(t,r,r)),this.getByIndex(this.count-1).alias=i):(this.getByName(t).data=r,this.getByName(t).viewData=r,this.getByName(t).alias=i))},o.prototype.regDataDataSet=function(t,e,i){if(null!=i)for(var r=0,n=i.tables.list;r<n.length;r++){var o=n[r];this.regDataDataTable(t+"."+o.tableName,e,o)}},o.prototype.regDataDataTable2=function(t){var e=t.tableName;String.isNullOrEmpty(e)&&(e="Table"),this.regData(e,"",t)},o.prototype.regDataDataSet2=function(t){var e=t.dataSetName;String.isNullOrEmpty(t.dataSetName)&&(e="DataSet"),this.regData(e,"",t)},o.prototype.regDataStiDataCollection=function(t){if(t==this)return;for(var e=0,i=t.list;e<i.length;e++){var r=i[e];this.add(r)}},o.prototype.clearReportDatabase=function(){var t=0;while(t<this.count)this.getByIndex(t).isReportData?this.removeAt(t):t++},o.prototype.GetData=function(t){for(var e=new o,i=0,r=this.list;i<r.length;i++){var n=r[i];n.viewData.getStiType()==t&&e.add(n)}return e},o}(i);e.StiDataCollection=o}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Data.DataColumn,r=t.System.Collections.CollectionBase,n=t.System.Type,o=t.System.Collections.Hashtable,a=t.Base.StiJson,s=t.Base.JsonReportObject.IStiJsonReportObject,l=t.System.Text.XMLConvert,u=t.Base.StiTypeFinder,c=function(r){function c(t){var n=r.call(this)||this;if(n.cachedDataColumns=new o,n.directionFactor=1,null!=t)if(Array.isArray(t)){var a=void 0;t[0].sti_is(e.StiDataColumn)?a=t:t[0].sti_is(i)&&(a=t.select(function(t){return new e.StiDataColumn(t.columnName,t.columnName,t.columnName,t.dataType)})),n.addRange(a)}else t.sti_is(e.StiDataSource)?n.dataSource=t.sti_as(e.StiDataSource):t.sti_is(e.StiBusinessObject)&&(n.businessObject=t.sti_as(e.StiBusinessObject));return n}return __extends(c,r),c.prototype.implements=function(){return[s]},c.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new a,i=0,r=0,n=this.list;r<n.length;r++){var o=n[r];e.addPropertyJObject(i.toString(),o.saveToJsonObject(t)),i++}return e},c.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i],o=null,a=n.value,s=a.properties().firstOrDefault(function(t){return"Ident"==t.name});o=null!=s&&"Calc"==s.value?new e.StiCalcDataColumn:new e.StiDataColumn,o.loadFromJsonObject(n.value),this.add(o)}},c.prototype.decodeTypeName=function(t){return t.replaceAll("_x002c_",",")},c.prototype.loadFromXml=function(i){for(var r=0;r<i.childNodes.length;r++){var n=i.childNodes[r];if("value"==n.nodeName){var o=n.textContent.split(",");if(6==o.length)if("CALC"==o[0]){var a=String;try{a=u.getStiType(this.decodeTypeName(o[3]))}catch(e){t.System.StiError.showError(e,!1)}var s=new e.StiCalcDataColumn(l.decodeName(o[1]),l.decodeName(o[2]),a,l.decodeName(o[4]),l.decodeName(o[5]));this.add(s)}else{var a=String;try{a=u.getStiType(this.decodeTypeName(o[4]))}catch(e){t.System.StiError.showError(e,!1)}var c=new e.StiDataColumn(l.decodeName(o[1]),l.decodeName(o[2]),l.decodeName(o[3]),a,l.decodeName(o[5]));this.add(c)}else if(5==o.length)if("ORIGINAL"==o[0]){var a=String;try{a=u.getStiType(this.decodeTypeName(o[4]))}catch(e){t.System.StiError.showError(e,!1)}var c=new e.StiDataColumn(l.decodeName(o[1]),l.decodeName(o[2]),l.decodeName(o[3]),a);this.add(c)}else{var a=String;try{a=u.getStiType(this.decodeTypeName(o[2]))}catch(e){t.System.StiError.showError(e,!1)}var p=new e.StiCalcDataColumn(l.decodeName(o[0]),l.decodeName(o[1]),a,l.decodeName(o[4]));this.add(p)}else if(4==o.length){var a=String;try{a=u.getStiType(this.decodeTypeName(o[2]))}catch(e){t.System.StiError.showError(e,!1)}var p=new e.StiCalcDataColumn(l.decodeName(o[0]),l.decodeName(o[1]),a,l.decodeName(o[3]));this.add(p)}else if(3==o.length){var a=String;try{a=u.getStiType(this.decodeTypeName(o[2]))}catch(e){t.System.StiError.showError(e,!1)}var c=new e.StiDataColumn(l.decodeName(o[0]),l.decodeName(o[0]),l.decodeName(o[1]),a);this.add(c)}else{var a=String;try{a=u.getStiType(this.decodeTypeName(o[1]))}catch(e){t.System.StiError.showError(e,!1)}var c=new e.StiDataColumn(l.decodeName(o[0]),l.decodeName(o[0]),l.decodeName(o[0]),a);this.add(c)}}}},c.prototype.toList=function(){return this._list},c.prototype.onInsert=function(t){var e=t;null!=e&&(null==e.dataSource&&(e.dataSource=this.dataSource),null==e.businessObject&&(e.businessObject=this.businessObject),null==e.dataColumnsCollection&&(e.dataColumnsCollection=this))},c.prototype.add=function(t,i,r){if(t.sti_is(e.StiDataColumn)&&(this.list.add(t.sti_as(e.StiDataColumn)),this.onInsert(t)),"string"==typeof t&&null!=i&&i.sti_is(n)&&this.add(t,t,i),"string"==typeof t&&null!=i&&"string"==typeof i&&null!=r){var o=new e.StiDataColumn("",t,i,r);this.add(o),this.onInsert(o)}},c.prototype.addRange=function(t){for(var e=t.sti_is(c)?t.list:t,i=0,r=e;i<r.length;i++){var n=r[i];this.add(n)}},c.prototype.contains=function(t){if(t.sti_is(e.StiDataColumn))return this.list.contains(t.sti_as(e.StiDataColumn));if("string"==typeof t)for(var i=0,r=this.list;i<r.length;i++){var n=r[i];if(n.name==t)return!0}return!1},c.prototype.indexOf=function(t){return this.list.indexOf(t)},c.prototype.insert=function(t,e){this.list.insert(t,e),this.onInsert(e)},c.prototype.remove=function(t){this.list.remove(t);var e=t.name.toLower();this.cachedDataColumns.contains(e)&&this.cachedDataColumns.remove(e)},c.prototype.getByIndex=function(t){return this.list[t]},c.prototype.setByIndex=function(t,e){this.list[t]=e},c.prototype.getByName=function(t){t=t.toLower();var e=this.cachedDataColumns.get(t);if(null!=e)return e;for(var i=0,r=this.list;i<r.length;i++){var n=r[i];if(n.name.toLower()==t)return this.cachedDataColumns.set(t,n),n}return null},c.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].name.toLower()==t)return void(this.list[i]=e)}this.add(e)},c.prototype.sort=function(t){t==e.StiSortOrder.Asc?this.directionFactor=1:this.directionFactor=-1,this.list.sort()},c}(r);e.StiDataColumnsCollection=c}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Expressions.StiExpression,n=t.Base.JsonReportObject.IStiJsonReportObject,o=function(t){function i(e,i,r,n,o){var a=t.call(this)||this;return a.dataParametersCollection=null,a._inherited=!1,a._type=0,a._size=0,a._key=null,null==e&&(e="Parameter"),null==i&&(e=String.empty),null==r&&(r=0),null==n&&(n=0),a._type=r,a._name=e,a.value=i,a._size=n,null!=o&&(a._key=o),a}return __extends(i,t),i.prototype.implements=function(){return[e.IStiName,n]},i.prototype.saveToJsonObject=function(e){var i=t.prototype.saveToJsonObject.call(this,e);return i.removeProperty("Value"),i.addPropertyString("Name",this.name),i.addPropertyStringNullOfEmpty("Expression",this.expression),i.addPropertyNumber("Type",this.type),i.addPropertyNumber("Size",this.size),i.addPropertyStringNullOfEmpty("Key",this.key),i},i.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,r=e.properties();i<r.length;i++){var n=r[i];switch(n.name){case"Name":this._name=n.value;break;case"Expression":this.expression=n.value;break;case"Type":this._type=n.value.toNumber();break;case"Size":this._size=n.value.toNumber();break;case"Key":this._key=n.value;break}}},Object.defineProperty(i.prototype,"inherited",{get:function(){if(null!=this.dataSource)return this.dataSource.inherited;return!1},set:function(t){this._inherited=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"applyFormat",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expression",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),i.prototype.getParameterValue=function(){var t=null;null!=this.dataSource&&null!=this.dataSource.dictionary&&null!=this.dataSource.dictionary.report&&(t=this.dataSource.dictionary.report.variables);var e=null;return null!=t&&t.containsKey(this.name)?"string"==typeof(e=t.get(this.name))&&"#null#"==e&&(e=null):e=this.parameterValue,e},Object.defineProperty(i.prototype,"parameterValue",{get:function(){return this._parameterValue},set:function(t){this._parameterValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this._key},set:function(t){this._key=t},enumerable:!0,configurable:!0}),i.prototype.toString=function(){return this.name},i}(r);i.StiDataParameter=o;var a;!function(t){t[t.Name=100]="Name",t[t.Expression=200]="Expression",t[t.Size=300]="Size",t[t.Type=400]="Type"}(a||(a={}))}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.Collections.Hashtable,n=t.Base.JsonReportObject.IStiJsonReportObject,o=t.Base.StiJson,a=function(i){function a(t){void 0===t&&(t=null);var e=i.call(this)||this;return e.cachedDataParameters=new r,e.dataSource=t,e}return __extends(a,i),a.prototype.implements=function(){return[n]},a.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new o,i=0,r=0,n=this.list;r<n.length;r++){var a=n[r];e.addPropertyJObject(i.toString(),a.saveToJsonObject(t)),i++}return e},a.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i],o=new e.StiDataParameter;o.loadFromJsonObject(n.value),this.list.add(o)}},a.prototype.loadFromXml=function(i){for(var r=0;r<i.childNodes.length;r++){var n=i.childNodes[r];if("value"==n.nodeName){var o=n.textContent.split(",");if(4==o.length){var a=new e.StiDataParameter(t.System.Text.XMLConvert.decodeName(o[0]),t.System.Text.XMLConvert.decodeName(o[1]),o[2].toNumber(),o[3].toNumber());this.list.add(a)}else{var a=new e.StiDataParameter(t.System.Text.XMLConvert.decodeName(o[0]),t.System.Text.XMLConvert.decodeName(o[1]),o[2].toNumber(),o[3].toNumber(),o[4]);this.list.add(a)}}}},a.prototype.toList=function(){return this._list},a.prototype.onInsert=function(t,e){null==e.dataSource&&(e.dataSource=this.dataSource),null==e.dataParametersCollection&&(e.dataParametersCollection=this)},a.prototype.add=function(t){this.list.add(t)},a.prototype.addRange=function(t){for(var e=t.sti_is(a)?t.list:t,i=0,r=e;i<r.length;i++){var n=r[i];this.add(n)}},a.prototype.contains=function(t){if(t.sti_is(e.StiDataParameter))return this.list.contains(t);if("string"==typeof t)for(var i=0,r=this.list;i<r.length;i++){var n=r[i];if(n.name==t)return!0}return!1},a.prototype.indexOf=function(t){return this.list.indexOf(t)},a.prototype.insert=function(t,e){this.list.insert(t,e)},a.prototype.remove=function(t){this.list.remove(t)},a.prototype.getByIndex=function(t){return this.list[t]},a.prototype.setByIndex=function(t,e){this.list[t]=e},a.prototype.getByName=function(t){t=t.toLower();var e=this.cachedDataParameters.get(t);if(null!=e)return e;for(var i=0,r=this.list;i<r.length;i++){var n=r[i];if(n.name.toLower()==t)return this.cachedDataParameters.set(t,n),n}return null},a.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].name.toLower()==t)return void(this.list[i]=e)}this.add(e)},a}(i);e.StiDataParametersCollection=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.ICloneable,n=t.Base.StiJsonReportObjectHelper,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.Base.StiJson,s=function(){function t(t,e,i,r,n,o,a,s){void 0===t&&(t=String.empty),void 0===e&&(e=t),void 0===i&&(i=t),void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===s&&(s=null),this._inherited=!1,this.nameInSource=t,this.name=e,this.alias=i,this.parentSource=r,this.childSource=n,this.parentColumns=o,this.childColumns=a,this.key=s}return t.prototype.implements=function(){return[e.IStiName,e.IStiInherited,r,o]},t.prototype.saveToJsonObject=function(t){var e=new a;return e.addPropertyBool("Inherited",this.inherited),e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyJObject("ChildColumns",n.Serialize.stringArray(this.childColumns)),e.addPropertyJObject("ParentColumns",n.Serialize.stringArray(this.parentColumns)),e.addPropertyStringNullOfEmpty("NameInSource",this.nameInSource),e.addPropertyStringNullOfEmpty("Alias",this.alias),e.addPropertyBool("IsCloud",this.IsCloud),e.addPropertyStringNullOfEmpty("Key",this.key),null!=this.parentSource&&e.addPropertyStringNullOfEmpty("ParentSource",this.parentSource.name),null!=this.childSource&&e.addPropertyStringNullOfEmpty("ChildSource",this.childSource.name),e},t.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Inherited":this._inherited=r.value.toBoolean();break;case"Name":this._name=r.value;break;case"NameInSource":this._nameInSource=r.value;break;case"Alias":this._alias=r.value;break;case"IsCloud":break;case"Key":this._key=r.value;break;case"ParentSource":this.parentSource=this.dictionary.dataSources.getByName(r.value);break;case"ChildSource":this.childSource=this.dictionary.dataSources.getByName(r.value);break;case"ChildColumns":this._childColumns=n.Deserialize.stringArray(r.value);break;case"ParentColumns":this._parentColumns=n.Deserialize.stringArray(r.value);break}}},t.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"Inherited":this._inherited=i.textContent.toBoolean();break;case"Name":this._name=i.textContent;break;case"NameInSource":this._nameInSource=i.textContent;break;case"Alias":this._alias=i.textContent;break;case"Key":this._key=i.textContent;break;case"ParentSource":i.attributes.getNamedItem("isRef")&&(this.parentSource=this.dictionary.dataSources.getByXmlRef(i.attributes.getNamedItem("isRef").value));break;case"ChildSource":i.attributes.getNamedItem("isRef")&&(this.childSource=this.dictionary.dataSources.getByXmlRef(i.attributes.getNamedItem("isRef").value));break;case"ChildColumns":this._childColumns=this.parseStringArray(i);break;case"ParentColumns":this._parentColumns=this.parseStringArray(i);break}}},t.prototype.parseStringArray=function(t){for(var e=[],i=0,r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];"value"==n.nodeName&&(e[r]=n.textContent,i++)}return e},Object.defineProperty(t.prototype,"inherited",{get:function(){return this._inherited},set:function(t){this._inherited=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){null!=this.dictionary&&null!=this.dictionary.report&&this.dictionary.report.isDesigning&&StiOptions.Designer.autoCorrectDataRelationName&&(t=e.StiNameValidator.correctName(t)),this._name=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(t.prototype,"dictionary",{get:function(){return this._dictionary},set:function(t){this._dictionary=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentSource",{get:function(){return this._parentSource},set:function(t){this._parentSource=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childSource",{get:function(){return this._childSource},set:function(t){this._childSource=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentColumns",{get:function(){return this._parentColumns},set:function(t){this._parentColumns=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childColumns",{get:function(){return this._childColumns},set:function(t){this._childColumns=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relationName",{get:function(){return this._relationName},set:function(t){this._relationName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nameInSource",{get:function(){return this._nameInSource},set:function(t){this._nameInSource=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this._key},set:function(t){this._key=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(){if(StiOptions.Dictionary.showOnlyAliasForDataRelation)return this.alias;return this.alias==this.name?this._name:this.name+" ["+this.alias+"]"},t}();i.StiDataRelation=s;var l;!function(t){t[t.NameInSource=100]="NameInSource",t[t.Name=200]="Name",t[t.Alias=300]="Alias",t[t.ParentSource=400]="ParentSource",t[t.ChildSource=500]="ChildSource",t[t.ParentColumns=600]="ParentColumns",t[t.ChildColumns=700]="ChildColumns"}(l||(l={}))}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.setName=function(t,e,i,r){t.nameInSource=r,null!=t.parentSource&&(String.isNullOrEmpty(t.name)&&(t.name=t.parentSource.name),String.isNullOrEmpty(t.alias)&&(t.alias=t.parentSource.name))},t}();t.StiDataRelationSetName=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Collections.CollectionBase,n=t.System.Collections.Hashtable,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.Base.StiJson,s=t.System.ICloneable,l=function(t){function r(e){var i=t.call(this)||this;return i.cachedDataRelations=new n,i.dictionary=e,i}return __extends(r,t),r.prototype.implements=function(){return[s,o]},r.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new a,i=0,r=0,n=this.list;r<n.length;r++){var o=n[r];e.addPropertyJObject(i.toString(),o.saveToJsonObject(t)),i++}return e},r.prototype.loadFromJsonObject=function(t){for(var e=0,r=t.properties();e<r.length;e++){var n=r[e],o=new i.StiDataRelation;o.dictionary=this.dictionary,o.loadFromJsonObject(n.value),this.list.add(o)}},r.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];if(null==r.attributes)continue;if(null!=r.attributes.getNamedItem("type"))switch(r.attributes.getNamedItem("type").value){case"DataRelation":var n=new i.StiDataRelation;n.dictionary=this.dictionary,n.loadFromXml(r),this.list.add(n);break}}},r.prototype.clone=function(){for(var t=new r(this.dictionary),e=0,i=this.list;e<i.length;e++){var n=i[e];t.add(n.clone())}return t},r.prototype.toList=function(){return this._list},r.prototype.add=function(t){null!=this.dictionary&&(t.dictionary=this.dictionary),this.list.add(t)},r.prototype.addRange=function(t){for(var e=t.sti_is(r)?t.list:t,i=0,n=e;i<n.length;i++){var o=n[i];this.add(o)}},r.prototype.contains=function(t){if(t.sti_is(i.StiDataRelation))return this.list.contains(t.sti_as(i.StiDataRelation));if("string"==typeof t)for(var e=0,r=this.list;e<r.length;e++){var n=r[e];if(n.name==t)return!0}return!1},r.prototype.indexOf=function(t){return this.list.indexOf(t)},r.prototype.insert=function(t,e){this.list.insert(t,e)},r.prototype.remove=function(t){this.list.remove(t),this.cachedDataRelations.clear()},r.prototype.getByIndex=function(t){return this.list[t]},r.prototype.setByIndex=function(t,e){this.list[t]=e,this.cachedDataRelations.clear()},r.prototype.getByName=function(t){var i=this.cachedDataRelations.get(t);if(null!=i)return i;for(var r=0,n=this.items;r<n.length;r++){var o=n[r];if(o.nameInSource==t)return this.cachedDataRelations.set(t,o),o;if(e.StiNameValidator.correctName(o.nameInSource)==t)return this.cachedDataRelations.set(t,o),o}},r.prototype.setByName=function(t,e){for(var i=0;i<this.list.count;i++){if(this.list[i].name==t)return this.list[i]=e,void this.cachedDataRelations.clear()}this.add(e)},Object.defineProperty(r.prototype,"items",{get:function(){return this.list},enumerable:!0,configurable:!0}),r}(r);i.StiDataRelationsCollection=l}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Collections.Hashtable,n=t.System.Char,o=t.Report.Components.IStiDataSource,a=t.Report.Components.IStiDataRelation,s=t.Report.Components.IStiSort,l=function(){function t(){this._usedColumns=new r,this._usedRelations=new r,this._usedDataSources=new r}return t.prototype.dispose=function(){this._usedColumns.clear(),this._usedColumns=null,this._usedRelations.clear(),this._usedRelations=null,this._usedDataSources.clear(),this._usedDataSources=null},t.prototype.buildTokens=function(t){var e=new r,i=0,o=u.Find,a="";while(i<t.length){var s=t[i];if(o==u.Find){if((n.isLetter(s)||"_"==s)&&(o=u.Lexem,a+=s),'"'==s){var l=t.indexOf('"',i+1);if(-1!=l){var c=t.substr(i+1,l-i-1);e.set(c,c),i=l+1}}}else if(o==u.Lexem)if(n.isLetterOrDigit(s)||"_"==s||"."==s)o=u.Lexem,a+=s;else if(""!=a){while(i<t.length){if("."==t[i]||" "!=t[i])break;i++}if(i<t.length&&"."==t[i]){a+=".";while(i<t.length){if(" "!=t[i])break;i++}}else i--,e.set(a,a),a="",o=u.Find}i++}return o==u.Lexem&&e.set(a,a),e},Object.defineProperty(t.prototype,"usedColumns",{get:function(){return this._usedColumns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"usedRelations",{get:function(){return this._usedRelations},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"usedDataSources",{get:function(){return this._usedDataSources},enumerable:!0,configurable:!0}),t.prototype.retrieval=function(t){if(null!=t){var n=t.script,l=this.buildTokens(t.script);t.script=n;var u=new c,p=new r;u.build(p,t.dictionary);for(var h=0,g=p.keys;h<g.length;h++){var m=g[h];if(null!=l.get(m)){var d=p.get(m);d.sti_is(i.StiDataSource)&&null==this.usedDataSources.get(d)?this.usedDataSources.set(d,d):d.sti_is(i.StiDataColumn)&&null==this.usedColumns.get(d)?this.usedColumns.set(d,d):d.sti_is(i.StiDataRelation)&&null==this.usedRelations.get(d)&&this.usedRelations.set(d,d);var S=m.split(".");if(S.length>0)for(var f=0,y=S;f<y.length;f++){var b=y[f],C=p.get(b);null!=C&&(C.sti_is(i.StiDataSource)&&null==this.usedDataSources.get(C)?this.usedDataSources.set(C,C):C.sti_is(i.StiDataColumn)&&null==this.usedColumns.get(C)?this.usedColumns.set(C,C):C.sti_is(i.StiDataRelation)&&null==this.usedRelations.get(C)&&this.usedRelations.set(C,C))}}}for(var v=t.getComponents(),I=0,A=v.list;I<A.length;I++){var w=A[I],T=w.sti_as(o);null!=T&&null!=T.dataSource&&this.usedDataSources.set(T.dataSource,T.dataSource);var B=w.sti_as(a);null!=B&&null!=B.dataRelation&&this.usedRelations.set(B.dataRelation,B.dataRelation);var R=w.sti_as(s);if(null!=R&&null!=R.sort){var C=String.empty,P=w.sti_as(o);null!=P&&null!=P.DataSource&&(C=e.StiNameValidator.correctName(P.DataSource.Name)+".");var F=1;while(F<R.sort.length){var x=String.empty;while(F<R.sort.length&&"ASC"!=R.sort[F]&&"DESC"!=R.sort[F])0==x.length?x=R.sort[F]:x+="."+R.sort[F],F++;F++,x=e.StiNameValidator.correctName(x);var D=p.get(C+x);null!=D&&this.usedColumns.set(D,D)}}}for(var k=this.usedColumns.values,E=0,G=k;E<G.length;E++){var D=G[E];null!=D.dataSource&&(this.usedDataSources.contains(D.dataSource)||this.usedDataSources.set(D.dataSource,D.dataSource))}for(var _=this.usedRelations.values,L=0,N=_;L<N.length;L++){var B=N[L];this.usedDataSources.set(B.parentSource,B.parentSource),this.usedDataSources.set(B.childSource,B.childSource)}for(var O=this.usedDataSources.values,Z=0,M=O;Z<M.length;Z++){for(var T=M[Z],H=T.getParentRelations(),W=0,V=H.list;W<V.length;W++){var Y=V[W];null!=this.usedDataSources.get(Y.parentSource)&&this.usedRelations.set(Y,Y)}H=T.getChildRelations();for(var j=0,X=H.list;j<X.length;j++){var Y=X[j];null!=this.usedDataSources.get(Y.childSource)&&this.usedRelations.set(Y,Y)}}_=this.usedRelations.values;for(var J=0,K=_;J<K.length;J++){var B=K[J];if(null!=B.parentSource)for(var U=0,z=B.parentColumns;U<z.length;U++){var x=z[U],D=B.parentSource.columns.getByName(x);null!=D&&this.usedColumns.set(D,D)}if(null!=B.childSource)for(var Q=0,q=B.childColumns;Q<q.length;Q++){var x=q[Q],D=B.childSource.columns.getByName(x);null!=D&&this.usedColumns.set(D,D)}}}},t}();i.StiDataRetrieval=l;var u;!function(t){t[t.Lexem=0]="Lexem",t[t.Find=1]="Find"}(u||(u={}));var c=function(){function t(){}return t.prototype.buildColumns=function(t,i,r){for(var n=0,o=i.list;n<o.length;n++){var a=o[n],s=r+"."+e.StiNameValidator.correctName(a.name);t.set(s,a)}},t.prototype.buildRelations=function(t,i,r,n){if(i.count>0)for(var o=0,a=i.list;o<a.length;o++){var s=a[o],l=n+"."+e.StiNameValidator.correctName(s.name);t.set(l,s),this.buildData(t,s.parentSource,r,l,!0),s.name!=s.nameInSource&&(l=n+"."+e.StiNameValidator.correctName(s.nameInSource),t.set(l,s),t.set(e.StiNameValidator.correctName(s.nameInSource),s),this.buildData(t,s.parentSource,r,l,!0))}},t.prototype.buildData=function(t,i,r,n,o){var a=String.empty;n!=String.empty?a=n+"."+e.StiNameValidator.correctName(i.name):n==String.empty&&(a=e.StiNameValidator.correctName(i.name)),this.level++,r.list.contains(i)||(r.list.add(i),o?this.buildRelations(t,i.getParentRelations(),r,n):this.buildRelations(t,i.getParentRelations(),r,a),r.list.remove(i)),o?this.buildColumns(t,i.columns,n):this.buildColumns(t,i.columns,a),this.level--},t.prototype.build=function(t,r){for(var n=r.dataSources,o=new i.StiDataSourcesCollection(null),a=0,s=n.list;a<s.length;a++){var l=s[a],u=e.StiNameValidator.correctName(l.name);t.set(u,l),this.buildData(t,l,o,"",!1)}},t}()}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e){this.dataSource=t,this._row=e}return t.prototype.createDataRow=function(e){return new t(null!=e?e.dataSource:null,null!=e?e.row:null)},Object.defineProperty(t.prototype,"row",{get:function(){return this._row},set:function(t){this._row=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.dataSource.dictionary},enumerable:!0,configurable:!0}),t.prototype.getByColumnName=function(t){if(null==this._row)return null;return this._row.getValueByIndex(this.dataSource.getColumnIndex(t))},t.prototype.getParentData=function(e){if(null==this.row)return null;var i=this.row.getParentRows(e);if(null==i||0==i.length)return null;return new t(this.dataSource.getParentDataSource(e),i[0])},t}();t.StiDataRow=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiParser.StiParser,r=t.System.Collections.Hashtable,n=t.Report.Components.StiText,o=t.System.Data.DBNull,a=t.Report.Components.StiGroupSortDirection,s=function(){function t(t,e,i,o){if(this.rowToConditions=null,this.dataSource=null,this.textComp=null,this.dataSource=o,this.sortColumns=i,this.conditions=e,this.rowToConditions=t,null!=this.sortColumns){var a=0,s=0;while(a<this.sortColumns.length)"ASC"==this.sortColumns[a]&&s++,"DESC"==this.sortColumns[a]&&s++,a++;this.hashValues=[];for(var l=0;l<s;l++)this.hashValues[l]=new r}if(null!=this.dataSource.dictionary){var u=this.dataSource.dictionary.report;null!=u&&(this.textComp=new n,this.textComp.name="**StiDataSort**",this.textComp.page=u.pages.getByIndex(0))}}return t.prototype.compare=function(t,e){return this.compareRows(t,e)},t.prototype.compareRows=function(t,e){if(t==e)return 0;var r=t,n=e;if(null!=this.rowToConditions&&null!=this.conditions)for(var o=this.rowToConditions.get(r.recordIndex),s=this.rowToConditions.get(n.recordIndex),l=this.conditions.getStiLength(1),u=0;u<l;u++){var c=this.conditions[o][u][0],p=this.conditions[s][u][0],h=this.conditions[o][u][1],g=this.compareValues(c,p,h==a.Ascending);if(0==g)continue;return g}if(null==this.sortColumns||0==this.sortColumns.length)return 0;var m=0,d=0;while(d<this.sortColumns.length){var S="ASC"==this.sortColumns[d++],f=d;while(d<this.sortColumns.length&&"ASC"!=this.sortColumns[d]&&"DESC"!=this.sortColumns[d])d++;var c=this.hashValues[m].get(t),p=this.hashValues[m].get(e);if(null==c||null==p){var y=this.dataSource,b=t,C=e,v=this.sortColumns[f];if(v.startsWith("{")&&v.endsWith("}")){var I=this.rowToConditions.get(b.recordIndex),A=this.rowToConditions.get(C.recordIndex),w=y.position;y.position=I,c=i.parseTextValue(v,this.textComp),y.position=A,p=i.parseTextValue(v,this.textComp),y.position=w}else{if(d-f>1){var T=f;while(T<d-1){if(null==(y=y.getParentDataSource(this.sortColumns[T])))return null;if(null==c){var B=null!=b?b.getParentRows(this.sortColumns[T]):null;b=null!=B&&B.length>0?B[0]:null}if(null==p){var B=null!=C?C.getParentRows(this.sortColumns[T]):null;C=null!=B&&B.length>0?B[0]:null}T++}}var R=y.getColumnIndex(this.sortColumns[d-1]);null==c&&-1!=R&&(c=null!=b?b.gett(R):null,null==this.hashValues[m].get(t)&&this.hashValues[m].set(t,c)),null==p&&-1!=R&&(p=null!=C?C.gett(R):null,null==this.hashValues[m].get(e)&&this.hashValues[m].set(e,p))}}m++;var P=this.compareValues(c,p,S);if(0==P)continue;return P}return 0},t.prototype.compareValues=function(t,e,i){null==i&&(i=!0);var r=1;if(i||(r=-1),t==o.value&&e==o.value)return 0;if(t==o.value)return-1*r;if(e==o.value)return 1*r;var n=t,a=e;if(void 0===n.compareTo&&(n=null),void 0===a.compareTo&&(a=null),null==n&&null==a)return 0;if(null==n)return-1*r;if(null==a)return 1*r;if(n!=a){var s=n.compareTo(a);if(i||(s=-s),0!=s)return s}return 0},t.prototype.clear=function(){this.sortColumns=null,null!=this.rowToConditions&&(this.rowToConditions.clear(),this.rowToConditions=null),this.conditions=null,this.hashValues=null,this.dataSource=null,this.textComp=null},t.nullObject=new Object,t}();e.StiDataSort=s}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Services.StiService,r=t.Base.Localization.StiLocalization,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"serviceCategory",{get:function(){return r.get("Services","categoryDictionary")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serviceType",{get:function(){return e.getStiType()},enumerable:!0,configurable:!0}),e.prototype.setName=function(t,e,i,r){t.nameInSource=i.dataSetName+"."+r,t.name=r,t.alias=r},e}(i);e.StiDataTableSetNameService=n}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){this._tables=[],this._views=[],this._storedProcedures=[]}return Object.defineProperty(t.prototype,"tables",{get:function(){return this._tables},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"views",{get:function(){return this._views},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storedProcedures",{get:function(){return this._storedProcedures},enumerable:!0,configurable:!0}),t}();t.StiDatabaseInformation=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.StiJsonReportObjectHelper,n=t.System.Enum,o=t.Base.StiJson,a=t.Base.Localization.StiLocalization,s=t.Base.StiTypeFinder,l=t.Base.Drawing.StiImageConverter,u=function(){function a(){this._dateTimeType=i.StiDateTimeType.Date,this._itemsInitializationType=i.StiItemsInitializationType.Items,this._keysColumn=String.empty,this._valuesColumn=String.empty,this._bindingVariable=null,this._bindingValuesColumn=String.empty,this._mask=String.empty,this._allowUserValues=!0,this._bindingValue=!1,this._keys=[],this._values=[],this._valuesBinding=[]}return a.prototype.saveToJsonObject=function(){var t=new o;return t.addPropertyEnum("DateTimeType",i.StiDateTimeType,this.dateTimeType,i.StiDateTimeType.Date),t.addPropertyEnum("ItemsInitializationType",i.StiItemsInitializationType,this.itemsInitializationType,i.StiItemsInitializationType.Items),t.addPropertyStringNullOfEmpty("KeysColumn",this.keysColumn),t.addPropertyStringNullOfEmpty("ValuesColumn",this.valuesColumn),t.addPropertyStringNullOfEmpty("BindingValuesColumn",this.bindingValuesColumn),t.addPropertyStringNullOfEmpty("Mask",this.mask),t.addPropertyBool("AllowUserValues",this.allowUserValues,!0),t.addPropertyBool("BindingValue",this.bindingValue),t.addPropertyJObject("Keys",r.Serialize.stringArray(this.keys)),t.addPropertyJObject("Values",r.Serialize.stringArray(this.values)),null!=this.bindingVariable&&t.addPropertyStringNullOfEmpty("BindingVariable",this.bindingVariable.name),t},a.prototype.loadFromJsonObject=function(t,e){for(var o=0,a=t.properties();o<a.length;o++){var s=a[o];switch(s.name){case"DateTimeType":this._dateTimeType=n.parse(i.StiDateTimeType,s.value);break;case"ItemsInitializationType":this._itemsInitializationType=n.parse(i.StiItemsInitializationType,s.value);break;case"KeysColumn":this._keysColumn=s.value;break;case"ValuesColumn":this._valuesColumn=s.value;break;case"BindingValuesColumn":this._bindingValuesColumn=s.value;break;case"Mask":this._mask=s.value;break;case"AllowUserValues":this._allowUserValues=s.value.toBoolean();break;case"BindingValue":this._bindingValue=s.value.toBoolean();break;case"Keys":this._keys=r.Deserialize.stringArray(s.value);break;case"Values":this._values=r.Deserialize.stringArray(s.value);break;case"BindingVariable":this.jsonLoadedBindingVariableName=s.value,e.jsonLoaderHelper.dialogInfo.add(this);break}}},Object.defineProperty(a.prototype,"dateTimeType",{get:function(){return this._dateTimeType},set:function(t){this._dateTimeType=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"itemsInitializationType",{get:function(){return this._itemsInitializationType},set:function(t){this._itemsInitializationType=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"keysColumn",{get:function(){return this._keysColumn},set:function(t){this._keysColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valuesColumn",{get:function(){return this._valuesColumn},set:function(t){this._valuesColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bindingVariable",{get:function(){return this._bindingVariable},set:function(t){this._bindingVariable=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bindingValuesColumn",{get:function(){return this._bindingValuesColumn},set:function(t){this._bindingValuesColumn=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"mask",{get:function(){return this._mask},set:function(t){this._mask=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"allowUserValues",{get:function(){return this._allowUserValues},set:function(t){this._allowUserValues=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bindingValue",{get:function(){return this._bindingValue},set:function(t){this._bindingValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"keys",{get:function(){return this._keys},set:function(t){this._keys=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"values",{get:function(){return this._values},set:function(t){this._values=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valuesBinding",{get:function(){return this._valuesBinding},set:function(t){this._valuesBinding=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isDefault",{get:function(){return this.allowUserValues&&this.dateTimeType==i.StiDateTimeType.Date&&null==this.bindingVariable&&(null==this.keys||0==this.keys.length)&&(null==this.values||0==this.values.length)&&String.isNullOrEmpty(this.mask)&&String.isNullOrEmpty(this.keysColumn)&&String.isNullOrEmpty(this.valuesColumn)&&String.isNullOrEmpty(this.bindingValuesColumn)},enumerable:!0,configurable:!0}),a.convert=function(t){return t.toString()},a.prototype.getDialogInfoItems=function(i){try{var r=t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator,n=[];if(null==this.keys)return n;for(var o=0,a=0,u=this.keys;a<u.length;a++){var c=u[a],p=null,k=null,E=null;try{if(c.startsWith("{")&&c.endsWith("}"))if(s.findType(i,e.Range)){if(c.contains("<<|>>")){var G=c.substr(1,c.length-2),_=G.split("<<|>>");2==_.length?(k=_[0],E=_[0]):k=c.substr(1,c.length-2)}else k=c.substr(1,c.length-2);p=new D}else k=c.substr(1,c.length-2),p=new I;else if(i==t.System.SByte||i==t.System.Byte||i==t.System.Int16||i==t.System.UInt16||i==t.System.Int32||i==t.System.UInt32||i==t.System.Int64||i==t.System.UInt64||i==t.System.NullableSByte||i==t.System.NullableByte||i==t.System.NullableInt16||i==t.System.NullableUInt16||i==t.System.NullableInt32||i==t.System.NullableUInt32||i==t.System.NullableInt64||i==t.System.NullableUInt64||i==t.System.StimulsoftByteList||i==t.System.StimulsoftShortList||i==t.System.StimulsoftIntList||i==t.System.StimulsoftLongList)k=parseInt(c),p=new v;else if(i==String||i==t.System.StimulsoftStringList)k=c,p=new h;else if(i==t.System.Double||i==t.System.Single||i==t.System.NullableDouble||i==t.System.NullableSingle||i==t.System.StimulsoftDoubleList||i==t.System.StimulsoftFloatList)k=parseFloat(c.replaceAll(".",",").replaceAll(",",r)),p=new b;else if(i==t.System.Decimal||i==t.System.NullableDecimal||i==t.System.StimulsoftDecimalList)k=parseFloat(c.replaceAll(".",",").replaceAll(",",r)),p=new C;else if(i==t.System.DateTime||i==t.System.NullableDateTime||i==t.System.StimulsoftDateTimeList)k=new t.System.DateTime(Date.parse(c)),p=new f;else if(i==t.System.TimeSpan||i==t.System.NullableTimeSpan||i==t.System.StimulsoftTimeSpanList)k=t.System.TimeSpan.fromString(c),p=new y;else if(i==Boolean||i==t.System.NullableBoolean||i==t.System.StimulsoftBoolList)k="true"==c.toLower(),p=new d;else if(i==t.System.Char||i==t.System.NullableChar||i==t.System.StimulsoftCharList)k=c==String.empty?" ":c.toString(),p=new m;else if(i==t.System.Guid||i==t.System.NullableGuid||i==t.System.StimulsoftGuidList)k=new t.System.Guid(c),p=new g;else if(i==t.System.Drawing.Image)k=l.stringToImage(c),p=new S;else if(i==t.System.StimulsoftByteRange||i==t.System.StimulsoftShortRange||i==t.System.StimulsoftIntRange||i==t.System.StimulsoftLongRange){var L=e.RangeConverter.stringToRange(c);p=new x,k=L.fromObject,E=L.toObject}else if(i==t.System.StimulsoftStringRange){var L=e.RangeConverter.stringToRange(c);p=new A,k=L.fromObject.toString(),E=L.toObject.toString()}else if(i==t.System.StimulsoftDoubleRange||i==t.System.StimulsoftFloatRange){var L=e.RangeConverter.stringToRange(c);p=new P,k=L.fromObject,E=L.toObject}else if(i==t.System.StimulsoftDecimalRange){var L=e.RangeConverter.stringToRange(c);p=new F,k=L.fromObject,E=L.toObject}else if(i==t.System.StimulsoftDateTimeRange){var L=e.RangeConverter.stringToRange(c);p=new B,k=L.fromObject,E=L.toObject}else if(i==t.System.StimulsoftTimeSpanRange){var L=e.RangeConverter.stringToRange(c);p=new R,k=L.fromObject,E=L.toObject}else if(i==t.System.StimulsoftCharRange){var L=e.RangeConverter.stringToRange(c);p=new T,k=L.fromObject,E=L.toObject}else if(i==t.System.StimulsoftGuidRange){var L=e.RangeConverter.stringToRange(c);p=new w,k=L.fromObject,E=L.toObject}p.keyObject=k,p.keyObjectTo=E}catch(e){t.System.StiError.showError(e,!1)}p.value=this.values.length>o&&!String.isNullOrEmpty(this.values[o])?this.values[o]:String.empty,p.valueBinding=this.valuesBinding.length>o?this.valuesBinding[o]:null,n.add(p),o++}return n}finally{}},a.prototype.setDialogInfoItems=function(e,i){if(null==e||0==e.count)return this.keys=null,void(this.values=null);try{this.keys=new Array(e.count),this.values=new Array(e.count),this.valuesBinding=new Array(e.count);for(var r=0,n=0,o=e;n<o.length;n++){var a=o[n],s=null;try{a.sti_is(I)?s=String.stiFormat("{{{0}}}",a.keyObject):a.sti_is(D)?s=String.stiFormat("{{{0}<<|>>{1}}}",a.keyObject,a.keyObjectTo):a.sti_is(v)||a.sti_is(b)||a.sti_is(C)||a.sti_is(f)||a.sti_is(y)||a.sti_is(d)||a.sti_is(m)||a.sti_is(g)||a.sti_is(h)?s=a.keyObject.toString():a.sti_is(S)?s=l.imageToString(a.keyObject):a.sti_is(x)||a.sti_is(P)||a.sti_is(F)||a.sti_is(B)||a.sti_is(R)||a.sti_is(T)||a.sti_is(w)||a.sti_is(A)}catch(e){t.System.StiError.showError(e,!1)}this.keys[r]=null==s?String.empty:s.toString(),this.values[r]=a.value,this.valuesBinding[r]=a.valueBinding,r++}}finally{}},a}();i.StiDialogInfo=u;var c=function(){function t(){this._keyObject=null,this._keyObjectTo=null,this._valueBinding=null,this._value=String.empty}return Object.defineProperty(t.prototype,"componentId",{get:function(){return e.StiComponentId.StiDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyObject",{get:function(){return this._keyObject},set:function(t){this._keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyObjectTo",{get:function(){return this._keyObjectTo},set:function(t){this._keyObjectTo=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueBinding",{get:function(){return this._valueBinding},set:function(t){this._valueBinding=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(t){if(this.sti_is(A)||this.sti_is(w)||this.sti_is(T)||this.sti_is(R)||this.sti_is(P)||this.sti_is(F)||this.sti_is(x)||this.sti_is(D)){var e=null==this.keyObject?a.get("Report","NotAssigned"):this.keyObject.toString(),r=null==this.keyObjectTo?a.get("Report","NotAssigned"):this.keyObjectTo.toString(),n=String.isNullOrEmpty(e)&&String.isNullOrEmpty(r)?String.empty:String.stiFormat("{0}-{1}",e,r);return this.sti_is(D)?String.stiFormat("{{{0}}}",String.isNullOrEmpty(this.value)?n:this.value):String.isNullOrEmpty(this.value)?n:this.value}if(this.sti_is(B)){var o=this.sti_as(B),e=null,r=null;t==i.StiDateTimeType.DateAndTime?(e=o.from.toString(),r=o.to.toString()):t==i.StiDateTimeType.Date?(e=o.from.toString(),r=o.to.toString()):t==i.StiDateTimeType.Time&&(e=o.from.toString(),r=o.to.toString());var n=String.stiFormat("{0}-{1}",e,r);return String.isNullOrEmpty(this.value)?n:this.value}if(this.sti_is(S)){return null==this.sti_as(S).key?a.get("Report","NotAssigned"):a.get("Components","StiImage")}if(this.sti_is(f)){var s=this.sti_as(f),l=null;return t==i.StiDateTimeType.DateAndTime?l=s.key.toString():t==i.StiDateTimeType.Date?l=s.key.toString():t==i.StiDateTimeType.Time&&(l=s.key.toString()),String.isNullOrEmpty(this.value)?l:this.value}var l=null==this.keyObject?a.get("Report","NotAssigned"):this.keyObject.toString();return this.sti_is(I)?String.stiFormat("{{{0}}}",String.isNullOrEmpty(this.value)?l:this.value):String.isNullOrEmpty(this.value)?l:this.value},t}();i.StiDialogInfoItem=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(c);i.StiRangeDialogInfoItem=p;var h=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiStringDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiStringDialogInfoItem=h;var g=function(i){function r(){var e=i.call(this)||this;return e.keyObject=t.System.Guid.newGuid(),e}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return e.StiComponentId.StiGuidDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),r}(c);i.StiGuidDialogInfoItem=g;var m=function(t){function i(){var e=t.call(this)||this;return e.keyObject=" ",e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCharDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiCharDialogInfoItem=m;var d=function(t){function i(){var e=t.call(this)||this;return e.keyObject=!1,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiBoolDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiBoolDialogInfoItem=d;var S=function(t){function i(){var e=t.call(this)||this;return e.keyObject=null,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiImageDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiImageDialogInfoItem=S;var f=function(i){function r(){var e=i.call(this)||this;return e.keyObject=t.System.DateTime.now,e}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return e.StiComponentId.StiDateTimeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),r}(c);i.StiDateTimeDialogInfoItem=f;var y=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiTimeSpanDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiTimeSpanDialogInfoItem=y;var b=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiDoubleDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiDoubleDialogInfoItem=b;var C=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiDecimalDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiDecimalDialogInfoItem=C;var v=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiLongDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiLongDialogInfoItem=v;var I=function(t){function i(){var e=t.call(this)||this;return e.keyObject=String.empty,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiExpressionDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"key",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),i}(c);i.StiExpressionDialogInfoItem=I;var A=function(t){function i(){var e=t.call(this)||this;return e.keyObject=String.empty,e.keyObjectTo=String.empty,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiStringRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),i}(p);i.StiStringRangeDialogInfoItem=A;var w=function(i){function r(){var e=i.call(this)||this;return e.keyObject=t.System.Guid.newGuid(),e.keyObjectTo=t.System.Guid.newGuid(),e}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return e.StiComponentId.StiGuidRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),r}(p);i.StiGuidRangeDialogInfoItem=w;var T=function(t){function i(){var e=t.call(this)||this;return e.keyObject="A",e.keyObjectTo="Z",e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCharRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),i}(p);i.StiCharRangeDialogInfoItem=T;var B=function(i){function r(){var e=i.call(this)||this;return e.keyObject=t.System.DateTime.now,e.keyObjectTo=t.System.DateTime.now,e}return __extends(r,i),Object.defineProperty(r.prototype,"componentId",{get:function(){return e.StiComponentId.StiDateTimeRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),r}(p);i.StiDateTimeRangeDialogInfoItem=B;var R=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e.keyObjectTo=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiTimeSpanRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),i}(p);i.StiTimeSpanRangeDialogInfoItem=R;var P=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e.keyObjectTo=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiDoubleRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),i}(p);i.StiDoubleRangeDialogInfoItem=P;var F=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e.keyObjectTo=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiDecimalRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),i}(p);i.StiDecimalRangeDialogInfoItem=F;var x=function(t){function i(){var e=t.call(this)||this;return e.keyObject=0,e.keyObjectTo=0,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiLongRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),i}(p);i.StiLongRangeDialogInfoItem=x;var D=function(t){function i(){var e=t.call(this)||this;return e.keyObject=String.empty,e.keyObjectTo=String.empty,e}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiExpressionRangeDialogInfoItem},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"from",{get:function(){return this.keyObject},set:function(t){this.keyObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"to",{get:function(){return this.keyObjectTo},set:function(t){this.keyObjectTo=t},enumerable:!0,configurable:!0}),i}(p);i.StiExpressionRangeDialogInfoItem=D}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.DateTime,n=t.System.TimeSpan,o=t.Report.Dictionary.StiDatabaseCollection,a=t.Report.Dictionary.StiBusinessObjectsCollection,s=t.System.Collections.Hashtable,l=t.System.Data.DataSet,u=t.Base.JsonReportObject.IStiJsonReportObject,c=t.Base.StiJson,p=t.System.ICloneable,h=t.System.Data.DataRelation,g=t.System.Data.IDbConnection,m=t.System.Promise,d=function(){function d(t){void 0===t&&(t=null),this._cachedUserNamesAndPasswords=null,this._useInternalData=!1,this._restrictions=new i.StiRestrictions,this._dataStore=new i.StiDataCollection,this._variables=new i.StiVariablesCollection,this._resources=new i.StiResourcesCollection,this._report=t,this._dataSources=new i.StiDataSourcesCollection(this),this._relations=new i.StiDataRelationsCollection(this),this._databases=new o(this),this._businessObjects=new a(this,null)}return d.prototype.implements=function(){return[p,u]},d.prototype.saveToJsonObject=function(t){var e=new c;if(e.addPropertyJObject("Resources",this.resources.saveToJsonObjectEx(t)),e.addPropertyJObject("Variables",this.variables.saveToJsonObjectEx(t)),e.addPropertyJObject("DataSources",this.dataSources.saveToJsonObject(t)),e.addPropertyJObject("Databases",this.databases.saveToJsonObject(t)),e.addPropertyJObject("BusinessObjects",this.businessObjects.saveToJsonObject(t)),e.addPropertyJObject("Relations",this.relations.saveToJsonObject(t)),0==e.count)return null;return e},d.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"Resources":this._resources.loadFromJsonObjectEx(r.value,this.report);break;case"Variables":this._variables.loadFromJsonObjectEx(r.value,this.report);break;case"DataSources":this._dataSources.loadFromJsonObject(r.value);break;case"Databases":this._databases.loadFromJsonObject(r.value);break;case"BusinessObjects":this._businessObjects.loadFromJsonObject(r.value);break;case"Relations":this._relations.loadFromJsonObject(r.value);break}}},d.prototype.loadFromXml=function(t){for(var e=0;e<t.childNodes.length;e++){var i=t.childNodes[e];switch(i.nodeName){case"BusinessObjects":this._businessObjects.loadFromXml(i);break;case"DataSources":this._dataSources.loadFromXml(i);break;case"Databases":this._databases.loadFromXml(i);break;case"Relations":this._relations.loadFromXml(i);break;case"Variables":this._variables.loadFromXml(i,this.report);break;case"Resources":this._resources.loadFromXml(i);break}}},d.prototype.clone=function(){return new d},Object.defineProperty(d.prototype,"cachedUserNamesAndPasswords",{get:function(){return this._cachedUserNamesAndPasswords},set:function(t){this._cachedUserNamesAndPasswords=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"useInternalData",{get:function(){return this._useInternalData},set:function(t){this._useInternalData=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"restrictions",{get:function(){return this._restrictions},set:function(t){this._restrictions=t},enumerable:!0,configurable:!0}),Object.defineProperty(d,"autoSynchronize",{get:function(){return StiOptions.Dictionary.autoSynchronize},set:function(t){StiOptions.Dictionary.autoSynchronize=t},enumerable:!0,configurable:!0}),d.doAutoSynchronize=function(t){if(null==t)return;(d.autoSynchronize==i.StiAutoSynchronizeMode.Always||d.autoSynchronize==i.StiAutoSynchronizeMode.IfDictionaryEmpty&&0==t.dictionary.dataSources.count)&&t.dictionary.synchronize()},Object.defineProperty(d.prototype,"cacheDataSet",{get:function(){return this._cacheDataSet},set:function(t){this._cacheDataSet=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"report",{get:function(){return this._report},set:function(t){this._report=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dataStore",{get:function(){return this._dataStore},set:function(t){this._dataStore=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"variables",{get:function(){return this._variables},set:function(t){this._variables=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"resources",{get:function(){return this._resources},set:function(t){this._resources=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dataSources",{get:function(){return this._dataSources},set:function(t){this._dataSources=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"databases",{get:function(){return this._databases},set:function(t){this._databases=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"businessObjects",{get:function(){return this._businessObjects},set:function(t){this._businessObjects=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"relations",{get:function(){return this._relations},set:function(t){this._relations=t},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"isRequestFromUserVariablesPresent",{get:function(){if(null==this.variables)return!1;for(var t=0,e=this.variables.list;t<e.length;t++){if(e[t].requestFromUser)return!0}return!1},enumerable:!0,configurable:!0}),d.prototype.equalsColumns=function(t,e){for(var i=0,r=t;i<r.length;i++){for(var n=r[i],o=!1,a=0,s=e;a<s.length;a++){var l=s[a];if(l.columnName==n.columnName&&l.table==n.table){o=!0;break}}if(!o)return!1}return!0},d.prototype.createDatabases=function(t){this.dataStore.clearReportDatabase();for(var e=0,i=this.databases.list;e<i.length;e++){i[e].regData(this,t)}},d.prototype.createDatabasesAsync=function(t){var e=new m,i=this;return setTimeout(function(){i.dataStore.clearReportDatabase();for(var r=i.databases.count,n=0,o=i.databases.list;n<o.length;n++){o[n].regDataAsync(i,t).try(function(){0==--r&&e.callTry()}).abort(e)}0==i.databases.count&&e.callTry()}),e},d.prototype.removeUnusedData=function(){var t=new i.StiDataRetrieval;t.retrieval(this.report);var e=0;while(e<this.relations.count)null==t.usedRelations.get(this.relations.getByIndex(e))?this.relations.remove(this.relations.getByIndex(e)):e++;for(var r=0,n=this.dataSources.list;r<n.length;r++){var o=n[r];e=0;while(e<o.columns.count)null==t.usedColumns.get(o.columns.getByIndex(e))?o.columns.remove(o.columns.getByIndex(e)):e++}e=0;while(e<this.dataSources.count)null==t.usedDataSources.get(this.dataSources.getByIndex(e))?this.dataSources.remove(this.dataSources.getByIndex(e)):e++;t.dispose()},d.prototype.removeUnusedDataSourcesV2=function(){var t=i.StiDataSourceHelper.getUsedDataSourcesNames(this.report),e=0;while(e<this.dataSources.count)t.containsKey(this.dataSources.getByIndex(e).name)?e++:this.dataSources.remove(this.dataSources.getByIndex(e))},d.prototype.retrievalData=function(t,e,r){var n=t.ref,o=e.ref,a=r.ref,s=new i.StiDataRetrieval;s.retrieval(this.report),n=s.usedRelations,o=s.usedDataSources,a=s.usedColumns,t.ref=n,e.ref=o,r.ref=a},d.prototype.getUnusedRelationsFromDataStore=function(){for(var t=new i.StiDataRelationsCollection(this),e=this.dataSources.list.where(function(t){return null!=t.sti_is(i.StiDataTableSource)}).where(function(t){return null!=t.dataTable}),r=0,n=e;r<n.length;r++)for(var o=n[r],a=0,s=o.dataTable.parentRelations.list;a<s.length;a++)for(var l=s[a],u=0,c=e;u<c.length;u++){var p=c[u];if(p.dataTable!=l.parentTable)continue;for(var h=0,g=0,m=this.relations.list;g<m.length;g++){var d=m[g];if(i.StiStrFix.Del_(d.nameInSource)==i.StiStrFix.Del_(l.relationName))break;h++}if(h==this.relations.count){var S=new i.StiDataRelation(l.relationName,"","",p,o,l.parentColumns.map(function(t){return t.columnName}),l.childColumns.map(function(t){return t.columnName}));i.StiDataRelationSetName.setName(S,this.report,l.dataSet,l.relationName),t.add(S);break}}return t},d.prototype.synchronize2=function(t){for(var e=0,i=t.list;e<i.length;e++){var r=i[e],n=r.getBusinessObjectData();null!=n&&this.synchronizeColumns2(n,r),this.synchronize2(r.businessObjects)}},d.prototype.synchronize=function(){for(var t=0,r=this.dataSources.list;t<r.length;t++){var n=r[t];n.columns.cachedDataColumns.clear()}this.dataSources.cachedDataSources.clear();for(var o=0;o<this.dataStore.count;o++){var a=this.dataStore.list[o].sti_as(i.StiData);if(!a.viewData.sti_is(g)){for(var s=null,l=0,u=this.dataSources.list;l<u.length;l++){var n=u[l];if(n.sti_is(i.StiDataStoreSource)&&!n.sti_is(i.StiSqlSource)&&n.nameInSource.toLower()==a.name.toLower()){s=n;break}}if(null==s){var c=i.StiDataAdapterService.getDataAdapter2(a);if(null!=c){var n=c.create(this,!1);n.columns.addRange(c.getColumnsFromData(a,n)),c.setDataSourceNames(a,n),n.name=e.StiNameCreation.createName(this.report,n.name,!1,!1,!0),this.dataSources.add(n),this.synchronizeColumns(a,n)}}else this.synchronizeColumns(a,s)}}this.connect(!1);for(var p=this.getUnusedRelationsFromDataStore(),h=function(t){if(m.relations.list.firstOrDefault(function(e){return i.StiStrFix.Del_(t.nameInSource)==i.StiStrFix.Del_(e.nameInSource)}))return"continue";t.name=m.getRelationName(t),m.relations.add(t)},m=this,d=0,S=p.list;d<S.length;d++){h(S[d])}this.connect(!1)},d.prototype.synchronizeBusinessObjects=function(){for(var t=0,e=this.report.businessObjectsStore;t<e.length;t++){for(var r=e[t],n=!1,o=0,a=this.businessObjects.list;o<a.length;o++){var s=a[o];if(s.name==r.name){n=!0,s.alias=r.alias,s.category=r.category,this.synchronizeColumns3(r,s),this.synchronize2(s.businessObjects);break}}if(!n){var l=new i.StiBusinessObject(r.category,r.name,r.alias,null);this.businessObjects.add(l),this.synchronizeColumns3(r,l)}}},d.prototype.synchronizeColumns=function(r,n){var o=null;if(null!=(o=i.StiDataAdapterService.getDataAdapter2(r))){var a=void 0;a=o.getColumnsFromData(r,n,"");for(var l=0,u=n.columns.list;l<u.length;l++){for(var c=u[l],p=!1,h=0,g=a.list;h<g.length;h++){var m=g[h];c.nameInSource==m.nameInSource&&(m.name=c.name,StiOptions.Designer.autoCorrectDataColumnName&&(m.name=e.StiNameValidator.correctName(m.name)),m.alias=c.alias,m.nameInSource=c.nameInSource,c.type!=t.System.DateTime&&c.type!=t.System.NullableDateTime||!StiOptions.Dictionary.useNullableDateTime?c.type!=t.System.TimeSpan&&c.type!=t.System.NullableTimeSpan||!StiOptions.Dictionary.useNullableTimeSpan||(m.type=t.System.NullableTimeSpan):m.type=t.System.NullableDateTime,p=!0)}(!p&&StiOptions.Dictionary.columnsSynchronizationMode==i.StiColumnsSynchronizationMode.KeepAbsentColumns||c.sti_is(i.StiCalcDataColumn))&&a.add(c)}for(var d=new s,S=a.count-1;S>=0;S--){var m=a.getByIndex(S),f=1,y=null;while(!0){if(y=1!=f?String.stiFormat("{0}{1}",m.name,f):m.name,null==d.get(y)){d.set(y,y);break}f++}m.name=y}for(var b=new i.StiDataColumnsCollection,C=0,v=n.columns.list;C<v.length;C++)for(var I=v[C],A=0,w=a.list;A<w.length;A++){var m=w[A];if(I.nameInSource==m.nameInSource){b.add(m),a.remove(m);break}}b.addRange(a),n.columns.clear(),n.columns.addRange(b)}},d.prototype.synchronizeColumnsAsync=function(r,n){var o=new m,a=null;if(null!=(a=i.StiDataAdapterService.getDataAdapter2(r))){var l=void 0;a.getColumnsFromDataAsync(r,n,"").try(function(r){for(var a=0,l=n.columns.list;a<l.length;a++){for(var u=l[a],c=!1,p=0,h=r.list;p<h.length;p++){var g=h[p];u.nameInSource==g.nameInSource&&(g.name=u.name,StiOptions.Designer.autoCorrectDataColumnName&&(g.name=e.StiNameValidator.correctName(g.name)),g.alias=u.alias,g.nameInSource=u.nameInSource,u.type!=t.System.DateTime&&u.type!=t.System.NullableDateTime||!StiOptions.Dictionary.useNullableDateTime?u.type!=t.System.TimeSpan&&u.type!=t.System.NullableTimeSpan||!StiOptions.Dictionary.useNullableTimeSpan||(g.type=t.System.NullableTimeSpan):g.type=t.System.NullableDateTime,c=!0)}(!c&&StiOptions.Dictionary.columnsSynchronizationMode==i.StiColumnsSynchronizationMode.KeepAbsentColumns||u.sti_is(i.StiCalcDataColumn))&&r.add(u)}for(var m=new s,d=r.count-1;d>=0;d--){var g=r.getByIndex(d),S=1,f=null;while(!0){if(f=1!=S?String.stiFormat("{0}{1}",g.name,S):g.name,null==m.get(f)){m.set(f,f);break}S++}g.name=f}for(var y=new i.StiDataColumnsCollection,b=0,C=n.columns.list;b<C.length;b++)for(var v=C[b],I=0,A=r.list;I<A.length;I++){var g=A[I];if(v.nameInSource==g.nameInSource){y.add(g),r.remove(g);break}}y.addRange(r),n.columns.clear(),n.columns.addRange(y),o.callTry()}).abort(o)}return o},d.prototype.synchronizeColumns3=function(t,e){this.synchronizeColumns2(t.businessObjectValue,e)},d.prototype.synchronizeColumns2=function(t,o){for(var a=i.StiBusinessObjectHelper.getColumnsFromData(t),l=0,u=o.columns.list;l<u.length;l++){for(var c=u[l],p=!1,h=0,g=a.list;h<g.length;h++){var m=g[h];if(c.nameInSource==m.nameInSource){m.name=c.name,StiOptions.Designer.autoCorrectDataColumnName&&(m.name=e.StiNameValidator.correctName(m.name)),m.alias=c.alias,m.nameInSource=c.nameInSource,c.type==r&&StiOptions.Dictionary.useNullableDateTime?m.type=r:c.type==n&&StiOptions.Dictionary.useNullableTimeSpan&&(m.type=n),p=!0;break}}p||StiOptions.Dictionary.BusinessObjects.columnsSynchronizationMode!=i.StiColumnsSynchronizationMode.KeepAbsentColumns||a.add(c)}for(var d=new s,S=a.count-1;S>=0;S--){var m=a.getByIndex(S),f=1,y=null;while(!0){if(y=1!=f?String.stiFormat("{0}{1}",m.name,f):m.name,null==d.get(y)){d.set(y,y);break}f++}m.name=y}o.columns.clear(),o.columns.addRange(a)},d.prototype.clear=function(){this._variables.clear(),this._databases.clear(),this._dataSources.clear(),this._relations.clear(),this._dataStore.clearReportDatabase()},d.prototype.disposeCacheDataSet=function(){if(null!=this.cacheDataSet){this.cacheDataSet.relations.clear();for(var t=0,e=this.cacheDataSet.tables.list;t<e.length;t++)var i=e[t];this.cacheDataSet.tables.clear(),this.cacheDataSet.dispose(),this.cacheDataSet=null}},d.prototype.renameDatabase=function(t,e){if(t.name==e)return;for(var r=t.name+".",n=e+".",o=0;o<this.dataSources.count;o++){var a=this.dataSources.getByIndex(o).sti_as(i.StiDataTableSource);null!=a&&(a.nameInSource.startsWith(r)?a.nameInSource=a.nameInSource.replaceAll(r,n):a.nameInSource==t.name&&(a.nameInSource=e))}t.name=e},d.prototype.connectAsync=function(e,r){void 0===e&&(e=!0),void 0===r&&(r=null);var n=new m,o=this;try{var a=function(){o.businessObjects.connect(),e&&o.regRelations2(),n.callTry()};null!=o.cacheDataSet&&o.cacheDataSet.dispose(),o.cacheDataSet=new l("CacheDataSet"),o.createDatabasesAsync(e).try(function(){if(null!=r&&r.length>0)for(var s=0,l=0,u=r;l<u.length;l++){var c=u[l];s++,c.connectAsync(null,e).try(function(){0==--s&&a()}).catch(function(t){n.callCatch(t)}).abort(n)}else if(o.report.retrieveOnlyUsedData&&e){for(var p=i.StiDataSourceHelper.getUsedDataSourcesNames(o.report),h=!1,g=0;g<o.dataSources.count;g++){var m=o.dataSources.getByIndex(g);p.containsKey(m.name)&&(h=!0,m.connectAsync(null,!0).try(function(){try{a()}catch(e){t.System.StiError.showError(e,!1),n.callCatch(e)}}).catch(function(t){n.callCatch(t)}).abort(n))}h||a()}else o.dataSources.connectAsync(e).try(function(){try{a()}catch(e){t.System.StiError.showError(e,!1),n.callCatch(e)}}).catch(function(t){n.callCatch(t)}).abort(n)}).abort(n)}catch(t){n.callCatch(t.message)}return n},d.prototype.connect=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=null),null!=this.cacheDataSet&&this.cacheDataSet.dispose(),this.cacheDataSet=new l("CacheDataSet"),this.createDatabases(t),null!=e)e.forEach(function(e){return e.connect(null,t)});else if(this.report.retrieveOnlyUsedData&&t)for(var r=i.StiDataSourceHelper.getUsedDataSourcesNames(this.report),n=0;n<this.dataSources.count;n++){var o=this.dataSources.getByIndex(n);r.containsKey(o.name)&&o.connect(null,!0)}else this.dataSources.connect(t);this.businessObjects.connect(),t&&this.regRelations2()},d.prototype.connectVirtualDataSources=function(){var t=new s,e=!0;while(e){e=!1;for(var r=0,n=this.dataSources.list;r<n.length;r++){var o=n[r],a=o.sti_as(i.StiVirtualSource);if(null!=a){var l=this.report.dictionary.dataSources.getByName(a.nameInSource);if(null==l||l.name==a.name){t.set(a,a);continue}if(l.sti_is(i.StiVirtualSource)&&null==t.get(l)){e=!0;continue}a.connectToData(),t.set(a,a)}}}},d.prototype.connectCrossTabDataSources=function(){},d.prototype.disconnect=function(){this.disconnectingConnectionInDataStore(),this.disposeCacheDataSet(),this.businessObjects.disconnect(),this.dataSources.disconnect(),this.dataStore.clearReportDatabase()},d.prototype.disconnectingDatabases=function(t){for(var e=0,i=t;e<i.length;e++)var r=i[e]},d.prototype.disconnectedDatabases=function(t){for(var e=0,i=t;e<i.length;e++)var r=i[e]},d.prototype.disconnectingConnectionInDataStore=function(){},d.prototype.checkRelation=function(t,e,i,r){var n=t.relations.getByName(e)?t.relations.getByName(e):t.relations.getByName(e.trim());if(null!=n){if(this.equalsRelationColumns(i,n.parentColumns)&&this.equalsRelationColumns(r,n.childColumns))return!0;t.relations.remove(n)}var o=0;while(o<t.relations.count)n=t.relations.getByIndex(o),this.equalsRelationColumns(n.parentColumns,i)&&this.equalsRelationColumns(n.childColumns,r)?t.relations.removeAt(o):o++;return!1},d.prototype.equalsRelationColumns=function(t,e){for(var i=0,r=t;i<r.length;i++)for(var n=r[i],o=0,a=e;o<a.length;o++){var s=a[o],l=s.columnName==n.columnName&&s.table==n.table;if(l)return l}},d.prototype.getRelationName=function(t){for(var e=!0,r=2,n=t.name,o=n,a=0,s=t.childSource.columns.list;a<s.length;a++){if(s[a].name==o){n=o="Parent"+o;break}}while(e){e=!1;for(var l=0,u=this.relations.list;l<u.length;l++){var c=u[l],p=c.sti_as(i.StiDataRelation);if(p.childSource==t.childSource&&p!=t&&p.name==o){var h=r++;o=n+"_"+h.toString(),e=!0;break}}}e=!0;while(e){e=!1;for(var g=0,m=this.dataSources.list;g<m.length;g++){if("Parent"+m[g].sti_as(i.StiDataSource).name==o){var h=r++;o=n+"_"+h.toString(),e=!0;break}}}return o},d.prototype.regRelations2=function(t){void 0===t&&(t=!1);for(var e=0,i=this.relations.list;e<i.length;e++){var r=i[e];this.regRelation(r,t)}},d.prototype.regRelation=function(e,r){try{var n=null,o=null;null!=e.parentSource&&(n=e.parentSource),null!=e.childSource&&(o=e.childSource);var a=null!=n&&n.sti_is(i.StiVirtualSource)||null!=o&&o.sti_is(i.StiVirtualSource);if(!r&&a)return;if(r&&!a)return;if(!this.report.isDesigning&&null==n)throw String.stiFormat("Please, check relation '{0}'. "+"Report engine can't find parent Data Source!",e.name);if(null==o)throw String.stiFormat("Please, check relation '{0}'. "+"Report engine can't find child Data Source!",e.name);if(null==n.dataTable)return;if(null==o.dataTable)return;if(!this.report.isDesigning&&null==n.dataTable.dataSet)throw String.stiFormat("Parent Data Source '{0}' is not located"+" in DataSet and can't be used in relation '{1}'!"+" You can use property CacheAllData of report to cache this Data Source"+" to one DataSet.",n.name,e.name);if(null==o.dataTable.dataSet)throw String.stiFormat("Child Data Source '{0}' is not located"+" in DataSet and can't be used in relation '{1}'!"+" You can use property CacheAllData of report to cache this Data Source"+" to one DataSet.",o.name,e.name);if(!this.report.isDesigning&&n.dataTable.dataSet!=o.dataTable.dataSet)throw String.stiFormat("Parent Data Source '{0}' and "+"Child Data Source '{1}' is not located"+" in one DataSet and can't be used in relation '{2}'!"+" You can use property CacheAllData of report to cache this Data Source"+" to one DataSet.",n.name,o.name,e.name);if(!this.report.isDesigning&&0==e.parentColumns.length)throw String.stiFormat("Parent columns is specified in "+"in relation '{0}'! Relation can't be created!",e.name);if(0==e.childColumns.length)throw String.stiFormat("Child columns is specified in "+"in relation '{0}'! Relation can't be created!",e.name);if(!this.report.isDesigning&&e.parentColumns.length!=e.childColumns.length)throw String.stiFormat("Count of parent columns is not equal to "+"count of child columns in relation '{0}'! Relation can't be created!",e.name);for(var s=[],l=0,u=0,c=e.parentColumns;u<c.length;u++){var p=c[u];if(null==n.dataTable.columns.getByName(p))throw String.stiFormat("Column '{0}' does not exist in "+"Data Source '{1}' and relation '{2}' can't be created!",p,n.name,e.name);s[l]=n.dataTable.columns.getByName(p),l++}var g=[];l=0;for(var m=0,d=e.childColumns;m<d.length;m++){var p=d[m];if(null==o.dataTable.columns.getByName(p))throw String.stiFormat("Column '{0}' does not exist in "+"Data Source '{1}' and relation '{2}' can't be created!",p,o.name,e.name);g[l]=o.dataTable.columns.getByName(p),l++}var S=n.dataTable.dataSet;s.length>0&&g.length>0&&(this.checkRelation(S,e.nameInSource,s,g)||(S.enforceConstraints=!1,S.relations.add(new h(e.nameInSource,s,g))))}catch(e){if(t.System.StiError.showError(e,!1),!StiOptions.Dictionary.hideRelationExceptions&&!this.report.isDesigning)throw e}},d}();i.StiDictionary=d}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Report.Components.StiGroupSortDirection,n=t.System.DateTime,o=t.System.TimeSpan,a=function(){function t(t,e,i,r){this.groupHeaders=null,this.groupSummaries=t,this.groupLines=e,this.groupHeaders=i,this.baseRowOrder=r}return t.prototype.compare=function(t,e){if(t==e)return 0;for(var n=0,o=this.groupHeaders.list;n<o.length;n++){var a=o[n];if(a.summarySortDirection==r.None)continue;var s=a.summarySortDirection==r.Ascending?1:-1,l=this.groupSummaries.get(a).sti_as(i),u=this.groupLines.get(a).sti_as(i),c=l.get(t),p=l.get(e),h=this.compareValues(c,p);if(0!=h)return h*s;var g=u.get(t),m=u.get(e);if(0!=(h=g.compareTo(m)))return h*s}var d=this.baseRowOrder.get(t),S=this.baseRowOrder.get(e);return d.compareTo(S)},t.prototype.compareValues=function(t,e){if(t.sti_is(Number)||e.sti_is(Number))return(+t).compareTo(+e);if(t.sti_is(n)||e.sti_is(n))return t.sti_as(n).compareTo(e.sti_as(n));if(t.sti_is(o)||e.sti_is(o))return t.sti_as(o).compareTo(e.sti_as(o));return 0},t.prototype.clear=function(){this.groupSummaries.clear(),this.groupSummaries=null,this.groupLines.clear(),this.groupLines=null,this.groupHeaders=null,this.baseRowOrder.clear(),this.baseRowOrder=null},t}();e.StiGroupSummaryDataSort=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.System.Type,n=t.System.Data.DBNull,o=function(){function t(t,e,i){if(this.businessObject=null,this.businessObject=t,this.keyColumn=e.keyDataColumn,this.masterKeyColumn=e.masterKeyDataColumn,this.parentValue=e.parentValue,this.sortColumns=i,null==this.keyColumn||0==this.keyColumn.trim().length)throw"Property 'KeyDataColumn' of '"+e.name+"'is not filled!";if(null==this.masterKeyColumn||0==this.masterKeyColumn.trim().length)throw"Property 'MasterKeyDataColumn' of '"+e.name+"'is not filled!";if(!t.columns.contains(this.keyColumn))throw"Column '"+this.keyColumn+"' does not present in '"+t.name+"'";if(!t.columns.contains(this.masterKeyColumn))throw"Column '"+this.masterKeyColumn+"' does not present in '"+t.name+"'";null==this.parentValue&&(this.parentValue=String.empty)}return t.prototype.compare=function(t,e){return 0},t.prototype.getParentValue=function(t){if(t.sti_is(r)&&(t=null),null==t)return String.empty;if(t==n.value)return String.empty;var e=t.toString();if(0==e.trim().length)return String.empty;return e},t.prototype.process=function(){var t=new i;this.createTree(t),this.setLevelAndSort(t,this.parentValue,0);var e=new Array;this.createRowList(t,e,this.parentValue),this.businessObject.enumerator=null},t.prototype.createTree=function(t){this.businessObject.enumerator.reset()},t.prototype.setLevelAndSort=function(t,i,r){var n=t.get(this.getParentValue(i)).sti_as(Array);if(null!=n){var o=new e.StiBusinessObjectSort(this.businessObject.ownerBand.sort,this.businessObject,null,null);n.Sort(o),o.clear()}},t.prototype.createRowList=function(t,e,i){var r=t.get(this.getParentValue(i)).sti_as(Array);if(null!=r)for(var n=0,o=r;n<o.length;n++){var a=o[n];e.add(a)}},t}();e.StiHierarchicalBusinessObjectSort=o}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.System.Data.DBNull,n=t.System.Data.DataRow,o=function(){function o(t,e,i){if(this.dataSource=null,this.keyColumn=null,this.masterKeyColumn=null,this.parentValue=null,this.sortColumns=null,this.dataSource=t,this.keyColumn=e.keyDataColumn,this.masterKeyColumn=e.masterKeyDataColumn,this.parentValue=e.parentValue,this.sortColumns=i,null==this.keyColumn||0==this.keyColumn.trim().length)throw"Property 'KeyDataColumn' of '"+e.name+"'is not filled!";if(null==this.masterKeyColumn||0==this.masterKeyColumn.trim().length)throw"Property 'MasterKeyDataColumn' of '"+e.name+"'is not filled!";if(!this.dataSource.columns.contains(this.keyColumn))throw"Column '"+this.keyColumn+"' does not present in '"+t.name+"'";if(!this.dataSource.columns.contains(this.masterKeyColumn))throw"Column '"+this.masterKeyColumn+"' does not present in '"+t.name+"'";null==this.parentValue&&(this.parentValue=String.empty)}return o.prototype.compare=function(i,r){try{if(i==r)return 0;var o=i.sti_as(n),a=r.sti_as(n),s=o.gett(this.keyColumn),l=a.gett(this.keyColumn);return new e.StiDataSort(null,null,null,null).compareValues(s,l)}catch(e){return t.System.StiError.showError(e.message,!1),0}},o.prototype.getParentValue=function(t){if(null==t)return String.empty;if(t==r)return String.empty;var e=t.toString();if(0==e.trim().length)return String.empty;return e},o.prototype.process=function(t){if(null==this.dataSource.detailRows)return;var e=new i;this.createTree(e),this.dataSource.rowToLevel=new i,this.setLevelAndSort(t,e,this.parentValue,0);var r=[];this.createRowList(e,r,this.parentValue),this.dataSource.detailRows=Array.create(n,r.count),r.copyTo(this.dataSource.detailRows)},o.prototype.createTree=function(t){for(var e=0,i=this.dataSource.detailRows;e<i.length;e++){var r=i[e],n=r.gett(this.masterKeyColumn);n=this.getParentValue(n);var o=t.get(n);null==o&&(o=[],t.set(n,o)),o.add(r)}},o.prototype.setLevelAndSort=function(t,i,r,n){var o=i.get(this.getParentValue(r));if(null!=o){for(var a=0,s=o;a<s.length;a++){var l=s[a];this.dataSource.rowToLevel.set(l,n);var u=l.gett(this.keyColumn);this.setLevelAndSort(t.clone(),i,u,n+1)}for(var c=new e.StiDataSort(t,null,this.sortColumns,this.dataSource),p=[],h=0,g=o;h<g.length;h++){var l=g[h];p.add(l)}p.sort2(c),o.clear();for(var m=0,d=p;m<d.length;m++){var l=d[m];o.add(l)}c.clear()}},o.prototype.createRowList=function(t,e,i){var r=t.get(this.getParentValue(i));if(null!=r)for(var n=0,o=r;n<o.length;n++){var a=o[n];e.add(a);var s=a.gett(this.keyColumn);this.createRowList(t,e,s)}},o}();e.StiHierarchicalDataSort=o}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Image,n=t.Base.StiJson,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.System.Enum,s=t.Base.StiPacker,l=t.System.Text.XMLConvert,u=function(){function t(t,e,r,n,o){void 0===t&&(t=String.empty),void 0===e&&(e=String.empty),void 0===r&&(r=!1),void 0===n&&(n=i.StiResourceType.Image),void 0===o&&(o=null),this.name=t,this.alias=e,this.inherited=r,this.type=n,this.content=o}return t.prototype.implements=function(){return[e.IStiName,e.IStiInherited,o]},t.prototype.clone=function(){var e=new t;return e._name=this._name,e.alias=this.alias,e.key=this.key,e.inherited=this.inherited,e.type=this.type,e.content=this.content,e},t.prototype.saveToJsonObject=function(t){var e=new n;return e.addPropertyStringNullOfEmpty("Name",this.name),e.addPropertyStringNullOfEmpty("Alias",this.alias),e.addPropertyStringNullOfEmpty("Key",this.key),e.addPropertyBool("Inherited",this.inherited),e.addPropertyEnum("Type",i.StiResourceType,this.type,i.StiResourceType.Image),null==this.packAndEncryptContent&&(this.packAndEncryptContent=s.packAndEncryptToString(this.content)),e.addPropertyString("Image",this.packAndEncryptContent),e},t.prototype.loadFromJsonObject=function(t){for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"Name":this.name=n.value.toString();break;case"Alias":this.alias=n.value.toString();break;case"Key":this.key=n.value.toString();break;case"Inherited":this.inherited=n.value.toBoolean();break;case"Type":this.type=a.parse(i.StiResourceType,n.value);break;case"Image":this.packAndEncryptContent=n.value;break}}},t.prototype.loadFromXml=function(t){var e=t.textContent.split(",");this.type=i.StiResourceType.Image;for(var r=0,n=e;r<n.length;r++){var o=n[r],s=l.decodeName(o).trim(),u=s.split("=")[0];switch(s=s.substr(u.length+1),u){case"Name":this.name=s;break;case"Alias":this.alias=s;break;case"Inherited":this.inherited=s.toBoolean();break;case"Type":this.type=a.parse(i.StiResourceType,s);break;case"Content":this.packAndEncryptContent=s;break}}},Object.defineProperty(t.prototype,"componentId",{get:function(){return e.StiComponentId.StiResource},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name!=t&&(this._name==this.alias&&(this.alias=t),this._name=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return null!=this._content||String.isNullOrEmpty(this._packAndEncryptContent)||(this._content=s.unpackAndDecrypt2(this._packAndEncryptContent)),this._content},set:function(t){this._content!=t&&(this._content=t,this.packAndEncryptContent=null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"packAndEncryptContent",{get:function(){return String.isNullOrEmpty(this._packAndEncryptContent)&&null!=this._content&&(this._packAndEncryptContent=s.packAndEncryptToString(this._content)),this._packAndEncryptContent},set:function(t){this._packAndEncryptContent!=t&&(this._packAndEncryptContent=t,this.content=null)},enumerable:!0,configurable:!0}),t.prototype.getResourceAsImage=function(){if(null==this.content||this.type!=i.StiResourceType.Image)return null;try{return r.fromBytes(this.content)}catch(t){}return null},t.prototype.toString=function(){if(StiOptions.Dictionary.showOnlyAliasForResource)return this.alias;return this.alias==this.name?this.name:this.name+" ["+this.alias+"]"},t}();i.StiResource=u}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiJsonSaveMode,r=t.System.Collections.CollectionBase,n=t.System.Collections.IComparer,o=t.Base.StiJson,a=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.directionFactor=1,e}return __extends(r,t),r.prototype.implements=function(){return[n]},r.prototype.clone=function(){for(var t=new r,e=0,i=this.list;e<i.length;e++){var n=i[e];t.add(n.clone())}return t},r.prototype.saveToJsonObjectEx=function(t){if(0==this.list.count)return null;for(var e=new o,r=0,n=0,a=this.list;n<a.length;n++){var s=a[n];e.addPropertyJObject(r.toString(),s.saveToJsonObject(i.Report)),r++}return e},r.prototype.loadFromJsonObjectEx=function(t,i){for(var r=0,n=t.properties();r<n.length;r++){var o=n[r],a=new e.StiResource;a.loadFromJsonObject(o.value),this.list.add(a)}},r.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var r=t.childNodes[i];if("value"==r.nodeName){var n=new e.StiResource;n.loadFromXml(r),this.list.add(n)}}},r.prototype.compare=function(t,e){var i=t,r=e;return StiOptions.Designer.sortDictionaryByAliases?i.alias.compareTo(r.alias)*this.directionFactor:i.name.compareTo(r.name)*this.directionFactor},r.prototype.sort=function(t){void 0===t&&(t=e.StiSortOrder.Asc),t==e.StiSortOrder.Asc?this.directionFactor=1:this.directionFactor=-1,this.list.sort2(this)},r.prototype.toList=function(){return this._list},r.prototype.add=function(t){this.list.add(t)},r.prototype.addRange=function(t){for(var e=0,i=t.list;e<i.length;e++){var r=i[e];this.add(r)}},r.prototype.contains=function(t){return this.list.contains(t)},r.prototype.indexOf=function(t){return this.list.indexOf(t)},r.prototype.insert=function(t,e){this.list.insert(t,e)},r.prototype.remove=function(t){this.list.remove(t)},r.prototype.getByIndex=function(t){return this.list[t]},r.prototype.setByIndex=function(t,e){this.list[t]=e},r.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t)return r}return null},r.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].name.toLower()==t)return void(this.list[i]=e)}this.add(e)},r}(r);e.StiResourcesCollection=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(){}return t.prototype.clear=function(){null!=this.restrictionsDataSource&&(this.restrictionsDataSource.clear(),this.restrictionsDataSource=null),null!=this.restrictionsDataRelation&&(this.restrictionsDataRelation.clear(),this.restrictionsDataRelation=null),null!=this.restrictionsDataColumn&&(this.restrictionsDataColumn.clear(),this.restrictionsDataColumn=null),null!=this.restrictionsDatabase&&(this.restrictionsDatabase.clear(),this.restrictionsDatabase=null),null!=this.restrictionsVariable&&(this.restrictionsVariable.clear(),this.restrictionsVariable=null),null!=this.restrictionsTotal&&(this.restrictionsTotal.clear(),this.restrictionsTotal=null),null!=this.restrictionsBusinessObject&&(this.restrictionsBusinessObject.clear(),this.restrictionsBusinessObject=null)},t.prototype.getHashtable=function(t,r){switch(t){case e.StiDataType.Database:return null==this.restrictionsDatabase&&r&&(this.restrictionsDatabase=new i),this.restrictionsDatabase;case e.StiDataType.DataColumn:return null==this.restrictionsDataColumn&&r&&(this.restrictionsDataColumn=new i),this.restrictionsDataColumn;case e.StiDataType.DataRelation:return null==this.restrictionsDataRelation&&r&&(this.restrictionsDataRelation=new i),this.restrictionsDataRelation;case e.StiDataType.DataSource:return null==this.restrictionsDataSource&&r&&(this.restrictionsDataSource=new i),this.restrictionsDataSource;case e.StiDataType.BusinessObject:return null==this.restrictionsBusinessObject&&r&&(this.restrictionsBusinessObject=new i),this.restrictionsBusinessObject;case e.StiDataType.Total:return null==this.restrictionsTotal&&r&&(this.restrictionsTotal=new i),this.restrictionsTotal;default:return null==this.restrictionsVariable&&r&&(this.restrictionsVariable=new i),this.restrictionsVariable}},t.prototype.add=function(t,e,i){var r=this.getHashtable(e,!0),n=r.get(t).sti_as(Array);null==n&&(n=new Array,r.set(t,n)),n.add(i)},t.prototype.isAllowEdit=function(t,i){var r=this.getHashtable(i,!1);if(null==r||null==r.get(t))return!0;var n=r.get(t).sti_as(Array);if(null!=n)for(var o=0,a=n;o<a.length;o++){var s=a[o];if(0!=(s&e.StiRestrictionTypes.DenyEdit))return!1}return!0},t.prototype.isAllowDelete=function(t,i){var r=this.getHashtable(i,!1);if(null==r||null==r.get(t))return!0;var n=r.get(t).sti_as(Array);if(null!=n)for(var o=0,a=n;o<a.length;o++){var s=a[o];if(0!=(s&e.StiRestrictionTypes.DenyDelete))return!1}return!0},t.prototype.isAllowShow=function(t,i){var r=this.getHashtable(i,!1);if(null==r||null==r.get(t))return!0;var n=r.get(t).sti_as(Array);if(null!=n)for(var o=0,a=n;o<a.length;o++){var s=a[o];if(0!=(s&e.StiRestrictionTypes.DenyShow))return!1}return!0},t.prototype.isAllowMove=function(t,i){var r=this.getHashtable(i,!1);if(null==r||null==r.get(t))return!0;var n=r.get(t).sti_as(Array);if(null!=n)for(var o=0,a=n;o<a.length;o++){var s=a[o];if(0!=(s&e.StiRestrictionTypes.DenyMove))return!1}return!0},t}();e.StiRestrictions=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e){this.dataSource=t,this.rowIndex=e}return t.prototype.getByName=function(t){return this.dataSource.getData(t,this.rowIndex)},t}();t.StiRow=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(t){this.dataSource=null,this.dataSource=t}return e.prototype.getEnumerator=function(){return this},Object.defineProperty(e.prototype,"current",{get:function(){return new t.StiRow(this.dataSource,this.dataSource.position)},enumerable:!0,configurable:!0}),e.prototype.moveNext=function(){return this.dataSource.next(),!this.dataSource.isEof},e.prototype.reset=function(){this.dataSource.first()},e.prototype.getbyIndex=function(e){return new t.StiRow(this.dataSource,e)},Object.defineProperty(e.prototype,"count",{get:function(){return this.dataSource.count},enumerable:!0,configurable:!0}),e}();t.StiRowsCollection=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.Del_=function(t){return String.isNullOrWhiteSpace(t)?t:t.replaceAll("_",String.empty)},t}();t.StiStrFix=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=function(){function t(){}return t.getSystemVariableInfo=function(t){return i.get("SystemVariables",t)},t.getSystemVariables=function(t){if(null!=t)return this.getSystemVariablesV2()},t.getSystemVariablesV2=function(){return null==t.systemVariablesV2&&(t.systemVariablesV2=["Column","Line","LineThrough","LineABC","LineRoman","GroupLine","PageNumber","PageNumberThrough","PageNofM","PageNofMThrough","TotalPageCount","TotalPageCountThrough","IsFirstPage","IsFirstPageThrough","IsLastPage","IsLastPageThrough","PageCopyNumber","ReportAlias","ReportAuthor","ReportChanged","ReportCreated","ReportDescription","ReportName","Time","Today"]),t.systemVariablesV2},t}();e.StiSystemVariablesHelper=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.StiTypeWrapper,r=function(){function r(t,e){this._name="",this._name=t,this._type=e}return Object.defineProperty(r.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),r.getTypes=function(){for(var t=new e.StiTypesCollection,n=0,o=i.simpleTypes;n<o.length;n++){var a=o[n];t.add(new r(i.toString(a),a))}return t},r.getBaseTypes=function(){for(var t=new e.StiTypesCollection,n=0,o=i.simpleBaseTypes;n<o.length;n++){var a=o[n];t.add(new r(i.toString(a),a))}return t},r.getTypeModeFromType=function(i,r){if(r.ref=e.StiTypeMode.Value,null==i)return i;if(i==String)return i;if(i==Boolean)return i;if(i==t.System.Byte)return i;if(i==t.System.SByte)return i;if(i==t.System.UShort)return i;if(i==t.System.Short)return i;if(i==t.System.UInt)return i;if(i==t.System.Int)return i;if(i==t.System.ULong)return i;if(i==t.System.Long)return i;if(i==t.System.Single)return i;if(i==t.System.Double)return i;if(i==t.System.Decimal)return i;if(i==t.System.Char)return i;if(i==t.System.TimeSpan)return i;if(i==t.System.DateTime)return i;if(i==t.System.Guid)return i;if(i==t.System.Drawing.Image)return i;if(i==Object)return i;if(r.ref=e.StiTypeMode.NullableValue,i==t.System.NullableBoolean)return Boolean;if(i==t.System.NullableByte)return t.System.Byte;if(i==t.System.NullableSByte)return t.System.SByte;if(i==t.System.NullableUShort)return t.System.UShort;if(i==t.System.NullableShort)return t.System.Short;if(i==t.System.NullableUInt)return t.System.UInt;if(i==t.System.NullableInt)return t.System.Int;if(i==t.System.NullableULong)return t.System.ULong;if(i==t.System.NullableLong)return t.System.Long;if(i==t.System.NullableSingle)return t.System.Single;if(i==t.System.NullableDouble)return t.System.Double;if(i==t.System.NullableDecimal)return t.System.Decimal;if(i==t.System.NullableChar)return t.System.Char;if(i==t.System.NullableTimeSpan)return t.System.TimeSpan;if(i==t.System.NullableDateTime)return t.System.DateTime;if(i==t.System.NullableGuid)return t.System.Guid;if(r.ref=e.StiTypeMode.List,i==t.System.StimulsoftStringList)return String;if(i==t.System.StimulsoftBoolList)return Boolean;if(i==t.System.StimulsoftByteList)return t.System.Byte;if(i==t.System.StimulsoftShortList)return t.System.Short;if(i==t.System.StimulsoftIntList)return t.System.Int;if(i==t.System.StimulsoftLongList)return t.System.Long;if(i==t.System.StimulsoftFloatList)return t.System.Single;if(i==t.System.StimulsoftDoubleList)return t.System.Double;if(i==t.System.StimulsoftDecimalList)return t.System.Decimal;if(i==t.System.StimulsoftCharList)return t.System.Char;if(i==t.System.StimulsoftTimeSpanList)return t.System.TimeSpan;if(i==t.System.StimulsoftDateTimeList)return t.System.DateTime;if(i==t.System.StimulsoftGuidList)return t.System.Guid;if(r.ref=e.StiTypeMode.Range,i==t.System.StimulsoftStringRange)return String;if(i==t.System.StimulsoftByteRange)return t.System.Byte;if(i==t.System.StimulsoftShortRange)return t.System.Short;if(i==t.System.StimulsoftIntRange)return t.System.Int;if(i==t.System.StimulsoftLongRange)return t.System.Long;if(i==t.System.StimulsoftFloatRange)return t.System.Single;if(i==t.System.StimulsoftDoubleRange)return t.System.Double;if(i==t.System.StimulsoftDecimalRange)return t.System.Decimal;if(i==t.System.StimulsoftCharRange)return t.System.Char;if(i==t.System.StimulsoftTimeSpanRange)return t.System.TimeSpan;if(i==t.System.StimulsoftDateTimeRange)return t.System.DateTime;if(i==t.System.StimulsoftGuidRange)return t.System.Guid;if(i==t.Report.StringRange)return String;if(i==t.Report.ByteRange)return t.System.Byte;if(i==t.Report.ShortRange)return t.System.Short;if(i==t.Report.IntRange)return t.System.Int;if(i==t.Report.LongRange)return t.System.Long;if(i==t.Report.FloatRange)return t.System.Single;if(i==t.Report.DoubleRange)return t.System.Double;if(i==t.Report.DecimalRange)return t.System.Decimal;if(i==t.Report.CharRange)return t.System.Char;if(i==t.Report.TimeSpanRange)return t.System.TimeSpan;if(i==t.Report.DateTimeRange)return t.System.DateTime;if(i==t.Report.GuidRange)return t.System.Guid;return r.ref=e.StiTypeMode.Value,i},r.getTypeFromTypeMode=function(i,r){if(null==i)return null;switch(r){case e.StiTypeMode.Value:return i;case e.StiTypeMode.NullableValue:if(i==Boolean)return t.System.NullableBoolean;if(i==t.System.Byte)return t.System.NullableByte;if(i==t.System.SByte)return t.System.NullableSByte;if(i==t.System.UInt16)return t.System.NullableUShort;if(i==t.System.Int16)return t.System.NullableShort;if(i==t.System.UInt32)return t.System.NullableUInt;if(i==t.System.Int32)return t.System.NullableInt;if(i==t.System.UInt64)return t.System.NullableULong;if(i==t.System.Int64)return t.System.NullableLong;if(i==t.System.Single)return t.System.NullableSingle;if(i==t.System.Double)return t.System.NullableDouble;if(i==t.System.Decimal)return t.System.NullableDecimal;if(i==t.System.Char)return t.System.NullableChar;if(i==t.System.TimeSpan)return t.System.NullableTimeSpan;if(i==t.System.DateTime)return t.System.NullableDateTime;if(i==t.System.Guid)return t.System.NullableGuid;break;case e.StiTypeMode.List:if(i==String)return t.System.StimulsoftStringList;if(i==Boolean)return t.System.StimulsoftBoolList;if(i==t.System.Byte)return t.System.StimulsoftByteList;if(i==t.System.Int16)return t.System.StimulsoftShortList;if(i==t.System.Int32)return t.System.StimulsoftIntList;if(i==t.System.Int64)return t.System.StimulsoftLongList;if(i==t.System.Single)return t.System.StimulsoftFloatList;if(i==t.System.Double)return t.System.StimulsoftDoubleList;if(i==t.System.Decimal)return t.System.StimulsoftDecimalList;if(i==t.System.Char)return t.System.StimulsoftCharList;if(i==t.System.TimeSpan)return t.System.StimulsoftTimeSpanList;if(i==t.System.DateTime)return t.System.StimulsoftDateTimeList;if(i==t.System.Guid)return t.System.StimulsoftGuidList;break;case e.StiTypeMode.Range:if(i==String)return t.System.StimulsoftStringRange;if(i==t.System.Byte)return t.System.StimulsoftByteRange;if(i==t.System.Int16)return t.System.StimulsoftShortRange;if(i==t.System.Int32)return t.System.StimulsoftIntRange;if(i==t.System.Int64)return t.System.StimulsoftLongRange;if(i==t.System.Single)return t.System.StimulsoftFloatRange;if(i==t.System.Double)return t.System.StimulsoftDoubleRange;if(i==t.System.Decimal)return t.System.StimulsoftDecimalRange;if(i==t.System.Char)return t.System.StimulsoftCharRange;if(i==t.System.TimeSpan)return t.System.StimulsoftTimeSpanRange;if(i==t.System.DateTime)return t.System.StimulsoftDateTimeRange;if(i==t.System.Guid)return t.System.StimulsoftGuidRange;break}return i},r.prototype.toString=function(){return this._name},r}();e.StiType=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype.add=function(t){this.list.add(t)},i.prototype.addRange=function(t){this.list.addRange(t)},i.prototype.contains=function(t){return this.list.contains(t)},i.prototype.indexOf=function(t){return this.list.indexOf(t)},i.prototype.insert=function(t,e){this.list.insert(t,e)},i.prototype.remove=function(t){this.list.remove(t)},i.prototype.getByIndex=function(t){return this.list[t]},i.prototype.setByIndex=function(t,e){this.list[t]=e},i.prototype.getByName=function(t){for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name==t)return r}return null},i.prototype.setByName=function(t,e){for(var i=0;i<this.list.count;i++){if(this.list[i].name==t)return void(this.list[i]=e)}this.add(e)},i.prototype.get=function(t){for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.type==t)return r}return null},i.prototype.set=function(t,e){for(var i=0,r=0,n=this.list;r<n.length;r++){n[r].type==t&&(this.list[i]=e),i++}},Object.defineProperty(i.prototype,"items",{get:function(){return this.list},enumerable:!0,configurable:!0}),i.prototype.regType=function(t,i){this.add(new e.StiType(t,i))},i}(i);e.StiTypesCollection=r}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e){this._userName=t,this._password=e}return Object.defineProperty(t.prototype,"userName",{get:function(){return this._userName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"password",{get:function(){return this._password},enumerable:!0,configurable:!0}),t}();t.StiUserNameAndPassword=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.DateTime,r=t.System.Enum,n=t.Base.StiTypeFinder,o=t.Report.Expressions.StiExpression,a=t.Base.StiJson,s=t.System.Text.XMLConvert,l=t.Report.Dictionary.StiDialogInfo,u=t.Report.Range,c=t.Base.Drawing.StiImageConverter,p=t.Report.RangeConverter,h;!function(t){t[t.Name=100]="Name",t[t.Alias=200]="Alias",t[t.Category=300]="Category"}(h||(h={}));var g=function(o){function h(t,i,r,n,a,s,u,c,p,h,g,m,d){void 0===t&&(t=String.empty),void 0===i&&(i=String.empty),void 0===r&&(r=String.empty),void 0===n&&(n=String.empty),void 0===a&&(a=String.getStiType()),void 0===s&&(s=String.empty),void 0===u&&(u=!1),void 0===c&&(c=e.StiVariableInitBy.Value),void 0===p&&(p=!1),void 0===h&&(h=new l),void 0===g&&(g=null),void 0===m&&(m=!1),void 0===d&&(d=e.StiSelectionMode.FromVariable);var S=o.call(this)||this;return S._inherited=!1,S._name=String.empty,S._dialogInfo=new l,S._alias=String.empty,S._readOnly=!1,S._requestFromUser=!1,S._category=String.empty,S._description=String.empty,S._initBy=e.StiVariableInitBy.Value,S._selection=e.StiSelectionMode.First,S._key=null,S._category=t,S.name=i,S._alias=r,S._description=n,S._type=a,S._readOnly=u,S._initBy=c,S.value=s,S._requestFromUser=p,S._dialogInfo=h,S._key=g,S._allowUseAsSqlParameter=m,S._selection=d,S}return __extends(h,o),h.prototype.convertTypeToJsonString=function(t){var e=t.getStiNetTypeName();if(e.startsWith("System.Nullable`1")){var i=e.indexOf(",");e=e.substr(0,i).replaceAll("[[","[")+"]"}return e},h.prototype.convertJsonStringToType=function(t){return t.startsWith("System.Nullable`1")&&!t.contains(", mscorlib,")&&(t=t.substr(0,t.length-1)+", mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]",t=t.replaceAll("[","[[")),n.getStiType(t)},h.prototype.saveToJsonObjectEx=function(){var t=new a;if(t.addPropertyStringNullOfEmpty("Value",this.value),t.addPropertyStringNullOfEmpty("Name",this.name),t.addPropertyJObject("DialogInfo",this.dialogInfo.saveToJsonObject()),t.addPropertyStringNullOfEmpty("Alias",this.alias),t.addPropertyStringNullOfEmpty("Type",this.convertTypeToJsonString(this.type)),t.addPropertyBool("ReadOnly",this.readOnly),t.addPropertyBool("RequestFromUser",this.requestFromUser),t.addPropertyStringNullOfEmpty("Category",this.category),t.addPropertyStringNullOfEmpty("Description",this.description),t.addPropertyEnum("InitBy",e.StiVariableInitBy,this.initBy,e.StiVariableInitBy.Value),t.addPropertyStringNullOfEmpty("Key",this.key),t.addPropertyBool("AllowUseAsSqlParameter",this.allowUseAsSqlParameter),t.addPropertyEnum("SelectionMode",e.StiSelectionMode,this._selection,e.StiSelectionMode.FromVariable),0==t.count)return null;return t},h.prototype.loadFromJsonObjectEx=function(t,i){o.prototype.loadFromJsonObject.call(this,t);for(var n=0,a=t.properties();n<a.length;n++){var s=a[n];switch(s.name){case"Name":this._name=s.value;break;case"DialogInfo":this._dialogInfo.loadFromJsonObject(s.value,i);break;case"Alias":this._alias=s.value;break;case"Type":this._type=this.convertJsonStringToType(s.value);break;case"ReadOnly":this._readOnly=s.value.toBoolean();break;case"RequestFromUser":this._requestFromUser=s.value.toBoolean();break;case"Category":this._category=s.value;break;case"Description":this._description=s.value;break;case"InitBy":this._initBy=r.parse(e.StiVariableInitBy,s.value);break;case"Key":this._key=s.value;break;case"AllowUseAsSqlParameter":this.allowUseAsSqlParameter=s.value.toBoolean();break;case"SelectionMode":this._selection=r.parse(e.StiSelectionMode,s.value);break}}},h.loadFromXml=function(i,o){var a=i.textContent.split(",");if(1==a.length)return new h(a[0]);if(2==a.length){var l=new h(a[0]);return l.inherited=!0,l}if(5==a.length){var u=e.StiVariableInitBy.Expression,c=s.decodeName(a[3]),p="null"==a[2]?null:n.getStiType(a[2]);try{h.getValue(c,p),u=e.StiVariableInitBy.Value}catch(i){t.System.StiError.showError(i,!1),u=e.StiVariableInitBy.Expression}return new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[1]),"",p,c,"True"==a[4],u)}if(6==a.length){var u=e.StiVariableInitBy.Value,c=s.decodeName(a[4]),p=n.getStiType(a[3]);try{h.getValue(c,p),u=e.StiVariableInitBy.Value}catch(i){t.System.StiError.showError(i,!1),u=e.StiVariableInitBy.Expression}return new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),"",p,c,"True"==a[5],u)}if(7==a.length)return new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),"",n.getStiType(a[3]),s.decodeName(a[4]),"True"==a[5],"True"==a[6]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value);if(8==a.length){var l=new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),"",n.getStiType(a[3]),s.decodeName(a[4]),"True"==a[5],"True"==a[6]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value);return l.inherited=!0,l}if(9==a.length)return new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),s.decodeName(a[3]),n.getStiType(a[4]),s.decodeName(a[5]),"True"==a[6],"True"==a[7]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value,"True"==a[8]);if(10==a.length){var l=new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),s.decodeName(a[3]),n.getStiType(a[4]),s.decodeName(a[5]),"True"==a[6],"True"==a[7]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value,"True"==a[8]);return l.inherited="True"==a[9],l}if(11==a.length){var l=new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),s.decodeName(a[3]),n.getStiType(a[4]),s.decodeName(a[5]),"True"==a[6],"True"==a[7]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value,"True"==a[8],this.convertFromStringToDialogInfo(s.decodeName(a[10]),o));return l.inherited="True"==a[9],l}if(12==a.length){var l=new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),s.decodeName(a[3]),n.getStiType(a[4]),s.decodeName(a[5]),"True"==a[6],"True"==a[7]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value,"True"==a[8],this.convertFromStringToDialogInfo(s.decodeName(a[10]),o),a[11]);return l.inherited="True"==a[9],l}if(13==a.length){var l=new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),s.decodeName(a[3]),n.getStiType(a[4]),s.decodeName(a[5]),"True"==a[6],"True"==a[7]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value,"True"==a[8],this.convertFromStringToDialogInfo(s.decodeName(a[10]),o),String.isNullOrWhiteSpace(a[11])?null:s.decodeName(a[11]),"True"==a[12]);return l.inherited="True"==a[9],l}if(14==a.length){var l=new h(s.decodeName(a[0]),s.decodeName(a[1]),s.decodeName(a[2]),s.decodeName(a[3]),n.getStiType(a[4]),s.decodeName(a[5]),"True"==a[6],"True"==a[7]?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value,"True"==a[8],this.convertFromStringToDialogInfo(s.decodeName(a[10]),o),String.isNullOrWhiteSpace(a[11])?null:s.decodeName(a[11]),"True"==a[12],r.parse(e.StiSelectionMode,a[13]));return l.inherited="True"==a[9],l}},h.convertFromStringToDialogInfo=function(i,n){if(""==i||"null"==i)return new l;for(var o=new l,a=t.System.Xml.XmlConverter.toXml(i).childNodes[0],s=0;s<a.childNodes.length;s++){var u=a.childNodes[s];switch(u.nodeName){case"DateTimeType":o.dateTimeType=r.parse(e.StiDateTimeType,u.textContent);break;case"ItemsInitializationType":o.itemsInitializationType=r.parse(e.StiItemsInitializationType,u.textContent);break;case"KeysColumn":o.keysColumn=u.textContent;break;case"ValuesColumn":o.valuesColumn=u.textContent;break;case"BindingValuesColumn":o.bindingValuesColumn=u.textContent;break;case"Mask":o.mask=u.textContent;break;case"AllowUserValues":o.allowUserValues=u.textContent.toBoolean();break;case"BindingValue":o.bindingValue=u.textContent.toBoolean();break;case"Keys":o.keys=h.parseStringArray(u);break;case"Values":o.values=h.parseStringArray(u);break;case"BindingVariable":o.xmlLoadedBindingVariable=""!=u.textContent?u:null,n.jsonLoaderHelper.dialogInfo.add(o);break}}return o},h.parseStringArray=function(t){for(var e=[],i=0,r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];"value"==n.nodeName&&(e[r]=n.textContent,i++)}return e},Object.defineProperty(h.prototype,"inherited",{get:function(){return this._inherited},set:function(t){this._inherited=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t.replaceAll(" ","_")},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"applyFormat",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"dialogInfo",{get:function(){return this._dialogInfo},set:function(t){this._dialogInfo=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"alias",{get:function(){return this._alias},set:function(t){this._alias=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"readOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=t,t&&(this._requestFromUser=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"requestFromUser",{get:function(){return this._requestFromUser},set:function(t){this._requestFromUser=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"allowUseAsSqlParameter",{get:function(){return this._allowUseAsSqlParameter},set:function(t){this._allowUseAsSqlParameter},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"category",{get:function(){return this._category},set:function(t){this._category=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"description",{get:function(){return this._description},set:function(t){this._description=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"isCategory",{get:function(){return String.isNullOrEmpty(this.name)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"valueObject",{get:function(){var t=this.value;if(this.initBy==e.StiVariableInitBy.Expression)return this.value;return h.getValue(t,this.type)},set:function(t){this.initBy==e.StiVariableInitBy.Expression&&(this.value=t),null==t?this.value=String.empty:this.setValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"initByExpressionFrom",{get:function(){if(!n.findType(this.type,u.getStiType()))return null;var t=this.getRangeValues();if(null==t)return String.empty;return t[0]},set:function(t){if(!n.findType(this.type,u.getStiType()))return;var e=this.getRangeValues(),i=String.empty;null!=e&&(i=e[1]),this.value=String.stiFormat("{0}<<|>>{1}",t,i)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"initByExpressionTo",{get:function(){if(!n.findType(this.type,u.getStiType()))return null;var t=this.getRangeValues();if(null==t)return String.empty;return t[1]},set:function(t){if(!n.findType(this.type,u.getStiType()))return;var e=this.getRangeValues(),i=String.empty;null!=e&&(i=e[0]),this.value=String.stiFormat("{0}<<|>>{1}",i,t)},enumerable:!0,configurable:!0}),h.prototype.getValueProp=function(){if(this.initBy==e.StiVariableInitBy.Expression)return o.prototype.getValueProp.call(this);if(!String.isNullOrEmpty(o.prototype.getValueProp.call(this))&&(this.type==t.System.DateTime||this.type==t.System.NullableDateTime)){var i=h.getDateTimeFromValue(o.prototype.getValueProp.call(this));try{return i.toString()}finally{}}if(this.type==t.System.DateTime||this.type==t.System.NullableDateTime)return null;return o.prototype.getValueProp.call(this)},h.prototype.setValueProp=function(i){if(this.initBy==e.StiVariableInitBy.Expression)o.prototype.setValueProp.call(this,i);else{if(null!=i&&"null"!=i&&i.length>0&&(this.type==t.System.DateTime||this.type==t.System.NullableDateTime))try{try{var r=new t.System.DateTime(Date.parse(i));o.prototype.setValueProp.call(this,h.getValueFromDateTime(r))}finally{}}catch(e){t.System.StiError.showError(e,!1)}o.prototype.setValueProp.call(this,i)}},Object.defineProperty(h.prototype,"function",{get:function(){return this.initBy==e.StiVariableInitBy.Expression},set:function(t){this.initBy=t?e.StiVariableInitBy.Expression:e.StiVariableInitBy.Value},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"initBy",{get:function(){return this._initBy},set:function(t){this._initBy=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"selection",{get:function(){return this._selection},set:function(t){this._selection=t},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"key",{get:function(){return this._key},set:function(t){this._key=t},enumerable:!0,configurable:!0}),h.prototype.getRangeValues=function(){var t=this.value;if(String.isNullOrEmpty(t))return null;if(-1==t.indexOf("<<|>>"))return null;var e=t.split("<<|>>");if(2!=e.length)return null;return e},h.getValue=function(e,r){if(String.isNullOrEmpty(e)){if(r==t.System.Int32||r==t.System.UInt32||r==t.System.Int64||r==t.System.UInt64||r==t.System.Byte||r==t.System.SByte||r==t.System.Int16||r==t.System.UInt16)return 0;if(r==String)return String.empty;if(r==Boolean)return!1;if(r==t.System.Char)return" ";if(r==t.System.Double)return 0;if(r==t.System.Single)return 0;if(r==t.System.Decimal)return 0;if(r==t.System.DateTime)return null;if(r==t.System.TimeSpan)return null;if(n.findType(r,u))return t.System.Activator.createInstance(r);if(n.findType(r,t.System.Drawing.Image))return null;if(r==t.System.NullableInt32||r==t.System.NullableUInt32||r==t.System.NullableInt64||r==t.System.NullableUInt64||r==t.System.NullableByte||r==t.System.NullableSByte||r==t.System.NullableInt16||r==t.System.NullableUInt16)return 0;if(r==t.System.NullableBoolean)return!1;if(r==t.System.NullableChar)return" ";if(r==t.System.NullableDouble)return 0;if(r==t.System.NullableSingle)return 0;if(r==t.System.NullableDecimal)return 0;if(r==t.System.NullableDateTime)return null;if(r==t.System.NullableTimeSpan)return null}var o=t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator;if(r==t.System.Int32||r==t.System.UInt32||r==t.System.Int64||r==t.System.UInt64||r==t.System.Byte||r==t.System.SByte||r==t.System.Int16||r==t.System.UInt16)return parseInt(e);if(r==String)return e;if(r==Boolean)return"true"==e.toLower();if(r==t.System.Char)return e.substring(0,1);if(r==t.System.Double||r==t.System.Single||r==t.System.Decimal)return parseFloat(e.replaceAll(".",",").replaceAll(",",o));if(r==t.System.Guid)return String.isNullOrEmpty(e)?t.System.Guid.empty:new t.System.Guid(e);if(r==t.System.DateTime)try{return new i(Date.parse(e))}finally{}else if(r==t.System.TimeSpan)try{return t.System.TimeSpan.fromString(e)}finally{}else{if(r==t.System.NullableInt32||r==t.System.NullableUInt32||r==t.System.NullableInt64||r==t.System.NullableUInt64||r==t.System.NullableByte||r==t.System.NullableSByte||r==t.System.NullableInt16||r==t.System.NullableUInt16)return parseInt(e);if(r==t.System.NullableBoolean)return"true"==e.toLower();if(r==t.System.NullableChar)return e.substring(0,1);if(r==t.System.NullableDouble||r==t.System.NullableSingle||r==t.System.NullableDecimal)return parseFloat(e.replaceAll(".",",").replaceAll(",",o));if(r==t.System.NullableDateTime)try{return new i(Date.parse(e))}finally{}else if(r==t.System.NullableTimeSpan)try{return t.System.TimeSpan.fromString(e)}finally{}else{if(n.findType(r,t.System.Drawing.Image))return c.stringToImage(e);if(n.findType(r,u))return p.stringToRange(e)}}return null},h.prototype.setValue=function(e){if(null==e)this.value=null;else if(e.sti_is(String))this.value=e;else if(e.sti_is(t.System.Char))this.value=e.toString();else if(e.sti_is(t.System.Guid))this.value=e.toString();else if(e.sti_is(t.System.NullableChar))this.value=e.toString();else if(e.sti_is(Boolean))this.value=e.toString().toLower();else if(e.sti_is(t.System.NullableBoolean))this.value=e.toString().toLower();else if(e.sti_is(t.System.Drawing.Image))this.value=c.imageToString(e);else if(e.sti_is(t.Report.Range))this.value=p.rangeToString(e);else if(e.sti_is(Array))this.value=e.select(function(t){return t.toString()}).toArray();else if(e.sti_is(t.System.TimeSpan))try{this.value=e.toString()}finally{}else if(e.sti_is(t.System.DateTime))try{this.value=e.toString()}finally{}else if(e.sti_is(t.System.NullableTimeSpan))try{this.value=e.toString()}finally{}else if(e.sti_is(t.System.NullableDateTime))try{this.value=e.toString()}finally{}else if(this.type==t.System.Int32||this.type==t.System.UInt32||this.type==t.System.Int64||this.type==t.System.UInt64||this.type==t.System.Byte||this.type==t.System.SByte||this.type==t.System.Int16||this.type==t.System.UInt16||this.type==t.System.Double||this.type==t.System.Single||this.type==t.System.Decimal||this.type==t.System.NullableInt32||this.type==t.System.NullableUInt32||this.type==t.System.NullableInt64||this.type==t.System.NullableUInt64||this.type==t.System.NullableByte||this.type==t.System.NullableSByte||this.type==t.System.NullableInt16||this.type==t.System.NullableUInt16||this.type==t.System.NullableDouble||this.type==t.System.NullableSingle||this.type==t.System.NullableDecimal)try{this.value=e.toString()}finally{}},h.prototype.getNativeValue=function(){return o.prototype.getValueProp.call(this)},h.getDateTimeFromValue=function(e){if("null"==e)return i.now;try{return new t.System.DateTime(Date.parse(e))}catch(e){t.System.StiError.showError(e,!1)}return i.now},h.getValueFromDateTime=function(t){try{return t.toString()}finally{}},h.prototype.eval=function(e){return t.Report.Engine.StiParser.StiParser.prepareVariableValue(this,e,null,!0)},h.prototype.toString=function(){return this.isCategory?this.category:this.alias==this.name?this.name:this.name+" ["+this.alias+"]"},h}(o);e.StiVariable=g}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t}();t.StiVariableAsParameterHelper=e}(e=t.Dictionary||(t.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=t.System.ICloneable,n=t.System.Collections.IComparer,o=t.Base.StiJson,a=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.directionFactor=1,e}return __extends(i,t),i.prototype.implements=function(){return[n,r]},i.prototype.saveToJsonObjectEx=function(t){if(0==this.list.count)return null;for(var e=new o,i=0,r=0,n=this.list;r<n.length;r++){var a=n[r];e.addPropertyJObject(i.toString(),a.saveToJsonObjectEx()),i++}return e},i.prototype.loadFromJsonObjectEx=function(t,i){for(var r=0,n=t.properties();r<n.length;r++){var o=n[r],a=new e.StiVariable;a.loadFromJsonObjectEx(o.value,i),this.list.add(a)}},i.prototype.loadFromXml=function(t,i){for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if("value"==n.nodeName){var o=e.StiVariable.loadFromXml(n,i);this.list.add(o)}}},i.prototype.compare=function(t,e){var i=t,r=e,n=i.category.compareTo(r.category)*this.directionFactor;return 0==n?i.name.compareTo(r.name)*this.directionFactor:n},i.prototype.sort=function(t){void 0===t&&(t=e.StiSortOrder.Asc),t==e.StiSortOrder.Asc?this.directionFactor=1:this.directionFactor=-1,this.list.sort()},i.prototype.toList=function(){return this._list},i.prototype.add=function(t){t.name.length>0&&this.contains(t.name)&&this.remove(t.name),this.list.add(t)},i.prototype.addRange=function(t){for(var e=0,i=t.list;e<i.length;e++){var r=i[e];this.add(r)}},i.prototype.contains=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){if(i[e].name.toLower()==t)return!0}return!1},i.prototype.containsCategory=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){if(i[e].category.toLower()==t)return!0}return!1},i.prototype.indexOf=function(t){if(t.sti_is(e.StiVariable))return this.list.indexOf(t);var i=t;i=i.toLower();for(var r=0,n=0,o=this.list;n<o.length;n++){if(o[n].name.toLower()==i)return r;r++}return-1},i.prototype.insert=function(t,e){this.list.insert(t,e)},i.prototype.remove=function(t){if(t.sti_is(e.StiVariable)){var i=t;i.category.length>0&&1==this.getVariablesCount(i.category)?i.name="":this.list.remove(i)}else{var r=t;r=r.toLower();var n=0;while(n<this.list.count){var i=this.list[n];i.name.toLower()==r?this.list.removeAt(n):n++}}},i.prototype.getByIndex=function(t){return this.list[t]},i.prototype.setByIndex=function(t,e){this.list[t]=e},i.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t)return r}return null},i.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].name.toLower()==t)return void(this.list[i]=e)}this.add(e)},Object.defineProperty(i.prototype,"items",{get:function(){return this._list},enumerable:!0,configurable:!0}),i.prototype.clone=function(){for(var t=new i,e=0,r=this.list;e<r.length;e++){var n=r[e];t.add(n.clone())}return t},i.prototype.moveCategoryTo=function(t,e){if(t==e)return;var i=this.getFirstCategoryIndex(t),r=this.getFirstCategoryIndex(e);if(i==r)return;for(var n=new Array,o=0,a=this.list;o<a.length;o++){var s=a[o];s.category==t&&n.add(s)}this.removeCategory(t);for(var l=i>r?this.getFirstCategoryIndex(e):this.getLastCategoryIndex(e)+1,u=0,c=n;u<c.length;u++){var s=c[u];this.insert(l,s),l++}},i.prototype.getFirstCategoryIndex=function(t){for(var e=0,i=0,r=this.list;i<r.length;i++){if(t==r[i].category)return e;e++}return-1},i.prototype.getLastCategoryIndex=function(t){for(var e=-1,i=0,r=!1,n=0,o=this.list;n<o.length;n++){if(t==o[n].category)e=i,r=!0;else if(r)break;i++}return e},i.prototype.renameCategory=function(t,e){t=t.toLower();for(var i=0,r=this.list;i<r.length;i++){var n=r[i];n.category.toLower()==t&&(n.category=e)}},i.prototype.removeCategory=function(t){var e=0;while(e<this.items.length)this.items[e].category==t?this.removeAt(e):e++},i.prototype.getVariablesCount=function(t){for(var e=0,i=0,r=this.list;i<r.length;i++){r[i].category==t&&e++}return e},i}(i);e.StiVariablesCollection=a}(i=e.Dictionary||(e.Dictionary={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiFilterHelper,r=t.Report.Components.StiDataHelper,n=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return __extends(n,e),n.renderAtEnd=function(t){null!=t.chartInfo.storedForProcessAtEndChart&&n.renderChart(t),t.chartInfo.storedForProcessAtEndChart=null},n.renderChart=function(e){var i=null;if(null!=e.chartInfo.storedForProcessAtEndChart)i=e.chartInfo.storedForProcessAtEndChart;else if(i=e.clone(),e.processAtEnd)return i;return StiOptions.Engine.dontSaveDataSourceBeforeChartRendering||e.saveState("ChartRender"),null==e.masterComponent&&r.setData(e,!0,e.parent),t.Report.Chart.StiChartHelper.createChart(e,i),StiOptions.Engine.dontSaveDataSourceBeforeChartRendering||e.restoreState("ChartRender"),i},n.prototype.prepare=function(t){e.prototype.prepare.call(this,t),i.setFilter(t),(t.height>t.page.height||t.height>t.parent.height)&&(t.height=Math.min(t.page.height,t.parent.height))},n.prototype.internalRender=function(t){var e=t,i=n.renderChart(e),r=i;return e.processAtEnd&&(e.chartInfo.storedForProcessAtEndChart=i),i},n}(e.StiComponentBuilder);e.StiChartBuilder=n}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDataBand,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.getMaster=function(t){var e=t.parent.components.indexOf(t)-1;while(e>=0){if(t.parent.components.list[e].sti_is(i))return t.parent.components.list[e];e--}return null},e}(e.StiBandBuilder);e.StiFooterBandBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDockStyle,r=t.Report.Components.StiContainer,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.internalRender=function(n){var o=n,a=e.StiFooterBandBuilder.getMaster(o);if(null==a||a.columns<2)return t.prototype.internalRender.call(this,o);var s=new r;s.name=o.name,s.width=o.width,s.height=o.height;for(var l=a.getColumnWidth()+a.columnGaps,u=0;u<a.columns;u++){if(o.report.column=u+1,!(a.position+u<a.count&&!o.printIfEmpty||o.printIfEmpty))break;var c=t.prototype.internalRender.call(this,o);c.dockStyle=i.None,c.width=l,s.components.add(c),a.rightToLeft?c.left=s.width-l*(u+1)+a.columnGaps:c.left=l*u,c.top=0}return s},n}(e.StiFooterBandBuilder);e.StiColumnFooterBandBuilder=n}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDataBand,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.getMaster=function(t){var e=t.parent.components.indexOf(t)+1;while(e<t.parent.components.count){if(t.parent.components.list[e].sti_is(i))return t.parent.components.list[e];e++}return null},e}(e.StiBandBuilder);e.StiHeaderBandBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDockStyle,r=t.Report.Components.StiContainerHelper,n=t.Report.Components.StiContainer,o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.internalRender=function(o){var a=o,s=e.getMaster(a);if(null==s||s.columns<2)return t.prototype.internalRender.call(this,a);var l=new n;l.name=a.name,l.width=a.width,l.height=a.height,l.canGrow=a.canGrow,l.canShrink=a.canShrink,l.parentComponentIsBand=!0;for(var u=s.getColumnWidth()+s.columnGaps,c=0;c<s.columns;c++){if(a.report.column=c+1,!(s.position+c<s.count&&!a.printIfEmpty||a.printIfEmpty))break;var p=t.prototype.internalRender.call(this,o);p.dockStyle=i.None,p.width=u,l.components.add(p),s.rightToLeft?p.left=l.width-u*(c+1)+s.columnGaps:p.left=u*c,p.top=0}var h=l.width;return r.checkSize(l),l.parentComponentIsCrossBand||(l.width=h),l},e}(e.StiHeaderBandBuilder);e.StiColumnHeaderBandBuilder=o}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiPrintOnType,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.prepare=function(e){if(t.prototype.prepare.call(this,e),e.printOn!=i.AllPages){var r=e.getStartPoint();null!=r&&(r.printOn=e.printOn);var n=e.getEndPoint();null!=n&&(n.printOn=e.printOn)}},e}(e.StiComponentBuilder);e.StiCrossLinePrimitiveBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.CrossTab.Core.StiSummaryDirection,r=t.Report.CrossTab.StiCrossColumn,n=t.Report.CrossTab.StiCrossSummary,o=t.Report.Components.StiFilterHelper,a=t.Report.Components.StiDataBand,s=t.Report.Components.StiDockStyle,l=t.System.Drawing.Rectangle,u=t.Report.CrossTab.StiCrossTab,c=t.Report.CrossTab.StiCrossTabParams,p=t.Report.CrossTab.StiCrossTabHelper,h=t.Report.Components.StiContainer,g=t.Report.CrossTab.StiCrossHorAlignment,m=t.Report.Components.StiCrossHeaderInteraction,d=t.System.Collections.Hashtable,S=function(t){function S(){return null!==t&&t.apply(this,arguments)||this}return __extends(S,t),S.getCollapsingName=function(t){return this.getCollapsingName2(t.name,t.headerLevel,t.headerValue)},S.getCollapsingName2=function(t,e,i){return String.stiFormat("{0}.{1}.{2}",t,e,i)},S.isCollapsed=function(t){return this.isCollapsed2(t,t.headerLevel,t.headerValue)},S.isCollapsed2=function(t,e,i){if(null==t.interaction||t.interaction.sti_is(m)&&!t.interaction.collapsingEnabled)return!1;if(null==t.report.interactionCollapsingStates)return!0;var r=t.report.interactionCollapsingStates[this.getCollapsingName2(t.name,e,i)];if(r.sti_is(Boolean))return r.toBoolean();return!0},S.setCollapsed=function(t,e){if(null==t.interaction||t.interaction.sti_is(m)&&!t.interaction.collapsingEnabled)return;null==t.report.interactionCollapsingStates&&(t.report.interactionCollapsingStates=new d),t.report.interactionCollapsingStates[this.getCollapsingName(t)]=e},S.makeHorAlignment=function(t,e,i,r,n){if(t.wrap)return;if(t.horAlignment==g.Width)e.left=0,e.width=r,p.makeHorAlignmentByWidth(e,i);else if(t.horAlignment!=g.None){e.left=0,e.width=r*n;var o=0,a=0,s={ref:o},l={ref:a};p.calculateMaxAndMin(e,s,l,i),o=s.ref,a=l.ref;for(var u=i;u<e.components.count;u++){var c=e.components.getByIndex(u);if(t.horAlignment==g.Left)c.left-=o;else if(t.horAlignment==g.Right)c.left+=e.width-a;else if(t.horAlignment==g.Center){var h=(e.width-(a-o))/2;c.left-=o-h}}}},S.prototype.renderCrossTabOnDataBand=function(t,e,i){var r=t.destinationRectangle.clone();r.x=0,r.y=0,r.width=e.parent.width-r.left,r.height=Number.MAX_VALUE;var n=t.startRow,o=t.startColumn;t.startColumn=0;var a=e.page,s=a.pageWidth-a.margins.left-a.margins.right,u=s;a.unlimitedBreakable||(r.width=1e9,u=1e9,s=1e9);var c=i.components.count,h=null!=e.crossTabInfo.cross.leftCrossTitle&&e.crossTabInfo.cross.leftCrossTitle.enabled&&null!=e.crossTabInfo.cross.rightCrossTitle&&e.crossTabInfo.cross.rightCrossTitle.enabled,g=null!=e.crossTabInfo.cross.leftCrossTitle&&e.crossTabInfo.cross.leftCrossTitle.printOnAllPages&&null!=e.crossTabInfo.cross.rightCrossTitle&&e.crossTabInfo.cross.rightCrossTitle.printOnAllPages;h||(h=null!=e.crossTabInfo.cross.rowTitleFields&&e.crossTabInfo.cross.rowTitleFields.count>0&&e.crossTabInfo.cross.rowTitleFields.toList().any(function(t){return t.enabled})),g||(g=null!=e.crossTabInfo.cross.rowTitleFields&&e.crossTabInfo.cross.rowTitleFields.count>0&&null!=e.crossTabInfo.cross.summaryCrossTitle&&e.crossTabInfo.cross.summaryCrossTitle.printOnAllPages);var m=0,d=0;while(m<e.crossTabInfo.cross.rowCount){var f=new l;e.printTitleOnAllPages?0==m?(f.height=e.report.engine.freeSpace,a.unlimitedHeight&&!a.unlimitedBreakable&&(f.height=1e9),f.height-=e.top):f.height=e.report.engine.staticBands.reservedFreeSpace:f.height=1e9;while(t.startColumn<e.crossTabInfo.cross.colCount){var y=0,b=0;f.width=s;var C=0,v=this.getActualHeaderRowCount(e);if(e.wrap&&e.rightToLeft){for(var I=e.crossTabInfo.cross.widths.length-1;I>e.crossTabInfo.cross.widths.length-v-1;I--)C+=e.crossTabInfo.cross.widths[I];f.width-=C}if(o=p.getEndCol(e,t.startColumn,f),0!=m&&e.printTitleOnAllPages){h&&g&&(1==m&&(r.y+=.7*e.crossTabInfo.cross.heights[0]),p.renderCells(e,i,t.startColumn,0,o,1,r),r.y+=e.crossTabInfo.cross.heights[0],y+=e.crossTabInfo.cross.heights[0],f.height-=e.crossTabInfo.cross.heights[0]);var A=this.getActualHeaderRowCount(e);if(0!=A&&1!=m)if(h){if(g){p.renderCells(e,i,t.startColumn,1,o,A+1,r);for(var w=1;w<=A;w++)r.y+=e.crossTabInfo.cross.heights[w],y+=e.crossTabInfo.cross.heights[w],f.height-=e.crossTabInfo.cross.heights[w]}}else{p.renderCells(e,i,t.startColumn,1,o,A+1,r);for(var w=1;w<=A;w++)r.y+=e.crossTabInfo.cross.heights[w],y+=e.crossTabInfo.cross.heights[w],f.height-=e.crossTabInfo.cross.heights[w]}o=p.getEndCol(e,t.startColumn,f)}if(n=p.getEndRow(e,m,f),p.renderCells(e,i,t.startColumn,m,o,n,r),e.wrap){if(e.rightToLeft&&o<e.crossTabInfo.cross.colCount-1){for(var T=0,I=t.startColumn;I<o;I++)T+=e.crossTabInfo.cross.widths[I];r.x+=T,p.renderCells(e,i,e.crossTabInfo.cross.widths.length-v,m,e.crossTabInfo.cross.widths.length,n,r),r.x-=T}var B=p.getCellsRect(e,t.startColumn,t.startRow,o,n);f.height-B.height<B.height+e.wrapGap?(d++,r.y=e.page.height*d,r.x=0,f.height=0==m?e.report.engine.freeSpace-e.top:e.report.engine.staticBands.reservedFreeSpace):(r.y+=B.height+e.wrapGap,f.height-=B.height+e.wrapGap,r.x=0),t.startColumn=o}else r.x+=u-b,r.width=s,t.startColumn=o,0!=m&&(r.y-=y,f.height+=y)}e.wrap||(r.y+=f.height,r.x=0),m=n,t.startColumn=0}var R=i.containerInfo.setSegmentPerWidth=p.getPageSegmentsRequired(e);if(S.makeHorAlignment(e,i,c,e.parent.width,R),!a.unlimitedBreakable){for(var P=0,F=c;F<i.components.count;F++){var x=i.components.getByIndex(F);P=Math.max(x.right,P)}var D=a.width,k=a.segmentPerWidth;while(D<P)k++,i.containerInfo.setSegmentPerWidth=k,D+=a.width}return i},S.prototype.renderCrossTab=function(i,r){var n=null!=e.StiSubReportsHelper.getParentBand(r),o=i.destinationContainer;if(null==o&&(o=t.prototype.internalRender.call(this,r).sti_as(h),o.components.clear()),o.dockStyle=s.None,r.page.unlimitedHeight&&!r.page.unlimitedBreakable||(o.canBreak=!0),!i.allowRendering)return o;if((null==r.dataSource||r.dataSource.isEmpty)&&!r.printIfEmpty)return i.renderingIsFinished=!0,o;if(n)return this.renderCrossTabOnDataBand(i,r,o);var a=i.destinationRectangle.clone();r.page.unlimitedHeight&&(a.height=1e8),a.x=0,a.y=0;var l=i.startRow,u=i.startColumn;if(r.wrap){var c=o.sti_as(h);while(i.startColumn<r.crossTabInfo.cross.colCount){l=p.getEndRow(r,i.startRow,a),u=p.getEndCol(r,i.startColumn,a),p.renderCells(r,o,i.startColumn,i.startRow,u,l,a);var g=p.getCellsRect(r,i.startColumn,i.startRow,u,l);if(u==r.crossTabInfo.cross.colCount&&l==r.crossTabInfo.cross.rowCount)return i.renderingIsFinished=!0,o;if(u==r.crossTabInfo.cross.colCount?(i.startRow=l,i.startColumn=0):i.startColumn=u,!(a.height-r.wrapGap-g.height>g.height))return i.renderingIsFinished=!1,o;a.y=g.height+r.wrapGap,a.height-=g.height+r.wrapGap}return i.renderingIsFinished=!0,o}a.x=0,a.y=0,u=p.getEndCol(r,i.startColumn,a),l=p.getEndRow(r,i.startRow,a);var m=null!=r.crossTabInfo.cross.leftCrossTitle&&r.crossTabInfo.cross.leftCrossTitle.enabled&&null!=r.crossTabInfo.cross.rightCrossTitle&&r.crossTabInfo.cross.rightCrossTitle.enabled,d=null!=r.crossTabInfo.cross.leftCrossTitle&&r.crossTabInfo.cross.leftCrossTitle.printOnAllPages&&null!=r.crossTabInfo.cross.rightCrossTitle&&r.crossTabInfo.cross.rightCrossTitle.printOnAllPages,f=a.x,y=a.y,b=a.x,C=a.y;if(0!=i.startColumn)for(var v=0;v<r.crossTabInfo.cross.rowFields.count;v++)if(r.crossTabInfo.cross.rowFields.getByIndex(v).printOnAllPages&&!r.rightToLeft){var I=r.crossTabInfo.cross.widths[v];f+=I,a.width-=I}if(0!=i.startRow)for(var A=0;A<r.crossTabInfo.cross.colFields.count;A++)r.crossTabInfo.cross.colFields.getByIndex(A).printOnAllPages&&(y+=r.crossTabInfo.cross.heights[A],a.height-=r.crossTabInfo.cross.heights[A]);if(m&&d&&0!=i.startRow&&(y+=r.crossTabInfo.cross.heights[r.crossTabInfo.cross.colFields.count],a.height-=r.crossTabInfo.cross.heights[r.crossTabInfo.cross.colFields.count]),0!=i.startColumn&&!p.isRowFieldsEmpty(r)){a.x=b,a.y=y;for(var w=a.height,T=i.startRow,B=i.startRow;B<l;B++){if((w-=r.crossTabInfo.cross.heights[B])<0)break;T++}l=T;var v=0;while(v<r.crossTabInfo.cross.rowFields.count){var R=v;while(R<r.crossTabInfo.cross.rowFields.count&&r.crossTabInfo.cross.rowFields.getByIndex(R).printOnAllPages&&!r.rightToLeft)R++;if(v!=R){if(i.startRow>0){var P=a.clone();P.y=0,P.height-=a.y,p.renderCells(r,o,0,0,R,r.crossTabInfo.cross.getCorrectedColumnsHeaderHeight(),P)}p.renderCells(r,o,v,i.startRow,R,l,a),a.x+=r.crossTabInfo.cross.widths[v]}v=R+1}}if(0!=i.startRow){a.x=f,a.y=C;for(var F=a.width,x=i.startColumn,D=i.startColumn;D<u;D++){if((F-=r.crossTabInfo.cross.widths[D])<0)break;x++}u=x,m&&d&&(p.renderCells(r,o.sti_as(h),i.startColumn,0,u,1,a),a.y+=r.crossTabInfo.cross.heights[0]);var A=0;while(A<r.crossTabInfo.cross.colFields.count){var k=A;while(k<r.crossTabInfo.cross.colFields.count&&r.crossTabInfo.cross.colFields.getByIndex(k).printOnAllPages)k++;A!=k&&(m?(p.renderCells(r,o,i.startColumn,A+1,u,k+1,a),a.y+=r.crossTabInfo.cross.heights[A+1]):(p.renderCells(r,o,i.startColumn,A,u,k,a),a.y+=r.crossTabInfo.cross.heights[A])),A=k+1}}a.x=f,a.y=y;var E=!0;while(E){if(E=!1,u=p.getEndCol(r,i.startColumn,a),l=p.getEndRow(r,i.startRow,a),i.startRow<l&&p.renderCells(r,o,i.startColumn,i.startRow,u,l,a),i.renderingIsFinished=u==r.crossTabInfo.cross.colCount&&l==r.crossTabInfo.cross.rowCount,i.startColumn=u,u==r.crossTabInfo.cross.colCount&&(i.startColumn=0,i.startRow=l),n||S.makeHorAlignment(r,o,0,null!=i.destinationContainer?i.destinationContainer.width:r.parent.width,1),r.canGrow){o.canGrow=!1,o.canShrink=!0;var G=o.getActualSize();o.width=G.width,o.height=G.height,o.canGrow=!0}if(r.page.unlimitedHeight){var _=0,L=0;while(_<r.crossTabInfo.cross.rowCount)L+=r.crossTabInfo.cross.heights[_],_++;a.y+=L,i.renderingIsFinished?i.destinationContainer.containerInfo.setSegmentPerWidth=Math.trunc(a.y/i.destinationRectangle.height):E=!0}}return o},S.prototype.getActualHeaderRowCount=function(t){for(var e=0,o=0,a=0,s=t.components.list;a<s.length;a++){var l=s[a];l.sti_is(n)&&l.enabled&&o++,l.sti_is(r)&&l.enabled&&e++}return o>1&&t.summaryDirection==i.LeftToRight&&e++,e},S.prototype.prepare=function(e){t.prototype.prepare.call(this,e),o.setFilter(e)},S.prototype.unPrepare=function(e){t.prototype.unPrepare.call(this,e),p.clearCross(e.sti_as(u))},S.prototype.internalRender=function(i){var r=i.sti_as(u),n=new c,o=null!=e.StiSubReportsHelper.getParentBand(r);n.allowRendering=o;var s=i.parent.sti_as(a);if(n.destinationRectangle=null!=s?s.parent.clientRectangle.clone():r.clientRectangle.clone(),o)return p.createCross(r),this.renderCrossTab(n,r);var l=t.prototype.internalRender.call(this,i).sti_as(h);return null!=l&&(l.width=i.width,l.height=i.height,l.components.clear()),l},S}(e.StiContainerBuilder);e.StiCrossTabBuilder=S}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.DateTime,r=t.Report.Events.StiValueEventArgs,n=t.Report.Components.StiDataBand,o=t.Report.Components.StiGroupHeaderBand,a=t.Report.Components.StiHeaderBand,s=t.Report.Components.StiEmptyBand,l=t.Report.Components.StiChildBand,u=t.System.Collections.Hashtable,c=t.Report.Components.StiGroupFooterBand,p=t.Report.Components.StiFooterBand,h=t.Report.Components.StiSubReport,g=t.Report.Components.StiKeepDetails,m=t.Report.Components.IStiMasterComponent,d=t.Report.Components.IStiPrintOnAllPages,S=t.Report.Components.StiDataHelper,f=t.Report.Components.StiComponentType,y=t.Report.Components.IStiPageBreak,b=t.Report.Components.IStiRenderMaster,C=t.Report.Components.IStiDataSource,v=t.Report.Components.IStiBusinessObject,I=t.Report.Components.StiPage,A=t.Report.Components.StiComponentsCollection,w=t.Report.Components.StiContainer,T=t.Report.Components.StiBandInteraction,B=function(B){function R(){return null!==B&&B.apply(this,arguments)||this}return __extends(R,B),R.prototype.getGroupHeaders=function(t){var e=new A,i=t.parent.components.indexOf(t)-1;while(i>=0){if(!t.parent.components.getByIndex(i).sti_is(a))if(t.parent.components.getByIndex(i).sti_is(l));else if(t.parent.components.getByIndex(i).sti_is(s));else{if(!t.parent.components.getByIndex(i).sti_is(o))break;e.insert(0,t.parent.components.getByIndex(i))}i--}return e},R.prototype.getGroupFooters=function(t){var e=new A,i=t.parent.components.indexOf(t)+1;while(i<t.parent.components.count){if(!t.parent.components.getByIndex(i).sti_is(p))if(t.parent.components.getByIndex(i).sti_is(l));else if(t.parent.components.getByIndex(i).sti_is(s));else{if(!t.parent.components.getByIndex(i).sti_is(c))break;e.add(t.parent.components.getByIndex(i))}i++}return e},R.prototype.groupsComparison=function(t){for(var e=0,i=t.dataBandInfo.groupHeaderComponents.list;e<i.length;e++){i[e].groupHeaderBandInfo.groupFooter=null}for(var r=0;r<t.dataBandInfo.groupFooterComponents.count;r++){var n=t.dataBandInfo.groupHeaderComponents.count-r-1;n>=0?(t.dataBandInfo.groupFooterComponents.getByIndex(r).groupFooterBandInfo.groupHeader=t.dataBandInfo.groupHeaderComponents.getByIndex(n),t.dataBandInfo.groupHeaderComponents.getByIndex(n).groupHeaderBandInfo.groupFooter=t.dataBandInfo.groupFooterComponents.getByIndex(r)):t.dataBandInfo.groupFooterComponents.getByIndex(r).groupFooterBandInfo.groupHeader=null}},R.prototype.findHeaders=function(t){if(null==t)return;if(null==t.parent)return;if(null==t.dataBandInfo)return;t.dataBandInfo.headers=new A;var e=t.parent.components.indexOf(t)-1;while(e>=0){var i=t.parent.components.list[e];if(!i.sti_is(o))if(i.sti_is(l));else if(i.sti_is(s));else{if(!i.sti_is(a))break;t.dataBandInfo.headers.insert(0,i)}e--}},R.prototype.findHierarchicalHeaders=function(e){if(null==e)return;if(null==e.parent)return;if(null==e.dataBandInfo)return;var i=e.sti_as(t.Report.Components.StiHierarchicalBand);if(null!=i&&i.headers.trim().length>0){e.dataBandInfo.hierarchicalHeaders=new A;for(var r=i.headers.split(";"),n=new u,o=0,a=r;o<a.length;o++){var s=a[o],l=s.trim();n.set(l,l)}for(var c=0,p=e.dataBandInfo.headers.list;c<p.length;c++){var h=p[c];null!=n.get(h.name)&&e.dataBandInfo.hierarchicalHeaders.add(h)}for(var g=0,m=e.dataBandInfo.hierarchicalHeaders.list;g<m.length;g++){var h=m[g];e.dataBandInfo.headers.contains(h)&&e.dataBandInfo.headers.remove(h,!1)}}},R.prototype.findFooters=function(e){if(null==e)return;if(null==e.parent)return;if(null==e.dataBandInfo)return;e.dataBandInfo.footersOnAllPages=new A,e.dataBandInfo.footersOnLastPage=new A;var i=e.parent.components.indexOf(e)+1;while(i<e.parent.components.count){var r=e.parent.components.list[i];if(!r.sti_is(t.Report.Components.StiGroupFooterBand))if(r.sti_is(l));else if(r.sti_is(s));else if(r.sti_is(t.Report.Components.Table.StiTable)&&!r.isConverted);else{if(!r.sti_is(p))break;r.printOnAllPages?e.dataBandInfo.footersOnAllPages.add(r):e.dataBandInfo.footersOnLastPage.add(r)}i++}},R.prototype.findHierarchicalFooters=function(e){if(null==e)return;if(null==e.parent)return;if(null==e.dataBandInfo)return;var i=e.sti_as(t.Report.Components.StiHierarchicalBand);if(null!=i&&i.footers.trim().length>0){e.dataBandInfo.hierarchicalFooters=new A;for(var r=i.footers.split(";"),n=new u,o=0,a=r;o<a.length;o++){var s=a[o],l=s.trim();n.set(l,l)}for(var c=0,p=e.dataBandInfo.footersOnAllPages.list;c<p.length;c++){var h=p[c];null!=n.get(h.name)&&e.dataBandInfo.hierarchicalFooters.add(h)}for(var g=0,m=e.dataBandInfo.footersOnLastPage.list;g<m.length;g++){var h=m[g];null!=n.get(h.name)&&e.dataBandInfo.hierarchicalFooters.add(h)}for(var d=0,S=e.dataBandInfo.hierarchicalFooters.list;d<S.length;d++){var h=S[d];e.dataBandInfo.footersOnAllPages.contains(h)&&e.dataBandInfo.footersOnAllPages.remove(h,!1),e.dataBandInfo.footersOnLastPage.contains(h)&&e.dataBandInfo.footersOnLastPage.remove(h,!1)}}},R.prototype.findEmptyBands=function(e){if(null==e)return;if(null==e.parent)return;if(null==e.dataBandInfo)return;e.dataBandInfo.emptyBands=new A;var i=e.parent.components.indexOf(e)+1;while(i<e.parent.components.count){var r=e.parent.components.list[i];if(r.sti_is(s)&&r.enabled&&e.dataBandInfo.emptyBands.add(r),r.sti_is(t.Report.Components.Table.StiTable)&&!r.isConverted);else if(r.sti_is(p)||r.sti_is(t.Report.Components.StiGroupFooterBand)||r.sti_is(a)||r.sti_is(o)||r.sti_is(t.Report.Components.StiDataBand))break;i++}},R.prototype.findGroupHeaders=function(t){if(null==t)return;if(null==t.parent)return;if(null==t.dataBandInfo)return;t.dataBandInfo.groupHeaders=new A;var e=t.parent.components.indexOf(t)-1;while(e>=0){var i=t.parent.components.list[e];if(!i.sti_is(a))if(i.sti_is(l));else if(i.sti_is(s));else{if(!i.sti_is(o))break;t.dataBandInfo.groupHeaders.insert(0,i)}e--}},R.prototype.findGroupFooters=function(e){if(null==e)return;if(null==e.parent)return;if(null==e.dataBandInfo)return;e.dataBandInfo.groupFooters=new A;var i=e.parent.components.indexOf(e)+1;while(i<e.parent.components.count){var r=e.parent.components.list[i];if(!r.sti_is(p))if(r.sti_is(l));else if(r.sti_is(s));else if(r.sti_is(t.Report.Components.Table.StiTable)&&!r.isConverted);else{if(!r.sti_is(t.Report.Components.StiGroupFooterBand))break;e.dataBandInfo.groupFooters.add(r)}i++}},R.prototype.findDetailDataBands=function(e){if(null==e)return;if(null==e.parent)return;if(null==e.dataBandInfo)return;e.dataBandInfo.detailDataBands=new A;var i=e.page.getComponents(),r=e;if(e.isBusinessObjectEmpty)for(var o=0,a=i.list;o<a.length;o++){var l=a[o];if(l.sti_is(s))continue;if(l==e)continue;l.sti_is(t.Report.Components.Table.StiTable)&&!l.isConverted&&e.name==l.name+"_DB"&&(r=l);var c=l.sti_as(m);if(null!=c&&c.sti_is(t.Report.Components.StiDataBand)&&(c.masterComponent==e||c.masterComponent==r)&&(c.dataSource!=r.dataSource||null==c.dataSource&&null==r.dataSource)){var p=l.parent;while(null!=p&&!p.sti_is(I)){if(p==e)break;p=p.parent}p!=e&&e.dataBandInfo.detailDataBands.add(l)}var g=l.sti_as(h);if(null!=g&&null!=g.subReportPage)for(var d=0,S=g.subReportPage.getComponents().list;d<S.length;d++){var f=S[d],y=f.sti_as(m);null==y||!y.sti_is(t.Report.Components.StiDataBand)||y.masterComponent!=e&&y.masterComponent!=r||y.dataSource==r.dataSource&&(null!=y.dataSource||null!=r.dataSource)||(null==e.dataBandInfo.detailDataBandsFromSubReports&&(e.dataBandInfo.detailDataBandsFromSubReports=new u),e.dataBandInfo.detailDataBandsFromSubReports.set(f,null))}}else{for(var b=new A,C=new A,v=0,w=i.list;v<w.length;v++){var l=w[v],g=l.sti_as(h);null!=g&&null!=g.subReportPage?(b.addRange(g.subReportPage.getComponents()),C.addRange(g.subReportPage.getComponents())):b.add(l)}i=b;for(var T=!1,B=new u,R=0,P=i.list;R<P.length;R++){var l=P[R];if(l.sti_is(s))continue;if(l==e)continue;if(B.containsKey(l))continue;var F=l.sti_as(n);if(null!=F&&!F.isBusinessObjectEmpty){if(e.businessObject==F.businessObject.parentBusinessObject){var x=l.parent;while(null!=x&&!x.sti_is(I)){if(x==e)break;x=x.parent}x!=e&&e.dataBandInfo.detailDataBands.add(l),-1!=C.indexOf(l)&&(null==e.dataBandInfo.detailDataBandsFromSubReports&&(e.dataBandInfo.detailDataBandsFromSubReports=new u),e.dataBandInfo.detailDataBandsFromSubReports.set(l,!0)),T=!0}if(T&&this.isParentOrCurrentBO(F.businessObject.parentBusinessObject,e.businessObject))break;if(null!=F.dataBandInfo.detailDataBands)for(var D=0,k=F.dataBandInfo.detailDataBands.list;D<k.length;D++){var E=k[D];B.set(E,null)}}}}},R.prototype.isParentOrCurrentBO=function(t,e){while(null!=t){if(t==e)return!1;t=t.parentBusinessObject}return!0},R.prototype.findSubReports=function(t){if(null==t)return;if(null==t.parent)return;if(null==t.dataBandInfo)return;t.dataBandInfo.subReports=new A;for(var e=t.getComponents(),i=0,r=e.list;i<r.length;i++){var n=r[i];n.sti_is(h)&&t.dataBandInfo.subReports.add(n)}var o=t.parent.components.indexOf(t)+1;while(o<t.parent.components.count&&t.parent.components.list[o].sti_is(l)){for(var a=t.parent.components.list[o],s=a.getComponents(),u=0,c=s.list;u<c.length;u++){var n=c[u];n.sti_is(h)&&t.dataBandInfo.subReports.add(n)}o++}},R.prototype.findDetails=function(t){if(null==t)return;if(null==t.parent)return;if(null==t.dataBandInfo)return;t.dataBandInfo.details=new A;for(var e=t.getComponents(),i=0,r=e.list;i<r.length;i++){var n=r[i];n.sti_is(m)&&!n.sti_is(h)&&t.dataBandInfo.details.add(n)}},R.prototype.resetHeaders=function(t){t.dataBandInfo.headers=null},R.prototype.resetHierarchicalHeaders=function(t){t.dataBandInfo.hierarchicalHeaders=null},R.prototype.resetFooters=function(t){t.dataBandInfo.footersOnAllPages=null,t.dataBandInfo.footersOnLastPage=null},R.prototype.resetHierarchicalFooters=function(t){t.dataBandInfo.hierarchicalFooters=null},R.prototype.resetEmptyBands=function(t){t.dataBandInfo.emptyBands=null},R.prototype.resetGroupHeaders=function(t){t.dataBandInfo.groupHeaders=null},R.prototype.resetGroupFooters=function(t){t.dataBandInfo.groupFooters=null},R.prototype.resetDetailDataBands=function(t){t.dataBandInfo.detailDataBands=null},R.prototype.resetDetails=function(t){t.dataBandInfo.details=null},R.prototype.addKeepLevelAtLatestDataBand=function(t){t.report.engine.threads.selectThreadFromContainer(t),null!=t.report.engine.containerForRender&&t.report.engine.addKeepLevelAtLatestDataBand()},R.prototype.addKeepLevel=function(t){t.report.engine.threads.selectThreadFromContainer(t),null!=t.report.engine.containerForRender&&t.report.engine.addLevel()},R.prototype.removeKeepLevel=function(t){t.report.engine.threads.selectThreadFromContainer(t),null!=t.report.engine.containerForRender&&t.report.engine.removeLevel()},R.prototype.removeKeepGroupHeaders=function(t){for(var e=0,i=0,r=t.dataBandInfo.groupHeaders.list;i<r.length;i++){var n=r[i];t.dataBandInfo.groupHeaderResults[e]&&n.keepGroupHeaderTogether&&this.removeKeepLevel(t),e++}},R.prototype.removeKeepHeaders=function(t,e){for(var i=0;i<t.dataBandInfo.headers.count;i++){t.dataBandInfo.headers.getByIndex(i).sti_as(a).keepHeaderTogether&&(0==t.position||e[i])&&(this.removeKeepLevel(t),e[i]=!1)}},R.prototype.allowKeepDetails=function(t){if(!this.allowDetailDataBands(t))return!1;if(t.keepDetails==g.None)return!1;for(var e=0,i=t.dataBandInfo.detailDataBands.list;e<i.length;e++){if(i[e].parent.name!=t.parent.name)return!1}return!0},R.prototype.addKeepDetails=function(t){if(this.allowKeepDetails(t)){if(t.keepDetails==g.KeepFirstDetailTogether||t.keepDetails==g.KeepFirstRowTogether){var e=t.report.engine.keepFirstDetailTogetherTablesList.get(t).sti_as(n);null==e&&(e=t),t.report.engine.keepFirstDetailTogetherList.set(t,t)}this.addKeepLevel(t)}},R.prototype.removeKeepDetails=function(t){this.allowKeepDetails(t)&&t.keepDetails==g.KeepDetailsTogether&&this.removeKeepLevel(t),null!=t.masterComponent&&null!=t.report.engine.keepFirstDetailTogetherList.get(t.masterComponent)&&(this.removeKeepLevel(t),t.report.engine.keepFirstDetailTogetherList.set(t.masterComponent,null)),null!=t.report.engine.keepFirstDetailTogetherList.get(t)&&(this.removeKeepLevel(t),t.report.engine.keepFirstDetailTogetherList.set(t,null))},R.prototype.removeKeepDetailsRow=function(e){if(0==e.dataBandInfo.detailDataBands.count)return;var i=e;while(null!=i&&null!=i.masterComponent)null!=(i=i.masterComponent.sti_as(t.Report.Components.StiDataBand))&&i.keepDetails==g.KeepFirstRowTogether&&null!=e.report.engine.keepFirstDetailTogetherList.get(i)&&(this.removeKeepLevel(i),e.report.engine.keepFirstDetailTogetherList.set(i,null))},R.prototype.startBands=function(t,e){for(var i=0,r=e.list;i<r.length;i++){var n=r[i];this.startBand(t,n)}},R.prototype.startBand=function(t,e){var i=e.sti_as(d);null!=i&&i.printOnAllPages&&t.report.engine.bandsOnAllPages.add(t,e)},R.prototype.endBands=function(t){t.report.engine.bandsOnAllPages.remove(t)},R.prototype.getGroupHeaderResult=function(t,e){for(var i=0,r=0,n=t.dataBandInfo.groupHeaders.list;r<n.length;r++){if(n[r]==e)return t.dataBandInfo.groupHeaderResults[i];i++}return!1},R.prototype.getGroupFooterResult=function(t,e){for(var i=0,r=0,n=t.dataBandInfo.groupHeaders.list;r<n.length;r++){if(n[r]==e)return t.dataBandInfo.groupFooterResults[i];i++}return!1},R.prototype.linkGroupHeadersAndGroupFooters=function(t){for(var e=0,i=t.dataBandInfo.groupHeaders.list;e<i.length;e++){i[e].groupHeaderBandInfo.groupFooter=null}for(var r=0;r<t.dataBandInfo.groupFooters.count;r++){var n=t.dataBandInfo.groupHeaders.count-r-1;n>=0?(t.dataBandInfo.groupFooters.list[r].groupFooterBandInfo.groupHeader=t.dataBandInfo.groupHeaders.list[n],t.dataBandInfo.groupHeaders.list[n].groupHeaderBandInfo.groupFooter=t.dataBandInfo.groupFooters.list[r]):t.dataBandInfo.groupFooters.list[r].groupFooterBandInfo.groupHeader=null}},R.prototype.resetLinkGroupHeadersAndGroupFooters=function(t){if(null!=t.dataBandInfo.groupHeaders)for(var e=0,i=t.dataBandInfo.groupHeaders.list;e<i.length;e++){var r=i[e];r.groupHeaderBandInfo.groupFooter=null}if(null!=t.dataBandInfo.groupFooters)for(var n=0,o=t.dataBandInfo.groupFooters.list;n<o.length;n++){var r=o[n];r.groupFooterBandInfo.groupHeader=null}},R.prepareGroupResults=function(t){for(var r=0,n=0,o=t.dataBandInfo.groupHeaders.list;n<o.length;n++){var a=o[n];if(t.position>0)if(t.isBusinessObjectEmpty){t.position--;var s=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);t.position++;var l=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);s&&s.sti_is(i)&&l&&l.sti_is(i)?t.dataBandInfo.groupHeaderResults[r]=0!=i.compare(s,l):t.dataBandInfo.groupHeaderResults[r]=s!=l}else{var u=t.businessObject;u.setPrevValue();var s=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);u.restoreCurrentValue();var l=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);s&&s.sti_is(i)&&l&&l.sti_is(i)?t.dataBandInfo.groupHeaderResults[r]=0!=i.compare(s,l):t.dataBandInfo.groupHeaderResults[r]=s!=l}else t.dataBandInfo.groupHeaderResults[r]=!0;if(t.position<t.count-1)if(t.isBusinessObjectEmpty){t.position++;var c=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);t.position--;var l=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);c&&c.sti_is(i)&&l&&l.sti_is(i)?t.dataBandInfo.groupFooterResults[r]=0!=i.compare(c,l):t.dataBandInfo.groupFooterResults[r]=c!=l}else{var u=t.businessObject;u.setNextValue();var c=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);u.restoreCurrentValue();var l=e.StiGroupHeaderBandBuilder.getCurrentConditionValue(a);c&&c.sti_is(i)&&l&&l.sti_is(i)?t.dataBandInfo.groupFooterResults[r]=0!=i.compare(c,l):t.dataBandInfo.groupFooterResults[r]=c!=l}else t.dataBandInfo.groupFooterResults[r]=!0;r++}for(var p=0;p<t.dataBandInfo.groupHeaderResults.length;p++)if(t.dataBandInfo.groupHeaderResults[p]){for(var h=p+1;h<t.dataBandInfo.groupHeaderResults.length;h++)t.dataBandInfo.groupHeaderResults[h]=!0;break}for(var g=0;g<t.dataBandInfo.groupFooterResults.length;g++)if(t.dataBandInfo.groupFooterResults[g]){for(var h=g+1;h<t.dataBandInfo.groupFooterResults.length;h++)t.dataBandInfo.groupFooterResults[h]=!0;break}},R.prototype.renderGroupHeaders=function(t){t.parentBookmark=t.dataBandInfo.storedParentBookmark;for(var e=!1,i=0,r=0,n=t.dataBandInfo.groupHeaders.list;r<n.length;r++){var o=n[r],a=o;if(a.parentBookmark=t.parentBookmark,a.doBookmark(),a.parentBookmark!=a.currentBookmark&&(t.parentBookmark=a.currentBookmark),t.dataBandInfo.groupHeaderResults[i]){for(var s=i+1;s<t.dataBandInfo.groupHeaders.count;s++)t.report.engine.removeBandFromPageBreakSkipList(t.dataBandInfo.groupHeaders[s]);if(null!=t.report){var l=t.report;l.cacheTotals&&null!=l.cachedTotals&&l.cachedTotals.set(a,null)}a.groupHeaderBandInfo.skipKeepGroups=t.report.engine.isFirstDataBandOnPage&&t.componentType==f.Master&&1==a.line,!a.groupHeaderBandInfo.skipKeepGroups&&a.keepGroupTogether&&this.addKeepLevel(t),a.keepGroupHeaderTogether&&this.addKeepLevel(t),t.line=1,a.invokeBeginRender(),a.collapsingIndex=a.line,a.report.groupLine=a.line,R.invokeCollapsedEvent(a),this.renderBand(t,a),e=!0,R.isCollapsed(a,!0)&&(a.groupHeaderBandInfo.oldSilentMode=t.report.engine.silentMode,t.report.engine.silentMode=!0,a.groupHeaderBandInfo.silentModeEnabled=!0)}i++}e&&this.renderColumns(t)},R.prototype.renderGroupFooters=function(e){for(var i=e.dataBandInfo.groupHeaders.count-1;i>=0;i--)if(e.dataBandInfo.groupFooterResults[i]){var r=e.dataBandInfo.groupHeaders.getByIndex(i);r.invokeEndRender();var n=r.groupHeaderBandInfo.groupFooter;if(null!=n){var o=n.keepGroupFooterTogether;o&&this.addKeepLevelAtLatestDataBand(e),r.groupHeaderBandInfo.silentModeEnabled&&r.interaction.sti_is(t.Report.Components.StiBandInteraction)&&!r.interaction.collapseGroupFooter&&(e.report.engine.silentMode=r.groupHeaderBandInfo.oldSilentMode,r.groupHeaderBandInfo.silentModeEnabled=!1),this.renderBand(e,n),r.groupHeaderBandInfo.silentModeEnabled&&(e.report.engine.silentMode=r.groupHeaderBandInfo.oldSilentMode,r.groupHeaderBandInfo.silentModeEnabled=!1),o&&this.removeKeepLevel(e)}r.invokeEndRender(),!r.groupHeaderBandInfo.skipKeepGroups&&r.keepGroupTogether&&this.removeKeepLevel(e),e.report.engine.printOnAllPagesIgnoreList.remove(r),r.line++}},R.setDetails=function(e){if(!e.isDataSourceEmpty||!e.isBusinessObjectEmpty){var i=new u;if(null!=e.dataBandInfo.detailDataBands)for(var r=0,n=e.dataBandInfo.detailDataBands.list;r<n.length;r++){var o=n[r];if(e.report.engine.removeBandFromPageBreakSkipList(o.sti_as(y)),S.setData(o,!1),o.sti_is(t.Report.Components.StiDataBand)&&!o.isBusinessObjectEmpty){var a=o.businessObject;i.set(a,a)}}if(!e.isBusinessObjectEmpty)for(var a=e.businessObject,s=0,l=a.businessObjects.list;s<l.length;s++){var c=l[s];null==i.get(c)&&c.setDetails()}if(null!=e.dataBandInfo.subReports)for(var p=0,h=e.dataBandInfo.subReports.list;p<h.length;p++){var g=h[p];if(null!=g.subReportPage)for(var m=g.subReportPage.getComponents(),d=0,f=m.list;d<f.length;d++){var o=f[d],b=o,C=null!=b&&b.dataSource==e.dataSource;C||S.setData(o,!1)}}if(null!=e.dataBandInfo.details)for(var v=0,I=e.dataBandInfo.details.list;v<I.length;v++){var A=I[v];S.setData(A,!1)}}R.prepareGroupResults(e)},R.prototype.renderDetailDataBands=function(t){if(this.allowDetailDataBands(t))for(var e=0,i=t.dataBandInfo.detailDataBands.list;e<i.length;e++){var r=i[e];if(r.enabled&&this.isAllow(t,r)){r.parentBookmark=t.currentBookmark;var n=r.sti_as(b);null!=n?n.renderMaster():r.render()}}},R.prototype.getParentDataBand=function(e){var i=e.parent;while(null!=i&&!i.sti_is(I)){if(i.sti_is(t.Report.Components.StiDataBand))return i;if(i.sti_is(t.Report.Components.StiChildBand)){var r=i.getMaster();if(r.sti_is(n))return r}i=i.parent}return null},R.prototype.isAllow=function(t,e){if(null!=t.dataBandInfo.detailDataBandsFromSubReports&&null!=t.dataBandInfo.detailDataBandsFromSubReports.get(e))return!1;if(t.parent==e.parent)return!0;var i=this.getParentDataBand(t);return i!=this.getParentDataBand(e)||null==i},R.prototype.allowDetailDataBands=function(t){return t.dataBandInfo.detailDataBands.count>0&&t.columns<2},R.prototype.isDenyDetailsOnFirstPage=function(t){return t.report.engine.isFirstDataBandOnPage&&t.componentType==f.Master&&1==t.line},R.isDetailDataSourcesEmpty=function(t){if(null==t.dataBandInfo.detailDataBands||0==t.dataBandInfo.detailDataBands.count)return!1;for(var e=0,i=t.dataBandInfo.detailDataBands.list;e<i.length;e++){var r=i[e];if(r.sti_is(C)&&!r.sti_as(C).isEmpty)return!1;if(r.sti_is(v)&&!r.sti_as(v).isEmpty)return!1}return!0},R.isPrintIfDetailEmpty=function(t){if(t.printIfDetailEmpty)return!0;if(this.isDetailDataSourcesEmpty(t))return!1;for(var e=!1,i=!0,r=0,n=t.dataBandInfo.detailDataBands.list;r<n.length;r++){var o=n[r];if(i=!1,StiOptions.Engine.printIfDetailEmptyNesting){o.saveState("CheckPrintIfDetailEmpty"),o.first();while(!o.isEof){if(this.isPrintIfDetailEmpty(o)){e=!0;break}o.next()}o.restoreState("CheckPrintIfDetailEmpty")}else this.isPrintIfDetailEmpty(o)&&(e=!0);if(e)break}return i||e},R.prototype.renderHeaders=function(t,e){for(var i=0;i<t.dataBandInfo.headers.count;i++){var r=t.dataBandInfo.headers.getByIndex(i).sti_as(a);t.isEmpty&&!r.printIfEmpty||(!t.isEmpty&&r.keepHeaderTogether&&(this.addKeepLevel(t),e[i]=!0),this.renderBand(t,r))}},R.prototype.renderHierarchicalHeaders=function(t,i,r){if(null==t.dataBandInfo.hierarchicalHeaders)return;for(var n=0,o=t.dataBandInfo.hierarchicalHeaders.list;n<o.length;n++){var a=o[n];t.isEmpty&&!a.printIfEmpty||(!t.isEmpty&&a.keepHeaderTogether&&this.addKeepLevel(t),i&&e.StiHierarchicalBandBuilder.createIndention(t,a,r),this.renderBand(t,a),i&&e.StiHierarchicalBandBuilder.createIndention(t,a,-r))}},R.prototype.addFooterMarker=function(t,e){t.report.engine.threads.selectThreadFromContainer(t),t.report.engine.addFooterMarker(e)},R.prototype.renderMarkerFootersOnAllPages=function(t){for(var e=0,i=t.dataBandInfo.footersOnAllPages.list;e<i.length;e++){var r=i[e];t.isEmpty&&!r.printIfEmpty||this.addFooterMarker(t,r)}},R.prototype.renderFootersOnLastPage=function(e){e.sti_is(t.Report.Components.StiHierarchicalBand)&&(e.hierarchicalBandInfo.finalFooterCalculation=!0);for(var i=0,r=e.dataBandInfo.footersOnLastPage.list;i<r.length;i++){var n=r[i];if(!e.isEmpty||n.printIfEmpty){var o=!e.isEmpty&&n.keepFooterTogether;o&&this.addKeepLevelAtLatestDataBand(e),this.renderBand(e,n),o&&this.removeKeepLevel(e)}}e.sti_is(t.Report.Components.StiHierarchicalBand)&&(e.hierarchicalBandInfo.finalFooterCalculation=!1)},R.prototype.renderFootersOnAllPages=function(t){for(var e=0,i=t.dataBandInfo.footersOnAllPages.list;e<i.length;e++){var r=i[e];t.isEmpty&&!r.printIfEmpty||this.renderBand(t,r)}},R.prototype.renderHierarchicalFooters=function(t,i,r){if(null==t.dataBandInfo.hierarchicalFooters)return;for(var n=0,o=t.dataBandInfo.hierarchicalFooters.list;n<o.length;n++){var a=o[n];if(!t.isEmpty||a.printIfEmpty){var s=!t.isEmpty&&a.keepFooterTogether;s&&this.addKeepLevelAtLatestDataBand(t),i&&e.StiHierarchicalBandBuilder.createIndention(t,a,r),this.renderBand(t,a),i&&e.StiHierarchicalBandBuilder.createIndention(t,a,-r),s&&this.removeKeepLevel(t)}}},R.prototype.renderReportTitles=function(t){if(null==t.dataBandInfo.reportTitles)return;for(var e=0,i=t.dataBandInfo.reportTitles;e<i.length;e++){var r=i[e];t.isEmpty&&!r.printIfEmpty||this.renderBand(t,r)}},R.prototype.renderReportSummaries=function(t){if(null==t.dataBandInfo.reportSummaries)return;for(var e=0,i=t.dataBandInfo.reportSummaries;e<i.length;e++){var r=i[e];if(!t.isEmpty||r.printIfEmpty){var n=!t.isEmpty&&r.keepReportSummaryTogether;n&&this.addKeepLevelAtLatestDataBand(t),this.renderBand(t,r),n&&this.removeKeepLevel(t)}}},R.prototype.checkKeepReportSummaryTogether=function(t){if(null==t.dataBandInfo.reportSummaries)return!1;for(var e=!1,i=0,r=t.dataBandInfo.reportSummaries;i<r.length;i++){var n=r[i];!t.isEmpty&&n.keepReportSummaryTogether&&(e=!0)}return e},R.prototype.block=function(t){for(var e=0,i=t.dataBandInfo.groupHeaders.list;e<i.length;e++){var r=i[e];r.blocked=!0}for(var n=0,o=t.dataBandInfo.groupFooters.list;n<o.length;n++){var r=o[n];r.blocked=!0}for(var a=0,s=t.dataBandInfo.headers.list;a<s.length;a++){var r=s[a];r.blocked=!0}for(var l=0,u=t.dataBandInfo.footersOnAllPages.list;l<u.length;l++){var r=u[l];r.blocked=!0}for(var c=0,p=t.dataBandInfo.footersOnLastPage.list;c<p.length;c++){var r=p[c];r.blocked=!0}if(null!=t.dataBandInfo.reportSummaries)for(var h=0,g=t.dataBandInfo.reportSummaries;h<g.length;h++){var r=g[h];r.blocked=!0}t.blocked=!0},R.prototype.unBlock=function(t){for(var e=0,i=t.dataBandInfo.groupHeaders.list;e<i.length;e++){var r=i[e];r.blocked=!1}for(var n=0,o=t.dataBandInfo.groupFooters.list;n<o.length;n++){var r=o[n];r.blocked=!1}for(var a=0,s=t.dataBandInfo.headers.list;a<s.length;a++){var r=s[a];r.blocked=!1}for(var l=0,u=t.dataBandInfo.footersOnAllPages.list;l<u.length;l++){var r=u[l];r.blocked=!1}for(var c=0,p=t.dataBandInfo.footersOnLastPage.list;c<p.length;c++){var r=p[c];r.blocked=!1}t.blocked=!1},R.prototype.checkHierarchicalHeaders=function(e){if(e.sti_is(t.Report.Components.StiHierarchicalBand)){var i=0,r=0;if(e.isDataSourceEmpty||(i=e.dataSource.getLevel(),r=e.dataSource.position),e.isBusinessObjectEmpty||(i=e.businessObject.getLevel(),r=e.businessObject.position),0==r)for(var n=0;n<=i;n++)n!=i&&(e.hierarchicalBandInfo.specifiedLevel=n),this.renderHierarchicalHeaders(e,!0,n),e.hierarchicalBandInfo.specifiedLevel=-1;else{var o=0;if(e.isDataSourceEmpty||(e.dataSource.position--,o=e.dataSource.getLevel(),e.dataSource.position++),e.isBusinessObjectEmpty||(e.businessObject.setPrevValue(),o=e.businessObject.getLevel(),e.businessObject.restoreCurrentValue()),o<i){for(var n=i;n>o;n--)n!=i&&(e.hierarchicalBandInfo.specifiedLevel=n),this.renderHierarchicalHeaders(e,!0,n),e.hierarchicalBandInfo.specifiedLevel=-1;e.hierarchicalBandInfo.specifiedLevel=-1}}}},R.prototype.checkHierarchicalFooters=function(e){if(e.sti_is(t.Report.Components.StiHierarchicalBand)){var i=0,r=0,n=0;if(e.isDataSourceEmpty||(i=e.dataSource.position,r=e.dataSource.count,n=e.dataSource.getLevel()),e.isBusinessObjectEmpty||(i=e.businessObject.position,r=e.businessObject.count,n=e.businessObject.getLevel()),i==r-1){for(var o=n;o>=0;o--)o!=n&&(e.hierarchicalBandInfo.specifiedLevel=o),this.renderHierarchicalFooters(e,!0,o);e.hierarchicalBandInfo.specifiedLevel=-1}else{var a=0;if(e.isDataSourceEmpty||(e.dataSource.position++,a=e.dataSource.getLevel(),e.dataSource.position--),e.isBusinessObjectEmpty||(e.businessObject.setNextValue(),a=e.businessObject.getLevel(),e.businessObject.restoreCurrentValue()),a<n){for(var o=n;o>a;o--)o!=n&&(e.hierarchicalBandInfo.specifiedLevel=o),this.renderHierarchicalFooters(e,!0,o);e.hierarchicalBandInfo.specifiedLevel=-1}}}},R.prototype.renderBand=function(t,e,i,r){void 0===i&&(i=!1),void 0===r&&(r=!1),this.registerEmptyBands(t),e.sti_is(o)||(e!=t&&(e.parentBookmark=t.parentBookmark),e.doBookmark()),t.report.engine.threads.selectThreadFromContainer(e),null!=t.report.engine.containerForRender&&t.report.engine.renderBand(e,i,r)},R.prototype.renderColumns=function(t){t.report.engine.threads.selectThreadFromContainer(t),t.report.engine.columnsOnDataBand.renderColumns(t)},R.prototype.registerEmptyBands=function(t){t.report.engine.emptyBands.register(t.dataBandInfo.emptyBands)},R.isCollapsed=function(e,i){if(null==e.interaction||e.interaction.sti_is(t.Report.Components.StiBandInteraction)&&!e.interaction.collapsingEnabled)return!1;var r=!(null==e.collapsedValue||!e.collapsedValue.sti_is(Boolean))&&e.collapsedValue.toBoolean();if(null==e.report.interactionCollapsingStates)return r;var n=null;if(null!=e.collapsingTreePath&&(n=e.report.interactionCollapsingStates[e.collapsingTreePath+e.name]),null==n&&(n=e.report.interactionCollapsingStates[e.name]),null==n)return r;if(null==n[e.collapsingIndex])return r;if(!n[e.collapsingIndex].sti_is(Boolean))return r;return n[e.collapsingIndex].toBoolean()},R.prototype.setReportVariables=function(t){var e=t;e.report.line=e.line,e.report.lineThrough=e.lineThrough},R.prototype.prepare=function(t){B.prototype.prepare.call(this,t);var e=t;this.findHeaders(e),this.findHierarchicalHeaders(e),this.findFooters(e),this.findHierarchicalFooters(e),this.findEmptyBands(e),this.findDetailDataBands(e),this.findDetails(e),this.findSubReports(e),this.findGroupHeaders(e),this.findGroupFooters(e),e.dataBandInfo.groupHeaderResults=new Array(e.dataBandInfo.groupHeaders.count),e.dataBandInfo.groupFooterResults=new Array(e.dataBandInfo.groupHeaders.count)},R.prototype.unPrepare=function(t){B.prototype.unPrepare.call(this,t);var e=t;e.dataBandInfo.headers=null,e.dataBandInfo.hierarchicalHeaders=null,e.dataBandInfo.footersOnAllPages=null,e.dataBandInfo.footersOnLastPage=null,e.dataBandInfo.hierarchicalFooters=null,e.dataBandInfo.emptyBands=null,e.dataBandInfo.footersOnLastPage=null,e.dataBandInfo.detailDataBands=null,e.dataBandInfo.subReports=null,e.dataBandInfo.reportTitles=null,e.dataBandInfo.reportSummaries=null,e.dataBandInfo.headers=null,e.dataBandInfo.groupHeaders=null,e.dataBandInfo.groupFooters=null},R.invokeCollapsedEvent=function(e){var i=new r;if(e.sti_is(o)?(e.invokeGetCollapsed(i),e.collapsedValue=i.value):e.sti_is(t.Report.Components.StiDataBand)&&(e.invokeGetCollapsed(i),e.collapsedValue=i.value),null!=i.value&&null==e.report.interactionCollapsingStates){e.report.interactionCollapsingStates={};var n=new u,a=e.name,s=e.sti_as(w);null!=s&&null!=s.collapsingTreePath&&(a=s.collapsingTreePath+e.name),e.report.interactionCollapsingStates[a]=n,n.set(e.collapsingIndex,i.value)}},R.prototype.render=function(t){return null},R.prototype.renderMaster=function(e){var i=e.report.engine.isCrossBandsMode,r=e.sti_is(t.Report.Components.StiCrossDataBand);e.report.engine.threads.selectThreadFromContainer(e),e.report.engine.isCrossBandsMode=r,e.dataBandInfo.storedParentBookmark=e.parentBookmark,e.report.engine.isDynamicBookmarksMode=!0,e.invokeBeginRender(),this.block(e),this.linkGroupHeadersAndGroupFooters(e);try{e.line=1,null==e.masterComponent&&(e.lineThrough=1);var o=null==e.masterComponent||!StiOptions.Engine.optimizeDetailDataFiltering,a=null!=e.masterComponent?e.masterComponent.sti_as(t.Report.Components.StiDataBand):null;if(null!=a&&a.isDataSourceEmpty&&a.isBusinessObjectEmpty&&(o=!0),!o)if(null==e.report.engine.hashDataSourceReferencesCounter)o=!0;else{if(!e.isDataSourceEmpty){var s=e.report.engine.hashDataSourceReferencesCounter.get(e.dataSourceName);null!=s&&Math.trunc(s.toNumber())>1&&(o=!0)}if(!e.isBusinessObjectEmpty){var s=e.report.engine.hashDataSourceReferencesCounter.get(e.businessObject.name);null!=s&&Math.trunc(s.toNumber())>1&&(o=!0)}}o&&S.setData(e,!1),e.first(),this.renderReportTitles(e);var l=Array.create(Boolean,e.dataBandInfo.headers.count);this.renderHeaders(e,l),this.renderFootersOnAllPages(e),this.startBands(e,e.dataBandInfo.headers),this.startBands(e,e.dataBandInfo.footersOnAllPages),this.startBands(e,e.dataBandInfo.groupHeaders),this.startBand(e,e),0==e.dataBandInfo.groupHeaders.count&&this.renderColumns(e),null!=e.interaction&&e.interaction.sti_is(T)&&0==e.dataBandInfo.detailDataBands.count&&!e.sti_is(t.Report.Components.StiHierarchicalBand)&&(e.interaction.collapsingEnabled=!1),e.first();while(!e.isEof){if(e.collapsingIndex=e.position,null!=e.interaction&&e.interaction.collapsingEnabled){var u=null,c=e;while(null!=c.masterComponent&&c.masterComponent.sti_is(n))c=c.masterComponent,u=c.position.toString()+":"+u;null!=u&&(e.collapsingTreePath=u)}e.columns<2&&(e.report.engine.columnsOnDataBand.enabled=!1);var p=this.isDenyDetailsOnFirstPage(e);this.renderGroupHeaders(e);var h=this.isDenyDetailsOnFirstPage(e);h||this.addKeepDetails(e),e.setReportVariables();var g=!1;R.isPrintIfDetailEmpty(e)&&(R.invokeCollapsedEvent(e),this.checkHierarchicalHeaders(e),this.renderBand(e,e,!1,!0),g=!0),g&&this.removeKeepHeaders(e,l);var m=e.report.engine.silentMode;R.isCollapsed(e,!0)&&(e.report.engine.silentMode=!0),h||this.removeKeepDetailsRow(e),this.renderDetailDataBands(e),e.report.engine.silentMode=m,g&&this.checkHierarchicalFooters(e),h||this.removeKeepDetails(e),this.removeKeepGroupHeaders(e),this.renderGroupFooters(e),e.line++,e.lineThrough++,e.next()}e.report.engine.threads.selectThreadFromContainer(e),this.renderMarkerFootersOnAllPages(e),this.renderFootersOnLastPage(e),this.checkKeepReportSummaryTogether(e)?(this.renderReportSummaries(e),this.endBands(e)):(this.endBands(e),this.renderReportSummaries(e))}finally{this.resetLinkGroupHeadersAndGroupFooters(e),this.unBlock(e),e.report.engine.isCrossBandsMode=i,e.report.engine.isDynamicBookmarksMode=!1}e.invokeEndRender()},R}(e.StiBandBuilder);e.StiDataBandBuilder=B}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.internalRender=function(t){for(var e=t.clone(),i=0,r=e.scales.list;i<r.length;i++){r[i].prepare(e)}return e},e}(t.StiComponentBuilder);t.StiGaugeBuilder=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDataBand,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.getMaster=function(t){var e=t.parent.components.indexOf(t)-1;while(e>=0){if(t.parent.components.list[e].sti_is(i))return t.parent.components.list[e];e--}return null},e.prototype.setReportVariables=function(t){var e=t;e.report.groupLine=e.line},e}(e.StiBandBuilder);e.StiGroupFooterBandBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiContainer,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.internalRender=function(r){var n=r;if(this.isCollapsed(n))return new i;var o=t.prototype.internalRender.call(this,n).sti_as(i);if(null!=o){if(!n.isDataSourceEmpty&&!n.dataSource.isEmpty){var a=n.dataSource.getLevel();a>0&&e.createIndention(n,o,a)}if(!n.isBusinessObjectEmpty&&!n.businessObject.isEmpty){var a=n.businessObject.getLevel();a>0&&e.createIndention(n,o,a)}}return o},e.prototype.isCollapsed=function(t,e){void 0===e&&(e=!1);var i=t;if(0==i.collapsingIndex||0==i.position)return!1;var r=i.collapsingIndex,n=i.position,o=0,a=!i.isBusinessObjectEmpty,s=null;i.isDataSourceEmpty||(o=i.dataSource.getLevel()),a&&(o=i.businessObject.getLevel());try{if(a){var l=i.position;s=i.businessObject.current,i.position=0;var u=[];while(u.count<l&&!i.isEof)u.add(i.businessObject.current),i.next();while(!0){if(0==i.collapsingIndex||0==l)return!1;if(i.collapsingIndex--,l--,i.businessObject.currentObject=u[l],o<=i.businessObject.getLevel())continue;if(this.isCollapsed(i,!1))return!0}}if(!i.isDataSourceEmpty)while(!0){if(0==i.collapsingIndex||0==i.position)return!1;if(i.collapsingIndex--,i.position--,o<=i.dataSource.getLevel())continue;if(this.isCollapsed(i,!1))return!0}return!1}finally{a&&(i.businessObject.currentObject=s),i.collapsingIndex=r,i.position=n}},e.createIndention=function(t,e,i){for(var r=i*t.report.unit.convertFromHInches(t.indent),n=0,o=e.components.list;n<o.length;n++){o[n].left+=r}},e}(e.StiDataBandBuilder);e.StiHierarchicalBandBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.internalRender=function(t){var e=t,i=e.clone(!1);if(null==i.imageToDraw){var r=e.getImageFromSource();i.imageToDraw=r}return i.invokeEvents(),i},e}(t.StiComponentBuilder);t.StiViewBuilder=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiImage,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.internalRender=function(e){var r=null!=e?e.sti_as(i):null,n=t.prototype.internalRender.call(this,r);return null!=n?n.sti_as(i):null},e}(e.StiViewBuilder);e.StiImageBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.renderMap=function(e){var i=e.clone(),r=null;if(null!=e.dataSource?r=e.dataSourceName:null!=e.businessObject&&(r=e.businessObjectGuid),null!=r&&!String.isNullOrEmpty(e.dataColumnKey)){var n=t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.report.dictionary,r+"."+e.dataColumnKey);if(null==n)return i;var o=null,a=null,s=null,l=null;if(String.isNullOrEmpty(e.dataColumnName)||(o=t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.report.dictionary,r+"."+e.dataColumnName)),String.isNullOrEmpty(e.dataColumnValue)||(a=t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.report.dictionary,r+"."+e.dataColumnValue)),String.isNullOrEmpty(e.dataColumnGroup)||(s=t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.report.dictionary,r+"."+e.dataColumnGroup)),String.isNullOrEmpty(e.dataColumnColor)||(l=t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.report.dictionary,r+"."+e.dataColumnColor)),null==o&&null==a&&null==s&&null==l)return i;for(var u=i.getMapData(),c=function(e){var i=n[e].toString(),r=null;if(String.isNullOrEmpty(i)||(r=u.firstOrDefault(function(t){return t.key==i})),null==r)return"continue";if(null!=o&&o.length>0){var c=o[e].toString();String.isNullOrEmpty(c)?r.name=null:r.name=c}if(null!=a&&a.length>0)if(null!=a[e]&&a[e]!=t.System.Data.DBNull.value)try{r.value=a[e].toNumber()}catch(t){}else r.value=0;if(null!=s&&s.length>0){var p=s[e].toString();String.isNullOrEmpty(p)?r.group=null:r.group=p}if(null!=l&&l.length>0){var h=l[e].toString();String.isNullOrEmpty(h)?r.color=null:r.color=h}},p=0;p<n.length;p++)c(p);for(var h=[],g=0,m=u;g<m.length;g++){var d=m[g];h.add({Key:d.key,Value:d.value,Group:d.group,Color:d.color,Name:d.name})}i.mapData=JSON.stringify(h)}return i},i.prototype.prepare=function(t){e.prototype.prepare.call(this,t),(t.height>t.page.height||t.height>t.parent.height)&&(t.height=Math.min(t.page.height,t.parent.height))},i.prototype.internalRender=function(t){var e=t;return i.renderMap(e)},i}(e.StiComponentBuilder);e.StiMapBuilder=i}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiComponentsCollection,r=t.Report.Components.StiOverlayBand,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.prepare=function(e){var n=e;t.prototype.prepare.call(this,n),n.pageInfo.isReportTitlesRendered=!1,n.pageInfo.renderedCount=0,n.pageInfo.overlays=new i;for(var o=0,a=n.components.list;o<a.length;o++){var s=a[o],l=s.sti_as(r);null!=l&&n.pageInfo.overlays.add(l)}},e.prototype.unPrepare=function(e){t.prototype.unPrepare.call(this,e),e.pageInfo.overlays=null},e}(e.StiContainerBuilder);e.StiPageBuilder=n}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.internalRender=function(e){var i=e,r=t.prototype.internalRender.call(this,i);return r.storedColumn=i.report.column,r},e}(t.StiComponentBuilder);t.StiPointPrimitiveBuilder=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function r(){}return r.renderSingleReport=function(i,r){var n=i.engine,o=null;null!=n&&(o=i.engine.report);try{i.indexName=1,null!=i.compiledReport?(null!=n?(i.compiledReport.engine=n,i.compiledReport.engine.report=i.compiledReport):i.compiledReport.engine=new e.StiEngine(i.compiledReport),i.compiledReport.parentReport=i,i.isRendering=!0,i.compiledReport.isRendering=!0,i.compiledReport.cacheTotals=i.cacheTotals,i.compiledReport.cachedTotals=i.cachedTotals,e.StiRenderProvider.render(i.compiledReport,r),null!=i.compiledReport&&(i.isRendered=i.compiledReport.isRendered),i.isRendering=!0):(null!=n?(i.engine=n,i.engine.report=i):i.engine=new e.StiEngine(i),i.isRendering=!0,e.StiRenderProvider.render(i,r),i.invokeRefreshViewer())}catch(e){t.System.StiError.showError("Rendering report...ERROR: "+e.message,!1)}finally{i.isRendering=!1,null!=i.compiledReport&&(i.compiledReport.isRendering=!1,null==n&&(i.compiledReport.engine=null)),null==n?i.engine=null:n.report=o}},r.renderSubReports=function(t,r){t.renderedPages.clear();for(var n=0,o=t.subReports.list;n<o.length;n++)var a=o[n];for(var s=0,l=t.subReports.list;s<l.length;s++)var a=l[s];for(var u=0,c=t.subReports.list;u<c.length;u++){var a=c[u];a.renderedPages=t.renderedPages}var p=new i;t.isStopped=!1,t.invokeBeginRender();var h=null,g=null;if(t.pages.getByIndex(0).getComponents().count>0){h=new e.StiEngine(t),t.engine=h,t.currentPrintPage=0,t.subReportsMasterReport=t,g=t,null!=t.compiledReport&&(g=t.compiledReport,t.compiledReport.subReportsMasterReport=t,t.compiledReport.renderedPages.clear());var m=t.subReports;t.subReports=null,r.isSubReportMode=!0,t.render(),t.subReports=m,t.subReportsMasterReport=null}else h=new e.StiEngine(t),t.currentPrintPage=0,t.engine=h,null!=t.compiledReport&&(t.compiledReport.engine=h);null!=t.compiledReport&&(t.currentPrintPage=t.compiledReport.currentPrintPage);for(var d=0,S=null,f=0,y=t.subReports.list;f<y.length;f++){var a=y[f];try{a.subReportsMasterReport=t,null!=a.compiledReport?(a.compiledReport.subReportsMasterReport=t,a.engine=h,a.compiledReport.engine=h,a.compiledReport.currentPrintPage=t.currentPrintPage):(a.engine=h,a.currentPrintPage=t.currentPrintPage),null!=S&&(a.pages.getByIndex(0).printOnPreviousPage=a.subReportsPrintOnPreviousPage,null!=a.compiledReport&&(a.compiledReport.pages.getByIndex(0).printOnPreviousPage=a.subReportsPrintOnPreviousPage)),null!=S&&(a.pages.getByIndex(0).resetPageNumber=a.subReportsResetPageNumber,null!=a.compiledReport&&(a.compiledReport.pages.getByIndex(0).resetPageNumber=a.subReportsResetPageNumber));var b=t.renderedPages.count;h.pageNumbers.pageNumbers.count>0&&(h.pageNumbers.pageNumbers.getByIndex(h.pageNumbers.pageNumbers.count-1).fixedPosition=!0),a.totals=new i,a.render(),null!=a.compiledReport?t.currentPrintPage=a.compiledReport.currentPrintPage:t.currentPrintPage=a.currentPrintPage;var C=new i,v=a;null!=v.compiledReport&&(v=a.compiledReport);var I=Array.create(Object,v.totals.keys.count);v.totals.keys.copyTo(I,0);for(var A=0,w=I;A<w.length;A++){var T=w[A],B=v.totals.get(T);if(null!=B){var R=[];C[T]=R;for(var P=0,F=B;P<F.length;P++){var x=F[P];R.add(x.clone())}}}if(p[d++]=C,a.reportUnit!=t.reportUnit)for(var D=b;D<t.renderedPages.count;D++){var k=t.renderedPages.getByIndex(D);k.convert(a.unit,t.unit)}}finally{a.subReportsMasterReport=null,null!=a.compiledReport&&(a.compiledReport.subReportsMasterReport=null)}if(a.isStopped){t.isStopped=a.isStopped;break}t.bookmark.bookmarks.addRange(a.bookmark.bookmarks),S=a}h.pageNumbers.processPageNumbers(),d=0;for(var E=0,G=t.subReports.list;E<G.length;E++){var a=G[E],v=a;null!=v.compiledReport&&(v=v.compiledReport),v.totals=p.get(d++),v.invokeEndRender()}for(var _=0,L=t.subReports.list;_<L.length;_++){var a=L[_];a.totals=null}null!=g&&(g.engine=h,g.invokeEndRender(),g.engine=null),null!=g&&g==t||t.invokeEndRender();for(var N=0,O=t.renderedPages.list;N<O.length;N++){var k=O[N];k.report=null!=t.compiledReport?t.compiledReport:t}if(t.engine=null,t.isRendered=!0,null!=t.compiledReport&&(t.compiledReport.engine=null,t.compiledReport.isRendered=!0),null!=t.parentReport&&(t.parentReport.engine=null,t.parentReport.isRendered=!0),e.StiPostProcessProvider.postProcessPages(t.renderedPages),null!=t&&null!=t.renderedPages)for(var Z=0,M=t.renderedPages.list;Z<M.length;Z++){var k=M[Z];k.report=t}r.isSubReportMode=!1,t.invokeRefreshViewer()},r}();e.StiReportBuilder=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiColorScaleCondition,n=t.Report.Components.IStiIndicatorCondition,o=t.Report.Components.StiSimpleText,a=t.Report.Components.StiText,s=t.Report.Events.StiGetValueEventArgs,l=t.Report.Components.StiOverlayBand,u=t.Report.Events.StiGetExcelValueEventArgs,c=t.Report.Events.StiValueEventArgs,p=t.Report.Components.StiPage,h=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype.prepare=function(e){t.prototype.prepare.call(this,e),StiOptions.Engine.allowResetValuesAtComponent&&(e.textValue=null)},i.prototype.internalRender=function(t){var i=t.sti_as(o),h=i.clone(!1);if(null!=i.conditions&&i.conditions.count>0&&h.sti_is(a))for(var g=0,m=i.conditions.list;g<m.length;g++){var d=m[g],S=d.sti_as(n);if(null!=S){var f=null;S.sti_is(r)&&(f=i.brush);var y=S.createIndicator(i.sti_as(a));if(null!=y){h.indicator=y;break}i.brush!=f&&(h.brush=i.brush,i.brush=f)}}var b=new s;if(String.isNullOrEmpty(i.textValue)){i.invokeGetValue(h,b),h.invokeEvents(),i.checkDuplicates(h,b);var C=new c(b.value);h.invokeTextProcess(h,C);var v=b.value;String.isNullOrEmpty(h.textValue)||(v=h.textValue),h.setTextInternal(i.processText(i.getTextWithoutZero(v))),i.invokeRenderTo(h)}else{h.invokeEvents();var C=new c(i.textValue);h.invokeTextProcess(h,C),h.setTextInternal(i.getTextWithoutZero(C.value))}if(b.storeToPrinted){var I=i.report.totals.get(i.name);null==I&&(I=[],i.report.totals.set(i.name,I));var A=new e.StiRuntimeVariables(i.report);A.pageIndex=i.report.renderedPages.count,A.textBox=h,I.add(A),i.report.totals.set("#%#"+i.name,i.text);var w=t.parent;while(null!=w&&!w.sti_is(p)&&!w.sti_is(l))w=w.parent;null!=w&&w.sti_is(l)&&(A.pageIndex++,A.currentPrintPage++)}if(i.sti_is(a))if(String.isNullOrEmpty(i.excelDataValue)||"-"==i.excelDataValue){var T=new u;if(i.invokeGetExcelValue(h,T),T.storeToPrinted){var I=i.report.totals.get(i.name+"Excel");null==I&&(I=[],i.report.totals.set(i.name+"Excel",I));var A=new e.StiRuntimeVariables(i.report);A.pageIndex=i.report.renderedPages.count,A.textBox=h,I.add(A);var w=t.parent;while(null!=w&&!w.sti_is(p)&&!w.sti_is(l))w=w.parent;null!=w&&w.sti_is(l)&&(A.pageIndex++,A.currentPrintPage++)}}else i.excelDataValue=i.excelDataValue;return h},i}(i.StiComponentBuilder);i.StiSimpleTextBuilder=h}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiPage,r=t.System.EventArgs,n=t.Report.Components.StiSubReport,o=t.Report.Components.StiContainerHelper,a=t.Report.Components.StiContainer,s=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return __extends(s,t),s.prototype.internalRender=function(s){var l=s.sti_as(n);null!=l.subReportPage&&l.subReportPage.invokeBeforePrint(l.subReportPage,r.empty);var u=t.prototype.internalRender.call(this,l).sti_as(a);return u.canBreak=!0,u.canGrow=!0,u.canShrink=!0,l.parent.sti_is(i)&&(u.canGrow=!1),null!=e.StiSubReportsHelper.getParentBand(l)?(e.StiSubReportsHelper.renderSubReport(u,l),o.checkSize(u)):u.canShrink=!1,null!=l.subReportPage&&l.subReportPage.invokeAfterPrint(l.subReportPage,r.empty),u},s}(e.StiContainerBuilder);e.StiSubReportBuilder=s}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(i);e.StiBandInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dataBandPosition=-1,e.dataSourceRow=null,e.businessObjectCurrent=null,e.isAutoRendered=!1,e.ignoreResetPageNumber=!1,e.isColumns=!1,e.renderStep=-1,e.setSegmentPerWidth=-1,e.parentBand=null,e}return __extends(e,t),e}(i);e.StiContainerInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.groupHeaders=null,e.groupFooters=null,e.groupHeaderComponents=null,e.groupFooterComponents=null,e.detailDataBands=null,e.details=null,e.subReports=null,e.emptyBands=null,e.headers=null,e.hierarchicalHeaders=null,e.footersOnAllPages=null,e.footersOnLastPage=null,e.hierarchicalFooters=null,e.groupHeaderResults=null,e.groupFooterResults=null,e.reportTitles=null,e.reportSummaries=null,e.detailDataBandsFromSubReports=null,e}return __extends(e,t),e}(i);e.StiDataBandInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isTableFooter=!1,e}return __extends(e,t),e}(i);e.StiFooterBandInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.printAtBottomComponent=null,e.groupHeader=null,e.isTableGroupFooter=!1,e}return __extends(e,t),e}(i);e.StiGroupFooterBandInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.skipKeepGroups=!1,e.groupFooter=null,e.silentModeEnabled=!1,e.oldSilentMode=!1,e.isTableGroupHeader=!1,e}return __extends(e,t),e}(i);e.StiGroupHeaderBandInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isTableHeader=!1,e}return __extends(e,t),e}(i);e.StiHeaderBandInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Engine.StiComponentInfo,r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.specifiedLevel=-1,e.finalFooterCalculation=!1,e}return __extends(e,t),e}(i);e.StiHierarchicalBandInfo=r}(i=e.Components||(e.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiReportProperty="IStiReportProperty"}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDataBand,r=t.Report.Components.StiHierarchicalBand,n=t.Report.Components.StiGroupHeaderBand,o=t.Base.Drawing.StiSolidBrush,a=t.System.Drawing.Color,s=t.Report.Components.StiComponentsCollection,l=function(){function t(t,e){this.dataBand=t,this.band=e}return t}(),u=function(){function t(t){this.bands=[],this.engine=null,this._denyRendering=!1,this.engine=t}return Object.defineProperty(t.prototype,"denyRendering",{get:function(){return this._denyRendering},set:function(t){this._denyRendering=t},enumerable:!0,configurable:!0}),t.prototype.add=function(t,e){this.bands.add(new l(t,e))},t.prototype.remove=function(t){var e=0;while(e<this.bands.count){this.bands[e].dataBand==t?this.bands.removeAt(e):e++}},t.prototype.allowRenderBand=function(t){if(0==this.engine.bandsInProgress.count)return!0;var e=this.engine.bandsInProgress[this.engine.bandsInProgress.count-1];if(t==e&&!t.sti_is(r))return!1;if(e.sti_is(n)&&t.sti_is(n)){if(e.getDataBand()!=t.getDataBand())return!0;if(t.parent.components.indexOf(t)>t.parent.components.indexOf(e))return!1}return!0},t.prototype.render=function(){if(this.denyRendering)return;var t=this.denyRendering;this.denyRendering=!0,this.engine.denyClearPrintOnAllPagesIgnoreList=!0;for(var e=0,n=this.bands;e<n.length;e++){var o=n[e],a=o.band;if(!this.allowRenderBand(a))continue;var s=this.renderBand(a,!0,!1);if(null!=s)for(var l=0,u=s.list;l<u.length;l++){var c=u[l];if(null!=c.containerInfo.parentBand){c.containerInfo.isAutoRendered=!0;var p=!a.sti_is(r)||!a.printOnAllPages;a.sti_is(i)&&(p=!1),p&&this.engine.printOnAllPagesIgnoreList.set(c.containerInfo.parentBand,c.containerInfo.parentBand)}}}this.engine.denyClearPrintOnAllPagesIgnoreList=!1,this.denyRendering=t},t.prototype.renderBand=function(t,e,i){if(!t.sti_is(r))return this.engine.renderBand(t,e,i);var n=new s,l=t;l.saveState("TreeBandPrintOnAllPages");var u=l.printOnAllPages;l.printOnAllPages=!1;try{var c=[];l.brush=new o(a.green);var p=l.dataSource.getLevel();l.prior();while(p>=0&&!l.isBof){var h=l.dataSource.getLevel();p>h&&(c.add(l.position),p=h),l.prior()}for(var g=c.count-1;g>=0;g--){l.position=c[g];for(var m=this.engine.renderBand(l,e,i),d=0,S=m.list;d<S.length;d++){var f=S[d];n.add(f)}}return l.brush=new o(a.transparent),l.restoreState("TreeBandPrintOnAllPages"),n}finally{l.printOnAllPages=u}},t.prototype.isBandInBandsList=function(t){if(null!=t)for(var e=0,i=this.bands;e<i.length;e++){var r=i[e];if(r.band==t)return!0}return!1},t}();e.StiBandsOnAllPages=u}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiBookmark,r=function(){function t(){}return t.getBookmark=function(e,i){var r=null,n=e.bookmarks.indexOf(i);return-1==n?(r=t.createBookmark(i),e.bookmarks.add(r)):r=e.bookmarks.getByIndex(n),r},t.prepareBookmark=function(e){var i=0;while(i<e.bookmarks.count-1)e.bookmarks.getByIndex(i).text==e.bookmarks.getByIndex(i+1).text?(e.bookmarks.getByIndex(i).bookmarks.addRange(e.bookmarks.getByIndex(i+1).bookmarks),e.bookmarks.remove(e.bookmarks.getByIndex(i+1))):i++;var r=0;while(r<e.bookmarks.count){var n=e.bookmarks.getByIndex(r),o=r+1;while(o<e.bookmarks.count){var a=e.bookmarks.getByIndex(o);n.text==a.text?(n.bookmarks.addRange(a.bookmarks),e.bookmarks.removeAt(o)):o++}r++}for(var s=0,l=e.bookmarks.list;s<l.length;s++){var u=l[s];t.prepareBookmark(u)}},t.createBookmark=function(t,e){void 0===e&&(e=null);var r=new i;return r.text=t,r.componentGuid=e,r},t}();e.StiBookmarksHelper=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.IStiCrossTab,r=t.Report.Components.IStiBreakable,n=t.Report.Components.StiComponent,o=t.Report.Components.StiContainerHelper,a=t.Report.Components.StiComponentDivider,s=t.Report.Components.StiPage,l=t.Report.Components.StiContainer,u=function(){function t(t){this.engine=null,this.engine=t}return t.prototype.isCanBreak=function(t){var e=null==t.containerInfo.parentBand?null:t.containerInfo.parentBand.sti_as(r);if(null!=e&&e.canBreak)return!0;if(null!=(e=t.sti_as(r))&&e.canBreak)return!0;return!1},t.prototype.isNeedBreak=function(t){var e=this.engine.containerForRender.sti_as(s);if(!(null==e||e.unlimitedBreakable||null!=t.containerInfo&&null!=t.containerInfo.parentBand&&t.containerInfo.parentBand.components.toList().exists(function(t){return t.sti_is(i)})))return!1;if(t.height>this.engine.freeSpace&&this.isCanBreak(t))return!0;return!1},t.prototype.break=function(t){for(var e=t.height,i=0,r=t.components.list;i<r.length;i++){var n=r[i];e=Math.min(e,n.top)}var s=t.components.count,l=a.breakContainer(this.engine.freeSpace,t);l.containerInfo.ignoreResetPageNumber=!0;var u=0==e&&s>0&&0==t.components.count;return!u||null==t.containerInfo||null==t.containerInfo.dataSourceRow&&null==t.containerInfo.businessObjectCurrent?l.name="Continued":l.name="Continued_"+t.name,l.height-=t.height,u||null==t.containerInfo||null==t.containerInfo.dataSourceRow&&null==t.containerInfo.businessObjectCurrent?t.name="Breaked":t.name="Breaked_"+t.name,t.height=this.engine.freeSpace,u||(this.engine.freeSpace+=t.height,this.engine.renderContainer(t),this.engine.freeSpace-=t.height),this.engine.newDestination(!u),l.canGrow=!0,o.checkSize(l),l},t.prototype.setCanBreak=function(t){t.canBreak=!0;var e=0;while(e<t.components.count){var i=t.components.list[e],o=i.sti_as(r);if(null!=o){if(!o.canBreak&&null!=this.engine&&null!=this.engine.report){var a=this.engine.report.getComponents().getByName(i.name);a=null!=a?a.sti_as(n):null,null!=a&&a.properties==i.properties&&null!=i.properties&&(i.properties=i.properties.clone())}o.canBreak=!0}var s=null!=i?i.sti_as(l):null;null!=s&&this.setCanBreak(s),e++}},t.prototype.processBreakable=function(t){if(this.engine.isCrossBandsMode)return t;var e=!1;while(this.isNeedBreak(t)){var i=t.height;if(t=this.break(t),i==t.height){var r=a.breakContainer(this.engine.freeSpace,t.clone());if(o.checkSize(r),t.height==r.height){if(e)break;this.setCanBreak(t),e=!0}}}return t},t}();e.StiBreakableHelper=u}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiColumnDirection,r=t.System.Collections.Hashtable,n=t.Report.Components.StiContainer,o=function(t){function n(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.countOfItems=0,r.columns=0,r.columnWidth=0,r.columnGaps=0,r.columnDirection=i.AcrossThenDown,r.rightToLeft=!1,r.minRowsInColumn=0,r.engine=null,r.engine=e,r}return __extends(n,t),n.prototype.addContainer=function(t){if(this.components.add(t),t.sti_is(e.StiLevelContainer))return;this.countOfItems++},n.prototype.howMuchAdditionalSpaceNeeded=function(t,e){this.countOfItems++,this.components.add(e);var i=this.finishColumns(!0);return this.components.remove(e),this.countOfItems--,Math.max(i-t,0)},n.prototype.finishColumns=function(t){void 0===t&&(t=!1);var n=0,o=1,a=this.columns,s=this.columnWidth,l=this.columnGaps,u=s+l;if(this.columnDirection==i.AcrossThenDown)for(var c=0,p=0,h=0,g=0,m=this.components.list;g<m.length;g++){var d=m[g];if(d.sti_is(e.StiLevelContainer))c++,h++;else{if(null!=this.page&&this.page.unlimitedHeight&&this.page.unlimitedBreakable){var S=this.page.pageHeight-this.page.margins.top-this.page.margins.bottom;(this.top+n)/S!=(this.top+n+d.height)/S&&(n+=S-(this.top+n)%S)}this.rightToLeft?d.left=d.parent.width-u*o+l:d.left=u*(o-1),d.top=n,d.width=s,c++,h++,o++}if(o>a||c==this.components.count){for(var f=0,y=p;y<h;y++){var b=this.components.list[y];if(b.sti_is(e.StiLevelContainer))continue;f=Math.max(b.height,f)}if(!t)for(var y=p;y<h;y++){var b=this.components.list[y];if(b.sti_is(e.StiLevelContainer))continue;for(var C=0,v=b.components.list;C<v.length;C++){var I=v[C];I.bottom==b.height&&(I.height=f-I.top)}b.height=f}n+=f,o=1,p=c,h=c}}else{t=!0;var A=new Array(a),w=Math.trunc(this.countOfItems/a),T=Math.min(this.minRowsInColumn,this.countOfItems);T>0&&(w=Math.max(T,w));for(var y=0;y<a;y++)A[y]=w;if(this.minRowsInColumn>0){if(T<=w){w=this.countOfItems-w*a;for(var y=0;y<w;y++)A[y]++}}else{if(this.countOfItems-w*a>0){w++;for(var y=0;y<a;y++)A[y]=w}}for(var B=0,R=0,P=new Array(a),y=0;y<a;y++)P[y]=[];for(var F=-1,x=!1,D=0,k=this.components.list;D<k.length;D++){var d=k[D];if(d.sti_is(e.StiLevelContainer))continue;if(x||(-1==F?F=d.height:F!=d.height&&(x=!0)),B++,B>A[o-1]&&(B=1,o++,R=0),null!=this.page&&this.page.unlimitedHeight&&this.page.unlimitedBreakable){var S=this.page.pageHeight-this.page.margins.top-this.page.margins.bottom;(this.top+R)/S!=(this.top+R+d.height)/S&&(R+=S-(this.top+R)%S)}this.rightToLeft?d.left=d.parent.width-u*o+l:d.left=u*(o-1),d.top=R,d.width=s,R+=d.height,n=Math.max(n,R),P[o-1].add(d)}if(x){for(var E=0,G=0;G<a;G++){var _=P[G];E=Math.max(_.count,E)}for(var L=new r,N=0;N<E;N++){for(var f=0,G=0;G<a;G++)if(P[G].count>N){var O=P[G][N];if(O.sti_is(e.StiLevelContainer))continue;f=Math.max(f,O.height)}for(var G=0;G<a;G++)if(P[G].count>N){var O=P[G][N];if(O.sti_is(e.StiLevelContainer))continue;if(O.height!=f&&!t)for(var Z=0,M=O.components.list;Z<M.length;Z++){var I=M[Z];I.bottom==O.height&&(I.height=f-I.top)}t?L.set(O,f):O.height=f}}n=0;for(var G=0;G<a;G++){R=0;for(var H=0,W=P[G];H<W.length;H++){var b=W[H];if(b.sti_is(e.StiLevelContainer))continue;b.top=R;R+=t?L.get(b):b.height}n=Math.max(n,R)}}}return n},n.prototype.getCurrentColumn=function(){if(this.columnDirection==i.DownThenAcross)return 1;var t=Math.trunc(this.countOfItems/this.columns);return Math.trunc(this.countOfItems-t*this.columns+1)},n.prototype.getLengthOfLastRow=function(){var t=this.countOfItems,e=t/this.columns,i=e*this.columns;return t==i?this.columns:t-i},n}(n);e.StiColumnsContainer=o}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function e(t){this.engine=null,this._enabled=!1,this.engine=t}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t},enumerable:!0,configurable:!0}),e.prototype.renderColumns=function(t){if(t.columns>1){var e=this.createColumns(t);return this.engine.renderContainer(e),this.enabled=!0,e}return null},e.prototype.getColumns=function(){var e=this.engine.containerForRender.components.count;if(e>0)for(var i=e-1;i>=0;i--){var r=this.engine.containerForRender.components.list[i];if(r.sti_is(t.StiColumnsContainer))return r.sti_as(t.StiColumnsContainer);if(r.sti_is(t.StiLevelContainer))continue}return null},e.prototype.createColumns=function(e){var i=new t.StiColumnsContainer(this.engine);return i.name="Columns"+e.name,i.width=e.parent.width,i.height=0,i.columns=e.columns,i.columnDirection=e.columnDirection,i.columnGaps=e.columnGaps,i.columnWidth=e.getColumnWidth(),i.minRowsInColumn=e.minRowsInColumn,i.rightToLeft=e.rightToLeft,i},e}();t.StiColumnsOnDataBand=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiPanel,r=function(){function t(t){this.engine=null,this._currentColumn=1,this.engine=t}return Object.defineProperty(t.prototype,"count",{get:function(){var t=this.engine.templateContainer.sti_as(i);if(null!=t)return t.columns;return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightToLeft",{get:function(){var t=this.engine.templateContainer.sti_as(i);if(null!=t)return t.rightToLeft;return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnGaps",{get:function(){var t=this.engine.templateContainer.sti_as(i);if(null!=t)return t.columnGaps;return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentColumn",{get:function(){return this._currentColumn},set:function(t){this._currentColumn=t},enumerable:!0,configurable:!0}),t.prototype.getColumnWidth=function(){var t=this.engine.templateContainer.sti_as(i);if(null!=t)return t.getColumnWidth();return 0},t}();e.StiColumnsOnPanel=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDockStyle,r=t.Report.Components.StiEmptySizeMode,n=t.Report.Components.StiCrossLinePrimitive,o=t.Report.Components.StiContainer,a=function(){function t(t){this.engine=null,this.engine=t}return t.prototype.register=function(t){null!=t&&t.count>0&&(this.emptyBand=t.list[0])},t.prototype.clear=function(){this.emptyBand=null},t.prototype.createEmptyBandContainer=function(t){this.engine.report.line++,this.engine.report.lineThrough++,this.emptyBand.invokeRendering(),this.emptyBand.parentBookmark=t.currentBookmark;var r=this.emptyBand.render();return null!=r&&(e.StiOddEvenStylesHelper.applyOddEvenStyles(this.engine.report,this.emptyBand.sti_as("IStiOddEvenStyles"),r.sti_as(o)),r.dockStyle=i.None,r.left=this.engine.positionX,r.top=this.engine.positionY),r},t.prototype.render=function(t,e){if(null==this.emptyBand)return;this.engine.isDynamicBookmarksMode=!0,this.emptyBand.invokeBeginRender();var i=-1;null!=t&&(i=t.components.indexOf(e)),-1==i&&(i=t.components.count);var o=null,a=null;while(1==1){if(null==(o=this.createEmptyBandContainer(t)))break;if(0==o.height&&(o.height=this.engine.report.unit.convertFromHInches(10)),!(o.height<=this.engine.freeSpace))break;if(this.engine.positionY+=o.height,this.engine.freeSpace-=o.height,t.components.insert(i,o),i++,a=o,o.doBookmark(),this.engine.freeSpace>999999999)break}if(this.emptyBand.sizeMode==r.DecreaseLastRow)o.height=this.engine.freeSpace,this.engine.positionY+=o.height,this.engine.freeSpace-=o.height,t.components.insert(i,o),o.doBookmark();else if(this.emptyBand.sizeMode==r.IncreaseLastRow)null==a?this.engine.freeSpace>0&&(o=this.createEmptyBandContainer(t),o.top=this.engine.positionY,o.height=this.engine.freeSpace):a.height+=this.engine.freeSpace;else if(this.emptyBand.sizeMode==r.AlignFooterToTop)for(var s=0,l=t.components.list;s<l.length;s++){var u=l[s];u.top>this.engine.positionY&&!u.sti_is(n)&&(u.top-=this.engine.freeSpace)}this.emptyBand.invokeEndRender(),this.engine.isDynamicBookmarksMode=!1},t}();e.StiEmptyBandsHelper=a}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiGroupFooterBand,r=t.Report.Components.Table.StiTable,n=t.Report.Components.StiGroupHeaderBand,o=t.System.Drawing.Size,a=t.Report.Components.Table.IStiTableCell,s=t.System.EventArgs,l=t.System.Collections.Hashtable,u=t.Report.Components.StiColumnDirection,c=t.Report.Components.StiHeaderBand,p=t.Report.Components.StiFooterBand,h=t.Report.Components.StiDataBand,g=t.Report.Components.StiChildBand,m=t.Report.Components.IStiPageBreak,d=t.Report.Components.IStiBrush,S=t.Report.Components.IStiBorder,f=t.Base.Drawing.StiBorderSides,y=t.Report.Components.IStiPrintOnEvenOddPages,b=t.Report.Components.StiPrintOnEvenOddPagesType,C=t.Report.Components.StiDockStyle,v=t.Report.Components.StiComponentType,I=t.Report.Components.StiText,A=t.Report.Components.IStiPrintAtBottom,w=t.Report.Components.StiComponent,T=t.Report.Components.StiColumnHeaderBand,B=t.Report.Components.StiMargins,R=t.Report.Components.StiSimpleText,P=t.Report.Components.StiPageFooterBand,F=t.Report.Components.StiProcessAt,x=t.Report.Events.StiGetValueEventArgs,D=t.Report.Styles.StiBaseStyle,k=t.Report.Components.StiContainer,E=t.Report.Components.StiComponentsCollection,G=t.Report.Components.StiPage,_=function(){function _(t){this.isDynamicBookmarksMode=!1,this.isCrossBandsMode=!1,this.isFirstDataBandOnPage=!1,this.isLastDataBandOnPage=!1,this.printOnAllPagesIgnoreList=new l,this.printOnAllPagesIgnoreList2=new l,this.bandsOnAllPages=null,this.denyRenderMasterComponentsInContainer=!1,this.printAtBottom=null,this.footersOnAllPages=null,this.staticBands=null,this.threads=null,this.breakable=null,this.denyChangeThread=!1,this.slaveEngines=new l,this.masterEngine=null,this.emptyBands=null,this.pageNumbers=null,this.columnsOnDataBand=null,this.columnsOnPanel=null,this.freeSpace=0,this.crossFreeSpace=0,this.positionX=0,this.positionY=0,this.positionBottomY=0,this.containerForRender=null,this.page=null,this.templatePage=null,this.templateContainer=null,this.report=null,this.masterReport=null,this.ignoreUnlimitedHeightForNewPage=!1,this.keepFirstDetailTogetherList=new l,this.keepFirstDetailTogetherTablesList=new l,this.specialContainerHeight=1e11,this.specialContainerHeight2=1e11-100,this.startIndexPageForPageTotal=-1,this.indexPageForPageTotal=-1,this.childsBandHash=null,this.silentMode=!1,this.renderState=null,this.indexOfLatestDataBand=null,this.generateNewPageBeforeBand=!1,this.ignoreSkipFirst=!1,this.generateNewColumnBeforeBand=!1,this.pageBreakSkipFirstCollection=new l,this.indexOfStartList=0,this.skipFirstPageBeforePrintEvent=!1,this.firstCallNewPage=!1,this.denyClearPrintOnAllPagesIgnoreList=!1,this.duplilcatesLastValues=null,this.anchorsArguments=null,this.needResetPageNumberForNewPage=!1,this._parserConversionStore=null,this.hashParentStyles=null,this._hashUseParentStyles=null,this.lastInvokeTextProcessValueEventArgsValue=null,this.atLeastOneDatabandRenderedOnPage=!1,this.lastFreeSpaceOnPageAfterNewList=0,this.bandsInProgress=[],this.allowEndOfPageProcessing=!1,this.flagRenderColumnsOnDataBandOnNewPage=!1,this.componentPlacementRemakeTable=null,this.hashCheckSize=null,this.hashDataSourceReferencesCounter=null,this.offsetNewColumnY=0,this.latestProgressValue=0,this.pageNumbers=new e.StiPageNumberHelper(this),this.emptyBands=new e.StiEmptyBandsHelper(this),this.bandsOnAllPages=new e.StiBandsOnAllPages(this),this.printAtBottom=new e.StiPrintAtBottom(this),this.footersOnAllPages=new e.StiFootersOnAllPages(this),this.columnsOnDataBand=new e.StiColumnsOnDataBand(this),this.columnsOnPanel=new e.StiColumnsOnPanel(this),this.staticBands=new e.StiStaticBandsHelper(this),this.breakable=new e.StiBreakableHelper(this),this.threads=new e.StiThreads(this),this.report=t}return Object.defineProperty(_.prototype,"parserConversionStore",{get:function(){return null==this._parserConversionStore&&(this._parserConversionStore=new l),this._parserConversionStore},set:function(t){this._parserConversionStore=t},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hashUseParentStyles",{get:function(){if(null==this._hashUseParentStyles){this._hashUseParentStyles=new l;for(var t=0,e=this.report.getComponents().list;t<e.length;t++){var i=e[t],r=i.sti_as(k);if(null!=r)for(var n=0,o=r.components.list;n<o.length;n++){var a=o[n];if(a.useParentStyles){this._hashUseParentStyles.set(i,null);break}}}}return this._hashUseParentStyles},set:function(t){this._hashUseParentStyles=t},enumerable:!0,configurable:!0}),_.prototype.newList=function(t){if(void 0===t&&(t=!1),null==this.containerForRender)return;!t&&(1==this.columnsOnPanel.currentColumn||this.columnsOnPanel.count<2)&&this.staticBands.render(),this.indexOfLatestDataBand=null,this.bandsOnAllPages.render()},_.prototype.newColumn=function(t){void 0===t&&(t=!0),this.columnsOnPanel.currentColumn++;var e=this.page;if(null==e&&(e=this.report.renderedPages.list[0]),this.columnsOnPanel.currentColumn>this.columnsOnPanel.count&&StiOptions.Engine.forceNewPageForExtraColumns||this.isCrossBandsMode)this.isCrossBandsMode||(e.invokeColumnEndRender(),this.columnsOnPanel.currentColumn=1,this.positionX=0),this.newPage(t);else{var i=this.containerForRender;e.invokeColumnEndRender(),this.finishColumns(i);var r=this.searchStartOfKeepContainer(i,this.indexOfStartList);t&&(r=null),null!=i&&null!=r&&0==i.components.indexOf(r)&&(r=null),this.changeEngineParamsByKeep(i,r);var n={ref:r};if(this.renderFootersOnAllPages(this.containerForRender,this.indexOfStartList,n),r=n.ref,this.renderPrintAtBottom(this.containerForRender,this.indexOfStartList,r),this.renderEmptyBands(i,r),this.setNewColumnParameters(),this.columnsOnPanel.currentColumn>this.columnsOnPanel.count&&!StiOptions.Engine.forceNewPageForExtraColumns&&this.containerForRender==i){this.columnsOnPanel.currentColumn=1,this.columnsOnPanel.rightToLeft?this.positionX=this.templateContainer.width-this.columnsOnPanel.getColumnWidth():this.positionX=0;for(var o=0,a=0,s=i.components.list;a<s.length;a++){var l=s[a];l.bottom>o&&(o=l.bottom)}this.offsetNewColumnY=o-this.staticBands.reservedPositionY,this.positionY=o}this.newList(),this.moveKeepComponentsOnNextContainer(i,r),this.indexOfStartList=this.containerForRender.components.count>0?this.containerForRender.components.count-1:0,this.finishResetPageNumberContainer(i,!1),this.finishContainer(i),e.invokeColumnBeginRender()}},_.prototype.newPage=function(t){if(void 0===t&&(t=!0),!this.isCrossBandsMode&&null!=this.containerForRender&&this.containerForRender.height>this.specialContainerHeight2&&!StiOptions.Engine.forceNewPageInSubReports){var i=new e.StiNewPageContainer;return i.top=this.positionY,i.height=this.templatePage.height<this.specialContainerHeight2?this.templatePage.height:this.templatePage.unit.convertFromHInches(1170),this.positionY+=i.height,this.freeSpace-=i.height,this.containerForRender.components.add(i),void(this.offsetNewColumnY=this.positionY-this.staticBands.reservedPositionY)}if(this.threads.isActive)this.newContainer(t);else{if(this.isCrossBandsMode&&null!=this.page)return void(this.templatePage.unlimitedBreakable?(this.positionX+=this.crossFreeSpace,this.crossFreeSpace=this.templatePage.width):this.crossFreeSpace+=this.templatePage.width);if(null!=this.page&&this.templatePage.unlimitedHeight&&!this.firstCallNewPage&&!this.ignoreUnlimitedHeightForNewPage){while(this.positionY/this.templatePage.height+1>this.page.segmentPerHeight)this.page.segmentPerHeight++,this.templatePage.unlimitedBreakable||(this.freeSpace+=this.templatePage.height);if(this.templatePage.unlimitedBreakable){this.freeSpace>0?this.positionY+=this.templatePage.height-this.positionY%this.templatePage.height:this.positionY+=this.freeSpace,this.freeSpace=this.positionBottomY;while(this.positionY/this.templatePage.height+1>this.page.segmentPerHeight)this.page.segmentPerHeight++}return}this.lastFreeSpaceOnPageAfterNewList=0,this.firstCallNewPage=!1,!this.atLeastOneDatabandRenderedOnPage&&this.printOnAllPagesIgnoreList.count>0&&this.printOnAllPagesIgnoreList.clear(),this.columnsOnPanel.currentColumn=1;var r=this.containerForRender;this.templatePage.invokeRendering();var n=this.page,o=this.report.renderedPages.cacheMode;null!=this.page&&this.processPageAfterRendering(this.page,!1),this.page=e.StiPageHelper.getPageFromTemplate(this.templatePage),this.pageNumbers.addPageNumber(this.report.currentPrintPage,this.page.segmentPerWidth,this.page.segmentPerHeight),this.page.resetPageNumber&&(null!=this.page.pageInfo&&-1!=this.page.pageInfo.indexOfStartRenderedPages?this.page.report.engine.pageNumbers.resetPageNumber(this.page.pageInfo.indexOfStartRenderedPages):this.page.report.engine.pageNumbers.resetPageNumber()),this.needResetPageNumberForNewPage&&this.page.report.engine.pageNumbers.resetPageNumber(this.report.currentPrintPage),this.processRendering(),this.addPageToRenderedPages(this.page),this.finishColumns(r),e.StiPageHelper.prepareBookmark(this.page),this.page.invokeColumnBeginRender();var a=this.searchStartOfKeepContainer(r,this.indexOfStartList);t&&(a=null),null!=r&&null!=a&&0==r.components.indexOf(a)&&(a=null),this.changeEngineParamsByKeep(r,a);var s={ref:a};this.renderFootersOnAllPages(r,this.indexOfStartList,s),a=s.ref,this.renderPrintAtBottom(r,this.indexOfStartList,a),this.renderEmptyBands(r,a),this.offsetNewColumnY=0,this.setNewPageParameters(),this.containerForRender=this.page,this.correctPrintOnAllPagesIgnoreListBeforeNewList(r,a,!1),this.newList(),this.correctPrintOnAllPagesIgnoreListBeforeNewList(r,a,!0),this.atLeastOneDatabandRenderedOnPage=!1,this.lastFreeSpaceOnPageAfterNewList=this.freeSpace,this.moveKeepComponentsOnNextContainer(r,a),this.indexOfStartList=0,this.finishResetPageNumberContainer(r,!1),this.finishContainer(r)}},_.prototype.newContainer=function(t){!this.atLeastOneDatabandRenderedOnPage&&this.printOnAllPagesIgnoreList.count>0&&this.printOnAllPagesIgnoreList.clear(),this.columnsOnPanel.currentColumn=1;var e=this.containerForRender;this.finishColumns(e);var i=this.searchStartOfKeepContainer(e,this.indexOfStartList);t&&(i=null),null!=e&&null!=i&&0==e.components.indexOf(i)&&(i=null),this.changeEngineParamsByKeep(e,i);var r={ref:i};this.renderFootersOnAllPages(e,this.indexOfStartList,r),i=r.ref,this.renderPrintAtBottom(e,this.indexOfStartList,i),this.renderEmptyBands(e,i),this.threads.newPage(),this.newList(),this.atLeastOneDatabandRenderedOnPage=!1,this.moveKeepComponentsOnNextContainer(e,i),this.indexOfStartList=0,this.finishResetPageNumberContainer(e,!1),this.finishContainer(e),null!=this.containerForRender&&this.containerForRender.parent.sti_is(G)&&this.containerForRender.canGrow&&null!=this.masterEngine&&this.freeSpace<1e11/2&&(this.freeSpace=this.masterEngine.positionBottomY-this.containerForRender.top,this.containerForRender.height=this.freeSpace)},_.prototype.newDestination=function(t){void 0===t&&(t=!1),this.columnsOnPanel.count>1?this.newColumn(t):this.newPage(t)},_.prototype.addFooterMarker=function(t){var i=new e.StiFooterMarkerContainer;i.top=this.positionY,i.left=this.positionX,i.width=i.width,i.height=0,i.name=t.name,this.addContainerToDestination(i)},_.prototype.addKeepLevelAtLatestDataBand=function(){if(null!=this.indexOfLatestDataBand){var t=this.containerForRender,i=this.indexOfLatestDataBand.index;if(-1!=this.indexOfLatestDataBand.indexInColumnContainer){t=t.components.list[this.indexOfLatestDataBand.indexInColumnContainer];var r=t;r.columnDirection==u.AcrossThenDown&&(i-=r.getLengthOfLastRow()-1)}i<t.components.count&&i>=0&&t.components.insert(i,new e.StiLevelStartContainer)}},_.prototype.addLevel=function(){if(this.columnsOnDataBand.enabled){this.columnsOnDataBand.getColumns().addContainer(new e.StiLevelStartContainer)}else this.addContainerToDestination(new e.StiLevelStartContainer)},_.prototype.removeLevel=function(){if(this.columnsOnDataBand.enabled){this.columnsOnDataBand.getColumns().addContainer(new e.StiLevelEndContainer)}else this.addContainerToDestination(new e.StiLevelEndContainer)},_.prototype.getChildBands=function(t){null==this.childsBandHash&&(this.childsBandHash=new l);var i=this.childsBandHash.get(t);if(null!=i)return i;return i=e.StiBandBuilder.getChildBands(t),this.childsBandHash.set(t,i),i},_.prototype.clearPageBreakSkipFirst=function(){this.pageBreakSkipFirstCollection.clear()},_.prototype.canGenerateNewContainer=function(t){if(null==t)return!0;if(!t.skipFirst)return!0;if(null!=this.pageBreakSkipFirstCollection.get(t))return!0;return this.pageBreakSkipFirstCollection.set(t,t),!1},_.prototype.removeBandFromPageBreakSkipList=function(t){if(null==t)return;null!=this.pageBreakSkipFirstCollection.get(t)&&this.pageBreakSkipFirstCollection.remove(t)},_.prototype.processPageAfterRendering=function(t,i){if(this.allowEndOfPageProcessing)for(var r=t.getComponents(),n=0,o=r.list;n<o.length;n++){var a=o[n],s=a.sti_as(I);if(null!=s&&s.processAt==F.EndOfPage){var l=new x;s.invokeGetValue(a,l),s.text=l.value}}var u=this.renderState;null!=this.masterEngine&&(u=this.masterEngine.renderState),e.StiRenderProvider.processPageToCache(this.report,t,i),null!=u&&e.StiRenderProvider.clearPagesWhichLessThenFromPageAndGreaterThenToPage(this.report,u),e.StiRenderProvider.clearPagesForFirstPass(this.report)},_.prototype.processLastPageAfterRendering=function(){var t=this.report.renderedPages.list[this.report.renderedPages.count-1];this.processPageAfterRendering(t,!1)},_.prototype.processRendering=function(){},_.prototype.reprocessRuntimeVariables=function(t){for(var e=t.getComponents(),i=0,r=e.list;i<r.length;i++){var n=r[i];if(!n.sti_is(R))continue;var o=this.report.totals.get(n.name);if(null==o||0==o.count)continue;for(var a=0,s=o;a<s.length;a++){var l=s[a];l.textBox==n&&(l.pageIndex=this.report.renderedPages.count,l.currentPrintPage=this.report.renderedPages.count)}}},_.prototype.finalClear=function(){this.changeEngineParamsByKeep(this.containerForRender,null),this.renderFootersOnAllPages(null,0,{ref:null}),this.renderPrintAtBottom(null,0,null),this.renderEmptyBands(this.containerForRender,null),this.finishColumns(this.containerForRender),this.finishResetPageNumberContainer(this.containerForRender,!0),this.finishContainer(null),this.emptyBands.clear(),null!=this.childsBandHash&&(this.childsBandHash.clear(),this.childsBandHash=null),null!=this.duplilcatesLastValues&&(this.duplilcatesLastValues.clear(),this.duplilcatesLastValues=null),this.indexOfLatestDataBand=null,null!=this.hashCheckSize&&(this.hashCheckSize.clear(),this.hashCheckSize=null),null!=this.hashParentStyles&&(this.hashParentStyles.clear(),this.hashParentStyles=null),this.clearPageBreakSkipFirst()},_.prototype.isPrintAtBottomOrFooterOnAllPages=function(t){if(null==t)return!1;if(null==t.containerInfo.parentBand)return!1;var e=t.containerInfo.parentBand.sti_as(A);if(null!=e&&e.printAtBottom)return!0;var i=t.containerInfo.parentBand.sti_as(p);return null!=i&&i.printOnAllPages},_.prototype.changeEngineParamsByKeep=function(t,e){if(null==e)return;for(var i=t.components.indexOf(e),r=i;r<t.components.count;r++){var n=t.components.list[r].sti_as(w);n.sti_is(k)&&!this.isPrintAtBottomOrFooterOnAllPages(n.sti_as(k))&&(this.positionY-=n.height),this.freeSpace+=n.height}},_.prototype.setNewColumnParameters=function(){this.isCrossBandsMode?(this.crossFreeSpace=this.staticBands.reservedCrossFreeSpace,this.positionX=this.staticBands.reservedPositionX,this.positionY=this.staticBands.reservedPositionY):(this.freeSpace=this.staticBands.reservedFreeSpace,this.columnsOnPanel.rightToLeft?this.positionX-=this.columnsOnPanel.getColumnWidth()+this.columnsOnPanel.columnGaps:this.positionX+=this.columnsOnPanel.getColumnWidth()+this.columnsOnPanel.columnGaps,this.positionY=this.staticBands.reservedPositionY+this.offsetNewColumnY,this.positionBottomY=this.staticBands.reservedPositionBottomY)},_.prototype.setNewPageParameters=function(){this.isCrossBandsMode?(this.crossFreeSpace=this.templateContainer.width,this.positionX=0,this.positionY=0):(this.freeSpace=this.templateContainer.height,this.columnsOnPanel.rightToLeft?this.positionX=this.templateContainer.width-this.columnsOnPanel.getColumnWidth():this.positionX=0,this.positionY=0,this.positionBottomY=this.templateContainer.height),this.columnsOnPanel.currentColumn=1},_.prototype.processNewContainerBefore=function(t){if(this.needResetPageNumberForNewPage=t.resetPageNumber,this.generateNewPageBeforeBand){this.generateNewPageBeforeBand=!1;var e=this.canGenerateNewContainer(t.sti_as(m));this.ignoreSkipFirst?(this.ignoreSkipFirst=!1,this.newPage()):this.canGenerateNewContainer&&this.newPage()}else if(this.generateNewColumnBeforeBand){this.generateNewColumnBeforeBand=!1;var e=this.canGenerateNewContainer(t.sti_as(m));this.ignoreSkipFirst?(this.ignoreSkipFirst=!1,this.newColumn()):this.canGenerateNewContainer&&this.newColumn()}else{var i=t.sti_as(m);if(null==i)return;if(i.newPageBefore||i.newColumnBefore){var r=100*this.freeSpace/this.containerForRender.height;(i.breakIfLessThan>r||100==i.breakIfLessThan)&&(i.newPageBefore&&this.canGenerateNewContainer(t.sti_as(m))?(this.newPage(),this.processNewContainerInDetailBands(t,!0,!1)):i.newColumnBefore&&this.canGenerateNewContainer(t.sti_as(m))&&(this.newColumn(),this.processNewContainerInDetailBands(t,!1,!0)))}}this.needResetPageNumberForNewPage=!1},_.prototype.processNewContainerAfter=function(t){var e=t.sti_as(m);if(null==e)return;if(e.newPageAfter||e.newColumnAfter){var i=100*this.freeSpace/this.containerForRender.height;(e.breakIfLessThan>i||100==e.breakIfLessThan)&&(e.newPageAfter?(this.generateNewPageBeforeBand=!0,this.ignoreSkipFirst=!0):e.newColumnAfter&&(this.generateNewColumnBeforeBand=!0,this.ignoreSkipFirst=!0))}},_.prototype.processNewContainerInDetailBands=function(t,e,i){var r=t.sti_as(h);if(null!=r)for(var n=0,o=r.dataBandInfo.detailDataBands.list;n<o.length;n++){var a=o[n];if(a.parent!=r.parent){var s=null!=this.masterEngine?this.masterEngine:this,l=s.slaveEngines.get(a.parent.name).sti_as(_);null!=l&&(e?l.newPage():i&&(null!=t.page&&t.page.columns<2?l.newPage():l.newColumn()))}}},_.prototype.searchStartOfKeepContainer=function(t,i){if(null==t)return null;var r=i,n=-1,o=-1,a=null;while(r<t.components.count){var s=t.components.list[r].sti_as(e.StiLevelStartContainer);null!=s&&(-1==n&&(a=s,o=r),n++);var l=t.components.list[r].sti_as(e.StiLevelEndContainer);null!=l&&--n<0&&(n=-1,a=null,o=-1),null!=s||null!=l?t.components.removeAt(r):r++}return null!=a&&(a=o>=t.components.count?null:t.components.list[o].sti_as(k)),a},_.prototype.moveKeepComponentsOnNextContainer=function(t,i){if(null==t)return;if(null!=i){for(var r=t.components.indexOf(i),n=[],o=r;o<t.components.count;o++){var a=t.components.list[o].sti_as(k);if(null==a)continue;if(a.sti_is(e.StiFooterMarkerContainer))continue;if(!a.containerInfo.isAutoRendered){n.add(a);for(var s=o+1;s<t.components.count;s++){var l=t.components.list[s].sti_as(k),u=!1;if(null!=l){l.containerInfo.parentBand.sti_is(T)&&(u=!0);var c=l.containerInfo.parentBand.sti_as(A);if(null!=c&&c.printAtBottom)break}var p=t.components.list[s].top>a.top;!u&&p&&(t.components.list[s].top-=a.height)}}}for(var g=0,m=n;g<m.length;g++){var d=m[g];this.breakable.setCanBreak(d),t.components.remove(d),d.parent=null,this.isNeedToSkip(d.containerInfo.parentBand)||this.renderContainer(d,this.printAtBottom.canProcess(d.containerInfo.parentBand),this.footersOnAllPages.canProcess(d.containerInfo.parentBand))}if(null!=this.containerForRender){var S=this.containerForRender.components.count;if(S>0){var f=this.containerForRender.components.list[S-1].sti_as(k);null!=f&&f.containerInfo.parentBand.sti_is(h)&&(this.printOnAllPagesIgnoreList.clear(),this.atLeastOneDatabandRenderedOnPage=!0)}}}},_.prototype.correctPrintOnAllPagesIgnoreListBeforeNewList=function(t,e,i){if(i){for(var r=0,n=this.printOnAllPagesIgnoreList2.keys;r<n.length;r++){var o=n[r];this.printOnAllPagesIgnoreList.remove(o)}this.printOnAllPagesIgnoreList2.clear()}else{if(null==t||null==e)return;this.printOnAllPagesIgnoreList2.clear();for(var a=t.components.indexOf(e),s=a;s<t.components.count;s++){var l=t.components.list[s].sti_as(k);null==l||l.containerInfo.isAutoRendered||(this.bandsOnAllPages.isBandInBandsList(l.containerInfo.parentBand)||l.containerInfo.parentBand.sti_is(g)&&this.bandsOnAllPages.isBandInBandsList(l.containerInfo.parentBand.getMaster()))&&(this.printOnAllPagesIgnoreList.containsKey(l.containerInfo.parentBand)||this.printOnAllPagesIgnoreList2.set(l.containerInfo.parentBand,l.containerInfo.parentBand),this.printOnAllPagesIgnoreList.set(l.containerInfo.parentBand,l.containerInfo.parentBand))}}},_.prototype.isNeedToPrintOddEven=function(t){var e=t.sti_as(y);if(null==e)return!0;if(e.printOnEvenOddPages==b.Ignore)return!0;var i=1&this.report.pageNumber;if(e.printOnEvenOddPages==b.PrintOnEvenPages&&0==i)return!0;if(e.printOnEvenOddPages==b.PrintOnOddPages&&1==i)return!0;return!1},_.prototype.isNeedToSkip=function(t){if(null==t)return!1;if(null!=this.printOnAllPagesIgnoreList.get(t))return!0;if(t.sti_is(h)&&null!=this.containerForRender){var e=this.containerForRender.components;if(e.count>0){var i=e.list[e.count-1].sti_as(k);if(null!=i&&i.containerInfo.parentBand==t&&i.containerInfo.isAutoRendered)return!0}}return!1},_.prototype.renderFootersOnAllPages=function(t,e,i){void 0===e&&(e=this.indexOfStartList),void 0===i&&(i={ref:null}),null!=t?this.footersOnAllPages.render(t,e,i):this.footersOnAllPages.render(this.containerForRender,e,i)},_.prototype.renderEmptyBands=function(t,e){null!=t&&this.emptyBands.render(t,e)},_.prototype.renderPrintAtBottom=function(t,e,i){null!=t?this.printAtBottom.render(t,e,i):this.printAtBottom.render(this.containerForRender,e,i)},_.prototype.finishContainer=function(t){if(null==t)return;for(var e=0,i=t.components.list;e<i.length;e++){var r=i[e],n=r.sti_as(k);null!=n&&(n.componentType==v.Static&&null!=n.page&&n.page.columns>1||(n.containerInfo.parentBand=null))}},_.prototype.finishResetPageNumberContainer=function(t,e){if(null==t)return;for(var i=0,r=t.components.list;i<r.length;i++){var n=r[i],o=n.sti_as(k);if(null!=o&&null!=o.containerInfo.parentBand&&o.containerInfo.parentBand.resetPageNumber&&!o.containerInfo.ignoreResetPageNumber&&!o.containerInfo.isAutoRendered){var a=this.report.renderedPages.count-2;e&&a++,this.pageNumbers.resetPageNumber(a)}}},_.prototype.finishColumns=function(t){if(null==t)return;var i=0;while(i<t.components.count){var r=t.components.list[i].sti_as(e.StiColumnsContainer);if(null!=r){r.finishColumns(),t.components.remove(r);for(var n=0,o=r.components.list;n<o.length;n++){var a=o[n];a.left+=r.left,a.top+=r.top,a.parent=t,t.components.insert(i,a),i++}}else i++}},_.prototype.addContainerToDestination=function(t){if(null==this.containerForRender)return;-1!=t.containerInfo.setSegmentPerWidth&&null!=this.page&&t.containerInfo.setSegmentPerWidth>this.page.segmentPerWidth&&(this.page.segmentPerWidth=t.containerInfo.setSegmentPerWidth),this.containerForRender.components.add(t)},_.prototype.invokePageAfterPrint=function(){if(null!=this.templatePage&&null!=this.templatePage.report&&0!=this.templatePage.report.renderedPages.count){var t=this.report.renderedPages.toList().lastOrDefault();if(null==t)return;StiOptions.Engine.useTemplateForPagePrintEvents?t.invokeAfterPrint(this.templatePage,s.empty):t.invokeAfterPrint(t,s.empty)}},_.prototype.addPageToRenderedPages=function(t){if(this.invokePageAfterPrint(),0!=this.templatePage.stopBeforePrint&&this.templatePage.pageInfo.renderedCount-1==this.templatePage.stopBeforePrint)throw"StiStopBeforePrintException";if(0!=this.report.stopBeforePage&&this.report.stopBeforePage<=this.report.currentPrintPage)throw"StiStopBeforePageException";this.report.renderedPages.add(t),this.report.currentPrintPage++,0!=this.page.report.renderedPages.count&&(this.skipFirstPageBeforePrintEvent||(StiOptions.Engine.useTemplateForPagePrintEvents?this.page.invokeBeforePrint(this.templatePage,s.empty):this.page.invokeBeforePrint(this.page,s.empty)),this.skipFirstPageBeforePrintEvent=!1,this.page.paperSize=this.templatePage.paperSize,this.page.orientation=this.templatePage.orientation,this.page.pageWidth=this.templatePage.pageWidth,this.page.pageHeight=this.templatePage.pageHeight,this.page.margins=new B(this.templatePage.margins.left,this.templatePage.margins.right,this.templatePage.margins.top,this.templatePage.margins.bottom))},_.prototype.checkFreeSpace1=function(t){if(this.isCrossBandsMode)return this.checkFreeSpace2(t.width);var e=this.checkFreeSpace2(t.height);if(e)return this.breakable.setCanBreak(t),!1;return e},_.prototype.checkFreeSpace2=function(t){if(this.isCrossBandsMode){if(t>this.crossFreeSpace){if(this.newDestination(),t>this.crossFreeSpace)return!1;return!0}}else if(t>this.freeSpace){if(!(this.templatePage.unlimitedHeight&&this.templatePage.columns<2))return this.newDestination(),!0;if(null==this.page)return this.freeSpace+=this.templatePage.pageHeight-this.templatePage.margins.top-this.templatePage.margins.bottom,!1;while((this.positionY+t)/this.templatePage.height+1>this.page.segmentPerHeight)this.page.segmentPerHeight++,this.templatePage.unlimitedBreakable||(this.freeSpace+=this.templatePage.height);if(t>this.freeSpace+(this.templatePage.height-this.positionBottomY)){if(this.templatePage.unlimitedBreakable){if(this.positionY>0){this.freeSpace+=this.templatePage.height-this.positionBottomY;var e=this.ignoreUnlimitedHeightForNewPage;this.ignoreUnlimitedHeightForNewPage=!1,this.newDestination(),this.ignoreUnlimitedHeightForNewPage=e}if(t>this.templatePage.height)return!0}return!1}}return!1},_.prototype.storeLatestDataBand=function(t){if(t.sti_is(h))if(this.columnsOnDataBand.enabled){var i=this.columnsOnDataBand.getColumns();if(null==i)this.indexOfLatestDataBand=new e.StiIndex(0,this.containerForRender.components.count);else{var r=this.containerForRender.components.indexOf(i);this.indexOfLatestDataBand=new e.StiIndex(i.components.count,r)}}else this.indexOfLatestDataBand=new e.StiIndex(this.containerForRender.components.count)},_.prototype.setReportVariables=function(t){if(t.setReportVariables(),this.columnsOnDataBand.enabled&&t.sti_is(h)){var e=this.columnsOnDataBand.getColumns();null!=e&&(this.report.column=e.getCurrentColumn())}else this.report.column=this.columnsOnPanel.currentColumn},_.prototype.checkForDuplicate=function(t,e,i){if(null==this.duplilcatesLastValues&&(this.duplilcatesLastValues=new l),this.duplilcatesLastValues.containsKey(t)&&e==this.duplilcatesLastValues.get(t)&&i==this.duplilcatesLastValues.get(t+"_tag"))return!0;return this.duplilcatesLastValues.set(t,e),this.duplilcatesLastValues.set(t+"_tag",i),!1},_.prototype.resetProcessingDuplicates1=function(t){null!=this.duplilcatesLastValues&&this.duplilcatesLastValues.containsKey(t)&&this.duplilcatesLastValues.set(t,null)},_.prototype.resetProcessingDuplicates2=function(t){var e=String.stiFormat("{0}_{1}",t.left,t.width);null!=this.duplilcatesLastValues&&this.duplilcatesLastValues.containsKey(e)&&this.duplilcatesLastValues.set(e,null)},_.prototype.getSumTagsOnPage=function(t,e){return 0},_.prototype.getComponentByNameFromRenderedPage=function(t,e){for(var i=0,r=t.getComponents().list;i<r.length;i++){var n=r[i];if(n.name==e)return n}return null},_.prototype.renderBand=function(i,r,n){void 0===r&&(r=!1),void 0===n&&(n=!1),this.bandsInProgress.add(i);try{var o=new E,a=!0;i.sti_is(h)&&i.columns>1&&(a=!1);var s=null;if(a){s=this.getChildBands(i);for(var u=0,g=s.list;u<g.length;u++){var m=g[u];m.keepChildTogether&&this.addLevel()}}var d=!0,S={ref:d},f=this.internalRenderBand(i,r,n,S);if(d=S.ref,null!=f&&o.add(f),a)for(var y=0,b=s.list;y<b.length;y++){var m=b[y],C=m.enabled;d||m.printIfParentDisabled||(m.enabled=!1);var v=!(!d&&!m.printIfParentDisabled),I={ref:v},A=this.internalRenderBand(m,r,n,I);v=I.ref,null!=A&&o.add(A),m.keepChildTogether&&this.removeLevel(),m.enabled=C}if((i.sti_is(c)&&i.printOnAllPages||i.sti_is(p)&&i.printOnAllPages)&&null!=f&&f.components.count>0){var w=this;if(null!=this.report&&null!=this.report.engine&&(w=this.report.engine),null==w.componentPlacementRemakeTable&&(w.componentPlacementRemakeTable=new l),!w.componentPlacementRemakeTable.containsKey(i)){w.componentPlacementRemakeTable.set(i,null);var T=null;i.sti_is(c)&&(T=e.StiHeaderBandBuilder.getMaster(i)),i.sti_is(p)&&(T=e.StiFooterBandBuilder.getMaster(i)),null!=T&&null!=T.masterComponent&&T.masterComponent.sti_is(h)&&w.componentPlacementRemakeTable.set(i,T.masterComponent)}var B=w.componentPlacementRemakeTable.get(i);if(null!=B&&B.sti_is(h)){var R=f.components.list[0].componentPlacement;if(!String.isNullOrEmpty(R)){R+="_r"+B.position.toString();for(var P=0,F=f.components.list;P<F.length;P++){F[P].componentPlacement=R}}}}return o}catch(e){t.System.StiError.showError(e,!1)}finally{this.bandsInProgress.removeAt(this.bandsInProgress.count-1)}},_.prototype.internalRenderBand=function(t,i,r,n){void 0===i&&(i=!1),void 0===r&&(r=!1),void 0===n&&(n={ref:!0});var o=null;this.storeLatestDataBand(t);var a=t.sti_as(d),u=t.sti_as(S),c=null,p=f.None;null!=a&&(c=a.brush),null!=u&&null!=u.border&&(p=u.border.side);var g=t.enabled,m=t.report,y=null,b=!1;if(t.useParentStyles&&null!=t.parent&&(null!=m&&null!=m.engine&&null!=m.engine.hashParentStyles&&m.engine.hashParentStyles.count>0&&(y=m.engine.hashParentStyles.get(t.parent).sti_as(D)),null==y&&(y=D.getStyle(t.parent)),null!=y)){y.setStyleToComponent(t),b=!0;var I=t.getComponentStyle2();null!=I&&I.setStyleToComponent(t)}if(!StiOptions.Engine.useParentStylesOldMode){var A=e.StiOddEvenStylesHelper.applyOddEvenStyles(this.report,t.sti_as(h),t);null!=A&&(y=A)}if(t.invokeBeforePrint(t,s.empty),null!=m&&null!=m.engine&&m.engine.hashUseParentStyles.containsKey(t)){if(null!=y||String.isNullOrWhiteSpace(t.componentStyle)||(y=m.styles.getByName(t.componentStyle)),null!=m.engine.hashParentStyles&&m.engine.hashParentStyles.count>0){var w=m.engine.hashParentStyles.get(t).sti_as(D);null!=w&&(y=w)}var T=D.getStyle(t,y);null==m.engine.hashParentStyles&&(m.engine.hashParentStyles=new l),m.engine.hashParentStyles.set(t,T),b=!0}var B=null;t.sti_is(h)&&(B=t),!t.sti_is(h)||this.isNeedToSkip(t)||this.denyClearPrintOnAllPagesIgnoreList||(this.printOnAllPagesIgnoreList.clear(),this.atLeastOneDatabandRenderedOnPage=!0);var R=n.ref;if(R||(t.enabled=!1),R=t.enabled,n.ref=R,this.isNeedToPrintOddEven(t)&&!this.isNeedToSkip(t)&&t.isEnabled){if(this.setReportVariables(t),i||this.processNewContainerBefore(t),o=t.internalRender().sti_as(k),t.sti_is(h)){var P=t;o.containerInfo.dataBandPosition=P.position;var F=null!=P.filterMethodHandler||null!=P.sort&&P.sort.length>0||null!=m.dataBandsUsedInPageTotals&&-1!=m.dataBandsUsedInPageTotals.indexOf(t.name);F&&null!=P.dataSource&&(o.containerInfo.dataSourceRow=P.dataSource.getDataRow(P.dataSource.position)),null==P.businessObject||null==P.masterComponent&&!F||(o.containerInfo.businessObjectCurrent=P.businessObject.current)}null!=t.parent&&(t.parent.sti_is(G)?t.componentType==v.Static?o.width=t.parent.width:o.width=t.parent.getColumnWidth():t.isCross||(o.width=t.parent.width));var x=o.page;o.page=t.page,o.invokeEvents(),o.page=x,o.containerInfo.parentBand=t,t.componentType!=v.Static&&(o.dockStyle=C.None),StiOptions.Engine.useParentStylesOldMode&&e.StiOddEvenStylesHelper.applyOddEvenStyles(this.report,t.sti_as(h),o),this.silentMode||this.renderContainer(o,this.printAtBottom.canProcess(t),this.footersOnAllPages.canProcess(t)),i||this.processNewContainerAfter(t)}if(null!=B&&r&&(t.enabled?(B.invokeRendering(),B.invokeGroupRendering()):B.calcInvisible&&(B.invokeRendering(),B.invokeGroupRendering())),t.invokeAfterPrint(t,s.empty),b&&null!=m.engine.hashParentStyles&&m.engine.hashParentStyles.remove(t),null!=a&&(a.brush=c),null!=u&&null!=u.border&&(u.border.side=p),t.enabled=g,null!=t.sti_as(S))var E=null==o?null:o.sti_as(S);return this.checkContainerOnTable(o),o},_.prototype.checkContainerOnTable=function(t){if(null==t||null==t.containerInfo.parentBand)return;if(t.containerInfo.parentBand.sti_is(c)){if(!t.containerInfo.parentBand.headerBandInfo.isTableHeader)return;for(var e=t.getComponents(),s=0,l=e.list;s<l.length;s++){var u=l[s],h=u.sti_as("IStiTableCell");if(null!=h&&h.join&&null!=h.parentJoinCell){null!=u.parent&&(u.parent.minSize=u.parent.maxSize=new o(u.parent.width,u.parent.height));var g=e.getByName(h.parentJoinCell.name);null!=g&&(u.height=g.parent.bottom-u.parent.top,h.cellDockStyle!=C.None&&(u.maxSize=u.minSize=new o(u.width,u.height)));continue}}return}if(t.containerInfo.parentBand.sti_is(n)){if(!t.containerInfo.parentBand.groupHeaderBandInfo.isTableGroupHeader)return;for(var e=t.getComponents(),m=0,d=e.list;m<d.length;m++){var u=d[m],h=u.sti_as(a);if(null!=h&&h.join&&null!=h.parentJoinCell){null!=u.parent&&(u.parent.minSize=u.parent.maxSize=new o(u.parent.width,u.parent.height));var g=e.getByName(h.parentJoinCell.name);null!=g&&(u.height=g.parent.bottom-u.parent.top,h.cellDockStyle!=C.None&&(u.maxSize=u.minSize=new o(u.width,u.height)));continue}}return}if(t.containerInfo.parentBand.sti_is(r)){for(var e=t.getComponents(),S=0,f=e.list;S<f.length;S++){var u=f[S],h=u.sti_as(a);if(null!=h&&h.join&&null!=h.parentJoinCell){null!=u.parent&&(u.parent.minSize=u.parent.maxSize=new o(u.parent.width,u.parent.height));var g=e.getByName(h.parentJoinCell.name);null!=g&&(u.height=g.parent.bottom-u.parent.top,h.cellDockStyle!=C.None&&(u.maxSize=u.minSize=new o(u.width,u.height)));continue}}return}if(t.containerInfo.parentBand.sti_is(p)){if(!t.containerInfo.parentBand.footerBandInfo.isTableFooter)return;for(var e=t.getComponents(),y=0,b=e.list;y<b.length;y++){var u=b[y],h=u.sti_as(a);if(null!=h&&h.join&&null!=h.parentJoinCell){null!=u.parent&&(u.parent.minSize=u.parent.maxSize=new o(u.parent.width,u.parent.height));var g=e.getByName(h.parentJoinCell.name);null!=g&&(u.height=g.parent.bottom-u.parent.top,h.cellDockStyle!=C.None&&(u.maxSize=u.minSize=new o(u.width,u.height)));continue}}return}if(t.containerInfo.parentBand.sti_is(i)){if(!t.containerInfo.parentBand.groupFooterBandInfo.isTableGroupFooter)return;for(var e=t.getComponents(),v=0,I=e.list;v<I.length;v++){var u=I[v],h=u.sti_as(a);if(null!=h&&h.join&&null!=h.parentJoinCell){null!=u.parent&&(u.parent.minSize=u.parent.maxSize=new o(u.parent.width,u.parent.height));var g=e.getByName(h.parentJoinCell.name);null!=g&&(u.height=g.parent.bottom-u.parent.top,h.cellDockStyle!=C.None&&(u.maxSize=u.minSize=new o(u.width,u.height)));continue}}return}},_.prototype.renderContainer=function(t,i,r){if(void 0===i&&(i=!1),void 0===r&&(r=!1),t.sti_is(e.StiColumnsContainer))return this.internalRenderColumnsContainer(t);t.containerInfo.isColumns&&null==this.columnsOnDataBand.getColumns()&&this.columnsOnDataBand.renderColumns(t.containerInfo.parentBand);var n=null!=t.containerInfo.parentBand?t.containerInfo.parentBand.sti_as(h):null;if(null!=n&&n.columns>1&&this.columnsOnDataBand.enabled)return this.internalRenderContainerToColumns(t,i,r);return this.internalRenderContainer(t,i,r)},_.prototype.internalRenderColumnsContainer=function(t){return this.isCrossBandsMode?(t.top=this.positionY,t.left=this.positionX,this.addContainerToDestination(t),this.crossFreeSpace-=t.width,this.positionX+=t.width):(t.left=this.positionX,t.top=this.positionY,this.addContainerToDestination(t),this.freeSpace-=t.height,this.positionY+=t.height),t},_.prototype.internalRenderContainerToColumns=function(t,e,i){t.containerInfo.isColumns=!0;var r=this.columnsOnDataBand.getColumns();if(null==r)return null;var n=r.howMuchAdditionalSpaceNeeded(r.height,t);if(n>0){var o=0;if(null!=r.page&&r.page.unlimitedHeight&&r.page.unlimitedBreakable){var a=r.page.pageHeight-r.page.margins.top-r.page.margins.bottom;(r.top+r.height)/a!=(r.top+r.height+n)/a&&(o+=a-(r.top+r.height)%a,n-=o)}if(this.freeSpace<n&&!this.flagRenderColumnsOnDataBandOnNewPage&&0!=this.positionY){var s=null!=r.containerInfo.parentBand?r.containerInfo.parentBand.sti_as(h):null;null==s&&(s=t.containerInfo.parentBand.sti_as(h)),this.newDestination();var l=this.columnsOnDataBand.getColumns();return null==l?l=this.columnsOnDataBand.renderColumns(s):this.columnsOnDataBand.enabled=!0,this.flagRenderColumnsOnDataBandOnNewPage=!0,this.renderContainer(t,e,i),t}this.flagRenderColumnsOnDataBandOnNewPage=!1,r.height+=n+o,this.positionY+=n,this.freeSpace-=n}return r.addContainer(t),t},_.prototype.internalRenderContainer=function(t,e,i){if(this.columnsOnDataBand.enabled=!1,this.columnsOnPanel.count>0&&(null!=t.containerInfo&&null!=t.containerInfo.parentBand&&t.containerInfo.parentBand.parent.sti_is(G)&&t.containerInfo.parentBand.componentType==v.Static?t.width=t.containerInfo.parentBand.parent.width:t.width=this.columnsOnPanel.getColumnWidth()),this.isNeedToSkip(t.containerInfo.parentBand))return null;if(null!=t.containerInfo.parentBand&&t.containerInfo.parentBand.sti_is(g)){t.containerInfo.parentBand.getMaster().componentType==v.Static&&this.breakable.setCanBreak(t)}var r=null!=t.containerInfo.parentBand&&null!=t.containerInfo.parentBand.page&&t.containerInfo.parentBand.page.unlimitedHeight;if(this.lastFreeSpaceOnPageAfterNewList>0&&t.height>this.lastFreeSpaceOnPageAfterNewList&&!t.canBreak&&!r){this.breakable.setCanBreak(t);var n=-1;t.containerInfo.parentBand.sti_is(h)&&(n=t.containerInfo.parentBand.position);var o=String.stiFormat("Whilst the Can Break property was set to False the component {0}{1} was split because it couldn't be placed on the page entirely.",t.name,n>=0?String.stiFormat(" (position {0})",n):String.empty)}t=this.breakable.processBreakable(t);var a=t.canBreak,s=this.report.renderedPages.count;while(this.checkFreeSpace1(t));return s!=this.report.renderedPages.count&&this.reprocessRuntimeVariables(t),a!=t.canBreak&&(t=this.breakable.processBreakable(t)),this.isCrossBandsMode?(t.top=this.positionY,this.crossFreeSpace-=t.width):(t.left=this.positionX,this.freeSpace=this.freeSpace-t.height),null!=t.containerInfo.parentBand&&t.containerInfo.parentBand.sti_is(P)?(t.top=this.positionBottomY-t.height,this.positionBottomY-=t.height):(this.isCrossBandsMode?t.left=this.positionX:t.top=this.positionY,i||e?(i&&this.footersOnAllPages.add(t),e&&this.printAtBottom.add(t)):this.isCrossBandsMode?this.positionX+=t.width:this.positionY+=t.height),this.addContainerToDestination(t),null!=t.containerInfo.parentBand&&t.containerInfo.parentBand.sti_is(h)&&!this.denyClearPrintOnAllPagesIgnoreList&&(this.printOnAllPagesIgnoreList.clear(),this.atLeastOneDatabandRenderedOnPage=!0),t},_.specialContainerHeight2=1e11-100,_}();e.StiEngine=_}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiContainer,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(i);e.StiFooterMarkerContainer=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Report.Components.StiFooterBand,n=t.Report.Components.StiContainer,o=t.Report.Components.StiDataBand,a=t.Report.Components.StiReportSummaryBand,s=function(){function t(t){this.bands=new i,this.engine=null,this.engine=t}return t.prototype.add=function(t){this.bands.set(t,t)},t.prototype.canProcess=function(t){var e=t.sti_as(r);return null!=e&&e.printOnAllPages},t.prototype.render=function(t,s,l){if(null==t||0==this.bands.count)return;for(var u=l.ref,c=new i,p=[],h=null,g=!0,m=s;m<t.components.count;m++){var d=t.components.list[m].sti_as(n);if(null==d)continue;if(null!=d.containerInfo.parentBand&&d.containerInfo.parentBand.sti_is(o)&&(h=d.containerInfo.parentBand.sti_as(o)),d==u&&(g=!1),g&&null!=this.bands.get(d)){null!=d.containerInfo.parentBand&&d.containerInfo.parentBand.sti_is(r)&&d.containerInfo.parentBand.invokeMoveFooterToBottom();var S=c.get(d.name);null==S&&(S=[],c.set(d.name,S)),S.add(d),p.add(d)}if(d.sti_is(e.StiFooterMarkerContainer)){var S=c.get(d.name);if(null!=S&&S.count>0){var f=S[S.count-1].sti_as(n),y=t.components.indexOf(f);S.removeAt(S.count-1),t.components.removeAt(m),t.components.insert(m,f),t.components.removeAt(y),m--,p.remove(f);var b=f.height;f.top=d.top,this.engine.positionY+=f.height;for(var C=m+1;C<t.components.count;C++){var v=t.components.list[C].sti_as(n);if(null==v)continue;if(v==u)break;v.top+=b}f.containerInfo.isAutoRendered=!0,d==u&&(u=f)}}}for(var I=0,A=p;I<A.length;I++){var d=A[I],w=null;if(null!=d.containerInfo.parentBand&&d.containerInfo.parentBand.sti_is(r))for(var T=0,B=t.components.list;T<B.length;T++){var R=B[T];if(R!=d&&R.sti_is(n)&&!c.containsKey(R.name)){var P=R.sti_as(n);if(null!=P.containerInfo&&null!=P.containerInfo.parentBand&&(P.containerInfo.parentBand.sti_is(r)||P.containerInfo.parentBand.sti_is(a))){if(P.containerInfo.parentBand.sti_is(a)){w=R;break}if(null==h){w=R;break}for(var F=0,x=h.dataBandInfo.footersOnAllPages.list;F<x.length;F++){var D=x[F];if(D.name==R.name){w=R;break}}for(var k=0,E=h.dataBandInfo.footersOnLastPage.list;k<E.length;k++){var D=E[k];if(D.name==R.name){w=R;break}}}}}if(null!=w){t.components.remove(d);var G=t.components.indexOf(w);t.components.insert(G,d),d.top=w.top;for(var _=G+1;_<t.components.count;_++)t.components.list[_].top+=d.height;this.engine.positionY+=d.height}else t.components.remove(d),t.components.add(d),d.top=this.engine.positionY,this.engine.positionY+=d.height;d.containerInfo.isAutoRendered=!0}return this.bands.clear(),void(l.ref=u)},t}();e.StiFootersOnAllPages=s}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e){void 0===e&&(e=-1),this.index=-1,this.indexInColumnContainer=-1,this.index=t,this.indexInColumnContainer=e}return t}();t.StiIndex=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiContainer,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(i);e.StiLevelContainer=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){var e=t.call(this)||this;return e.name="LevelEnd",e.height=0,e.interaction=null,e}return __extends(e,t),e}(t.StiLevelContainer);t.StiLevelEndContainer=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){var e=t.call(this)||this;return e.name="LevelStart",e.height=0,e.interaction=null,e}return __extends(e,t),e}(t.StiLevelContainer);t.StiLevelStartContainer=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiContainer,r=function(t){function e(){var e=t.call(this)||this;return e.name="NewPageContainer",e.height=0,e.interaction=null,e}return __extends(e,t),e}(i);e.StiNewPageContainer=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiDataBand,r=t.Report.Components.StiComponent,n=function(){function t(){}return t.applyOddEvenStyles=function(t,e,n){var o=null;if(null!=t&&t.styles.count>0&&null!=e){var a=e.sti_as(r),s=!0;if(a.isPropertyPresent(i.propertyEvenStyle)){var l=!1;if(l=e.sti_is(i)?1==(1&e.position):0==(1&t.lineThrough)){var u=e.evenStyle;if(!String.isNullOrEmpty(u)){var c=t.styles.getByName(u);null!=c&&(c.setStyleToComponent(n),o=c,s=!1)}}}if(s&&a.isPropertyPresent(i.propertyOddStyle)){var l=!1;if(!(l=e.sti_is(i)?1==(1&e.position):0==(1&t.lineThrough))){var p=e.oddStyle;if(!String.isNullOrEmpty(p)){var c=t.styles.getByName(p);null!=c&&(c.setStyleToComponent(n),o=c)}}}}return o},t}();e.StiOddEvenStylesHelper=n}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.Table.StiTable,r=t.Report.CrossTab.StiCrossHorAlignment,n=t.Report.CrossTab.StiCrossTabHelper,o=t.Report.CrossTab.StiCrossTabParams,a=t.Report.CrossTab.StiCrossTab,s=t.Report.Engine.StiParser.StiParser,l=t.Report.Components.StiText,u=t.Report.Components.StiDataBand,c=t.Report.Components.StiSubReport,p=t.System.Collections.Hashtable,h=t.Report.Components.StiReportSummaryBand,g=t.Report.Components.StiReportTitleBand,m=t.Report.Components.StiCrossLinePrimitive,d=t.Report.Components.StiContainerHelper,S=t.Base.StiGuidUtils,f=t.Report.Components.StiComponentType,y=t.Base.Drawing.StiVertAlignment,b=t.Report.Components.StiDockStyle,C=t.Report.Components.StiContainer,v=t.Report.Components.StiPage,I=t.Report.Components.StiPanel,A=function(){function A(){}return A.createListOfDataBands=function(t,r,n,o,s){for(var l=null,h=t.getComponents(),g=0,m=h.list;g<m.length;g++){var d=m[g],S=d.sti_as(u);if(null!=S&&(null==S.masterComponent||S.masterComponent==t.pageInfo.masterDataBand)){if(S.sti_is(i)&&!S.enabled)continue;var f=!1;if(!S.isBusinessObjectEmpty){if(null!=S.businessObject.parentBusinessObject){var y=null;S.parent.sti_is(v)&&r.count>0?y=r[r.count-1]:n.count>0&&(y=n[n.count-1]),null!=y&&(y.isBusinessObjectEmpty||y.businessObjectGuid!=S.businessObject.parentBusinessObject.guid?S.businessObject.parentBusinessObject.guid==l&&(f=!0):f=!0)}l=S.businessObjectGuid}f||(S.parent.sti_is(v)?r.add(S):null==e.StiSubReportsHelper.getParentBand(S)&&n.add(S),l=null)}var b=d.sti_as(c);null!=b&&b.enabled&&(null!=e.StiSubReportsHelper.getParentBand(b)||t.printOnPreviousPage||o.add(b));var C=d.sti_as(a);null!=C&&d.enabled&&null==e.StiSubReportsHelper.getParentBand(d.sti_as(a))&&s.add(C)}var I=!0;while(I){I=!1;var A=new p,w=0;while(w<r.count){var S=r[w];if(!S.isBusinessObjectEmpty){var T=S.businessObject;if(null!=T.parentBusinessObject&&null==A.get(T.parentBusinessObject)&&null==S.masterComponent){var B=new u;B.businessObjectGuid=T.parentBusinessObject.guid,B.height=0,B.page=t,B.parent=S.parent,B.prepare(),B.dataBandInfo.detailDataBands.contains(S)||B.dataBandInfo.detailDataBands.add(S),r[w]=B,I=!0}else A.set(T,T)}w++}}},A.getReportTitles=function(t){var e=[];if(t.titleBeforeHeader)return e;for(var i=0,r=t.components.list;i<r.length;i++){var n=r[i],o=n.sti_as(g);null!=o&&e.add(o)}return e},A.getReportSummaries=function(t){for(var e=[],i=0,r=t.components.list;i<r.length;i++){var n=r[i],o=n.sti_as(h);null!=o&&e.add(o)}return e},A.renderSimpleComponents=function(t,e){var i=0,r=0,n=t.sti_as(I);null!=n&&(i=n.columns<2?1:n.columns,r=n.getColumnWidth()+n.columnGaps);for(var o=0;o<i;o++){t.report.column=o+1;for(var a=0,s=t.components.list;a<s.length;a++){var l=s[a];if(l.componentType==f.Simple){l.parentBookmark=e.currentBookmark;var u=l.render();if(null==u)continue;if(null!=n&&n.columns>1&&!u.sti_is(m)&&(n.rightToLeft?u.left+=t.width-r*(o+1)+n.columnGaps:u.left+=r*o),e.components.add(u),StiOptions.Engine.allowInteractionInChartWithComponents){var c=u;if(null!=c&&null!=c.chartInfo.interactiveComps)for(var h=0,g=c.chartInfo.interactiveComps;h<g.length;h++){var S=g[h];S.left+=u.left,S.top+=u.top,e.components.add(S)}}}}}d.checkSize(t.report.engine.containerForRender);for(var y=new p,b=e.getComponents(),v=0,A=b.list;v<A.length;v++){var S=A[v],w=S.sti_as(C);if(null!=w){var T=y.get(w.name);null==T&&(T=[],y.set(w.name,T)),T.add(w)}}for(var B=0,R=y.values;B<R.length;B++)for(var T=R[B],o=1,P=0,F=T;P<F.length;P++){var w=F[P];w.containerInfo.renderStep=o,o++}t.report.column=1,e.dockToContainer()},A.prepareBookmark=function(t){t.parentBookmark=t.report.bookmark,t.doBookmark()},A.renderPage=function(t){t.invokeBeginRender(),t.resetPageNumber&&(null!=t.pageInfo&&-1!=t.pageInfo.indexOfStartRenderedPages?t.report.engine.pageNumbers.resetPageNumber(t.pageInfo.indexOfStartRenderedPages):t.report.engine.pageNumbers.resetPageNumber());var s=A.getReportTitles(t),l=A.getReportSummaries(t),u=[],c=[],p=[],h=[];A.createListOfDataBands(t,u,c,p,h);for(var g=t.report.engine,m=0,d=c;m<d.length;m++){var S=d[m],f=g.threads.createContainerEngine(S.parent.name,t.report,g,t.pageInfo.indexOfStartRenderedPages);t.report.engine.slaveEngines.set(S.parent.name,f),f.printOnAllPagesIgnoreList=g.printOnAllPagesIgnoreList}for(var y=0,b=p;y<b.length;y++){var I=b[y],f=g.threads.createContainerEngine(I.name,t.report,g,t.pageInfo.indexOfStartRenderedPages);t.report.engine.slaveEngines.set(I.name,f)}for(var w=0,T=h;w<T.length;w++){var B=T[w],f=g.threads.createContainerEngine(B.name,t.report,g,t.pageInfo.indexOfStartRenderedPages);t.report.engine.slaveEngines.set(B.name,f)}if(u.count>0)for(var R=1,P=0,F=u;P<F.length;P++){var S=F[P];if(S.sti_is(i)&&!S.enabled)continue;1==R&&(t.report.engine.isFirstDataBandOnPage=!0,S.dataBandInfo.reportTitles=s),R==u.count&&(t.report.engine.isLastDataBandOnPage=!0,S.dataBandInfo.reportSummaries=l),S.parentBookmark=null!=t.report.engine.page?t.report.engine.page.currentBookmark:t.currentBookmark,S.renderMaster(),S.dataBandInfo.reportTitles=null,S.dataBandInfo.reportSummaries=null,t.report.engine.isFirstDataBandOnPage=!1,t.report.engine.isLastDataBandOnPage=!1,R++}else{if(null!=s)for(var x=0,D=s;x<D.length;x++){var k=D[x];k.printIfEmpty&&(k.parentBookmark=null!=t.report.engine.page?t.report.engine.page.currentBookmark:t.currentBookmark,k.doBookmark(),t.report.engine.renderBand(k))}if(null!=l)for(var E=0,G=l;E<G.length;E++){var _=G[E];_.printIfEmpty&&(_.parentBookmark=null!=t.report.engine.page?t.report.engine.page.currentBookmark:t.currentBookmark,_.doBookmark(),t.report.engine.renderBand(_))}}try{for(var L=0,N=c;L<N.length;L++){var S=N[L],f=g.slaveEngines.get(S.parent.name);0==f.freeSpace&&(f.freeSpace=S.parent.height);var O=S.parent.height;null!=S.parent&&S.parent.canGrow&&S.parent.parent.sti_is(v)&&f.freeSpace<1e11/2&&(f.freeSpace=g.positionBottomY-S.parent.top,null!=f.containerForRender&&(f.containerForRender.height=f.freeSpace)),t.report.engine=f,null!=f.containerForRender&&(S.parentBookmark=f.containerForRender.currentBookmark),S.renderMaster()}}finally{t.report.engine=g}try{for(var Z=0,M=p;Z<M.length;Z++){var I=M[Z],f=g.slaveEngines.get(I.name);t.report.engine=f;var H=new C(I.clientRectangle);H.name="Temp Container",H.canBreak=!0,e.StiSubReportsHelper.renderSubReport(H,I);for(var W=0,V=0,Y=H.components.list;V<Y.length;V++){var j=Y[V];W=Math.max(j.bottom,W)}H.height=W,null!=f.containerForRender&&f.renderContainer(H)}}finally{t.report.engine=g}try{for(var X=0,J=h;X<J.length;X++){var B=J[X],f=g.slaveEngines.get(B.name).sti_as(e.StiEngine);t.report.engine=f;var K=new o,U=B;n.createCross(U);while(!K.renderingIsFinished&&null!=f.containerForRender){U.horAlignment==r.None?f.containerForRender.width=f.containerForRender.parent.width-f.containerForRender.left:f.containerForRender.width=f.containerForRender.parent.width;var z=!1;if(f.containerForRender.parent.canShrink&&0==f.containerForRender.parent.height){var Q=t.getComponents().getByName(f.containerForRender.parent.name);z=!0,f.containerForRender.parent.width=Q.width,f.containerForRender.parent.height=Q.height,f.containerForRender.width=Q.width,f.containerForRender.height=Q.height}else f.containerForRender.height=f.containerForRender.parent.height-f.containerForRender.top;K.destinationRectangle=f.containerForRender.clientRectangle.clone(),K.destinationContainer=f.containerForRender;if(e.StiBuilder.getBuilder(a).sti_as(e.StiCrossTabBuilder).renderCrossTab(K,U),z){var q=f.containerForRender.parent.getActualSize();f.containerForRender.parent.width=q.width,f.containerForRender.parent.height=q.height}if(!K.renderingIsFinished)if(f.containerForRender.parent.height>e.StiEngine.specialContainerHeight2){var $=new e.StiNewPageContainer;$.top=f.positionY,$.height=f.templatePage.height<e.StiEngine.specialContainerHeight2?f.templatePage.height:f.templatePage.unit.convertFromHInches(1170),f.positionY+=$.height,f.freeSpace-=$.height,f.offsetNewColumnY=f.positionY-f.staticBands.reservedPositionY,f.containerForRender.parent.components.add($);var tt=f.containerForRender.clone(!0,!1).sti_as(C);tt.top=f.positionY,f.containerForRender.parent.components.add(tt),f.containerForRender=tt}else f.newDestination()}n.clearCross(U)}}finally{t.report.engine=g}t.invokeEndRender(),t.invokeColumnEndRender(),t.isRendered=!0;for(var et=0,it=g.slaveEngines.values;et<it.length;et++){it[et].finalClear()}t.report.engine.slaveEngines.clear()},A.renderOverlays=function(t,e){var i=t.pageInfo.overlays;if(null!=i){for(var r=[],n=[],o=[],a=0,s=i.list;a<s.length;a++){var l=s[a],u=l.render();null!=u&&(u.dockStyle=b.None,e.components.add(u),l.vertAlignment==y.Top?r.add(u):l.vertAlignment==y.Center?n.add(u):l.vertAlignment==y.Bottom&&o.add(u),u=null)}for(var c=-t.margins.top,p=0,h=r;p<h.length;p++){var g=h[p];g.top=c,c+=g.height}for(var m=t.height+t.margins.bottom,d=0,S=o;d<S.length;d++){var g=S[d];g.top=m-g.height,m-=g.height}for(var f=0,C=0,v=n;C<v.length;C++){var g=v[C];f+=g.height}c=(t.height-f)/2;for(var I=0,A=n;I<A.length;I++){var g=A[I];g.top=c,c+=g.height}}},A.getPageFromTemplate=function(i){var r=i.clone(!1,!1);if(StiOptions.Engine.Watermark.allowExpression&&null!=r.watermark&&null!=r.watermark.text&&r.watermark.text.length>0&&r.watermark.text.contains("{")&&r.watermark.text.contains("}")&&!r.watermark.text.contains("{{")&&!r.watermark.text.contains("}}"))try{var n=new t.Report.Components.StiText;n.page=r;var o=e.StiParser.StiParser.parseTextValue(r.watermark.text,n);r.watermark.text=o.toString()}catch(t){}if(null!=r.watermark&&!String.isNullOrEmpty(r.watermark.enabledExpression))try{var n=new l;n.page=r;var a=r.watermark.enabledExpression.trim();a.startsWith("{")||(a="{"+a),a.endsWith("}")||(a+="}");var u=s.parseTextValue(a,n);r.watermark.enabled=u.toBoolean()}catch(t){}return i.pageInfo.renderedCount>0&&(r.guid=S.newGuid()),r.invokeEvents(),this.renderOverlays(i,r),i.pageInfo.renderedCount++,r},A}();e.StiPageHelper=A}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){this.resetPageNumber=!1,this.pageNumber=-1,this.totalPageCount=-1,this.pageNumberThrough=-1,this.totalPageCountThrough=-1,this.segmentPerWidth=1,this.segmentPerHeight=1,this.fixedPosition=!1}return Object.defineProperty(t.prototype,"step",{get:function(){return this.segmentPerWidth*this.segmentPerHeight},enumerable:!0,configurable:!0}),t}();t.StiPageNumber=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.CollectionBase,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.add=function(t){this.list.push(t)},e.prototype.getByIndex=function(t){return this.list[t]},e.prototype.setByIndex=function(t,e){this.list[t]=e},e}(i);e.StiPageNumberCollection=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiPage,r=function(){function t(t){this.engine=null,this.finished=!1,this._clearPageNumbersOnFinish=!0,this._pageNumbers=new e.StiPageNumberCollection,this.engine=t}return Object.defineProperty(t.prototype,"clearPageNumbersOnFinish",{get:function(){return this._clearPageNumbersOnFinish},set:function(t){this._clearPageNumbersOnFinish=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageNumbers",{get:function(){return this._pageNumbers},set:function(t){this._pageNumbers=t},enumerable:!0,configurable:!0}),t.prototype.resetPageNumber=function(t){void 0===t&&(t=this.pageNumbers.count-1),t<this.pageNumbers.count&&(this.pageNumbers.list[t].resetPageNumber=!0)},t.prototype.addPageNumber=function(t,i,r){if(t>=this.pageNumbers.count){var n=new e.StiPageNumber;n.segmentPerWidth=i,n.segmentPerHeight=r,this.pageNumbers.add(n)}},t.prototype.getPageNumber=function(t){var e;if(e=t.sti_is(i)?this.engine.report.renderedPages.indexOf(t):t,!this.finished){if(0==this.engine.report.renderedPages.count)return 1;if(null!=this.pageNumbers&&e>=0&&e<this.pageNumbers.count&&this.pageNumbers.list[e].resetPageNumber)return 1;return this.engine.report.renderedPages.count}if(0==this.pageNumbers.count)return e+1;return e=Math.max(e,0),e=Math.min(e,this.pageNumbers.count-1),this.pageNumbers.list[e].pageNumber},t.prototype.getTotalPageCount=function(t){var e;if(e=t.sti_is(i)?this.engine.report.renderedPages.indexOf(t):t,!this.finished){if(0==this.engine.report.renderedPages.count)return 1;return this.engine.report.renderedPages.count}if(0==this.pageNumbers.count)return 1;return e=Math.max(e,0),e=Math.min(e,this.pageNumbers.count-1),this.pageNumbers.list[e].totalPageCount},t.prototype.getPageNumberThrough=function(t){var e;if(e=t.sti_is(i)?this.engine.report.renderedPages.indexOf(t):t,!this.finished){if(0==this.engine.report.renderedPages.count)return 1;return this.engine.report.renderedPages.count}if(0==this.pageNumbers.count)return 1;return e=Math.max(e,0),e=Math.min(e,this.pageNumbers.count-1),this.pageNumbers.list[e].pageNumberThrough},t.prototype.getTotalPageCountThrough=function(t){if(0==this.pageNumbers.count)return 1;return t=Math.max(t,0),t=Math.min(t,this.pageNumbers.count-1),this.pageNumbers.list[t].totalPageCountThrough},t.prototype.setSystemVariables=function(t,e){if(t==e)return;for(var i=0,r=t;r<e;r++)i+=this.pageNumbers.list[r].step
;for(var n=1,r=t;r<e;r++)this.pageNumbers.list[r].pageNumber=n,this.pageNumbers.list[r].totalPageCount=i,n+=this.pageNumbers.list[r].step},t.prototype.processPageNumbers=function(){if(null!=this.engine&&null!=this.engine.report&&null!=this.engine.report.renderedPages)while(this.pageNumbers.count>this.engine.report.renderedPages.count)this.pageNumbers.removeAt(this.engine.report.renderedPages.count);for(var t=0,e=0,i=0,r=this.pageNumbers.list;i<r.length;i++){var n=r[i];if(null!=this.engine&&null!=this.engine.report&&null!=this.engine.report.renderedPages&&e<this.engine.report.renderedPages.count){var o=this.engine.report.renderedPages.getPageWithoutCache(e);n.segmentPerWidth=o.segmentPerWidth,n.segmentPerHeight=o.segmentPerHeight}t+=n.step,e++}for(var a=1,s=0,l=0,u=0,c=this.pageNumbers.list;u<c.length;u++){var n=c[u];n.resetPageNumber&&(this.setSystemVariables(s,l),s=l),n.pageNumberThrough=a++,n.totalPageCountThrough=t,l++}this.setSystemVariables(s,l),this.finished=!0},t.prototype.clear=function(){this.clearPageNumbersOnFinish&&this.pageNumbers.clear()},t.prototype.clearNotFixed=function(){if(this.clearPageNumbersOnFinish&&this.pageNumbers.count>0){var t=this.pageNumbers.count-1;while(t>=0&&!this.pageNumbers.list[t].fixedPosition)this.pageNumbers.removeAt(t),t--}},t}();e.StiPageNumberHelper=r}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiImageProcessingDuplicatesType,r=t.Report.Components.StiProcessingDuplicatesType,n=t.Report.Components.StiImage,o=t.Report.Components.IStiText,a=t.Report.Components.StiComponentsCollection,s;!function(t){t[t.Text=0]="Text",t[t.Image=1]="Image"}(s=e.TypeOfDuplicates||(e.TypeOfDuplicates={}));var l=function(){function t(){}return t.prototype.compare=function(t,e){return t.top.compareTo(e.top)},t}();e.StiMergeComparer=l;var u=function(){function t(){}return t.isImageEqual=function(t,e){return!1},t.postProcessDuplicates=function(e,u,c){if(void 0===c&&(c=null),null==c)return t.postProcessDuplicates(e,u,s.Text),void t.postProcessDuplicates(e,u,s.Image);for(var p=[],h=!1,g=new a,m=0,d=e.list;m<d.length;m++){var S=d[m];if(S.sti_is(o)&&S.processingDuplicates!=r.None&&c==s.Text||S.sti_is(n)&&S.processingDuplicates!=i.None&&c==s.Image){h=!0,g.add(S);var f=p[S.width];null==f&&(f=[],p[S.width]=f);var y=f[S.left];null==y&&(y=[],f[S.left]=y),y.add(S)}}if(!h)return;for(var b in p){var f=p[b];for(var C in f){var y=f[C];y.sort2(new l);var v=0;while(v<y.count){var I=y[v],A=u.get(I),w=I.bottom,T=v+1;while(T<y.count){var B=y[T],R=u.get(B),P=r.None,F=!1;if(c==s.Text?(P=I.processingDuplicates,P==r.BasedOnValueRemoveText&&(P=r.RemoveText),P==r.BasedOnValueAndTagHide&&(P=r.BasedOnTagHide),P==r.BasedOnValueAndTagMerge&&(P=r.BasedOnTagMerge),F=P==r.GlobalHide||P==r.GlobalMerge||P==r.GlobalRemoveText||P==r.GlobalBasedOnValueRemoveText||P==r.GlobalBasedOnValueAndTagHide||P==r.GlobalBasedOnValueAndTagMerge,P==r.GlobalBasedOnValueRemoveText&&(P=r.BasedOnTagRemoveText),P==r.GlobalBasedOnValueAndTagHide&&(P=r.BasedOnTagHide),P==r.GlobalBasedOnValueAndTagMerge&&(P=r.BasedOnTagMerge)):F=I.processingDuplicates==i.GlobalHide||I.processingDuplicates==i.GlobalMerge||I.processingDuplicates==i.GlobalRemoveImage,B.name==I.name||F){if(Math.round(A.bottom,2)!=Math.round(R.top,2)||!(A.name==R.name||F||"Continued"==A.name||null!=A.name&&A.name.startsWith("Continued_")||"Breaked"==R.name||null!=R.name&&R.name.startsWith("Breaked_")))break;if(c==s.Text){var x=B.getTextInternal(),D=I.getTextInternal();if(P!=r.BasedOnTagHide&&P!=r.BasedOnTagMerge&&P!=r.BasedOnTagRemoveText||(x=null==B.tagValue?String.empty:B.tagValue.toString(),D=null==I.tagValue?String.empty:I.tagValue.toString()),!(Math.round(B.top,2)>=Math.round(w,2)&&D==x))break;P!=r.Merge&&P!=r.GlobalMerge&&P!=r.BasedOnTagMerge||(I.height+=B.bottom-I.bottom),P==r.RemoveText||P==r.GlobalRemoveText||P==r.BasedOnTagRemoveText?(B.setTextInternal(String.empty),v++,T++):(w+=B.height,B.parent.components.remove(B),y.removeAt(T))}else if(c==s.Image){if(!(Math.round(B.top,2)>=Math.round(w,2)&&t.isImageEqual(B.imageToDraw,I.imageToDraw)))break;I.processingDuplicates!=i.Merge&&I.processingDuplicates!=i.GlobalMerge||(I.height+=B.bottom-I.bottom),I.processingDuplicates==i.RemoveImage||I.processingDuplicates==i.GlobalRemoveImage?(B.imageToDraw=null,v++,T++):(w+=B.height,B.parent.components.remove(B),y.removeAt(T))}}else T++;A=R}v++}}}},t}();e.StiPostProcessDuplicatesHelper=u}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiImage,n=t.Report.Components.StiImageProcessingDuplicatesType,o=t.Report.Components.StiPagesCollection,a=t.Report.Components.StiPointPrimitive,s=t.System.Collections.Hashtable,l=t.Report.Components.StiEndPointPrimitive,u=t.Report.Components.StiCrossLinePrimitive,c=t.Report.Components.StiPrimitive,p=t.Report.Components.StiStartPointPrimitive,h=t.System.Drawing.Point,g=t.Report.Components.StiRoundedRectanglePrimitive,m=t.Report.Components.StiRectanglePrimitive,d=t.Report.Components.StiDockStyle,S=t.Report.Components.StiText,f=t.Report.Components.IStiText,y=t.Report.Components.StiProcessingDuplicatesType,b=t.Report.Components.StiPrintOnType,C=t.Report.Components.StiVerticalLinePrimitive,v=t.Report.Components.StiHorizontalLinePrimitive,I=t.Report.Components.StiContainer,A=t.Report.Components.StiComponentsCollection,w=t.Report.Components.StiPanel,T=function(){function T(){}return T.postProcessPages=function(t){for(var i=0,r=0,n=0,o=t.list;n<o.length;n++){var a=o[n];r+=a.segmentPerWidth*a.segmentPerHeight}var s=Array.create(Boolean,r+1),l=Array.create(Boolean,r+1);r>0&&(s[1]=!0),l[r]=!0;var u=null;if(null!=t.report&&null!=t.report.engine&&null!=t.report.engine.pageNumbers){t.report.reportPass==e.StiReportPass.Second&&(u=t.report.engine.pageNumbers);var c=t.report.engine.pageNumbers;i=1;for(var p=Math.min(t.count,c.pageNumbers.count),h=0;h<p;h++)c.pageNumbers.list[h].resetPageNumber&&(s[i]=!0,l[i-1]=!0),i+=c.pageNumbers.list[h].segmentPerWidth*c.pageNumbers.list[h].segmentPerHeight}i=1;for(var g=0,m=t.list;g<m.length;g++){var a=m[g];null!=u?(i=u.getPageNumber(a),r=u.getTotalPageCount(a),T.postProcessPage(a,1==i,i==r)):T.postProcessPage(a,s[i],l[i]),i+=a.segmentPerWidth*a.segmentPerHeight}T.postProcessPrimitives(t)},T.removeAllPointPrimitives=function(t){var e=0;while(e<t.components.count)if(t.components.getByIndex(e).sti_is(a))t.components.removeAt(e);else{var i=t.components.getByIndex(e).sti_as(I);null!=i&&T.removeAllPointPrimitives(i),e++}},T.postProcessPrimitives=function(e){var i=e;e.sti_is(t.Report.Components.StiPage)&&(i=new o(null),i.add(e));for(var r={ref:new s},n={ref:new s},a={ref:new s},l={ref:new Array},u=0,c=i.list;u<c.length;u++){var p=c[u];T.postProcessPrimitivesInContainer2(p,i,r,n,a,l)}for(var h=0,g=i.list;h<g.length;h++){var m=g[h];T.removeAllPointPrimitives(m)}},T.postProcessPrimitivesInContainer=function(t){var e={ref:new s},i={ref:new s},r={ref:new s},n={ref:new Array};T.postProcessPrimitivesInContainer2(t,null,e,i,r,n),T.removeAllPointPrimitives(t)},T.postProcessPrimitivesInContainer2=function(t,e,i,r,n,o){var a=i.ref,s=r.ref,h=n.ref,g=o.ref,m=new A;m.addRange(t.components);for(var d=0,S=m.list;d<S.length;d++){var f=S[d],y=f.sti_as(u);null!=y&&null!=y.guid&&y.guid!=T.nullGuid&&(h.set(y.guid,y),y.parent.components.remove(f))}if(h.count>0){m=t.getComponents(),g.clear();for(var b=0,C=m.list;b<C.length;b++){var f=C[b];if(!f.sti_is(c))continue;var v=f.sti_as(p);if(null!=v){if(null==v.referenceToGuid)continue;var I=t.sti_as(w),B=a.get(v.referenceToGuid);null==B&&(B=new Array,a.set(v.referenceToGuid,B),null!=I&&I.columns>1&&B.add(v)),(null!=I&&I.columns<2||null==I)&&B.add(v);continue}var R=f.sti_as(l);if(null==R)continue;T.processOneEndPoint(a,h,t,e,R)||g.add(R)}for(var P=0,F=g;P<F.length;P++){var R=F[P];T.processOneEndPoint(a,h,t,e,R)}}i.ref=a,r.ref=s,n.ref=h,o.ref=g},T.processOneEndPoint=function(t,e,i,r,n){if(null==n.referenceToGuid)return!1;var o=t.get(n.referenceToGuid);if(null==o||0==o.count)return!1;t.set(n.referenceToGuid,null);var a=o[0],s=e.get(a.referenceToGuid);if(null==s)return!0;var l=o[0];return T.processOnePrimitive(r,i,s,l,null,n),!0},T.processOnePrimitive=function(t,e,i,r,n,o){var a=r.componentToPage(new h(r.left,r.top)),s=o.componentToPage(new h(o.left,o.top)),l=r.storedColumn,u=o.storedColumn;l=Math.max(1,l),u=Math.max(1,u);var c=-1;if(null!=n&&(c=n.storedColumn,c=Math.max(1,c)),r.page!=o.page||l!=u){var p=null==t?1:t.indexOf(r.page),g=null==t?1:t.indexOf(o.page),m=-1;null!=n&&null!=t&&(m=t.indexOf(n.page));for(var d=p;d<=g;d++){if(p!=g&&null!=n&&m==g&&d==g)continue;var S=t.getByIndex(d);S!=r.page&&(l=1),S!=o.page&&(u=Math.max(S.columns,u));for(var f=0,y=l;y<=u;y++){var b=S.pageInfo.positionFromTop,C=S.pageInfo.positionFromBottom,v=S.getColumnWidth()+S.columnGaps,I=a.x,A=a.y,w=s.x,B=s.y;if(l!=u){w-=v*Math.min(u-l,S.columns);while(w<I&&v>0)w+=v}d==p&&l==y?T.addPrimitive(i,new h(f+I,A),new h(f+w,C),S):d==g&&u==y?T.addPrimitive(i,new h(f+I,b),new h(f+w,B),S):T.addPrimitive(i,new h(f+I,b),new h(f+w,C),S),f+=v}}}else T.addPrimitive(i,a,s,e)},T.addPrimitive=function(t,e,i,r){if(t.sti_is(g)){var n=t.clone();n.guid=T.nullGuid,n.left=e.x,n.top=e.y,n.width=i.x-e.x,n.height=i.y-e.y,r.components.add(n)}else if(t.sti_is(m)){if(t.leftSide){var o=new C;o.name=t.name+"_Left",o.guid=T.nullGuid,o.page=t.page,o.left=e.x,o.top=e.y,o.height=i.y-e.y,o.color=t.color,o.style=t.style,o.size=t.size,r.components.add(o)}if(t.rightSide){var a=new C;a.name=t.name+"_Right",a.guid=T.nullGuid,a.page=t.page,a.left=i.x,a.top=e.y,a.height=i.y-e.y,a.color=t.color,a.style=t.style,a.size=t.size,r.components.add(a)}if(t.topSide){var s=new v;s.name=t.name+"_Top",s.page=t.page,s.left=e.x,s.top=e.y,s.height=t.page.unit.convertFromHInches(1),s.width=i.x-e.x,s.color=t.color,s.style=t.style,s.size=t.size,r.components.add(s)}if(t.bottomSide){var l=new v;l.name=t.name+"_Bottom",l.page=t.page,l.left=e.x,l.top=i.y,l.height=t.page.unit.convertFromHInches(1),l.width=i.x-e.x,l.color=t.color,l.style=t.style,l.size=t.size,r.components.add(l)}}else{var n=t.clone();n.guid=T.nullGuid,n.left=e.x,n.top=e.y,n.width=i.x-e.x,n.height=i.y-e.y,r.components.add(n)}},T.copyStyles=function(t,e){t.style=e.style,t.color=e.color,t.size=e.size},T.postProcessPage=function(t,e,o,a){void 0===a&&(a=!0),T.postProcessPrintOn(t.components,e,o);var l=t.getComponents();t.dockToContainer();for(var u=0,c=l.list;u<c.length;u++){var p=c[u];p.dockStyle=d.None,p.page=t;var h=p.sti_as(S);null!=h&&h.shrinkFontToFit&&(h.font=h.getActualFont(h.text,h.shrinkFontToFitMinimumSize))}for(var g=new s,m=0,b=l.list;m<b.length;m++){var p=b[m];p.sti_is(f)&&p.processingDuplicates!=y.None&&g.set(p,p.parent),p.sti_is(r)&&p.processingDuplicates!=n.None&&g.set(p,p.parent)}a&&t.clearPage(),i.StiPostProcessDuplicatesHelper.postProcessDuplicates(l,g),g.clear(),g=null},T.postProcessPrintOn=function(t,e,i){var r=0;while(r<t.count){var n=t.getByIndex(r);if(T.allowPrintOn(n,e,i)){var o=n.sti_as(I);null!=o&&T.postProcessPrintOn(o.components,e,i),r++}else t.removeAt(r)}},T.allowPrintOn=function(t,e,i){if(t.printOn==b.AllPages)return!0;if((t.printOn&b.ExceptFirstPage)>0&&e)return!1;if(t.printOn==b.OnlyFirstAndLastPage)return!(!e&&!i);if((t.printOn&b.OnlyFirstPage)>0&&!e)return!1;if((t.printOn&b.OnlyLastPage)>0&&!i)return!1;if((t.printOn&b.ExceptLastPage)>0&&i)return!1;return!0},T.nullGuid="nullGuid",T}();i.StiPostProcessProvider=T}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Report.Components.IStiPrintAtBottom,n=t.Report.Components.StiFooterBand,o=t.Report.Components.StiContainer,a=function(){function t(t){this.bands=new i,this.engine=null,this.engine=t}return t.prototype.canProcess=function(t){var e=t.sti_as(r);return null!=e&&e.printAtBottom},t.prototype.add=function(t){this.bands.set(t,t)},t.prototype.render=function(t,i,r){if(null==t||0==this.bands.count)return;for(var a=[],s=-1,l=!1,u=i;u<t.components.count;u++){var c=t.components.list[u].sti_as(o);if(null==c)continue;if(c.sti_is(e.StiLevelContainer))continue;if(c==r&&(l=!0),(!c.containerInfo.parentBand.sti_is(n)||!c.containerInfo.parentBand.printOnAllPages)&&l)continue;if(null!=this.bands.get(c))a.insert(0,c),-1==s&&(s=u);else if(-1!=s&&!c.sti_is(e.StiFooterMarkerContainer)){a.clear();for(var p=0,h=s;h<t.components.count;h++){var g=t.components.list[h].sti_as(o);if(g==r)break;g.top+=p,null!=this.bands.get(g)&&h<u&&(g.containerInfo.parentBand.sti_is(n)&&g.containerInfo.parentBand.printOnAllPages||(p+=g.height,this.engine.positionY+=g.height))}s=-1}}for(var m=0,d=a;m<d.length;m++){var c=d[m];c.top=this.engine.positionBottomY-c.height,null!=this.engine.page&&this.engine.page.segmentPerHeight>1&&(c.top+=(this.engine.page.pageHeight-this.engine.page.margins.top-this.engine.page.margins.bottom)*(this.engine.page.segmentPerHeight-1)),this.engine.positionBottomY-=c.height,c.containerInfo.parentBand.sti_is(n)&&c.containerInfo.parentBand.printOnAllPages&&(this.engine.positionY-=c.height)}this.bands.clear()},t}();e.StiPrintAtBottom=a}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Printing.PaperKind,n=t.Report.Components.Table.StiTableAutoWidthType,o=t.Report.Components.Table.StiTableCellImage,a=t.Report.Components.Table.StiTablceCellType,s=t.Report.Components.Table.StiColumnSize,l=t.Report.Components.Table.StiTableAutoWidth,u=t.Report.Components.Table.IStiTableCell,c=t.Report.Components.Table.StiTable,p=t.System.EventArgs,h=t.Report.Components.StiDataBand,g=t.Report.Components.StiSubReport,m=t.Report.Chart.IStiChart,d=t.Report.Components.StiCondition,S=t.Report.Components.StiMultiCondition,f=t.Report.Components.StiMargins,y=t.Report.Components.StiText,b=t.Report.Components.StiProcessAt,C=t.System.Collections.Hashtable,v=t.Report.Components.StiDataHelper,I=t.Report.Components.StiFilterMode,A=t.Report.Components.StiPagesCollection,w=t.Report.Components.StiPrintOnType,T=t.Report.Dictionary.StiDataSourceHelper,B=t.Report.Engine.StiParser.StiParser,R=t.Report.StiReportCacheMode,P=t.Report.Components.StiContainer,F=t.Report.Components.StiPage,x=t.System.Promise,D=function(){function D(){}return D.render=function(n,o){for(var a=n.getComponents(),s=0,u=a.list;s<u.length;s++){var p=u[s],g=p.sti_as(y);if(null!=g&&g.processAt==b.EndOfPage){n.engine.allowEndOfPageProcessing=!0;break}}if(D.initReport(n),!D.checkDialogsInPreview(n)){for(var m=T.getDataSourcesUsedInRequestFromUsersVariables(n),f=new C,A=0,w=n.dictionary.dataSources.list;A<w.length;A++){var R=w[A];m.containsKey(R.name)||(f.set(R.name,R.connectOnStart),R.connectOnStart=!1)}n.isAsyncMode||D.connectToData(n);for(var x=0,k=n.dictionary.dataSources.list;x<k.length;x++){var R=k[x];f.containsKey(R.name)&&(R.connectOnStart=f.get(R.name))}if(i.StiVariableHelper.fillItemsOfVariables(n.compiledReport?null:n),n.pages.count>0&&1==n.renderedPages.count){var E=n.pages.getByIndex(0),G=n.renderedPages.getByIndex(0);G.paperSize=E.paperSize,G.orientation=E.orientation,E.paperSize==r.Custom&&(G.width=E.width,G.height=E.height)}return}null==n.subReportsMasterReport&&n.renderedPages.clear();var _=D.getNumberOfPass(n),L=D.isDialogsOnStartExist(n);L||D.renderFirstPass(n,_);var N=n.subReportsMasterReport,O=new C,Z=null;try{var M=D.prepareSubReportsAndDrillDownPages(n);null==N&&n.renderedPages.clear(),n.invokeBeginRender(),D.clearTotals(n);for(var H=0,W=n.dictionary.dataSources.list;H<W.length;H++)var R=W[H];if(n.isAsyncMode||D.connectToData(n),i.StiVariableHelper.fillItemsOfVariables(n.compiledReport?n.compiledReport:n),i.StiVariableHelper.setDefaultValueForRequestFromUserVariables(n.compiledReport?n.compiledReport:n),!D.renderFormsOnStart(n))return;L&&(D.disconnectFromData(n),D.renderFirstPass(n,_),D.connectToData(n)),n.bookmark.bookmarks.clear(),n.bookmark.text=n.reportAlias,n.reportPass!=e.StiReportPass.First&&n.reportPass!=e.StiReportPass.None||D.initCacheMode(n);for(var V=n.getComponents(),Y=[],j=0,X=V.list;j<X.length;j++){var J=X[j],K=J.sti_as(c);if(null!=K&&K.enabled){Y.add(K);continue}}if(n.containsTables=0!=Y.count,Y.count>0){for(var U=new C,z=!1,Q=0;Q<Y.count;Q++){var K=Y[Q];K.autoWidth!=l.None&&(z=!0);var q={ref:O},$=K.startRenderTableBand(q);O=q.ref,null!=$&&(U.add($.name,$),n.engine.keepFirstDetailTogetherTablesList.set($,K))}if(0!=U.count)for(var tt=0,et=U.values;tt<et.length;tt++){var it=et[tt];null!=it.masterComponent&&it.masterComponent.sti_is(c)&&(it.masterComponent=U.get(it.masterComponent.name+"_DB").sti_as(h))}U=null,V.clear(),V=n.getComponents(),n.containsTables=z}n.engine.parserConversionStore=new C,n.engine.anchorsArguments=new C,n.engine.hashDataSourceReferencesCounter=new C,Z=new C;for(var rt=n.calculationMode==e.StiCalculationMode.Compilation,nt=0,ot=V.list;nt<ot.length;nt++){var p=ot[nt];if(p.prepare(),!rt){if(!rt&&p.conditions.count>0){for(var at=[],st=0,lt=p.conditions.list;st<lt.length;st++){var ut=lt[st],ct=ut.sti_as(d),pt=null;if(ut.sti_is(S)){var ht=ut.sti_as(S);if(ht.filterOn&&ht.filters.count>0){for(var gt="{",mt=0;mt<ht.filters.count;mt++){var dt=ht.filters.list[mt];gt+="(",gt+=v.getFilterExpression(dt,dt.column,n),gt+=")",mt<ht.filters.count-1&&(gt+=ht.filterMode==I.And?" && ":" || ")}gt+="}",at.add({key:ht,value:gt.toString()})}}else null!=ct&&(pt="{"+v.getFilterExpression(ct,ct.column,n)+"}",at.add({key:ct,value:pt}))}at.count>0&&n.engine.parserConversionStore.set("*StiConditionExpression*"+p.name,at)}var St=p.sti_as(y);if(null!=St&&B.checkForDataBandsUsedInPageTotals(St),p.sti_is(h)&&null!=p.renderingEvent&&!String.isNullOrEmpty(p.renderingEvent.script)){var ft=p.renderingEvent.script,yt=ft.indexOf("AddAnchor(");if(-1!=yt){var bt=ft.indexOf(")",yt);if(-1!=bt){yt+=10;var Ct=ft.substr(yt,bt-yt);n.engine.anchorsArguments.set(p.name,Ct)}}}var vt=p.sti_as(h);if(null!=vt){if(!vt.isDataSourceEmpty){var It=n.engine.hashDataSourceReferencesCounter.get(vt.dataSourceName),At=null==It?1:Math.trunc(It.toNumber())+1;n.engine.hashDataSourceReferencesCounter.set(vt.dataSourceName,At)}if(!vt.isBusinessObjectEmpty){var It=n.engine.hashDataSourceReferencesCounter.get(vt.businessObject.name),At=null==It?1:Math.trunc(It.toNumber())+1;n.engine.hashDataSourceReferencesCounter.set(vt.businessObject.name,At)}}}}if(D.renderReport(n,N,o),n.isStopped||(D.renderFormsOnEnd(n),n.isRendered=!0),O.count>0)for(var wt=0,Tt=O.keys;wt<Tt.length;wt++)for(var Bt=Tt[wt],Rt=O.get(Bt),Pt=0;Pt<Rt.count;Pt++){var p=Rt[Pt];null!=p.parent&&p.parent.components.remove(p)}for(var Ft=0,xt=Y;Ft<xt.length;Ft++){var K=xt[Ft];K.enabled=!0}}catch(e){t.System.StiError.showError(e,!1),n.isStopped=!0}finally{if(n.currentPage=0,null==N&&(n.currentPrintPage=0),null==N&&n.reportPass!=e.StiReportPass.First)if(n.renderedPages.cacheMode){if(null!=n.renderedPages.notCachedPages)for(var Dt=0,kt=n.renderedPages.notCachedPages;Dt<kt.length;Dt++){var Et=kt[Dt];i.StiPostProcessProvider.postProcessPage(Et,D.isFirstPage(n,Et),D.isLastPage(n,Et)),i.StiPostProcessProvider.postProcessPrimitives(Et)}}else i.StiPostProcessProvider.postProcessPages(n.renderedPages);if(D.finishAllPagesInNotCachedPagesArray(n),D.removeAllPagesLessThenFromPageAndGreaterThenToPage(n,o),D.madeCollate(n),D.madeMirrorMargins(n),i.StiBookmarksHelper.prepareBookmark(n.bookmark),D.disconnectFromData(n),null==N&&(0==n.renderedPages.count&&n.renderedPages.add(new F(n)),n.engine.pageNumbers.processPageNumbers(),n.invokeEndRender(),n.engine.pageNumbers.clear(),!n.renderedPages.cacheMode))for(var Gt=0,_t=n.renderedPages.list;Gt<_t.length;Gt++)for(var Et=_t[Gt],Lt=Et.getComponents(),Nt=0,Ot=Lt.list;Nt<Ot.length;Nt++){var Zt=Ot[Nt],J=Zt.sti_as(P);null!=J&&null!=J.containerInfo&&(J.containerInfo.dataSourceRow=null,J.containerInfo.businessObjectCurrent=null)}O=null,D.finishProgressForm(n),null==N&&(n.reportPass,e.StiReportPass.First),n.reportPass==e.StiReportPass.Second&&(n.reportPass=e.StiReportPass.None),null==N&&(D.clearTotals(n),n.reportPass!=e.StiReportPass.First&&(n.parentReport=null)),null!=n.engine.parserConversionStore&&(n.engine.parserConversionStore.clear(),n.engine.parserConversionStore=null);for(var Mt=n.getComponents(),Ht=0,Wt=Mt.list;Ht<Wt.length;Ht++){var p=Wt[Ht];p.unPrepare()}n.engine.keepFirstDetailTogetherTablesList.clear()}},D.StiRenderProviderV2_AddAnchor_Rendering=function(t,e){try{var i=t;if(null!=i&&null!=i.report&&null!=i.report.engine&&i.report.engine.anchorsArguments.count>0){var r=i.report.engine.anchorsArguments.get(i.name);if(!String.isNullOrEmpty(r)){var n=new y;n.name="**AddAnchor**",n.page=i.report.pages.list[0];var o=B.parseTextValue("{"+r+"}",n);i.report.addAnchor(o)}}}catch(e){}},D.connectToDataAsync=function(e){var i=new x;return e.dictionary.connectAsync().try(function(){try{for(var r=0,n=e.dictionary.dataSources.list;r<n.length;r++){var o=n[r];o.resetData(),o.resetDetailsRows()}e.dictionary.connectVirtualDataSources(),e.dictionary.connectCrossTabDataSources(),e.dictionary.regRelations2(!0),i.callTry()}catch(e){t.System.StiError.showError(e,!1),i.callCatch("string"==typeof e?e:e.message)}}).catch(function(t){i.callCatch(t)}).abort(i),i},D.connectToData=function(t){t.dictionary.connect();for(var e=0,i=t.dictionary.dataSources.list;e<i.length;e++){var r=i[e];r.resetData(),r.resetDetailsRows()}t.dictionary.connectVirtualDataSources(),t.dictionary.connectCrossTabDataSources(),t.dictionary.regRelations2(!0)},D.disconnectFromData=function(t){t.dictionary.disconnect()},D.isDialogsOnStartExist=function(t){for(var e=0,i=t.pages.list;e<i.length;e++)var r=i[e];return!1},D.renderFormsOnStart=function(t){if(t.isInteractionRendering)return!0;return!0},D.renderFormsOnEnd=function(t){if(t.isInteractionRendering)return!0;return!0},D.checkDialogsInPreview=function(t){for(var e=0,i=t.dictionary.variables.list;e<i.length;e++)var r=i[e];for(var n=0,o=t.pages.list;n<o.length;n++)var a=o[n];return!0},D.clearPagesWhichLessThenFromPageAndGreaterThenToPage=function(t,i){if(t.renderedPages.count>1&&t.reportPass!=e.StiReportPass.First){var r=t.renderedPages.count-2;(i.fromPage>0&&i.fromPage>r||i.toPage>0&&i.toPage<r)&&t.renderedPages.getByIndex(r).components.clear(),i.toPage>0&&i.toPage<r&&i.renderOnlyPagesFromRange&&(t.isStopped=!0)}},D.initCacheMode=function(t){t.reportCacheMode!=R.Off&&(t.reportCacheMode==R.On&&(t.renderedPages.cacheMode=!0),t.renderedPages.canUseCacheMode=!0)},D.removeAllPagesLessThenFromPageAndGreaterThenToPage=function(t,i){if(i.destroyPagesWhichNotInRange&&t.reportPass!=e.StiReportPass.First){if(i.toPage>0)while(i.toPage<t.renderedPages.count-1)t.renderedPages.removeAt(t.renderedPages.count-1);var r=i.fromPage;while(r>0&&t.renderedPages.count>0)t.renderedPages.removeAt(0),r--}},D.finishAllPagesInNotCachedPagesArray=function(t){t.renderedPages.cacheMode&&null!=t.renderedPages.notCachedPages&&t.reportPass!=e.StiReportPass.First&&(t.renderedPages.notCachedPages.clear(),t.renderedPages.notCachedPages=null)},D.processPageToCache=function(t,r,n){t.renderedPages.cacheMode&&t.reportPass!=e.StiReportPass.First&&(n?null!=t.engine&&null!=t.engine.pageNumbers&&t.engine.pageNumbers.pageNumbers.count>0&&(i.StiPostProcessProvider.postProcessPage(r,D.isFirstPage(t,r),D.isLastPage(t,r),n),i.StiPostProcessProvider.postProcessPrimitives(r)):(null==t.renderedPages.notCachedPages&&(t.renderedPages.notCachedPages=new Array),-1==t.renderedPages.notCachedPages.indexOf(r)&&t.renderedPages.notCachedPages.add(r)))},D.isFirstPage=function(t,e){if(null!=t.engine.pageNumbers){var i=t.renderedPages.indexOf(e);i=Math.max(i,0),i=Math.min(i,t.engine.pageNumbers.pageNumbers.count-1);var r=t.engine.pageNumbers.pageNumbers.list[i];return-1==r.totalPageCount||-1==r.pageNumber?0==i||r.resetPageNumber:1==r.pageNumber}var r=t.renderedPages.indexOf(e);return r<1},D.isLastPage=function(t,e){if(null!=t.engine.pageNumbers){var i=t.renderedPages.indexOf(e);i=Math.max(i,0),i=Math.min(i,t.engine.pageNumbers.pageNumbers.count-1);var r=t.engine.pageNumbers.pageNumbers.list[i];return-1==r.totalPageCount||-1==r.pageNumber?i==t.renderedPages.count-1||i+1<t.engine.pageNumbers.pageNumbers.count&&t.engine.pageNumbers.pageNumbers.list[i+1].resetPageNumber:r.pageNumber==r.totalPageCount}var r=t.renderedPages.indexOf(e);return r==t.renderedPages.count-1},D.renderFirstPass=function(t,r){if(r==e.StiNumberOfPass.DoublePass&&t.reportPass==e.StiReportPass.None){t.reportPass=e.StiReportPass.First;var n=t.engine;t.engine=null;var o=t.renderedPages.count,a=null;if(o>0){a=new A(t),a.addRange(t.renderedPages);for(var s=new F(t),l=0;l<t.renderedPages.count;l++)t.renderedPages.list[l]=s}var u=t.currentPrintPage,c=new i.StiEngine(t);c.pageNumbers.clearPageNumbersOnFinish=!1,c.pageNumbers.pageNumbers=n.pageNumbers.pageNumbers,c.parserConversionStore=n.parserConversionStore.clone(),null!=n.hashDataSourceReferencesCounter&&(c.hashDataSourceReferencesCounter=n.hashDataSourceReferencesCounter.clone()),t.engine=c,n.latestProgressValue=t.engine.latestProgressValue,t.engine=n,c.parserConversionStore=null,t.engine.pageNumbers.processPageNumbers(),t.reportPass=e.StiReportPass.Second,t.isRendering=!0,t.isRendered=!1,t.renderedPages.clear(),o>0&&(t.renderedPages.addRange(a),a.clear()),t.currentPrintPage=u}t.resetAggregateFunctions()},D.clearPagesForFirstPass=function(t){t.reportPass==e.StiReportPass.First&&t.renderedPages.count>=2&&t.renderedPages.getByIndex(t.renderedPages.count-2).components.clear()},D.getNumberOfPass=function(t){var i=t.numberOfPass;if(t.reportPass==e.StiReportPass.None&&i==e.StiNumberOfPass.SinglePass){if(!StiOptions.Engine.useAdvancedPrintOnEngine)return e.StiNumberOfPass.SinglePass;for(var r=t.getComponents(),n=0,o=r.list;n<o.length;n++){var a=o[n];if(a.printOn!=w.AllPages&&a.printOn!=w.OnlyFirstPage&&a.printOn!=w.ExceptFirstPage)return e.StiNumberOfPass.DoublePass}}return i},D.madeCollate=function(t){if(t.renderedPages.count<3||t.collate<2)return;var e=new Array;if(StiOptions.Engine.useCollateOldMode)for(var i=0;i<t.collate;i++)for(var r=i;r<t.renderedPages.count;r+=t.collate)e.add(t.renderedPages.getByIndex(r));else{var n=t.renderedPages.count/t.collate;n*t.collate<t.renderedPages.count&&n++;for(var i=0;i<n;i++)for(var r=i;r<t.renderedPages.count;r+=n)e.add(t.renderedPages.getByIndex(r))}t.renderedPages.clear();for(var o=0,a=e;o<a.length;o++){var s=a[o];t.renderedPages.addV2Internal(s)}},D.madeMirrorMargins=function(t){if(t.renderedPages.count<2)return;for(var e=1;e<t.renderedPages.count;e+=2){var i=t.renderedPages.getPageWithoutCache(e);i.mirrorMargins&&(i.margins=new f(i.margins.right,i.margins.left,i.margins.top,i.margins.bottom))}},D.initReport=function(t){t.currentPage=0,null==t.subReportsMasterReport&&(t.currentPrintPage=0),t.isStopped=!1,t.resetAggregateFunctions()},D.clearTotals=function(t){t.totals.clear(),null!=t.parentReport&&t.parentReport.totals.clear()},D.prepareSubReportsAndDrillDownPages=function(t){for(var e=new C,i=t.getComponents(),r=0,n=t.pages.list;r<n.length;r++){var o=n[r];o.skip=!1,e.set(o.guid,o)}for(var a=0,s=i.list;a<s.length;a++){var l=s[a],u=l.sti_as(g);if(null!=u&&null!=u.subReportPageGuid){var c=e.get(u.subReportPageGuid);null!=c&&(c.skip=!0)}if(null!=l.interaction&&null!=l.interaction.drillDownPageGuid){var c=e.get(l.interaction.drillDownPageGuid).sti_as(F);null==c||c.drillDownActivated||(c.skip=!0)}if(l.sti_is(m))for(var p=0,h=l.series.list;p<h.length;p++){var d=h[p];if(null!=d.interaction&&null!=d.interaction.drillDownPageGuid){var c=e.get(d.interaction.drillDownPageGuid).sti_as(F);null!=c&&(c.skip=!0);break}}}return e},D.renderReport=function(e,r,n){try{for(var o=0,a=0,s=e.pages.list;a<s.length;a++){var l=s[a];try{if(e.engine.templatePage=l,e.engine.templateContainer=l,e.currentPrintPage++,l.skip||(l.invokeBeforePrint(l,p.empty),e.engine.skipFirstPageBeforePrintEvent=!0),e.currentPrintPage--,!l.enabled||l.skip){l.skip||(e.engine.skipFirstPageBeforePrintEvent=!1,l.invokeAfterPrint(l,p.empty));continue}null!=e.engine.masterEngine&&(e.engine.masterEngine.templatePage=l,e.engine.masterEngine.templateContainer=l);for(var u=0;u<l.numberOfCopies;u++){if(e.pageCopyNumber=u+1,u>0&&(l.pageInfo.renderedCount=0),l.pageInfo.indexOfStartRenderedPages=e.renderedPages.count,l.parentBookmark=l.report.bookmark,l.currentBookmark=l.parentBookmark,0!=e.renderedPages.count&&l.printOnPreviousPage){if(l.printOnPreviousPage&&0!=o){for(var c=e.renderedPages.getByIndex(e.renderedPages.count-1),h=null,g="TAG##"+e.engine.columnsOnPanel.currentColumn.toString(),m=0,d=c.components.list;m<d.length;m++){var S=d[m];S.name==g&&(h=S.sti_as(P))}if(null!=h)h.height=e.engine.positionY-h.top;else{var f=new P;f.name="TAG##"+e.engine.columnsOnPanel.currentColumn.toString(),f.top=0,f.height=e.engine.positionY,f.left=(e.engine.columnsOnPanel.currentColumn-1)*c.getColumnWidth(),f.width=c.columns>0?c.getColumnWidth():c.width,f.tagValue=c.tagValue,f.bookmarkValue=c.bookmarkValue,f.hyperlinkValue=c.hyperlinkValue,f.toolTipValue=c.toolTipValue,f.guid=c.guid,c.tagValue=null,c.bookmarkValue=null,c.hyperlinkValue=null,c.toolTipValue=null,c.guid=null,e.engine.addContainerToDestination(f)}var y=new P;y.name="TAG##"+e.engine.columnsOnPanel.currentColumn.toString(),y.top=e.engine.positionY,y.height=e.engine.positionBottomY-e.engine.positionY,y.left=(e.engine.columnsOnPanel.currentColumn-1)*l.getColumnWidth(),y.width=l.columns>0?l.getColumnWidth():l.width,y.tagValue=l.tagValue,y.bookmarkValue=l.bookmarkValue,y.hyperlinkValue=l.hyperlinkValue,y.toolTipValue=l.toolTipValue,y.guid=l.guid,l.tagValue=null,l.bookmarkValue=null,l.hyperlinkValue=null,l.toolTipValue=null,e.engine.addContainerToDestination(y)}}else e.engine.firstCallNewPage=!0,e.engine.newPage();i.StiPageHelper.renderPage(l)}}catch(e){t.System.StiError.showError(e,!1)}e.engine.processLastPageAfterRendering();var b=null,C={ref:b};e.engine.renderFootersOnAllPages(null,0,C),b=C.ref,e.engine.renderPrintAtBottom(null,0,null),e.engine.renderEmptyBands(e.engine.containerForRender,null),e.engine.emptyBands.clear(),o++}e.engine.invokePageAfterPrint(),D.renderTable(e),e.engine.finalClear()}catch(i){t.System.StiError.showError(i,!1),e.engine.pageNumbers.pageNumbers.removeAt(e.engine.pageNumbers.pageNumbers.count-1)}},D.renderTable=function(e){if(!e.containsTables)return;for(var i=new C,r=new C,p=new C,h=[],g=.2,m=0,d=e.renderedPages.list;m<d.length;m++){var S=d[m];g=S.gridSize;for(var f=new C,y=new C,b=[],v=S.getComponents(),I=0;I<v.count;I++){var A=v.getByIndex(I).sti_as(u);if(null!=A){var w=null,T=A.tableTag;if(T.autoWidth==l.None)continue;if(T.autoWidth==l.Table)if(i.containsKey(T)?w=i.get(T):(w=new C,i.add(T,w),h.add(T)),p.containsKey(T.name))p.get(T.name).contains(S)||p.get(T.name).add(S);else{var B=[];B.add(S),p.add(T.name,B)}else f.containsKey(T)?w=f.get(T):(w=new C,f.add(T,w),b.add(T));if(!w.containsKey(A.column)){var R=[];w.add(A.column,R)}w.get(A.column).add(A)}}for(var P=0,F=f.values;P<F.length;P++){for(var x=F[P],D=new s(x.count),k=0;k<x.count;k++){var E=x.get(k);if(null==E)continue;for(var G=0,_=0,L=E;_<L.length;_++){var N=L[_];if(N.fixedWidth){D.setFixedColumn(k,N.width),G=-1;break}switch(N.cellType){case a.CheckBox:case a.RichText:N.width>G&&(G=N.width);break;case a.Image:var O=N.sti_as(o),Z=O.canShrink;O.canShrink=!0;var M=O.getRealSize().width;O.canShrink=Z,M>G&&(G=M);break;case a.Text:var H=N;if(H.wordWrap)H.width>G&&(G=H.width);else if(!String.isNullOrEmpty(H.text)){var W=t.System.Drawing.Graphics.measureString(H.text,H.font),V=H.margins.left+H.margins.right,Y=e.unit.convertFromHInches(W.width+V);Y>G&&(G=Y)}break}}-1!=G&&D.setWidth(k,G)}var j=x.get(0);y.add(j[0].tableTag,D)}for(var X=0;X<b.count;X++){var T=b[X].sti_as(c);if(null==T)continue;for(var J=y.get(T),K=0,U=0;U<J.length;U++)K+=J.getWidth(U);switch(T.autoWidthType){case n.None:if(S.width<K){var z=Math.trunc(K/S.width+1);S.segmentPerWidth=z}break;case n.FullTable:if(K<T.width){var Q=T.width-K;Q/=J.getCountNotFixedColumn();for(var q=0;q<J.length;q++)J.add(q,Q)}if(K>T.width){var $=K-T.width;$/=J.getCountNotFixedColumn();for(var q=0;q<J.length;q++)J.subtract(q,$)}break;case n.LastColumns:var tt=Math.abs(T.width-K),et=J.length-1,it=!1,rt=3*g;if(K>T.width)while(!it)if(J.getFixed(et))0==et?it=!0:et--;else if(J.getWidth(et)-rt<tt){var nt=J.getWidth(et)-rt;J.subtract(et,nt),tt-=nt,0==et?it=!0:et--}else J.subtract(et,tt),it=!0;else J.addLastNotFixed(tt);break}}for(var ot=0,at=f.keys;ot<at.length;ot++){var st=at[ot],x=f.get(st),D=y.get(st);D.normalize();for(var lt=0,k=0;k<x.count;k++){var E=x.get(k);if(null==E)return;for(var ut=0,ct=E;ut<ct.length;ut++){var N=ct[ut];N.width=D.getWidth(k),N.left=lt}lt+=D.getWidth(k)}}}if(h.count>0){for(var pt=0,ht=i.values;pt<ht.length;pt++){for(var x=ht[pt],D=new s(x.count),k=0;k<x.count;k++){var E=x.get(k);if(null==E)continue;for(var G=0,gt=0,mt=E;gt<mt.length;gt++){var N=mt[gt];if(N.fixedWidth){D.setFixedColumn(k,N.width),G=-1;break}switch(N.cellType){case a.CheckBox:case a.RichText:N.width>G&&(G=N.width);break;case a.Image:var O=N.sti_as(o),Z=O.canShrink;O.canShrink=!0;var M=O.getRealSize().width;O.canShrink=Z,M>G&&(G=M);break;case a.Text:var H=N;if(H.wordWrap)H.width>G&&(G=H.width);else if(!String.isNullOrEmpty(H.text)){var W=t.System.Drawing.Graphics.measureString(H.text,H.font),V=H.margins.left+H.margins.right,Y=e.unit.convertFromHInches(W.width+V);Y>G&&(G=Y)}break}}-1!=G&&D.setWidth(k,G)}var j=x.get(0);r.add(j[0].tableTag,D)}for(var X=0;X<h.count;X++){var T=h[X].sti_as(c);if(null==T)continue;for(var J=r.get(T),K=0,U=0;U<J.length;U++)K+=J.getWidth(U);switch(T.autoWidthType){case n.None:var dt=p.get(T.name);if(null!=dt&&dt[0].width<K)for(var z=Math.trunc(K/dt[0].width)+1,St=0,ft=dt;St<ft.length;St++){var yt=ft[St];yt.segmentPerWidth=z}break;case n.FullTable:if(K<T.width){var Q=T.width-K;Q/=J.getCountNotFixedColumn();for(var q=0;q<J.length;q++)J.add(q,Q)}if(K>T.width){var $=K-T.width;$/=J.getCountNotFixedColumn();for(var q=0;q<J.length;q++)J.subtract(q,$)}break;case n.LastColumns:var tt=Math.abs(T.width-K),et=J.length-1,it=!1,rt=3*g;if(K>T.width)while(!it)if(J.getFixed(et))0==et?it=!0:et--;else if(J.getWidth(et)-rt<tt){var nt=J.getWidth(et)-rt;J.subtract(et,nt),tt-=nt,0==et?it=!0:et--}else J.subtract(et,tt),it=!0;else J.addLastNotFixed(tt);break}}for(var bt=0,Ct=i.keys;bt<Ct.length;bt++){var st=Ct[bt],x=i.get(st),D=r.get(st);D.normalize();for(var lt=0,k=0;k<x.count;k++){var E=x.get(k);if(null==E)return;for(var vt=0,It=E;vt<It.length;vt++){var N=It[vt];N.width=D.getWidth(k),N.left=lt}lt+=D.getWidth(k)}}}},D.finishProgressForm=function(t){t.reportPass,e.StiReportPass.First},D}();i.StiRenderProvider=D}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e,i,r,n){void 0===t&&(t=-1),void 0===e&&(e=1),void 0===i&&(i=!0),void 0===r&&(r=!0),void 0===n&&(n=!1),this.latestProgressValue=0,this._fromPage=-1,this._toPage=-1,this._showProgress=!0,this._isSubReportMode=!1,this._destroyPagesWhichNotInRange=!0,this._renderOnlyPagesFromRange=!1,this._fromPage=t,this._toPage=e,-1==t&&-1==e&&(r=!1),this._showProgress=i,this._destroyPagesWhichNotInRange=r,this._renderOnlyPagesFromRange=n}return Object.defineProperty(t.prototype,"fromPage",{get:function(){return this._fromPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toPage",{get:function(){return this._toPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showProgress",{get:function(){return this._showProgress},set:function(t){this._showProgress=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSubReportMode",{get:function(){return this._isSubReportMode},set:function(t){this._isSubReportMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyPagesWhichNotInRange",{get:function(){return this._destroyPagesWhichNotInRange},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderOnlyPagesFromRange",{get:function(){return this._renderOnlyPagesFromRange},enumerable:!0,configurable:!0}),t}();t.StiRenderState=e}(e=t.Engine||(t.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiReportTitleBand,r=t.Report.Components.StiPageHeaderBand,n=t.Report.Components.StiPageFooterBand,o=t.Report.Components.StiComponentsCollection,a=function(){function t(t){this.denyReportBands=!1,this.denyPageBands=!1,this.engine=null,this._reservedFreeSpace=0,this._reservedCrossFreeSpace=0,this._reservedPositionX=0,this._reservedPositionY=0,this._reservedPositionBottomY=0,this.engine=t}return Object.defineProperty(t.prototype,"reservedFreeSpace",{get:function(){return this._reservedFreeSpace},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reservedCrossFreeSpace",{get:function(){return this._reservedCrossFreeSpace},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reservedPositionX",{get:function(){return this._reservedPositionX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reservedPositionY",{get:function(){return this._reservedPositionY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reservedPositionBottomY",{get:function(){return this._reservedPositionBottomY},enumerable:!0,configurable:!0}),t.prototype.render=function(){this.engine.threads.isActive||this.engine.denyChangeThread||(this.engine.templatePage.titleBeforeHeader?this.renderTitleBeforeHeader():this.renderHeaderBeforeTitle(),this.engine.denyRenderMasterComponentsInContainer=!0,e.StiPageHelper.renderSimpleComponents(this.engine.templatePage,this.engine.containerForRender),this.engine.denyRenderMasterComponentsInContainer=!1),null!=this.engine.page&&(this.engine.page.pageInfo.positionFromTop=this.engine.positionY,this.engine.page.pageInfo.positionFromBottom=this.engine.positionBottomY);var t=this.engine.containerForRender.getDockRegion(this.engine.containerForRender,!1);this.engine.crossFreeSpace=t.width,this.engine.freeSpace=t.height,this.engine.columnsOnPanel.count>1&&this.engine.columnsOnPanel.rightToLeft&&!this.engine.isCrossBandsMode?this.engine.positionX=t.right-this.engine.columnsOnPanel.getColumnWidth():this.engine.positionX=t.left,this.engine.positionY=t.y,this.engine.positionBottomY=t.bottom,this._reservedCrossFreeSpace=this.engine.crossFreeSpace,this._reservedFreeSpace=this.engine.freeSpace,this._reservedPositionX=this.engine.positionX,this._reservedPositionY=this.engine.positionY,this._reservedPositionBottomY=this.engine.positionBottomY,StiOptions.Engine.forceNewPageForExtraColumns||(this.engine.positionY=this.engine.offsetNewColumnY+this.reservedPositionY)},t.prototype.renderTitleBeforeHeader=function(){if(!this.denyReportBands){var t=this.denyReportBands,e=this.denyPageBands;this.denyPageBands=!0,this.denyReportBands=!0,this.renderReportTitleBands(),this.denyPageBands=e,this.denyReportBands=t}if(!this.denyPageBands){var i=this.denyPageBands,t=this.denyReportBands;this.denyPageBands=!0,this.denyReportBands=!0,this.renderPageHeaderBands(),this.renderPageFooterBands(),this.denyPageBands=i,this.denyReportBands=t}},t.prototype.renderHeaderBeforeTitle=function(){if(!this.denyPageBands){var t=this.denyPageBands,e=this.denyReportBands;this.denyPageBands=!0,this.renderPageHeaderBands(),this.renderPageFooterBands(),this.denyPageBands=t}},t.prototype.renderReportTitleBands=function(){if(this.engine.templatePage.pageInfo.isReportTitlesRendered)return;for(var t=0,e=this.engine.templatePage.components.list;t<e.length;t++){var r=e[t],n=r.sti_as(i);null!=n&&(n.parentBookmark=this.engine.containerForRender.currentBookmark,n.doBookmark(),this.engine.renderBand(n))}this.engine.templatePage.pageInfo.isReportTitlesRendered=!0},t.prototype.renderPageHeaderBands=function(){for(var t=this.getPageHeaders(),e=0,i=t.list;e<i.length;e++){var n=i[e],o=n.sti_as(r);null!=o&&(o.parentBookmark=this.engine.containerForRender.currentBookmark,o.doBookmark(),this.engine.renderBand(o))}},t.prototype.renderPageFooterBands=function(){for(var t=this.getPageFooters(),e=0,i=t.list;e<i.length;e++){var r=i[e],o=r.sti_as(n);null!=o&&(o.parentBookmark=this.engine.containerForRender.currentBookmark,o.doBookmark(),this.engine.renderBand(o))}},t.prototype.getPageHeaders=function(){var t=new o,e=this.engine.report.pages.indexOf(this.engine.templatePage),i=e;while(i>=0){var r=this.engine.report.pages.list[i];if(!r.printHeadersFootersFromPreviousPage)break;i--}i<=-1&&(i=0);for(var n=i;n<=e;n++){var r=this.engine.report.pages.list[n];t.addRange(this.getPageHeadersFromPage(r))}return t},t.prototype.getPageFooters=function(){var t=new o,e=this.engine.report.pages.indexOf(this.engine.templatePage),i=e;while(i>=0){var r=this.engine.report.pages.list[i];if(!r.printHeadersFootersFromPreviousPage)break;i--}i<=-1&&(i=0);for(var n=i;n<=e;n++){var r=this.engine.report.pages.list[n];t.addRange(this.getPageFootersFromPage(r))}return t},t.prototype.getPageHeadersFromPage=function(t){for(var e=new o,i=0,n=t.components.list;i<n.length;i++){var a=n[i],s=a.sti_as(r);null!=s&&e.add(s)}return e},t.prototype.getPageFootersFromPage=function(t){for(var e=new o,i=0,r=t.components.list;i<r.length;i++){var a=r[i],s=a.sti_as(n);null!=s&&e.add(s)}return e},t}();e.StiStaticBandsHelper=a}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiFillParametersEventHandler=new i("sender: Object, e: StiFillParametersEventArgs");var n=function(t){function e(e){void 0===e&&(e=[]);var i=t.call(this)||this;return i.val=[],i.val=e,i}return __extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(t){this.val=t},enumerable:!0,configurable:!0}),e}(r);e.StiFillParametersEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Events.StiFillParametersEventArgs,r=t.Report.Components.IStiRenderMaster,n=t.Report.Components.StiComponentType,o=t.Report.Components.StiBand,a=t.Report.Components.StiDataBand,s=t.Report.Components.StiChildBand,l=t.Report.Components.StiContainer,u=t.Report.Components.StiPage,c=function(){function c(){}return c.getMasterDataBand=function(t){t=t.parent;while(!0){if(t.sti_is(a))return t;if(t.sti_is(u))return null;if(null==t)return null;if(t.sti_is(s)){var e=t.getMaster();if(null!=e){t=e;continue}}t=t.parent}},c.getParentBand=function(t){t=t.parent;while(!0){if(t.sti_is(o))return t;if(t.sti_is(u))return null;if(null==t)return null;t=t.parent}},c.renderSubReport=function(t,e){var r=e.subReportPage,n=null!=r?r.height:0,o=e.report.engine;null!=r&&(r.pageInfo.masterDataBand=this.getMasterDataBand(e));for(var a=0,s=e.report.dictionary.dataSources.list;a<s.length;a++){var u=s[a];u.initForSubreport=!0}null!=r&&(r.unlimitedBreakable=!1);var c=e.getExternalSubReport(),p=new i;if(e.invokeFillParameters(e,p),null!=p.value&&p.value.count>0)for(var h=c||e.report,g=0,m=p.value;g<m.length;g++){var d=m[g];h.setVariable(d.key,d.value)}if(null!=c){var S=this.renderExternalSubReport(e,c);t.components.addRange(S.components)}else{var S=this.renderInternalSubReport(e);t.components.addRange(S.components)}for(var f=0,y=t.components.list;f<y.length;f++){var b=y[f];b.right>t.width&&(b.width=t.width-b.left);var C=b.sti_as(l);if(null!=C)for(var v=0,I=C.components.list;v<I.length;v++){var A=I[v];A.left>t.width&&(A.left=t.width),A.right+b.left>t.width&&(A.width=t.width-(A.left+b.left))}}e.report.engine=o,null!=r&&(r.height=n,r.pageInfo.masterDataBand=null);for(var w=0,T=e.report.dictionary.dataSources.list;w<T.length;w++){var u=T[w];u.initForSubreport=!1}},c.renderInternalSubReport=function(t){var i=t.subReportPage,r=new l;if(null==i)return r;r.width=i.width,r.height=this.specialSubReportHeight;var n=i.currentBookmark,o=i.parentBookmark;i.currentBookmark=t.currentBookmark,i.parentBookmark=t.parentBookmark,r.currentBookmark=t.parentBookmark;var a=new e.StiEngine(t.report);a.parserConversionStore=t.report.engine.parserConversionStore.clone(),null!=t.report.engine.hashDataSourceReferencesCounter&&(a.hashDataSourceReferencesCounter=t.report.engine.hashDataSourceReferencesCounter.clone()),a.templatePage=i,a.templateContainer=t.subReportPage,a.containerForRender=r,t.report.engine=a,a.setNewPageParameters(),a.freeSpace=this.specialSubReportHeight,a.positionBottomY=this.specialSubReportHeight,a.newList(),e.StiPageHelper.renderPage(i),a.finalClear(),a.parserConversionStore=null;for(var s=a.positionBottomY-a.positionY,u=0,c=r.components.list;u<c.length;u++){var p=c[u];p.top>=a.positionY&&p.top-s>=0&&(p.top-=s)}return e.StiPostProcessProvider.postProcessPrimitivesInContainer(r),i.currentBookmark=n,i.parentBookmark=o,r},c.renderExternalSubReport=function(t,e){var i=new l;if(null!=e){if(StiOptions.Engine.renderExternalSubReportsWithHelpOfUnlimitedHeightPages)for(var r=0,n=e.pages.list;r<n.length;r++){var o=n[r];o.unlimitedHeight=!0,o.unlimitedBreakable=!1,o.height=this.specialSubReportHeight}e.isDocument||e.render(!1);for(var a=0,s=0,u=0,c=e.renderedPages.list;u<c.length;u++){var o=c[u];i.components.addRange(o.components);for(var p=0,h=o.components.list;p<h.length;p++){var g=h[p];g.top+=s,g.left+=a,g.growToHeight=!1,g.canShrink=!1}o.components.clear(),s+=o.height}}return i},c.renderDataBandsInContainer=function(i,o,a){void 0===a&&(a=!1),i.canGrow=!0;var s=o.report.engine,u=0,c=0;null!=o.report.engine.page&&(u=o.report.engine.page.pageInfo.positionFromTop,c=o.report.engine.page.pageInfo.positionFromBottom);try{var p=1e11,h=!1,g=new l;g.width=o.width,g.height=p;var m=new e.StiEngine(o.report);m.denyChangeThread=!0,m.parserConversionStore=o.report.engine.parserConversionStore.clone(),null!=o.report.engine.hashDataSourceReferencesCounter&&(m.hashDataSourceReferencesCounter=o.report.engine.hashDataSourceReferencesCounter.clone()),null!=o.report.engine.hashParentStyles&&o.report.engine.hashParentStyles.count>0&&(m.hashParentStyles=o.report.engine.hashParentStyles.clone()),m.page=o.report.engine.page,m.templatePage=o.report.engine.templatePage,m.templateContainer=o,m.containerForRender=g,o.report.engine=m,m.setNewPageParameters(),m.freeSpace=p,m.positionBottomY=p,m.newList(a),g.components.clear();var d=g.getDockRegion(g,!1);m.crossFreeSpace=s.templatePage.width-(o.left+d.left),m.freeSpace=d.height,m.positionX=d.left,m.positionY=d.top;for(var S=0,f=o.components.list;S<f.length;S++){var y=f[S];if(y.parentBookmark=o.currentBookmark,y.componentType==n.Master){y.sti_is(t.Report.Components.StiCrossDataBand)&&(h=!0);var b=y.sti_as(r);null!=b&&b.renderMaster()}}if(m.finalClear(),m.parserConversionStore=null,m.hashParentStyles=null,h){for(var C=0,v=0,I=g.components.list;v<I.length;v++){var A=I[v];C=Math.max(A.right,C)}var w=1;do{var T=s.templatePage.width*w;if(C+i.left<=T)break;w++}while(1==1);i.containerInfo.setSegmentPerWidth=w}else{var B=m.positionBottomY-m.positionY;i.bottom-m.positionY>p-m.positionBottomY&&!o.canShrink&&(B=p-i.height);for(var R=0,P=g.components.list;R<P.length;R++){var A=P[R];A.top>=m.positionY&&A.top-B>=0&&(A.top-=B)}}if(i.components.addRange(g.components),!h)for(var F=0,x=i.components.list;F<x.length;F++){var A=x[F];A.right>i.width&&(A.width=i.width-A.left);var D=A.sti_as(l);if(null!=D)for(var k=0,E=D.components.list;k<E.length;k++){var G=E[k];G.left>i.width&&(G.left=i.width),G.right+A.left>i.width&&(G.width=i.width-(G.left+A.left))}}}finally{o.report.engine=s,null!=o.report.engine.page&&(o.report.engine.page.pageInfo.positionFromTop=u,o.report.engine.page.pageInfo.positionFromBottom=c)}},c.specialSubReportHeight=1e11,c}();e.StiSubReportsHelper=c}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiContainer,r=t.Report.Components.StiPage,n=function(){function t(t){this.isActive=!1,this.currentPage=-1,this.currentColumn=-1,this.destinationName=null,this.engine=null,this.engine=t}return t.prototype.newPage=function(){this.engine.containerForRender=null,this.currentColumn++,this.engine.containerForRender=this.getDestinationContainer(),null==this.engine.containerForRender&&(this.currentColumn=1,this.currentPage++,this.currentPage>=this.engine.report.renderedPages.count&&(this.engine.report.engine=this.engine.masterEngine,this.engine.report.engine.newPage(),this.engine.report.engine=this.engine),this.engine.containerForRender=this.getDestinationContainer())},t.prototype.selectThreadFromContainer=function(t){if(this.engine.denyChangeThread)return;var i=null,n=null;if(n=null!=t.containerInfo.parentBand?t.containerInfo.parentBand.parent:t.parent,i=n.name,n.sti_is(r))return void(null!=this.engine.masterEngine&&(this.engine.report.engine=this.engine.masterEngine));var o=null==this.engine.masterEngine?this.engine:this.engine.masterEngine,a=o.slaveEngines.get(i);null!=a&&(a=a.sti_as(e.StiEngine)),null==a&&(a=o.threads.createContainerEngine(i,this.engine.report,o,null!=o.page?o.page.pageInfo.indexOfStartRenderedPages:0),o.slaveEngines.set(i,a),a.printOnAllPagesIgnoreList=o.printOnAllPagesIgnoreList),this.engine.report.engine=a},t.prototype.createContainerEngine=function(t,i,r,n){var o=new e.StiEngine(i);return o.masterEngine=r,o.threads.isActive=!0,o.threads.currentPage=n,o.threads.currentColumn=1,o.threads.destinationName=t,o.templatePage=i.engine.templatePage,o.templateContainer=o.threads.getTemplateContainer(),o.parserConversionStore=i.engine.parserConversionStore.clone(),-1!=n&&(o.containerForRender=o.threads.getDestinationContainer()),o.newList(),-1==n&&(o.freeSpace=1e11),o},t.prototype.getTemplateContainer=function(t,e){void 0===t&&(t=this.engine.templatePage),void 0===e&&(e=this.destinationName);for(var r=0,n=t.components.list;r<n.length;r++){var o=n[r],a=o.sti_as(i);if(null==a)continue;if(a.name==e)return a;var s=this.getTemplateContainer(a,e);if(null!=s)return s}return null},t.prototype.getDestinationContainer=function(){var t=null;return t=this.engine.report.renderedPages.count<=this.currentPage?this.engine.report.renderedPages.list[this.engine.report.renderedPages.count-1]:this.engine.report.renderedPages.list[this.currentPage],this.getDestinationContainer2(t,this.destinationName,this.currentColumn)},t.prototype.getDestinationContainer2=function(t,e,r){for(var n=0,o=t.components.list;n<o.length;n++){var a=o[n],s=a.sti_as(i);if(null==s)continue;if(s.name==e&&s.containerInfo.renderStep==r)return s;var l=this.getDestinationContainer2(s,e,r);if(null!=l)return l}return null},t}();e.StiThreads=n}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Engine.StiAsmCommandType,n=t.System.Collections.Hashtable,o=t.Report.Dictionary.StiRangeDialogInfoItem,a=t.Report.Dictionary.StiLongDialogInfoItem,s=t.Report.Dictionary.StiLongDialogInfoItem,l=t.Report.Dictionary.StiDoubleDialogInfoItem,u=t.Report.Dictionary.StiDecimalDialogInfoItem,c=t.Report.Dictionary.StiDateTimeDialogInfoItem,p=t.Report.Dictionary.StiTimeSpanDialogInfoItem,h=t.Report.Dictionary.StiBoolDialogInfoItem,g=t.Report.Dictionary.StiCharDialogInfoItem,m=t.Report.Dictionary.StiGuidDialogInfoItem,d=t.Report.Components.StiText,S=t.Report.Dictionary.StiSqlSource,f=function(){function i(){}return i.fillItemsOfVariables=function(t){for(var e=0,i=t.dictionary.variables.list;e<i.length;e++){var r=i[e];if(this.fillItemsOfVariables2(r,t))return}},i.fillItemsOfVariables2=function(e,i){if(null==e.dialogInfo)return!1;if(e.dialogInfo.itemsInitializationType==t.Report.Dictionary.StiItemsInitializationType.Items){var r=e.dialogInfo.getDialogInfoItems(e.type);if(null!=r&&r.count>0){var d=i.getVariable(e.name,!0);if(null==d)return!1;var S=d.sti_as(Array);if(null==S)return!1;if(S.count>0)return!0;S.clear();for(var f=0,y=r;f<y.length;f++){var b=y[f];try{S.add(b.keyObject)}catch(t){}}}}else{if(null!=e.dialogInfo.keys&&e.dialogInfo.keys.length>0||null!=e.dialogInfo.values&&e.dialogInfo.values.length>0)return!1;var C=String.isNullOrEmpty(e.dialogInfo.keysColumn)?null:t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.dictionary,e.dialogInfo.keysColumn),v=String.isNullOrEmpty(e.dialogInfo.valuesColumn)?null:t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.dictionary,e.dialogInfo.valuesColumn),I=String.isNullOrEmpty(e.dialogInfo.bindingValuesColumn)?null:t.Report.Dictionary.StiDataColumn.getDatasFromDataColumn(i.dictionary,e.dialogInfo.bindingValuesColumn);null==C&&(C=[]),null==v&&(v=[]),null==I&&(I=[]);for(var A=Math.max(C.length,v.length),r=[],w=e.type,T=0;T<A;T++){var B=C.length>T?C[T]:null,R=v.length>T?v[T].toString():String.empty,P=I.length>T?I[T]:null,b=null;w==t.System.StimulsoftByteList||w==t.System.StimulsoftShortList||w==t.System.StimulsoftIntList||w==t.System.StimulsoftLongList||w==t.System.Byte||w==t.System.Short||w==t.System.Int||w==t.System.Int16||w==t.System.Int32||w==t.System.Int64||w==t.System.Long||w==t.System.NullableByte||w==t.System.NullableShort||w==t.System.NullableInt||w==t.System.NullableLong?b=new a:w==t.System.StimulsoftStringList||w==String?b=new s:w==t.System.StimulsoftDoubleList||w==t.System.StimulsoftFloatList||w==t.System.Double||w==t.System.Float||w==t.System.NullableDouble||w==t.System.NullableFloat?b=new l:w==t.System.StimulsoftDecimalList||w==t.System.Decimal||w==t.System.NullableDecimal?b=new u:w==t.System.StimulsoftDateTimeList||w==t.System.DateTime||w==t.System.NullableDateTime?b=new c:w==t.System.StimulsoftTimeSpanList||w==t.System.TimeSpan||w==t.System.NullableTimeSpan?b=new p:w==t.System.StimulsoftBoolList||w==Boolean||w==t.System.NullableBoolean?b=new h:w==t.System.StimulsoftCharList||w==t.System.Char||w==t.System.NullableChar?b=new g:w!=t.System.StimulsoftGuidList&&w!=t.System.Guid||(b=new m),null!=B&&(b.keyObject=B),b.value=R,b.valueBinding=P,r.add(b)}for(var F=[],x=new n,D=0,k=r;D<k.length;D++){var b=k[D];(null==x.get(b.keyObject)||b.sti_is(o))&&(x.set(b.keyObject,b.keyObject),F.add(b))}var E=e.dialogInfo.bindingValue?r:F;e.dialogInfo.setDialogInfoItems(E,e.type)}return!1},i.setDefaultValueForRequestFromUserVariables=function(i){var r=new n,o=new d;o.name="**VariableRequestFromUser**",o.page=i.pages.getByIndex(0);for(var a=new n,s=0,l=i.dictionary.dataSources.list;s<l.length;s++){var u=l[s],c=u.sti_as(S);null!=c&&a.set(u.name,c.sqlCommand)}for(var p=0,h=i.dictionary.variables.list;p<h.length;p++){var g=h[p];if(g.requestFromUser&&!i.modifiedVariables.containsKey(g.name))try{r.set(g.name,null),g.selection==t.Report.Dictionary.StiSelectionMode.FromVariable&&g.initBy==t.Report.Dictionary.StiVariableInitBy.Expression&&i.setVariable(g.name,t.Report.Engine.StiParser.StiParser.parseTextValue("{"+g.value+"}",o)),g.selection==t.Report.Dictionary.StiSelectionMode.First&&i.setVariable(g.name,e.StiReport.changeType(g.dialogInfo.keys[0],g.type))}catch(t){}}if(0==r.count)return},i.checkExpressionForVariables=function(e,i,n){try{var o=t.Report.Engine.StiParser.StiParser.parseTextValue(e,i,{ref:!1},!1,!0);if(null!=o&&o.sti_is(Array))for(var a=0,s=o;a<s.length;a++){var l=s[a];if(l.type==r.PushVariable){var u=l.parameter1.toString();if(n.containsKey(u))return!0}}}catch(t){}return!1},i}();i.StiVariableHelper=f}(i=e.Engine||(e.Engine={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"AfterSelect"},e}(t.StiEvent);t.StiAfterSelectEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"CheckedChanged"},e}(t.StiEvent);t.StiCheckedChangedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"ClosedForm"},e}(t.StiEvent);t.StiClosedFormEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"ClosingForm"},e}(t.StiEvent);t.StiClosingFormEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Enter"},e}(t.StiEvent);t.StiEnterEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiExportEventHandler=new i("sender: Object, e: StiExportEventArgs");var n=function(t){function e(e){var i=t.call(this)||this;return i.exportFormat=e,i}return __extends(e,t),e}(r);e.StiExportEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Exported"},e}(t.StiEvent);t.StiExportedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Exporting"},e}(t.StiEvent);t.StiExportingEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"FillData"},e}(t.StiEvent);t.StiFillDataEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetArgument"},e}(t.StiEvent);t.StiGetArgumentEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetBarCode"},e}(t.StiEvent);t.StiGetBarCodeEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGetDataUrlEventHandler=new i("sender: Object, e: StiGetDataUrlEventArgs");var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(r);e.StiGetDataUrlEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGetDrillDownReportEventHandler=new i("sender: Object, e: StiGetDrillDownReportEventArgs");var n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cancel=!1,e}return __extends(e,t),e}(r);e.StiGetDrillDownReportEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetFilter"},e}(t.StiEvent);t.StiGetFilterEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"GetZipCode"},e}(t.StiEvent);t.StiGetZipCodeEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiGotoCompEventHandler=new i("sender: Object, e: StiGotoCompEventArgs");var n=function(t){function e(e){var i=t.call(this)||this;return i.component=e,i}return __extends(e,t),e}(r);e.StiGotoCompEventArgs=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"LoadForm"},e}(t.StiEvent);t.StiLoadFormEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"MouseDown"},e}(t.StiEvent);t.StiMouseDownEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"MouseMove"},e}(t.StiEvent);t.StiMouseMoveEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"MouseUp"},e}(t.StiEvent);t.StiMouseUpEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"MoveFooterToBottom"},e}(t.StiEvent);t.StiMoveFooterToBottomEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler,r=t.System.EventArgs;e.StiPaintEventHandler=new i("sender: Object, e: StiPaintEventArgs");var n=function(t){function e(e,i){var r=t.call(this)||this;return r.drawChilds=!0,r.cancel=!1,r.drawBorderFormatting=!0,r.drawTopmostBorderSides=!0,r.context=e,r.clipRectangle=i,r}return __extends(e,t),e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"graphics",{get:function(){return this.context},enumerable:!0,configurable:!0}),e}(r);e.StiPaintEventArgs=n}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"PositionChanged"},e}(t.StiEvent);t.StiPositionChangedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Printed"},e}(t.StiEvent);t.StiPrintedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"Printing"},e}(t.StiEvent);t.StiPrintingEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.EventHandler;e.StiProcessExportEventHandler=new i("sender: Object, e: StiProcessExportEventArgs");var r=function(t){function e(e,i,r,n){var o=t.call(this,e)||this;return o.processed=!1,o.exportService=i,o.stream=r,o.exportSettings=n,o}return __extends(e,t),e}(e.StiExportEventArgs);e.StiProcessExportEventArgs=r}(i=e.Events||(e.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"ReportCacheProcessing"},e}(t.StiEvent);t.StiReportCacheProcessingEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"SelectedIndexChanged"},e}(t.StiEvent);t.StiSelectedIndexChangedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"StateRestore"},e}(t.StiEvent);t.StiStateRestoreEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"StateSave"},e}(t.StiEvent);t.StiStateSaveEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toString=function(){return"ValueChanged"},e}(t.StiEvent);t.StiValueChangedEvent=e}(e=t.Events||(t.Events={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){this.isStopped=!1,this.renderedPagesCount=0,this.currentPassNumber=0,this.maximumPassNumber=0,this.exportServiceId=""}return t.prototype.invokeExporting=function(t,e,i,r){},t.prototype.invokeExporting2=function(t,e,i,r){},t}();t.StiExportService=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.IO.StreamWriter,n=t.Base.Localization.StiLocalization,o=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return __extends(o,t),Object.defineProperty(o.prototype,"defaultExtension",{get:function(){return"csv"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"exportFormat",{get:function(){return e.StiExportFormat.Csv},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"groupCategory",{get:function(){return"Data"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"position",{get:function(){return i.StiExportPosition.Data},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"exportNameInMenu",{get:function(){return n.get("Export","ExportTypeCsvFile")},enumerable:!0,configurable:!0}),o.prototype.exportTo=function(t,e,r){this.exportCsv(t,e,r.sti_as(i.StiDataExportSettings))},o.prototype.exportToAsync=function(t,e,i,r){var n=this;setTimeout(function(){n.exportTo(e,i,r),t()})},o.prototype.multipleFiles=function(){return!1},Object.defineProperty(o.prototype,"getFilter",{get:function(){return n.get("FileFilters","CsvFiles")},enumerable:!0,configurable:!0}),o.prototype.exportCsv=function(t,e,n){if(null==n)throw"The 'settings' argument cannot be equal in null.";var o=n.pageRange,a=n.separator,s=n.encoding,l=n.skipColumnHeaders,u=n.dataExportMode;"\\t"==a&&(a="\t");var c=o.getSelectedPages(t.renderedPages);this.currentPassNumber=0,this.maximumPassNumber=3;var p=new i.StiMatrix(c,!1,this,null,u);if(p.scanComponentsPlacement(!1),this.isStopped)return;if(p.prepareDocument(this,u),this.writer=new r(e,s),!l){for(var h=0;h<p.fields.length;h++){var g=p.fields[h].name.replaceAll('"','""');-1!=g.indexOf(a)&&(g='"'+g+'"'),this.writer.write(g),h<p.fields.length-1&&this.writer.write(a)}this.writer.writeLine("")}this.currentPassNumber=2;for(var m=0;m<p.dataArrayLength;m++){if(this.invokeExporting2(m,p.dataArrayLength-1,this.currentPassNumber,this.maximumPassNumber),this.isStopped)return;for(var h=0;h<p.fields.length;h++){var g=p.fields[h].dataArray[m];null==g&&(g=String.empty),g!=String.empty&&(-1==g.indexOf(a)&&-1==g.indexOf('"')&&-1==g.indexOf("\n")||(g=g.replaceAll('"','""'),g='"'+g+'"'),this.writer.write(g)),h<p.fields.length-1&&this.writer.write(a)}this.writer.writeLine("")}this.writer.flush(),null!=p&&(p.clear(),p=null)},o}(i.StiExportService);i.StiCsvExportService=o}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiGlareBrush,r=t.Base.Drawing.StiHatchBrush,n=t.Base.StiGuidUtils,o=t.System.Text.StringBuilder,a=t.Base.Drawing.StiGradientBrush,s=t.Base.Drawing.StiGlassBrush,l=function(){function t(){}return t.writeHatchBrush=function(t,e){var i=e.sti_as(r),a=i.foreColor,s=i.backColor,l=i.style;l>53&&(l=53);var u=String.stiFormat("hatch{0}",n.newGuid());t.writeStartElement("pattern"),t.writeAttributeString("id",u),t.writeAttributeString("x","0"),t.writeAttributeString("y","0"),t.writeAttributeString("width","8"),t.writeAttributeString("height","8"),t.writeAttributeString("patternUnits","userSpaceOnUse");for(var c=new o,p=this.hatchData[l],h=0;h<16;h++)c.append(this.hexToByteString(p.substr(h,1)));t.writeStartElement("rect"),t.writeAttributeString("x","0"),t.writeAttributeString("y","0"),t.writeAttributeString("width","8"),t.writeAttributeString("height","8"),t.writeAttributeString("fill",String.stiFormat("#{0:X2}{1:X2}{2:X2}",s.r,s.g,s.b)),t.writeEndElement();for(var g=0;g<8;g++)for(var m=0;m<8;m++){var d=c.toString().charAt(8*g+m);"1"==d&&(t.writeStartElement("rect"),t.writeAttributeString("x",m.toString()),t.writeAttributeString("y",g.toString()),t.writeAttributeString("width","1"),t.writeAttributeString("height","1"),t.writeAttributeString("fill",String.stiFormat("#{0:X2}{1:X2}{2:X2}",a.r,a.g,a.b)),t.writeEndElement())}return t.writeEndElement(),u},t.hexToByteString=function(t){var e="0000";switch(t){case"1":e="0001";break;case"2":e="0010";break;case"3":e="0011";break;case"4":e="0100";break;case"5":e="0101";break;case"6":e="0110";break;case"7":e="0111";break;case"8":e="1000";break;case"9":e="1001";break;case"A":e="1010";break;case"B":e="1011";break;case"C":e="1100";break;case"D":e="1101";break;case"E":e="1110";break;case"F":e="1111";break}return e},t.writeGlareBrush=function(t,e,r){var o=e.sti_as(i),a=1,s=1,l=o.angle;l<0&&(l+=360),l>=270&&l<360&&(l=360-l,s=-1),l>=180&&l<270&&(l-=180,s=-1,a=-1),l>=90&&l<180&&(l=180-l,a=-1),l=l*Math.PI/180;var u=r.x+r.width/2,c=r.y+r.height/2,p=Math.sqrt(r.width*r.width+r.height*r.height)/2,h=Math.atan2(r.height,r.width),g=Math.PI/2-l+h,m=p*Math.sin(g),d=m*Math.cos(l)*a,S=m*Math.sin(l)*-s,f=u-d,y=u+d,b=c+S,C=c-S,v=String.stiFormat("gradient{0}",n.newGuid());return t.writeStartElement("linearGradient"),t.writeAttributeString("id",v),t.writeAttributeString("gradientUnits","userSpaceOnUse"),t.writeAttributeString("x1",f.toString()),t.writeAttributeString("y1",b.toString()),t.writeAttributeString("x2",y.toString()),t.writeAttributeString("y2",C.toString()),t.writeStartElement("stop"),t.writeAttributeString("offset","0%"),t.writeAttributeString("stop-color",String.stiFormat("#{0:X2}{1:X2}{2:X2}",o.startColor.r,o.startColor.g,o.startColor.b)),255!=o.startColor.a&&t.writeAttributeString("stop-opacity",Math.round(o.startColor.a/255,3).toString().replaceAll(",",".")),t.writeEndElement(),t.writeStartElement("stop"),t.writeAttributeString("offset","50%"),t.writeAttributeString("stop-color",String.stiFormat("#{0:X2}{1:X2}{2:X2}",o.endColor.r,o.endColor.g,o.endColor.b)),255!=o.endColor.a&&t.writeAttributeString("stop-opacity",Math.round(o.endColor.a/255,3).toString().replaceAll(",",".")),t.writeEndElement(),t.writeStartElement("stop"),t.writeAttributeString("offset","100%"),t.writeAttributeString("stop-color",String.stiFormat("#{0:X2}{1:X2}{2:X2}",o.startColor.r,o.startColor.g,o.startColor.b)),255!=o.startColor.a&&t.writeAttributeString("stop-opacity",Math.round(o.startColor.a/255,3).toString().replaceAll(",",".")),t.writeEndElement(),t.writeFullEndElement(),v},t.writeGradientBrush=function(t,e,i){var r=e.sti_as(a),o=1,s=1,l=r.angle;l<0&&(l+=360),l>=270&&l<360&&(l=360-l,s=-1),l>=180&&l<270&&(l-=180,s=-1,o=-1),l>=90&&l<180&&(l=180-l,o=-1),l=l*Math.PI/180;var u=i.x+i.width/2,c=i.y+i.height/2,p=Math.sqrt(i.width*i.width+i.height*i.height)/2,h=Math.atan2(i.height,i.width),g=Math.PI/2-l+h,m=p*Math.sin(g),d=m*Math.cos(l)*o,S=m*Math.sin(l)*-s,f=u-d,y=u+d,b=c+S,C=c-S,v=String.stiFormat("gradient{0}",n.newGuid());return t.writeStartElement("linearGradient"),t.writeAttributeString("id",v),t.writeAttributeString("gradientUnits","userSpaceOnUse"),t.writeAttributeString("x1",f.toString()),t.writeAttributeString("y1",b.toString()),t.writeAttributeString("x2",y.toString()),t.writeAttributeString("y2",C.toString()),t.writeStartElement("stop"),t.writeAttributeString("offset","0%"),t.writeAttributeString("stop-color",String.stiFormat("#{0:X2}{1:X2}{2:X2}",r.startColor.r,r.startColor.g,r.startColor.b)),255!=r.startColor.a&&t.writeAttributeString("stop-opacity",Math.round(r.startColor.a/255,3).toString().replaceAll(",",".")),t.writeEndElement(),t.writeStartElement("stop"),t.writeAttributeString("offset","100%"),t.writeAttributeString("stop-color",String.stiFormat("#{0:X2}{1:X2}{2:X2}",r.endColor.r,r.endColor.g,r.endColor.b)),255!=r.endColor.a&&t.writeAttributeString("stop-opacity",Math.round(r.endColor.a/255,3).toString().replaceAll(",",".")),t.writeEndElement(),t.writeFullEndElement(),v},t.writeGlassBrush=function(t,e,i){var r=e.sti_as(s),o=r.getTopColor(),a=r.getTopRectangle(i),l=r.getBottomColor(),u=r.getBottomRectangle(i),c=String.stiFormat("glass{0}",n.newGuid());return t.writeStartElement("pattern"),t.writeAttributeString("id",c),t.writeAttributeString("x",i.x.toString().replaceAll(",",".")),t.writeAttributeString("y",i.y.toString().replaceAll(",",".")),t.writeAttributeString("width",i.width.toString().replaceAll(",",".")),t.writeAttributeString("height",i.height.toString().replaceAll(",",".")),t.writeAttributeString("patternUnits","userSpaceOnUse"),t.writeStartElement("rect"),t.writeAttributeString("x","0"),t.writeAttributeString("y","0"),t.writeAttributeString("width",i.width.toString().replaceAll(",",".")),t.writeAttributeString("height",i.height.toString().replaceAll(",",".")),t.writeAttributeString("style",String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",l.r,l.g,l.b,Math.round(l.a/255,3).toString().replaceAll(",","."))),t.writeEndElement(),t.writeStartElement("rect"),t.writeAttributeString("x","0"),t.writeAttributeString("y","0"),t.writeAttributeString("width",a.width.toString().replaceAll(",",".")),t.writeAttributeString("height",a.height.toString().replaceAll(",",".")),t.writeAttributeString("style",String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",o.r,o.g,o.b,Math.round(o.a/255,3).toString().replaceAll(",","."))),t.writeEndElement(),t.writeEndElement(),c},t.hatchData=["000000FF00000000","1010101010101010","8040201008040201","0102040810204080","101010FF10101010","8142241818244281","8000000008000000","0010000100100001","2200880022008800","2288228822882288","2255885522558855","AA558A55AA55A855","AA55AA55AA55AA55","BB55EE55BB55EE55","DD77DD77DD77DD77","FFDDFF77FFDDFF77","FF7FFFF7FF7FFFF7","FF7FFFFFFFF7FFFF","8844221188442211","1122448811224488","CC663399CC663399","993366CC993366CC","E070381C0E0783C1","C183070E1C3870E0","4040404040404040","00FF000000FF0000","AAAAAAAAAAAAAAAA","FF00FF00FF00FF00","CCCCCCCCCCCCCCCC","FFFF0000FFFF0000","8844221100000000","1122448800000000","F00000000F000000","8080808008080808","0240088004200110","0C8DB130031BD8C0","8403304884033048","00304A8100304A81","0102040818244281","202020FF020202FF","1422518854224588","F0F0F0F0AA55AA55","0100201020000102","AA00800080008000","0020008800020088","8448300C02010103","33FFCCFF33FFCCFF","98F8F877898F8F77","111111FF111111FF","3333CCCC3333CCCC","0F0F0F0FF0F0F0F0","0502058850205088","10387CFE7C381000","0000000000000000"],t}();e.StiBrushSvgHelper=l}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Drawing.Point,r=function(){function t(){}return t.cardinalSpline=function(t,e){var r=0,n=0,o=new i,a=new i,s=.5*(1/3);n=e?3*(t.length+1)-2:3*t.length-2;var l=Array.create(i,n,!0);for(r=0;r<n;r++)l[r]=new i;if(!e){var u=new i(t[0].x,t[0].y);o=this.calcCurveEnd(u,new i(t[1].x,t[1].y),s),l[0]=u,l[1]=o}for(r=0;r<t.length-(e?1:2);r++){var u=new i(t[r+1].x,t[r+1].y),c=this.calcCurve([new i(t[r].x,t[r].y),u,new i(t[(r+2)%t.length].x,t[(r+2)%t.length].y)],s);o=c[0],a=c[1],l[3*r+2]=o,l[3*r+3]=u,l[3*r+4]=a}if(e){var u=new i(t[0].x,t[0].y),c=this.calcCurve([new i(t[t.length-1].x,t[t.length-1].y),u,new i(t[1].x,t[1].y)],s);o=c[0],a=c[1],l[n-2]=o,l[0]=u,l[1]=a,l[n-1]=l[0]}else{var u=new i(t[t.length-1].x,t[t.length-1].y);o=this.calcCurveEnd(u,new i(t[t.length-2].x,t[t.length-2].y),s),l[n-2]=o,l[n-1]=u}return l},t.calcCurveEnd=function(t,e,r){return new i(r*(e.x-t.x)+t.x,r*(e.y-t.y)+t.y)},t.calcCurve=function(t,e){var r=t[2].x-t[0].x,n=t[2].y-t[0].y;return[new i(t[1].x-e*r,t[1].y-e*n),new i(t[1].x+e*r,t[1].y+e*n)]},t}();e.StiCurveHelper=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Xml.XmlTextWriter,r=t.System.Text.Encoding,n=t.System.Drawing.Color,o=t.Report.Chart.IStiChart,a=t.Base.Context.StiContext,s=t.Base.Context.StiContextPainter,l=t.System.Drawing.Rectangle,u=t.System.Text.StringBuilder,c=t.System.Drawing.StringFormat,p=t.Base.Drawing.StiRotationMode,h=t.Base.Context.StiPushTranslateTransformGeom,g=t.Base.Context.StiPushRotateTransformGeom,m=t.Base.Context.StiPopTransformGeom,d=t.Base.Context.StiBorderAnimationGeom,S=t.Base.Context.StiBorderGeom,f=t.Base.Context.StiLineGeom,y=t.Base.Context.StiLinesGeom,b=t.Base.Context.Animation.StiOpacityAnimation,C=t.Base.Context.StiPushClipGeom,v=t.Base.Context.StiPopClipGeom,I=t.Base.Context.StiCurveGeom,A=t.Base.Context.StiEllipseGeom,w=t.Base.Context.StiCachedShadowGeom,T=t.Base.Context.StiShadowGeom,B=t.Base.Context.StiTextGeom,R=t.Base.Context.StiPathGeom,P=t.Base.Context.StiPieSegmentGeom,F=t.Base.Context.StiArcSegmentGeom,x=t.Base.Context.StiLineSegmentGeom,D=t.Base.Context.StiLinesSegmentGeom,k=t.Base.Context.StiCurveSegmentGeom,E=t.Base.Context.StiCloseFigureSegmentGeom,G=t.Base.Drawing.StiPenStyle,_=t.Base.Drawing.StiGradientBrush,L=t.Base.Drawing.StiGlareBrush,N=t.Base.Drawing.StiHatchBrush,O=t.Base.Drawing.StiGlassBrush,Z=t.Base.Drawing.StiBrush,M=t.System.Drawing.Point,H=t.Report.StiCurveHelper,W=t.System.Drawing.Font,V=t.Base.StiGuidUtils,Y=t.System.Drawing.Image,j=t.System.Drawing.Imaging.ImageFormat,X=t.System.Drawing.Size,J=t.System.Drawing.FontStyle,K=function(){function t(){}return t.getImage=function(e){var n=document.createElement("canvas");n.width=e.width,n.height=e.height;var o=new Y,a=new i(r.UTF8);t.writeChart(a,e),a.flush();var s=String.stiFormat('<svg xmlns="http://www.w3.org/2000/svg" style="width: {0}; height: {1}"><rect x="0" y="0" width="{0}" height="{1}" style="fill: white;"/>{2}</svg>',e.width,e.height,a.textWriter.getStringBuilder().toString());canvg(n,s);var l=n.toDataURL(j.Jpeg.mimeType);return o.base64=l,o},t.addAnimation=function(t,e,i,r,n){void 0===n&&(n="");var o=String.stiFormat('{{"actions":{0}, "begin":{1}, "duration":{2}}}',e,i.totalMilliseconds,r.totalMilliseconds);t.writeAttributeString("_animation"+n,o)},t.writeStimulsoftIconFont=function(){if(!this.isAddStimulsoftIconFont){this.isAddStimulsoftIconFont=!0;var t=document.createElement("style");t.appendChild(document.createTextNode("                    @font-face {                                font-family: 'Stimulsoft';                                src: url(data:font/ttf;base64, ) format('truetype');                                font-weight: normal;                                font- style: normal;                                }                    ")),document.head.appendChild(t)}},t.writeChart=function(t,i){var r=i.component.sti_as(o),n=new s,P=new a(n,!0,!1,!1,1),F=r.isAnimation;r.isAnimation=!1;var x=r.report;r.core.render(P,new l(0,0,i.width,i.height),!0).drawGeom(P),r.isAnimation=F;var D=String.empty;t.writeStartElement("g"),t.writeAttributeString("transform",String.stiFormat("translate({0},{1})",i.x+.5,i.y+.5));for(var k=0,E=P.geoms;k<E.length;k++){var _=E[k];if(_.sti_is(h)){this.listTransformGeom.add(_);var L=_.sti_as(h);t.writeStartElement("g"),this.dx+=_.x,this.dy+=_.y}else if(_.sti_is(g)){this.listTransformGeom.add(_);var N=_.sti_as(g);t.writeStartElement("g"),t.writeAttributeString("transform",String.stiFormat("rotate({0} {1} {2})",N.angle,this.dx,this.dy))}else if(_.sti_is(m)){var O=this.listTransformGeom[this.listTransformGeom.count-1];if(O.sti_is(h)){var H=O.sti_as(h);this.dx-=H.x,this.dy-=H.y}this.listTransformGeom.remove(O),t.writeEndElement()}else if(_.sti_is(C)){var Y=_,j=Y.clipRectangle,K="s"+V.newGuid();t.writeStartElement("defs"),t.writeStartElement("clipPath"),t.writeAttributeString("id",K),t.writeStartElement("rect"),t.writeAttributeString("x",(j.x+this.dx).toString().replaceAll(",",".")),t.writeAttributeString("y",(j.y+this.dy).toString().replaceAll(",",".")),t.writeAttributeString("width",j.width.toString().replaceAll(",",".")),t.writeAttributeString("height",j.height.toString().replaceAll(",",".")),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),D=K}else if(_.sti_is(v))D=String.empty;else if(_.sti_is(d)){var U=_,j=U.rect,z=new b(U.duration,U.beginTime),Q=new u;if(null!=U.background?Q.append(this.writeFillBrush(t,U.background,j)):Q.append("fill:none;"),this.checkPenGeom(U.borderPen)){var q=String.stiFormat("{0}",this.writeBorderStroke(t,U.borderPen.brush,j));Q.append(String.stiFormat("{0};stroke-width:{1};",q,U.borderPen.thickness))}t.writeStartElement("rect"),String.isNullOrEmpty(D)||t.writeAttributeString("clip-path",String.stiFormat("url(#{0})",D)),t.writeAttributeString("x",(j.x+this.dx).toString().replace(",",".")),t.writeAttributeString("y",(j.y+this.dy).toString().replace(",",".")),t.writeAttributeString("width",j.width.toString().replace(",",".")),t.writeAttributeString("height",j.height.toString().replace(",",".")),t.writeAttributeString("style",Q.toString()),t.writeAttributeString("shape-rendering","crispEdges"),null!=z&&(t.writeAttributeString("opacity","0"),this.addAnimation(t,'[["opacity", 0 , 1,""]]',z.beginTime,z.duration)),t.writeEndElement()}else if(_.sti_is(S)){var U=_.sti_as(S),j=U.rect.sti_as(l),Q=new u;if(null!=U.background&&Q.append(this.writeFillBrush(t,U.background,j)),this.checkPenGeom(U.borderPen)&&Q.append("fill:none;"),this.checkPenGeom(U.borderPen)){var q=String.stiFormat("{0}",this.writeBorderStroke(t,U.borderPen.brush,j));Q.append(String.stiFormat("{0}stroke-width:{1};",q,U.borderPen.thickness))}t.writeStartElement("rect"),String.isNullOrEmpty(D)||t.writeAttributeString("clip-path",String.stiFormat("url(#{0})",D)),t.writeAttributeString("x",(j.x+this.dx).toString()),t.writeAttributeString("y",(j.y+this.dy).toString()),t.writeAttributeString("width",j.width.toString()),t.writeAttributeString("height",j.height.toString()),t.writeAttributeString("style",Q.toString()),t.writeAttributeString("shape-rendering","crispEdges"),t.writeEndElement()}else if(_.sti_is(f)){var $=_.sti_as(f);if(this.checkPenGeom($.pen)){t.writeStartElement("line"),String.isNullOrEmpty(D)||t.writeAttributeString("clip-path",String.stiFormat("url(#{0})",D)),t.writeAttributeString("x1",($.x1+this.dx).toString()),t.writeAttributeString("y1",($.y1+this.dy).toString()),t.writeAttributeString("x2",($.x2+this.dx).toString()),t.writeAttributeString("y2",($.y2+this.dy).toString());var q=String.stiFormat("{0}",this.writeBorderStroke(t,$.pen.brush,new l)),Q=String.stiFormat("{0}stroke-width:{1};",q,$.pen.thickness);t.writeAttributeString("style",Q),$.pen.penStyle!=G.Solid&&t.writeAttributeString("stroke-dasharray",e.StiSvgHelper.getLineStyleDash($.pen.penStyle,$.pen.thickness)),t.writeEndElement()}}else if(_.sti_is(y)){var tt=_.sti_as(y);if(this.checkPenGeom(tt.pen)){t.writeStartElement("polyline"),String.isNullOrEmpty(D)||t.writeAttributeString("clip-path",String.stiFormat("url(#{0})",D));for(var et=new u,it=0,rt=tt.points;it<rt.length;it++){var nt=rt[it];et.appendFormat("{0},{1} ",(nt.x+this.dx).toString(),(nt.y+this.dy).toString())}t.writeAttributeString("fill","none"),t.writeAttributeString("points",et.toString());var q=String.stiFormat("{0}",this.writeBorderStroke(t,tt.pen.brush,new l)),Q=new u;Q.appendFormat("{0}stroke-width:{1};",q,tt.pen.thickness),t.writeAttributeString("style",Q.toString()),tt.pen.penStyle!=G.Solid&&t.writeAttributeString("stroke-dasharray",e.StiSvgHelper.getLineStyleDash(tt.pen.penStyle,tt.pen.thickness)),t.writeEndElement()}}else if(_.sti_is(I)){var ot=_.sti_as(I);if(this.checkPenGeom(ot.pen)){t.writeStartElement("path"),String.isNullOrEmpty(D)||t.writeAttributeString("clip-path",String.stiFormat("url(#{0})",D));var at=this.convertSplineToCubicBezier(ot.points,ot.tension),st=new u;st.appendFormat("M{0},{1} C",at[0].x+this.dx,at[0].y+this.dy);for(var lt=1;lt<at.length;lt++)st.appendFormat("{0},{1} ",at[lt].x+this.dx,at[lt].y+this.dy);t.writeAttributeString("d",st.toString()),t.writeAttributeString("fill","none");var q=String.stiFormat("{0}",this.writeBorderStroke(t,ot.pen.brush,new l)),Q=String.stiFormat("{0}stroke-width:{1};",q,ot.pen.thickness);t.writeAttributeString("style",Q),ot.pen.penStyle!=G.Solid&&t.writeAttributeString("stroke-dasharray",e.StiSvgHelper.getLineStyleDash(ot.pen.penStyle,ot.pen.thickness)),t.writeEndElement()}}else if(_.sti_is(A)){var ut=_.sti_as(A),j=ut.rect.sti_as(l),Q="";if(Q=null!=ut.background?this.writeFillBrush(t,ut.background,j):"fill-opacity:0;",this.checkPenGeom(ut.borderPen)){var q=String.stiFormat("{0}",this.writeBorderStroke(t,ut.borderPen.brush,j));Q+=String.stiFormat("{0}stroke-width:{1};",q,ut.borderPen.thickness)}t.writeStartElement("ellipse"),String.isNullOrEmpty(D)||t.writeAttributeString("clip-path",String.stiFormat("url(#{0})",D)),t.writeAttributeString("cx",(j.x+this.dx+j.width/2).toString()),t.writeAttributeString("cy",(j.y+this.dy+j.height/2).toString()),t.writeAttributeString("rx",(j.width/2).toString()),t.writeAttributeString("ry",(j.height/2).toString()),t.writeAttributeString("style",Q),t.writeEndElement()}else if(_.sti_is(w)){var ct=_.sti_as(w),j=ct.rect;j.x+=2,j.y+=2;var K="s"+V.newGuid();t.writeStartElement("defs"),t.writeStartElement("filter"),t.writeAttributeString("id",K),t.writeStartElement("feGaussianBlur"),t.writeAttributeString("in","SourceGraphic"),t.writeAttributeString("stdDeviation","2"),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("rect"),t.writeAttributeString("x",(j.x+this.dx).toString().replaceAll(",",".")),t.writeAttributeString("y",(j.y+this.dy).toString().replaceAll(",",".")),t.writeAttributeString("width",j.width.toString().replaceAll(",",".")),t.writeAttributeString("height",j.height.toString().replaceAll(",",".")),t.writeAttributeString("fill","rgba(190,190,190,10)"),t.writeAttributeString("filter","url(#"+K+")"),t.writeEndElement()}else if(_.sti_is(T))var ct=_.sti_as(T);else if(_.sti_is(B)){var pt=_.sti_as(B);"Stimulsoft"==pt.font.fontName&&this.writeStimulsoftIconFont();var ht=new W(pt.font.fontName,pt.font.fontSize,pt.font.fontStyle,pt.font.unit),gt=new c;gt.alignment=pt.stringFormat.alignment,gt.formatFlags=pt.stringFormat.formatFlags,gt.hotkeyPrefix=pt.stringFormat.hotkeyPrefix,gt.lineAlignment=pt.stringFormat.lineAlignment,gt.trimming=pt.stringFormat.trimming;var mt=new M;if(0!=pt.angle||pt.location.sti_is(M)||pt.isRotatedText)if(pt.location.sti_is(M))mt=pt.location.sti_as(M);else{var j=pt.location.sti_as(l);mt=new M(j.x+j.width/2,j.y+j.height/2)}else{var dt=pt.location.sti_as(l);mt=new M(dt.x,dt.y)}var Q=new u,St=4*ht.size/3;switch(t.writeStartElement("text"),pt.rotationMode){case p.LeftCenter:t.writeAttributeString("dy","0.5em");break;case p.LeftBottom:break;case p.CenterTop:Q.appendFormat("text-anchor:{0};","middle"),t.writeAttributeString("dy","1em");break;case p.CenterCenter:Q.appendFormat("text-anchor:{0};","middle"),t.writeAttributeString("dy","0.5em");break;case p.CenterBottom:Q.appendFormat("text-anchor:{0};","middle");break;case p.RightTop:Q.appendFormat("text-anchor:{0};","end"),t.writeAttributeString("dy","1em");break;case p.RightCenter:Q.appendFormat("text-anchor:{0};","end"),t.writeAttributeString("dy","0.5em");break;case p.RightBottom:Q.appendFormat("text-anchor:{0};","end");break;default:t.writeAttributeString("dy","1em");break}t.writeAttributeString("transform",String.stiFormat("translate({0}, {1}) rotate({2} 0,0)",(mt.x+this.dx).toString(),(mt.y+this.dy).toString(),pt.angle)),t.writeAttributeString("font-size",St.toString()),t.writeAttributeString("font-family",ht.fontFamily.name),(ht.style&J.Bold)>0&&t.writeAttributeString("font-weight","bold"),(ht.style&J.Italic)>0&&t.writeAttributeString("font-style","italic");var ft="";(ht.style&J.Underline)>0&&(ft+="underline"),(ht.style&J.Strikeout)>0&&(ft+="line-through"),String.isNullOrEmpty(ft)||t.writeAttributeString("text-decoration",ft);var yt=Z.toColor(pt.brush.sti_as(Z));if(Q.append(String.stiFormat("fill:#{0:X2}{1:X2}{2:X2};",yt.r,yt.g,yt.b)),255!=yt.a&&Q.append(String.stiFormat("fill-opacity:{0}",Math.round(yt.a/255,3).toString().replaceAll(",","."))),t.writeAttributeString("style",Q.toString()),0!=pt.maximalWidth&&null!=pt.maximalWidth){for(var bt=pt.text.length,Ct=bt,vt=new X(0,0),It=0;It<bt;It++)if(vt=P.measureString(pt.text.substring(0,It),pt.font),vt.width>pt.maximalWidth&&0!=It){Ct=It-1;break}var At=Math.ceil(bt/Ct),wt=0;switch(pt.rotationMode){case p.LeftCenter:case p.CenterCenter:case p.RightCenter:wt=-At*vt.height/2+vt.height/2;break;default:wt=0;break}if(Ct>0){var Tt=0,Bt=0;while(Tt<bt)t.writeStartElement("tspan"),t.writeAttributeString("x","0"),0==Bt?t.writeAttributeString("y",wt.toString()):t.writeAttributeString("dy",vt.height.toString()),t.writeString(pt.text.substr(Tt,Ct)),t.writeEndElement(),Tt+=Ct,Bt++}}else t.writeString(pt.text);t.writeEndElement()}else if(_.sti_is(R)){var Rt=_.sti_as(R),Q="",Pt="";if(Q=null!=Rt.background?this.writeFillBrush(t,Rt.background,Rt.rect):"fill-opacity:0;",this.checkPenGeom(Rt.pen)){var q=String.stiFormat("{0}",this.writeBorderStroke(t,Rt.pen.brush,Rt.rect));Q+=String.stiFormat("{0}stroke-width:{1};",q,Rt.pen.thickness)}var Ft=this.getPathData(Rt.geoms);t.writeStartElement("path"),String.isNullOrEmpty(D)||t.writeAttributeString("clip-path",String.stiFormat("url(#{0})",D)),t.writeAttributeString("d",Ft),t.writeAttributeString("style",Q),t.writeEndElement()}}t.writeEndElement()},t.getPathData=function(t){for(var e="",i=0,r=0,n=t;r<n.length;r++){var o=n[r];if(o.sti_is(F)){var a=o.sti_as(F);e+=this.addArcPath(a,e)}else if(o.sti_is(k)){for(var s=o.sti_as(k),l=H.cardinalSpline(s.points,!1),c=new u,p=1;p<l.length;p+=3)1==p?c.appendFormat("C{0},{1},{2},{3},{4},{5}",l[p].x+this.dx,l[p].y+this.dy,l[p+1].x+this.dx,l[p+1].y+this.dy,l[p+2].x+this.dx,l[p+2].y+this.dy):c.appendFormat(",{0},{1},{2},{3},{4},{5}",l[p].x+this.dx,l[p].y+this.dy,l[p+1].x+this.dx,l[p+1].y+this.dy,l[p+2].x+this.dx,l[p+2].y+this.dy);e+=c}else if(o.sti_is(x)){var h=o.sti_as(x),c=new u;e.startsWith("M")||c.appendFormat("M{0},{1}",h.x1+this.dx,h.y1+this.dy),c.appendFormat("L{0},{1}",h.x2+this.dx,h.y2+this.dy),e+=c}else if(o.sti_is(D)){var g=o.sti_as(D),c=new u;e.startsWith("M")||c.appendFormat("M{0},{1}",g.points[0].x+this.dx,g.points[0].y+this.dy);for(var p=0;p<g.points.length;p++)0==p?c.appendFormat("L{0},{1}",g.points[p].x+this.dx,g.points[p].y+this.dy):c.appendFormat(",{0},{1}",g.points[p].x+this.dx,g.points[p].y+this.dy);e+=c}else if(o.sti_is(P)){var m=o.sti_as(P);e+=this.addPiePath(m,e)}else o.sti_is(E);i++}return e},t.addArcPath=function(t,e){var i=new u,r=t.rect.x+this.dx+t.rect.width/2,n=t.rect.y+this.dy+t.rect.height/2,o=t.rect.width/2,a=t.startAngle*Math.PI/180,s=r+o*Math.cos(a),l=n+o*Math.sin(a);e.startsWith("M")||i.appendFormat("M{0},{1}",s,l);var c=this.round(Math.abs(t.sweepAngle/90)),p=t.sweepAngle/c;a=t.startAngle;for(var h=0;h<c;h++){var g=this.convertArcToCubicBezier(t.rect,a,p);0==h?i.appendFormat("C{0},{1},{2},{3},{4},{5}",g[1].x+this.dx,g[1].y+this.dy,g[2].x+this.dx,g[2].y+this.dy,g[3].x+this.dx,g[3].y+this.dy):i.appendFormat(",{0},{1},{2},{3},{4},{5}",g[1].x+this.dx,g[1].y+this.dy,g[2].x+this.dx,g[2].y+this.dy,g[3].x+this.dx,g[3].y+this.dy),a+=p}return i.toString()},t.round=function(t){var e=Math.round(t);return t-e>0?e+1:e},t.addPiePath=function(t,e){var i=new u,r=t.rect.x+this.dx+t.rect.width/2,n=t.rect.y+this.dy+t.rect.height/2,o=t.rect.width/2,a=t.startAngle*Math.PI/180,s=r+o*Math.cos(a),l=n+o*Math.sin(a);i.appendFormat("M{0},{1}",r,n),i.appendFormat("L{0},{1}",s,l);var c=this.round(Math.abs(t.sweepAngle/90)),p=t.sweepAngle/c;a=t.startAngle;for(var h=0;h<c;h++){for(var g=this.convertArcToCubicBezier(t.rect,a,p),m=1;m<g.length-1;m+=3)1==m?i.appendFormat("C{0},{1},{2},{3},{4},{5}",g[m].x+this.dx,g[m].y+this.dy,g[m+1].x+this.dx,g[m+1].y+this.dy,g[m+2].x+this.dx,g[m+2].y+this.dy):i.appendFormat(",{0},{1},{2},{3},{4},{5}",g[m].x+this.dx,g[m].y+this.dy,g[m+1].x+this.dx,g[m+1].y+this.dy,g[m+2].x+this.dx,g[m+2].y+this.dy);a+=p}return i.appendFormat("L{0},{1}",r,n),i.toString()},t.convertArcToCubicBezier=function(t,e,i){var r=t.x+t.width/2,n=t.y+t.height/2,o=Math.min(t.width/2,t.height/2),a=e*Math.PI/180,s=i*Math.PI/180,l=(e+i)*Math.PI/180,u=r+o*Math.cos(a),c=n+o*Math.sin(a),p=r+o*Math.cos(l),h=n+o*Math.sin(l),g=4*o/3*Math.tan(.25*s),m=Math.atan(g/o),d=o/Math.cos(m);m+=a;var S=r+d*Math.cos(m),f=n+d*Math.sin(m);m=Math.atan(-g/o),m+=l;var y=r+d*Math.cos(m),b=n+d*Math.sin(m),C=Array.create(M,4);return C[0]=new M(u,c),C[1]=new M(S,f),C[2]=new M(y,b),C[3]=new M(p,h),C},t.writeFillBrush=function(t,e,i){if(e.sti_is(n)){var r=e.sti_as(n);return String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",r.r,r.g,r.b,Math.round(r.a/255,3))}if(e.sti_is(_)||e.sti_is(L)||e.sti_is(N)||e.sti_is(O)){var o=this.writeBrush(t,e,i);return String.stiFormat("fill:url(#{0});",o)}if(e.sti_is(Z)){var r=Z.toColor(e.sti_as(Z));return String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",r.r,r.g,r.b,Math.round(r.a/255,3))}return"fill-opacity:0;"},t.writeBorderStroke=function(t,e,i){if(e.sti_is(n)){var r=e.sti_as(n),o=String.stiFormat("stroke:rgb({0},{1},{2});",r.r,r.g,r.b),a=Math.round(r.a/255,3);return 1!=a&&(o+=String.stiFormat("stroke-opacity:{0};",a)),o}if(e.sti_is(_)){var s=this.writeBrush(t,e,i);return String.stiFormat("stroke:url(#{0})",s)}if(e.sti_is(Z)){var r=Z.toColor(e.sti_as(Z)),o=String.stiFormat("stroke:rgb({0},{1},{2})",r.r,r.g,r.b),a=Math.round(r.a/255,3);1!=a&&(o+=String.stiFormat(";stroke-opacity:{0}",a))}return"stroke-opacity:0"},t.convertSplineToCubicBezier=function(t,e){var i=t.length,r=3*i-2,n=[];e*=.3,n[0]=t[0],n[1]=this.calculateCurveBezierEndPoints(t[0],t[1],e);for(var o=0;o<i-2;o++){var a=this.calculateCurveBezier(t,o,e);n[3*o+2]=a[0],n[3*o+3]=t[o+1],n[3*o+4]=a[1]}return n[r-2]=this.calculateCurveBezierEndPoints(t[i-1],t[i-2],e),n[r-1]=t[i-1],n},t.calculateCurveBezier=function(t,e,i){var r=t[e+2].x-t[e+0].x,n=t[e+2].y-t[e+0].y,o=[];return o[0]=new M(t[e+1].x-i*r,t[e+1].y-i*n),o[1]=new M(t[e+1].x+i*r,t[e+1].y+i*n),o},t.calculateCurveBezierEndPoints=function(t,e,i){return new M(i*(e.x-t.x)+t.x,i*(e.y-t.y)+t.y)},t.writeBrush=function(t,i,r){var n="";return i.sti_is(L)?n=e.StiBrushSvgHelper.writeGlareBrush(t,i,r):i.sti_is(_)?n=e.StiBrushSvgHelper.writeGradientBrush(t,i,r):i.sti_is(N)?n=e.StiBrushSvgHelper.writeHatchBrush(t,i):i.sti_is(O)&&(n=e.StiBrushSvgHelper.writeGlassBrush(t,i,r)),n},t.checkPenGeom=function(t){return!(null==t||null==t.brush||t.penStyle==G.None)},t.isAddStimulsoftIconFont=!1,t.dx=0,t.dy=0,t.listTransformGeom=[],t}();e.StiChartSvgHelper=K}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Gauge.GaugeGeoms.StiPieGaugeGeom,r=t.Report.Gauge.GaugeGeoms.StiEllipseGaugeGeom,n=t.Report.Gauge.GaugeGeoms.StiGraphicsArcGeometryGaugeGeom,o=t.Report.Gauge.GaugeGeoms.StiPopTranformGaugeGeom,a=t.Report.Gauge.GaugeGeoms.StiPushMatrixGaugeGeom,s=t.Report.Gauge.GaugeGeoms.StiRadialRangeGaugeGeom,l=t.Report.Gauge.GaugeGeoms.StiRectangleGaugeGeom,u=t.Report.Gauge.GaugeGeoms.StiRoundedRectangleGaugeGeom,c=t.Report.Gauge.GaugeGeoms.StiTextGaugeGeom,p=t.System.Drawing.Font,h=t.System.Drawing.Graphics,g=function(){function t(t,e,i){this.geoms=[],this.gauge=t,this.rect=e,this.zoom=i}return t.changeFontSize=function(t,e){var i=t.size*e;return i<1&&(i=1),new p(t.fontFamily.name,i,t.style,t.unit)},t.prototype.measureString=function(t,e){return h.measureString(t,e)},t.prototype.addPieGaugeGeom=function(t,e,r,n,o,a){t.width>0&&t.height>0&&this.geoms.add(new i(t,e,r,n,o,a))},t.prototype.addEllipseGaugeGeom=function(t,e,i,n){t.width>0&&t.height>0&&this.geoms.add(new r(t,e,i,n))},t.prototype.addGraphicsArcGeometryGaugeGeom=function(t,e,i,r,o,a,s,l){t.width>0&&t.height>0&&this.geoms.add(new n(t,e,i,r,o,a,s,l))},t.prototype.addPopTranformGaugeGeom=function(){this.geoms.add(new o)},t.prototype.addPushMatrixGaugeGeom=function(t,e){this.geoms.add(new a(t,e))},t.prototype.addRadialRangeGaugeGeom=function(t,e,i,r,n,o,a,l,u,c,p){t.width>0&&t.height>0&&this.geoms.add(new s(t,e,i,r,n,o,a,l,u,c,p))},t.prototype.addRectangleGaugeGeom=function(t,e,i,r){t.width>0&&t.height>0&&this.geoms.add(new l(t,e,i,r))},t.prototype.addRoundedRectangleGaugeGeom=function(t,e,i,r,n,o,a,s){t.width>0&&t.height>0&&this.geoms.add(new u(t,e,i,r,n,o,a,s))},t.prototype.addTextGaugeGeom=function(t,e,i,r,n){r.width>0&&r.height>0&&this.geoms.add(new c(t,e,i,r,n))},t.prototype.addGraphicsPathGaugeGeom=function(t){t.rect.width>0&&t.rect.height>0&&this.geoms.add(t)},t.prototype.render=function(){},t}();e.StiGaugeContextPainter=g}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=t.Base.Context.Animation.StiScaleAnimation,n=t.Base.Context.Animation.StiRotationAnimation,o=t.Base.Context.Animation.StiTranslationAnimation,a=t.Base.Drawing.StiSolidBrush,s=t.Base.Drawing.StiGradientBrush,l=t.Base.Drawing.StiGlassBrush,u=t.Base.Drawing.StiGlareBrush,c=t.Base.Drawing.StiHatchBrush,p=t.Report.Gauge.GaugeGeoms.StiGraphicsPathArcGaugeGeom,h=t.Base.Drawing.StiBrush,g=t.System.Drawing.Color,m=t.System.Drawing.Font,d=t.Report.Gauge.GaugeGeoms.StiGraphicsArcGeometryGaugeGeom,S=t.Report.Gauge.StiGaugeGeomType,f=t.Report.Gauge.GaugeGeoms.StiPopTranformGaugeGeom,y=t.Report.Gauge.GaugeGeoms.StiPushMatrixGaugeGeom,b=t.System.Drawing.Point,C=t.Report.Painters.StiGaugeContextPainter,v=t.System.Drawing.Rectangle,I=function(){function t(){}return t.addAnimation=function(t,e,i,r){},t.writeGauge=function(t,e,a,s){void 0===a&&(a=1),void 0===s&&(s=!1);var l=e.component,u=new C(l,new v(0,0,e.width,e.height),a);u.gauge=l,u.rect=new v(e.x,e.y,e.width,e.height),u.zoom=a,u.geoms.clear();var c=l.report;l.drawGauge(u),u.render();var p=0;t.writeStartElement("g"),t.writeAttributeString("transform",String.stiFormat("translate({0},{1})",(e.x+.5).toString().replaceAll(",","."),(e.y+.5).toString().replaceAll(",",".")));for(var g=0,d=u.geoms;g<d.length;g++){var I=d[g];if(I.sti_is(y)){var A=I;t.writeStartElement("g"),t.writeAttributeString("transform",String.stiFormat("rotate({2}, {0}, {1})",A.centerPoint.x.toString().replaceAll(",","."),A.centerPoint.y.toString().replaceAll(",","."),A.angle.toString().replaceAll(",",".")))}else if(I.sti_is(f))t.writeEndElement();else if(I.type==S.RoundedRectangle){var w=I,T=this.rectToRectangle(w.rect),B="";null!=w.background?B+=this.writeFillBrush(t,w.background,T):B+="fill-opacity:0;";var R=String.stiFormat("{0}",this.writeBorderStroke(t,w.borderBrush,T));B+=String.stiFormat("{0};stroke-width:{1};",R,w.borderWidth),t.writeStartElement("rect"),t.writeAttributeString("x",T.x.toString().replaceAll(",",".")),t.writeAttributeString("y",T.y.toString().replaceAll(",",".")),t.writeAttributeString("ry",w.leftTop.toString().replaceAll(",",".")),t.writeAttributeString("rx",w.leftTop.toString().replaceAll(",",".")),t.writeAttributeString("height",T.height.toString().replaceAll(",",".")),t.writeAttributeString("width",T.width.toString().replaceAll(",",".")),t.writeAttributeString("shape-rendering","crispEdges"),t.writeAttributeString("style",B),t.writeEndElement()}else if(I.type==S.Rectangle){var w=I,T=this.rectToRectangle(w.rect),B="";null!=w.background?B+=this.writeFillBrush(t,w.background,T):B+="fill-opacity:0;";var R=String.stiFormat("{0}",this.writeBorderStroke(t,w.borderBrush,T));B+=String.stiFormat("{0};stroke-width:{1};",R,w.borderWidth),t.writeStartElement("rect"),t.writeAttributeString("x",T.x.toString().replaceAll(",",".")),t.writeAttributeString("y",T.y.toString().replaceAll(",",".")),t.writeAttributeString("height",(T.height+1).toString().replaceAll(",",".")),t.writeAttributeString("width",(T.width+1).toString().replaceAll(",",".")),t.writeAttributeString("shape-rendering","crispEdges"),t.writeAttributeString("style",B.toString()),t.writeEndElement()}else if(I.type==S.GraphicsPath){var w=I,T=this.rectToRectangle(w.rect),B="",P="";B=null!=w.background?this.writeFillBrush(t,w.background,T):"fill-opacity:0;";var R=String.stiFormat("{0}",this.writeBorderStroke(t,w.borderBrush,T));B+=String.stiFormat("{0};stroke-width:{1};",R,w.borderWidth.toString().replaceAll(",","."));var F=this.getPathData(w.geoms,w.startPoint);if(t.writeStartElement("path"),t.writeAttributeString("d",F),t.writeAttributeString("style",B),null!=w.animation)if(w.animation.sti_is(o)){var x=w.animation;if(x.startPoint.x!=x.endPoint.x){var D=(x.startPoint.x-x.endPoint.x).toString().replaceAll(",",".");this.addAnimation(t,String.stiFormat('[["transform", {0}, 0,",0)", "translate("]]',D),x.beginTime,x.duration),t.writeAttributeString("transform",String.stiFormat("translate({0}, 0)",D))}else{var k=(x.startPoint.y-x.endPoint.y).toString().replaceAll(",",".");this.addAnimation(t,String.stiFormat('[["transform", {0}, 0,")", "translate(0,"]]',k),x.beginTime,x.duration),t.writeAttributeString("transform",String.stiFormat("translate(0, {0})",k))}}else if(w.animation.sti_is(n)){var E=w.animation;t.writeAttributeString("transform",String.stiFormat("rotate({0}, {1}, {2})",E.startAngle.toString().replaceAll(",","."),E.centerPoint.x.toString().replaceAll(",","."),E.centerPoint.y.toString().replaceAll(",","."))),this.addAnimation(t,String.stiFormat('[["transform", {0}, {1},", {2}, {3})", "rotate("]]',E.startAngle.toString().replaceAll(",","."),E.endAngle.toString().replaceAll(",","."),E.centerPoint.x.toString().replaceAll(",","."),E.centerPoint.y.toString().replaceAll(",",".")),E.beginTime,E.duration)}else if(w.animation.sti_is(r)){t.writeAttributeString("opacity","0");var G=w.animation;this.addAnimation(t,String.stiFormat('[["scaleCenter", {0}, {1}, {2}, {3}, {4}, {5}]]',G.startScaleX.toString().replaceAll(",","."),G.endScaleX.toString().replaceAll(",","."),G.startScaleY.toString().replaceAll(",","."),G.endScaleY.toString().replaceAll(",","."),(Math.abs(G.centerX-w.startPoint.x)>Math.abs(.15*G.centerX)).toString().toLower(),(Math.abs(G.centerY-w.startPoint.y)>Math.abs(.15*G.centerY)).toString().toLower()),G.beginTime,G.duration)}t.writeEndElement()}else if(I.type==S.Pie){var w=I,T=this.rectToRectangle(w.rect),B="",P="";B=null!=w.background?this.writeFillBrush(t,w.background,T):"fill-opacity:0;";var R=String.stiFormat("{0}",this.writeBorderStroke(t,w.borderBrush,T));B+=String.stiFormat("{0};stroke-width:{1};",R,w.borderWidth.toString().replaceAll(",","."));var F=this.addPiePath(w,"");t.writeStartElement("path"),t.writeAttributeString("d",F),t.writeAttributeString("style",B),t.writeEndElement()}else if(I.type==S.Ellipse){var _=I,T=this.rectToRectangle(_.rect),B="",P="";B=null!=_.background?this.writeFillBrush(t,_.background,T):"fill-opacity:0;";var R=String.stiFormat("{0}",this.writeBorderStroke(t,_.borderBrush,T));B+=String.stiFormat("{0};stroke-width:{1};",R,_.borderWidth.toString().replaceAll(",",".")),t.writeStartElement("ellipse"),t.writeAttributeString("cx",(T.x+T.width/2).toString().replaceAll(",",".")),t.writeAttributeString("cy",(T.y+T.height/2).toString().replaceAll(",",".")),t.writeAttributeString("rx",(T.width/2).toString().replaceAll(",",".")),t.writeAttributeString("ry",(T.height/2).toString().replaceAll(",",".")),t.writeAttributeString("style",B),t.writeEndElement()}else if(I.type==S.GraphicsArcGeometry){var w=I,B="",P="",T=this.rectToRectangle(w.rect);B=null!=w.background?this.writeFillBrush(t,w.background,T):"fill-opacity:0;";var R=String.stiFormat("{0}",this.writeBorderStroke(t,w.borderBrush,T));B+=String.stiFormat("{0};stroke-width:{1};",R,w.borderWidth.toString().replaceAll(",","."));var F=this.addArcPath(w,"");t.writeStartElement("path"),t.writeAttributeString("d",F),t.writeAttributeString("style",B),t.writeEndElement()}else if(I.type==S.Text){var L=I,N=new m(L.font.name,L.font.size,L.font.style,L.font.unit),O=new b,T=this.rectToRectangle(L.rect);O=new b(T.x,T.y);var B=new i,Z=4*N.size/3;t.writeStartElement("text"),B.appendFormat("text-anchor:{0};","middle"),t.writeAttributeString("dy","0.9em"),t.writeAttributeString("dx",String.stiFormat("{0}em",(.3*L.text.length).toString().replaceAll(",","."))),t.writeAttributeString("transform",String.stiFormat("translate({0}, {1}) ",O.x.toString().replaceAll(",","."),O.y.toString().replaceAll(",","."))),t.writeAttributeString("font-size",Z.toString().replaceAll(",",".")),t.writeAttributeString("font-family",N.fontFamily.name);var M=h.toColor(L.foreground);B.append(String.stiFormat("fill:#{0:X2}{1:X2}{2:X2};",M.r,M.g,M.b)),255!=M.a&&B.append(String.stiFormat("fill-opacity:{0}",Math.round(M.a/255,3).toString().replaceAll(",","."))),t.writeAttributeString("style",B.toString()),t.writeString(L.text),t.writeEndElement()}else if(I.type==S.RadialRange){var w=I,H=w.startAngle*this.PiDiv180,W=new i,V=w.centerPoint,Y=V.x+w.radius1*Math.cos(H),j=V.y+w.radius1*Math.sin(H),X=new b(Y,j),J=Math.round(Math.abs(w.sweepAngle/10)),K=w.sweepAngle/J;H=w.startAngle;var U=w.radius1-w.radius2,z=1/J,Q=0;W.appendFormat("M{0},{1}",Y.toString().replaceAll(",","."),j.toString().replaceAll(",",".")),H=w.startAngle;var q=-1;while(++q<J){var $=w.radius1-U*Q,tt=w.radius1-U*(Q+z),et=this.convertArcToCubicBezier3(new b(V.x,V.y),$,tt,H,K);0==q?W.appendFormat(" C{0},{1},{2},{3},{4},{5}",et[1].x.toString().replaceAll(",","."),et[1].y.toString().replaceAll(",","."),et[2].x.toString().replaceAll(",","."),et[2].y.toString().replaceAll(",","."),et[3].x.toString().replaceAll(",","."),et[3].y.toString().replaceAll(",",".")):W.appendFormat(",{0},{1},{2},{3},{4},{5}",et[1].x.toString().replaceAll(",","."),et[1].y.toString().replaceAll(",","."),et[2].x.toString().replaceAll(",","."),et[2].y.toString().replaceAll(",","."),et[3].x.toString().replaceAll(",","."),et[3].y.toString().replaceAll(",",".")),H+=K,Q+=z,q==J-1&&(X=et[3])}for(K=w.sweepAngle/J,U=w.radius3-w.radius4,z=1/J,Q=J,H=w.startAngle+w.sweepAngle,q=0;q<J;q++){var $=w.radius3-U*Q,tt=w.radius3-U*(Q+z),et=this.convertArcToCubicBezier3(V,$,tt,H,-K);0==q?(W.appendFormat(" L{0},{1}",et[0].x.toString().replaceAll(",","."),et[0].y.toString().replaceAll(",",".")),W.appendFormat(" C{0},{1},{2},{3},{4},{5}",et[1].x.toString().replaceAll(",","."),et[1].y.toString().replaceAll(",","."),et[2].x.toString().replaceAll(",","."),et[2].y.toString().replaceAll(",","."),et[3].x.toString().replaceAll(",","."),et[3].y.toString().replaceAll(",","."))):W.appendFormat(",{0},{1},{2},{3},{4},{5}",et[1].x.toString().replaceAll(",","."),et[1].y.toString().replaceAll(",","."),et[2].x.toString().replaceAll(",","."),et[2].y.toString().replaceAll(",","."),et[3].x.toString().replaceAll(",","."),et[3].y.toString().replaceAll(",",".")),H-=K,Q-=z}W.appendFormat("z");var B="",P="",T=this.rectToRectangle(w.rect);B=null!=w.background?this.writeFillBrush(t,w.background,T):"fill-opacity:0;";var R=String.stiFormat("{0}",this.writeBorderStroke(t,w.borderBrush,T));B+=String.stiFormat("{0};stroke-width:{1};",R,w.borderWidth.toString().replaceAll(",",".")),t.writeStartElement("path"),t.writeAttributeString("d",W.toString()),t.writeAttributeString("style",B),t.writeEndElement()}}t.writeEndElement()},t.getPathData=function(t,e){for(var r=String.stiFormat("M{0},{1}",e.x.toString().replaceAll(",","."),e.y.toString().replaceAll(",",".")),n=0,o=0,a=t;o<a.length;o++){var s=a[o];if(s.type==S.GraphicsPathArc){var l=s;r+=this.getArcPath(new v(l.x,l.y,l.width,l.height),r,l.startAngle,l.sweepAngle,0==n)}else if(s.type==S.GraphicsPathLine){var u=s,c=new i;r.startsWith("M")||c.appendFormat("M{0},{1}",u.p2.x.toString().replaceAll(",","."),u.p2.y.toString().replaceAll(",",".")),c.appendFormat("L{0},{1}",u.p2.x.toString().replaceAll(",","."),u.p2.y.toString().replaceAll(",",".")),r+=c}else if(s.type==S.GraphicsPathLines){var p=s,c=new i;r.startsWith("M")||c.appendFormat("M{0},{1}",p.points[0].x.toString().replaceAll(",","."),p.points[0].y.toString().replaceAll(",","."));for(var h=0;h<p.points.length;h++)0==h?c.appendFormat("L{0},{1}",p.points[h].x.toString().replaceAll(",","."),p.points[h].y.toString().replaceAll(",",".")):c.appendFormat(",{0},{1}",p.points[h].x.toString().replaceAll(",","."),p.points[h].y.toString().replaceAll(",","."));r+=c}else s.type==S.GraphicsPathCloseFigure&&(r+="z");n++}return r},t.getArcPath=function(t,e,r,n,o){var a=!1,s=new i(e),l=new b(t.left+t.width/2,t.top+t.height/2),u=new b(l.x-t.width/2,l.y-t.height/2),c=new b(l.x,l.y-t.height/2),p=new b(l.x+t.width/2,l.y-t.height/2),h=new b(l.x+t.width/2,l.y),g=new b(l.x+t.width/2,l.y+t.height/2),m=new b(l.x,l.y+t.height/2),d=new b(l.x-t.width/2,l.y+t.height/2),S=new b(l.x-t.width/2,l.y);if(0==r?90==n?(o&&s.appendFormat("M{0},{1}",h.x.toString().replaceAll(",","."),h.y.toString().replaceAll(",",".")),s.appendFormat("Q{0},{1},{2},{3}",g.x.toString().replaceAll(",","."),g.y.toString().replaceAll(",","."),m.x.toString().replaceAll(",","."),m.y.toString().replaceAll(",",".")),a=!0):180==n&&(o&&s.appendFormat("M{0},{1}",h.x.toString().replaceAll(",","."),h.y.toString().replaceAll(",",".")),s.appendFormat("A{0},{1},90,1,1,{2},{3}",(t.height/2).toString().replaceAll(",","."),(t.width/2).toString().replaceAll(",","."),S.x.toString().replaceAll(",","."),S.y.toString().replaceAll(",",".")),a=!0):90==r?90==n?(o&&s.appendFormat("M{0},{1}",m.x.toString().replaceAll(",","."),m.y.toString().replaceAll(",",".")),s.appendFormat("Q{0},{1},{2},{3}",d.x.toString().replaceAll(",","."),d.y.toString().replaceAll(",","."),S.x.toString().replaceAll(",","."),S.y.toString().replaceAll(",",".")),a=!0):180==n&&(o&&s.appendFormat("M{0}, {1}",m.x.toString().replaceAll(",","."),m.y.toString().replaceAll(",",".")),s.appendFormat("A{0},{1},90,1,1,{2},{3}",(t.height/2).toString().replaceAll(",","."),(t.width/2).toString().replaceAll(",","."),c.x.toString().replaceAll(",","."),c.y.toString().replaceAll(",",".")),a=!0):180==r?90==n?(o&&s.appendFormat("M{0},{1}",S.x.toString().replaceAll(",","."),S.y.toString().replaceAll(",",".")),s.appendFormat("Q{0},{1},{2},{3}",u.x.toString().replaceAll(",","."),u.y.toString().replaceAll(",","."),c.x.toString().replaceAll(",","."),c.y.toString().replaceAll(",",".")),a=!0):180==n&&(o&&s.appendFormat("M{0},{1}",S.x.toString().replaceAll(",","."),S.y.toString().replaceAll(",",".")),s.appendFormat("A{0},{1},90,1,1,{2},{3}",(t.height/2).toString().replaceAll(",","."),(t.width/2).toString().replaceAll(",","."),h.x.toString().replaceAll(",","."),h.y.toString().replaceAll(",",".")),a=!0):270==r&&(90==n?(s.appendFormat("M{0},{1}",c.x.toString().replaceAll(",","."),c.y.toString().replaceAll(",",".")),s.appendFormat("Q{0},{1},{2},{3}",p.x.toString().replaceAll(",","."),p.y.toString().replaceAll(",","."),h.x.toString().replaceAll(",","."),h.y.toString().replaceAll(",",".")),a=!0):180==n&&(o&&s.appendFormat("M{0},{1}",c.x.toString().replaceAll(",","."),c.y.toString().replaceAll(",",".")),s.appendFormat("A{0},{1},90,1,1,{2},{3}",(t.height/2).toString().replaceAll(",","."),(t.width/2).toString().replaceAll(",","."),m.x.toString().replaceAll(",","."),m.y.toString().replaceAll(",",".")),a=!0)),!a){var f=Math.min(t.width/2,t.height/2),y=r*this.PiDiv180,C=l.x+f*Math.cos(y),v=l.y+f*Math.sin(y),I=new b(C,v),A=!1;0==s.length?s.appendFormat("M{0},{1}",I.x.toString().replaceAll(",","."),I.y.toString().replaceAll(",",".")):A=!0;var w=this.round(Math.abs(n/90)),T=n/w;y=r;var B=-1;while(++B<w){var R=this.convertArcToCubicBezier(l,f,y,T);A&&(s.appendFormat("M{0},{1}",R[0].x.toString().replaceAll(",","."),R[0].y.toString().replaceAll(",",".")),A=!1),s.appendFormat(" C{0},{1},{2},{3},{4},{5}",R[1].x.toString().replaceAll(",","."),R[1].y.toString().replaceAll(",","."),R[2].x.toString().replaceAll(",","."),R[2].y.toString().replaceAll(",","."),R[3].x.toString().replaceAll(",","."),R[3].y.toString().replaceAll(",",".")),I=R[3],y+=T}}return s.toString()},t.convertArcToCubicBezier=function(t,e,i,r){var n=i*this.PiDiv180,o=r*this.PiDiv180,a=n+o,s=t.x+e*Math.cos(n),l=t.y+e*Math.sin(n),u=t.x+e*Math.cos(a),c=t.y+e*Math.sin(a),p=e*this.FourDivThree*Math.tan(.25*o),h=Math.atan(p/e),g=e/Math.cos(h);h+=n;var m=t.x+g*Math.cos(h),d=t.y+g*Math.sin(h);h=Math.atan(-p/e),h+=a;var S=t.x+g*Math.cos(h),f=t.y+g*Math.sin(h);return[new b(s,l),new b(m,d),new b(S,f),new b(u,c)]},t.addArcPath=function(t,e){var r=t.sti_is(p)?t.x:t.rect.x,n=t.sti_is(p)?t.y:t.rect.y,o=t.sti_is(p)?t.width:t.rect.width,a=t.sti_is(p)?t.height:t.rect.height,s=(t.sti_is(p),t.startAngle),l=(t.sti_is(p),t.sweepAngle),u=new i,c=r+o/2,h=n+a/2,g=o/2,m=s*Math.PI/180,S=c+g*Math.cos(m),f=h+g*Math.sin(m);e.startsWith("M")||u.appendFormat("M{0},{1}",S.toString().replaceAll(",","."),f.toString().replaceAll(",","."));var y=this.round(Math.abs(l/10)),C=l/y;m=s;for(var I=new b(0,0),A=0;A<y;A++){var w=this.convertArcToCubicBezier2(new v(r,n,o,a),m,C);0==A?u.appendFormat(" C{0},{1},{2},{3},{4},{5}",w[1].x.toString().replaceAll(",","."),w[1].y.toString().replaceAll(",","."),w[2].x.toString().replaceAll(",","."),w[2].y.toString().replaceAll(",","."),w[3].x.toString().replaceAll(",","."),w[3].y.toString().replaceAll(",",".")):u.appendFormat(",{0},{1},{2},{3},{4},{5}",w[1].x.toString().replaceAll(",","."),w[1].y.toString().replaceAll(",","."),w[2].x.toString().replaceAll(",","."),w[2].y.toString().replaceAll(",","."),w[3].x.toString().replaceAll(",","."),w[3].y.toString().replaceAll(",",".")),m+=C,I=w[3]}if(t.sti_is(d)){var T=t;y=this.round(Math.abs(l/10)),C=l/y;var B=g-o*T.startWidth,R=g-o*T.endWidth;if(B<=0||R<=0)return null;var P=B-R,F=1/y,x=y;m=s+l;for(var A=0;A<y;A++){var D=B-P*x,k=B-P*(x+F),w=this.convertArcToCubicBezier3(new b(c,h),D,k,m,-C);0==A?(u.appendFormat(" L{0},{1}",w[0].x.toString().replaceAll(",","."),w[0].y.toString().replaceAll(",",".")),u.appendFormat(" C{0},{1},{2},{3},{4},{5}",w[1].x.toString().replaceAll(",","."),w[1].y.toString().replaceAll(",","."),w[2].x.toString().replaceAll(",","."),w[2].y.toString().replaceAll(",","."),w[3].x.toString().replaceAll(",","."),w[3].y.toString().replaceAll(",","."))):u.appendFormat(",{0},{1},{2},{3},{4},{5}",w[1].x.toString().replaceAll(",","."),w[1].y.toString().replaceAll(",","."),w[2].x.toString().replaceAll(",","."),w[2].y.toString().replaceAll(",","."),w[3].x.toString().replaceAll(",","."),w[3].y.toString().replaceAll(",",".")),m-=C,x-=F}u.appendFormat("z")}return u.toString()},t.addPiePath=function(t,e){var r=new i,n=t.rect.x+t.rect.width/2,o=t.rect.y+t.rect.height/2,a=t.rect.width/2,s=t.startAngle*Math.PI/180,l=n+a*Math.cos(s),u=o+a*Math.sin(s);r.appendFormat("M{0},{1}",n.toString().replaceAll(",","."),o.toString().replaceAll(",",".")),r.appendFormat("L{0},{1}",l.toString().replaceAll(",","."),u.toString().replaceAll(",","."));var c=this.round(Math.abs(t.sweepAngle/90)),p=t.sweepAngle/c;s=t.startAngle;for(var h=0;h<c;h++){for(var g=this.convertArcToCubicBezier2(t.rect,s,p),m=1;m<g.length-1;m+=3)1==m?r.appendFormat("C{0},{1},{2},{3},{4},{5}",g[m].x.toString().replaceAll(",","."),g[m].y.toString().replaceAll(",","."),g[m+1].x.toString().replaceAll(",","."),g[m+1].y.toString().replaceAll(",","."),g[m+2].x.toString().replaceAll(",","."),g[m+2].y.toString().replaceAll(",",".")):r.appendFormat(",{0},{1},{2},{3},{4},{5}",g[m].x.toString().replaceAll(",","."),g[m].y.toString().replaceAll(",","."),g[m+1].x.toString().replaceAll(",","."),g[m+1].y.toString().replaceAll(",","."),g[m+2].x.toString().replaceAll(",","."),g[m+2].y.toString().replaceAll(",","."));s+=p}return r.appendFormat("L{0},{1}",n.toString().replaceAll(",","."),o.toString().replaceAll(",",".")),r.toString()},t.convertArcToCubicBezier2=function(t,e,i){var r=t.x+t.width/2,n=t.y+t.height/2,o=Math.min(t.width/2,t.height/2),a=e*Math.PI/180,s=i*Math.PI/180,l=(e+i)*Math.PI/180,u=r+o*Math.cos(a),c=n+o*Math.sin(a),p=r+o*Math.cos(l),h=n+o*Math.sin(l),g=4*o/3*Math.tan(.25*s),m=Math.atan(g/o),d=o/Math.cos(m);m+=a;var S=r+d*Math.cos(m),f=n+d*Math.sin(m);m=Math.atan(-g/o),m+=l;var y=r+d*Math.cos(m),C=n+d*Math.sin(m);return[new b(u,c),new b(S,f),new b(y,C),new b(p,h)]},t.convertArcToCubicBezier3=function(t,e,i,r,n){var o=r*this.PiDiv180,a=n*this.PiDiv180,s=o+a,l=t.x+e*Math.cos(o),u=t.y+e*Math.sin(o),c=t.x+i*Math.cos(s),p=t.y+i*Math.sin(s),h=(e-i)/3;e-=h,i+=h;var g=e*this.FourDivThree*Math.tan(.25*a),m=Math.atan(g/e),d=e/Math.cos(m);m+=o;var S=t.x+d*Math.cos(m),f=t.y+d*Math.sin(m);m=Math.atan(-g/e),m+=s;var y=t.x+d*Math.cos(m),C=t.y+d*Math.sin(m);return[new b(l,u),new b(S,f),new b(y,C),new b(c,p)]},t.round=function(t){var e=Math.trunc(t);return t-e>0?e+1:e},t.calculateCurveBezier=function(t,e,i){var r=t[e+2].x-t[e+0].x,n=t[e+2].y-t[e+0].y;return[new b(t[e+1].x-i*r,t[e+1].y-i*n),new b(t[e+1].x+i*r,t[e+1].y+i*n)]},t.calculateCurveBezierEndPoints=function(t,e,i){return new b(i*(e.x-t.x)+t.x,i*(e.y-t.y)+t.y)},t.writeFillBrush=function(t,i,r){if(i.sti_is(g)){var n=i;return String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",n.r,n.g,n.b,Math.round(n.a/255,3).toString().replaceAll(",","."))}if(i.sti_is(s)){var o=e.StiBrushSvgHelper.writeGradientBrush(t,i,r);return String.stiFormat("fill:url(#{0});",o)}if(i.sti_is(u)){var o=e.StiBrushSvgHelper.writeGlareBrush(t,i,r);return String.stiFormat("fill:url(#{0});",o)}if(i.sti_is(l)){var o=e.StiBrushSvgHelper.writeGlassBrush(t,i,r);return String.stiFormat("fill:url(#{0});",o)}if(i.sti_is(c)){var o=e.StiBrushSvgHelper.writeHatchBrush(t,i);return String.stiFormat("fill:url(#{0});",o)}if(i.sti_is(h)){var n=h.toColor(i);return String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",n.r,n.g,n.b,Math.round(n.a/255,3).toString().replaceAll(",","."))}return"fill-opacity:0;"},t.writeBorderStroke=function(t,i,r){if(i.sti_is(g)){var n=i,o=String.stiFormat("stroke:rgb({0},{1},{2});",n.r,n.g,n.b),p=Math.round(n.a/255,3);return 1!=p&&(o+=String.stiFormat("stroke-opacity:{0};",p.toString().replaceAll(",","."))),o}if(i.sti_is(a)){var m=i,o=String.stiFormat("stroke:rgb({0},{1},{2});",m.color.r,m.color.g,m.color.b),p=Math.round(m.color.a/255,3);return 1!=p&&(o+=String.stiFormat("stroke-opacity:{0};",p.toString().replaceAll(",","."))),o}if(i.sti_is(s)){var d=e.StiBrushSvgHelper.writeGradientBrush(t,i,r);return String.stiFormat("fill:url(#{0});",d)}if(i.sti_is(u)){var d=e.StiBrushSvgHelper.writeGlareBrush(t,i,r);return String.stiFormat("fill:url(#{0});",d)}if(i.sti_is(l)){var d=e.StiBrushSvgHelper.writeGlassBrush(t,i,r);return String.stiFormat("fill:url(#{0});",d)}if(i.sti_is(c)){var d=e.StiBrushSvgHelper.writeHatchBrush(t,i);return String.stiFormat("fill:url(#{0});",d)}if(i.sti_is(h)){var n=h.toColor(i),o=String.stiFormat("stroke:rgb({0},{1},{2})",n.r,n.g,n.b),p=Math.round(n.a/255,3);1!=p&&(o+=String.stiFormat(";stroke-opacity:{0}",p.toString().replaceAll(",",".")))}return"stroke-opacity:0"},t.rectToRectangle=function(t){if(t.sti_is(v))return t;return new v},t.PiDiv180=Math.PI/180,t.FourDivThree=4/3,t}();e.StiGaugeSvgHelper=I}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Color,n=t.System.Drawing.ColorTranslator,o=function(t){function i(e,i,o){void 0===e&&(e=""),void 0===i&&(i=""),void 0===o&&(o=null);var a=t.call(this,e,i,o)||this;return a._colors=[n.fromHtml("#70ad47"),n.fromHtml("#4472c4"),n.fromHtml("#ffc000"),n.fromHtml("#43682b"),n.fromHtml("#fd6a37"),n.fromHtml("#997300")],a._heatmapColors=[n.fromHtml("#70ad47"),n.fromHtml("#ffc000")],a._defaultColor=n.fromHtml("#4472c4"),a._backColor=n.fromHtml("#ffffff"),a._foreColor=n.fromHtml("#ffffff"),a._borderSize=.5,a._borderColor=r.white,a}return __extends(i,t),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiMapStyle},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colors",{get:function(){return this._colors},set:function(t){this._colors=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"heatmapColors",{get:function(){return this._heatmapColors},set:function(t){this._heatmapColors=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultColor",{get:function(){return this._defaultColor},set:function(t){this._defaultColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backColor",{get:function(){return this._backColor},set:function(t){this._backColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"foreColor",{get:function(){return this._foreColor},set:function(t){this._foreColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"borderSize",{get:function(){return this._borderSize},set:function(t){this._borderSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"borderColor",{get:function(){return this._borderColor},set:function(t){this._borderColor=t},enumerable:!0,configurable:!0}),i.prototype.getStyleFromComponent=function(t,e){},i.prototype.setStyleToComponent=function(t){},i}(i.StiBaseStyle);i.StiMapStyle=o}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Styles.StiMapStyle,n=t.System.Drawing.Rectangle,o=t.Base.Localization.StiLocalization,a=t.System.Drawing.Color,s=t.Base.Drawing.StiSolidBrush,l=t.Base.Drawing.StiBorder,u=t.Report.Dictionary.StiBusinessObjectHelper,c=t.Report.Components.StiComponent,p=t.Report.Components.IStiBorder,h=t.Report.Components.IStiBrush,g=t.Report.Components.IStiDataSource,m=t.Report.Components.IStiBusinessObject,d=t.Base.StiJsonReportObjectHelper,S=t.System.Enum,f=function(c){function f(t){void 0===t&&(t=n.empty);var e=c.call(this,t)||this;return e._dataSourceName=String.empty,e._businessObjectGuid=String.empty,e._countData=0,e.isEofValue=!1,e.isBofValue=!1,e.isCacheValues=!1,e.cachedCount=0,e.cachedIsBusinessObjectEmpty=!1,e.cachedIsDataSourceEmpty=!1,e.cachedDataSource=null,e.cachedBusinessObject=null,e._border=new l,e._brush=new s(a.transparent),e._mapStyle=i.StiMapStyleIdent.Style25,e._stretch=!0,e._showValue=!1,e._mapID=i.StiMapID.USA,e._showLegend=!1,e._mapType=i.StiMapType.Group,e.isMapDataChanged=!1,e._mapData=null,e._dataColumnKey=null,e._dataColumnName=null,e._dataColumnValue=null,e._dataColumnGroup=null,e._dataColumnColor=null,e._isHashDataEmpty=!0,e}return __extends(f,c),f.prototype.implements=function(){return f.implementsStiMap||(f.implementsStiMap=c.prototype.implements.call(this).concat([p,h,g,m])),f.implementsStiMap},f.prototype.saveToJsonObject=function(t){var e=c.prototype.saveToJsonObject.call(this,t);return e.removeProperty("UseParentStyles"),e.removeProperty("CanGrow"),e.removeProperty("CanShrink"),e.removeProperty("GrowToHeight"),e.removeProperty("Interaction"),e.addPropertyStringNullOfEmpty("Border",d.Serialize.jBorder(this.border)),e.addPropertyStringNullOfEmpty("Brush",d.Serialize.jBrush(this.brush)),e.addPropertyStringNullOfEmpty("DataSourceName",this.dataSourceName),e.addPropertyStringNullOfEmpty("BusinessObjectGuid",this.businessObjectGuid),e.addPropertyNumber("CountData",this.countData),e.addPropertyEnum("MapStyle",i.StiMapStyleIdent,this.mapStyle,i.StiMapStyleIdent.Style25),e.addPropertyBool("Stretch",this.stretch,!0),e.addPropertyBool("ShowValue",this.showValue,!1),e.addPropertyEnum("MapID",i.StiMapID,this.mapID,i.StiMapID.USA),e.addPropertyBool("ShowLegend",this.showLegend,!1),e.addPropertyEnum("MapType",i.StiMapType,this.mapType,i.StiMapType.Group),e.addPropertyStringNullOfEmpty("MapData",this.mapData),e.addPropertyStringNullOfEmpty("DataColumnKey",this.dataColumnKey),e.addPropertyStringNullOfEmpty("DataColumnName",this.dataColumnName),e.addPropertyStringNullOfEmpty("DataColumnValue",this.dataColumnValue),e.addPropertyStringNullOfEmpty("DataColumnGroup",this.dataColumnGroup),e.addPropertyStringNullOfEmpty("DataColumnColor",this.dataColumnColor),e},f.prototype.loadFromJsonObject=function(t){c.prototype.loadFromJsonObject.call(this,t);for(var e=0,r=t.properties();e<r.length;e++){var n=r[e];switch(n.name){case"Border":this._border=d.Deserialize.border(n.value.toString());break;case"Brush":this._brush=d.Deserialize.brush(n.value.toString());break;case"DataSourceName":this._dataSourceName=n.value.toString();break;case"BusinessObjectGuid":this._businessObjectGuid=n.value.toString();break;case"CountData":this._countData=n.value.toNumber();break;case"MapStyle":this._mapStyle=S.parse(i.StiMapStyleIdent,n.value.toString());break;case"Stretch":this._stretch=n.value.toBoolean();break;case"ShowValue":this._showValue=n.value.toBoolean();break;case"MapID":this._mapID=S.parse(i.StiMapID,n.value.toString());break;case"ShowLegend":this._showLegend=n.value.toBoolean();break;case"MapType":this._mapType=S.parse(i.StiMapType,n.value.toString());break;case"MapData":this._mapData=n.value.toString();break;case"DataColumnKey":this._dataColumnKey=n.value.toString();break;case"DataColumnName":this._dataColumnName=n.value.toString();break;case"DataColumnValue":this._dataColumnValue=n.value.toString();break;case"DataColumnGroup":this._dataColumnGroup=n.value.toString();break;case"DataColumnColor":this._dataColumnColor=n.value.toString();break}}},f.prototype.clone=function(t){return c.prototype.clone.call(this,t)},f.prototype.isExportAsImage=function(t){return!0},Object.defineProperty(f.prototype,"isDataSourceEmpty",{get:function(){return String.isNullOrEmpty(this.dataSourceName)||null==this.dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataSource",{get:function(){if(null==this.page||null==this.report||null==this.report.dataSources||null==this.dataSourceName||0==this.dataSourceName.length)return null;return this.report.dataSources.getByName(this.dataSourceName)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataSourceName",{get:function(){return this._dataSourceName},set:function(t){this._dataSourceName!=t&&(this._dataSourceName=t,String.isNullOrEmpty(t)||(this.businessObjectGuid=null))},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"isBusinessObjectEmpty",{get:function(){return String.isNullOrEmpty(this.businessObjectGuid)||null==this.businessObject},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"businessObject",{get:function(){if(null==this.page||null==this.report||null==this.businessObjectGuid||0==this.businessObjectGuid.length)return null;return u.getBusinessObjectFromGuid(this.report,this.businessObjectGuid)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"businessObjectGuid",{get:function(){return this._businessObjectGuid},set:function(t){this._businessObjectGuid!=t&&(this._businessObjectGuid=t,String.isNullOrEmpty(t)||(this.dataSourceName=null))},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"countData",{get:function(){return this._countData},set:function(t){this._countData=t},enumerable:!0,configurable:!0}),f.prototype.first=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!1,this.isBofValue=!0,this.positionValue=0):this.dataSource.first():this.businessObject.first()},f.prototype.prior=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue<=0?this.isBofValue=!0:this.positionValue--):this.dataSource.prior():this.businessObject.prior()},f.prototype.next=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue>=this._countData-1?this.isEofValue=!0:this.positionValue++):this.dataSource.next():this.businessObject.next()},f.prototype.last=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!0,this.isBofValue=!1,this.positionValue=this._countData-1):this.dataSource.last():this.businessObject.last()},Object.defineProperty(f.prototype,"isEof",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue:this.dataSource.isEof:this.businessObject.isEof},set:function(t){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue=t:this.dataSource.isEof=t:this.businessObject.isEof=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"isBof",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue:this.dataSource.isBof:this.businessObject.isBof},set:function(t){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue=t:this.dataSource.isBof=t:this.businessObject.isBof=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"isEmpty",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?0==this.countData:this.dataSource.isEmpty:this.businessObject.isEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"position",{get:function(){if(!this.isBusinessObjectEmpty)return this.businessObject.position;if(!this.isDataSourceEmpty)return this.dataSource.position;return this.positionValue},set:function(t){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.positionValue=t:this.dataSource.position=t:this.businessObject.position=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"count",{get:function(){if(this.isCacheValues)return this.cachedCount;return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this._countData:this.dataSource.count:this.businessObject.count},enumerable:!0,configurable:!0}),f.prototype.cacheValues=function(t){t?(this.cachedCount=this.count,this.cachedIsBusinessObjectEmpty=this.isBusinessObjectEmpty,this.cachedIsDataSourceEmpty=this.isDataSourceEmpty,this.cachedDataSource=this.dataSource,this.cachedBusinessObject=this.businessObject):(this.cachedDataSource=null,this.cachedBusinessObject=null),this.isCacheValues=t},Object.defineProperty(f.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"componentId",{get:function(){return e.StiComponentId.StiMap},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"localizedCategory",{get:function(){return o.get("Report","Infographics")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"localizedName",{get:function(){return o.get("Components","StiMap")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"defaultClientRectangle",{get:function(){return new n(0,0,240,240)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"mapStyle",{get:function(){return this._mapStyle},set:function(t){this._mapStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"stretch",{get:function(){return this._stretch},set:function(t){this._stretch=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"showValue",{get:function(){return this._showValue},set:function(t){this._showValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"mapID",{get:function(){return this._mapID},set:function(t){this._mapID=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"showLegend",{get:function(){return this._showLegend},set:function(t){this._showLegend=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"mapType",{get:function(){return this._mapType},set:function(t){this._mapType=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"mapData",{get:function(){return this._mapData},set:function(t){this._mapData!=t&&(this._mapData=t,this._isHashDataEmpty=!0,this.isMapDataChanged=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataColumnKey",{get:function(){return this._dataColumnKey},set:function(t){this._dataColumnKey=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataColumnName",{get:function(){return this._dataColumnName},set:function(t){this._dataColumnName=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataColumnValue",{get:function(){return this._dataColumnValue},set:function(t){this._dataColumnValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataColumnGroup",{get:function(){return this._dataColumnGroup},set:function(t){this._dataColumnGroup=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"dataColumnColor",{get:function(){return this._dataColumnColor},set:function(t){this._dataColumnColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"isHashDataEmpty",{get:function(){return this._isHashDataEmpty},enumerable:!0,configurable:!0}),f.prototype.createNew=function(){return new f},f.prototype.getMapData=function(){if(null!=this._hashData&&this._hashData.count>0&&this.isMapDataChanged)return this._hashData;this._isHashDataEmpty=!0;var e=[];if(!String.isNullOrEmpty(this._mapData))for(var r=JSON.parse(this._mapData),n=0,o=r;n<o.length;n++){var a=o[n],s=new i.StiMapData(a.Key);s.value=a.Value,s.color=a.Color,s.group=a.group,s.name=a.name,e.push(s)}var l=i.StiMapLoader.loadResource(S.getName(t.Report.Maps.StiMapID,this.mapID));if(e.count>0){var u=0;while(u<e.count){var a=e[u];if(String.isNullOrEmpty(a.key)||!l.hashSvg.containsKey(a.key)){e.removeAt(u);continue}u++}if(l.hashSvg.count!=e.count)for(var c=function(t){if(null==e.firstOrDefault(function(e){return e.key==t})){var r=new i.StiMapData(t);e.add(r)}},p=0,h=l.hashSvg.keys;p<h.length;p++){var g=h[p];c(g)}for(var m=0,d=e;m<d.length;m++){var a=d[m];if(!String.isNullOrEmpty(a.color)||!String.isNullOrEmpty(a.group)||0!=a.value){this._isHashDataEmpty=!1;break}}}else for(var f=0,y=l.hashSvg.keys;f<y.length;f++){var g=y[f],a=new i.StiMapData(g);e.add(a)}return this.isMapDataChanged=!0,this._hashData=e,e},f.prototype.getCurrentStyleColors=function(){if(!String.isNullOrEmpty(this.componentStyle)){var t=null!=this.report.styles.getByName(this.componentStyle)?this.report.styles.getByName(this.componentStyle).sti_as(r):null;if(null!=t)return t.colors}return f.getStyleColors(this.mapStyle)},f.getStyleColors=function(t){return f.getMapStyle(t).colors},f.prototype.getStyleBackground=function(){if(!String.isNullOrEmpty(this.componentStyle)){var t=this.report.styles.getByName(this.componentStyle).sti_as(r);if(null!=t)return new s(t.backColor)}return new s(f.getMapStyle(this.mapStyle).backColor)},f.getMapStyle2=function(t){var e=null;return String.isNullOrEmpty(t.componentStyle)||(e=t.report.styles.getByName(t.componentStyle).sti_as(r)),null==e&&(e=f.getMapStyle(t.mapStyle)),e},f.getMapStyle=function(t){switch(t){case i.StiMapStyleIdent.Style21:return new i.StiMap21StyleFX;case i.StiMapStyleIdent.Style24:return new i.StiMap24StyleFX;case i.StiMapStyleIdent.Style25:return new i.StiMap25StyleFX;case i.StiMapStyleIdent.Style26:return new i.StiMap26StyleFX;case i.StiMapStyleIdent.Style27:return new i.StiMap27StyleFX;default:throw"Style is not supported!"}},f}(c);i.StiMap=f}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Styles.StiMapStyle,r=t.System.Text.StringBuilder,n=t.System.Collections.Hashtable,o=t.System.Enum,a=t.System.Drawing.ColorTranslator,s=t.System.Drawing.SolidBrush,l=t.System.Drawing.Color,u=t.Report.Maps.StiMap,c=function(){function t(){this.minValue=0,this.maxValue=0}return t.prototype.getOpacity=function(t){if(this.maxValue==this.minValue)return 1;var e=this.maxValue-this.minValue;return.8*((t-this.minValue)/e)+.2},t}(),p=function(){function e(t,e){var i=e[0];this.min=i.value,this.max=i.value;for(var r=1;r<e.count;r++)i=e[r],i.value<this.min?this.min=i.value:i.value>this.max&&(this.max=i.value);this.colors=u.getMapStyle(t.mapStyle).heatmapColors}return e.prototype.getBrush=function(e){if(!String.isNullOrEmpty(e.color))try{return new s(e.color.startsWith("#")?a.fromHtml(e.color):l.fromName(e.color))}catch(t){}if(this.min==this.max)return new s(this.colors[0]);var i=Math.trunc(255*(e.value-this.min)/(this.max-this.min));return new s(t.Base.Drawing.StiColorUtils.mixingColors(this.colors[0],this.colors[1],i))},e}(),h=function(){function t(){this.stackColors=[],this.index=0}return t.prototype.getColor=function(){var t=new s(this.stackColors[this.index]);return this.index++,this.index>=this.stackColors.count&&(this.index=0),t},t.prototype.init=function(t){this.stackColors.clear();var e=t.getCurrentStyleColors();this.index=0;for(var i=0,r=e;i<r.length;i++){var n=r[i];this.stackColors.add(n)}},t}(),g=function(){function e(){}return e.drawMap=function(e,i,r,n,a){var s=t.Report.Maps.StiMapLoader.loadResource(o.getName(t.Report.Maps.StiMapID,i.mapID)),l=r/s.width<n/s.height?r/s.width:n/s.height;e.writeStartElement("rect"),e.writeAttributeString("width",r.toString().replaceAll(",",".")),e.writeAttributeString("height",n.toString().replaceAll(",","."));var u=i.getStyleBackground().color;e.writeAttributeString("style",String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",u.r,u.g,u.b,Math.round(u.a/255,3).toString().replaceAll(",","."))),e.writeEndElement(),this.render(i,e,a,l)},e.render=function(e,a,s,l){s=!1;var c=e.getMapData(),g=new n,m=null,d=new h;this.initData(e,c,g),e.mapType==t.Report.Maps.StiMapType.Heatmap&&(m=new p(e,c)),e.mapType==t.Report.Maps.StiMapType.Group&&this.fillGroupColors(d,e,g);var S=null;String.isNullOrEmpty(e.componentStyle)||(S=e.report.styles.getByName(e.componentStyle).sti_as(i)),null!=S&&(S=u.getMapStyle(e.mapStyle));for(var f=t.Report.Maps.StiMapLoader.loadResource(o.getName(t.Report.Maps.StiMapID,e.mapID)),y=0,b=f.hashSvg.keys.count,C=0,v=f.hashSvg.keys;C<v.length;C++){for(var I=v[C],A=c[0],w=0,T=c;w<T.length;w++){var B=T[w];B.key==I&&(A=B)}var R=this.getFill(A,e,m,g);a.writeStartElement("path"),a.writeAttributeString("d",f.hashSvg.get(I));var P=new r;P.append(this.writeFillBrush(a,R));var F=String.stiFormat("{0}",this.writeBorderStroke(a,S.borderColor));P.append(String.stiFormat("{0};stroke-width:{1};",F,S.borderSize)),a.writeAttributeString("style",P.toString()),a.writeAttributeString("transform",String.stiFormat("scale({0})",l)),a.writeAttributeString("_ismap","true"),a.writeAttributeString("_text1",I),a.writeAttributeString("_text2",A.value.toString());var x=R.color;a.writeAttributeString("_color",String.stiFormat("#{0:X2}{1:X2}{2:X2}",x.r,x.g,x.b)),s&&(a.writeAttributeString("opacity","0"),a.writeAttributeString("_animation","{{"+String.stiFormat('"actions":[["opacity", 0, 1, ""], ["scale", {2}, {2},""]], "begin":{0}, "duration":{1}',200/b*y,"100",l)+"}}")),a.writeEndElement(),y++}null!=c&&(c.clear(),c=null),null!=g&&(g.clear(),g=null)},e.writeBorderStroke=function(t,e){var i=String.stiFormat("stroke:rgb({0},{1},{2});",e.r,e.g,e.b),r=Math.round(e.a/255,3);return 1!=r&&(i+=String.stiFormat("stroke-opacity:{0};",r.toString().replaceAll(",","."))),i},e.writeFillBrush=function(t,e){var i=e.color;return String.stiFormat("fill:rgb({0},{1},{2});fill-opacity:{3};",i.r,i.g,i.b,Math.round(i.a/255,3).toString().replaceAll(",","."))},e.getFill=function(e,r,n,o){var a=null;switch(r.mapType){case t.Report.Maps.StiMapType.None:a=this.getNoneBrush(e,r);break;case t.Report.Maps.StiMapType.Group:a=this.getGroupedBrush(e,n,o,r);break;case t.Report.Maps.StiMapType.HeatmapWithGroup:a=this.getGroupedBrush(e,n,o,r);break;case t.Report.Maps.StiMapType.Heatmap:a=n.getBrush(e);break}if(null==a){var l=null;return String.isNullOrEmpty(r.componentStyle)||(l=r.report.styles.getByName(r.componentStyle).sti_as(i)),null!=l&&(l=u.getMapStyle(r.mapStyle)),new s(l.backColor)}return a},e.getGroupedBrush=function(t,e,r,n){if(!String.isNullOrEmpty(t.color))try{return new s(t.color.startsWith("#")?a.fromHtml(t.color):l.fromName(t.color))}catch(t){}if(null!=t.group&&r.containsKey(t.group))return r.get(t.group).fill;var o=null;if(String.isNullOrEmpty(n.componentStyle)||(o=n.report.styles.getByName(n.componentStyle).sti_as(i)),null!=o&&(o=u.getMapStyle(n.mapStyle)),null==o)return new s(l.white);return new s(o.backColor)},e.getNoneBrush=function(t,e){if(!String.isNullOrEmpty(t.color))try{return new s(t.color.startsWith("#")?a.fromHtml(t.color):l.fromName(t.color))}catch(t){}var r=null;return String.isNullOrEmpty(e.componentStyle)||(r=e.report.styles.getByName(e.componentStyle).sti_as(i)),null!=r&&(r=u.getMapStyle(e.mapStyle)),new s(r.backColor)},e.fillGroupColors=function(t,e,i){t.init(e);var r=Array.create(String,i.keys.count);i.keys.copyTo(r,0);var n=r;n.sort();for(var o=0,a=n;o<a.length;o++){var s=a[o];i.get(s).fill=t.getColor()}},e.initData=function(t,e,i){for(var r=0,n=e;r<n.length;r++){var o=n[r];if(!String.isNullOrEmpty(o.group)){var a=null;i.containsKey(o.group)?(a=i.get(o.group),a.minValue>o.value?a.minValue=o.value:a.maxValue<o.value&&(a.maxValue=o.value)):(a=new c,a.minValue=o.value,a.maxValue=o.value,i.add(o.group,a))}}},e}();e.StiMapSvgHelper=g}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._right=this._x+this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._bottom=this._y+this._height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._right=this._x+this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._bottom=this._y+this._height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this._right},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this._bottom},enumerable:!0,configurable:!0}),t}();t.StiSvgData=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.StringAlignment,r=t.System.Drawing.Point,n=t.System.Drawing.Rectangle,o=t.System.Text.StringBuilder,a=t.System.Drawing.Size,s=function(){function t(t){this.writer=null,this.writer=t}return t.prototype.beginPath=function(){},t.prototype.closeFigure=function(){},t.prototype.endPath=function(){},t.prototype.fillPath=function(t){},t.prototype.strokePath=function(t){},t.prototype.moveTo=function(t){},t.prototype.drawLine=function(t,e,i){},t.prototype.drawLineTo=function(t,e){},t.prototype.drawRectangle=function(t,e){},t.prototype.drawPolyline=function(t,e){},t.prototype.drawPolylineTo=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.fillPolygon=function(t,i){var r=new o;r.append(e.StiChartSvgHelper.writeFillBrush(this.writer,i,new n));for(var a="",s=0;s<t.length;s++){var l=t[s];a+=String.stiFormat("{0},{1} ",l.x.toString().replace(",","."),l.y.toString().replace(",","."))}this.writer.writeStartElement("polygon"),this.writer.writeAttributeString("points",a),this.writer.writeAttributeString("style",r.toString()),this.writer.writeEndElement()},t.prototype.drawBezier=function(t,e,i,r,n){},t.prototype.drawBezierTo=function(t,e,i,r){},t.prototype.drawArc2=function(t,e,i,r){},t.prototype.setPixel=function(t,e){},t.prototype.drawImage=function(t,e){},t.prototype.drawText=function(t,e,i,r,n,o,a){},t.prototype.drawString=function(t,n,a,s,l){this.writer.writeStartElement("text");var u=new r;switch(l.alignment){case i.Near:u.x=s.x;break;case i.Center:u.x=s.x+s.width/2;break;case i.Far:u.x=s.x+s.width;break}switch(l.lineAlignment){case i.Near:u.y=s.y;break;case i.Center:u.y=s.y+s.height/2;break;case i.Far:u.y=s.y+s.height;break}this.writer.writeAttributeString("transform",String.stiFormat("translate({0}, {1})",u.x.toString().replaceAll(",","."),u.y.toString().replaceAll(",","."))),this.writer.writeAttributeString("width",s.width.toString().replaceAll(",",".")),this.writer.writeAttributeString("height",s.height.toString().replaceAll(",","."));var c=new o;if(c.append(String.stiFormat("font-size:{0}pt;",n.sizeInPoints)),c.append(String.stiFormat("font-family:'{0}';",n.name)),n.bold&&c.append("font-weight:bold;"),n.italic&&c.append("font-style:italic;"),n.underline||n.strikeout){var p=n.underline?n.strikeout?"underline line-through":"underline":n.strikeout?"line-through":null;c.append(String.stiFormat("text-decoration:{0};",p))}switch(c.append(e.StiChartSvgHelper.writeFillBrush(this.writer,a,s)),l.alignment){case i.Near:c.appendFormat("text-anchor:{0};","start");break;case i.Center:c.appendFormat("text-anchor:{0};","middle");break;case i.Far:c.appendFormat("text-anchor:{0};","end");break}switch(l.lineAlignment){case i.Near:this.writer.writeAttributeString("dy","1em");break;case i.Center:this.writer.writeAttributeString("dy","0.5em");break;case i.Far:break}this.writer.writeAttributeString("style",c.toString()),this.writer.writeString(t),this.writer.writeEndElement()},t.prototype.saveState=function(){},t.prototype.restoreState=function(){},t.prototype.fillRectangle=function(t,i){var r=new o;r.append(e.StiChartSvgHelper.writeFillBrush(this.writer,i,t)),this.writer.writeStartElement("rect"),this.writer.writeAttributeString("x",t.x.toString().replaceAll(",",".")),this.writer.writeAttributeString("y",t.y.toString().replaceAll(",",".")),this.writer.writeAttributeString("width",t.width.toString().replaceAll(",",".")),this.writer.writeAttributeString("height",t.height.toString().replaceAll(",",".")),this.writer.writeAttributeString("fill","red"),this.writer.writeAttributeString("style",r.toString()),this.writer.writeAttributeString("shape-rendering","crispEdges"),this.writer.writeEndElement()},t.prototype.fillRectangle2=function(t,e){this.fillRectangle(t,e)},t.prototype.rotateTransform=function(t){this.writer.writeStartElement("g"),this.writer.writeAttributeString("transform",String.stiFormat("rotate({0})",t.toString().replaceAll(",",".")))},t.prototype.translateTransform=function(t,e){this.writer.writeStartElement("g"),this.writer.writeAttributeString("transform",String.stiFormat("translate({0},{1})",t.toString().replaceAll(",","."),e.toString().replaceAll(",",".")))},t.prototype.endTransform=function(){this.writer.writeEndElement()},t.prototype.measureString=function(t,e){return new a(0,0)},t.prototype.drawEllipse=function(t,e){},t.prototype.fillEllipse=function(t,i){var r=new o;r.append(e.StiChartSvgHelper.writeFillBrush(this.writer,i,t)),this.writer.writeStartElement("ellipse"),this.writer.writeAttributeString("cx",(t.x+t.width/2).toString().replaceAll(",",".")),this.writer.writeAttributeString("cy",(t.y+t.height/2).toString().replaceAll(",",".")),this.writer.writeAttributeString("rx",(t.width/2).toString().replaceAll(",",".")),this.writer.writeAttributeString("ry",(t.height/2).toString().replaceAll(",",".")),this.writer.writeAttributeString("style",r.toString()),this.writer.writeEndElement()},t}();e.StiSvgGeomWriter=s}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiImage,n=t.Report.Components.StiIconSetHelper,o=t.Report.Components.StiIcon,a=t.Report.Components.StiIconSetIndicator,s=t.Base.Drawing.StiColorUtils,l=t.Report.Components.StiDataBarDirection,u=t.Report.Components.StiDataBarIndicator,c=t.Report.Components.IStiExportImageExtended,p=t.System.Drawing.ContentAlignment,h=t.Base.Drawing.StiGlassBrush,g=t.System.Xml.Formatting,m=t.Base.Drawing.StiTextRenderer,d=t.Base.Drawing.StiImageCodecInfo,S=t.System.Xml.XmlTextWriter,f=t.System.Drawing.Color,y=t.Report.Components.StiTextQuality,b=t.Report.Components.StiShapeDirection,C=t.Base.Drawing.StiPenStyle,v=t.System.Drawing.Rectangle,I=t.Report.Components.StiContainer,A=t.Base.Drawing.StiBrush,w=t.Base.Drawing.StiSolidBrush,T=t.Report.Components.IStiBrush,B=t.Report.Components.StiShape,R=t.Base.Drawing.StiEmptyBrush,P=t.Report.Components.StiText,F=t.System.Text.Encoding,x=t.Base.Drawing.StiBorderSides,D=t.System.Text.StringBuilder,k=t.Report.Components.IStiBorder,E=t.Base.Drawing.StiTextOptions,G=t.Base.Drawing.StiGradientBrush,_=t.Base.Drawing.StiVertAlignment,L=t.Base.Drawing.StiTextHorAlignment,N=t.Report.Components.StiVerticalLineShapeType,O=t.Report.Components.StiHorizontalLineShapeType,Z=t.Report.Components.StiTopAndBottomLineShapeType,M=t.Report.Components.StiLeftAndRightLineShapeType,H=t.Report.Components.StiRectangleShapeType,W=t.Report.Components.StiRoundedRectangleShapeType,V=t.Report.Components.StiDiagonalDownLineShapeType,Y=t.Report.Components.StiDiagonalUpLineShapeType,j=t.Report.Components.StiTriangleShapeType,X=t.Report.Components.StiOvalShapeType,J=t.Report.Components.StiArrowShapeType,K=t.Report.Components.StiOctagonShapeType,U=t.Report.Components.StiComplexArrowShapeType,z=t.Report.Components.StiBentArrowShapeType,Q=t.Report.Components.StiChevronShapeType,q=t.Report.Components.StiDivisionShapeType,$=t.Report.Components.StiEqualShapeType,tt=t.Report.Components.StiFlowchartCardShapeType,et=t.Report.Components.StiFlowchartCollateShapeType,it=t.Report.Components.StiFlowchartDecisionShapeType,rt=t.Report.Components.StiFlowchartManualInputShapeType,nt=t.Report.Components.StiFlowchartOffPageConnectorShapeType,ot=t.Report.Components.StiFlowchartPreparationShapeType,at=t.Report.Components.StiFlowchartSortShapeType,st=t.Report.Components.StiFrameShapeType,lt=t.Report.Components.StiMinusShapeType,ut=t.Report.Components.StiMultiplyShapeType,ct=t.Report.Components.StiParallelogramShapeType,pt=t.Report.Components.StiPlusShapeType,ht=t.Report.Components.StiRegularPentagonShapeType,gt=t.Report.Components.StiTrapezoidShapeType,mt=t.Report.Components.StiSnipSameSideCornerRectangleShapeType,dt=t.Report.Components.StiSnipDiagonalSideCornerRectangleShapeType,St=t.Report.Components.StiRectanglePrimitive,ft=t.Base.Drawing.StiGlareBrush,yt=t.Base.Drawing.StiHatchBrush,bt=t.Report.Components.StiCheckBox,Ct=t.Report.Components.StiCheckStyle,vt=t.Report.BarCodes.StiBarCode,It=function(){function It(){}return It.getLineStyleDash=function(t,e){var i=Math.round(1.2*e,1).toString().replaceAll(",","."),r=Math.round(3*e,1).toString().replaceAll(",","."),n=String.empty;switch(t){case C.Dot:n=String.stiFormat("{0},{0}",i);break;case C.Dash:n=String.stiFormat("{0},{1}",r,i);break;case C.DashDot:n=String.stiFormat("{0},{1},{1},{1}",r,i);break;case C.DashDotDot:n=String.stiFormat("{0},{1},{1},{1},{1},{1}",r,i);break}return n},It.toUnits=function(t){return Math.round(t,2).toString().replaceAll(",",".")},It.writeCoordinates=function(t,e){t.writeAttributeString("x",It.toUnits(e.x)),t.writeAttributeString("y",It.toUnits(e.y)),t.writeAttributeString("width",It.toUnits(e.width)),t.writeAttributeString("height",It.toUnits(e.height))},It.writeStrokeInfo=function(t,e,i,r){r==C.None?t.writeAttributeString("stroke","none"):(t.writeAttributeString("stroke",String.stiFormat("#{0:X2}{1:X2}{2:X2}",e.r,e.g,e.b)),255!=e.a&&t.writeAttributeString("stroke-opacity",Math.round(e.a/255,3).toString().replaceAll(",",".")),t.writeAttributeString("stroke-width",It.toUnits(i)),r!=C.Solid&&t.writeAttributeString("stroke-dasharray",It.getLineStyleDash(r,i)))},It.writeFillInfo=function(t,e){t.writeAttributeString("fill",String.stiFormat("#{0:X2}{1:X2}{2:X2}",e.r,e.g,e.b)),255!=e.a&&t.writeAttributeString("fill-opacity",Math.round(e.a/255,3).toString().replaceAll(",","."))},It.checkShape=function(t){if(!t.sti_is(B))return!1;var e=t.sti_as(B);if(null==e)return!1;var i=t.sti_as(T);if(null!=i&&null!=i.brush&&!i.brush.sti_is(w)&&!i.brush.sti_is(R))return!1;if(e.shapeType.sti_is(N)||e.shapeType.sti_is(O)||e.shapeType.sti_is(Z)||e.shapeType.sti_is(M)||e.shapeType.sti_is(H)||e.shapeType.sti_is(W)||e.shapeType.sti_is(V)||e.shapeType.sti_is(Y)||e.shapeType.sti_is(j)||e.shapeType.sti_is(X)||e.shapeType.sti_is(J)||e.shapeType.sti_is(K)||e.shapeType.sti_is(U)||e.shapeType.sti_is(z)||e.shapeType.sti_is(Q)||e.shapeType.sti_is(q)||e.shapeType.sti_is($)||e.shapeType.sti_is(tt)||e.shapeType.sti_is(et)||e.shapeType.sti_is(it)||e.shapeType.sti_is(rt)||e.shapeType.sti_is(nt)||e.shapeType.sti_is(ot)||e.shapeType.sti_is(at)||e.shapeType.sti_is(st)||e.shapeType.sti_is(lt)||e.shapeType.sti_is(ut)||e.shapeType.sti_is(ct)||e.shapeType.sti_is(pt)||e.shapeType.sti_is(ht)||e.shapeType.sti_is(gt)||e.shapeType.sti_is(mt)||e.shapeType.sti_is(dt))return!0;return!1},It.writeDocument=function(n,o,a,s,l,u,c){var p=s.ref,h=new S(F.UTF8),m=-1;h.indentation=0,h.formatting=g.None;var y=d.getImageCodec("image/jpeg");c/=100,a&&h.writeStartDocument(),h.writeStartElement("svg"),h.writeAttributeString("version","1.1"),h.writeAttributeString("baseProfile","full"),a||h.writeAttributeString("style","margin:5px; border:1px solid DarkGrey;"),h.writeAttributeString("xmlns","http://www.w3.org/2000/svg"),h.writeAttributeString("xmlns:xlink","http://www.w3.org/1999/xlink"),h.writeAttributeString("xmlns:ev","http://www.w3.org/2001/xml-events");var b=1,C=b*n.unit.convertToHInches(o.pageHeight*o.segmentPerHeight),v=b*n.unit.convertToHInches(o.pageWidth*o.segmentPerWidth),T=b*n.unit.convertToHInches(o.margins.left),B=b*n.unit.convertToHInches(o.margins.right),R=b*n.unit.convertToHInches(o.margins.top),x=b*n.unit.convertToHInches(o.margins.bottom);h.writeAttributeString("height",It.toUnits(C)),h.writeAttributeString("width",It.toUnits(v)),h.writeStartElement("defs");for(var D=p,k=0,E=o.components.list;k<E.length;k++){var G=E[k];if(G.enabled){var _=b*n.unit.convertToHInches(G.left),L=b*n.unit.convertToHInches(G.top),N=b*n.unit.convertToHInches(G.right),O=b*n.unit.convertToHInches(G.bottom),Z=new i.StiSvgData;Z.x=_+T,Z.y=L+R,Z.width=N-_,Z.height=O-L,Z.component=G;var M=G.isExportAsImage(e.StiExportFormat.ImageSvg),H=G.sti_as(P),W=G.sti_as(r);(null!=H&&!M&&null!=H.text.toString()&&H.text.toString().trim().length>0||null!=W)&&(h.writeStartElement("clipPath"),h.writeAttributeString("id",String.stiFormat("clipPath{0}",D++)),h.writeStartElement("rect"),It.writeCoordinates(h,Z),h.writeEndElement(),h.writeEndElement())}}h.writeEndElement(),D=p;var V=1,Y=new I;Y.border=o.border.clone(),Y.brush=o.brush.clone(),0==A.toColor(Y.brush).a&&(Y.brush=new w(f.white));var j=new i.StiSvgData;j.x=0,j.y=0,j.width=v,j.height=C,j.component=Y;var X={ref:V};It.writeBorder1(h,j,X),V=X.ref,It.writeWatermark(h,m,o,!0,v,C,c);var J=o.bookmarkValue;String.isNullOrEmpty(J)||(h.writeStartElement("view"),h.writeAttributeString("id",J),h.writeAttributeString("viewBox","0 0 1 1"),h.writeEndElement());for(var K=0,U=o.components.list;K<U.length;K++){var G=U[K];if(G.enabled){var _=b*n.unit.convertToHInches(G.left),L=b*n.unit.convertToHInches(G.top),N=b*n.unit.convertToHInches(G.right),O=b*n.unit.convertToHInches(G.bottom),Z=new i.StiSvgData;Z.x=_+T,Z.y=L+R,Z.width=N-_,Z.height=O-L,Z.component=G;var z=It.checkShape(G),M=G.isExportAsImage(e.StiExportFormat.ImageSvg);if(!z&&!M){var Q={ref:V};It.writeBorder1(h,Z,Q),V=Q.ref}var q=G.hyperlinkValue;if(String.isNullOrEmpty(q)||(h.writeStartElement("a"),h.writeAttributeString("xlink:href",q)),G.sti_is(P)&&!M){var $={ref:D};It.writeText(h,Z,$,m,!0),D=$.ref}else if(z)It.writeShape(h,Z);else if(G.sti_is(vt))It.writeBarCode(h,Z);else if(M){var $={ref:D};It.writeImage(h,Z,c,l,u,y,$),D=$.ref}else if(G.sti_is(t.Report.Chart.IStiChart))i.StiChartSvgHelper.writeChart(h,Z);else if(G.sti_is(bt))It.writeCheckBox(h,Z,G.checkedValue);else{var tt=Z.component.bookmarkValue;String.isNullOrEmpty(tt)||(h.writeStartElement("view"),h.writeAttributeString("id",tt),h.writeAttributeString("viewBox",String.stiFormat("{0} {1} {2} {3}",It.toUnits(Z.x),It.toUnits(Z.y),It.toUnits(Z.width),It.toUnits(Z.height))),h.writeEndElement())}String.isNullOrEmpty(q)||h.writeEndElement(),a||(Z.x=Math.round(Z.x-.5)+.5,Z.y=Math.round(Z.y-.5)+.5,Z.width=Math.round(N+T-.5)+.5-Z.x,Z.height=Math.round(O+R-.5)+.5-Z.y),G.sti_is(St)?It.writeRoundedRectanglePrimitive(h,Z):It.writeBorder2(h,Z)}}return j.x=T,j.y=R,j.width-=T+B,j.height-=R+x,It.writeBorder2(h,j),It.writeWatermark(h,m,o,!1,v,C,c),p=D,h.writeFullEndElement(),a&&h.writeEndDocument(),h.flush(),s.ref=p,h.textWriter},It.writeWatermark=function(t,e,r,n,o,a,s){var l=r.watermark;if(null!=l&&l.enabled){if(null!=l.image){var u=l.image.width*l.imageMultipleFactor,c=l.image.height*l.imageMultipleFactor,h=0,g=0,m=1,d=1,S=l.imageAlignment,f=l.imageTiling;if(l.imageStretch){var b=c/u;u=o,c=a,f=!1,l.aspectRatio&&(a/o>b?c=u*b:u=c/b)}switch(l.imageStretch||l.imageMultipleFactor,f&&(S=p.TopLeft,m=Math.trunc(o/u)+1,d=Math.trunc(a/c)+1),S){case p.TopCenter:case p.MiddleCenter:case p.BottomCenter:h=(o-u)/2;break;case p.TopRight:case p.MiddleRight:case p.BottomRight:h=o-u;break}switch(S){case p.TopLeft:case p.TopCenter:case p.TopRight:g=a-c;break;case p.MiddleLeft:case p.MiddleCenter:case p.MiddleRight:g=(a-c)/2;break}var C=new i.StiSvgData;C.x=h,C.y=g,C.width=u,C.height=c}if(!String.isNullOrEmpty(l.text)){var C=new i.StiSvgData;C.x=0,C.y=0,C.width=o,C.height=a;var I=new P(new v(C.x,C.y,C.width,C.height));I.text=l.text,I.textBrush=l.textBrush,I.font=l.font,I.textOptions=new E,I.textOptions.angle=l.angle,I.horAlignment=L.Center,I.vertAlignment=_.Center,I.page=r,I.textQuality=y.Standard,C.component=I;var A=0,w={ref:A};It.writeText(t,C,w,e,!1),A=w.ref}}},It.writeBorder1=function(t,e,r){var n=r.ref,o=e.component.sti_as(T);if(null!=o&&null!=o.brush)if(o.brush.sti_is(G)){var a=i.StiBrushSvgHelper.writeGradientBrush(t,o.brush,new v(e.x,e.y,e.width,e.height));t.writeStartElement("rect"),It.writeCoordinates(t,e),t.writeAttributeString("fill",String.stiFormat("url(#{0})",a)),t.writeEndElement()}else if(o.brush.sti_is(ft)){var a=i.StiBrushSvgHelper.writeGlareBrush(t,o.brush,new v(e.x,e.y,e.width,e.height));t.writeStartElement("rect"),It.writeCoordinates(t,e),t.writeAttributeString("fill",String.stiFormat("url(#{0})",a)),t.writeEndElement()}else if(o.brush.sti_is(yt)){var a=i.StiBrushSvgHelper.writeHatchBrush(t,o.brush);t.writeStartElement("rect"),It.writeCoordinates(t,e),t.writeAttributeString("fill",String.stiFormat("url(#{0})",a)),t.writeEndElement()}else if(o.brush.sti_is(h)){var a=i.StiBrushSvgHelper.writeGlassBrush(t,o.brush,new v(e.x,e.y,e.width,e.height));t.writeStartElement("rect"),It.writeCoordinates(t,e),t.writeAttributeString("fill",String.stiFormat("url(#{0})",a)),t.writeEndElement()}else{var s=A.toColor(o.brush);s.stiEquals(f.transparent)||(t.writeStartElement("rect"),It.writeCoordinates(t,e),It.writeFillInfo(t,s),t.writeEndElement())}r.ref=n},It.writeBorder2=function(t,e){var i=e.component.sti_as(k);if(null!=i&&null!=i.border&&i.border.side!=x.None&&i.border.style!=C.None){var r=i.border;if(r.side==x.All)t.writeStartElement("rect"),It.writeCoordinates(t,e),t.writeAttributeString("fill","none"),It.writeStrokeInfo(t,r.color,r.size,r.style),t.writeEndElement();else{t.writeStartElement("path");var n=It.toUnits(e.x),o=It.toUnits(e.x+e.width),a=It.toUnits(e.y+e.height),s=It.toUnits(e.y),l=new D,u=!1;0!=(r.side&x.Left)?(l.append(String.stiFormat("M {0} {1} ",n,a)),l.append(String.stiFormat("L {0} {1} ",n,s)),u=!0):u=!1,0!=(r.side&x.Top)?(u||l.append(String.stiFormat("M {0} {1} ",n,s)),l.append(String.stiFormat("L {0} {1} ",o,s)),u=!0):u=!1,0!=(r.side&x.Right)?(u||l.append(String.stiFormat("M {0} {1} ",o,s)),l.append(String.stiFormat("L {0} {1} ",o,a)),u=!0):u=!1,0!=(r.side&x.Bottom)&&(u||l.append(String.stiFormat("M {0} {1} ",o,a)),l.append(String.stiFormat("L {0} {1} ",n,a))),t.writeAttributeString("d",l.toString()),t.writeAttributeString("fill","none"),It.writeStrokeInfo(t,r.color,r.size,r.style),t.writeEndElement()}}},It.writeText=function(e,i,r,n,o){var a=r.ref,s=i.component.sti_as(P),l=null!=s.textOptions?s.textOptions:new E,u=s.text,c=[],p=[],h={ref:u},g={ref:c},d={ref:p};m.getTextLinesAndWidths(null,h,s.font,s.page.unit.convertToHInches(i.component.componentToPage(i.component.clientRectangle)),1,l.wordWrap,l.rightToLeft,1,l.angle,l.trimming,s.allowHtmlTags,g,d),u=h.ref,c=g.ref,p=d.ref;var S=c.count>0;if(1==c.count&&0==c[0].length&&(S=!1),S){var f=0;null!=s.textOptions&&(f=s.textOptions.angle);while(f>=360)f-=360;for(var y=o&&null!=s.text&&s.text.trim().length>0,b=0,C=0,v=p;C<v.length;C++){var I=v[C];b+=I.lineHeight}var w=0;null!=s.border&&(w=s.border.size/2);var T=new D;y&&0==f&&T.append(String.stiFormat("clip-path: url(#clipPath{0});",a++));var B=i.x,R=i.y+.9*s.font.sizeInPoints*It.correctFontSize;f%90==0?(s.horAlignment==L.Left&&(B+=2.5+w),s.horAlignment==L.Center&&(T.append(String.stiFormat("text-anchor:{0};","middle")),B+=90==f||270==f?i.height/2:i.width/2),s.horAlignment==L.Right&&(T.append(String.stiFormat("text-anchor:{0};","end")),B+=90==f||270==f?i.height-2-w:i.width-2-w),s.horAlignment==L.Width&&(B+=2+w),s.vertAlignment==_.Top&&(R+=w),s.vertAlignment==_.Center&&(R+=90==f||270==f?(i.width-b)/2:(i.height-b)/2),s.vertAlignment==_.Bottom&&(R+=90==f||270==f?i.width-b-w:i.height-b-w)):(T.append(String.stiFormat("text-anchor:{0};","middle")),B+=i.width/2,R+=(i.height-b)/2);var F=t.System.Drawing.Graphics.getCustomFontName(s.font.name,s.font.style);if(t.System.Drawing.Graphics.allowStyle(s.font.name,s.font.style)&&(s.font.bold&&T.append("font-weight:bold;"),s.font.italic&&T.append("font-style:italic;")),T.append(String.stiFormat("font-size:{0}pt;",s.font.sizeInPoints.toString().replaceAll(",","."))),T.append(String.stiFormat("font-family:'{0}';",F)),s.font.underline||s.font.strikeout){var x=s.font.underline?s.font.strikeout?"underline line-through":"underline":s.font.strikeout?"line-through":null;T.append(String.stiFormat("text-decoration:{0};",x))}var k=A.toColor(s.textBrush);T.append(String.stiFormat("fill:#{0:X2}{1:X2}{2:X2};",k.r,k.g,k.b)),255!=k.a&&T.append(String.stiFormat("fill-opacity:{0}",Math.round(k.a/255,3).toString().replaceAll(",","."))),0!=f&&(y&&(e.writeStartElement("g"),e.writeAttributeString("clip-path",String.stiFormat("url(#clipPath{0})",a++))),e.writeStartElement("g"),e.writeAttributeString("transform",String.stiFormat("translate({0},{1})",It.toUnits(i.x+i.width/2),It.toUnits(i.y+i.height/2))),e.writeStartElement("g"),e.writeAttributeString("transform",String.stiFormat("rotate({0})",It.toUnits(-f))),90==f||270==f?(B-=i.x+i.height/2,R-=i.y+i.width/2):(B-=i.x+i.width/2,R-=i.y+i.height/2)),e.writeStartElement("text"),e.writeAttributeString("x",It.toUnits(B)),e.writeAttributeString("y",It.toUnits(R)),e.writeAttributeString("style",T.toString());var G=s.bookmarkValue;String.isNullOrEmpty(G)||e.writeAttributeString("id",G);for(var N=0;N<c.count;N++){var I=p[N];if(c.count>1&&(e.writeStartElement("tspan"),N>0&&(e.writeAttributeString("x",It.toUnits(B)),e.writeAttributeString("dy",It.toUnits(I.lineHeight)))),I.needWidthAlign){var O=f;while(O<0)O+=360;var Z=i.width;(O>45&&O<135||O>225&&O<315)&&(Z=i.height);var M=Z-4-2*w;e.writeAttributeString("textLength",It.toUnits(M>0?M:1))}var H=c[N];null!=H&&0==H.trim().length&&(H=" "),e.writeString(H),c.count>1&&e.writeEndElement()}e.writeFullEndElement(),0!=f&&(e.writeFullEndElement(),e.writeFullEndElement(),y&&e.writeFullEndElement())}r.ref=a},It.writeImage=function(t,r,n,o,a,s,l){var u=l.ref,p=r.component.sti_as(c);if(null!=p&&r.component.isExportAsImage(e.StiExportFormat.ImagePng)){var h=n,g={ref:h},m=p.getImage(g,e.StiExportFormat.ImagePng);if(h=g.ref,null!=m){t.writeStartElement("image");var d=r.component.bookmarkValue?r.component.bookmarkValue.toString():null;String.isNullOrEmpty(d)||t.writeAttributeString("id",d),t.writeAttributeString("style",String.stiFormat("clip-path: url(#clipPath{0});",u++));var S=new i.StiSvgData;S.x=r.x,S.y=r.y,S.width=m.width,S.height=m.height,this.writeCoordinates(t,S),t.writeStartAttribute(null,"xlink:href",null),t.writeRaw(m.base64),t.writeEndAttribute(),t.writeEndElement()}else u++}l.ref=u},It.writeBarCode=function(t,e){var r=e.component.sti_as(vt),n=new i.StiSvgGeomWriter(t),o=new i.StiBarCodeExportPainter(n);!r.isDesigning&&String.isNullOrEmpty(r.codeValue)||r.barCodeType.draw(o,r,new v(e.x,e.y,e.width,e.height),1)},It.writeShape=function(t,e){var i=e.component.sti_as(B),r=e.component.sti_as(T),n=f.transparent;null!=r&&(n=A.toColor(r.brush));var o=new D,a=new D,s=Math.trunc(1+i.size/2);if(e.x+=s,e.y+=s,e.width-=2*s,e.height-=2*s,i.shapeType.sti_is(N)&&(o.append(String.stiFormat("M {0},{1} V {3} H {2} V {1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height))),a.append(String.stiFormat("M {0},{1} V {2} Z",It.toUnits(e.x+e.width/2),It.toUnits(e.y),It.toUnits(e.y+e.height)))),i.shapeType.sti_is(O)&&(o.append(String.stiFormat("M {0},{1} V {3} H {2} V {1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height))),a.append(String.stiFormat("M {0},{1} H {2} Z",It.toUnits(e.x),It.toUnits(e.y+e.height/2),It.toUnits(e.x+e.width)))),i.shapeType.sti_is(Z)&&(o.append(String.stiFormat("M {0},{1} V {3} H {2} V {1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height))),a.append(String.stiFormat("M {0},{1} H {2} M {0},{3} H {2} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height)))),i.shapeType.sti_is(M)&&(o.append(String.stiFormat("M {0},{1} V {3} H {2} V {1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height))),a.append(String.stiFormat("M {0},{1} V {3} M {2},{1} V {3} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height)))),i.shapeType.sti_is(H)&&(o.append(String.stiFormat("M {0},{1} V {3} H {2} V {1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width-.5),It.toUnits(e.y+e.height-.5))),a=o),i.shapeType.sti_is(V)&&(o.append(String.stiFormat("M {0},{1} V {3} H {2} V {1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height))),a.append(String.stiFormat("M {0},{1} L {2},{3} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height)))),i.shapeType.sti_is(Y)&&(o.append(String.stiFormat("M {0},{1} V {3} H {2} V {1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height))),a.append(String.stiFormat("M {0},{3} L {2},{1}",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height)))),i.shapeType.sti_is(j)){var l=i.shapeType.direction;l==b.Up&&o.append(String.stiFormat("M {0},{3} L {4},{1} {2},{3} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height),It.toUnits(e.x+e.width/2))),l==b.Down&&o.append(String.stiFormat("M {0},{1} L {4},{3} {2},{1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height),It.toUnits(e.x+e.width/2))),l==b.Left&&o.append(String.stiFormat("M {2},{3} L {0},{4} {2},{1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height),It.toUnits(e.y+e.height/2))),l==b.Right&&o.append(String.stiFormat("M {0},{3} L {2},{4} {0},{1} Z",It.toUnits(e.x),It.toUnits(e.y),It.toUnits(e.x+e.width),It.toUnits(e.y+e.height),It.toUnits(e.y+e.height/2))),a=o}if(i.shapeType.sti_is(X)){var u=e.width/2*(1-It.pdfCKT),c=e.height/2*(1-It.pdfCKT),p=e.x,h=e.y,g=e.right,m=e.bottom,d=e.x+e.width/2,S=e.y+e.height/2;o.append(String.stiFormat("M {0},{1} ",It.toUnits(d),It.toUnits(m))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} ",It.toUnits(p+u),It.toUnits(m),It.toUnits(p),It.toUnits(m-c),It.toUnits(p),It.toUnits(S))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} ",It.toUnits(p),It.toUnits(h+c),It.toUnits(p+u),It.toUnits(h),It.toUnits(d),It.toUnits(h))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} ",It.toUnits(g-u),It.toUnits(h),It.toUnits(g),It.toUnits(h+c),It.toUnits(g),It.toUnits(S))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} Z",It.toUnits(g),It.toUnits(m-c),It.toUnits(g-u),It.toUnits(m),It.toUnits(d),It.toUnits(m))),a=o}if(i.shapeType.sti_is(W)){var y=i.shapeType.round,C=e.width-.5;C>e.height&&(C=e.height-.5);var v=Math.min(C,100*i.page.zoom)*y,I=v*(1-It.pdfCKT),p=e.x,h=e.y,g=e.right-.5,m=e.bottom-.5;o.append(String.stiFormat("M {0},{1} ",It.toUnits(p+v),It.toUnits(m))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} ",It.toUnits(p+I),It.toUnits(m),It.toUnits(p),It.toUnits(m-I),It.toUnits(p),It.toUnits(m-v))),o.append(String.stiFormat("V {0} ",It.toUnits(h+v))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} ",It.toUnits(p),It.toUnits(h+I),It.toUnits(p+I),It.toUnits(h),It.toUnits(p+v),It.toUnits(h))),o.append(String.stiFormat("H {0} ",It.toUnits(g-v))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} ",It.toUnits(g-I),It.toUnits(h),It.toUnits(g),It.toUnits(h+I),It.toUnits(g),It.toUnits(h+v))),o.append(String.stiFormat("V {0} ",It.toUnits(m-v))),o.append(String.stiFormat("C {0},{1} {2},{3} {4},{5} Z",It.toUnits(g),It.toUnits(m-I),It.toUnits(g-I),It.toUnits(m),It.toUnits(g-v),It.toUnits(m))),a=o}if(i.shapeType.sti_is(K)){var w=i.shapeType.sti_as(K),R=(null!=i.report?i.report.unit.convertToHInches(w.bevel):w.bevel)*i.page.zoom,P=R;w.autoSize&&(R=e.width/(2.414*1.414),P=e.height/(2.414*1.414)),R>e.width/2&&(R=e.width/2),P>e.height/2&&(P=e.height/2),o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x+R),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} {2},{3} ",this.toUnits(e.right-R),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y+P))),o.append(String.stiFormat("{0},{1} {2},{3} ",this.toUnits(e.right),this.toUnits(e.bottom-P),this.toUnits(e.right-R),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} {2},{3} ",this.toUnits(e.x+R),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom-P))),o.append(String.stiFormat("{0},{1} {2},{3} ",this.toUnits(e.x+R),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom-P))),o.append(String.stiFormat("{0},{1} {2},{3} Z",this.toUnits(e.x),this.toUnits(e.y+P),this.toUnits(e.x+R),this.toUnits(e.y))),a=o}if(i.shapeType.sti_is(J)){var l=i.shapeType.direction,F=i.shapeType.arrowWidth,x=i.shapeType.arrowHeight,k=e.width*F,E=e.height*x;l!=b.Left&&l!=b.Right||(k=e.height*F,E=e.width*x),l==b.Up&&(o.append(String.stiFormat("M {0},{1} ",It.toUnits(e.x+e.width-k),It.toUnits(e.y+e.height))),o.append(String.stiFormat("L {0},{1} ",It.toUnits(e.x+e.width-k),It.toUnits(e.y+E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width),It.toUnits(e.y+E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width/2),It.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x),It.toUnits(e.y+E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+k),It.toUnits(e.y+E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+k),It.toUnits(e.y+e.height))),o.append(String.stiFormat("{0},{1} Z",It.toUnits(e.x+e.width-k),It.toUnits(e.y+e.height)))),l==b.Down&&(o.append(String.stiFormat("M {0},{1} ",It.toUnits(e.x+k),It.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} ",It.toUnits(e.x+k),It.toUnits(e.y+e.height-E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x),It.toUnits(e.y+e.height-E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width/2),It.toUnits(e.y+e.height))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width),It.toUnits(e.y+e.height-E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width-k),It.toUnits(e.y+e.height-E))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width-k),It.toUnits(e.y))),o.append(String.stiFormat("{0},{1} Z",It.toUnits(e.x+k),It.toUnits(e.y)))),l==b.Left&&(o.append(String.stiFormat("M {0},{1} ",It.toUnits(e.x+e.width),It.toUnits(e.y+k))),o.append(String.stiFormat("L {0},{1} ",It.toUnits(e.x+E),It.toUnits(e.y+k))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+E),It.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x),It.toUnits(e.y+e.height/2))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+E),It.toUnits(e.y+e.height))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+E),It.toUnits(e.y+e.height-k))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width),It.toUnits(e.y+e.height-k))),o.append(String.stiFormat("{0},{1} Z",It.toUnits(e.x+e.width),It.toUnits(e.y+k)))),l==b.Right&&(o.append(String.stiFormat("M {0},{1} ",It.toUnits(e.x),It.toUnits(e.y+e.height-k))),o.append(String.stiFormat("L {0},{1} ",It.toUnits(e.x+e.width-E),It.toUnits(e.y+e.height-k))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width-E),It.toUnits(e.y+e.height))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width),It.toUnits(e.y+e.height/2))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width-E),It.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x+e.width-E),It.toUnits(e.y+k))),o.append(String.stiFormat("{0},{1} ",It.toUnits(e.x),It.toUnits(e.y+k))),o.append(String.stiFormat("{0},{1} Z",It.toUnits(e.x),It.toUnits(e.y+e.height-k)))),a=o}if(i.shapeType.sti_is(U)){var G=e.width<e.height?e.width/2:e.height/2,_=e.height/3.8,L=e.width/3.8,St=e.height<e.width?e.height/2:e.width/2;switch(i.shapeType.sti_as(U).direction){case b.Left:case b.Right:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+e.height/2))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x+G),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+G),this.toUnits(e.y+_))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-G),this.toUnits(e.y+_))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-G),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.y+e.height/2))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-G),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-G),this.toUnits(e.bottom-_))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+G),this.toUnits(e.bottom-_))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+G),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.x),this.toUnits(e.y+e.height/2)));break;case b.Down:case b.Up:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+St))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x+e.width/2),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.y+St))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-L),this.toUnits(e.y+St))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-L),this.toUnits(e.bottom-St))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.bottom-St))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+e.width/2),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom-St))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+L),this.toUnits(e.bottom-St))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+L),this.toUnits(e.y+St))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.x),this.toUnits(e.y+St)));break}a=o}if(i.shapeType.sti_is(z)){var ft=0,yt=0,bt=0;switch(e.height>e.width?(yt=e.width/4,ft=yt,bt=yt/2):(ft=e.height/4,yt=ft,bt=yt/2),i.shapeType.sti_as(z).direction){case b.Up:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom-ft))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-(bt+ft)),this.toUnits(e.bottom-ft))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-(bt+ft)),this.toUnits(e.y+yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-2*yt),this.toUnits(e.y+yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-yt),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.y+yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-bt),this.toUnits(e.y+yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-bt),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.x),this.toUnits(e.bottom)));break;case b.Left:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.right),this.toUnits(e.bottom))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.right),this.toUnits(e.y+bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+yt),this.toUnits(e.y+bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+yt),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x),this.toUnits(e.y+yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+yt),this.toUnits(e.y+2*yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+yt),this.toUnits(e.y+yt+bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-ft),this.toUnits(e.y+yt+bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-ft),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.right),this.toUnits(e.bottom)));break;case b.Down:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.right),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x+bt),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+bt),this.toUnits(e.bottom-yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom-yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+yt),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+2*yt),this.toUnits(e.bottom-yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+yt+bt),this.toUnits(e.bottom-yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+yt+bt),this.toUnits(e.y+ft))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.y+ft))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.right),this.toUnits(e.y)));break;case b.Right:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom-bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-yt),this.toUnits(e.bottom-bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-yt),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.bottom-yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-yt),this.toUnits(e.bottom-2*yt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-yt),this.toUnits(e.bottom-yt-bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+ft),this.toUnits(e.bottom-yt-bt))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+ft),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.x),this.toUnits(e.y)));break}a=o}if(i.shapeType.sti_is(Q)){var Ct=e.width>e.height?e.height/2:e.width/2;switch(i.shapeType.sti_as(Q).direction){case b.Right:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x+Ct),this.toUnits(e.y+e.height/2))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-Ct),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.y+e.height/2))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-Ct),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.x),this.toUnits(e.y)));break;case b.Left:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.right),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x+Ct),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x),this.toUnits(e.y+e.height/2))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+Ct),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right-Ct),this.toUnits(e.y+e.height/2))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.right),this.toUnits(e.y)));break;case b.Up:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+Ct))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x+e.width/2),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.y+Ct))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+e.width/2),this.toUnits(e.bottom-Ct))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.x),this.toUnits(e.y+Ct)));break;case b.Down:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} ",this.toUnits(e.x+e.width/2),this.toUnits(e.y+Ct))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.right),this.toUnits(e.bottom-Ct))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x+e.width/2),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} ",this.toUnits(e.x),this.toUnits(e.bottom-Ct))),o.append(String.stiFormat("{0},{1} Z",this.toUnits(e.x),this.toUnits(e.y)));break}a=o}if(i.shapeType.sti_is(q)){var G=e.height/3;G+=4,o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+G))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} ",this.toUnits(e.right),this.toUnits(e.y+G),this.toUnits(e.right),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.y+G))),G-=4,o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.width/2-G/2+e.x),this.toUnits(e.y+1+G/2))),o.append(String.stiFormat("a {0},{0} 0 1,0 {1},0 a {0},{0} 0 1,0 -{1},0 ",G/2,G)),o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.width/2-G/2+e.x),this.toUnits(e.bottom-2-G/2))),o.append(String.stiFormat("a {0},{0} 0 1,0 {1},0 a {0},{0} 0 1,0 -{1},0 Z",G/2,G)),a=o}if(i.shapeType.sti_is($)){var vt=(e.height-e.height/6)/2;o.append(String.stiFormat("M {0},{1} h {2} v {3} H {0} V {1} ",this.toUnits(e.x),this.toUnits(e.bottom-vt),this.toUnits(e.width),this.toUnits(vt))),o.append(String.stiFormat("M {0},{1} h {2} v {3} H {0} V {1} Z",this.toUnits(e.x),this.toUnits(e.y),this.toUnits(e.width),this.toUnits(vt))),a=o}if(i.shapeType.sti_is(tt)&&(o.append(String.stiFormat("M {0},{1} L {2},{3} ",this.toUnits(e.right),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.bottom))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+e.height/5),this.toUnits(e.x+e.width/5),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y))),a=o),i.shapeType.sti_is(et)){switch(i.shapeType.sti_as(et).direction){case b.Down:case b.Up:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.right),this.toUnits(e.y),this.toUnits(e.x),this.toUnits(e.y)));break;case b.Left:case b.Right:o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.right),this.toUnits(e.y),this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y)));break}a=o}if(i.shapeType.sti_is(it)&&(o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+e.height/2))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.x+e.width/2),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y+e.height/2),this.toUnits(e.x+e.width/2),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+e.height/2))),a=o),i.shapeType.sti_is(rt)&&(o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+e.height/5))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+e.height/5))),a=o),i.shapeType.sti_is(nt)){var G=e.height/5,St=e.width/5;switch(i.shapeType.sti_as(nt).direction){case b.Down:o.append(String.stiFormat("M {0},{1} L {2},{3} ",this.toUnits(e.x),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.bottom-G),this.toUnits(e.x+e.width/2),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.y)));break;case b.Up:o.append(String.stiFormat("M {0},{1} L {2},{3} ",this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+G))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.x+e.width/2),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y+G),this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom)));break;case b.Left:o.append(String.stiFormat("M {0},{1} L {2},{3} ",this.toUnits(e.x+St),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x+St),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+e.height/2),this.toUnits(e.x+St),this.toUnits(e.y)));break;case b.Right:o.append(String.stiFormat("M {0},{1} L {2},{3} ",this.toUnits(e.x),this.toUnits(e.y),this.toUnits(e.right-St),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.y+e.height/2),this.toUnits(e.right-St),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y)));break}a=o}if(i.shapeType.sti_is(ot)){var St=e.width/5,G=e.height/5,At=e.width/2,wt=e.height/2;switch(i.shapeType.sti_as(ot).direction){case b.Left:case b.Right:o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} ",this.toUnits(e.x),this.toUnits(e.y+wt),this.toUnits(e.x+St),this.toUnits(e.y),this.toUnits(e.right-St),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.y+wt),this.toUnits(e.right-St),this.toUnits(e.bottom),this.toUnits(e.x+St),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+wt)));break;case b.Down:case b.Up:o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} ",this.toUnits(e.x+At),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y+G),this.toUnits(e.right),this.toUnits(e.bottom-G))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.x+At),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.y+G),this.toUnits(e.x+At),this.toUnits(e.y)));break}a=o}if(i.shapeType.sti_is(at)&&(o.append(String.stiFormat("M {0},{1} L {2},{3} ",this.toUnits(e.x),this.toUnits(e.y+e.height/2),this.toUnits(e.x+e.width/2),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.y+e.height/2),this.toUnits(e.x+e.width/2),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+e.height/2),this.toUnits(e.right),this.toUnits(e.y+e.height/2))),a=o),i.shapeType.sti_is(st)){var St=e.width/7,G=e.height/7;o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} {6},{7} {8},{9} ",this.toUnits(e.x),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y))),o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} {6},{7} {8},{9} Z",this.toUnits(e.x+St),this.toUnits(e.y+G),this.toUnits(e.x+St),this.toUnits(e.bottom-G),this.toUnits(e.right-St),this.toUnits(e.bottom-G),this.toUnits(e.right-St),this.toUnits(e.y+G),this.toUnits(e.x+St),this.toUnits(e.y+G))),a=o}if(i.shapeType.sti_is(lt)){var G=e.height/3;o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+G))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.y+G),this.toUnits(e.right),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.y+G))),a=o}if(i.shapeType.sti_is(ut)){var St=e.width/4,G=e.height/4;o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x),this.toUnits(e.y+G))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} ",this.toUnits(e.x+St),this.toUnits(e.y),this.toUnits(e.x+e.width/2),this.toUnits(e.y+G),this.toUnits(e.right-St),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y+G))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} ",this.toUnits(e.right-St),this.toUnits(e.y+e.height/2),this.toUnits(e.right),this.toUnits(e.bottom-G),this.toUnits(e.right-St),this.toUnits(e.bottom),this.toUnits(e.x+e.width/2),this.toUnits(e.bottom-G))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.x+St),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom-G),this.toUnits(e.x+St),this.toUnits(e.y+e.height/2),this.toUnits(e.x),this.toUnits(e.y+G))),a=o}if(i.shapeType.sti_is(ct)){var St=e.width/7,G=e.height/7;o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} {6},{7} {8},{9} Z",this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x+e.width/5),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y),this.toUnits(e.right-e.width/5),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom))),a=o}if(i.shapeType.sti_is(pt)){var St=e.width/3,G=e.height/3;o.append(String.stiFormat("M {0},{1} ",this.toUnits(e.x+St),this.toUnits(e.y))),o.append(String.stiFormat("L {0},{1} {2},{3} {4},{5} {6},{7} ",this.toUnits(e.right-St),this.toUnits(e.y),this.toUnits(e.right-St),this.toUnits(e.y+G),this.toUnits(e.right),this.toUnits(e.y+G),this.toUnits(e.right),this.toUnits(e.bottom-G))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} ",this.toUnits(e.right-St),this.toUnits(e.bottom-G),this.toUnits(e.right-St),this.toUnits(e.bottom),this.toUnits(e.x+St),this.toUnits(e.bottom),this.toUnits(e.x+St),this.toUnits(e.bottom-G))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.x),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.y+G),this.toUnits(e.x+St),this.toUnits(e.y+G),this.toUnits(e.x+St),this.toUnits(e.y))),a=o}if(i.shapeType.sti_is(ht)){var Tt=e.height/2.6,Bt=e.width/5.5;o.append(String.stiFormat("M {0},{1} L {2},{3} ",this.toUnits(e.x),this.toUnits(e.y+Tt),this.toUnits(e.x+e.width/2),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.y+Tt),this.toUnits(e.right-Bt),this.toUnits(e.bottom),this.toUnits(e.x+Bt),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+Tt))),a=o}if(i.shapeType.sti_is(gt)){var Ct=e.width/4.75;o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} {6},{7} {8},{9} Z",this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x+Ct),this.toUnits(e.y),this.toUnits(e.right-Ct),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom))),a=o}if(i.shapeType.sti_is(mt)){var St=e.width/7.2,G=e.height/4.6;o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} ",this.toUnits(e.x),this.toUnits(e.y+G),this.toUnits(e.x+St),this.toUnits(e.y),this.toUnits(e.right-St),this.toUnits(e.y))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.y+G),this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.y+G))),a=o}if(i.shapeType.sti_is(dt)){var St=e.width/7.2,G=e.height/4.6;o.append(String.stiFormat("M {0},{1} L {2},{3} {4},{5} ",this.toUnits(e.x),this.toUnits(e.y),this.toUnits(e.right-St),this.toUnits(e.y),this.toUnits(e.right),this.toUnits(e.y+G))),o.append(String.stiFormat("{0},{1} {2},{3} {4},{5} {6},{7} Z",this.toUnits(e.right),this.toUnits(e.bottom),this.toUnits(e.x+St),this.toUnits(e.bottom),this.toUnits(e.x),this.toUnits(e.bottom-G),this.toUnits(e.x),this.toUnits(e.y))),a=o}(o.length>0||a.length>0)&&(o==a?(t.writeStartElement("path"),n.stiEquals(f.transparent)?t.writeAttributeString("fill","none"):It.writeFillInfo(t,n),i.borderColor.stiEquals(f.transparent)?t.writeAttributeString("stroke","none"):It.writeStrokeInfo(t,i.borderColor,i.size,i.style),t.writeAttributeString("transform","translate(1.5, 1.5)"),t.writeAttributeString("d",o.toString()),t.writeEndElement()):(o.length>0&&!n.stiEquals(f.transparent)&&(t.writeStartElement("path"),It.writeFillInfo(t,n),t.writeAttributeString("stroke","none"),t.writeAttributeString("d",o.toString()),t.writeEndElement()),a.length>0&&!i.borderColor.stiEquals(f.transparent)&&(t.writeStartElement("path"),t.writeAttributeString("fill","none"),It.writeStrokeInfo(t,i.borderColor,i.size,i.style),t.writeAttributeString("d",a.toString()),t.writeEndElement())))},It.writeRoundedRectanglePrimitive=function(t,e){var i=e.component;if(!i.color.stiEquals(f.transparent)){var r=new D,n=i.round,o=e.width;o>e.height&&(o=e.height);var a=Math.min(o,100*i.page.zoom)*n,s=a*(1-It.pdfCKT),l=e.x,u=e.y,c=e.x+e.width,p=e.y+e.height;r.append(String.stiFormat("M {0} {1} ",It.toUnits(l+a),It.toUnits(p))),r.append(String.stiFormat("C {0} {1} {2} {3} {4} {5} ",It.toUnits(l+s),It.toUnits(p),It.toUnits(l),It.toUnits(p-s),It.toUnits(l),It.toUnits(p-a))),r.append(String.stiFormat("V {0} ",It.toUnits(u+a))),r.append(String.stiFormat("C {0} {1} {2} {3} {4} {5} ",It.toUnits(l),It.toUnits(u+s),It.toUnits(l+s),It.toUnits(u),It.toUnits(l+a),It.toUnits(u))),r.append(String.stiFormat("H {0} ",It.toUnits(c-a))),r.append(String.stiFormat("C {0} {1} {2} {3} {4} {5} ",It.toUnits(c-s),It.toUnits(u),It.toUnits(c),It.toUnits(u+s),It.toUnits(c),It.toUnits(u+a))),r.append(String.stiFormat("V {0} ",It.toUnits(p-a))),r.append(String.stiFormat("C {0} {1} {2} {3} {4} {5} Z",It.toUnits(c),It.toUnits(p-s),It.toUnits(c-s),It.toUnits(p),It.toUnits(c-a),It.toUnits(p))),t.writeStartElement("path"),t.writeAttributeString("fill","none"),It.writeStrokeInfo(t,i.color,i.size,i.style),t.writeAttributeString("d",r.toString()),t.writeEndElement()}},It.writeIndicator=function(t,e){var i=new v(e.x,e.y,e.width,e.height),r=e.component.sti_as(P);null!=r&&null!=r.indicator&&(r.indicator.sti_is(a)&&this.writeIconSetIndicatorTypePainter(t,r,i),r.indicator.sti_is(u)&&this.writeDataBarIndicator(t,r,i)),e.x=i.x,e.y=i.y,e.width=i.width,e.height=i.height},It.writeIconSetIndicatorTypePainter=function(t,e,i){var r=i.clone();r.inflate(-1,-1);var s=e.indicator.sti_as(a);if(null!=s&&s.icon!=o.None){var l=n.getIcon(s.icon),u=18,c=18,h=r.clone();switch(s.alignment){case p.TopLeft:h=new v(h.x,h.y,u,c),i.x+=h.width+1,i.width-=h.width+1;break;case p.TopCenter:h=new v(h.x+(h.width-u)/2,h.y,u,c);break;case p.TopRight:h=new v(h.right-u,h.y,u,c),i.width-=h.width+1;break;case p.MiddleLeft:h=new v(h.x,h.y+(h.height-c)/2,u,c),i.x+=h.width+1,i.width-=h.width+1;break;case p.MiddleCenter:h=new v(h.x+(h.width-u)/2,h.y+(h.height-c)/2,u,c);break;case p.MiddleRight:h=new v(h.right-u,h.y+(h.height-c)/2,u,c),i.width-=h.width+1;break;case p.BottomLeft:h=new v(h.x,h.bottom-c,u,c),i.x+=h.width+1,i.width-=h.width+1;break;case p.BottomCenter:h=new v(h.x+(h.width-u)/2,h.bottom-c,u,c);break;case p.BottomRight:h=new v(h.right-u,h.bottom-c,u,c),i.width-=h.width+1;break}t.writeStartElement("image"),It.writeCoordinates(t,h),t.writeAttributeString("xlink:href",l),t.writeEndElement()}},It.writeDataBarIndicator=function(e,r,n){var o=n.clone();o.inflate(-2,-2);var a=r.indicator.sti_as(u);if(null!=a&&0!=a.value){var c=a.maximum+Math.abs(a.minimum),p=o.clone(),h=p.width*Math.abs(a.minimum)/c,g=p.width*a.maximum/c,m=p.width*Math.abs(a.value)/c,d=a.direction;d==l.Default&&(d=null!=r.textOptions&&r.textOptions.rightToLeft?l.RighToLeft:l.LeftToRight);var S=0;if(d==l.LeftToRight?(a.value<0?p.x+=h-m:p.x+=h,p.width=m):(S=180,a.value<0?p.x=p.right-h:p.x=p.right-h-m,p.width=m),a.value<0&&(S+=180),p.width>0&&p.height>0)if(a.brushType==t.Report.Components.StiBrushType.Gradient){var f=void 0;if(f=d==l.LeftToRight?a.value>0?new v(n.left+h,n.top,g,n.height):new v(n.left,n.top,h,n.height):a.value<0?new v(n.left+g,n.top,h,n.height):new v(n.left,n.top,g,n.height),p.width>0&&p.width<1&&(p.width=1),f.width>0&&f.width<1&&(f.width=1),f.width>0&&p.width>0){var y=a.value<0?a.negativeColor:a.positiveColor,b=s.light(y,200);f.x-=.1*f.width,f.width+=.2*f.width;var C=i.StiBrushSvgHelper.writeGradientBrush(e,new G(y,b,S),f);e.writeStartElement("rect"),It.writeCoordinates(e,p),e.writeAttributeString("fill",String.stiFormat("url(#{0})",C)),e.writeEndElement()}}else{var I=a.value<0?a.negativeColor:a.positiveColor;e.writeStartElement("rect"),It.writeCoordinates(e,p),e.writeAttributeString("fill",String.stiFormat("#{0:X2}{1:X2}{2:X2}",I.r,I.g,I.b)),e.writeEndElement()}if(a.showBorder){var I=a.value<0?a.negativeBorderColor:a.positiveBorderColor;e.writeStartElement("rect"),It.writeCoordinates(e,p),e.writeAttributeString("fill","none"),e.writeAttributeString("stroke",String.stiFormat("#{0:X2}{1:X2}{2:X2}",I.r,I.g,I.b)),e.writeAttributeString("stroke-width","1"),e.writeEndElement()}}},It.saveComponentToString=function(r,n,o,a,s){void 0===n&&(n=e.ImageFormat.Jpeg),void 0===o&&(o=.75),void 0===a&&(a=100),void 0===s&&(s=!0);var l=new S(F.UTF8),u=-1;l.indentation=u<0?0:u,l.formatting=u<0?g.None:g.Indented;var c=d.getImageCodec("image/jpeg");a/=100;var p=r.report,h=i.StiMatrix.htmlScaleX,m=i.StiMatrix.htmlScaleY;s&&(h=1,m=1);var f=h*p.unit.convertToHInches(r.left),y=m*p.unit.convertToHInches(r.top),b=h*p.unit.convertToHInches(r.right),C=m*p.unit.convertToHInches(r.bottom),v=new i.StiSvgData;v.x=0,v.y=0,v.width=Math.floor(b-f),v.height=Math.floor(C-y),v.component=r;var I=r.isExportAsImage(e.StiExportFormat.ImageSvg),A=It.checkShape(r),w=1,T=1,B=r.sti_as(P);if(null!=B&&!I&&null!=B.text&&B.text.trim().length>0&&(l.writeStartElement("defs"),l.writeStartElement("clipPath"),l.writeStartElement("rect"),It.writeCoordinates(l,v),l.writeEndElement(),l.writeEndElement(),l.writeEndElement()),!A&&!I){var R={ref:w};It.writeBorder1(l,v,R),w=R.ref}if(r.sti_is(P)&&!I){It.writeIndicator(l,v);var x={ref:T};It.writeText(l,v,x,u,!0),T=x.ref}if(A)It.writeShape(l,v);else if(r.sti_is(vt))It.writeBarCode(l,v);else if(r.sti_is(t.Report.Chart.IStiChart))i.StiChartSvgHelper.writeChart(l,v);else if(r.sti_is(t.Report.Components.Gauge.IStiGauge))i.StiGaugeSvgHelper.writeGauge(l,v);else if(r.sti_is(t.Report.Maps.StiMap))i.StiMapSvgHelper.drawMap(l,r,v.width,v.height,!1);else if(r.sti_is(bt))s?It.writeCheckBox(l,v,!0):It.writeCheckBox(l,v,r.checkedValue);else if(I){var x={ref:T};It.writeImage(l,v,a,n,o,c,x),T=x.ref}return l.flush(),l.textWriter.getStringBuilder().toString()},It.saveToString=function(t,i,r,n,o,a,s,l){if(void 0===n&&(n=!0),void 0===o&&(o={ref:0}),void 0===a&&(a=e.ImageFormat.Png),void 0===s&&(s=.75),void 0===l&&(l=100),!r)return It.writeDocument(t,i,n,o,a,s,l).getStringBuilder().toString();It.writeDocument(t,i,n,o,a,s,l).getStringBuilder().toString()},It.writeCheckBox=function(t,e,r){var n=e.component.sti_as(bt);if(null==n||null==r)return;var o=i.StiChartSvgHelper.writeFillBrush(t,n.textBrush,new v(e.x,e.y,e.width,e.height));t.writeStartElement("g");var a=200,s=1/(a/Math.min(e.width,e.height)),l=0,u=0;e.width>e.height?l=Math.abs(e.width/2-a*s/2):e.width<e.height&&(u=Math.abs(e.height/2-a*s/2)),t.writeAttributeString("transform",String.stiFormat("translate({0},{1})",(e.x+l).toString().replaceAll(",","."),(e.y+u).toString().replaceAll(",","."))),t.writeStartElement("path"),t.writeAttributeString("d",this.getCheckBoxData(n,r)),t.writeAttributeString("stroke",String.stiFormat("#{0:X2}{1:X2}{2:X2}",n.contourColor.r,n.contourColor.g,n.contourColor.b)),t.writeAttributeString("stroke-width",n.size.toString()),t.writeAttributeString("stroke-linecap","round"),t.writeAttributeString("stroke-linejoin","round"),t.writeAttributeString("transform",String.stiFormat("scale({0})",s)),t.writeAttributeString("style",o),t.writeEndElement(),t.writeEndElement()},It.getCheckBoxData=function(t,e){var i=t.checkStyle,r=!1,n=e.toString().trim().toLowerCase(),o=t.values.split("/");1==o.length&&(o=t.values.split(";")),1==o.length&&(o=t.values.split(",")),r=n==o[0].trim().toLowerCase(),i=r?t.checkStyleForTrue:t.checkStyleForFalse;var a=null;switch(i){case Ct.Cross:a="m 62.567796,147.97593 c -0.55,-0.14223 -2.162828,-0.5128 -3.584062,-0.82348 -3.647667,-0.79738 -9.670499,-5.83775 -14.242817,-11.91949 l "+"-3.902341,-5.19058 5.080199,-1.13481 c 7.353071,-1.64253 13.640456,-5.71752 21.826811,-14.14646 l 7.208128,-7.42171 "+"-6.410736,-7.513354 c -11.773129,-13.79803 -14.346726,-23.01954 -8.627769,-30.91434 2.894109,-3.9952 11.818482,-12.369333 "+"13.182086,-12.369333 0.411356,0 1.063049,1.6875 1.448207,3.750003 0.980474,5.25038 6.456187,16.76587 10.936694,23 2.075266,2.8875 "+"3.991125,5.25 4.257464,5.25 0.266339,0 3.775242,-3.4875 7.797566,-7.75 16.397034,-17.37615 29.674184,-19.76481 38.280564,-6.88699 "+"4.15523,6.21753 4.18631,8.07093 0.14012,8.3552 -5.84833,0.41088 -17.16241,8.5342 -25.51465,18.319104 l -4.63153,5.42599 "+"4.87803,4.31529 c 6.55108,5.79533 18.8991,11.89272 25.84076,12.76002 3.0455,0.38051 5.53727,1.10582 5.53727,1.6118 0,2.7809 "+"-9.26611,14.41872 -13.03,16.36511 -7.96116,4.11687 -16.36991,0.71207 -32.764584,-13.26677 l -4.985957,-4.25125 -7.086791,8.97188 c "+"-3.897736,4.93454 -8.82141,10.1198 -10.9415,11.52281 -3.906121,2.58495 -8.86588,4.41339 -10.691162,3.94136 z";break;case Ct.Check:a="M 60.972125,162.49704 C 51.172676,136.72254 43.561975,123.37669 35.370344,117.6027 l -4.45827,-3.14248 2.75159,-2.89559 c 3.875121,-4.07793 "+"10.034743,-7.49924 14.902472,-8.27747 3.859874,-0.61709 4.458306,-0.38024 8.535897,3.37835 2.660692,2.45254 6.265525,7.60856 9.167226,13.11196 "+"2.630218,4.98849 4.910542,9.06999 5.067388,9.06999 0.156846,0 2.31372,-3.0375 4.793052,-6.75 C 96.259164,91.956015 129.68299,58.786374 157.56485,41.281603 l "+"8.84913,-5.555656 2.2633,2.631238 2.26329,2.631237 -7.76266,6.294183 C 139.859,66.19023 108.01682,105.51363 89.042715,138.83563 c -6.680477,11.73214 "+"-7.172359,12.31296 -15.090788,17.81963 -4.501873,3.13071 -9.044031,6.30443 -10.093684,7.05271 -1.708923,1.21826 -2.010678,1.09165 -2.886118,-1.21093 z";break;case Ct.CrossRectangle:a="m 24.152542,102.04237 0,-72.499996 74.5,0 74.499998,0 0,72.499996 0,72.5 -74.499998,0 -74.5,0 0,-72.5 z m 133.758188,0.25 -0.25819,-57.249996 "+"-58.999998,0 -59,0 -0.259695,55.999996 c -0.142833,30.8 -0.04446,56.5625 0.218615,57.25 0.375181,0.98048 13.207991,1.25 59.517885,1.25 l "+"59.039573,0 -0.25819,-57.25 z m -90.574091,43.18692 c -1.823747,-0.3912 -4.926397,-1.85716 -6.894778,-3.25768 -3.319254,-2.36169 -12.289319,-12.40741 "+"-12.289319,-13.76302 0,-0.32888 2.417494,-1.13897 5.372209,-1.80021 7.185193,-1.60797 13.747505,-5.93496 21.803114,-14.3763 l 6.675323,-6.99496 "+"-6.379078,-7.31436 C 64.931387,85.71231 61.643682,76.29465 65.471903,68.89169 67.054097,65.83207 78.56175,54.542374 80.098251,54.542374 c 0.45744,0 "+"1.146839,1.6875 1.531997,3.75 0.980474,5.250386 6.456187,16.765876 10.936694,22.999996 2.075266,2.8875 3.991125,5.25 4.257464,5.25 0.266339,0 "+"3.775244,-3.4875 7.797564,-7.75 16.39704,-17.376139 29.67419,-19.764806 38.28057,-6.88698 4.15523,6.21752 4.18631,8.07092 0.14012,8.35519 -5.82996,0.40959 "+"-18.23707,9.34942 -25.91566,18.67328 -3.90068,4.73647 -3.97203,4.95414 -2.2514,6.86861 3.19054,3.54997 13.7039,10.54321 18.97191,12.61967 2.83427,1.11716 "+"7.43737,2.33421 10.22912,2.70455 2.79175,0.37034 5.07591,0.9956 5.07591,1.38947 0,2.11419 -8.37504,13.20895 -11.6517,15.4355 -8.39423,5.70403 "+"-16.63203,2.77 -34.14289,-12.16054 l -4.985955,-4.25125 -7.086791,8.97188 c -9.722344,12.3085 -16.524852,16.55998 -23.948565,14.96754 z";break;case Ct.CheckRectangle:a="m 19.915254,103.5 0,-72.5 71.942245,0 71.942241,0 6.55727,-4.11139 6.55726,-4.11139 1.96722,2.36139 c 1.08197,1.298765 1.98219,2.644166 2.00049,2.98978 "+"0.0183,0.345615 -2.44173,2.53784 -5.46673,4.87161 l -5.5,4.243219 0,69.378391 0,69.37839 -74.999991,0 -75.000005,0 0,-72.5 z m 133.999996,3.87756 c "+"0,-49.33933 -0.12953,-53.514947 -1.62169,-52.276568 -2.78014,2.307312 -15.68408,17.90053 -24.32871,29.399008 -10.4919,13.955575 -23.47926,33.53736 "+"-29.514025,44.5 -4.457326,8.09707 -5.134776,8.80812 -14.291256,15 -5.28667,3.575 -9.903486,6.62471 -10.259592,6.77712 -0.356107,0.15242 -1.912439,-2.99758 "+"-3.458515,-7 -1.546077,-4.00241 -5.258394,-12.41205 -8.249593,-18.68809 -4.285436,-8.99155 -6.676569,-12.64898 -11.27758,-17.25 C 47.70282,104.62757 "+"44.364254,102 43.495254,102 c -2.798369,0 -1.704872,-1.66044 3.983717,-6.049158 5.593548,-4.31539 13.183139,-7.091307 16.801313,-6.145133 3.559412,0.930807 "+"9.408491,8.154973 13.919775,17.192241 l 4.46286,8.94025 4.54378,-6.83321 C 95.518219,96.605618 108.21371,81.688517 125.80695,63.75 L 143.21531,46 l "+"-53.650021,0 -53.650035,0 0,57.5 0,57.5 59.000005,0 58.999991,0 0,-53.62244 z";break;case Ct.CrossCircle:a="M 83.347458,173.13597 C 61.069754,168.04956 42.193415,152.8724 32.202285,132.01368 23.4014,113.63986 23.679644,89.965903 32.91889,71.042373 "+"41.881579,52.685283 60.867647,37.139882 80.847458,31.799452 c 10.235111,-2.735756 31.264662,-2.427393 40.964762,0.600679 26.18668,8.174684 "+"46.06876,28.926852 51.62012,53.879155 2.43666,10.952327 1.56754,28.058524 -1.98036,38.977594 -6.65679,20.48707 -25.64801,38.95163 -47.32647,46.01402 "+"-6.3909,2.08202 -10.18566,2.59644 -21.27805,2.88446 -9.033911,0.23456 -15.484931,-0.10267 -19.500002,-1.01939 z M 112.4138,158.45825 c 17.13137,-3.13002 "+"33.71724,-15.96081 41.41353,-32.03742 14.8975,-31.119027 -1.10807,-67.659584 -34.40232,-78.540141 -6.71328,-2.193899 -9.93541,-2.643501 "+"-19.07755,-2.661999 -9.354252,-0.01893 -12.16228,0.37753 -18.768532,2.649866 -17.155451,5.900919 -29.669426,17.531424 -36.438658,33.866137 "+"-2.152301,5.193678 -2.694658,8.35455 -3.070923,17.89744 -0.518057,13.139047 0.741843,19.201887 6.111644,29.410237 4.106815,7.80733 15.431893,19.09359 "+"23.36818,23.28808 12.061362,6.37467 27.138828,8.6356 40.864629,6.1278 z M 69.097458,133.41654 c -2.8875,-2.75881 -5.25,-5.35869 -5.25,-5.77751 "+"0,-0.41882 5.658529,-6.30954 12.57451,-13.0905 l 12.57451,-12.329 L 76.198053,89.392633 63.399628,76.565738 68.335951,71.554056 c 2.714978,-2.756426 "+"5.304859,-5.011683 5.75529,-5.011683 0.450432,0 6.574351,5.611554 13.608709,12.470121 l 12.78974,12.470119 4.42889,-4.553471 c 2.43588,-2.50441 "+"8.39186,-8.187924 13.23551,-12.630032 l 8.80663,-8.076559 5.34744,5.281006 5.34743,5.281007 -12.96155,12.557899 -12.96154,12.557897 13.13318,13.16027 "+"13.13319,13.16027 -5.18386,4.66074 c -2.85112,2.5634 -5.70472,4.66073 -6.34134,4.66073 -0.63661,0 -6.5434,-5.4 -13.12621,-12 -6.58281,-6.6 -12.3871,-12 "+"-12.89844,-12 -0.511329,0 -6.593363,5.60029 -13.515627,12.44509 l -12.585935,12.44508 -5.25,-5.016 z";break;case Ct.DotCircle:a="M 81.652542,170.5936 C 59.374838,165.50719 40.498499,150.33003 30.507369,129.47131 21.706484,111.09749 21.984728,87.42353 31.223974,68.5 "+"40.186663,50.14291 59.172731,34.597509 79.152542,29.257079 89.387653,26.521323 110.4172,26.829686 120.1173,29.857758 c 26.18668,8.174684 "+"46.06876,28.926852 51.62012,53.879152 2.43666,10.95233 1.56754,28.05853 -1.98036,38.9776 -6.65679,20.48707 -25.64801,38.95163 -47.32647,46.01402 "+"-6.3909,2.08202 -10.18566,2.59644 -21.27805,2.88446 -9.033907,0.23456 -15.484927,-0.10267 -19.499998,-1.01939 z m 29.999998,-15.098 c 20.68862,-4.34363 "+"38.01874,-20.45437 44.09844,-40.9956 2.36228,-7.9813 2.36228,-22.0187 0,-30 C 150.08927,65.371023 134.63549,50.297336 114.65254,44.412396 "+"106.5531,42.027127 90.741304,42.026386 82.695253,44.4109 62.460276,50.407701 46.686742,66.039241 41.6053,85.13096 c -1.948821,7.32201 -1.86506,23.11641 "+"0.158766,29.93754 8.730326,29.42481 38.97193,46.91812 69.888474,40.4271 z M 90.004747,122.6703 C 76.550209,117.63801 69.825047,101.82445 "+"75.898143,89.5 c 2.136718,-4.33615 7.147144,-9.356192 11.754399,-11.776953 5.578622,-2.931141 16.413098,-2.927504 22.052908,0.0074 18.03,9.382663 "+"19.07573,32.784373 1.91442,42.841563 -5.57282,3.26589 -15.830952,4.2617 -21.615123,2.09829 z";break;case Ct.DotRectangle:a="m 23.847458,101.19491 0,-72.499995 74.5,0 74.499992,0 0,72.499995 0,72.5 -74.499992,0 -74.5,0 0,-72.5 z m 133.999992,-0.008 0,-57.507925 "+"-59.249992,0.25793 -59.25,0.25793 -0.25819,57.249995 -0.258189,57.25 59.508189,0 59.508182,0 0,-57.50793 z m -94.320573,33.85402 c -0.37368,-0.37368 "+"-0.679419,-15.67942 -0.679419,-34.01275 l 0,-33.333335 35.513302,0 35.51329,0 -0.2633,33.749995 -0.2633,33.75 -34.570573,0.26275 c -19.013819,0.14452 "+"-34.876319,-0.043 -35.25,-0.41666 z";break;case Ct.NoneCircle:a="M 83.5,170.5936 C 61.222296,165.50719 42.345957,150.33003 32.354827,129.47131 23.553942,111.09749 23.832186,87.423523 33.071432,68.5 "+"42.034121,50.14291 61.020189,34.597509 81,29.257079 c 10.235111,-2.735756 31.26466,-2.427393 40.96476,0.600679 26.18668,8.174684 46.06876,28.926852 "+"51.62012,53.879155 2.43666,10.95232 1.56754,28.058527 -1.98036,38.977597 -6.65679,20.48707 -25.64801,38.95163 -47.32647,46.01402 -6.3909,2.08202 "+"-10.18566,2.59644 -21.27805,2.88446 -9.033909,0.23456 -15.484929,-0.10267 -19.5,-1.01939 z m 30,-15.098 c 20.68862,-4.34363 38.01874,-20.45437 "+"44.09844,-40.9956 2.36228,-7.9813 2.36228,-22.018707 0,-29.999997 C 151.93673,65.371023 136.48295,50.297336 116.5,44.412396 108.40056,42.027127 "+"92.588762,42.026386 84.542711,44.410896 64.307734,50.407697 48.5342,66.039237 43.452758,85.130959 c -1.948821,7.322 -1.86506,23.116411 "+"0.158766,29.937541 8.730326,29.42481 38.97193,46.91812 69.888476,40.4271 z";break;case Ct.NoneRectangle:a="m 24.152542,102.04237 0,-72.499997 74.5,0 74.500008,0 0,72.499997 0,72.5 -74.500008,0 -74.5,0 0,-72.5 z m 133.758198,0.25 "+"-0.25819,-57.249997 -59.000008,0 -59,0 -0.259695,55.999997 c -0.142833,30.8 -0.04446,56.5625 0.218615,57.25 0.375181,0.98048 "+"13.207991,1.25 59.517885,1.25 l 59.039583,0 -0.25819,-57.25 z";break}return a},It.correctFontSize=1.35,It.pdfCKT=.56,It}();i.StiSvgHelper=It}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.ColorTranslator,n=t.System.Drawing.Color,o=t.Base.Localization.StiLocalization,a=function(a){function s(){var t=a.call(this)||this;return t.renderAsDocument=!0,t.fileName=String.empty,t.htmlWriter=null,t.imageQuality=.75,t.imageResolution=96,t.compressToArchive=!1,t}return __extends(s,a),Object.defineProperty(s.prototype,"defaultExtension",{get:function(){if(this.compressToArchive)return"zip";return"html"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"exportFormat",{get:function(){return e.StiExportFormat.Html5},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"groupCategory",{get:function(){return"Web"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"position",{get:function(){return i.StiExportPosition.Html5},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"exportNameInMenu",{get:function(){return o.get("Export","ExportTypeHtml5File")},enumerable:!0,configurable:!0}),s.prototype.exportTo=function(t,e,i){this.exportHtml(t,e,i)},s.prototype.exportToAsync=function(t,e,i,r){var n=this;setTimeout(function(){n.exportTo(e,i,r),t()})},Object.defineProperty(s.prototype,"multipleFiles",{get:function(){return!1},enumerable:!0,configurable:!0}),s.prototype.getFilter=function(){if(this.compressToArchive)return o.get("FileFilters","ZipArchives");return o.get("FileFilters","HtmlFiles")},s.prototype.renderPage=function(t,e,r){var n=i.StiSvgHelper.saveToString(t,e,!1,!1,r,this.imageFormat,this.imageQuality,this.imageResolution);this.htmlWriter.write(n),this.htmlWriter.flush()},s.prototype.renderStartDoc=function(t,e){this.htmlWriter.write("<!DOCTYPE html>"),this.htmlWriter.writeLine(),this.htmlWriter.indent++,this.htmlWriter.writeFullBeginTag("head"),this.htmlWriter.writeLine(),this.htmlWriter.indent++,this.htmlWriter.writeFullBeginTag("title"),this.htmlWriter.write(this.report.reportAlias),this.htmlWriter.writeEndTag("title"),this.htmlWriter.writeLine(),this.htmlWriter.writeBeginTag("meta"),this.htmlWriter.writeAttribute("charset",e.webName),this.htmlWriter.writeEndTag("meta"),this.htmlWriter.writeLine(),this.htmlWriter.indent--,this.htmlWriter.writeEndTag("head"),this.htmlWriter.writeLine(),this.htmlWriter.writeBeginTag("body"),this.htmlWriter.writeAttribute("bgcolor",r.toHtml(n.lightBlue)),this.htmlWriter.writeAttribute("style","text-align:center;"),this.htmlWriter.write(">"),this.htmlWriter.indent++,this.htmlWriter.writeLine()},s.prototype.renderEndDoc=function(){this.htmlWriter.indent--,this.htmlWriter.writeEndTag("body"),this.htmlWriter.indent--,this.htmlWriter.writeLine(),this.htmlWriter.writeEndTag("html")},s.prototype.exportHtml=function(e,i,r){if(null==r)throw"The 'settings' argument cannot be equal in null.";var n=r.pageRange;this.imageFormat=r.imageFormat,this.imageResolution=r.imageResolution,this.imageQuality=r.imageQuality,this.compressToArchive=r.compressToArchive;var o=r.continuousPages;this.htmlWriter=i;var a=r.pageRange.getSelectedPages(e.renderedPages);try{if(this.report=e,1==this.renderAsDocument&&this.renderStartDoc(a,r.encoding),!t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()){var s=String.stiFormat("{3}{0}{2}{4}{1}",String.fromCharCode(114),String.fromCharCode(108),String.fromCharCode(105),String.fromCharCode(84),String.fromCharCode(97));i.write('<div style="FONT-SIZE: 10px; COLOR: red; FONT-FAMILY: Arial"'+">"+"Stimulsoft Reports - "+s+" Version</div>")}this.htmlWriter.indent=0;for(var l=1,u=0,c=a.list;u<c.length;u++){var p=c[u];this.invokeExporting(p,a,0,1);var h={ref:l};this.renderPage(e,p,h),l=h.ref,o&&this.htmlWriter.write("<br/>"),this.htmlWriter.writeLine()}1==this.renderAsDocument&&this.renderEndDoc(),this.htmlWriter.flush()}finally{e=null}},s}(i.StiExportService);i.StiHtml5ExportService=a}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Drawing.StiHatchBrush,n=t.Base.Drawing.StiGlassBrush,o=t.Base.Drawing.StiGlareBrush,a=t.Base.Drawing.StiGradientBrush,s=t.Report.Components.StiCheckBox,l=t.Report.Components.IStiEditable,u=t.Report.Engine.StiDataBandBuilder,c=t.Report.Components.StiDataBand,p=t.Report.Components.StiBandInteraction,h=t.System.Drawing.ContentAlignment,g=t.Report.Components.StiContainer,m=t.System.Xml.XmlTextWriter,d=t.Base.Context.StiPopSmothingModeGeom,S=t.Base.Context.StiPushSmothingModeToAntiAliasGeom,f=t.System.IO.TextWriter,y=t.Base.StiJsonSaveMode,b=t.Base.Context.StiContextPainter,C=t.Base.Context.StiContext,v=t.Report.Chart.IStiChart,I=t.System.Collections.Hashtable,A=t.System.Drawing.Color,w=t.Report.Components.StiPagesCollection,T=t.Report.Components.IStiFont,B=t.Report.Components.IStiBorder,R=t.Report.Components.IStiTextBrush,P=t.Base.Drawing.StiHorAlignment,F=t.Base.Drawing.StiBorderSides,x=t.Report.Components.StiImage,D=t.System.Drawing.Image,k=t.System.Drawing.Rectangle,E=t.Base.Drawing.StiTextHorAlignment,G=t.Base.Drawing.StiPenStyle,_=t.Base.Drawing.StiVertAlignment,L=t.Report.Components.StiText,N=t.Base.Drawing.StiBrush,O=t.Report.Components.StiPointPrimitive,Z=t.Base.Drawing.StiSolidBrush,M=t.Report.Components.IStiTextOptions,H=t.Base.Drawing.StiBorderSide,W=t.System.Text.StringBuilder,V=t.Base.Drawing.StiAdvancedBorder,Y=t.Report.Components.IStiIgnoreBorderWhenExport,j=t.Report.Components.IStiExportImage,X=t.Report.Components.IStiExportImageExtended,J=t.System.Text.Encoding,K=t.Base.Drawing.StiTextRenderer,U=t.Report.Components.IStiText,z=t.Report.Components.StiRichText,Q=t.Report.Components.StiTextQuality,q=t.System.Drawing.ColorTranslator,$=t.System.IO.MemoryStream,tt=t.Base.Drawing.StiHtmlState,et=t.Base.Drawing.StiHtmlTagsState,it=function(it){function nt(){var t=it.call(this)||this;return t.renderedPagesCount=0,t.currentPassNumber=0,t.maximumPassNumber=0,t.clearOnFinish=!0,t.tableRender=null,t.htmlWriter=null,t.zip=null,t.fileName="",t.startPage=0,t.imageNumber=1,t.zoom=.75,t.useStylesTable=!0,t.isFileStreamMode=!0,t.imageQuality=.75,t.imageResolution=96,t.compressToArchive=!1,t.useEmbeddedImages=!1,t.openLinksTarget=null,t.chartType=i.StiHtmlChartType.Image,t.strSpanDiv="span",t.hyperlinksToTag=null,t.chartData=[],t.hashBookmarkGuid=null,t.renderStyles=!0,t.styles=null,t.insertInteractionParameters=!1,t.totalPageWidth=0,t.totalPageHeight=0,t.renderAsDocument=!0,t.removeEmptySpaceAtBottom=StiOptions.Export.Html.removeEmptySpaceAtBottom,t.pageHorAlignment=P.Center,t}return __extends(nt,it),Object.defineProperty(nt.prototype,"exportFormat",{get:function(){if(this.exportSettings.sti_is(i.StiHtmlExportSettings)){var t=this.exportSettings.htmlType;if(t==i.StiHtmlType.Html5)return e.StiExportFormat.Html5;if(t==i.StiHtmlType.Mht)return e.StiExportFormat.Mht}return e.StiExportFormat.Html},enumerable:!0,configurable:!0}),nt.prototype.exportTo=function(t,e,r){this.exportSettings=r;var n=r.sti_as(i.StiHtmlExportSettings);(null!=n?n.htmlType:i.StiHtmlType.Html)==i.StiHtmlType.Html5?(new i.StiHtml5ExportService).exportHtml(t,e,n):this.exportHtml(t,e,n)},nt.prototype.exportToAsync=function(t,e,i,r){var n=this;setTimeout(function(){n.exportTo(e,i,r),t()})},Object.defineProperty(nt.prototype,"multipleFiles",{get:function(){return!1},enumerable:!0,configurable:!0}),nt.prototype.addCoord=function(t,e){t instanceof k?(this.coordX[t.left]=t.left,this.coordY[t.top]=t.top,this.coordX[t.right]=t.right,this.coordY[t.bottom]=t.bottom):(this.coordX[t]=t,this.coordY[e]=e)},nt.prototype.formatCoords=function(t){for(var e=[],i=0,r=this.coordX.getKeys();i<r.length;i++){var n=r[i];null!=n&&(e[n]=Math.round(t.unit.convertToHInches(this.coordX[n])*this.zoom*.75,2))}this.coordX=e;for(var o=[],a=0,s=this.coordY.getKeys();a<s.length;a++){var n=s[a];null!=n&&(o[n]=Math.round(t.unit.convertToHInches(this.coordY[n])*this.zoom*.75,2))}this.coordY=o},nt.prototype.formatCoord=function(t){return Math.round(t,2).toString()+"pt"},nt.prototype.formatColor=function(t){if(t.a<255&&t.a>0)return String.stiFormat("rgba({0},{1},{2},{3})",t.r,t.g,t.b,Math.round(t.a/255,3));return q.toHtml(t)},nt.prototype.formatColorRgba=function(t){return String.stiFormat("rgba({0}, {1}, {2}, {3})",t.r,t.g,t.b,t.a/255)},nt.prototype.getBorderStyle=function(t){switch(t){case G.Dot:return" dotted";case G.Dash:case G.DashDot:case G.DashDotDot:return" dashed";case G.Double:return" double";default:return" solid"}},nt.prototype.setCurrentCulture=function(){},nt.prototype.restoreCulture=function(){},nt.prototype.renderFont=function(e,i){var r="",n=t.System.Drawing.Graphics.getCustomFontName(i.fontFamily.name,i.style);t.System.Drawing.Graphics.allowStyle(i.fontFamily.name,i.style)&&(i.bold&&(r+="bold "),i.italic&&(r+="italic ")),r+=Math.trunc(i.size*this.zoom).toString().replaceAll(",",".")+"pt ",r+=n;var o=i.underline?i.strikeout?"underline line-through":"underline":i.strikeout?"line-through":"";null==e?(this.htmlWriter.writeStyleAttribute("Font",r),(i.underline||i.strikeout)&&this.htmlWriter.writeStyleAttribute("text-decoration",o)):(e.style.set("Font",r),(i.underline||i.strikeout)&&e.style.set("text-decoration",o))},nt.prototype.renderTextHorAlignment=function(t,e){var i=null!=e.textOptions&&e.textOptions.rightToLeft,r=e.horAlignment,n=String.empty;r==E.Left&&(n=i?"right":"left"),r==E.Right&&(n=i?"left":"right"),r==E.Center&&(n="center"),r==E.Width&&(n="justify"),""!=n&&(null==t?this.htmlWriter.writeStyleAttribute("text-align",n):t.style.set("text-align",n))},nt.prototype.renderVertAlignment=function(t,e){var i="";e==_.Top&&(i="top"),e==_.Center&&(i="middle"),e==_.Bottom&&(i="bottom"),""!=i&&(null==t?this.htmlWriter.writeStyleAttribute("vertical-align",i):t.style.set("vertical-align",i))},nt.prototype.renderTextAngle=function(t){null==t||90!=t.angle&&270!=t.angle||this.htmlWriter.writeStyleAttribute("writing-mode","tb-rl")},nt.prototype.renderTextDirection=function(t,e){null!=e&&e.rightToLeft&&(null==t?this.htmlWriter.writeStyleAttribute("direction","rtl"):t.style.set("direction","rtl"))},nt.prototype.renderBackColor=function(t,e){255==e.a?null==t?this.htmlWriter.writeStyleAttribute("background-color",this.formatColor(e)):t.style.set("background-color",this.formatColor(e)):e.a>0&&(null==t?this.htmlWriter.writeStyleAttribute("background",this.formatColorRgba(e)):t.style.set("background",this.formatColorRgba(e)))},nt.prototype.renderTextColor=function(t,e,i){void 0===i&&(i=!1),e.stiEquals(A.black)&&!i||(null==t?this.htmlWriter.writeStyleAttribute("color",this.formatColor(e)):t.style.set("color",this.formatColor(e)))},nt.prototype.renderBorder=function(t){if(null!=t&&t.sti_is(B)&&!t.sti_is(Y)){var e=t.sti_as(B);this.renderBorder2(e.border)}},nt.prototype.renderBorder2=function(t){if(null!=t){var e=null,i=null,r=null,n=null,o=t.sti_as(V);null!=o?(e=o.leftSide,i=o.rightSide,r=o.topSide,n=o.bottomSide):(e=new H(t.color,t.size,t.style),t.isRightBorderSidePresent&&(i=e),t.isTopBorderSidePresent&&(r=e),t.isBottomBorderSidePresent&&(n=e),t.isLeftBorderSidePresent||(e=null)),this.renderBorder3(null,e,"left"),this.renderBorder3(null,i,"right"),this.renderBorder3(null,r,"top"),this.renderBorder3(null,n,"bottom")}},nt.prototype.renderBorder3=function(t,e,i,r){void 0===r&&(r=0);var n=(100*r).toString()+"px";if(null!=e&&e.style!=G.None){var o=this.formatColor(e.color),a=this.getBorderStyle(e.style),s=e.size;s>0&&s<1&&(s=1),s<1&&(e.style==G.Dash||e.style==G.DashDot||e.style==G.DashDotDot||e.style==G.Dot)&&(s=1),e.style==G.Double&&(s=2.5);var l=Math.round(s)+"px";null==t?(this.htmlWriter.writeStyleAttribute(String.stiFormat("border-{0}-color",i),o),this.htmlWriter.writeStyleAttribute(String.stiFormat("border-{0}-style",i),a),this.htmlWriter.writeStyleAttribute(String.stiFormat("border-{0}-width",i),l),0!=r&&this.htmlWriter.writeStyleAttribute("border-radius",n)):(t.style.set(String.stiFormat("border-{0}-color",i),o),t.style.set(String.stiFormat("border-{0}-style",i),a),t.style.set(String.stiFormat("border-{0}-width",i),l),0!=r&&t.style.set("border-radius",n))}else StiOptions.Export.Html.useStrictTableCellSize&&null==t&&(this.htmlWriter.writeStyleAttribute(String.stiFormat("border-{0}-color",i),"transparent"),this.htmlWriter.writeStyleAttribute(String.stiFormat("border-{0}-style",i),"solid"),this.htmlWriter.writeStyleAttribute(String.stiFormat("border-{0}-width",i),"1px"),0!=r&&this.htmlWriter.writeStyleAttribute("border-radius",n))},nt.prototype.renderPosition=function(t){var e=t.componentToPage(t.clientRectangle),r=t.page.unit,n=this.formatCoord(this.coordX[e.left]),o=this.formatCoord(this.coordY[e.top]+this.startPage*this.zoom*.75),a=this.coordX[e.right]-this.coordX[e.left],s=this.coordY[e.bottom]-this.coordY[e.top],l=t.sti_as(B);null!=l&&null!=l.border&&(l.border.sti_is(V)||l.border.style!=G.None&&l.border.size>0&&l.border.side!=F.None&&((l.border.side&F.Left)>0&&(a-=.375*l.border.size),(l.border.side&F.Right)>0&&(a-=.375*l.border.size),(l.border.side&F.Top)>0&&(s-=.375*l.border.size),(l.border.side&F.Bottom)>0&&(s-=.375*l.border.size)));var u=t.sti_as(L);null==u||u.margins.isEmpty||(a-=.75*(Math.trunc(u.margins.left)+Math.trunc(u.margins.right)),s-=.75*(Math.trunc(u.margins.top)+Math.trunc(u.margins.bottom))),a<0&&(a=0),s<0&&(s=0);var c=this.formatCoord(a),p=this.formatCoord(s);this.htmlWriter.writeStyleAttribute("left",n),this.htmlWriter.writeStyleAttribute("top",o),this.htmlWriter.writeStyleAttribute("width",c),this.htmlWriter.writeStyleAttribute("height",p),null==u||u.margins.isEmpty||this.htmlWriter.writeStyleAttribute("padding",String.stiFormat("{0} {1} {2} {3}",i.StiHtmlUnit.newUnit(u.margins.top).toString(),i.StiHtmlUnit.newUnit(u.margins.right).toString(),i.StiHtmlUnit.newUnit(u.margins.bottom).toString(),i.StiHtmlUnit.newUnit(u.margins.left).toString()))},nt.prototype.getHeight=function(t){var e=t.componentToPage(t.clientRectangle),i=this.coordY[e.bottom]-this.coordY[e.top],r=t.page.unit,n=t.sti_as(B);null!=n&&null!=n.border&&(n.border.sti_is(V)||n.border.style!=G.None&&n.border.size>0&&n.border.side!=F.None&&((n.border.side&F.Left)>0&&(i-=.375*n.border.size),(n.border.side&F.Right)>0&&(i-=.375*n.border.size)));var o=t.sti_as(L);return null==o||o.margins.isEmpty||(i-=.75*(Math.trunc(o.margins.top)+Math.trunc(o.margins.bottom))),i<0&&(i=0),this.formatCoord(i)},nt.prototype.getWidth=function(t){var e=t.componentToPage(t.clientRectangle),i=this.coordX[e.right]-this.coordX[e.left],r=t.page.unit,n=t.sti_as(B);null!=n&&null!=n.border&&(n.border.sti_is(V)||n.border.style!=G.None&&n.border.size>0&&n.border.side!=F.None&&((n.border.side&F.Left)>0&&(i-=.375*n.border.size),(n.border.side&F.Right)>0&&(i-=.375*n.border.size)));var o=t.sti_as(L);return null==o||o.margins.isEmpty||(i-=.75*(Math.trunc(o.margins.left)+Math.trunc(o.margins.right))),i<0&&(i=0),this.formatCoord(i)},nt.prototype.renderImage=function(t){var e=null,i=t.sti_as(x);null!=i&&(e=i.imageURLValue,String.isNullOrEmpty(e)&&null!=i.image&&(e=i.image.base64)),this.setCurrentCulture(),this.renderImage2(i,t.sti_as(j),e),this.restoreCulture()},nt.prototype.renderImage2=function(t,e,i){if(null!=e){var r=e.sti_as(X),n=this.zoom,o=this.imageResolution;if(StiOptions.Export.Html.useImageResolution&&e.sti_is(x)&&null!=e.imageToDraw){var a=e.imageToDraw.horizontalResolution;a>=50&&a<=1250&&(o=a)}100!=o&&(n*=o/100);var s=null,l=this.forceExportAsImage(e),u={ref:n};s=r.imageToDraw,n=u.ref,this.restoreCulture(),this.renderImage3(t,s,i,n)}},nt.prototype.forceExportAsImage=function(t){var e=t.sti_as(M);return null!=e&&0!=e.textOptions.angle},nt.prototype.renderImage3=function(t,e,i,r){if(null!=e){String.isNullOrEmpty(i)||i.startsWith("http")||i.startsWith("ftp")||(i=null);var n=i;String.isNullOrEmpty(i)&&(null!=this.htmlImageHost&&(n=this.htmlImageHost.getImageString(e)),null==n&&(n="")),this.htmlWriter.writeBeginTag('div style="'),this.htmlWriter.writeStyleAttribute("display","table-cell"),this.htmlWriter.writeStyleAttribute("max-width",this.getWidth(t)),this.renderVertAlignment(null,t.vertAlignment),this.htmlWriter.write('">'),this.htmlWriter.writeBeginTag('img style="'),t.stretch&&(this.htmlWriter.writeStyleAttribute("height",this.getHeight(t)),this.htmlWriter.writeStyleAttribute("width",this.getWidth(t))),this.htmlWriter.write('"'),this.htmlWriter.writeAttribute("src",n),this.htmlWriter.write(">"),this.htmlWriter.writeEndTag("img"),this.htmlWriter.writeEndTag("div")}},nt.prototype.renderHyperlink=function(t){var e=t.hyperlinkValue;!String.isNullOrWhiteSpace(e)&&e.startsWith("##")&&(e=e.substr(1));var i=t.bookmarkValue,r=t.tagValue;null==i&&!String.isNullOrEmpty(r)&&this.hyperlinksToTag.containsKey(r)&&(i=r);var n=null;if(!String.isNullOrWhiteSpace(t.guid)&&this.hashBookmarkGuid.containsKey(t.guid)&&(n=t.guid),!String.isNullOrWhiteSpace(e)){var o=t.componentToPage(t.clientRectangle),a=this.formatCoord(this.coordY[o.bottom]-this.coordY[o.top]),s=new W;if(s.append("display:block;height:"+a+";text-decoration:none;"),t.sti_is(R)){var l=t.sti_as(R),u=N.toColor(l.textBrush);s.append("color:"+this.formatColor(u)+";")}if(t.sti_is(T)){t.sti_as(T).font.underline?s.append("text-decoration:underline;"):s.append("text-decoration:none;")}return this.htmlWriter.writeBeginTag("a"),String.isNullOrWhiteSpace(i)||this.htmlWriter.writeAttribute("name",i.replaceAll("'","")),String.isNullOrWhiteSpace(n)||this.htmlWriter.writeAttribute("guid",n),this.htmlWriter.writeAttribute("style",s.toString()),this.htmlWriter.writeAttribute("href",e),this.htmlWriter.write(">"),!0}if(!String.isNullOrWhiteSpace(i)||!String.isNullOrWhiteSpace(n))return this.htmlWriter.writeBeginTag("a"),String.isNullOrWhiteSpace(i)||this.htmlWriter.writeAttribute("name",i.replaceAll("'","")),String.isNullOrWhiteSpace(n)||this.htmlWriter.writeAttribute("guid",n),StiOptions.Export.Html.useExtendedStyle&&this.htmlWriter.writeAttribute("class","sBaseStyleFix"),this.htmlWriter.write(">"),!0;return!1},nt.prototype.renderPage=function(t,e,i){if(this.pageHorAlignment!=P.Left&&(this.htmlWriter.writeBeginTag(this.strSpanDiv+' style="'),this.htmlWriter.writeStyleAttribute("text-align",this.pageHorAlignment==P.Center?"center":"right"),e&&this.htmlWriter.writeStyleAttribute("margin-left",String.stiFormat("{0}px",i+4)),this.htmlWriter.write('">'),this.htmlWriter.indent++,this.htmlWriter.writeLine()),this.htmlWriter.writeBeginTag(this.strSpanDiv+' class="StiPageContainer" style="'),this.renderAsDocument){this.pageHorAlignment!=P.Left?this.htmlWriter.writeStyleAttribute("display","inline-block"):e&&this.htmlWriter.writeStyleAttribute("left",String.stiFormat("{0}px",i+4)),this.htmlWriter.writeStyleAttribute("width",this.formatCoord(this.totalPageWidth*this.zoom*.75)),this.htmlWriter.writeStyleAttribute("height",this.formatCoord(this.totalPageHeight*this.zoom*.75)),this.htmlWriter.writeStyleAttribute("position","relative");var r=A.transparent;null!=t&&t.count>0&&(null!=t.getByIndex(0).brush&&(r=N.toColor(t.getByIndex(0).brush)),0==r.a&&(r=A.white),null!=t.getByIndex(0).border&&this.renderBorder(t.getByIndex(0))),this.htmlWriter.writeStyleAttribute("background-color",this.formatColor(r));var n=this.getBackgroundImagePath(t,this.zoom,this.exportSettings.useWatermarkMargins);""!=n&&this.htmlWriter.writeStyleAttribute("background-image",String.stiFormat("url('{0}')",n))}this.htmlWriter.write('">'),this.htmlWriter.indent++,this.htmlWriter.writeLine()},nt.prototype.renderEndPage=function(){this.htmlWriter.indent--,this.htmlWriter.writeEndTag(this.strSpanDiv),this.htmlWriter.writeLine(),this.pageHorAlignment!=P.Left&&(this.htmlWriter.indent--,this.htmlWriter.writeEndTag(this.strSpanDiv),this.htmlWriter.writeLine())},nt.prototype.renderStartDoc=function(e,i,r,n,o,a,s){if(this.htmlWriter.writeLine('<!DOCTYPE HTML "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'),this.htmlWriter.writeLine("\x3c!-- "+t.StiVersion.platform()+" --\x3e"),this.htmlWriter.writeLine('<html xmlns="http://www.w3.org/1999/xhtml">'),this.htmlWriter.indent++,this.htmlWriter.writeFullBeginTag("head"),this.htmlWriter.writeLine(),this.htmlWriter.indent++,this.htmlWriter.writeFullBeginTag("title"),this.htmlWriter.write(this.report.reportAlias),this.htmlWriter.writeEndTag("title"),this.htmlWriter.writeLine(),this.htmlWriter.writeBeginTag("meta"),this.htmlWriter.writeAttribute("http-equiv","Content-Type"),this.htmlWriter.writeAttribute("content",String.stiFormat("text/html; charset={0}",s.webName)),this.htmlWriter.writeEndTag("meta"),this.htmlWriter.writeLine(),null!=e&&(i?e.renderStylesTable(r,n,o):e.renderStyles(r,n,o)),r&&this.renderBookmarkScript(),this.htmlWriter.indent--,this.htmlWriter.writeLine(),this.htmlWriter.writeEndTag("head"),this.htmlWriter.writeLine(),this.htmlWriter.writeBeginTag("body"),null!=a&&a.count>0&&null!=a.getByIndex(0).brush){var l=N.toColor(a.getByIndex(0).brush);l.a>0&&this.htmlWriter.writeAttribute("bgcolor",this.formatColor(l))}StiOptions.Export.Html.useExtendedStyle&&this.htmlWriter.writeAttribute("class","sBaseStyleFix"),StiOptions.Export.Html.printLayoutOptimization&&this.htmlWriter.writeAttribute("style","margin:0;"),this.htmlWriter.write(">"),this.htmlWriter.indent++,this.htmlWriter.writeLine()},nt.prototype.fillBitmapBackground=function(t,e){var i=A.lightGray},nt.prototype.renderBookmarkScript=function(){},nt.prototype.renderChartScripts=function(e){if(void 0===e&&(e=!0),0==this.chartData.count)return;e&&(this.htmlWriter.writeBeginTag("script"),this.htmlWriter.writeAttribute("type","text/javascript"),this.htmlWriter.writeLine(">"));for(var i=["jquery-1.7.2.min.js","jquery.mousewheel.js","jquery.svg.pack.js","jquery.svganim.pack.js","jquery.svgfilter.pack.js","jquery.sti.awcharts.js","jquery.sti.grid.js"],r=0;r<i.length;r++);
var n=" ";n=t.System.Convert.fromBase64StringText(n),this.htmlWriter.writeLine(n),e&&this.htmlWriter.writeLine("$172(window).load(function() { stiEvalCharts(); });"),this.htmlWriter.writeLine("function stiEvalCharts() {");for(var r=0;r<this.chartData.count;r++)this.htmlWriter.writeLine(String.stiFormat("$172(\"#id{0}\").chart(eval('{1}'));",r,this.chartData[r].replaceAll("\r\n","\\r\\n\\\r\n").replaceAll("'","\\'")));this.htmlWriter.writeLine("};"),e&&(this.htmlWriter.writeEndTag("script"),this.htmlWriter.writeLine())},nt.prototype.renderMapsScripts=function(t){void 0===t&&(t=!0),t&&(this.htmlWriter.writeBeginTag("script"),this.htmlWriter.writeAttribute("type","text/javascript"),this.htmlWriter.writeLine(">")),t&&this.htmlWriter.writeEndTag("script")},nt.prototype.renderGaugeScripts=function(t){void 0===t&&(t=!0),t&&(this.htmlWriter.writeBeginTag("script"),this.htmlWriter.writeAttribute("type","text/javascript"),this.htmlWriter.writeLine(">")),t&&this.htmlWriter.writeEndTag("script")},nt.prototype.renderEndDoc=function(){this.htmlWriter.indent--,this.htmlWriter.writeEndTag("body"),this.htmlWriter.indent--,this.htmlWriter.writeLine(),this.htmlWriter.writeEndTag("html")},nt.prototype.renderBookmarkTree=function(t,e,i){var r=[];this.addBookmarkNode(t,-1,r),this.htmlWriter.writeStyleAttribute("width",String.stiFormat("{0}px",e)),this.htmlWriter.writeStyleAttribute("background-color","#f0f0f0"),this.htmlWriter.write('">'),this.htmlWriter.indent++,this.htmlWriter.writeLine(),this.htmlWriter.indent++,this.htmlWriter.writeFullBeginTag("frame"),this.htmlWriter.writeLine(),this.htmlWriter.writeBeginTag("script"),this.htmlWriter.writeAttribute("type","text/javascript"),this.htmlWriter.writeLine(">"),this.htmlWriter.indent++,this.htmlWriter.writeLine("\x3c!--"),this.htmlWriter.writeLine("bmrk = new dTree('bmrk');");for(var n=0;n<r.count;n++){var o=r[n],a="";a=i.containsKey(o.title)?String.stiFormat("Page {0}",i.get(o.title)+1):"Page 0",this.htmlWriter.writeLine(String.stiFormat("bmrk.add({0}, {1}, '{2}', '{3}', '{4}');",n,o.parent,o.title,o.url,a))}this.htmlWriter.writeLine("document.write(bmrk);"),this.htmlWriter.writeLine("//--\x3e"),this.htmlWriter.indent--,this.htmlWriter.writeEndTag("script"),this.htmlWriter.indent--,this.htmlWriter.writeLine(),this.htmlWriter.indent--},nt.prototype.addBookmarkNode=function(t,e,i){var r=new rt;r.parent=e;var n=t.text.replaceAll("'","");r.title=n,r.url="#"+n,r.used=!0,i.add(r);var o=i.count-1;if(0!=t.bookmarks.count)for(var a=0;a<t.bookmarks.count;a++)this.addBookmarkNode(t.bookmarks.getByIndex(a),o,i)},nt.prototype.prepareTextForHtml=function(t){if(null==t)return null;for(var e=t.split("\n"),i=new W,r=0;r<e.length;r++){var n=e[r],o=0;while(o<n.length&&" "==n.charAt(o))o++;if(o>0){for(var a=0;a<o;a++)i.append("&nbsp;");i.append(n.substr(o))}else i.append(n);r<e.length-1&&i.append("<br>")}return i.toString()},nt.convertTextWithHtmlTagsToHtmlText=function(t,e){for(var i=e,r=new et(t.font.bold,t.font.italic,t.font.underline,t.font.strikeout,t.font.size,t.font.name,N.toColor(t.textBrush),N.toColor(t.brush),!1,!1,0,0,1,t.horAlignment),n=new tt(r,0),o=K.parseHtmlToStates(i,n),a=new W,s=E.Left,l=1,u=!0,c=!1,p=new W,h=r,g=0;g<o.count;g++){var m=o[g],d=m.ts;if(d.bold!=h.bold&&p.append(d.bold?"<b>":"</b>"),d.italic!=h.italic&&p.append(d.italic?"<i>":"</i>"),d.underline!=h.underline&&p.append(d.underline?"<u>":"</u>"),d.strikeout!=h.strikeout&&p.append(d.strikeout?"<s>":"</s>"),d.superscript!=h.superscript&&p.append(d.superscript?"<sup>":"</sup>"),d.subsript!=h.subsript&&p.append(d.subsript?"<sub>":"</sub>"),d.fontColor!=h.fontColor||d.backColor!=h.backColor||d.fontName!=h.fontName||d.fontSize!=h.fontSize||d.letterSpacing!=h.letterSpacing||d.wordSpacing!=h.wordSpacing||d.htmlStyle!=h.htmlStyle){var S="";d.htmlStyle!=h.htmlStyle&&(S+=d.htmlStyle+";"),d.fontColor!=r.fontColor&&!S.contains("color:")&&d.fontColor.a>0&&(S+=String.stiFormat("color:#{0:X6};",16777215&d.fontColor.toArgb())),d.backColor!=r.backColor&&!S.contains("background-color:")&&d.backColor.a>0&&(S+=String.stiFormat("background-color:#{0:X6};",16777215&d.backColor.toArgb())),d.fontName!=r.fontName&&(S.contains("font-family:")||(S+=String.stiFormat("font-family:{0};",d.fontName))),d.fontSize!=r.fontSize&&(S.contains("font-size:")||(S+=String.stiFormat("font-size:{0}pt;",d.fontSize).replaceAll(",","."))),d.letterSpacing!=r.letterSpacing&&(S.contains("letter-spacing:")||(S+=String.stiFormat("letter-spacing:{0}em;",d.letterSpacing).replaceAll(",","."))),d.wordSpacing!=r.wordSpacing&&(S.contains("word-spacing:")||(S+=String.stiFormat("word-spacing:{0}em;",d.wordSpacing).replaceAll(",","."))),c&&p.append("</font>"),c=!1,S.length>0&&(c=!0,p.append(String.stiFormat('<font style="{0}">',S)))}s=d.textAlign,l=d.lineHeight,"\n"==m.text.toString()?(u&&p.append("&nbsp;"),a.append(this.getParagraphString(p,s,l)),p=new W,u=!0):(p.append(m.text),m.text.toString().trim().length>0&&(u=!1)),h=d.clone()}return c&&a.append("</font>"),h.bold!=r.bold&&p.append(r.bold?"<b>":"</b>"),h.italic!=r.italic&&p.append(r.italic?"<i>":"</i>"),h.underline!=r.underline&&p.append(r.underline?"<u>":"</u>"),h.strikeout!=r.strikeout&&p.append(r.strikeout?"<s>":"</s>"),h.superscript!=r.superscript&&p.append(r.superscript?"<sup>":"</sup>"),h.subsript!=r.subsript&&p.append(r.subsript?"<sub>":"</sub>"),p.length>0&&a.append(this.getParagraphString(p,s,l)),a.toString()},nt.getParagraphString=function(t,e,i){var r=new W;r.append("<p "),r.append('style="margin:0px;');var n="left";return e==E.Center&&(n="center"),e==E.Right&&(n="right"),e==E.Width&&(n="justify"),r.append(String.stiFormat("text-align:{0};",n)),1!=i&&r.append(String.stiFormat("line-height:{0}em;",Math.round(1.12*i,2))),r.append('">'),r.append(t),r.append("</p>"),r.toString()},nt.prototype.getBackgroundImagePath=function(t,e,i){var r="";if(t.count>0){var n=t.getByIndex(0),o=n.watermark;if(null!=o&&o.enabled&&(null!=o.image||!String.isNullOrWhiteSpace(o.imageHyperlink)||!String.isNullOrEmpty(o.text))){var a=e,s=this.getWatermarkImage(n,a,i);null!=this.htmlImageHost&&(r=this.htmlImageHost.getImageString(s)),null==r&&(r=""),null!=s&&(s=null)}}return r.replaceAll("\\","/")},nt.prototype.getWatermarkImage=function(e,r,n){var o="",a=e.watermark;if(null!=a&&a.enabled){var s=Math.trunc(Math.round(e.unit.convertToHInches(e.pageWidth)*r)),l=Math.trunc(Math.round(e.unit.convertToHInches(e.pageHeight)*r)),u=document.createElement("canvas");if(u.width=s,u.height=l,!String.isNullOrEmpty(a.text)){var c=new m(J.UTF8);i.StiSvgHelper.writeWatermark(c,-1,e,!1,s,l,1),c.flush();var p=c.textWriter.getStringBuilder().toString(),g=String.stiFormat('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width: {0}; height: {1}"><rect x="0" y="0" width="{0}" height="{1}" style="fill: white;"/>{2}</svg>',s,l,p);canvg(u,g)}var d=a.getImage(e.report);if(null!=d)try{var S=document.createElement("img");S.src=d.base64;var f=u.getContext("2d"),y=d.width*a.imageMultipleFactor,b=d.height*a.imageMultipleFactor,C=0,v=0,I=1,A=1,w=a.imageAlignment,T=a.imageTiling;if(a.imageStretch){var B=b/y;y=s,b=l,T=!1,a.aspectRatio&&(l/s>B?b=y*B:y=b/B)}switch(T&&(w=h.TopLeft,I=Math.trunc(s/y)+1,A=Math.trunc(l/b)+1),w){case h.TopCenter:case h.MiddleCenter:case h.BottomCenter:C=(s-y)/2;break;case h.TopRight:case h.MiddleRight:case h.BottomRight:C=s-y;break}switch(w){case h.BottomLeft:case h.BottomCenter:case h.BottomRight:v=l-b;break;case h.MiddleLeft:case h.MiddleCenter:case h.MiddleRight:v=(l-b)/2;break}var R=d.width,P=d.height,F=C,x=v,k=y,E=b;while(I>0){while(A>0)f.drawImage(S,0,0,R,P,F,x,k,E),A--,x+=b;x=v,A=Math.trunc(l/b)+1,I--,F+=y}}catch(t){}var G=document.createElement("canvas");G.width=s,G.height=l;var _=G.getContext("2d"),L=0,N=0,O=s,Z=l,M=0,H=0,W=s,V=l;0==this.exportSettings.useWatermarkMargins&&(G.width=Math.trunc(Math.round(e.unit.convertToHInches(e.width)*r)),G.height=Math.trunc(Math.round(e.unit.convertToHInches(e.height)*r)),L=Math.trunc(Math.round(e.unit.convertToHInches(e.margins.left)*r)),N=Math.trunc(Math.round(e.unit.convertToHInches(e.margins.top)*r)),O=Math.trunc(Math.round(e.unit.convertToHInches(e.width)*r)),Z=Math.trunc(Math.round(e.unit.convertToHInches(e.height)*r)),M=0,H=0,W=O,V=Z),_.drawImage(u,L,N,O,Z,M,H,W,V),o=G.toDataURL(t.System.Drawing.Imaging.ImageFormat.Png.mimeType)}var Y=new D;return Y.base64=o,Y},nt.getImage=function(t,e,i){return null},nt.getFile=function(t,e){return null},nt.prototype.assembleGuidUsedInBookmark=function(t,e){if(String.isNullOrWhiteSpace(t.componentGuid)||e.set(t.componentGuid,t.text),null!=t.bookmarks&&t.bookmarks.count>0)for(var i=0,r=t.bookmarks.list;i<r.length;i++){var n=r[i];this.assembleGuidUsedInBookmark(n,e)}},nt.prototype.prepareSvg=function(t,e,i){t.writeBeginTag("svg"),t.writeAttribute("version","1.1"),t.writeAttribute("baseProfile","full"),t.writeAttribute("xmlns","http://www.w3.org/2000/svg"),t.writeAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.writeAttribute("xmlns:ev","http://www.w3.org/2001/xml-events"),t.writeAttribute("height",e.toString().replaceAll(",",".")),t.writeAttribute("width",i.toString().replaceAll(",",".")),t.write(">")},nt.prototype.prepareChartData=function(e,r,n){var o=new b,a=new C(o,!1,!1,!1,this.zoom),s=e.isAnimation;e.isAnimation=this.chartType==t.Report.Export.StiHtmlChartType.AnimatedVector;var l=.96,u=new k(0,0,r*l,n*l);this.exportSettings.exportMode!=i.StiHtmlExportMode.Table&&(u=new k(0,0,r*l*this.zoom,n*l*this.zoom)),e.core.render(a,u,!0).drawGeom(a),e.isAnimation=s;for(var c="[",p=0,h=a.geoms;p<h.length;p++){var g=h[p];if(g.sti_is(S))continue;if(g.sti_is(d))continue;c+=g.saveToJsonObject(y.Document).serialize(),c+=", "}c=c.substring(0,c.length-2)+"]",0==a.geoms.length&&(c=""),this.chartData.add(c)},nt.prototype.prepareGaugeData=function(e,r,n,o){var a,s=null;null==e?(a=new f,s=new i.StiHtmlTextWriter(a)):s=e;var l=1;this.prepareSvg(s,Math.round(o*l,2),Math.round(n*l,2));var u=new i.StiSvgData;u.x=0,u.y=0,u.width=n*l,u.height=o*l,u.component=r;var c=new $,p=new m(J.UTF8,c);return i.StiGaugeSvgHelper.writeGauge(p,u,this.zoom,this.chartType==i.StiHtmlChartType.AnimatedVector),p.flush(),s.write(t.System.Text.Encoding.UTF8.getString(c.toArray())),s.writeEndTag("svg"),null==e?a.getStringBuilder().toString():null},nt.prototype.prepareMapData=function(e,r,n,o){var a,s=null;null==e?(a=new f,s=new i.StiHtmlTextWriter(a)):s=e;var l=1;this.prepareSvg(s,Math.round(o*l,2),Math.round(n*l,2));var u=new $,c=new m(J.UTF8,u);return i.StiMapSvgHelper.drawMap(c,r,n,o,this.chartType==i.StiHtmlChartType.AnimatedVector),c.flush(),s.write(t.System.Text.Encoding.UTF8.getString(u.toArray())),s.writeEndTag("svg"),null==e?a.getStringBuilder().toString():null},nt.prototype.getChartScript=function(){var t=this.htmlWriter,e=new f;return this.htmlWriter=new i.StiHtmlTextWriter(e),this.renderChartScripts(!1),this.renderGaugeScripts(!1),this.renderMapsScripts(!1),this.htmlWriter=t,e.getStringBuilder().toString()},nt.prototype.clear=function(){null!=this.tableRender&&null!=this.tableRender.matrix&&(this.tableRender.matrix.clear(),this.tableRender.matrix=null),this.tableRender=null,this.coordX=null,this.coordY=null,this.styles=null,this.chartData.clear()},nt.prototype.isComponentHasInteraction=function(t){if(this.insertInteractionParameters&&null!=t.interaction){if(t.interaction.sortingEnabled&&!String.isNullOrWhiteSpace(t.interaction.sortingColumn))return!0;if(t.interaction.drillDownEnabled&&(null!=t.interaction.drillDownPage||!String.isNullOrEmpty(t.interaction.drillDownReport)))return!0;if(t.interaction.sti_is(p)&&t.interaction.collapsingEnabled)return!0}return!1},nt.prototype.exportHtml=function(h,m,d,S){if(void 0===S&&(S=null),null==S&&(S=d.pageRange.getSelectedPages(h.renderedPages)),null==d)throw"The 'settings' argument cannot be equal in null.";this.exportSettings=d;var f=d.pageRange;this.zoom=d.zoom,this.imageFormat=d.imageFormat,this.exportQuality=d.exportQuality;var y=d.exportMode,b=d.exportBookmarksMode!=i.StiHtmlExportBookmarksMode.ReportOnly,C=d.bookmarksTreeWidth,T=d.exportBookmarksMode==i.StiHtmlExportBookmarksMode.BookmarksOnly;this.useStylesTable=d.useStylesTable,this.imageResolution=d.imageResolution,this.imageQuality=d.imageQuality,this.removeEmptySpaceAtBottom=d.removeEmptySpaceAtBottom,this.pageHorAlignment=d.pageHorAlignment,this.compressToArchive=d.compressToArchive,this.useEmbeddedImages=d.useEmbeddedImages,this.openLinksTarget=d.openLinksTarget,this.chartType=d.chartType;var B=!0;b=b&&null!=h.bookmark&&0!=h.bookmark.bookmarks.count,y==i.StiHtmlExportMode.Span?this.strSpanDiv="span":y==i.StiHtmlExportMode.Div&&(this.strSpanDiv="div"),this.isFileStreamMode=!String.isNullOrEmpty(this.fileName),this.useEmbeddedImages&&(this.isFileStreamMode=!1);try{null==this.htmlImageHost&&(this.htmlImageHost=new i.StiHtmlImageHost(this)),this.hashBookmarkGuid=new I,this.assembleGuidUsedInBookmark(h.bookmark,this.hashBookmarkGuid),this.htmlWriter=m,this.report=h,this.totalPageWidth=0,this.totalPageHeight=0,this.startPage=0,this.imageNumber=1;var R=new I;if(b)for(var F=0,D=0,k=S.list;D<k.length;D++){var E=k[D],G=E.getComponents();G.add(E);for(var N=0,H=G.list;N<H.length;N++){var V=H[N];if(V.enabled){var Y=V.bookmarkValue;String.isNullOrWhiteSpace(Y)||(Y=Y.replaceAll("'",""),Y.length>0&&(R.containsKey(Y)||R.add(Y,F)))}}F++}if(y==i.StiHtmlExportMode.Span||y==i.StiHtmlExportMode.Div){var j=new i.StiHtmlTableRender(this,d,new w(h,S));if(this.isStopped)return;this.coordX=[],this.coordY=[],this.hyperlinksToTag=new I;for(var X=0,J=S.list;X<J.length;X++){var E=J[X];this.totalPageWidth=Math.max(this.totalPageWidth,E.unit.convertToHInches(E.width)),this.totalPageHeight+=E.unit.convertToHInches(E.height)}for(var q=0,$=S.list;q<$.length;q++)for(var E=$[q],G=E.getComponents(),tt=E.unit.convertToHInches(E.clientRectangle),et=0,it=G.list;et<it.length;et++){var V=it[et],rt=E.unit.convertToHInches(V.displayRectangle),ot=!0;if(V instanceof O&&(ot=!1),(rt.right<tt.left||rt.left>tt.right||rt.bottom<tt.top||rt.top>tt.bottom)&&(ot=!1),V.enabled&&ot&&(this.addCoord(V.displayRectangle),null!=V.hyperlinkValue)){
var at=V.hyperlinkValue;!String.isNullOrEmpty(at)&&at.length>2&&at.startsWith("##")&&this.hyperlinksToTag.set(at.substr(2),null)}}this.formatCoords(h);for(var st=new I,lt=new I,ut=0,ct=S.list;ut<ct.length;ut++)for(var E=ct[ut],G=E.getComponents(),pt=0,ht=G.list;pt<ht.length;pt++){var gt=ht[pt],V=gt;if(V.enabled){if(B&&!this.forceExportAsImage(V)){var mt=V;null==mt||null==mt.brush||mt.brush.sti_is(Z)||(V=gt.clone(),V.brush=new Z(A.transparent))}var dt=j.matrix.getStyleFromComponent(V,-1,-1,this.exportServiceId);dt.absolutePosition=!0,S.cacheMode||st.set(gt,dt);var St=V.tagValue;if(!String.isNullOrEmpty(St))for(var ft=i.StiMatrix.splitTag(St),yt=0;yt<ft.length;yt++)if(ft[yt].toLower().startsWith("css")){var bt=i.StiMatrix.getStringsFromTag(ft[yt],3);if(bt.length>1){var Ct=bt[0].trim();lt.set(Ct,bt[1].trim()+";position:absolute;"),st.set(gt,Ct);break}}}}if(j.matrix.checkStylesNames(),this.renderAsDocument&&this.renderStartDoc(j,!1,b,T,lt,S,d.encoding),!this.renderAsDocument&&b&&this.renderBookmarkScript(),b&&(this.htmlWriter.writeBeginTag(this.strSpanDiv+' class="dtreeframe" style="'),this.htmlWriter.writeStyleAttribute("position","absolute"),T||this.htmlWriter.writeStyleAttribute("height",this.formatCoord(this.totalPageHeight*this.zoom*.75)),this.renderBookmarkTree(h.bookmark,C,R),this.htmlWriter.writeEndTag(this.strSpanDiv),this.htmlWriter.writeLine()),T||this.renderPage(S,b,C),this.renderAsDocument||j.renderStyles(b,T,lt),!T)for(var vt=0,It=S.list;vt<It.length;vt++){var E=It[vt];if(this.isStopped)return;for(var G=E.getComponents(),tt=E.unit.convertToHInches(E.clientRectangle),At=0,wt=0,Tt=G.list;wt<Tt.length;wt++){var gt=Tt[wt],V=gt,rt=E.unit.convertToHInches(V.displayRectangle),ot=!0;if(V instanceof O&&(ot=!1),(rt.right<tt.left||rt.left>tt.right||rt.bottom<tt.top||rt.top>tt.bottom)&&(ot=!1),V.enabled&&ot){var Bt=null,dt=null==st.get(gt)?null:st.get(gt).sti_as(i.StiCellStyle);null==dt&&S.cacheMode&&(dt=j.matrix.getStyleFromComponent(gt,-1,-1,this.exportServiceId),dt.absolutePosition=!0);var Rt=j.matrix.styles.indexOf(dt);-1!=Rt&&this.useStylesTable&&(Bt="s"+dt.styleName);var Ct=null==st.get(gt)?null:st.get(gt).sti_as(String);if(!String.isNullOrEmpty(Ct)&&this.useStylesTable&&(Bt=Ct),B&&!this.forceExportAsImage(V)){var mt=V;if(null!=mt&&null!=mt.brush&&!(mt.brush instanceof Z)){m.writeBeginTag(this.strSpanDiv),String.isNullOrEmpty(Bt)||m.writeAttribute("class",Bt),m.write(' style="'),m.write(""),this.renderPosition(V),m.write('position:absolute;">');var Pt=new L;Pt.page=E,Pt.clientRectangle=V.clientRectangle,Pt.brush=V.brush,this.renderImage(Pt),m.writeEndTag(this.strSpanDiv),m.writeLine(""),V=gt.clone(),V.brush=new Z(A.transparent)}}var Ft=V.isExportAsImage(e.StiExportFormat.Html)||this.forceExportAsImage(V),xt=!1;if(m.writeBeginTag(this.strSpanDiv),String.isNullOrEmpty(Bt)||m.writeAttribute("class",Bt),y==i.StiHtmlExportMode.Div&&(null!=V.toolTipValue&&m.writeAttribute("title",V.toolTipValue.toString()),null!=dt&&null!=dt.textOptions&&0==dt.textOptions.wordWrap&&m.write(" nowrap")),this.insertInteractionParameters){if(null!=gt.report&&!gt.report.isDocument&&this.isComponentHasInteraction(gt)){if(m.write(String.stiFormat(' interaction="{0}"',V.name)),V.interaction.sortingEnabled){var Dt=V.interaction.getSortDataBandName(),kt=V.report.getComponentByName(Dt).sti_as(c);if(null!=kt){m.write(String.stiFormat(' databandsort="{0};{1}"',Dt,String.join(";",kt.sort)));for(var Et=0;Et<kt.sort.length;Et+=2)kt.sort[Et+1]==V.interaction.getSortColumnsString()&&m.write(String.stiFormat(' sort="{0}"',kt.sort[Et].toLower()))}}!V.interaction.drillDownEnabled||null==V.interaction.drillDownPage&&String.isNullOrEmpty(V.interaction.drillDownReport)||(null!=V.interaction.drillDownPage&&m.write(String.stiFormat(' pageguid="{0}"',V.interaction.drillDownPage.guid)),String.isNullOrEmpty(V.interaction.drillDownReport)||m.write(String.stiFormat(' reportfile="{0}"',V.interaction.drillDownReport)),m.write(String.stiFormat(' pageindex="{0}"',V.page.report.renderedPages.indexOf(V.page).toString())),m.write(String.stiFormat(' compindex="{0}"',V.page.components.indexOf(V).toString())));var Gt=V.interaction.sti_as(p);if(null!=Gt&&Gt.collapsingEnabled&&V.sti_is(g)){var Pt=V;m.write(String.stiFormat(' collapsed="{0}"',u.isCollapsed(Pt,!1).toString().toLower())),m.write(String.stiFormat(' compindex="{0}"',Pt.collapsingIndex.toString()))}}if(null!=gt.page&&gt.sti_is(l)&&gt.editable){var _t=new W,Lt=gt.page.components.indexOf(gt);_t.appendFormat("{0};",Lt);var Nt=gt.sti_as(s);if(null!=Nt){var Ot=A.transparent;Nt.textBrush.sti_is(Z)?Ot=Nt.textBrush.color:Nt.textBrush.sti_is(a)?Ot=Nt.textBrush.startColor:Nt.textBrush.sti_is(o)?Ot=Nt.textBrush.startColor:Nt.textBrush.sti_is(n)?Ot=Nt.textBrush.color:Nt.textBrush.sti_is(r)&&(Ot=Nt.textBrush.foreColor),_t.appendFormat("CheckBox;{0};{1};{2};#{3:X2}{4:X2}{5:X2};{6};#{7:X2}{8:X2}{9:X2}",Nt.checkedValue,Nt.checkStyleForFalse.toString(),Nt.checkStyleForTrue.toString(),Nt.contourColor.r,Nt.contourColor.g,Nt.contourColor.b,Nt.size,Ot.r,Ot.g,Ot.b)}var Zt=gt.sti_as(L);null!=Zt&&_t.appendFormat("Text");var Mt=gt.sti_as(z);null!=Mt&&_t.appendFormat("RichText"),m.write(String.stiFormat(' editable="{0}"',_t.toString()))}}m.write(' style="'),V.sti_is(L)&&V.vertAlignment!=_.Top&&(m.writeStyleAttribute("display","table"),m.writeStyleAttribute("border-spacing","0px")),V.sti_is(x)&&V.vertAlignment!=_.Top&&(m.writeStyleAttribute("display","table"),m.writeStyleAttribute("border-spacing","0px")),m.write(""),this.renderPosition(V),this.useStylesTable||(-1!=Rt&&j.renderStyle(dt),String.isNullOrEmpty(Ct)||m.writeLine(lt.get(Ct)+";overflow:hidden;"));var Ht=V.sti_as(v),Wt=V.sti_as(t.Report.Components.Gauge.IStiGauge),Vt=V.sti_as(t.Report.Maps.StiMap);if(null!=Ht&&this.chartType!=i.StiHtmlChartType.Image)m.write('" '),m.writeAttribute("id",String.stiFormat("id{0}",this.chartData.count)),xt=this.renderHyperlink(V),this.prepareChartData(Ht,rt.width,rt.height),xt&&m.writeEndTag("a");else if(null!=Wt)m.write('" '),m.writeAttribute("id",Wt.guid),m.write(">"),this.prepareGaugeData(m,Wt,rt.width,rt.height),(xt=this.renderHyperlink(V))&&m.writeEndTag("a");else if(null!=Vt)m.write('" '),m.writeAttribute("id",Vt.guid),m.write(">"),this.prepareMapData(m,Vt,rt.width,rt.height),(xt=this.renderHyperlink(V))&&m.writeEndTag("a");else if(V.sti_is(t.Report.BarCodes.StiBarCode)||V.sti_is(t.Report.Components.StiCheckBox)||V.sti_is(t.Report.Components.StiShape)){m.write('">');var Yt=i.StiSvgHelper.saveComponentToString(V,e.ImageFormat.Jpeg,.75,100,!1),jt=String.stiFormat('<svg width="{0}" height="{1}"><g transform="scale({2})">{3}</g></svg>',Math.ceil(rt.width),Math.ceil(rt.height),this.zoom,Yt);m.write(jt)}else if(Ft)m.write('">'),xt=this.renderHyperlink(V),this.renderImage(V),xt&&m.writeEndTag("a");else if(V.sti_is(U)&&null!=V.indicator){var Xt=new i.StiHtmlSvg,Yt=i.StiSvgHelper.saveComponentToString(V,e.ImageFormat.Jpeg,.75,100,!1),jt=String.stiFormat('<svg width="{0}" height="{1}"><g transform="scale({2})">{3}</g></svg>',Math.ceil(rt.width),Math.ceil(rt.height),this.zoom,Yt);m.write('">'),m.write(jt)}else{var Jt=V.sti_as(M);null!=Jt&&this.renderTextDirection(null,Jt.textOptions),V.sti_is(t.Report.BarCodes.StiBarCode)||V.sti_is(t.Report.Components.StiCheckBox)||V.sti_is(t.Report.Components.StiShape)||m.write('">'),xt=this.renderHyperlink(V);var Kt=!0;if(null==Jt||Jt.textOptions.wordWrap){if(V.sti_is(U)&&!(V instanceof z)){var Ut=V.text;if(null!=Ut){var zt=V;null!=zt&&zt.textQuality==Q.Wysiwyg&&!String.isNullOrEmpty(Ut)&&Ut.endsWith(K.StiForceWidthAlignTag)&&(Ut=Ut.substr(0,Ut.length-K.StiForceWidthAlignTag.length)),null!=zt&&zt.checkAllowHtmlTags()?Ut=nt.convertTextWithHtmlTagsToHtmlText(zt,Ut):(null!=zt&&StiOptions.Export.Html.forceWysiwygWordwrap&&!zt.checkAllowHtmlTags()&&zt.textQuality==Q.Wysiwyg&&null!=Jt&&Jt.textOptions.wordWrap,StiOptions.Export.Html.replaceSpecialCharacters&&(Ut=Ut.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll(" ","&nbsp;"))),zt.vertAlignment==_.Top?m.write(this.prepareTextForHtml(Ut)):(m.writeBeginTag(this.strSpanDiv+' style="'),m.writeStyleAttribute("display","flex"),m.writeStyleAttribute("overflow","hidden"),zt.vertAlignment==_.Center?m.writeStyleAttribute("align-items","center"):m.writeStyleAttribute("align-items","baseline"),m.writeStyleAttribute("max-width",this.getWidth(zt)),m.writeStyleAttribute("height",this.getHeight(zt)),this.renderVertAlignment(null,zt.vertAlignment),m.write('">'),m.write(this.prepareTextForHtml(Ut)),m.writeEndTag(this.strSpanDiv))}Kt=!1}}else if(V.sti_is(U)&&!V.sti_is(z)){var Ut=V.text;if(null!=Ut){var zt=V;null!=zt&&zt.textQuality==Q.Wysiwyg&&!String.isNullOrEmpty(Ut)&&Ut.endsWith(K.StiForceWidthAlignTag)&&(Ut=Ut.substr(0,Ut.length-K.StiForceWidthAlignTag.length)),null!=zt&&zt.checkAllowHtmlTags()?Ut=nt.convertTextWithHtmlTagsToHtmlText(zt,Ut):StiOptions.Export.Html.replaceSpecialCharacters&&(Ut=Ut.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll(" ","&nbsp;")),StiOptions.Export.Html.convertDigitsToArabic&&Jt.textOptions.rightToLeft&&(Ut=i.StiExportUtils.convertDigitsToArabic(Ut,StiOptions.Export.Html.arabicDigitsType)),zt.vertAlignment==_.Top?m.write(this.prepareTextForHtml(Ut)):(m.writeBeginTag(this.strSpanDiv+' style="'),m.writeStyleAttribute("display","table-cell"),m.writeStyleAttribute("max-width",this.getWidth(zt)),this.renderVertAlignment(null,zt.vertAlignment),m.write('">'),m.write(this.prepareTextForHtml(Ut)),m.writeEndTag(this.strSpanDiv))}Kt=!1}xt&&(Kt&&m.write("<br>"),m.writeEndTag("a"))}m.writeEndTag(this.strSpanDiv),m.writeLine(""),At++}}m.writeLine("\x3c!-- end page --\x3e"),this.startPage+=E.unit.convertToHInches(E.height)}if(!t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()&&S.count>0){var Qt=String.stiFormat("{3}{0}{2}{4}{1}",String.fromCharCode(114),String.fromCharCode(108),String.fromCharCode(105),String.fromCharCode(84),String.fromCharCode(97)),qt=S.getByIndex(0).unit.convertToHInches(S.getByIndex(0).clientRectangle),$t=Math.trunc(100*this.zoom);m.writeLine(String.stiFormat('<div style="position: absolute; filter: alpha(Opacity=30); opacity: 0.3; -moz-opacity: 0.3; -khtml-opacity: 0.3; font-size: {1}px; font-weight: bold; width: {2}; margin-top: {3}; text-align: center; font-family: Arial; color: black; z-index: 9999; transform: rotate(-45deg); ">{4}</div>',this.strSpanDiv,$t,i.StiHtmlUnit.newUnit(qt.width*this.zoom,StiOptions.Export.Html.printLayoutOptimization),i.StiHtmlUnit.newUnit(qt.height*this.zoom/2-$t,StiOptions.Export.Html.printLayoutOptimization),Qt))}this.renderEndPage(),this.renderAsDocument&&this.renderChartScripts(),this.renderAsDocument&&this.renderGaugeScripts(),this.renderAsDocument&&this.renderMapsScripts(),this.renderAsDocument&&this.renderEndDoc()}if(y==i.StiHtmlExportMode.Table){if(this.currentPassNumber=0,this.maximumPassNumber=3,this.tableRender=new i.StiHtmlTableRender(this,d,S),this.isStopped)return;for(var lt=new I,te=Array.create(Boolean,this.tableRender.matrix.coordY.count,this.tableRender.matrix.coordX.count),ee=1;ee<this.tableRender.matrix.coordY.count;ee++)for(var ie=1;ie<this.tableRender.matrix.coordX.count;ie++)if(!te[ee-1][ie-1]){var re=this.tableRender.matrix.cells[ee-1][ie-1];if(null!=re){for(var ne=0;ne<=re.height;ne++)for(var oe=0;oe<=re.width;oe++)te[ee-1+ne][ie-1+oe]=!0;if(null!=re.component){var St=re.component.tagValue;if(!String.isNullOrEmpty(St))for(var ft=i.StiMatrix.splitTag(St),yt=0;yt<ft.length;yt++)if(ft[yt].toLower().startsWith("css")){var bt=i.StiMatrix.getStringsFromTag(ft[yt],3);if(bt.length>1){var Ct=bt[0].trim();lt.set(Ct,bt[1].trim());break}}}}}if(this.renderAsDocument&&this.renderStartDoc(this.tableRender,!0,b,T,lt,S,d.encoding),!this.renderAsDocument&&b&&this.renderBookmarkScript(),b&&(this.htmlWriter.writeBeginTag("this.table"),this.pageHorAlignment!=P.Left&&this.htmlWriter.writeAttribute("width","100%"),StiOptions.Export.Html.useExtendedStyle&&this.htmlWriter.writeAttribute("class","sBaseStyleFix"),this.htmlWriter.write(">"),StiOptions.Export.Html.useExtendedStyle&&(m.writeBeginTag("tbody"),m.writeAttribute("class","sBaseStyleFix"),m.writeLine(">")),this.htmlWriter.writeBeginTag("tr"),StiOptions.Export.Html.useExtendedStyle&&this.htmlWriter.writeAttribute("class","sBaseStyleFix"),this.htmlWriter.write(">"),this.htmlWriter.writeBeginTag('td class="dtreeframe" style="'),this.htmlWriter.writeStyleAttribute("vertical-align","top"),this.renderBookmarkTree(h.bookmark,C,R),this.htmlWriter.writeEndTag("td"),this.htmlWriter.writeLine(),this.htmlWriter.writeBeginTag("td"),StiOptions.Export.Html.useExtendedStyle&&this.htmlWriter.writeAttribute("class","sBaseStyleFix"),this.htmlWriter.writeLine(">"),this.htmlWriter.indent++),!t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()&&S.count>0){var Qt=String.stiFormat("{3}{0}{2}{4}{1}",String.fromCharCode(114),String.fromCharCode(108),String.fromCharCode(105),String.fromCharCode(84),String.fromCharCode(97)),qt=S.getByIndex(0).unit.convertToHInches(S.getByIndex(0).clientRectangle),$t=Math.trunc(100*this.zoom);m.writeLine(String.stiFormat('<div style="position: absolute; filter: alpha(Opacity=30); opacity: 0.3; -moz-opacity: 0.3; -khtml-opacity: 0.3; font-size: {1}px; font-weight: bold; width: {2}; margin-top: {3}; text-align: center; font-family: Arial; color: black; z-index: 9999; transform: rotate(-45deg);">{4}</div>',this.strSpanDiv,$t,i.StiHtmlUnit.newUnit(qt.width*this.zoom,StiOptions.Export.Html.printLayoutOptimization),i.StiHtmlUnit.newUnit(qt.height*this.zoom/2-$t,StiOptions.Export.Html.printLayoutOptimization),Qt))}T||this.tableRender.renderTable(!this.renderAsDocument&&this.renderStyles,this.getBackgroundImagePath(S,this.zoom,d.useWatermarkMargins),b,T,lt),b&&(this.htmlWriter.indent--,this.htmlWriter.writeEndTag("td"),this.htmlWriter.writeEndTag("tr"),this.htmlWriter.writeEndTag("tbody"),this.htmlWriter.writeEndTag("this.table"),this.htmlWriter.writeLine()),this.renderAsDocument&&this.renderChartScripts(),this.renderAsDocument&&this.renderGaugeScripts(),this.renderAsDocument&&this.renderMapsScripts(),this.renderAsDocument&&this.renderEndDoc()}m.flush()}finally{h=null,this.clearOnFinish&&this.clear()}},nt}(i.StiExportService);i.StiHtmlExportService=it;var rt=function(){function t(){}return t}();i.StiBookmarkTreeNode=rt}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Collections.Hashtable,n=t.System.Drawing.Color,o=t.System.Char,a=t.Report.Components.StiPagesCollection,s=t.System.Drawing.Size,l=t.Base.Drawing.StiTextHorAlignment,u=t.Base.Drawing.StiPenStyle,c=t.Base.Drawing.StiVertAlignment,p=t.Report.Components.StiText,h=t.Base.Drawing.StiBrush,g=t.System.Text.StringBuilder,m=t.Report.Components.IStiExportImage,d=t.Report.Components.IStiExportImageExtended,S=t.System.Text.Encoding,f=t.Base.Drawing.StiTextRenderer,y=t.Report.Components.StiRichText,b=t.System.IO.MemoryStream,C=t.System.Xml.XmlTextWriter,v=t.System.DateTime,I=t.Report.Components.StiCheckBox,A=t.Base.Zip.StiZipWriter20,w=t.System.Globalization.CultureInfo,T=t.Report.Components.StiPageOrientation,B=t.Base.Drawing.StiHtmlState,R=t.Base.Drawing.StiHtmlTagsState,P=function(P){function L(){var t=null!==P&&P.apply(this,arguments)||this;return t.matrix=null,t.fontList=null,t.fillList=null,t.borderList=null,t.xfList=null,t.sstList=null,t.sstHash=null,t.sstHashIsTags=null,t.imageList=null,t.formatList=null,t.sstCount=0,t.sheetNameList=null,t.imageListOffset=0,t.printAreasList=null,t.matrixList=null,t.firstPageIndexList=null,t.hyperlinkList=null,t.minRowList=null,t.maxRowList=null,t.useOnePageHeaderAndFooter=!1,t.exportDataOnly=!1,t.exportObjectFormatting=!0,t.exportEachPageToSheet=!1,t.exportHorizontalPageBreaks=!1,t.imageResolution=1,t.imageQuality=.75,t.imageCache=null,t.restrictEditing=i.StiExcel2007RestrictEditing.No,t.reportCulture=null,t.docCompanyString=null,t.docLastModifiedString=null,t.xmlIndentation=1,t.wrongUrlSymbols=" \"#'*,;<>[^`{|}",t.HiToTwips=14.4/20*1.028,t.TwipsToColinfo=2.438*.921*.075*1.03*.99*1.01,t}return __extends(L,P),L.prototype.getDefaultExtension=function(){return"xlsx"},L.prototype.exportTo=function(t,e,i){this.exportExcel(t,e,i)},L.prototype.exportToAsync=function(e,i,r,n){var o=this;t.Report.Export.StiExportImageHelper.convertAllImages(i,t.System.Drawing.Imaging.ImageFormat.Jpeg).try(function(){o.exportTo(i,r,n),e()})},L.prototype.getLineStyle=function(t){var e=u.None,i=0,r=1.5;switch(null!=t&&(e=t.style,i=t.size),e){case u.Solid:if(i>3)return"thick";if(i>r)return"medium";return"thin";case u.Dot:if(i>r)return"dotted";return"hair";case u.Dash:if(i>r)return"mediumDashed";return"dashed";case u.DashDot:if(i>r)return"mediumDashDot";return"dashDot";case u.DashDotDot:if(i>r)return"mediumDashDotDot";return"dashDotDot";case u.Double:return"double";default:return null}},L.prototype.getRefString=function(t,e){var i=Math.trunc(t/26),r=Math.trunc(t%26),n=new g;return i>0&&n.append(String.fromCharCode("A".charCodeAt(0)+i-1)),n.append(String.fromCharCode("A".charCodeAt(0)+r)),n.append((e+1).toString()),n.toString()},L.prototype.getRefAbsoluteString=function(t,e){var i=Math.trunc(t/26),r=Math.trunc(t%26),n=new g;return n.append("$"),i>0&&n.append(String.fromCharCode("A".charCodeAt(0)+i-1)),n.append(String.fromCharCode("A".charCodeAt(0)+r)),n.append("$"),n.append((e+1).toString()),n.toString()},L.prototype.floatToString=function(e){return e.toString().replaceAll(",",t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},L.prototype.stringToUrl=function(t){for(var e=new g,i=0;i<t.length;i++){var r=t.charAt(i);if("'"==r)continue;r.charCodeAt(0)<32||-1!=this.wrongUrlSymbols.indexOf(r)?e.append(String.stiFormat("%{0:x2}",r.charCodeAt(0))):e.append(r)}return e.toString()},L.prototype.getFontNumber=function(t){if(this.fontList.length>0)for(var e=0;e<this.fontList.length;e++)if(this.fontList[e].stiEquals(t))return e;return this.fontList.add(t),this.fontList.length-1},L.prototype.getFillNumber=function(t){if(this.fillList.length>0)for(var e=0;e<this.fillList.length;e++)if(this.fillList[e].stiEquals(t))return e;return this.fillList.add(t),this.fillList.length-1},L.prototype.getBorderNumber=function(t){if(this.borderList.length>0)for(var e=0;e<this.borderList.length;e++)if(this.borderList[e].stiEquals(t))return e;return this.borderList.add(t),this.borderList.length-1},L.prototype.getXFNumber=function(t){if(this.xfList.length>0)for(var e=0;e<this.xfList.length;e++)if(this.xfList[e].equalDataXF(t))return e;return this.xfList.add(t),this.xfList.length-1},L.prototype.getSSTNumber=function(t){if(this.sstCount++,this.sstList.length>0&&this.sstHash.containsKey(t))return this.sstHash.get(t);this.sstList.add(t);var e=this.sstList.length-1;return this.sstHash.add(t,e),e},L.prototype.getFormatNumber=function(t){if(this.formatList.length>0)for(var e=0;e<this.formatList.length;e++)if(this.formatList[e]==t)return e+164;return this.formatList.add(t),this.formatList.length-1+164},L.prototype.convert=function(t){return t*this.HiToTwips},L.prototype.compareExcellSheetNames=function(t,e){var i=t;null!=i&&0!=i.length||(i="");var r=e;return null!=r&&0!=r.length||(r=""),i==r},L.prototype.prepareData=function(){this.fontList=new Array,this.fillList=new Array,this.borderList=new Array,this.xfList=new Array,this.sstList=new Array,this.sstHash=new r,this.sstHashIsTags=new r,this.imageList=new Array,this.formatList=new Array,this.sheetNameList=new Array,this.sstCount=0,this.printAreasList=new Array,this.matrixList=new Array,this.firstPageIndexList=new Array,this.minRowList=new Array,this.maxRowList=new Array,this.imageCache=new e.StiImageCache(StiOptions.Export.Excel.AllowImageComparer,!0,e.ImageFormat.Jpeg,this.imageQuality,!1);var t=new F("Arial",!1,!1,!1,!1,10,n.black,1,0);this.getFontNumber(t);var i=new x("none",n.transparent,n.black);this.getFillNumber(i),i=new x("gray125",n.transparent,n.black),this.getFillNumber(i);var o=new D(null,null,null,null);this.getBorderNumber(o);var a=new k(0,0,0,0,0,l.Left,c.Bottom,0,!1,!1,!1);this.getXFNumber(a)},L.prototype.writeContentTypes=function(){var t=new b,e=new C(S.UTF8,t);e.writeStartDocument(),e.writeStartElement("Types"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/content-types"),e.writeStartElement("Default"),e.writeAttributeString("Extension","rels"),e.writeAttributeString("ContentType","application/vnd.openxmlformats-package.relationships+xml"),e.writeEndElement(),e.writeStartElement("Default"),e.writeAttributeString("Extension","xml"),e.writeAttributeString("ContentType","application/xml"),e.writeEndElement(),e.writeStartElement("Default"),e.writeAttributeString("Extension","jpeg"),e.writeAttributeString("ContentType","image/jpeg"),e.writeEndElement(),e.writeStartElement("Default"),e.writeAttributeString("Extension","png"),e.writeAttributeString("ContentType","image/png"),e.writeEndElement(),e.writeStartElement("Default"),e.writeAttributeString("Extension","vml"),e.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.vmlDrawing"),e.writeEndElement(),e.writeStartElement("Override"),e.writeAttributeString("PartName","/docProps/app.xml"),e.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.extended-properties+xml"),e.writeEndElement(),e.writeStartElement("Override"),e.writeAttributeString("PartName","/docProps/core.xml"),e.writeAttributeString("ContentType","application/vnd.openxmlformats-package.core-properties+xml"),e.writeEndElement(),e.writeStartElement("Override"),e.writeAttributeString("PartName","/xl/workbook.xml"),e.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"),e.writeEndElement();for(var i=0;i<this.sheetNameList.length;i++)e.writeStartElement("Override"),e.writeAttributeString("PartName",String.stiFormat("/xl/worksheets/sheet{0}.xml",i+1)),e.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"),e.writeEndElement();e.writeStartElement("Override"),e.writeAttributeString("PartName","/xl/styles.xml"),e.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"),e.writeEndElement();for(var i=0;i<this.sheetNameList.length;i++)e.writeStartElement("Override"),e.writeAttributeString("PartName",String.stiFormat("/xl/drawings/drawing{0}.xml",i+1)),e.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.drawing+xml"),e.writeEndElement();return this.sstList.length>0&&(e.writeStartElement("Override"),e.writeAttributeString("PartName","/xl/sharedStrings.xml"),e.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"),e.writeEndElement()),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},L.prototype.writeMainRels=function(){var t=new b,e=new C(S.UTF8,t);return e.writeStartDocument(),e.writeStartElement("Relationships"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/relationships"),e.writeStartElement("Relationship"),e.writeAttributeString("Id","rId1"),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"),e.writeAttributeString("Target","xl/workbook.xml"),e.writeEndElement(),e.writeStartElement("Relationship"),e.writeAttributeString("Id","rId2"),e.writeAttributeString("Type","http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"),e.writeAttributeString("Target","docProps/core.xml"),e.writeEndElement(),e.writeStartElement("Relationship"),e.writeAttributeString("Id","rId3"),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"),e.writeAttributeString("Target","docProps/app.xml"),e.writeEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},L.prototype.writeDocPropsApp=function(){var t=new b,e=new C(S.UTF8,t);e.writeStartDocument(),e.writeStartElement("Properties"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"),e.writeAttributeString("xmlns:vt","http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"),e.writeElementString("Application","Microsoft Excel"),e.writeElementString("DocSecurity","0"),e.writeElementString("ScaleCrop","false"),e.writeElementString("Company",null==this.docCompanyString?"":this.docCompanyString),e.writeElementString("LinksUpToDate","false"),e.writeElementString("SharedDoc","false"),e.writeElementString("HyperlinksChanged","false"),e.writeElementString("AppVersion","12.0000"),e.writeStartElement("HeadingPairs"),e.writeStartElement("vt:vector"),e.writeAttributeString("size","4"),e.writeAttributeString("baseType","variant"),e.writeStartElement("vt:variant"),e.writeElementString("vt:lpstr","Worksheets"),e.writeEndElement(),e.writeStartElement("vt:variant"),e.writeElementString("vt:i4",String.stiFormat("{0}",this.sheetNameList.length)),e.writeEndElement(),e.writeStartElement("vt:variant"),e.writeElementString("vt:lpstr","Named Ranges"),e.writeEndElement(),e.writeStartElement("vt:variant"),e.writeElementString("vt:i4",String.stiFormat("{0}",this.sheetNameList.length)),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("TitlesOfParts"),e.writeStartElement("vt:vector"),e.writeAttributeString("size",String.stiFormat("{0}",2*this.sheetNameList.length)),e.writeAttributeString("baseType","lpstr");for(var i=0;i<this.sheetNameList.length;i++)e.writeElementString("vt:lpstr",this.sheetNameList[i]);for(var i=0;i<this.sheetNameList.length;i++)e.writeElementString("vt:lpstr",String.stiFormat("'{0}'!Print_Area",this.sheetNameList[i]));return e.writeEndElement(),e.writeEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},L.prototype.writeDocPropsCore=function(){var e=new b,i=new C(S.UTF8,e);i.writeStartDocument(),i.writeStartElement("cp:coreProperties"),i.writeAttributeString("xmlns:cp","http://schemas.openxmlformats.org/package/2006/metadata/core-properties"),i.writeAttributeString("xmlns:dc","http://purl.org/dc/elements/1.1/"),i.writeAttributeString("xmlns:dcterms","http://purl.org/dc/terms/"),i.writeAttributeString("xmlns:dcmitype","http://purl.org/dc/dcmitype/"),i.writeAttributeString("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");var r=String.stiFormat("{0}",v.now.toString("yyyy-MM-ddTHH:mm:ssZ"));return i.writeElementString("dc:title",null==this.report.reportName?"":this.report.reportName),i.writeElementString("dc:subject",null==this.report.reportAlias?"":this.report.reportAlias),i.writeElementString("dc:creator",null==this.report.reportAuthor?"":this.report.reportAuthor),i.writeElementString("dc:description",null==this.report.reportDescription?"":this.report.reportDescription),i.writeElementString("cp:lastModifiedBy",null==this.docLastModifiedString?"":this.docLastModifiedString),i.writeStartElement("dcterms:created"),i.writeAttributeString("xsi:type","dcterms:W3CDTF"),i.writeString(r),i.writeEndElement(),i.writeStartElement("dcterms:modified"),i.writeAttributeString("xsi:type","dcterms:W3CDTF"),i.writeString(r),i.writeEndElement(),i.writeElementString("cp:contentStatus",t.StiVersion.platform()),i.writeFullEndElement(),i.writeEndDocument(),i.flush(),e},L.prototype.writeWorkbookRels=function(){var t=new b,e=new C(S.UTF8,t);e.writeStartDocument(),e.writeStartElement("Relationships"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/relationships");for(var i=0;i<this.sheetNameList.length;i++)e.writeStartElement("Relationship"),e.writeAttributeString("Id",String.stiFormat("rId{0}",i+1)),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"),e.writeAttributeString("Target",String.stiFormat("worksheets/sheet{0}.xml",i+1)),e.writeEndElement();return e.writeStartElement("Relationship"),e.writeAttributeString("Id",String.stiFormat("rId{0}",this.sheetNameList.length+2)),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"),e.writeAttributeString("Target","styles.xml"),e.writeEndElement(),this.sstCount>0&&(e.writeStartElement("Relationship"),e.writeAttributeString("Id",String.stiFormat("rId{0}",this.sheetNameList.length+3)),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"),e.writeAttributeString("Target","sharedStrings.xml"),e.writeEndElement()),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},L.prototype.writeWorkbook=function(){var t=new b,e=new C(S.UTF8,t);e.writeStartDocument(),e.writeStartElement("workbook"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main"),e.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),e.writeStartElement("fileVersion"),e.writeAttributeString("appName","xl"),e.writeAttributeString("lastEdited","4"),e.writeAttributeString("lowestEdited","4"),e.writeAttributeString("rupBuild","4505"),e.writeEndElement(),e.writeStartElement("workbookPr"),e.writeAttributeString("defaultThemeVersion","124226"),e.writeEndElement(),e.writeStartElement("bookViews"),e.writeStartElement("workbookView"),e.writeAttributeString("xWindow","120"),e.writeAttributeString("yWindow","15"),e.writeAttributeString("windowWidth","18975"),e.writeAttributeString("windowHeight","11955"),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("sheets");for(var i=0;i<this.sheetNameList.length;i++)e.writeStartElement("sheet"),e.writeAttributeString("name",this.sheetNameList[i]),e.writeAttributeString("sheetId",String.stiFormat("{0}",i+1)),e.writeAttributeString("r:id",String.stiFormat("rId{0}",i+1)),e.writeEndElement();e.writeEndElement(),e.writeStartElement("definedNames");for(var i=0;i<this.sheetNameList.length;i++){var r=this.printAreasList[i];r.height>1048575&&(r.height=1048575),r.width>16383&&(r.width=16383);var n=this.getRefAbsoluteString(r.width,r.height);e.writeStartElement("definedName"),e.writeAttributeString("name","_xlnm.Print_Area"),e.writeAttributeString("localSheetId",String.stiFormat("{0}",i)),e.writeString(String.stiFormat("'{0}'!$A$1:{1}",this.sheetNameList[i],n)),e.writeEndElement()}return e.writeEndElement(),e.writeStartElement("calcPr"),e.writeAttributeString("calcId","124519"),e.writeEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},L.prototype.writeSheetRels=function(e){var i=new b,r=new C(S.UTF8,i);if(r.writeStartDocument(),r.writeStartElement("Relationships"),r.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/relationships"),this.imageList.length-this.imageListOffset>0&&(r.writeStartElement("Relationship"),r.writeAttributeString("Id",String.stiFormat("rId{0}",1)),r.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"),r.writeAttributeString("Target",String.stiFormat("../drawings/drawing{0}.xml",e+1)),r.writeEndElement()),this.hyperlinkList.length>0)for(var n=0;n<this.hyperlinkList.length;n++)r.writeStartElement("Relationship"),r.writeAttributeString("Id",String.stiFormat("rId{0}",2+n)),r.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"),r.writeAttributeString("Target",this.hyperlinkList[n]),r.writeAttributeString("TargetMode","External"),r.writeEndElement();return t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||(r.writeStartElement("Relationship"),r.writeAttributeString("Id","dId1"),r.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing"),r.writeAttributeString("Target","../drawings/vmlDrawingAdditional.vml"),r.writeEndElement()),r.writeFullEndElement(),r.writeEndDocument(),r.flush(),i},L.prototype.writeSheet=function(r,a){var l=new b,u=new C(S.UTF8,l);u.writeStartDocument(),u.writeStartElement("worksheet"),u.writeAttributeString("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main"),u.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),StiOptions.Export.Excel.FitToOnePageWide&&(u.writeStartElement("sheetPr"),u.writeStartElement("pageSetUpPr"),u.writeAttributeString("fitToPage","1"),u.writeEndElement(),u.writeEndElement()),this.matrix=this.matrixList[r];var c=this.minRowList[r],h=this.maxRowList[r],f=new s(this.matrix.coordX.count-2,h-c-1);f.width<0&&(f.width=0),f.height<0&&(f.height=0),this.printAreasList.add(f);var v=new Array;u.writeStartElement("dimension"),u.writeAttributeString("ref",String.stiFormat("{0}:{1}",this.getRefString(0,0),this.getRefString(f.width,f.height))),u.writeEndElement();var A=0,w=0;if(StiOptions.Export.Excel.AllowFreezePanes)for(var B=c;B<h;B++)for(var R=0;R<this.matrix.coordX.count-1;R++){var P=this.matrix.cells[B][R];if(null!=P&&null!=P.component&&(P.component.locked||null!=P.component.tagValue&&P.component.tagValue.toString().contains("excelfreezepanes"))){var L=P.component.componentPlacement;if(null!=L&&L.length>0&&(L.startsWith("rt")||L.startsWith("ph")||L.startsWith("h"))){A=P.left,w=P.top+P.height+1;break}}}u.writeStartElement("sheetViews"),u.writeStartElement("sheetView"),StiOptions.Export.Excel.ColumnsRightToLeft&&u.writeAttributeString("rightToLeft","1"),StiOptions.Export.Excel.ShowGridLines||u.writeAttributeString("showGridLines","0"),u.writeAttributeString("tabSelected","1"),u.writeAttributeString("workbookViewId","0"),0==A&&0==w?(u.writeStartElement("selection"),u.writeAttributeString("activeCell","A1"),u.writeAttributeString("sqref","A1"),u.writeEndElement()):0==A?(u.writeStartElement("pane"),u.writeAttributeString("ySplit",w.toString()),u.writeAttributeString("topLeftCell",this.getRefString(A,w)),u.writeAttributeString("activePane","bottomLeft"),u.writeAttributeString("state","frozen"),u.writeEndElement(),u.writeStartElement("selection"),u.writeAttributeString("pane","bottomLeft"),u.writeAttributeString("activeCell",this.getRefString(0,w)),u.writeAttributeString("sqref",this.getRefString(0,w)),u.writeEndElement()):(u.writeStartElement("pane"),u.writeAttributeString("xSplit",A.toString()),u.writeAttributeString("ySplit",w.toString()),u.writeAttributeString("topLeftCell",this.getRefString(A,w)),u.writeAttributeString("activePane","bottomRight"),u.writeAttributeString("state","frozen"),u.writeEndElement(),u.writeStartElement("selection"),u.writeAttributeString("pane","topRight"),u.writeAttributeString("activeCell",this.getRefString(A,0)),u.writeAttributeString("sqref",this.getRefString(A,0)),u.writeEndElement(),u.writeStartElement("selection"),u.writeAttributeString("pane","bottomLeft"),u.writeAttributeString("activeCell",this.getRefString(0,w)),u.writeAttributeString("sqref",this.getRefString(0,w)),u.writeEndElement(),u.writeStartElement("selection"),u.writeAttributeString("pane","bottomRight"),u.writeAttributeString("activeCell",this.getRefString(A,w)),u.writeAttributeString("sqref",this.getRefString(A,w)),u.writeEndElement()),u.writeEndElement(),u.writeEndElement(),u.writeStartElement("sheetFormatPr"),u.writeAttributeString("defaultRowHeight",String.stiFormat("{0}",15)),u.writeEndElement();var N=this.matrix.coordX.getKeys(),O=this.matrix.coordY.getKeys();if(this.exportObjectFormatting){u.writeStartElement("cols");for(var Z=0;Z<this.matrix.coordX.count-1;Z++){var M=this.matrix.coordX.getByIndex(Z+1,N),H=this.matrix.coordX.getByIndex(Z,N),W=this.convert(M-H)*this.TwipsToColinfo;u.writeStartElement("col"),u.writeAttributeString("min",String.stiFormat("{0}",Z+1)),u.writeAttributeString("max",String.stiFormat("{0}",Z+1)),u.writeAttributeString("width",String.stiFormat("{0}",W)),u.writeAttributeString("customWidth","1"),u.writeEndElement()}u.writeEndElement()}var V=null,Y=Array.create(Boolean,h+1,this.matrix.coordX.count),j=Array.create(Number,h+1,this.matrix.coordX.count),X=new Array,J=new Array;u.writeStartElement("sheetData");for(var B=c;B<h;B++){var K=this.matrix.coordY.getByIndex(B+1,O)-this.matrix.coordY.getByIndex(B,O);u.writeStartElement("row"),u.writeAttributeString("r",String.stiFormat("{0}",B+1-c)),u.writeAttributeString("spans",String.stiFormat("{0}:{1}",1,this.matrix.coordX.count-1)),this.exportObjectFormatting&&(u.writeAttributeString("ht",String.stiFormat("{0}",this.convert(K))),u.writeAttributeString("customHeight","1"));for(var R=0;R<this.matrix.coordX.count-1;R++){var P=this.matrix.cells[B][R];if(Y[B]&&0==Y[B][R]&&null!=P){Y[B][R]=!0;var U=P.component.sti_as(y),z=P.component.sti_as(p),Q=P.text,q=P.component.sti_as(I),$=!1;null!=q&&null!=q.excelDataValue&&q.excelDataValue.length>0&&($=!0,Q=q.excelDataValue);var tt=null;if(null!=P.component.hyperlinkValue&&(tt=P.component.hyperlinkValue.toString().trim(),tt.length>0&&!tt.startsWith("javascript:"))){var et=Q;null!=et&&0!=et.length||(et=tt);var it=new G(B-c,B-c+P.height,R,R+P.width),rt=new _(it,et,tt);J.add(rt)}var nt=!1,ot=P.component.sti_as(m);if(null!=ot){var at=ot.sti_as(d),st=this.imageResolution,lt=null;if(P.component.isExportAsImage(e.StiExportFormat.Excel2007)&&(lt=null!=at&&at.isExportAsImage(e.StiExportFormat.Excel2007)?at.getImage(st,e.StiExportFormat.Excel):ot.getImage(st)),null!=lt){var ut=this.matrix.getRealImageData(P,lt);null!=ut&&(lt=ut);var ct=this.imageCache.addImageIntRaw(lt,lt.imageFormat),pt=new E(B-c,0,R,0,B-c+1+P.height,0,R+1+P.width,0,ct,tt);this.imageList.add(pt),nt=!0}}var ht=!1;if(null!=P.component&&null!=P.component.tagValue){-1!=P.component.tagValue.toString().toLower().indexOf("exceltext")&&(ht=!0,v.add(this.getRefString(R,B)))}var gt="";null!=z&&(gt=z.format);var mt=!1,dt=!1,St=!1,ft=!1,yt=!1,bt=!1,Ct=!1,vt="",It=2,At=0,wt=this.reportCulture.numberFormat.currencySymbol,Tt=0==this.reportCulture.numberFormat.currencyPositivePattern||2==this.reportCulture.numberFormat.currencyPositivePattern,Bt=!1;if(null!=gt&&gt.length>0)if("C"==gt[0]?mt=!0:"N"==gt[0]?dt=!0:"P"==gt[0]?St=!0:"D"==gt[0]?ft=!0:"T"==gt[0]?yt=!0:"U"==gt[0]&&(bt=!0),1==gt.length)Ct=!0;else if(mt||dt||St){var Rt=1;if(o.isDigit(gt[Rt])){var Pt=new g;while(Rt<gt.length&&o.isDigit(gt[Rt]))Pt.append(gt[Rt]),Rt++;It=parseInt(Pt.toString())}Rt<gt.length&&"G"==gt[Rt]&&(Rt++,At=3),Rt<gt.length&&"("==gt[Rt]&&(Rt++,Bt=!0),Rt<gt.length&&("."==gt[Rt]||","==gt[Rt])&&Rt++,Rt<gt.length&&("+"==gt[Rt]||"-"==gt[Rt])&&("+"==gt[Rt]&&(Tt=!0),++Rt<gt.length&&(wt=gt.substring(Rt)))}if(mt||dt||St||(Ct=!0),mt&&Ct&&(Ct=!1),null!=z&&z.hideZeros&&null!=gt&&gt.length>0&&(Ct=!1),ht&&(Ct=!0),!Ct){var Ft=new g;mt&&1==Tt&&(Ft.append('"'),Ft.append(wt),Ft.append('"')),At>1&&(Ft.append("#,"),Ft.appendCount("#",At-1)),Ft.append("0"),It>0&&(Ft.append("."),Ft.appendCount("0",It)),mt&&0==Tt&&(Ft.append('"'),Ft.append(wt),Ft.append('"')),St&&Ft.append("%"),vt=Ft.toString();var xt=(Bt?"(":"-")+vt+(Bt?")":"");null!=z&&z.hideZeros?vt=vt+";"+xt+";":Bt&&(vt=vt+";"+xt)}var Dt=0;Ct?(dt&&(Dt=4),St&&(Dt=10),ft&&(Dt=14),yt&&(Dt=21),ht&&(Dt=49)):Dt=this.getFormatNumber(vt);var kt=0;if(this.exportObjectFormatting){var Et=P.cellStyle,Gt=new F(Et.font.name,Et.font.bold,Et.font.italic,Et.font.underline,Et.font.strikeout,Math.round(Et.font.sizeInPoints),Et.textColor,1,0);$&&(Gt=new F(StiOptions.Export.CheckBoxReplacementForExcelValue.Font.name,StiOptions.Export.CheckBoxReplacementForExcelValue.Font.bold,StiOptions.Export.CheckBoxReplacementForExcelValue.Font.italic,StiOptions.Export.CheckBoxReplacementForExcelValue.Font.underline,StiOptions.Export.CheckBoxReplacementForExcelValue.Font.strikeout,Math.round(StiOptions.Export.CheckBoxReplacementForExcelValue.Font.sizeInPoints),Et.textColor,1,0));var _t=new x("solid",Et.color,Et.color);nt&&(_t=new x("solid",n.transparent,n.transparent));for(var Lt=!0,Nt=!0,Ot=0;Ot<P.height+1;Ot++)null==this.matrix.bordersY[P.top+Ot][P.left]&&(Lt=!1),null==this.matrix.bordersY[P.top+Ot][P.left+P.width+1]&&(Nt=!1);for(var Zt=!0,Mt=!0,Ot=0;Ot<P.width+1;Ot++)null==this.matrix.bordersX[P.top][P.left+Ot]&&(Zt=!1),null==this.matrix.bordersX[P.top+P.height+1][P.left+Ot]&&(Mt=!1);var Ht=new D(Lt?this.matrix.bordersY[P.top][P.left]:null,Nt?this.matrix.bordersY[P.top][P.left+P.width+1]:null,Zt?this.matrix.bordersX[P.top][P.left]:null,Mt?this.matrix.bordersX[P.top+P.height+1][P.left]:null),Wt=!1;null!=Et.textOptions&&(Wt=Et.textOptions.rightToLeft);var Vt=!1;null!=Et.textOptions&&(Vt=Et.textOptions.wordWrap),String.isNullOrEmpty(Q)||(-1==Q.indexOf("\r")&&-1==Q.indexOf("\n")||(Vt=!0),null==z||!z.checkAllowHtmlTags()||-1==Q.indexOf("<br")&&-1==Q.indexOf("<ul")&&-1==Q.indexOf("<ol")&&-1==Q.indexOf("<p")||(Vt=!0));var Yt=0;if(null!=Et.textOptions){var jt=Math.ceil(Et.textOptions.angle);jt>=0&&jt<=90&&(Yt=jt),jt>=270&&jt<360&&(Yt=360-jt+90)}var Xt=this.restrictEditing==i.StiExcel2007RestrictEditing.ExceptEditableFields&&null!=P.component&&P.component.sti_is(p)&&P.component.sti_as(p).Editable,Jt=new k(Dt,this.getFontNumber(Gt),this.getFillNumber(_t),this.getBorderNumber(Ht),0,$?StiOptions.Export.CheckBoxReplacementForExcelValue.HorAlignment:Et.horAlignment,$?StiOptions.Export.CheckBoxReplacementForExcelValue.VertAlignment:Et.vertAlignment,Yt,Vt,Wt,Xt);kt=this.getXFNumber(Jt)}if(u.writeStartElement("c"),u.writeAttributeString("r",this.getRefString(R,B-c)),u.writeAttributeString("s",kt.toString()),this.exportObjectFormatting){for(var Kt=0;Kt<=P.width;Kt++)for(var Ut=0;Ut<=P.height;Ut++)Y[B+Ut][R+Kt]=!0,j[B+Ut][R+Kt]=kt;if(P.width>0||P.height>0){var zt=new G(B-c,B-c+P.height,R,R+P.width);X.add(zt)}}else Y[B][R]=!0,j[B][R]=kt;if(!P.component.isExportAsImage(e.StiExportFormat.Excel2007)&&(null!=Q&&Q.length>0||null!=z&&null!=z.excelDataValue)){var Qt=!1,qt=!1,$t=0;if(null!=z&&null!=z.excelDataValue&&"-"!=z.excelDataValue){var te=z.excelDataValue,ee=te.replaceAll(",",t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);if(null!=ee&&ee.length>0){qt=!0;try{ft||yt?qt=!1:NaN==($t=parseFloat(ee))&&(qt=!1,$t=0)}catch(e){t.System.StiError.showError(e,!1),qt=!1}}bt&&(qt=!1),te!=Q&&te.startsWith("=")&&(Qt=!0),qt||null!=Q||(Q=te)}if(Qt){var ie=z.excelDataValue.replaceAll("\r","").replaceAll("\t"," ").substring(1);StiOptions.Export.Excel.TrimTrailingSpaces&&(ie=i.StiExportUtils.trimEndWhiteSpace(ie)),u.writeElementString("f",ie)}else if(1==qt)u.writeElementString("v",$t.toString().replaceAll(",","."));else{var ie=Q.replaceAll("\r","").replaceAll("\t"," ");StiOptions.Export.Excel.TrimTrailingSpaces&&(ie=i.StiExportUtils.trimEndWhiteSpace(ie));var re=0;null!=z&&z.checkAllowHtmlTags()?(ie=this.convertAllowHtmlTagsToExcelString(z,ie),re=this.getSSTNumber(ie),this.sstHashIsTags.add(re,null)):re=this.getSSTNumber(ie),u.writeAttributeString("t","s"),u.writeElementString("v",re.toString())}}u.writeEndElement()}else{var kt=0;Y[B][R]&&(kt=j[B][R]);var Lt=null!=this.matrix.bordersY[B+0][R+0],Nt=null!=this.matrix.bordersY[B+0][R+1],Zt=null!=this.matrix.bordersX[B+0][R+0],Mt=void 0;try{Mt=null!=this.matrix.bordersX[B+1][R+0]}catch(e){t.System.StiError.showError(e,!1)}if(Lt||Nt||Zt||Mt||0!=kt){var Ht=new D(Lt?this.matrix.bordersY[B+0][R+0]:null,Nt?this.matrix.bordersY[B+0][R+1]:null,Zt?this.matrix.bordersX[B+0][R+0]:null,Mt?this.matrix.bordersX[B+1][R+0]:null),ne=this.xfList[kt],Jt=new k(ne.FormatIndex,ne.FontIndex,ne.FillIndex,this.getBorderNumber(Ht),ne.XFId,ne.HorAlign,ne.VertAlign,ne.TextRotationAngle,ne.TextWrapped,ne.RightToLeft,ne.Editable),oe=this.getXFNumber(Jt);this.exportObjectFormatting||(oe=0),u.writeStartElement("c"),u.writeAttributeString("r",this.getRefString(R,B-c)),u.writeAttributeString("s",oe.toString()),u.writeEndElement()}}}u.writeEndElement()}if(u.writeEndElement(),this.restrictEditing!=i.StiExcel2007RestrictEditing.No&&(u.writeStartElement("sheetProtection"),u.writeAttributeString("password","F05F"),u.writeAttributeString("sheet","1"),u.writeAttributeString("objects","1"),u.writeAttributeString("scenarios","1"),u.writeEndElement()),X.length>0&&(!this.exportDataOnly||this.exportObjectFormatting)){u.writeStartElement("mergeCells"),u.writeAttributeString("count",String.stiFormat("{0}",X.length));for(var Ot=0;Ot<X.length;Ot++){var zt=X[Ot];u.writeStartElement("mergeCell"),u.writeAttributeString("ref",String.stiFormat("{0}:{1}",this.getRefString(zt.FirstColumn,zt.FirstRow),this.getRefString(zt.LastColumn,zt.LastRow))),u.writeEndElement()}u.writeEndElement()}if(J.length>0){u.writeStartElement("hyperlinks");for(var ae=0;ae<J.length;ae++){var rt=J[ae],tt=rt.Bookmark;if(tt.startsWith("#")){tt=tt.substring(1);for(var se=!1,le=0;le<this.matrixList.length;le++){var ue=this.matrixList[le].bookmarks;if(null!=ue){var ce=ue[tt];if(null!=ce){var pe=this.minRowList[le],he=this.maxRowList[le],ge=ce.sti_as(s);if(ge.height>=pe&&ge.height<he){tt=String.stiFormat("'{0}'!{1}",this.sheetNameList[le],this.getRefString(ge.width,ge.height-pe)),se=!0;break}}}}se&&(u.writeStartElement("hyperlink"),u.writeAttributeString("ref",this.getRefString(rt.Range.FirstColumn,rt.Range.FirstRow)),u.writeAttributeString("location",tt),u.writeAttributeString("display",rt.Description),u.writeEndElement())}else{var me=tt;tt.startsWith("file:\\\\\\")&&(me=tt.substring(8),tt="file:///"+me),tt.startsWith("http:")&&(tt=tt.replaceAll(" ","")),u.writeStartElement("hyperlink"),u.writeAttributeString("ref",this.getRefString(rt.Range.FirstColumn,rt.Range.FirstRow)),u.writeAttributeString("r:id",String.stiFormat("rId{0}",2+this.hyperlinkList.length)),u.writeAttributeString("display",me),u.writeEndElement(),this.hyperlinkList.add(this.stringToUrl(tt))}}u.writeEndElement()}u.writeStartElement("pageMargins"),u.writeAttributeString("left",this.floatToString(a.convertToHInches(a.unit,a.margins.left)/100)),u.writeAttributeString("right",this.floatToString(a.convertToHInches(a.unit,a.margins.right)/100)),u.writeAttributeString("top",this.floatToString(a.convertToHInches(a.unit,a.margins.top)/100)),u.writeAttributeString("bottom",this.floatToString(a.convertToHInches(a.unit,a.margins.bottom)/100)),u.writeAttributeString("header",this.floatToString(0)),u.writeAttributeString("footer",this.floatToString(0)),u.writeEndElement(),u.writeStartElement("pageSetup"),u.writeAttributeString("paperSize",String.stiFormat("{0}",a.paperSize)),u.writeAttributeString("orientation",a.orientation==T.Portrait?"portrait":"landscape"),StiOptions.Export.Excel.FitToOnePageWide&&u.writeAttributeString("fitToHeight","0"),u.writeEndElement();var de=this.matrix.horizontalPageBreaks.length;if(this.exportHorizontalPageBreaks&&de>0){u.writeStartElement("rowBreaks"),u.writeAttributeString("count",de.toString()),u.writeAttributeString("manualBreakCount",de.toString());for(var Se=0;Se<de;Se++)u.writeStartElement("brk"),u.writeAttributeString("id",String.stiFormat("{0}",this.matrix.horizontalPageBreaks[Se])),u.writeAttributeString("max",0==Se?"16383":"8"),u.writeAttributeString("man","1"),u.writeEndElement();u.writeEndElement()}if(t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||(u.writeStartElement("headerFooter"),u.writeStartElement("oddHeader"),u.writeRaw("&amp;C\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n&amp;G"),u.writeEndElement(),u.writeEndElement()),this.imageList.length>this.imageListOffset&&(u.writeStartElement("drawing"),u.writeAttributeString("r:id",String.stiFormat("rId{0}",1)),u.writeEndElement()),t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||(u.writeStartElement("legacyDrawingHF"),u.writeAttributeString("r:id","dId1"),u.writeEndElement()),v.length>0){u.writeStartElement("ignoredErrors");for(var fe in v)u.writeStartElement("ignoredError"),u.writeAttributeString("sqref",v[fe]),u.writeAttributeString("numberStoredAsText","1"),u.writeEndElement();u.writeEndElement()}return u.writeFullEndElement(),u.writeEndDocument(),u.flush(),l},L.prototype.prepareMatrix=function(t){var e=i.StiDataExportMode.AllBands;if(this.exportDataOnly&&(e=i.StiDataExportMode.Data|i.StiDataExportMode.Headers,StiOptions.Export.Excel.AllowExportFootersInDataOnlyMode&&(e|=i.StiDataExportMode.Footers)),this.matrix=new i.StiMatrix(t,StiOptions.Export.Excel.DivideBigCells,this,null,e),this.useOnePageHeaderAndFooter){this.matrix.scanComponentsPlacement(!0,this.exportObjectFormatting);var n=0;while(this.matrix.linePlacement[n]!=i.StiTableLineInfo.PageHeader&&n<this.matrix.coordY.count-1)n++;if(this.matrix.linePlacement[n]==i.StiTableLineInfo.PageHeader){while(this.matrix.linePlacement[n]==i.StiTableLineInfo.PageHeader&&n<this.matrix.coordY.count-1)n++;while(n<this.matrix.coordY.count-1)this.matrix.linePlacement[n]==i.StiTableLineInfo.PageHeader&&(this.matrix.linePlacement[n]=i.StiTableLineInfo.Trash),n++}n=this.matrix.coordY.count-1;while(this.matrix.linePlacement[n]!=i.StiTableLineInfo.PageFooter&&n>0)n--;if(this.matrix.linePlacement[n]==i.StiTableLineInfo.PageFooter){while(this.matrix.linePlacement[n]==i.StiTableLineInfo.PageFooter&&n>0)n--;while(n>0)this.matrix.linePlacement[n]==i.StiTableLineInfo.PageFooter&&(this.matrix.linePlacement[n]=i.StiTableLineInfo.Trash),n--}for(var o=0,a=0;a<this.matrix.coordY.count-1;a++)if(this.matrix.linePlacement[a]!=i.StiTableLineInfo.Trash){for(var s=0;s<this.matrix.coordX.count-1;s++){this.matrix.cells[o][s]=this.matrix.cells[a][s];var l=this.matrix.cells[o][s];if(null!=l&&(l.top=o,null!=l.exportImage))var u=l.component;this.matrix.bordersX[o][s]=this.matrix.bordersX[a][s],this.matrix.bordersY[o][s]=this.matrix.bordersY[a][s],this.matrix.bookmarks[o][s]=this.matrix.bookmarks[a][s]}this.matrix.bordersY[o][this.matrix.coordX.count-1]=this.matrix.bordersY[a][this.matrix.coordX.count-1];var c=this.matrix.coordY.getKeys(),p=this.matrix.coordY.getByIndex(a+1,c)-this.matrix.coordY.getByIndex(a,c);this.matrix.coordY.setByIndex(o+1,this.matrix.coordY.getByIndex(o,c)+p),o++}for(var s=0;s<this.matrix.coordX.count-1;s++)this.matrix.bordersX[o][s]=this.matrix.bordersX[this.matrix.coordY.count-1][s];var h=this.matrix.coordY.count-1-o;if(h>0)for(var g=0;g<h;g++)this.matrix.coordY.removeByIndex(o+1)}if(this.exportDataOnly){this.matrix.scanComponentsPlacement(!0,this.exportObjectFormatting);for(var o=0,m=new r,d=null,S=StiOptions.Export.Excel.AllowExportFootersInDataOnlyMode,a=0;a<this.matrix.coordY.count-1;a++){var f=!1;if(this.matrix.linePlacement[a]==i.StiTableLineInfo.HeaderD||this.matrix.linePlacement[a]==i.StiTableLineInfo.HeaderAP){var y=this.matrix.parentBandName[a],b=y.indexOf("");if(-1!=b){var C=y.substring(0,b);C!=d&&(d=C,m.clear())}m.containsKey(y)||(f=!0,m.add(y,y))}if(this.matrix.linePlacement[a]==i.StiTableLineInfo.Data||S&&this.matrix.linePlacement[a]==i.StiTableLineInfo.FooterD||f){for(var s=0;s<this.matrix.coordX.count-1;s++){this.matrix.cells[o][s]=this.matrix.cells[a][s];var l=this.matrix.cells[o][s];if(null!=l&&(l.top=o,null!=l.exportImage))var u=l.component;0!=o&&null==this.matrix.bordersX[a][s]||(this.matrix.bordersX[o][s]=this.matrix.bordersX[a][s]),this.matrix.bordersX[o+1][s]=this.matrix.bordersX[a+1][s],this.matrix.bordersY[o][s]=this.matrix.bordersY[a][s],this.matrix.bookmarks[o][s]=this.matrix.bookmarks[a][s]}this.matrix.bordersY[o][this.matrix.coordX.count-1]=this.matrix.bordersY[a][this.matrix.coordX.count-1];var c=this.matrix.coordY.getKeys(),p=this.matrix.coordY.getByIndex(a+1,c)-this.matrix.coordY.getByIndex(a,c);this.matrix.coordY.setByIndex(o+1,this.matrix.coordY.getByIndex(o,c)+p),o++}}var h=this.matrix.coordY.count-1-o;if(h>0)for(var g=0;g<h;g++)this.matrix.coordY.removeByIndex(o+1)}},L.prototype.convertAllowHtmlTagsToExcelString=function(t,e){for(var i=new C(S.UTF8),r=new R(t.font.bold,t.font.italic,t.font.underline,t.font.strikeout,t.font.sizeInPoints,t.font.name,h.toColor(t.textBrush),h.toColor(t.brush),!1,!1,0,0,1,t.horAlignment),n=new B(r,0),o=f.parseHtmlToStates(t.text,n),a=0;a<o.count;a++){var s=o[a];i.writeStartElement("r"),i.writeStartElement("rPr"),s.ts.bold&&i.writeElementString("b",null),s.ts.italic&&i.writeElementString("i",null),s.ts.underline&&i.writeElementString("u",null),s.ts.strikeout&&i.writeElementString("strike",null),s.ts.superscript&&(i.writeStartElement("vertAlign"),i.writeAttributeString("val","superscript"),i.writeEndElement()),s.ts.subsript&&(i.writeStartElement("vertAlign"),i.writeAttributeString("val","subscript"),i.writeEndElement()),i.writeStartElement("sz"),i.writeAttributeString("val",s.ts.fontSize.toString()),i.writeEndElement(),i.writeStartElement("color"),i.writeAttributeString("rgb",String.stiFormat("{0:X8}",s.ts.fontColor.toArgb())),i.writeEndElement(),i.writeStartElement("rFont"),i.writeAttributeString("val",s.ts.fontName),i.writeEndElement(),i.writeEndElement(),this.convertTextToExcelString(i,f.prepareStateText(s.text).toString()),i.writeEndElement()}return i.flush(),i.close(),i.textWriter.getStringBuilder().toString()},L.prototype.convertTextToExcelString=function(t,e){t.writeStartElement("t"),e.length>0&&(o.isWhitespace(e,e.length-1)||-1!=e.indexOf("\n"))&&t.writeAttributeString("xml:space","preserve"),t.writeString(e),t.writeFullEndElement()},L.prototype.writeDrawingRels=function(t){var e=new b,i=new C(S.UTF8,e);i.writeStartDocument(),i.writeStartElement("Relationships"),i.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/relationships");for(var r=this.imageListOffset;r<this.imageList.length;r++){var n=this.imageList[r];i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rId{0}",r-this.imageListOffset+1)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"),i.writeAttributeString("Target",String.stiFormat("../media/image{0:D5}.jpeg",n.ImageIndex+1)),i.writeEndElement(),String.isNullOrWhiteSpace(n.Hyperlink)||(i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("hId{0}",r-this.imageListOffset+1)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"),i.writeAttributeString("Target",n.Hyperlink),i.writeAttributeString("TargetMode","External"),i.writeEndElement())}return i.writeFullEndElement(),i.writeEndDocument(),i.flush(),e},L.prototype.writeDrawing=function(t){var e=new b,i=new C(S.UTF8,e);i.writeStartDocument(),i.writeStartElement("xdr:wsDr"),i.writeAttributeString("xmlns:xdr","http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"),i.writeAttributeString("xmlns:a","http://schemas.openxmlformats.org/drawingml/2006/main");for(var r=this.imageListOffset;r<this.imageList.length;r++){var n=this.imageList[r];i.writeStartElement("xdr:twoCellAnchor"),i.writeAttributeString("editAs","oneCell"),i.writeStartElement("xdr:from"),i.writeElementString("xdr:col",String.stiFormat("{0}",n.FirstColumnIndex)),i.writeElementString("xdr:colOff",String.stiFormat("{0}",n.FirstColumnOffset)),i.writeElementString("xdr:row",String.stiFormat("{0}",n.FirstRowIndex)),i.writeElementString("xdr:rowOff",String.stiFormat("{0}",n.FirstRowOffset)),i.writeEndElement(),i.writeStartElement("xdr:to"),i.writeElementString("xdr:col",String.stiFormat("{0}",n.LastColumnIndex)),i.writeElementString("xdr:colOff",String.stiFormat("{0}",n.LastColumnOffset)),i.writeElementString("xdr:row",String.stiFormat("{0}",n.LastRowIndex)),i.writeElementString("xdr:rowOff",String.stiFormat("{0}",n.LastRowOffset)),i.writeEndElement(),i.writeStartElement("xdr:pic"),i.writeStartElement("xdr:nvPicPr"),i.writeStartElement("xdr:cNvPr"),i.writeAttributeString("id",String.stiFormat("{0}",r-this.imageListOffset+2)),i.writeAttributeString("name",String.stiFormat("Picture {0}",r-this.imageListOffset+1)),i.writeAttributeString("descr",String.stiFormat("image{0:D5}",r+1)),String.isNullOrWhiteSpace(n.Hyperlink)||(i.writeStartElement("a:hlinkClick"),i.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),i.writeAttributeString("r:id",String.stiFormat("hId{0}",r-this.imageListOffset+1)),i.writeEndElement()),i.writeEndElement(),i.writeStartElement("xdr:cNvPicPr"),i.writeStartElement("a:picLocks"),i.writeAttributeString("noChangeAspect","1"),i.writeEndElement(),i.writeEndElement(),i.writeEndElement(),i.writeStartElement("xdr:blipFill"),i.writeStartElement("a:blip"),i.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),i.writeAttributeString("r:embed",String.stiFormat("rId{0}",r-this.imageListOffset+1)),i.writeEndElement(),i.writeStartElement("a:stretch"),i.writeStartElement("a:fillRect"),i.writeEndElement(),i.writeEndElement(),i.writeEndElement(),i.writeStartElement("xdr:spPr"),i.writeStartElement("a:xfrm"),i.writeStartElement("a:off"),i.writeAttributeString("x","1"),i.writeAttributeString("y","1"),i.writeEndElement(),i.writeStartElement("a:ext"),i.writeAttributeString("cx","2"),i.writeAttributeString("cy","2"),i.writeEndElement(),i.writeEndElement(),i.writeStartElement("a:prstGeom"),i.writeAttributeString("prst","rect"),i.writeStartElement("a:avLst"),i.writeEndElement(),i.writeEndElement(),i.writeEndElement(),i.writeEndElement(),i.writeStartElement("xdr:clientData"),i.writeEndElement(),i.writeEndElement()}return i.writeFullEndElement(),i.writeEndDocument(),i.flush(),e},L.prototype.writeStyles=function(){var t=new b,e=new C(S.UTF8,t);if(e.writeStartDocument(),e.writeStartElement("styleSheet"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main"),this.formatList.length>0){e.writeStartElement("numFmts"),e.writeAttributeString("count",String.stiFormat("{0}",this.formatList.length));for(var i=0;i<this.formatList.length;i++)e.writeStartElement("numFmt"),e.writeAttributeString("numFmtId",String.stiFormat("{0}",164+i)),e.writeAttributeString("formatCode",this.formatList[i]),e.writeEndElement();e.writeEndElement()}e.writeStartElement("fonts"),e.writeAttributeString("count",String.stiFormat("{0}",this.fontList.length));for(var i=0;i<this.fontList.length;i++){var r=this.fontList[i];e.writeStartElement("font"),r.Bold&&e.writeElementString("b",""),r.Italic&&e.writeElementString("i",""),r.Underlined&&e.writeElementString("u",""),r.Strikeout&&e.writeElementString("strike",""),e.writeStartElement("sz"),e.writeAttributeString("val",String.stiFormat("{0}",r.Height)),e.writeEndElement(),e.writeStartElement("color"),e.writeAttributeString("rgb",String.stiFormat("{0:X8}",r.Color.toArgb())),e.writeEndElement(),e.writeStartElement("name"),e.writeAttributeString("val",r.Name),e.writeEndElement(),e.writeStartElement("charset"),e.writeAttributeString("val",String.stiFormat("{0}",r.Charset)),e.writeEndElement(),e.writeEndElement()}e.writeEndElement(),e.writeStartElement("fills"),e.writeAttributeString("count",String.stiFormat("{0}",this.fillList.length));for(var i=0;i<this.fillList.length;i++){var n=this.fillList[i];e.writeStartElement("fill"),e.writeStartElement("patternFill"),e.writeAttributeString("patternType",n.Type),"solid"==n.Type&&(e.writeStartElement("fgColor"),e.writeAttributeString("rgb",String.stiFormat("{0:X8}",n.FgColor.toArgb())),e.writeEndElement(),e.writeStartElement("bgColor"),e.writeAttributeString("indexed",String.stiFormat("{0}",64)),e.writeEndElement()),e.writeEndElement(),e.writeEndElement()}e.writeEndElement(),e.writeStartElement("borders"),e.writeAttributeString("count",String.stiFormat("{0}",this.borderList.length));for(var i=0;i<this.borderList.length;i++){var o=this.borderList[i];e.writeStartElement("border"),this.writeBorderData(e,"left",o.BorderLeft),this.writeBorderData(e,"right",o.BorderRight),this.writeBorderData(e,"top",o.BorderTop),this.writeBorderData(e,"bottom",o.BorderBottom),this.writeBorderData(e,"diagonal",null),e.writeEndElement()}e.writeEndElement(),e.writeStartElement("cellStyleXfs"),e.writeAttributeString("count",String.stiFormat("{0}",1)),e.writeStartElement("xf"),e.writeAttributeString("numFmtId",String.stiFormat("{0}",0)),e.writeAttributeString("fontId",String.stiFormat("{0}",0)),e.writeAttributeString("fillId",String.stiFormat("{0}",0)),e.writeAttributeString("borderId",String.stiFormat("{0}",0)),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("cellXfs"),e.writeAttributeString("count",String.stiFormat("{0}",this.xfList.length));for(var i=0;i<this.xfList.length;i++){var a=this.xfList[i],n=this.fillList[a.FillIndex],s=a.FillIndex;0==n.FgColor.a&&(s=0),e.writeStartElement("xf"),e.writeAttributeString("numFmtId",String.stiFormat("{0}",a.FormatIndex)),e.writeAttributeString("fontId",String.stiFormat("{0}",a.FontIndex)),e.writeAttributeString("fillId",String.stiFormat("{0}",s)),e.writeAttributeString("borderId",String.stiFormat("{0}",a.BorderIndex)),e.writeAttributeString("xfId",String.stiFormat("{0}",a.XFId)),0!=a.FormatIndex&&e.writeAttributeString("applyNumberFormat","1"),0!=a.FontIndex&&e.writeAttributeString("applyFont","1"),0!=a.FillIndex&&e.writeAttributeString("applyFill","1"),0!=a.BorderIndex&&e.writeAttributeString("applyBorder","1"),e.writeAttributeString("applyAlignment","1"),a.Editable&&e.writeAttributeString("applyProtection","1"),e.writeStartElement("alignment");var u="left";switch(a.HorAlign){case l.Right:u="right";break;case l.Center:u="center";break;case l.Width:u="justify";break}if(e.writeAttributeString("horizontal",u),a.VertAlign!=c.Bottom){var p="";switch(a.VertAlign){case c.Top:p="top";break;case c.Center:p="center";break}e.writeAttributeString("vertical",p)}0!=a.TextRotationAngle&&e.writeAttributeString("textRotation",a.TextRotationAngle.toString()),a.TextWrapped&&e.writeAttributeString("wrapText","1"),a.RightToLeft&&e.writeAttributeString("readingOrder","2"),e.writeEndElement(),a.Editable&&(e.writeStartElement("protection"),e.writeAttributeString("locked","0"),e.writeEndElement()),e.writeEndElement()}return e.writeEndElement(),e.writeStartElement("cellStyles"),e.writeAttributeString("count",String.stiFormat("{0}",1)),e.writeStartElement("cellStyle"),e.writeAttributeString("name","Normal"),e.writeAttributeString("xfId",String.stiFormat("{0}",0)),e.writeAttributeString("builtinId",String.stiFormat("{0}",0)),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("dxfs"),e.writeAttributeString("count",String.stiFormat("{0}",0)),e.writeEndElement(),e.writeStartElement("tableStyles"),e.writeAttributeString("count",String.stiFormat("{0}",0)),e.writeAttributeString("defaultTableStyle","TableStyleMedium9"),e.writeAttributeString("defaultPivotStyle","PivotStyleLight16"),e.writeEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},L.prototype.writeBorderData=function(t,e,i){if(t.writeStartElement(e),null!=i){var r=this.getLineStyle(i),n=i.color;""!=r&&(t.writeAttributeString("style",r),t.writeStartElement("color"),t.writeAttributeString("rgb",String.stiFormat("{0:X8}",n.toArgb())),t.writeEndElement())}t.writeEndElement()},L.prototype.writeSST=function(){var t=new b,e=new C(S.UTF8,t);e.writeStartDocument(),e.writeStartElement("sst"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main"),e.writeAttributeString("count",String.stiFormat("{0}",this.sstCount)),e.writeAttributeString("uniqueCount",String.stiFormat("{0}",this.sstList.length));for(var i=0;i<this.sstList.length;i++){e.writeStartElement("si");for(var r=this.sstList[i],n=new g,o=0;o<r.length;o++)(r.charCodeAt(o)>=32||"\n"==r.charAt(o))&&n.append(r.charAt(o));r=n.toString(),this.sstHashIsTags.containsKey(i)?e.writeRaw(r):this.convertTextToExcelString(e,r),e.writeEndElement()}return e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},L.prototype.writeAdditionalData=function(e,i){var r=new b,n=null;return n=i?t.System.Convert.fromBase64String(e):S.ASCII.getBytes(e),r.write(n,0,n.length),r},L.prototype.writeImage=function(t){var e=new b,i=this.imageList[t],r=this.imageCache.imagePackedStore[t];return e.write(r,0,r.length),e},L.prototype.exportExcel=function(e,n,o){var s=o.pageRange;this.useOnePageHeaderAndFooter=o.useOnePageHeaderAndFooter,this.exportDataOnly=o.exportDataOnly,this.exportObjectFormatting=o.exportObjectFormatting,this.exportEachPageToSheet=o.exportEachPageToSheet,this.exportHorizontalPageBreaks=o.exportPageBreaks,this.imageResolution=o.imageResolution,this.imageQuality=o.imageQuality,this.docCompanyString=o.companyString,this.docLastModifiedString=o.lastModifiedString,this.restrictEditing=o.restrictEditing,this.xmlIndentation=-1,this.imageResolution<10&&(this.imageResolution=10),this.imageResolution=this.imageResolution/100,this.exportDataOnly?this.useOnePageHeaderAndFooter=!1:this.exportObjectFormatting=!0,StiOptions.Export.Excel.RestrictEditing>this.restrictEditing&&(this.restrictEditing=StiOptions.Export.Excel.RestrictEditing),this.report=e;try{this.reportCulture=w.currentCulture;var l=s.getSelectedPages(e.renderedPages);this.currentPassNumber=0,this.maximumPassNumber=3,this.prepareData();var u=0;while(u<l.list.length){var c=new a(e,e.renderedPages);c.cacheMode=e.renderedPages.cacheMode,c.addV2Internal(l.getPageWithoutCache(u));var p=u;if(!this.exportEachPageToSheet){var h=l.getPageWithoutCache(u).excelSheetValue;while(u<l.list.length-1&&this.compareExcellSheetNames(l.getPageWithoutCache(u+1).excelSheetValue,h))u++,c.addV2Internal(l.getPageWithoutCache(u))}var g=c.getByIndex(0).excelSheetValue;null!=g&&""!=g||(g=String.stiFormat("Page {0}",this.sheetNameList.length+1));var m="",d=1;this.prepareMatrix(c);var S=0;do{this.firstPageIndexList.add(p),this.matrixList.add(this.matrix);var f=this.matrix.coordY.count-1;f-S>StiOptions.Export.Excel.MaximumSheetHeight?f=S+StiOptions.Export.Excel.MaximumSheetHeight:this.matrix=null,this.minRowList.add(S),this.maxRowList.add(f),S=f,(null!=this.matrix||m.length>0)&&(m=String.stiFormat(" part{0}",d++)),this.sheetNameList.add(g+m)}while(null!=this.matrix);u++}for(var y=new r,b=0;b<this.sheetNameList.length;b++){var C=this.sheetNameList[b];if(C=C.replaceAll("*","_").replaceAll("\\","_").replaceAll("/","_").replaceAll("[","_").replaceAll("]","_").replaceAll(":","_").replaceAll("?","_"),y.contains(C)){var v=1;while(y.contains(C+"-"+v.toString()))v++;C=C+"-"+v.toString()}y.add(C,C),this.sheetNameList[b]=C}var I=new A;I.begin(n,!0),this.currentPassNumber=2,this.imageListOffset=0;for(var T=0;T<this.matrixList.length;T++)this.hyperlinkList=new Array,I.addFile(String.stiFormat("xl/worksheets/sheet{0}.xml",T+1),this.writeSheet(T,l.getByIndex(this.firstPageIndexList[T]))),I.addFile(String.stiFormat("xl/worksheets/_rels/sheet{0}.xml.rels",T+1),this.writeSheetRels(T)),this.imageList.length-this.imageListOffset>0&&(I.addFile(String.stiFormat("xl/drawings/_rels/drawing{0}.xml.rels",T+1),this.writeDrawingRels(T)),I.addFile(String.stiFormat("xl/drawings/drawing{0}.xml",T+1),this.writeDrawing(T))),this.imageListOffset=this.imageList.length;if(I.addFile("[Content_Types].xml",this.writeContentTypes()),I.addFile("_rels/.rels",this.writeMainRels()),I.addFile("docProps/app.xml",this.writeDocPropsApp()),I.addFile("docProps/core.xml",this.writeDocPropsCore()),I.addFile("xl/_rels/workbook.xml.rels",this.writeWorkbookRels()),I.addFile("xl/workbook.xml",this.writeWorkbook()),I.addFile("xl/styles.xml",this.writeStyles()),this.sstList.length>0&&I.addFile("xl/sharedStrings.xml",this.writeSST()),this.imageCache.imagePackedStore.length>0)for(var b=0;b<this.imageCache.imagePackedStore.length;b++)I.addFile(String.stiFormat("xl/media/image{0:D5}.jpeg",b+1),this.writeImage(b));t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||(I.addFile("xl/media/imageAdditional.png",this.writeAdditionalData(i.StiExportUtils.additionalData,!0)),I.addFile("xl/drawings/_rels/vmlDrawingAdditional.vml.rels",this.writeAdditionalData('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="dId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/imageAdditional.png"/></Relationships>',!1)),I.addFile("xl/drawings/vmlDrawingAdditional.vml",this.writeAdditionalData('<xml xmlns:v="urn:schemas-microsoft-com:vml"\r\n xmlns:o="urn:schemas-microsoft-com:office:office"\r\n xmlns:x="urn:schemas-microsoft-com:office:excel">\r\n <o:shapelayout v:ext="edit">\r\n  <o:idmap v:ext="edit" data="1"/>\r\n'+' </o:shapelayout><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75"\r\n  o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">\r\n  <v:stroke joinstyle="miter"/>\r\n  <v:formulas>'+'\r\n   <v:f eqn="if lineDrawn pixelLineWidth 0"/>\r\n   <v:f eqn="sum @0 1 0"/>\r\n   <v:f eqn="sum 0 0 @1"/>\r\n   <v:f eqn="prod @2 1 2"/>\r\n   <v:f eqn="prod @3 21600 pixelWidth"/>\r\n   <v:f eqn="prod @3 21600 pixelHeight"/>\r\n   <v:f eqn="sum @0 0 1"/>'+'\r\n   <v:f eqn="prod @6 1 2"/>\r\n   <v:f eqn="prod @7 21600 pixelWidth"/>\r\n   <v:f eqn="sum @8 21600 0"/>\r\n   <v:f eqn="prod @7 21600 pixelHeight"/>\r\n   <v:f eqn="sum @10 21600 0"/>\r\n  </v:formulas>\r\n  <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>'+'\r\n  <o:lock v:ext="edit" aspectratio="t"/>\r\n </v:shapetype><v:shape id="CH" o:spid="_x0000_s1027" type="#_x0000_t75"\r\n  style=\'position:absolute;margin-left:0;margin-top:0;width:365.25pt;height:339pt;\r\n  z-index:1\'>'+'\r\n  <v:imagedata o:relid="dId1" o:title="additional"/>\r\n  <o:lock v:ext="edit" rotation="t"/>\r\n </v:shape></xml>',!1))),I.end()}catch(e){t.System.StiError.showError(e,!1)}finally{null!=this.matrix&&(this.matrix.clear(),this.matrix=null),this.fontList=null,this.fillList=null,this.borderList=null,this.xfList=null,this.sstList=null,this.sstHash=null,this.sstHashIsTags=null,this.formatList=null,this.sheetNameList=null,this.imageList.clear(),this.imageList=null,this.imageCache.clear(),this.printAreasList=null,this.matrixList=null,this.firstPageIndexList=null,this.hyperlinkList=null,this.minRowList=null,this.maxRowList=null}},L}(i.StiExportService);i.StiExcel2007ExportService=P;var F=function(){function t(t,e,i,r,n,o,a,s,l){this.Name=t,this.Bold=e,this.Italic=i,this.Underlined=r,this.Strikeout=n,this.Height=o,this.Color=a,this.Charset=s,this.Family=l}return t.prototype.stiEquals=function(t){return this.Name==t.Name&&this.Bold==t.Bold&&this.Italic==t.Italic&&this.Underlined==t.Underlined&&this.Strikeout==t.Strikeout&&this.Height==t.Height&&this.Color.stiEquals(t.Color)&&this.Charset==t.Charset&&this.Family==t.Family},t}();i.DataFont=F;var x=function(){function t(t,e,i){this.Type=t,this.FgColor=e,this.BgColor=i}return t.prototype.stiEquals=function(t){return this.Type==t.Type&&this.FgColor.stiEquals(t.FgColor)&&this.BgColor.stiEquals(t.BgColor)},t}();i.DataFill=x;var D=function(){function t(t,e,i,r){this.BorderLeft=t,this.BorderRight=e,this.BorderTop=i,this.BorderBottom=r}return t.prototype.stiEquals=function(t){return this.eq(this.BorderLeft,t.BorderLeft)&&this.eq(this.BorderRight,t.BorderRight)&&this.eq(this.BorderTop,t.BorderTop)&&this.eq(this.BorderBottom,t.BorderBottom)},t.prototype.eq=function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.stiEquals(e)},t}();i.DataBorder=D;var k=function(){function t(t,e,i,r,n,o,a,s,l,u,c){this.FormatIndex=t,this.FontIndex=e,this.FillIndex=i,this.BorderIndex=r,this.XFId=n,this.HorAlign=o,this.VertAlign=a,this.TextRotationAngle=s,this.TextWrapped=l,this.RightToLeft=u,this.Editable=c}return t.prototype.equalDataXF=function(t){if(this.FormatIndex!=t.FormatIndex||this.FontIndex!=t.FontIndex||this.FillIndex!=t.FillIndex||this.BorderIndex!=t.BorderIndex||this.XFId!=t.XFId||this.HorAlign!=t.HorAlign||this.VertAlign!=t.VertAlign||this.TextRotationAngle!=t.TextRotationAngle||this.TextWrapped!=t.TextWrapped||this.RightToLeft!=t.RightToLeft||this.Editable!=t.Editable)return!1;return!0},t}();i.DataXF=k;var E=function(){function t(t,e,i,r,n,o,a,s,l,u){this.FirstRowIndex=t,this.FirstRowOffset=e,this.FirstColumnIndex=i,this.FirstColumnOffset=r,this.LastRowIndex=n,this.LastRowOffset=o,this.LastColumnIndex=a,this.LastColumnOffset=s,this.ImageIndex=l,this.Hyperlink=u}return t}();i.ExcelImageData=E;var G=function(){function t(t,e,i,r){this.FirstRow=t,this.LastRow=e,this.FirstColumn=i,this.LastColumn=r}return t}();i.CellRangeAddress=G;var _=function(){function t(t,e,i){this.Range=t,this.Description=e,this.Bookmark=i}return t}();i.HlinkData=_}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(t.StiExportService);t.StiExcelXmlExportService=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiRoundedRectanglePrimitive,n=t.System.Drawing.Rectangle,o=t.System.Collections.Hashtable,a=t.System.Drawing.Font,s=t.Report.Components.IStiFont,l=t.Report.Components.IStiBorder,u=t.Report.Components.IStiBrush,c=t.Report.Components.IStiTextBrush,p=t.Report.Components.IStiTextHorAlignment,h=t.Report.Components.IStiHorAlignment,g=t.Report.Components.IStiVertAlignment,m=t.Report.Components.StiLinePrimitive,d=t.Base.Drawing.StiBorderSides,S=t.System.Drawing.Rectangle,f=t.Base.Drawing.StiTextHorAlignment,y=t.Base.Drawing.StiPenStyle,b=t.Base.Drawing.StiVertAlignment,C=t.Report.Components.StiText,v=t.Base.Drawing.StiBrush,I=t.Report.Components.StiPointPrimitive,A=t.Report.Components.IStiTextOptions,w=t.Base.Drawing.StiBorderSide,T=t.Report.Components.StiRectanglePrimitive,B=t.Report.Components.StiRichText,R=t.Report.Components.StiVerticalLinePrimitive,P=t.Report.Components.StiHorizontalLinePrimitive,F=t.Report.Export.StiExportDataType,x=t.System.Drawing.Color,D=t.System.Text.StringBuilder,k=t.Base.Drawing.StiAdvancedBorder,E=t.Report.Components.IStiText,G=t.Report.Components.StiShape,_=t.Report.Components.StiPrimitive,L=t.Report.Components.StiCheckBox,N=t.Report.Components.StiSimpleText,O=t.Report.Components.StiContainer,Z=t.System.Char,M=t.Report.Components.StiBandInteraction,H=t.Base.Drawing.StiTextRenderer,W=t.Report.Components.StiCheckStyle,V=t.System.Drawing.FontStyle,Y;!function(t){t[t.Empty=0]="Empty",t[t.Unknown=1]="Unknown",t[t.PageHeader=2]="PageHeader",t[t.PageFooter=3]="PageFooter",t[t.HeaderAP=4]="HeaderAP",t[t.FooterAP=5]="FooterAP",t[t.HeaderD=6]="HeaderD",t[t.FooterD=7]="FooterD",t[t.Data=8]="Data",t[t.Trash=9]="Trash"}(Y=i.StiTableLineInfo||(i.StiTableLineInfo={}));var j=function(){function j(r,n,s,l,u){void 0===u&&(u=i.StiDataExportMode.AllBands),this.totalHeight=0,this.totalWidth=0,this.styles=[],this.coordX=[],this.coordY=[],this.linePlacement=null,this.parentBandName=null,this.bordersX=null,this.bordersY=null,this.horizontalPageBreaks=[],this.cellStyles=null,this.bookmarks=null,this.interactions=null,this.maxRowHeight=200,this._defaultLinePrimitiveWidth=1,this.coordXCheck=null,this.coordYCheck=null,this.coordXNew=null,this.coordYNew=null,this.coordXPrim=null,this.coordYPrim=null,this.imagesBaseRect=null,this.leftCached=new o,this.topCached=new o,this.xcHash=new o,this.ycHash=new o,this.tagSplitCache=new o,this.stylesCache=new o,this.fontsCache=new o,this.createdCells=[],this.borderSides=[],this.exportFormat=e.StiExportFormat.Excel,this.isHtmlService=!1,this.isHtmlOrExcelXmlService=!1,this.isHtmlPngMode=!1,this.report=null,this.pages=null,this.addComponentWithInteractions=!1,this.replaceCheckboxes=!1,this.hyperlinksToTag=null,this.maxCoordY=0,this.defaultLinePrimitiveWidth=0,this.fields=null,this.dataArrayLength=0,this.fieldsList=null,this.sizeX=0,this.sizeY=0,this.htName=null,this.lastPage=null,this.lastPageId=-1,this.lastComps=null,this.report=r.report,this.pages=r,this.exportFormat=s.exportFormat;var c=this.exportFormat==e.StiExportFormat.Dbf||this.exportFormat==e.StiExportFormat.Csv||this.exportFormat==e.StiExportFormat.Xml;this.isHtmlService=s.sti_is(i.StiHtmlExportService),this.isHtmlOrExcelXmlService=this.isHtmlService||s.sti_is(i.StiExcelXmlExportService),this.isHtmlPngMode=this.isHtmlService&&s.sti_as(i.StiHtmlExportService).imageFormat==e.ImageFormat.Png,this.isHtmlService&&(this.addComponentWithInteractions=s.insertInteractionParameters),s.sti_is(i.StiExcel2007ExportService)&&(this.replaceCheckboxes=!0),s.sti_is(i.StiWord2007ExportService)&&(this.replaceCheckboxes=!0);var p=-1;null!=l&&(this.styles=l,p=l.length);var h=Array.create(Number,r.count+1),g=Array.create(Number,r.count+1),S=0,y=0;this.maxCoordY=0;var C=!1;this.defaultLinePrimitiveWidth=this._defaultLinePrimitiveWidth/(this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?j.htmlScaleY:1);var v=!0;s.sti_is(i.StiWord2007ExportService)&&(v=s.sti_as(t.Report.Export.StiWord2007ExportService).removeEmptySpaceAtBottom),s.sti_is(i.StiExcel2007ExportService)&&(v=StiOptions.Export.Excel.RemoveEmptySpaceAtBottom),s.sti_is(i.StiHtmlExportService)&&(v=s.removeEmptySpaceAtBottom),this.hyperlinksToTag=new o;for(var A=0,B=0,R=0,P=r.list;R<P.length;R++){var F=P[R];if(r.getPage(F),s.invokeExporting(F,r,s.currentPassNumber,s.maximumPassNumber),s.isStopped)return;var D=this.coordY.count;h[S]=this.totalHeight,g[S]=y,S++;var k=F.unit.convertToHInches(F.clientRectangle);if(null!=F.border&&F.border.side!=d.None){var E=new O;E.displayRectangle=F.clientRectangle,this.addCoord(F.unit.convertToHInches(E.displayRectangle))}(v||A==r.count-1&&!this.isHtmlService)&&(k.height=0),this.addCoord(k),k=F.unit.convertToHInches(F.clientRectangle);for(var G=0,_=F.components.list;G<_.length;G++){var L=_[G];if(L.enabled&&(!C||L.printable)){var N=F.unit.convertToHInches(L.displayRectangle);N.height<0&&(N.y+=N.height,N.height=Math.abs(N.height));var Z=!0;if(L.sti_is(I)&&(Z=!1),(N.right<k.left||N.left>k.right||N.bottom<k.top||N.top>k.bottom)&&(Z=!1),StiOptions.Engine.allowInteractionInChartWithComponents&&L.name.endsWith("Interaction#FX%")&&(Z=!1),this.checkComponentPlacement(L,u)||(Z=!1),Z&&(L.sti_is(m)&&(L.sti_is(T)?(this.addCoord(N),N.y-=this.defaultLinePrimitiveWidth,N.x-=this.defaultLinePrimitiveWidth):(N.height<1.5&&(N.height=this.defaultLinePrimitiveWidth,N.y-=N.height),N.width<1.5&&(N.width=this.defaultLinePrimitiveWidth,N.x-=N.width))),this.addCoord(N),null!=L.hyperlinkValue)){var M=L.hyperlinkValue;!String.isNullOrEmpty(M)&&M.length>2&&M.startsWith("##")&&this.hyperlinksToTag.set(M.substr(2),null)}}}this.coordY=j.sortForMatrix(this.coordY),this.totalHeight=this.maxCoordY,y=Math.round(this.maxCoordY*(this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?j.htmlScaleY:1)),this.totalWidth=Math.max(this.totalWidth,F.unit.convertToHInches(F.width)*(this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?j.htmlScaleX:1)),A++;var H=this.coordY.count;H-D>B&&(B=H-D)}this.coordX=j.sortForMatrix(this.coordX),h[S]=this.totalHeight,n&&this.prepareTable(),this.isHtmlOrExcelXmlService&&this.addCoord2(0,y+1,!1);for(var W=this.coordY.getKeys(),V=this.coordX.getKeys(),Y=0;Y<W.length;Y++)this.topCached.set(this.coordY.getByIndex(Y,W),Y);for(var X=0;X<V.length;X++)this.leftCached.set(this.coordX.getByIndex(X,V),X);this.cells=Array.create(i.StiCell,W.length,V.length),this.bordersX=Array.create(w,W.length,V.length),this.bordersY=Array.create(w,W.length,V.length),this.bookmarks=Array.create(String,W.length,V.length),this.cellsMap=Array.create(i.StiCell,W.length,V.length),this.coordXCheck=Array.create(Boolean,V.length),this.coordYCheck=Array.create(Boolean,W.length),this.coordXNew=Array.create(Number,V.length),this.coordYNew=Array.create(Number,W.length),this.coordXPrim=Array.create(Number,V.length),this.coordYPrim=Array.create(Number,W.length),this.imagesBaseRect=new o,S=0,this.addComponentWithInteractions&&(this.interactions=Array.create(Number,W.length,V.length,2));var J=null;A=0;for(var K=this.coordY.count,U=0,z=r.list;U<z.length;U++){var F=z[U];if(r.getPage(F),s.invokeExporting(F,r,s.currentPassNumber+1,s.maximumPassNumber),s.isStopped)return;if(this.totalHeight=h[S++],null!=F.border&&F.border.side!=d.None){var E=new O;E.displayRectangle=F.clientRectangle,E.border=F.border,E.brush=F.brush,E.page=F,this.renderComponent(E,c,!0,s.exportServiceId)}for(var k=F.unit.convertToHInches(F.clientRectangle),Q=0,q=F.components.list;Q<q.length;Q++){var L=q[Q];if(L.enabled&&(!C||L.printable)){var N=F.unit.convertToHInches(L.displayRectangle);N.height<0&&(N.y+=N.height,N.height=Math.abs(N.height));var Z=!0;L.sti_is(I)&&(Z=!1),(N.right<k.left||N.left>k.right||N.bottom<k.top||N.top>k.bottom)&&(Z=!1),this.checkComponentPlacement(L,u)||(Z=!1),Z&&this.renderComponent(L,c,!1,s.exportServiceId)}}if(null!=F.bookmarkValue){var $=F.bookmarkValue;if(!String.isNullOrEmpty($)){var N=this.getRange(F.unit.convertToHInches(F.clientRectangle));if(-1!=N.left){-1==N.bottom&&(N.height=K-1-N.top);for(var Y=N.y;Y<N.bottom;Y++){for(var tt=!1,X=N.x;X<N.right;X++)if(null!=this.cellsMap[Y][X]&&null==this.bookmarks[Y][X]){this.bookmarks[Y][X]=$,tt=!0;break}if(!tt)for(var X=N.x;X<N.right;X++)if(null!=this.cellsMap[Y][X]){this.bookmarks[Y][X]=$;break}}}}}A++}this.processIntersectedCells(this.createdCells),V=this.coordX.getKeys();for(var et=0,it=0;it<V.length;it++)this.coordXNew[it]=et,it<V.length-1&&this.coordX.getByIndex(it+1,V)-this.coordX.getByIndex(it,V)<1.1&&1==this.coordXPrim[it]&&(this.coordXCheck[it]=!0,et++);W=this.coordY.getKeys();for(var rt=0,it=0;it<W.length;it++)this.coordYNew[it]=rt,it<W.length-1&&this.coordY.getByIndex(it+1,W)-this.coordY.getByIndex(it,W)<1.1&&1==this.coordYPrim[it]&&(this.coordYCheck[it]=!0,rt++);if(!0&&(rt>0||et>0)){for(var nt=Array.create(Boolean,W.length,V.length),Y=0;Y<W.length-1;Y++)for(var X=0;X<V.length-1;X++){var ot=this.coordXNew[X],at=this.coordYNew[Y],st=this.cells[Y][X];if(this.bordersX[Y-at][X-ot]=this.bordersX[Y][X],this.bordersY[Y-at][X-ot]=this.bordersY[Y][X],this.bookmarks[Y-at][X-ot]=this.bookmarks[Y][X],this.addComponentWithInteractions&&(this.interactions[Y-at][X-ot][0]=this.interactions[Y][X][0],this.interactions[Y-at][X-ot][1]=this.interactions[Y][X][1]),null!=st&&0==nt[Y][X]){for(var lt=0;lt<=st.height;lt++)for(var ut=0;ut<=st.width;ut++)nt[Y+lt][X+ut]=!0,0==lt&&0==ut||(this.cells[Y+lt][X+ut]=null);1==this.coordXCheck[X]||1==this.coordYCheck[Y]?(this.cells[Y][X]=null,st=null):(st.width-=this.coordXNew[X+st.width+1]-ot,st.height-=this.coordYNew[Y+st.height+1]-at,st.left-=ot,st.top-=at),(ot>0||at>0)&&(this.cells[Y-at][X-ot]=st,this.cells[Y][X]=null,st=null)}}for(var it=0;it<V.length-1;it++){var ot=this.coordXNew[it];this.bordersX[W.length-1-rt][it-ot]=this.bordersX[W.length-1][it]}for(var it=0;it<W.length-1;it++){var at=this.coordYNew[it];this.bordersY[it-at][V.length-1-et]=this.bordersY[it][V.length-1]}for(var it=this.coordX.count-1-1;it>=0;it--)1==this.coordXCheck[it]&&this.coordX.removeByIndex(it);for(var it=this.coordY.count-1-1;it>=0;it--)1==this.coordYCheck[it]&&this.coordY.removeByIndex(it)}if(this.isHtmlOrExcelXmlService){var ct=this.coordX.count,pt=this.coordY.count;this.cellStyles=Array.create(i.StiCellStyle,pt,ct);var nt=Array.create(Boolean,pt,ct),ht=new a("Arial",8),gt=this.styles,mt=[];mt.addRange(this.styles),-1==p?this.styles.clear():this.styles.removeRange(p,this.styles.count-p),this.stylesCache.clear();for(var dt=[],St=0,ft=this.styles;St<ft.length;St++){var yt=ft[St];i.StiCellStyle.getStyleFromCache(yt.color,yt.textColor,yt.font,yt.horAlignment,yt.vertAlignment,yt.border,yt.borderL,yt.borderR,yt.borderB,yt.textOptions,yt.wordWrap,yt.format,yt.internalStyleName,this.stylesCache,dt,this.fontsCache,yt,!0,yt.overflow,yt.borderRadius)}for(var bt=1;bt<pt-1;bt++)for(var Ct=1;Ct<ct;Ct++)if(0==nt[bt-1][Ct-1]){var vt=this.cells[bt-1][Ct-1];if(null!=vt){for(var lt=0;lt<=vt.height;lt++)for(var ut=0;ut<=vt.width;ut++)nt[bt-1+lt][Ct-1+ut]=!0;for(var It=!0,At=!0,it=0;it<vt.height+1;it++)null==this.bordersY[vt.top+it][vt.left]&&(It=!1),null==this.bordersY[vt.top+it][vt.left+vt.width+1]&&(At=!1);for(var wt=!0,Tt=!0,it=0;it<vt.width+1;it++)null==this.bordersX[vt.top][vt.left+it]&&(wt=!1),null==this.bordersX[vt.top+vt.height+1][vt.left+it]&&(Tt=!1);this.styles=mt;var yt=vt.cellStyle;this.styles=gt;var Bt=i.StiCellStyle.getStyleFromCache(yt.color,yt.textColor,yt.font,yt.horAlignment,yt.vertAlignment,wt?this.bordersX[vt.top][vt.left]:null,It?this.bordersY[vt.top][vt.left]:null,At?this.bordersY[vt.top][vt.left+vt.width+1]:null,Tt?this.bordersX[vt.top+vt.height+1][vt.left]:null,yt.textOptions,yt.wordWrap,yt.format,yt.internalStyleName,this.stylesCache,this.styles,this.fontsCache,yt,!1,yt.overflow,yt.borderRadius);this.cellStyles[bt-1][Ct-1]=Bt}else{var It=!0,At=!0;null==this.bordersY[bt-1][Ct-1]&&(It=!1),null==this.bordersY[bt-1][Ct-0]&&(At=!1);var wt=!0,Tt=!0;if(null==this.bordersX[bt-1][Ct-1]&&(wt=!1),null==this.bordersX[bt-0][Ct-1]&&(Tt=!1),It||At||wt||Tt){var Bt=i.StiCellStyle.getStyleFromCache(x.transparent,x.black,ht,f.Center,b.Center,wt?this.bordersX[bt-1][Ct-1]:null,It?this.bordersY[bt-1][Ct-1]:null,At?this.bordersY[bt-1][Ct-0]:null,Tt?this.bordersX[bt-0][Ct-1]:null,null,!1,null,null,this.stylesCache,this.styles,this.fontsCache,null,!1,!0,0);this.cellStyles[bt-1][Ct-1]=Bt}}}this.checkStylesNames()}K=this.coordY.count,W=this.coordY.getKeys();var Rt=r.count;if(Rt>1)for(var Pt=1,Y=0;Y<K;Y++)for(var Ft=this.coordY.getByIndex(Y,W),xt=Pt;xt<Rt;xt++)if(g[xt]==Ft){this.horizontalPageBreaks.add(Y),Pt=xt+1;break}}return j.sortForMatrix=function(t){for(var e=[],i=0,r=t.sort(Array.numberSortFunction);i<r.length;i++){var n=r[i];null!=n&&(e[n]=n)}for(var o=[],a=0,s=Object.getOwnPropertyNames(t);a<s.length;a++){var l=s[a],u=l.toNumber();u<0&&(o[0-u]=t[l])}for(var c=0,p=o.sort(Array.numberSortFunction);c<p.length;c++){var n=p[c];null!=n&&(e[n]=n)}return e},j.prototype.round=function(t){return Math.round(t)},j.prototype.addCoord=function(t){this.addCoord2(t.left,t.top+this.totalHeight),this.addCoord2(t.right,t.bottom+this.totalHeight)},j.prototype.addCoord2=function(t,e,i){void 0===i&&(i=!0),e>this.maxCoordY&&(this.maxCoordY=e),i&&this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?(t=this.round(t*j.htmlScaleX),e=this.round(e*j.htmlScaleY)):(t=this.round(t),e=this.round(e)),this.xcHash.containsKey(t)||(this.coordX[t]=t,this.xcHash.set(t,t)),this.ycHash.containsKey(e)||(this.coordY[e]=e,this.ycHash.set(e,e))},j.prototype.prepareTable=function(){for(var t=this.coordY.getKeys(),e=1;e<t.length;e++){var i=this.coordY.getByIndex(e,t)-this.coordY.getByIndex(e-1,t);i=this.round(i);var r=this.maxRowHeight;if(i>r){i<2*r&&(r=this.round(i/2));var n=this.coordY.getByIndex(e-1,t)+r;this.addCoord2(0,n,!1)}}for(var o=this.coordX.getKeys(),a=1;a<this.coordX.count;a++){var s=this.coordX.getByIndex(a,o)-this.coordX.getByIndex(a-1,o);s=this.round(s);var l=1900;if(s>l){s<2*l&&(l=this.round(s/2));var u=this.coordX.getByIndex(a-1,o)+l;this.addCoord2(u,0,!1)}}},j.prototype.getRange=function(t){var e=this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?j.htmlScaleX:1,i=this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?j.htmlScaleY:1,r=this.round(t.left*e),o=this.round((t.top+this.totalHeight)*i),a=this.round(t.right*e),s=this.round((t.bottom+this.totalHeight)*i),l=0,u=0,c=0,p=0,h=this.leftCached.get(r);return null==h?(l=this.coordX.indexOf(r),this.leftCached.set(r,l)):l=h,h=this.topCached.get(o),null==h?(u=this.coordY.indexOf(o),this.topCached.set(o,u)):u=h,h=this.leftCached.get(a),null==h?(c=this.coordX.indexOf(a),this.leftCached.set(a,c)):c=h,h=this.topCached.get(s),null==h?(p=this.coordY.indexOf(s),this.topCached.set(s,p)):p=h,new n(l,u,c-l,p-u)},j.prototype.getStyleFromComponent=function(t,n,o,m){var d=x.white,S=t.sti_as(u);null==S||t.sti_is(G)||(d=v.toColor(S.brush)),t.sti_is(G)&&this.isHtmlPngMode&&(d=x.transparent);var y=t.sti_as(B);if(null!=y&&(d=y.backColor),t.sti_is(_)&&(d=x.transparent),-1!=n&&-1!=o&&d.stiEquals(x.transparent)&&null!=this.cellsMap[o][n]){d=this.cellsMap[o][n].cellStyle.color}var I=x.black,T=t.sti_as(c);null!=T&&(I=v.toColor(T.textBrush));var R=null,P=t.sti_as(s);R=null!=P?P.font:new a("Arial",8);var F=f.Left,L=t.sti_as(p);null!=L&&(F=L.horAlignment);var N=t.sti_as(h);null!=N&&(F=N.horAlignment-1);var O=b.Top,M=t.sti_as(g);null!=M&&(O=M.vertAlignment);var H=null,W=null,V=null,Y=null,j=t.sti_as(l);if(null!=j){var X=j.border.sti_as(k);null!=X?(H=X.leftSide,W=X.rightSide,V=X.topSide,Y=X.bottomSide):(H=new w(j.border.color,j.border.size,j.border.style),j.border.isRightBorderSidePresent&&(W=H),j.border.isTopBorderSidePresent&&(V=H),j.border.isBottomBorderSidePresent&&(Y=H),j.border.isLeftBorderSidePresent||(H=null))}var J=null,K=t.sti_as(A);null!=K&&(J=K.textOptions);var U=!1,z=t.sti_as(E);null!=z&&null!=z.getTextInternal()&&(U=-1!=z.getTextInternal().indexOf("\n")),this.isHtmlOrExcelXmlService&&null!=J&&(U=J.wordWrap);var Q=null,q=t.sti_as(C);if(this.exportFormat==e.StiExportFormat.ExcelXml&&null!=q){var $=q.format,tt=!1,et=!1,it=!1,rt="",nt=2,ot=0,at="$",st=!1,lt=!1;if(!String.isNullOrEmpty($)&&("C"==$[0]&&(tt=!0),"N"==$[0]&&(et=!0),"P"==$[0]&&(it=!0),(tt||et||it)&&$.length>1)){var ut=1;if(Z.isDigit($[ut])){var ct=new D;while(ut<$.length&&Z.isDigit($[ut]))ct.append($[ut]),ut++;nt=parseInt(ct.toString())}ut<$.length&&"G"==$[ut]&&(ut++,ot=3),ut<$.length&&"("==$[ut]&&(ut++,lt=!0),ut<$.length&&("."==$[ut]||","==$[ut])&&ut++,ut<$.length&&("+"==$[ut]||"-"==$[ut])&&("+"==$[ut]&&(st=!0),++ut<$.length&&(at=$[ut]))}if(tt||et||it){var pt=new D;tt&&1==st&&(pt.append('"'),pt.append(at),pt.append('"')),ot>1&&(pt.append("#,"),pt.append("#",ot-1)),pt.append("0"),nt>0&&(pt.append("."),pt.append("0",nt)),tt&&0==st&&(pt.append('"'),pt.append(at),pt.append('"')),it&&pt.append("%"),rt=pt.toString();var ht=(lt?"(":"-")+rt+(lt?")":"");null!=q&&q.hideZeros?rt=rt+";"+ht+";":lt&&(rt=rt+";"+ht)}Q=rt}var gt=null;return String.isNullOrEmpty(t.componentStyle)||(gt=m+t.componentStyle),this.isHtmlOrExcelXmlService&&!StiOptions.Export.Html.useComponentStyleName&&(gt=null),i.StiCellStyle.getStyleFromCache(d,I,R,F,O,V,H,W,Y,J,U,Q,gt,this.stylesCache,this.styles,this.fontsCache,null,!1,!t.sti_is(G),t.sti_is(r)?t.round:0)},j.prototype.getStyle=function(t){for(var e=0,i=this.styles;e<i.length;e++){var r=i[e];if(r.stiEquals(t))return r}return this.styles.add(t),t},j.prototype.renderComponent=function(t,r,n,o){var s=t.sti_as(L),u=null!=s;if(this.replaceCheckboxes&&u){var c=new C;c.page=s.page,c.clientRectangle=s.clientRectangle,c.brush=s.brush,c.textBrush=s.textBrush,c.border=s.border,c.horAlignment=f.Center,c.vertAlignment=b.Center;var p=t.report.unit.convertToHInches(Math.min(s.width,s.height));if(null!=s.checkedValue){var h=!1,g=s.checkedValue.toString().trim().toLower(),I=s.values.split(new RegExp(";|,|/"));if(null!=I&&I.length>0){h=g==I[0].trim().toLower()}var A=" ",F=null;switch(h?s.checkStyleForTrue:s.checkStyleForFalse){case W.Cross:A=String.fromCharCode(61691),F="Wingdings";break;case W.Check:A=String.fromCharCode(61692),F="Wingdings";break;case W.CrossRectangle:A=String.fromCharCode(61693),F="Wingdings";break;case W.CheckRectangle:A=String.fromCharCode(61694),F="Wingdings";break;case W.CrossCircle:A=String.fromCharCode(61526),F="Wingdings 2";break;case W.DotCircle:A=String.fromCharCode(61604),F="Wingdings";break;case W.DotRectangle:A=String.fromCharCode(61609),F="Wingdings 2";break;case W.NoneCircle:A=String.fromCharCode(61601),F="Wingdings";break;case W.NoneRectangle:A=String.fromCharCode(61608),F="Wingdings";break}" "!=A&&(c.font=new a(F,.72*p,V.Regular),c.text=A)}t=c}var x=t.page.unit.convertToHInches(t.displayRectangle);if(x.height<0&&(x.y+=x.height,x.height=Math.abs(x.height)),!t.sti_is(m)&&(0==x.width||0==x.height))return;t.sti_is(m)&&(t.sti_is(T)?(x.y-=this.defaultLinePrimitiveWidth,x.x-=this.defaultLinePrimitiveWidth):(x.height<1.5&&(x.height=this.defaultLinePrimitiveWidth,x.y-=x.height),x.width<1.5&&(x.width=this.defaultLinePrimitiveWidth,x.x-=x.width)));var D=this.getRange(x);if(-1!=D.left){var G=!0,_=t.bookmarkValue,N=t.tagValue;null==_&&!String.isNullOrEmpty(N)&&this.hyperlinksToTag.containsKey(N)&&(_=N);var Z=t.sti_as(l),M=null!=Z?Z.border:null,Y=!String.isNullOrEmpty(_),X=null!=M&&M.side!=d.None,J=!1,K=!1,U=!1,z=!1,Q=t.sti_as(C);null!=Q&&(J=null!=Q.text&&null!=Q.getTextInternal()&&(Q.getTextInternal().length>0||r),K=null!=Q.brush&&0!=v.toColor(Q.brush).a,U=null!=Q.excelDataValue,z=null!=Q.indicator,G=J||K||U||X||z);var q=t.sti_as(O);null!=q&&(K=null!=q.brush&&0!=v.toColor(q.brush).a,G=K||X&&!n),Y&&(G=!0);var $=D.left,tt=D.right,et=D.top,it=D.bottom;t.sti_is(T)&&(G=!1,0==this.coordXPrim[$]&&(this.coordXPrim[$]=1),0==this.coordXPrim[tt]&&(this.coordXPrim[tt]=1),0==this.coordYPrim[et]&&(this.coordYPrim[et]=1),0==this.coordYPrim[it]&&(this.coordYPrim[it]=1));var rt=this.isComponentHasInteraction(t),nt=0,ot=0;if(rt&&(G=!0,nt=t.report.renderedPages.indexOf(t.page)+1,ot=t.page.components.indexOf(t)+1),G){var at=new i.StiCell(this.exportFormat);this.createdCells.add(at),this.exportFormat!=e.StiExportFormat.Csv&&this.exportFormat!=e.StiExportFormat.Dbf&&this.exportFormat!=e.StiExportFormat.Xml&&(at.cellStyle=this.getStyleFromComponent(t,$,et,o));var st=!0;this.exportFormat==e.StiExportFormat.ExcelXml&&(st=!1,t.sti_is(B)&&(st=!0),t.sti_is(L)&&(st=!0),null!=Q&&null!=Q.excelDataValue&&(st=!0),(t.locked||null!=t.tagValue&&t.tagValue.toString().indexOf("excelfreezepanes")>=0)&&(st=!0)),st&&(at.component=t),st&&null!=at.exportImage&&this.imagesBaseRect.set(t,new S(x.x,x.y+this.totalHeight,x.width,x.height)),this.cells[et][$]=at,at.left=$,at.top=et;var lt=t.sti_as(E);null!=lt?(at.text=lt.text,null!=t.sti_as(C)&&!String.isNullOrEmpty(at.text)&&at.text.endsWith(H.StiForceWidthAlignTag)&&(at.text=at.text.substr(0,at.text.length-H.StiForceWidthAlignTag.length))):at.text=String.empty,at.width=D.width-1,at.height=D.height-1;for(var ut=D.x;ut<tt;ut++)for(var ct=D.y;ct<it;ct++)this.cellsMap[ct][ut]=at,Y&&(this.bookmarks[ct][ut]=_),rt&&(this.interactions[ct][ut][0]=nt,this.interactions[ct][ut][1]=ot);t.sti_is(R)?0==this.coordXPrim[at.left]&&(this.coordXPrim[at.left]=1):this.coordXPrim[at.left]=-1,t.sti_is(P)?0==this.coordYPrim[at.top]&&(this.coordYPrim[at.top]=1):this.coordYPrim[at.top]=-1}if(X){var pt=M.size,ht=new w(M.color,pt,M.style),gt=M.sti_as(k),mt=j.staticRectanglePrimitive;if(t.sti_is(R)&&(D.x+=1),t.sti_is(P)&&(D.y+=1),t.sti_is(T)&&(D.x+=1,D.y+=1,mt=t.sti_as(T)),$=D.left,tt=D.right,et=D.top,it=D.bottom,null!=gt&&(ht=gt.topSide),M.isTopBorderSidePresent&&ht.style!=y.None&&mt.topSide)for(var dt=$;dt<tt;dt++)null!=this.bordersX[et][dt]?this.bordersX[et][dt].size<=pt&&(this.bordersX[et][dt]=ht):this.bordersX[et][dt]=ht;if(null!=gt&&(ht=gt.bottomSide),M.isBottomBorderSidePresent&&ht.style!=y.None&&mt.bottomSide)for(var dt=$;dt<tt;dt++)null!=this.bordersX[it][dt]?this.bordersX[it][dt].size<=pt&&(this.bordersX[it][dt]=ht):this.bordersX[it][dt]=ht;if(null!=gt&&(ht=gt.leftSide),M.isLeftBorderSidePresent&&ht.style!=y.None&&mt.leftSide)for(var dt=et;dt<it;dt++)null!=this.bordersY[dt][$]?this.bordersY[dt][$].size<=pt&&(this.bordersY[dt][$]=ht):this.bordersY[dt][$]=ht;if(null!=gt&&(ht=gt.rightSide),M.isRightBorderSidePresent&&ht.style!=y.None&&mt.rightSide)for(var dt=et;dt<it;dt++)null!=this.bordersY[dt][tt]?this.bordersY[dt][tt].size<=pt&&(this.bordersY[dt][tt]=ht):this.bordersY[dt][tt]=ht}}},j.prototype.getCellRectangle=function(t,e,i){var r=t,o=e,a=t,s=e;while(r<=i.width&&this.cellsMap[o+i.top][r+i.left]!=i)r++;if(r>i.width)return n.empty;a=r;while(a<=i.width&&this.cellsMap[o+i.top][a+i.left]==i)a++;if(r==a)return n.empty;var l=!1;s=o+1;while(s<=i.height&&0==l){if(r>0&&this.cellsMap[i.top+s][i.left+r-1]==i){l=!0;break}if(a<=i.width&&this.cellsMap[s+i.top][i.left+a]==i){l=!0;break}for(var u=r;u<a;u++)if(this.cellsMap[s+i.top][u+i.left]!=i){l=!0;break}l||s++}return new n(r,o,a-r,s-o)},j.prototype.cutRectangleFromCellsMap=function(t,e){for(var i=t.left;i<t.right;i++)for(var r=t.top;r<t.bottom;r++)this.cellsMap[e.top+r][e.left+i]=null},j.prototype.isComponentHasInteraction=function(t){if(this.addComponentWithInteractions&&null!=t.interaction){if(t.interaction.sortingEnabled&&!String.isNullOrWhiteSpace(t.interaction.sortingColumn))return!0;if(t.interaction.drillDownEnabled&&(null!=t.interaction.drillDownPage||!String.isNullOrEmpty(t.interaction.drillDownReport)))return!0;if(t.interaction.sti_is(M)&&t.interaction.collapsingEnabled)return!0}return!1},j.prototype.scanComponentsPlacement=function(e,i){void 0===i&&(i=!1);var r=this.coordY.count,n=this.coordX.count;this.linePlacement=Array.create(Number,r),this.parentBandName=Array.create(String,r);for(var a=0;a<r-1;a++){for(var s=this.linePlacement[a],l=new D,u=!1,c=0,p=1;p<n;p++){var h=this.cells[a][p-1];if(null!=h&&!h.component.sti_is(t.Report.CrossTab.StiCrossColumnTotal)){var g=h.component.componentPlacement;null==g&&(g="");var m=g.indexOf("Hd_HPnl");-1!=m&&(g=g.substr(0,m+7)),u||(g.startsWith("d")?s=Y.Data:g.startsWith("h.ap")?s=Y.HeaderAP:g.startsWith("f.ap")?s=Y.FooterAP:g.startsWith("h")?s=Y.HeaderD:g.startsWith("f")?s=Y.FooterD:g.startsWith("gh")?s=Y.HeaderD:g.startsWith("gf")?s=Y.FooterD:g.startsWith("ph")?(s=Y.PageHeader,u=!0):g.startsWith("pf")&&(s=Y.PageFooter,u=!0)),""!=g&&s==Y.Empty&&(s=Y.Unknown),0==l.length&&l.append(g+String.fromCharCode(31)),1==l.length&&l[0]==String.fromCharCode(31)&&""!=g&&l.insert(0,g),s!=Y.HeaderD&&s!=Y.HeaderAP||null==h.text||l.append(h.text);var d=h.height;i||(d=0);for(var S=0;S<=d;S++)this.linePlacement[a+S]=s,this.parentBandName[a+S]=l.toString();d>c&&(c=d)}}this.linePlacement[a]=s}if(e){for(var f=new o,y=null,b=0;b<r-1;b++)if(this.linePlacement[b]==Y.HeaderAP){var C=this.parentBandName[b],v=C.indexOf("");if(-1!=v){var I=C.substr(0,v);I!=y&&(y=I,f.clear())}if(f.containsKey(C)){this.linePlacement[b]=Y.Trash;while(b+1<r-1&&this.linePlacement[b+1]==Y.HeaderAP&&this.parentBandName[b+1]==C)b++,this.linePlacement[b]=Y.Trash}else{f.add(C,C);while(b+1<r-1&&this.linePlacement[b+1]==Y.HeaderAP&&this.parentBandName[b+1]==C)b++}}var A=new o;y=null;for(var b=r-1-1;b>=0;b--)if(this.linePlacement[b]==Y.FooterAP){var w=this.parentBandName[b],v=w.indexOf("");if(-1!=v){var I=w.substr(0,v);I!=y&&(y=I,A.clear())}if(A.containsKey(w)){this.linePlacement[b]=Y.Trash;while(b-1>=0&&this.linePlacement[b-1]==Y.FooterAP&&this.parentBandName[b-1]==w)b--,this.linePlacement[b]=Y.Trash}else{A.add(w,w);while(b-1>=0&&this.linePlacement[b-1]==Y.FooterAP&&this.parentBandName[b-1]==w)b--}}for(var a=0;a<r-1;a++)if(this.linePlacement[a]==Y.PageHeader||this.linePlacement[a]==Y.PageFooter||this.linePlacement[a]==Y.Trash){var T=0;while(a+T>0&&this.linePlacement[a+T-1]==Y.Empty)T--,this.linePlacement[a+T]=this.linePlacement[a];T=0;while(a+T<r-1&&this.linePlacement[a+T+1]==Y.Empty)T++,this.linePlacement[a+T]=this.linePlacement[a]}}},j.prototype.processIntersectedCells=function(t){if(null==t)return;for(var e=this.coordX,i=this.coordY,r=e.getKeys(),n=i.getKeys(),o=0,a=t;o<a.length;o++){var s=a[o];if(0!=s.width||0!=s.height){var l=0,u=0,c=this.getCellRectangle(l,u,s);if(c.width==s.width+1&&c.height==s.height+1){this.cutRectangleFromCellsMap(c,s);continue}for(var p=[],h=0;h<=s.height;h++)for(var g=0;g<=s.width;){if(c=this.getCellRectangle(g,h,s),0==c.width){g=s.width+1;continue}this.cutRectangleFromCellsMap(c,s);var m=s.clone();m.left=s.left+c.x,m.top=s.top+c.y,m.width=c.width-1,m.height=c.height-1,this.cells[m.top][m.left]=m,p.add(m),g+=c.width}if(p.count>0){for(var d=0,S=null,f=0,y=p;f<y.length;f++){var b=y[f],C=e.getByIndex(b.left+b.width+1,r)-e.getByIndex(b.left,r),v=i.getByIndex(b.top+b.height+1,n)-i.getByIndex(b.top,n);d<C*v&&(d=C*v,S=b)}for(var I=0,A=p;I<A.length;I++){var w=A[I];w!=S&&(w.text="",w.exportImage=null)}}}}t.clear()},j.prototype.splitTagWithCache=function(t){var e=this.tagSplitCache.get(t);if(null!=e)return e;var i=j.splitTag(t);return this.tagSplitCache.set(t,i),i},j.splitTag=function(t){var e=t;e.endsWith(";")||(e+=";");var i=[],r=new D,n=0,o=!1;while(n<e.length){var a=e.charAt(n);if(n++,'"'==a&&(o&&'"'==e.charAt(n)?(r.append(a),n++):o=!o),";"==a&&!o||n>=e.length){var s=r.toString().trim();s.length>0&&i.add(s),r=new D;continue}r.append(a)}var l=[];return i.copyTo(l),l},j.getStringsFromTag=function(t,e){var i=[],r=e;while(r<t.length&&'"'!=t.charAt(r))r++;var n=new D,o=!1;while(r<t.length){var a=t.charAt(r);if(r++,'"'==a){if(o){if(r<t.length&&'"'==t.charAt(r)){n.append(a),r++;continue}i.add(n.toString()),n=new D,o=!1;continue}o=!0;continue}o&&n.append(a)}n.length>0&&i.add(n.toString());var s=[];return i.copyTo(s),s},j.prototype.copyFieldsListToFields=function(){this.fields=[];for(var t=0;t<this.fieldsList.count;t++)this.fields[t]=this.fieldsList[t]},j.prototype.prepareDocument=function(r,n){this.sizeX=this.coordX.count-1,this.sizeY=this.coordY.count-1;for(var a=0,s=0;s<this.sizeY;s++)((n&i.StiDataExportMode.Data)>0&&this.linePlacement[s]==Y.Data||(n&i.StiDataExportMode.Headers)>0&&(this.linePlacement[s]==Y.HeaderD||this.linePlacement[s]==Y.HeaderAP)||(n&i.StiDataExportMode.Footers)>0&&(this.linePlacement[s]==Y.FooterD||this.linePlacement[s]==Y.FooterAP)||n==i.StiDataExportMode.AllBands)&&a++;this.fieldsList=[];for(var s=0;s<this.sizeX;s++)this.fieldsList.add(new X(a));this.copyFieldsListToFields();for(var l=0;l<this.sizeX;l++)this.fields[l].name="FIELD"+l.toStringFormat("D4");var u="",c=!1;switch(r.exportFormat){case e.StiExportFormat.Csv:u="csv";break;case e.StiExportFormat.Dbf:u="dbf";break;case e.StiExportFormat.Xml:u="xml";break}var p=0;this.htName=new o;for(var h=0;h<this.sizeY;h++){if((n&i.StiDataExportMode.Data)>0&&this.linePlacement[h]==Y.Data||(n&i.StiDataExportMode.Headers)>0&&(this.linePlacement[h]==Y.HeaderD||this.linePlacement[h]==Y.HeaderAP)||(n&i.StiDataExportMode.Footers)>0&&(this.linePlacement[h]==Y.FooterD||this.linePlacement[h]==Y.FooterAP)||n==i.StiDataExportMode.AllBands){for(var l=0;l<this.sizeX;l++){var g=this.cells[h][l];if(null!=g){var m=null==g.component.tagValue?"":g.component.tagValue.toString(),d=null;if(String.isNullOrEmpty(m)||(d=this.splitTagWithCache(m)),null!=d)for(var s=0;s<d.length;s++)if(d[s].toLower().startsWith("column")){var S=j.getStringsFromTag(d[s],6);if(S.length>1){if(!this.htName.containsKey(S[0])){var f=this.fields.length;this.fieldsList.add(new X(a)),this.copyFieldsListToFields(),this.fields[f].name=S[0],this.fields[f].readyName=!0,this.fields[f].readyType=!0,this.htName.set(S[0],f)}var y=this.htName.get(S[0]);this.fields[y].dataArray[p]=S[1]}}if(null!=g.component&&(g.component.sti_is(N)||g.component.sti_is(L))){if(!this.fields[l].readyName){var b=g.component.name;if(c&&!String.isNullOrEmpty(g.component.alias)&&(b=g.component.alias),null!=d)for(var v=0;v<d.length;v++){var I=d[v].trim();if(I.toLower().startsWith(u)||I.toLower().startsWith("default")){var A=I.indexOf('"');if(-1==A)throw"Name of DataColumn not found in property: "+b;A++;var w=I.indexOf('"',A)-A;if(!(w>0))throw"Name of DataColumn not found in property: "+b;if(b=I.substr(A,w),!I.toLower().startsWith("default"))break}}r.exportFormat==e.StiExportFormat.Dbf&&b.length>10&&(b=b.substr(0,10)),this.fields[l].name=b,this.fields[l].readyName=!0}if(!this.fields[l].readyType&&null!=d&&(r.exportFormat==e.StiExportFormat.Xml||r.exportFormat==e.StiExportFormat.Dbf)){var T=d[0].split(":",3);if(T[0]=T[0].trim().toLower(),T[0].startsWith("int")&&(this.fields[l].info[0]=F.Int,this.fields[l].info[1]=15),T[0].startsWith("long")&&(this.fields[l].info[0]=F.Long,this.fields[l].info[1]=25),T[0].startsWith("float")&&(this.fields[l].info[0]=F.Float,this.fields[l].info[1]=15,this.fields[l].info[2]=5),T[0].startsWith("double")&&(this.fields[l].info[0]=F.Double,this.fields[l].info[1]=20,this.fields[l].info[2]=10),T[0].startsWith("date")&&(this.fields[l].info[0]=F.Date,this.fields[l].info[1]=8,this.fields[l].info[2]=0),T[0].startsWith("bool")&&(this.fields[l].info[0]=F.Bool,this.fields[l].info[1]=1,this.fields[l].info[2]=0),T.length>1){T[1]=T[1].trim();var R=0;try{R=parseInt(T[1]),R>0&&(this.fields[l].info[1]=R)}catch(e){t.System.StiError.showError(e,!1),R=0}if(T.length>2){T[2]=T[2].trim();var P=0;try{P=parseInt(T[2]),P>0&&P<R&&(this.fields[l].info[2]=P)}catch(e){t.System.StiError.showError(e,!1),P=0}}}this.fields[l].readyType=!0}}var x=g.component.sti_as(B),D=g.component.sti_as(L),k=g.text;if(!String.isNullOrWhiteSpace(k)){var E=g.component.sti_as(C);null==E||String.isNullOrWhiteSpace(E.format)||"g"==E.format||-1==k.indexOf(" ")||(k=k.replaceAll(" "," "))}if(null==k&&(k=""),null!=D&&null!=D.checkedValue){var G=!1,_=!1;D.checkedValue.sti_is(Boolean)&&(D.checkedValue?G=!0:_=!0),D.checkedValue.sti_is(String)&&("True"==D.checkedValue?G=!0:_=!0),G&&(k=StiOptions.Export.checkBoxTextForTrue),_&&(k=StiOptions.Export.checkBoxTextForFalse)}String.isNullOrEmpty(k)||(r.exportFormat==e.StiExportFormat.Xml?k=k.replaceAll("\r",""):(k=k.replaceAll("\n"," "),k=k.replaceAll("\r","")),r.exportFormat==e.StiExportFormat.Dbf&&k.length>254&&(k=k.substr(0,254))),this.fields[l].dataArray[p]=k}else this.fields[l].dataArray[p]=""}p++}}this.fields=[];for(var l=0;l<this.fieldsList.count;l++)this.fieldsList[l].readyName&&this.fields.push(this.fieldsList[l]);this.dataArrayLength=a},j.prototype.checkStylesNames=function(){for(var t=new o,e=0;e<this.styles.count;e++){var i=this.styles[e],r=i.styleName,n="",a=0;while(!0){if(!t.contains(r+n))break;a++,n=a.toString()}""!=n&&(r+=n,i.styleName=r),t.add(r,r)}},j.prototype.getRealImageData=function(t,e){if(null==t||null==t.component||null==e)return null;var i=null;if(null==(i=this.imagesBaseRect.get(t.component))||!i.sti_is(S))return null;var r=i,n=this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?j.htmlScaleX:1,o=this.isHtmlService&&StiOptions.Export.Html.printLayoutOptimization?j.htmlScaleY:1,a=this.round(r.left*n),s=this.round(r.top*o),l=this.round(r.right*n),u=this.round(r.bottom*o),c=0,p=0,h=0,g=0;if(null==this.leftCached.get(a)?(c=this.coordX.indexOf(a),this.leftCached.set(a,c)):c=this.leftCached.get(a),null==this.topCached.get(s)?(p=this.coordY.indexOf(s),this.topCached.set(s,p)):p=this.topCached.get(s),null==this.leftCached.get(l)?(h=this.coordX.indexOf(l),this.leftCached.set(l,h)):h=this.leftCached.get(l),null==this.topCached.get(u)?(g=this.coordY.indexOf(u),this.topCached.set(u,g)):g=this.topCached.get(u),-1==c||-1==h||-1==p||-1==g)return null;if(c==t.left&&h==t.left+t.width+1&&p==t.top&&g==t.top+t.height+1)return null;var m=this.coordY.getKeys(),d=this.coordX.getKeys(),f=Math.trunc(this.coordX.getByIndex(t.left,d)),y=Math.trunc(this.coordY.getByIndex(t.top,m)),b=Math.trunc(this.coordX.getByIndex(t.left+t.width+1,d)),C=t.top+t.height+1;C>m.length-1&&(C=m.length-1);var v=Math.trunc(this.coordY.getByIndex(C,m)),I=(f-a)/(l-a),A=(b-a)/(l-a),w=(y-s)/(u-s),T=(v-s)/(u-s),B=Math.trunc(e.width*I),R=Math.round(e.width*A+.5),P=Math.trunc(e.height*w),F=Math.round(e.height*T+.5);return null},j.prototype.checkComponentPlacement=function(t,e){if(e==i.StiDataExportMode.AllBands)return!0;var r=t.componentPlacement;null==r&&(r="");var n=r.indexOf("Hd_HPnl");-1!=n&&(r=r.substring(0,n+7));var o=Y.Unknown;if(r.startsWith("d")?o=Y.Data:r.startsWith("h.ap")?o=Y.HeaderD:r.startsWith("f.ap")?o=Y.FooterD:r.startsWith("h")?o=Y.HeaderD:r.startsWith("f")?o=Y.FooterD:r.startsWith("gh")?o=Y.HeaderD:r.startsWith("gf")&&(o=Y.FooterD),(e&i.StiDataExportMode.Data)>0&&o==Y.Data||(e&i.StiDataExportMode.Headers)>0&&o==Y.HeaderD||(e&i.StiDataExportMode.Footers)>0&&o==Y.FooterD)return!0;return!1},j.prototype.getBorderSideIndex=function(t){if(null==t)return 0;if(this.borderSides.count>0)for(var e=0;e<this.borderSides.count;e++)if(this.borderSides[e].stiEquals(t))return e+1;return this.borderSides.add(t),this.borderSides.count},j.GCCollect=function(){},j.prototype.clear=function(){this.cells=null,this.bordersX=null,this.bordersY=null,this.bookmarks=null,this.cellStyles=null,this.cellsMap=null,this.styles=null,this.coordX=null,this.coordY=null,this.linePlacement=null,this.parentBandName=null,this.horizontalPageBreaks=null,this.xcHash.clear(),this.xcHash=null,this.ycHash.clear(),this.ycHash=null,this.coordXCheck=null,this.coordYCheck=null,this.coordXNew=null,this.coordYNew=null,this.coordXPrim=null,this.coordYPrim=null,this.leftCached=null,this.topCached=null,this.tagSplitCache.clear(),this.tagSplitCache=null,this.stylesCache.clear(),this.stylesCache=null,this.fontsCache.clear(),this.fontsCache=null,this.fields=null,this.fieldsList=null,this.htName=null,this.report=null,this.lastPage=null,null!=this.lastComps&&this.lastComps.clear(),null!=this.borderSides&&this.borderSides.clear(),this.borderSides=null},j.staticRectanglePrimitive=new T,j.htmlScaleX=.96,j.htmlScaleY=.956,j}();i.StiMatrix=j;var X=function(){function t(t){this.name="",this.info=[],this.formatString="",this.dataArray=[],this.readyName=!1,this.readyType=!1}return t}();i.DataField=X}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Xml.Formatting,n=t.System.Text.Encoding,o=t.Report.Components.IStiExportImage,a=t.System.DateTime,s=t.Base.Zip.StiZipWriter20,l=t.System.IO.MemoryStream,u=t.Report.Components.StiPageOrientation,c=t.Report.Components.StiPagesCollection,p=t.Base.Drawing.StiBorderSides,h=t.Base.Drawing.StiVertAlignment,g=t.Report.Components.StiRichText,m=t.Report.Components.StiText,d=t.System.Xml.XmlTextWriter,S=t.System.Char,f=t.System.Text.StringBuilder,y=t.Base.Drawing.StiBrush,b=t.Report.Components.IStiFont,C=t.Report.Components.IStiTextBrush,v=t.Report.Components.IStiTextHorAlignment,I=t.Report.Components.IStiTextOptions,A=t.Base.Drawing.StiPenStyle,w=t.System.Collections.Hashtable,T=t.Base.Drawing.StiTextHorAlignment,B=t.Base.Localization.StiLocalization,R=t.Report.Components.IStiHorAlignment,P=t.Base.Drawing.StiHtmlTagsState,F=t.Base.Drawing.StiHtmlState,x=function(){function t(){}return t}(),D=function(D){function k(){var t=null!==D&&D.apply(this,arguments)||this;return t._matrix=null,t._removeEmptySpaceAtBottom=StiOptions.Export.Word.removeEmptySpaceAtBottom,t.fontList=null,t.styleList=null,t.imageCache=null,t.bookmarkList=null,t.hyperlinkList=null,t.embedsList=null,t.xmlIndentation=1,t.imageQuality=.75,t.imageResolution=96,t.lineSpace=null,t.usePageHeadersAndFooters=!1,t.restrictEditing=i.StiWord2007RestrictEditing.No,t.headersData=null,t.headersRels=null,t.footersData=null,t.footersRels=null,t.docCompanyString=null,t.docLastModifiedString=null,t.wrongUrlSymbols=" \"#'*,;<>[^`{|}",t}return __extends(k,D),Object.defineProperty(k.prototype,"defaultExtension",{get:function(){return"docx"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"exportFormat",{get:function(){return e.StiExportFormat.Word2007},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"groupCategory",{get:function(){return"Word"},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"position",{get:function(){return i.StiExportPosition.Word2007},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"exportNameInMenu",{get:function(){return B.get("Export","ExportTypeWord2007File")},enumerable:!0,configurable:!0}),k.prototype.exportTo=function(t,e,i){this.exportWord(t,e,i)},k.prototype.exportToAsync=function(e,i,r,n){var o=this;t.Report.Export.StiExportImageHelper.convertAllImages(i,t.System.Drawing.Imaging.ImageFormat.Jpeg).try(function(){o.exportTo(i,r,n),e()})},Object.defineProperty(k.prototype,"multipleFiles",{get:function(){return!1},enumerable:!0,configurable:!0}),k.prototype.getFilter=function(){return B.get("FileFilters","Word2007Files")},Object.defineProperty(k.prototype,"matrix",{get:function(){return this._matrix},enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"removeEmptySpaceAtBottom",{get:function(){return this._removeEmptySpaceAtBottom},enumerable:!0,configurable:!0}),k.prototype.checkFontsToCorrectHeight=function(t){return"Arial Unicode MS"==t},k.prototype.getLineStyle=function(t){switch(t){case A.Solid:return"single";case A.Dot:return"dotted";case A.Dash:return"dashSmallGap";case A.DashDot:return"dotDash";case A.DashDotDot:return"dotDotDash";case A.Double:return"double";default:return String.empty}},k.prototype.getColorString=function(t){if(0==t.a)return"auto";if(t.a<32)return"FFFFFF";return String.stiFormat("{0:X8}",t.toArgb()).substr(2)},k.prototype.getStyleNumber=function(t,e){if(t.count>0)for(var i=0;i<t.count;i++){var r=t[i];if(r.alignment==e.alignment&&r.name==e.name&&r.fontName==e.fontName&&r.fontSize==e.fontSize&&r.bold==e.bold&&r.italic==e.italic&&r.underline==e.underline&&r.textColor==e.textColor&&r.rightToLeft==e.rightToLeft)return i}return t.add(e),t.count-1},k.prototype.getStyleFromComponent=function(t){if(null!=t&&!String.isNullOrEmpty(t.componentStyle)){var e=t.sti_as(b),i=t.sti_as(C),r=t.sti_as(v),n=t.sti_as(I),o=new x;return o.name=t.componentStyle,null!=e&&(o.fontName=e.font.name,o.fontSize=Math.round(2*e.font.sizeInPoints,0),o.bold=e.font.bold,o.italic=e.font.italic,o.underline=e.font.underline),null!=i&&(o.textColor=y.toColor(i.textBrush)),null!=r&&(o.alignment=r.horAlignment),null!=n&&(o.rightToLeft=n.textOptions.rightToLeft),this.getStyleNumber(this.styleList,o)}return-1},k.prototype.stringToUrl=function(t){if(String.isNullOrEmpty(t))return String.empty;var e=new f;if(t.startsWith("file:"))for(var i=0,r=t.split("");i<r.length;i++){var n=r[i];n.charCodeAt(0)<32||'"'==n?e.append(String.stiFormat("%{0:x2}",n)):e.append(n)}else for(var o=0,a=t.split("");o<a.length;o++){var n=a[o];n.charCodeAt(0)<32||-1!=this.wrongUrlSymbols.indexOf(n)?e.append("_"):e.append(n)}return e.toString()},Object.defineProperty(k,"hiToTwips",{get:function(){return 14.4*.995},enumerable:!0,configurable:!0}),k.prototype.convert=function(t){return Math.round(t*k.hiToTwips)},k.prototype.convertHiToTwips=function(t){return Math.round(14.4*t)},k.prototype.convertTwipsToEmu=function(t){return Math.round(t/k.hiToTwips/100*914400)},k.prototype.convertStringToBookmark=function(t){for(var e=new f,i=0,r=t.split("");i<r.length;i++){var n=r[i];S.isLetterOrDigit(n)&&e.append(n)}return e.length>0&&null!=e[0]&&S.isDigit(e[0])&&e.insert(0,"b"),e.toString()},k.prototype.writeFromMatrix=function(t,r,n,o){for(var a=this.matrix.coordX.count,s=this.matrix.coordY.count,l=Array.create(Number,a),u=this.matrix.coordX.getKeys(),c=0;c<a;c++){var d=this.matrix.coordX.getByIndex(c,u);l[c]=this.convert(d)}for(var S=Array.create(Number,s),f=this.matrix.coordY.getKeys(),y=0;y<s;y++){var b=this.matrix.coordY.getByIndex(y,f);S[y]=this.convert(b)}var C=!1,v=0,I=Array.create(Boolean,s,a),A=Array.create(Boolean,s,a),w=String.empty;this.currentPassNumber=2+(StiOptions.Export.Word.divideSegmentPages?1:0);for(var y=1;y<s;y++){this.invokeExporting2(y,s,this.currentPassNumber,this.maximumPassNumber);var T=y-1>=r&&y-1<=n;0==o&&(this.matrix.linePlacement[y-1]!=i.StiTableLineInfo.PageHeader&&this.matrix.linePlacement[y-1]!=i.StiTableLineInfo.PageFooter&&this.matrix.linePlacement[y-1]!=i.StiTableLineInfo.Trash||(T=!1)),v>0&&(v--,T=!1);var B=100005,R=[],P=!1;if(T)for(var F=1;F<a;F++){var x=this.matrix.cells[y-1][F-1];if(0==I[y][F]&&null!=x&&null!=x.component){if(null!=x.component.tagValue){var D=x.component.tagValue.toString().toLower();-1!=D.indexOf("rtfparagraph")&&(R.add(x),T=!1),-1!=D.indexOf("rtfnewpage")&&(P=!0)}var E=null;x.component.sti_is(m)&&(E=x.component.margins),x.component.sti_is(g)&&(E=x.component.margins),null!=E&&(E.top<B&&(B=E.top),x.height>0&&(B=0))}}B*=k.hiToTwips;var G=Math.round(B);if(P&&(C&&(t.writeFullEndElement(),C=!1),t.writeStartElement("w:p"),t.writeStartElement("w:r"),t.writeStartElement("w:br"),t.writeAttributeString("w:type","page"),t.writeEndElement(),t.writeEndElement(),t.writeEndElement()),T){if(this.usePageHeadersAndFooters&&this.matrix.linePlacement[y-1]==i.StiTableLineInfo.HeaderAP){var _=this.matrix.parentBandName[y-1],L=_.indexOf("");-1!=L&&(_=_.substr(0,L)),_!=w&&(w=_,C&&t.writeFullEndElement(),t.writeStartElement("w:p"),t.writeEndElement(),t.writeStartElement("w:tbl"),this.writeTableInfo(t,l,a),C=!0)}C||(t.writeStartElement("w:tbl"),this.writeTableInfo(t,l,a),C=!0),t.writeStartElement("w:tr");var N=S[y]-S[y-1];t.writeStartElement("w:trPr"),this.usePageHeadersAndFooters&&!StiOptions.Export.Word.forceLineHeight||(t.writeStartElement("w:trHeight"),(!this.usePageHeadersAndFooters&&StiOptions.Export.Word.lineHeightExactly||this.usePageHeadersAndFooters&&StiOptions.Export.Word.lineHeightExactlyForPHFMode)&&t.writeAttributeString("w:hRule","exact"),t.writeAttributeString("w:val",String.stiFormat("{0}",N)),t.writeEndElement()),this.usePageHeadersAndFooters&&this.matrix.linePlacement[y-1]==i.StiTableLineInfo.HeaderAP&&(t.writeStartElement("w:tblHeader"),t.writeEndElement()),t.writeEndElement()}for(var O=0,c=1;c<a;c++){var x=this.matrix.cells[y-1][c-1];if(!I[y][c]||A[y][c]){O++;var Z=!0;if(A[y][c]){var M=y;while(A[M][c])M--;x=this.matrix.cells[M-1][c-1],Z=!1}if(null!=x&&Z){for(var H=0;H<=x.height;H++)for(var W=0;W<=x.width;W++)I[y+H][c+W]=!0;if(x.height>0)for(var H=1;H<=x.height;H++)A[y+H][c]=!0}if(T){if(t.writeStartElement("w:tc"),null!=x){t.writeStartElement("w:tcPr");for(var V=0,Y=0;Y<x.width+1;Y++)V+=l[c+Y]-l[c-1+Y];if(t.writeStartElement("w:tcW"),t.writeAttributeString("w:w",String.stiFormat("{0}",V)),t.writeAttributeString("w:type","dxa"),t.writeEndElement(),x.width>0&&(t.writeStartElement("w:gridSpan"),t.writeAttributeString("w:val",String.stiFormat("{0}",x.width+1)),t.writeEndElement()),x.height>0&&(A[y][c]?(t.writeStartElement("w:vMerge"),t.writeEndElement()):(t.writeStartElement("w:vMerge"),t.writeAttributeString("w:val","restart"),t.writeEndElement())),null!=x.cellStyle.textOptions){var j=x.cellStyle.textOptions.angle,X=String.empty;j>45&&j<135&&(X="btLr"),j>225&&j<315&&(X="tbRl"),X!=String.empty&&(t.writeStartElement("w:textDirection"),t.writeAttributeString("w:val",X),t.writeEndElement())}var J=x.component.sti_is(m)&&x.component.checkAllowHtmlTags()&&!StiOptions.Export.Word.renderHtmlTagsAsImage;if(Z&&x.component.sti_is(m)&&(!x.component.isExportAsImage(e.StiExportFormat.Word2007)||J)){var K=x.component,U=this.convert(K.margins.left),z=this.convert(K.margins.right-StiOptions.Export.Word.rightMarginCorrection),Q=this.convert(K.margins.top);Q>G&&(Q=G),(U>0||z>0||Q>0)&&(t.writeStartElement("w:tcMar"),Q>0&&(t.writeStartElement("w:top"),t.writeAttributeString("w:w",String.stiFormat("{0}",Q)),t.writeAttributeString("w:type","dxa"),t.writeEndElement()),U>0&&(t.writeStartElement("w:left"),t.writeAttributeString("w:w",String.stiFormat("{0}",U)),t.writeAttributeString("w:type","dxa"),t.writeEndElement()),z>0&&(t.writeStartElement("w:right"),t.writeAttributeString("w:w",String.stiFormat("{0}",z)),t.writeAttributeString("w:type","dxa"),t.writeEndElement()),t.writeEndElement())}var q=String.empty;switch(x.cellStyle.vertAlignment){case h.Center:q="center";break;case h.Bottom:q="bottom";break}q!=String.empty&&(t.writeStartElement("w:vAlign"),t.writeAttributeString("w:val",q),t.writeEndElement()),this.writeBorders(t,x.top,x.left,x.height+1,x.width+1),x.component.isExportAsImage(e.StiExportFormat.Word2007)||(t.writeStartElement("w:shd"),t.writeAttributeString("w:val","clear"),t.writeAttributeString("w:color","auto"),t.writeAttributeString("w:fill",this.getColorString(x.cellStyle.color)),t.writeEndElement()),t.writeEndElement();var $=this.restrictEditing==i.StiWord2007RestrictEditing.ExceptEditableFields&&null!=x.component&&x.component.sti_is(m)&&x.component.editable;$&&(t.writeStartElement("w:permStart"),t.writeAttributeString("w:id","0"),t.writeEndElement());var tt=!0;if(Z){var et={ref:tt};this.writeCellContent(t,x,et,y,c,l,S),tt=et.ref}tt&&(t.writeStartElement("w:p"),t.writeFullEndElement()),$&&(t.writeStartElement("w:permEnd"),t.writeAttributeString("w:id","0"),t.writeEndElement())}else{var it=null,rt={ref:it},nt=this.renderBorder2TableGetValues(y,c,rt),ot=0;if(0==(nt&p.Right)){while(c+ot+1<a&&null==this.matrix.cells[y-1][c+ot+1-1]&&0==I[y][c+ot+1]&&0==A[y][c+ot+1]){var at=null,st={ref:at},lt=this.renderBorder2TableGetValues(y,c+ot+1,st);if((lt&p.Left)>0)break;if((lt&(p.Top|p.Bottom))!=(nt&(p.Top|p.Bottom)))break;if(it!=at)break;if(ot++,(lt&p.Right)>0)break}if(ot>0)for(var W=1;W<=ot;W++)I[y][c+W]=!0}t.writeStartElement("w:tcPr");var V=l[c+ot]-l[c-1];t.writeStartElement("w:tcW"),t.writeAttributeString("w:w",String.stiFormat("{0}",V)),t.writeAttributeString("w:type","dxa"),t.writeEndElement(),ot>0&&(t.writeStartElement("w:gridSpan"),t.writeAttributeString("w:val",String.stiFormat("{0}",ot+1)),t.writeEndElement()),this.writeBorders(t,y-1,c-1,1,ot+1),t.writeEndElement(),t.writeStartElement("w:p"),t.writeFullEndElement()}t.writeFullEndElement()}}if(O>=64)break}T&&t.writeFullEndElement();for(var ut=0,ct=R;ut<ct.length;ut++){var pt=ct[ut];C&&t.writeEndElement(),C=!1,v=pt.height;var ht=!1,gt={ref:ht};this.writeCellContent(t,pt,gt,pt.top+1,pt.left+1,l,S),ht=gt.ref}}C&&t.writeEndElement()},k.prototype.writeCellContent=function(t,i,r,n,a,s,l){var u=r.ref,c=null,p=-1,h=this.matrix.bookmarks[n-1][a-1];null==h||this.bookmarkList.containsKey(h)||(p=this.bookmarkList.count,c=this.convertStringToBookmark(h),this.bookmarkList.set(h,p));var d=null,y=-1;if(null!=i.component&&null!=i.component.hyperlinkValue){var b=i.component.hyperlinkValue.toString().trim();b.length>0&&!b.startsWith("javascript:")&&(b.startsWith("#")?d=this.convertStringToBookmark(b.substr(1)):(d=this.stringToUrl(b),this.hyperlinkList.containsKey(d)?y=Math.trunc(this.hyperlinkList.get(d)):(y=this.hyperlinkList.count,this.hyperlinkList.add(d,y))))}if(!i.component.sti_is(m)||i.component.isExportAsImage(e.StiExportFormat.Word2007)||i.component.checkAllowHtmlTags())if(i.component.sti_is(g)&&!StiOptions.Export.Word.renderRichTextAsImage)var C=i.component;else if(i.component.sti_is(m)&&i.component.checkAllowHtmlTags()&&!StiOptions.Export.Word.renderHtmlTagsAsImage)String.isNullOrWhiteSpace(i.text)||this.writeHtmlTags(t,i);else if(i.component.isExportAsImage(e.StiExportFormat.Word2007)){var I=i.component.sti_as(o);if(null!=I){var A=this.imageResolution,w={ref:A},B=I.getImage(w);if(A=w.ref,null!=B){var P=this.matrix.getRealImageData(i,B);u=!1;var F=0;F=null!=P?this.imageCache.addImageIntRaw(P,P.imageFormat):this.imageCache.addImageIntRaw(B,B.imageFormat);var x=-1,D=-1;t.writeStartElement("w:p"),t.writeStartElement("w:pPr");var k=i.cellStyle.horAlignment,E=!1;if(null!=i.cellStyle.textOptions&&(E=i.cellStyle.textOptions.rightToLeft),null==i.component.sti_as(v))var G=i.component.sti_as(R);var _=String.empty;(k==T.Left&&1==E||k==T.Right&&0==E)&&(_="right"),k==T.Center&&(_="center"),k==T.Width&&(_="both"),_!=String.empty&&(t.writeStartElement("w:jc"),t.writeAttributeString("w:val",_),t.writeEndElement()),t.writeEndElement(),-1!=p&&(t.writeStartElement("w:bookmarkStart"),t.writeAttributeString("w:id",p.toString()),t.writeAttributeString("w:name",c),t.writeEndElement()),t.writeStartElement("w:r"),t.writeStartElement("w:rPr"),t.writeElementString("w:noProof",""),t.writeEndElement(),t.writeStartElement("w:drawing"),t.writeStartElement("wp:inline"),t.writeAttributeString("distT","0"),t.writeAttributeString("distB","0"),t.writeAttributeString("distL","0"),t.writeAttributeString("distR","0");var L=l[n-1+i.height+1]-l[n-1],N=s[a-1+i.width+1]-s[a-1];-1!=x&&(N=x,L=D),t.writeStartElement("wp:extent"),t.writeAttributeString("cx",String.stiFormat("{0}",this.convertTwipsToEmu(N))),t.writeAttributeString("cy",String.stiFormat("{0}",this.convertTwipsToEmu(L))),t.writeEndElement(),t.writeStartElement("wp:effectExtent"),t.writeAttributeString("l","0"),t.writeAttributeString("t","0"),t.writeAttributeString("r","0"),t.writeAttributeString("b","0"),t.writeEndElement(),t.writeStartElement("wp:docPr"),t.writeAttributeString("id",String.stiFormat("{0}",F+2)),t.writeAttributeString("name",String.stiFormat("Picture {0}",F+1)),t.writeAttributeString("descr",String.stiFormat("Image{0:D5}.jpg",F+1)),null!=d&&(-1==y&&(d="#"+d,this.hyperlinkList.containsKey(d)?y=this.hyperlinkList.get(d):(y=this.hyperlinkList.count,this.hyperlinkList.add(d,y))),t.writeStartElement("a:hlinkClick"),t.writeAttributeString("xmlns:a","http://schemas.openxmlformats.org/drawingml/2006/main"),t.writeAttributeString("r:id",String.stiFormat("hId{0}",y)),t.writeEndElement()),t.writeEndElement(),t.writeStartElement("wp:cNvGraphicFramePr"),t.writeStartElement("a:graphicFrameLocks"),t.writeAttributeString("xmlns:a","http://schemas.openxmlformats.org/drawingml/2006/main"),t.writeAttributeString("noChangeAspect","1"),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("a:graphic"),t.writeAttributeString("xmlns:a","http://schemas.openxmlformats.org/drawingml/2006/main"),t.writeStartElement("a:graphicData"),t.writeAttributeString("uri","http://schemas.openxmlformats.org/drawingml/2006/picture"),t.writeStartElement("pic:pic"),t.writeAttributeString("xmlns:pic","http://schemas.openxmlformats.org/drawingml/2006/picture"),t.writeStartElement("pic:nvPicPr"),t.writeStartElement("pic:cNvPr"),t.writeAttributeString("id","0"),t.writeAttributeString("name",String.stiFormat("Image{0:D5}.jpg",F+1)),t.writeEndElement(),t.writeStartElement("pic:cNvPicPr"),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("pic:blipFill"),t.writeStartElement("a:blip"),t.writeAttributeString("r:embed",String.stiFormat("rId{0}",5+F)),t.writeAttributeString("cstate","print"),t.writeEndElement(),t.writeStartElement("a:stretch"),t.writeStartElement("a:fillRect"),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("pic:spPr"),t.writeStartElement("a:xfrm"),t.writeStartElement("a:off"),t.writeAttributeString("x","0"),t.writeAttributeString("y","0"),t.writeEndElement(),t.writeStartElement("a:ext"),t.writeAttributeString("cx",String.stiFormat("{0}",this.convertTwipsToEmu(N))),t.writeAttributeString("cy",String.stiFormat("{0}",this.convertTwipsToEmu(L))),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("a:prstGeom"),t.writeAttributeString("prst","rect"),t.writeStartElement("a:avLst"),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),t.writeEndElement(),-1!=p&&(t.writeStartElement("w:bookmarkEnd"),t.writeAttributeString("w:id",p.toString()),t.writeEndElement()),t.writeEndElement()}}}else-1!=p&&(t.writeStartElement("w:bookmarkStart"),t.writeAttributeString("w:id",p.toString()),t.writeAttributeString("w:name",c),t.writeEndElement(),t.writeStartElement("w:bookmarkEnd"),t.writeAttributeString("w:id",p.toString()),t.writeEndElement());else{var O=new f(i.text);if(this.usePageHeadersAndFooters){var Z=i.component.tagValue;String.isNullOrEmpty(Z)||-1!=Z.toLower().indexOf("rtfnewpage")||-1==Z.indexOf("#PageNumber#")&&-1==Z.indexOf("#TotalPageCount#")&&-1==Z.indexOf("#PageRef")||(O=new f(Z))}for(var M=[],H=String.empty,W=0,V=O.toString().split("");W<V.length;W++){var Y=V[W];S.isControl(Y)&&"\t"!=Y?"\n"==Y&&(M.add(H),H=String.empty):H+=Y}H!=String.empty&&M.add(H),0==M.count&&M.add(H),M.count>0&&(u=!1);for(var j=this.getStyleFromComponent(i.component),X=0;X<M.count;X++){var J=M[X];t.writeStartElement("w:p"),t.writeStartElement("w:pPr"),null!=this.lineSpace&&(t.writeStartElement("w:spacing"),t.writeAttributeString("w:line",this.lineSpace),t.writeEndElement()),-1!=j&&(t.writeStartElement("w:pStyle"),t.writeAttributeString("w:val",String.stiFormat("Style{0}",j)),t.writeEndElement());var k=i.cellStyle.horAlignment,E=!1;null!=i.cellStyle.textOptions&&(E=i.cellStyle.textOptions.rightToLeft);var _=String.empty;if((k==T.Left&&1==E||k==T.Right&&0==E)&&(_="right"),k==T.Center&&(_="center"),k==T.Width&&(_="both"),_!=String.empty&&(t.writeStartElement("w:jc"),t.writeAttributeString("w:val",_),t.writeEndElement()),-1==j&&this.writeRunProperties(t,i),t.writeEndElement(),null!=d&&(t.writeStartElement("w:hyperlink"),-1==y?t.writeAttributeString("w:anchor",d):t.writeAttributeString("r:id",String.stiFormat("hId{0}",y))),-1!=p&&(t.writeStartElement("w:bookmarkStart"),t.writeAttributeString("w:id",p.toString()),t.writeAttributeString("w:name",c),t.writeEndElement()),J!=String.empty)if(this.usePageHeadersAndFooters){J=J.replaceAll("#PageNumber#","").replaceAll("#TotalPageCount#","");for(var K=[],U=new f,z=0,Q=J.split("");z<Q.length;z++){var Y=Q[z];""==Y||""==Y?(U.length>0&&K.add(U.toString()),K.add(Y.toString()),U=new f):U.append(Y)}U.length>0&&K.add(U.toString()),0==K.count&&K.add(J);for(var q=0;q<K.count;q++){var $=K[q];if($.length>0&&(""==$[0]||""==$[0])){switch(t.writeStartElement("w:r"),-1==j&&this.writeRunProperties(t,i),t.writeStartElement("w:fldChar"),t.writeAttributeString("w:fldCharType","begin"),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("w:r"),this.writeRunProperties(t,i),t.writeStartElement("w:instrText"),$.charAt(0)){case"":t.writeString("PAGE");break;case"":t.writeString("NUMPAGES");break}t.writeEndElement(),t.writeEndElement(),t.writeStartElement("w:r"),this.writeRunProperties(t,i),t.writeStartElement("w:fldChar"),t.writeAttributeString("w:fldCharType","end"),t.writeEndElement(),t.writeEndElement()}else t.writeStartElement("w:r"),-1==j&&this.writeRunProperties(t,i),t.writeStartElement("w:t"),t.writeAttributeString("xml:space","preserve"),t.writeString($),t.writeEndElement(),t.writeEndElement()}}else t.writeStartElement("w:r"),-1==j&&this.writeRunProperties(t,i),t.writeStartElement("w:t"),t.writeAttributeString("xml:space","preserve"),t.writeString(J),t.writeEndElement(),t.writeEndElement();-1!=p&&(t.writeStartElement("w:bookmarkEnd"),t.writeAttributeString("w:id",p.toString()),t.writeEndElement()),null!=d&&t.writeEndElement(),t.writeEndElement()}}r.ref=u},k.prototype.writeTableInfo=function(t,e,i){t.writeStartElement("w:tblPr"),t.writeStartElement("w:tblStyle"),t.writeAttributeString("w:val","a1"),t.writeEndElement(),t.writeStartElement("w:tblW"),t.writeAttributeString("w:w","0"),t.writeAttributeString("w:type","dxa"),t.writeEndElement(),t.writeStartElement("w:tblLayout"),t.writeAttributeString("w:type","fixed"),t.writeEndElement(),t.writeStartElement("w:tblCellMar"),t.writeStartElement("w:top"),t.writeAttributeString("w:w","0"),t.writeAttributeString("w:type","dxa"),t.writeEndElement(),t.writeStartElement("w:left"),t.writeAttributeString("w:w","0"),t.writeAttributeString("w:type","dxa"),t.writeEndElement(),t.writeStartElement("w:bottom"),t.writeAttributeString("w:w","0"),t.writeAttributeString("w:type","dxa"),t.writeEndElement(),t.writeStartElement("w:right"),t.writeAttributeString("w:w","0"),t.writeAttributeString("w:type","dxa"),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("w:tblLook"),t.writeAttributeString("w:val","04A0"),t.writeEndElement(),t.writeEndElement(),t.writeStartElement("w:tblGrid");for(var r=1;r<i;r++){var n=e[r]-e[r-1];t.writeStartElement("w:gridCol"),t.writeAttributeString("w:w",String.stiFormat("{0}",n)),t.writeEndElement()}t.writeFullEndElement()},k.prototype.writeHtmlTags=function(e,i){var r=i.component,n=i.text,o=new P(r.font.bold,r.font.italic,r.font.underline,r.font.strikeout,r.font.sizeInPoints,r.font.name,y.toColor(r.textBrush),y.toColor(r.brush),!1,!1,0,0,1,r.horAlignment),a=new F(o,0),s=t.Base.Drawing.StiTextRenderer.parseHtmlToStates(n,a),l=this.getStyleFromComponent(i.component);this.writeParagraphBegin(e,i,l,s,0);for(var u=0;u<s.count;u++){var c=s[u],p=c.ts;if("\n"==c.text.toString()){e.writeEndElement(),this.writeParagraphBegin(e,i,l,s,u);continue}e.writeStartElement("w:r"),e.writeStartElement("w:rPr"),p.bold&&(e.writeStartElement("w:b"),e.writeEndElement()),p.italic&&(e.writeStartElement("w:i"),e.writeEndElement()),p.underline&&(e.writeStartElement("w:u"),e.writeAttributeString("w:val","single"),e.writeEndElement()),p.strikeout&&(e.writeStartElement("w:strike"),e.writeEndElement()),p.superscript&&(e.writeStartElement("w:vertAlign"),e.writeAttributeString("w:val","superscript"),e.writeEndElement()),p.subsript&&(e.writeStartElement("w:vertAlign"),e.writeAttributeString("w:val","subscript"),e.writeEndElement()),p.fontColor.toArgb()!=o.fontColor.toArgb()&&(e.writeStartElement("w:color"),e.writeAttributeString("w:val",this.getColorString(p.fontColor)),e.writeEndElement()),p.backColor.toArgb()!=o.backColor.toArgb()&&(e.writeStartElement("w:shd"),e.writeAttributeString("w:val","clear"),e.writeAttributeString("w:color","auto"),e.writeAttributeString("w:fill",this.getColorString(p.backColor)),e.writeEndElement()),e.writeStartElement("w:sz"),e.writeAttributeString("w:val",(2*p.fontSize).toString()),e.writeEndElement(),e.writeStartElement("w:szCs"),e.writeAttributeString("w:val",(2*p.fontSize).toString()),e.writeEndElement(),e.writeStartElement("w:rFonts");var h=p.fontName;this.fontList.set(h,h),e.writeAttributeString("w:ascii",h),e.writeAttributeString("w:hAnsi",h),e.writeAttributeString("w:eastAsia",h),e.writeAttributeString("w:cs",h),e.writeEndElement();var g=p.letterSpacing*p.fontSize*18.8+StiOptions.Export.Word.spaceBetweenCharacters;0!=g&&(e.writeStartElement("w:spacing"),e.writeAttributeString("w:val",g.toString()),e.writeEndElement()),null!=i.cellStyle.textOptions&&i.cellStyle.textOptions.rightToLeft&&(e.writeStartElement("w:rtl"),e.writeEndElement()),e.writeEndElement(),e.writeStartElement("w:t"),e.writeAttributeString("xml:space","preserve"),e.writeString(t.Base.Drawing.StiTextRenderer.prepareStateText(c.text).toString()),e.writeEndElement(),e.writeEndElement()}e.writeEndElement()},k.prototype.writeParagraphBegin=function(t,e,i,r,n){t.writeStartElement("w:p"),t.writeStartElement("w:pPr"),-1!=i?(t.writeStartElement("w:pStyle"),t.writeAttributeString("w:val",String.stiFormat("Style{0}",i)),t.writeEndElement()):this.writeRunProperties(t,e);var o=r[n],a=n+1;while(a<r.count&&"\n"!=r[a].text.toString())o=r[a],a++;var s=StiOptions.Export.Word.lineSpacing*o.ts.lineHeight;this.checkFontsToCorrectHeight(o.ts.fontName)&&(s*=.772),1!=s&&(t.writeStartElement("w:spacing"),t.writeAttributeString("w:line",Math.round(240*s).toString()),t.writeEndElement());var l=null;o.ts.textAlign==T.Center&&(l="center"),o.ts.textAlign==T.Right&&(l="right"),o.ts.textAlign==T.Width&&(l="both"),null!=l&&(t.writeStartElement("w:jc"),t.writeAttributeString("w:val",l),t.writeEndElement()),t.writeEndElement()},k.prototype.writeRunProperties=function(t,e){t.writeStartElement("w:rPr"),t.writeStartElement("w:rFonts");var i=e.cellStyle.font.name;this.fontList.set(i,i),t.writeAttributeString("w:ascii",i),t.writeAttributeString("w:hAnsi",i),t.writeAttributeString("w:eastAsia",i),t.writeAttributeString("w:cs",i),t.writeEndElement(),e.cellStyle.font.bold&&(t.writeStartElement("w:b"),t.writeEndElement()),e.cellStyle.font.italic&&(t.writeStartElement("w:i"),t.writeEndElement()),e.cellStyle.font.underline&&(t.writeStartElement("w:u"),t.writeAttributeString("w:val","single"),t.writeEndElement()),t.writeStartElement("w:color"),t.writeAttributeString("w:val",this.getColorString(e.cellStyle.textColor)),t.writeEndElement(),t.writeStartElement("w:sz"),t.writeAttributeString("w:val",String.stiFormat("{0}",2*e.cellStyle.font.sizeInPoints)),t.writeEndElement(),0!=StiOptions.Export.Word.spaceBetweenCharacters&&(t.writeStartElement("w:spacing"),t.writeAttributeString("w:val",String.stiFormat("{0}",StiOptions.Export.Word.spaceBetweenCharacters)),t.writeEndElement()),null!=e.cellStyle.textOptions&&e.cellStyle.textOptions.rightToLeft&&(e.cellStyle.font.bold&&(t.writeStartElement("w:bCs"),t.writeEndElement()),e.cellStyle.font.italic&&(t.writeStartElement("w:iCs"),t.writeEndElement()),t.writeStartElement("w:szCs"),t.writeAttributeString("w:val",String.stiFormat("{0}",2*e.cellStyle.font.sizeInPoints)),t.writeEndElement(),t.writeStartElement("w:rtl"),t.writeEndElement()),t.writeEndElement()},k.prototype.renderBorder2TableGetValues=function(t,e,i){var r=i.ref,n=p.None,o=new f;return null!=this.matrix.bordersY[t-1][e-1]&&(n|=p.Left),null!=this.matrix.bordersY[t-1][e-1+1]&&(n|=p.Right),null!=this.matrix.bordersX[t-1][e-1]&&(o.append("\\t"+this.getLineStyle2TableGetValues(this.matrix.bordersX[t-1][e-1])),n|=p.Top),null!=this.matrix.bordersX[t-1+1][e-1]&&(o.append("\\b"+this.getLineStyle2TableGetValues(this.matrix.bordersX[t-1+1][e-1])),n|=p.Bottom),r=o.toString(),i.ref=r,n},k.prototype.getLineStyle2TableGetValues=function(t){var e=new f;return e.append(this.getLineStyle(t.style)),e.append(Math.trunc(15*t.size)),e.append(String.stiFormat("c{0}",this.getColorString(t.color))),e.toString()},k.prototype.writeDocument=function(t,e,o){var a=new l,s=new d(n.UTF8,a);s.indentation=this.xmlIndentation<0?0:this.xmlIndentation,s.formatting=this.xmlIndentation<0?r.None:r.Indented,s.writeStartDocument(),s.writeStartElement("w:document"),s.writeAttributeString("xmlns:ve","http://schemas.openxmlformats.org/markup-compatibility/2006"),s.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),s.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),s.writeAttributeString("xmlns:m","http://schemas.openxmlformats.org/officeDocument/2006/math"),s.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),s.writeAttributeString("xmlns:wp","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"),s.writeAttributeString("xmlns:w10","urn:schemas-microsoft-com:office:word"),s.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),s.writeAttributeString("xmlns:wne","http://schemas.microsoft.com/office/word/2006/wordml"),s.writeStartElement("w:body");var u=t;t=null;var p=0,h=0;while(p<u.count){t=new c(e,u),t.cacheMode=e.renderedPages.cacheMode,t.addV2Internal(u.getPageWithoutCache(p));var g=u.getPageWithoutCache(p).excelSheetValue;while(p<u.count-1&&this.compareExcellSheetNames(u.getPageWithoutCache(p+1).excelSheetValue,g)&&u.getPageWithoutCache(p+1).orientation==u.getPageWithoutCache(p).orientation)p++,t.addV2Internal(u.getPageWithoutCache(p));var m=t.getByIndex(0);if(null!=m){if(t.getPage(m),this.usePageHeadersAndFooters){var S=new c(e,e.renderedPages);S.cacheMode=e.renderedPages.cacheMode,S.add(t.getByIndex(0)),this._matrix=new i.StiMatrix(S,StiOptions.Export.Word.divideBigCells,this),this.matrix.scanComponentsPlacement(!1);var f=0,y=0,b=!1;y=this.matrix.coordY.count-1-1;while(y>0&&this.matrix.linePlacement[y]!=i.StiTableLineInfo.PageHeader)y--;if(y>=0&&this.matrix.linePlacement[y]==i.StiTableLineInfo.PageHeader){f=0;while(this.matrix.linePlacement[f]!=i.StiTableLineInfo.PageHeader)f++;b=!0}this.headersData.add(this.writeHeader(f,y,b)),this.imageCache.imagePackedStore.count>0?this.headersRels.add(this.writeHeaderFooterRels()):this.headersRels.add(null);var C=!1;f=0;while(this.matrix.linePlacement[f]!=i.StiTableLineInfo.PageFooter&&f<this.matrix.coordY.count-1-1)f++;if(this.matrix.linePlacement[f]==i.StiTableLineInfo.PageFooter){y=this.matrix.coordY.count-1-1;while(this.matrix.linePlacement[y]!=i.StiTableLineInfo.PageFooter)y--;C=!0}this.footersData.add(this.writeFooter(f,y,C)),this.imageCache.imagePackedStore.count>0?this.footersRels.add(this.writeHeaderFooterRels()):this.footersRels.add(null),this._matrix=new i.StiMatrix(t,StiOptions.Export.Word.divideBigCells,this),this.matrix.scanComponentsPlacement(!0),y=this.matrix.coordY.count-1-1,this.writeFromMatrix(s,0,y,!1)}else this._matrix=new i.StiMatrix(t,StiOptions.Export.Word.divideBigCells,this),this.writeFromMatrix(s,0,this.matrix.coordY.count-1-1,!0);p<u.count-1&&(s.writeStartElement("w:p"),s.writeStartElement("w:pPr"),this.writePageInfo(s,t.getByIndex(0),h),s.writeEndElement(),s.writeEndElement())}p++,h++}return t.count>0&&this.writePageInfo(s,t.getByIndex(0),h-1),s.writeFullEndElement(),s.writeFullEndElement(),s.writeEndDocument(),s.flush(),a},k.prototype.compareExcellSheetNames=function(t,e){var i=t;String.isNullOrEmpty(i)&&(i=String.empty);var r=e;return String.isNullOrEmpty(r)&&(r=String.empty),i==r},k.prototype.writePageInfo=function(e,i,r){var n=this.convertHiToTwips(i.unit.convertToHInches(i.pageHeight*(this.usePageHeadersAndFooters?1:i.segmentPerHeight))),o=this.convertHiToTwips(i.unit.convertToHInches(i.pageWidth*(this.usePageHeadersAndFooters?1:i.segmentPerWidth))),a=this.convertHiToTwips(i.unit.convertToHInches(i.margins.left)),s=this.convertHiToTwips(i.unit.convertToHInches(i.margins.right)),l=this.convertHiToTwips(i.unit.convertToHInches(i.margins.top)),c=this.convertHiToTwips(i.unit.convertToHInches(i.margins.bottom))-StiOptions.Export.Word.bottomMarginCorrection;c<0&&(c=0),o>31500&&(o=31500),n>31500&&(n=31500),e.writeStartElement("w:sectPr"),this.usePageHeadersAndFooters?(e.writeStartElement("w:headerReference"),e.writeAttributeString("w:type","default"),e.writeAttributeString("r:id",String.stiFormat("rIdh{0}",r+1)),e.writeEndElement(),e.writeStartElement("w:footerReference"),e.writeAttributeString("w:type","default"),e.writeAttributeString("r:id",String.stiFormat("rIdf{0}",r+1)),e.writeEndElement()):t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||(e.writeStartElement("w:headerReference"),e.writeAttributeString("w:type","default"),e.writeAttributeString("r:id","rIdh1"),e.writeEndElement()),e.writeStartElement("w:pgSz"),e.writeAttributeString("w:w",String.stiFormat("{0}",o)),e.writeAttributeString("w:h",String.stiFormat("{0}",n)),i.orientation==u.Landscape&&e.writeAttributeString("w:orient","landscape"),e.writeEndElement(),e.writeStartElement("w:pgMar"),e.writeAttributeString("w:top",String.stiFormat("{0}",l)),e.writeAttributeString("w:right",String.stiFormat("{0}",s)),e.writeAttributeString("w:bottom",String.stiFormat("{0}",c)),e.writeAttributeString("w:left",String.stiFormat("{0}",a)),e.writeAttributeString("w:header",String.stiFormat("{0}",l)),e.writeAttributeString("w:footer",String.stiFormat("{0}",c)),e.writeAttributeString("w:gutter","0"),e.writeEndElement(),e.writeEndElement()},k.prototype.writeBorders=function(t,e,i,r,n){for(var o=!0,a=!0,s=0;s<r;s++)null==this.matrix.bordersY[e+s][i]&&(o=!1),null==this.matrix.bordersY[e+s][i+n]&&(a=!1);for(var l=!0,u=!0,s=0;s<n;s++)null==this.matrix.bordersX[e][i+s]&&(l=!1),null==this.matrix.bordersX[e+r][i+s]&&(u=!1);(l||o||u||a)&&(t.writeStartElement("w:tcBorders"),l&&this.writeBorderData(t,"w:top",this.matrix.bordersX[e][i]),o&&this.writeBorderData(t,"w:left",this.matrix.bordersY[e][i]),u&&this.writeBorderData(t,"w:bottom",this.matrix.bordersX[e+r][i]),a&&this.writeBorderData(t,"w:right",this.matrix.bordersY[e][i+n]),t.writeEndElement())},k.prototype.writeBorderData=function(t,e,i){if(null!=i){var r=this.getLineStyle(i.style);r!=String.empty&&(t.writeStartElement(e),t.writeAttributeString("w:val",r),t.writeAttributeString("w:sz",String.stiFormat("{0}",Math.trunc(5*i.size))),t.writeAttributeString("w:space","0"),t.writeAttributeString("w:color",this.getColorString(i.color)),t.writeEndElement())}},k.prototype.writeFootNotes=function(){var t=new l,e=new d(n.UTF8,t);return e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("w:footnotes"),e.writeAttributeString("xmlns:ve","http://schemas.openxmlformats.org/markup-compatibility/2006"),e.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),e.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),e.writeAttributeString("xmlns:m","http://schemas.openxmlformats.org/officeDocument/2006/math"),e.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),e.writeAttributeString("xmlns:wp","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"),e.writeAttributeString("xmlns:w10","urn:schemas-microsoft-com:office:word"),e.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),e.writeAttributeString("xmlns:wne","http://schemas.microsoft.com/office/word/2006/wordml"),e.writeStartElement("w:footnote"),e.writeAttributeString("w:type","separator"),e.writeAttributeString("w:id","0"),e.writeStartElement("w:p"),e.writeStartElement("w:r"),e.writeStartElement("w:separator"),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeFullEndElement(),e.writeStartElement("w:footnote"),e.writeAttributeString("w:type","continuationSeparator"),e.writeAttributeString("w:id","1"),e.writeStartElement("w:p"),e.writeStartElement("w:r"),e.writeStartElement("w:continuationSeparator"),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeFullEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeEndNotes=function(){var t=new l,e=new d(n.UTF8,t);return e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("w:endnotes"),e.writeAttributeString("xmlns:ve","http://schemas.openxmlformats.org/markup-compatibility/2006"),e.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),e.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),e.writeAttributeString("xmlns:m","http://schemas.openxmlformats.org/officeDocument/2006/math"),e.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),e.writeAttributeString("xmlns:wp","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"),e.writeAttributeString("xmlns:w10","urn:schemas-microsoft-com:office:word"),e.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),e.writeAttributeString("xmlns:wne","http://schemas.microsoft.com/office/word/2006/wordml"),e.writeStartElement("w:endnote"),e.writeAttributeString("w:type","separator"),e.writeAttributeString("w:id","0"),e.writeStartElement("w:p"),e.writeStartElement("w:r"),e.writeStartElement("w:separator"),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeFullEndElement(),e.writeStartElement("w:endnote"),e.writeAttributeString("w:type","continuationSeparator"),e.writeAttributeString("w:id","1"),e.writeStartElement("w:p"),e.writeStartElement("w:r"),e.writeStartElement("w:continuationSeparator"),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeFullEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeHeader=function(t,e,i){var o=new l,a=new d(n.UTF8,o);return a.indentation=this.xmlIndentation<0?0:this.xmlIndentation,a.formatting=this.xmlIndentation<0?r.None:r.Indented,a.writeStartDocument(),a.writeStartElement("w:hdr"),a.writeAttributeString("xmlns:ve","http://schemas.openxmlformats.org/markup-compatibility/2006"),a.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),a.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),a.writeAttributeString("xmlns:m","http://schemas.openxmlformats.org/officeDocument/2006/math"),a.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),a.writeAttributeString("xmlns:wp","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"),a.writeAttributeString("xmlns:w10","urn:schemas-microsoft-com:office:word"),a.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),a.writeAttributeString("xmlns:wne","http://schemas.microsoft.com/office/word/2006/wordml"),i?this.writeFromMatrix(a,t,e,!0):(a.writeStartElement("w:p"),a.writeStartElement("w:r"),a.writeStartElement("w:cr"),a.writeEndElement(),a.writeEndElement(),a.writeEndElement()),a.writeFullEndElement(),a.writeEndDocument(),a.flush(),o},k.prototype.writeFooter=function(t,e,i){var o=new l,a=new d(n.UTF8,o);return a.indentation=this.xmlIndentation<0?0:this.xmlIndentation,a.formatting=this.xmlIndentation<0?r.None:r.Indented,a.writeStartDocument(),a.writeStartElement("w:ftr"),a.writeAttributeString("xmlns:ve","http://schemas.openxmlformats.org/markup-compatibility/2006"),a.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),a.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),a.writeAttributeString("xmlns:m","http://schemas.openxmlformats.org/officeDocument/2006/math"),a.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),a.writeAttributeString("xmlns:wp","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"),a.writeAttributeString("xmlns:w10","urn:schemas-microsoft-com:office:word"),a.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),a.writeAttributeString("xmlns:wne","http://schemas.microsoft.com/office/word/2006/wordml"),i?this.writeFromMatrix(a,t,e,!0):(a.writeStartElement("w:p"),a.writeStartElement("w:r"),a.writeStartElement("w:cr"),a.writeEndElement(),a.writeEndElement(),a.writeEndElement()),a.writeFullEndElement(),a.writeEndDocument(),a.flush(),o},k.prototype.writeContentTypes=function(){var e=new l,i=new d(n.UTF8,e);if(i.indentation=this.xmlIndentation<0?0:this.xmlIndentation,i.formatting=this.xmlIndentation<0?r.None:r.Indented,i.writeStartDocument(),i.writeStartElement("Types"),i.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/content-types"),i.writeStartElement("Default"),i.writeAttributeString("Extension","rels"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-package.relationships+xml"),i.writeEndElement(),i.writeStartElement("Default"),i.writeAttributeString("Extension","xml"),i.writeAttributeString("ContentType","application/xml"),i.writeEndElement(),i.writeStartElement("Default"),i.writeAttributeString("Extension","jpeg"),i.writeAttributeString("ContentType","image/jpeg"),i.writeEndElement(),i.writeStartElement("Default"),i.writeAttributeString("Extension","emf"),i.writeAttributeString("ContentType","image/x-emf"),i.writeEndElement(),i.writeStartElement("Default"),i.writeAttributeString("Extension","rtf"),i.writeAttributeString("ContentType","application/rtf"),i.writeEndElement(),i.writeStartElement("Default"),i.writeAttributeString("Extension","png"),i.writeAttributeString("ContentType","image/png"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/docProps/app.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.extended-properties+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/docProps/core.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-package.core-properties+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/document.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/styles.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/settings.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/webSettings.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/fontTable.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"),i.writeEndElement(),this.usePageHeadersAndFooters){i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/footnotes.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/endnotes.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"),i.writeEndElement();for(var o=0;o<this.headersData.count;o++)i.writeStartElement("Override"),i.writeAttributeString("PartName",String.stiFormat("/word/footer{0}.xml",o+1)),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName",String.stiFormat("/word/header{0}.xml",o+1)),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml"),i.writeEndElement()}else t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||(i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/footnotes.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/endnotes.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"),i.writeEndElement(),i.writeStartElement("Override"),i.writeAttributeString("PartName","/word/headerAdditional.xml"),i.writeAttributeString("ContentType","application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml"),i.writeEndElement());return i.writeFullEndElement(),i.writeEndDocument(),i.flush(),e},k.prototype.writeMainRels=function(){var t=new l,e=new d(n.UTF8,t);return e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("Relationships"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/relationships"),e.writeStartElement("Relationship"),e.writeAttributeString("Id","rId1"),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"),e.writeAttributeString("Target","word/document.xml"),e.writeEndElement(),e.writeStartElement("Relationship"),e.writeAttributeString("Id","rId2"),e.writeAttributeString("Type","http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"),e.writeAttributeString("Target","docProps/core.xml"),e.writeEndElement(),e.writeStartElement("Relationship"),e.writeAttributeString("Id","rId3"),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"),e.writeAttributeString("Target","docProps/app.xml"),e.writeEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeDocPropsApp=function(){var t=new l,e=new d(n.UTF8,t);return e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("Properties"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"),e.writeAttributeString("xmlns:vt","http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"),e.writeElementString("Application","Microsoft Office Word"),e.writeElementString("Company",null==this.docCompanyString?"":this.docCompanyString),e.writeElementString("Template","Normal.dotm"),e.writeElementString("TotalTime","0"),e.writeElementString("Pages","1"),e.writeElementString("Words","1"),e.writeElementString("Characters","1"),e.writeElementString("DocSecurity",this.restrictEditing==i.StiWord2007RestrictEditing.No?"0":"8"),e.writeElementString("Lines","1"),e.writeElementString("Paragraphs","1"),e.writeElementString("ScaleCrop","false"),e.writeElementString("LinksUpToDate","false"),e.writeElementString("CharactersWithSpaces","1"),e.writeElementString("SharedDoc","false"),e.writeElementString("HyperlinksChanged","false"),e.writeElementString("AppVersion","12.0000"),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeDocPropsCore=function(){var e=new l,i=new d(n.UTF8,e);i.indentation=this.xmlIndentation<0?0:this.xmlIndentation,i.formatting=this.xmlIndentation<0?r.None:r.Indented,i.writeStartDocument(),i.writeStartElement("cp:coreProperties"),i.writeAttributeString("xmlns:cp","http://schemas.openxmlformats.org/package/2006/metadata/core-properties"),i.writeAttributeString("xmlns:dc","http://purl.org/dc/elements/1.1/"),i.writeAttributeString("xmlns:dcterms","http://purl.org/dc/terms/"),i.writeAttributeString("xmlns:dcmitype","http://purl.org/dc/dcmitype/"),i.writeAttributeString("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");var o=String.stiFormat("{0}",a.now.toString("yyyy-MM-ddTHH:mm:ssZ"));return i.writeElementString("dc:title",null==this.report.reportName?"":this.report.reportName),i.writeElementString("dc:subject",null==this.report.reportAlias?"":this.report.reportAlias),i.writeElementString("dc:creator",null==this.report.reportAuthor?"":this.report.reportAuthor),i.writeElementString("cp:keywords",""),i.writeElementString("dc:description",null==this.report.reportDescription?"":this.report.reportDescription),i.writeElementString("cp:lastModifiedBy",null==this.docLastModifiedString?"":this.docLastModifiedString),i.writeElementString("cp:revision","1"),i.writeStartElement("dcterms:created"),i.writeAttributeString("xsi:type","dcterms:W3CDTF"),i.writeString(o),i.writeEndElement(),i.writeStartElement("dcterms:modified"),i.writeAttributeString("xsi:type","dcterms:W3CDTF"),i.writeString(o),i.writeEndElement(),i.writeElementString("cp:contentStatus",t.StiVersion.platform()),i.writeFullEndElement(),i.writeEndDocument(),i.flush(),e},k.prototype.writeSettings=function(){var t=new l,e=new d(n.UTF8,t);return e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("w:settings"),e.writeAttributeString("xmlns:o","urn:schemas-microsoft-com:office:office"),e.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),e.writeAttributeString("xmlns:m","http://schemas.openxmlformats.org/officeDocument/2006/math"),e.writeAttributeString("xmlns:v","urn:schemas-microsoft-com:vml"),e.writeAttributeString("xmlns:w10","urn:schemas-microsoft-com:office:word"),e.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),e.writeAttributeString("xmlns:sl","http://schemas.openxmlformats.org/schemaLibrary/2006/main"),this.restrictEditing!=i.StiWord2007RestrictEditing.No&&(e.writeStartElement("w:documentProtection"),e.writeAttributeString("w:edit","readOnly"),e.writeAttributeString("w:enforcement","1"),e.writeAttributeString("w:cryptProviderType","rsaFull"),e.writeAttributeString("w:cryptAlgorithmClass","hash"),e.writeAttributeString("w:cryptAlgorithmType","typeAny"),e.writeAttributeString("w:cryptAlgorithmSid","4"),e.writeAttributeString("w:cryptSpinCount","50000"),e.writeAttributeString("w:hash","aw5VYrxGrQVOl7/SJDI9GvbcwaE="),e.writeAttributeString("w:salt","974T1u8C/8p0OAB+3ev3nQ=="),e.writeEndElement()),e.writeStartElement("w:zoom"),e.writeAttributeString("w:percent","100"),e.writeEndElement(),e.writeStartElement("w:proofState"),e.writeAttributeString("w:spelling","clean"),e.writeAttributeString("w:grammar","clean"),e.writeEndElement(),e.writeStartElement("w:defaultTabStop"),e.writeAttributeString("w:val","708"),e.writeEndElement(),e.writeStartElement("w:characterSpacingControl"),e.writeAttributeString("w:val","doNotCompress"),e.writeEndElement(),this.usePageHeadersAndFooters&&(e.writeStartElement("w:footnotePr"),e.writeStartElement("w:footnote"),e.writeAttributeString("w:id","0"),e.writeEndElement(),e.writeStartElement("w:footnote"),e.writeAttributeString("w:id","1"),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("w:endnotePr"),e.writeStartElement("w:endnote"),e.writeAttributeString("w:id","0"),e.writeEndElement(),e.writeStartElement("w:endnote"),e.writeAttributeString("w:id","1"),e.writeEndElement(),e.writeEndElement()),e.writeStartElement("w:compat"),e.writeEndElement(),e.writeStartElement("m:mathPr"),e.writeStartElement("m:mathFont"),e.writeAttributeString("m:val","Cambria Math"),e.writeEndElement(),e.writeStartElement("m:brkBin"),e.writeAttributeString("m:val","before"),e.writeEndElement(),e.writeStartElement("m:brkBinSub"),e.writeAttributeString("m:val","--"),e.writeEndElement(),e.writeStartElement("m:smallFrac"),e.writeAttributeString("m:val","off"),e.writeEndElement(),e.writeStartElement("m:dispDef"),e.writeEndElement(),e.writeStartElement("m:lMargin"),e.writeAttributeString("m:val","0"),e.writeEndElement(),e.writeStartElement("m:rMargin"),e.writeAttributeString("m:val","0"),e.writeEndElement(),e.writeStartElement("m:defJc"),e.writeAttributeString("m:val","centerGroup"),e.writeEndElement(),e.writeStartElement("m:wrapIndent"),e.writeAttributeString("m:val","1440"),e.writeEndElement(),e.writeStartElement("m:intLim"),e.writeAttributeString("m:val","subSup"),e.writeEndElement(),e.writeStartElement("m:naryLim"),e.writeAttributeString("m:val","undOvr"),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("w:themeFontLang"),e.writeAttributeString("w:val","en-EN"),e.writeEndElement(),e.writeStartElement("w:clrSchemeMapping"),e.writeAttributeString("w:bg1","light1"),e.writeAttributeString("w:t1","dark1"),e.writeAttributeString("w:bg2","light2"),e.writeAttributeString("w:t2","dark2"),e.writeAttributeString("w:accent1","accent1"),e.writeAttributeString("w:accent2","accent2"),e.writeAttributeString("w:accent3","accent3"),e.writeAttributeString("w:accent4","accent4"),e.writeAttributeString("w:accent5","accent5"),e.writeAttributeString("w:accent6","accent6"),e.writeAttributeString("w:hyperlink","hyperlink"),e.writeAttributeString("w:followedHyperlink","followedHyperlink"),e.writeEndElement(),e.writeStartElement("w:shapeDefaults"),e.writeStartElement("o:shapedefaults"),e.writeAttributeString("v:ext","edit"),e.writeAttributeString("spidmax","2050"),e.writeEndElement(),e.writeStartElement("o:shapelayout"),e.writeAttributeString("v:ext","edit"),e.writeStartElement("o:idmap"),e.writeAttributeString("v:ext","edit"),e.writeAttributeString("data","1"),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("w:decimalSymbol"),e.writeAttributeString("w:val",","),e.writeEndElement(),e.writeStartElement("w:listSeparator"),e.writeAttributeString("w:val",";"),e.writeEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeWebSettings=function(){var t=new l,e=new d(n.UTF8,t);return e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("w:webSettings"),e.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),e.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),e.writeStartElement("w:optimizeForBrowser"),e.writeEndElement(),e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeFontTable=function(){var t=new l,e=new d(n.UTF8,t);e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("w:fonts"),e.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),e.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),this.fontList.set("Calibri","Calibri"),this.fontList.set("Cambria","Cambria");for(var i=0,o=this.fontList.values;i<o.length;i++){var a=o[i];e.writeStartElement("w:font"),e.writeAttributeString("w:name",a),e.writeFullEndElement()}return e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeDocumentRels=function(){var e=new l,i=new d(n.UTF8,e);i.indentation=this.xmlIndentation<0?0:this.xmlIndentation,i.formatting=this.xmlIndentation<0?r.None:r.Indented,i.writeStartDocument(),i.writeStartElement("Relationships"),i.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/relationships"),i.writeStartElement("Relationship"),i.writeAttributeString("Id","rId1"),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"),i.writeAttributeString("Target","styles.xml"),i.writeEndElement(),i.writeStartElement("Relationship"),i.writeAttributeString("Id","rId2"),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings"),i.writeAttributeString("Target","settings.xml"),i.writeEndElement(),i.writeStartElement("Relationship"),i.writeAttributeString("Id","rId3"),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings"),i.writeAttributeString("Target","webSettings.xml"),i.writeEndElement(),i.writeStartElement("Relationship"),i.writeAttributeString("Id","rId4"),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable"),i.writeAttributeString("Target","fontTable.xml"),i.writeEndElement();for(var o=0;o<this.imageCache.imagePackedStore.count;o++)i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rId{0}",5+o)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"),i.writeAttributeString("Target",String.stiFormat("media/image{0:D5}.jpeg",o+1)),i.writeEndElement();if(this.usePageHeadersAndFooters){i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rId{0}",5+this.imageCache.imagePackedStore.count+0)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"),i.writeAttributeString("Target","footnotes.xml"),i.writeEndElement(),i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rId{0}",5+this.imageCache.imagePackedStore.count+1)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes"),i.writeAttributeString("Target","endnotes.xml"),i.writeEndElement();for(var o=0;o<this.headersData.count;o++)i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rIdh{0}",o+1)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"),i.writeAttributeString("Target",String.stiFormat("header{0}.xml",o+1)),i.writeEndElement(),i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rIdf{0}",o+1)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer"),i.writeAttributeString("Target",String.stiFormat("footer{0}.xml",o+1)),i.writeEndElement()}else t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||(i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rId{0}",5+this.imageCache.imagePackedStore.count+0)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"),i.writeAttributeString("Target","footnotes.xml"),i.writeEndElement(),i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("rId{0}",5+this.imageCache.imagePackedStore.count+1)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes"),i.writeAttributeString("Target","endnotes.xml"),i.writeEndElement(),i.writeStartElement("Relationship"),i.writeAttributeString("Id","rIdh1"),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/header"),i.writeAttributeString("Target","headerAdditional.xml"),i.writeEndElement());if(this.hyperlinkList.count>0)for(var a=0,s=this.hyperlinkList.keys;a<s.length;a++){var u=s[a];i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("hId{0}",Math.trunc(this.hyperlinkList.get(u)))),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"),i.writeAttributeString("Target",u),i.writeAttributeString("TargetMode","External"),i.writeEndElement()}if(this.embedsList.count>0)for(var o=0;o<this.embedsList.count;o++)i.writeStartElement("Relationship"),i.writeAttributeString("Id",String.stiFormat("reId{0}",1+o)),i.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk"),i.writeAttributeString("Target",String.stiFormat("embeddings/richtext{0:D5}.rtf",o+1)),i.writeAttributeString("TargetMode","Internal"),i.writeEndElement();return i.writeFullEndElement(),i.writeEndDocument(),i.flush(),e},k.prototype.writeHeaderFooterRels=function(){var t=new l,e=new d(n.UTF8,t);e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("Relationships"),e.writeAttributeString("xmlns","http://schemas.openxmlformats.org/package/2006/relationships");for(var i=0;i<this.imageCache.imagePackedStore.count;i++)e.writeStartElement("Relationship"),e.writeAttributeString("Id",String.stiFormat("rId{0}",5+i)),e.writeAttributeString("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"),e.writeAttributeString("Target",String.stiFormat("media/image{0:D5}.jpeg",i+1)),e.writeEndElement();return e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeStyles=function(){var t=new l,e=new d(n.UTF8,t);e.indentation=this.xmlIndentation<0?0:this.xmlIndentation,e.formatting=this.xmlIndentation<0?r.None:r.Indented,e.writeStartDocument(),e.writeStartElement("w:styles"),e.writeAttributeString("xmlns:r","http://schemas.openxmlformats.org/officeDocument/2006/relationships"),e.writeAttributeString("xmlns:w","http://schemas.openxmlformats.org/wordprocessingml/2006/main"),e.writeStartElement("w:style"),e.writeAttributeString("w:type","paragraph"),e.writeAttributeString("w:default","1"),e.writeAttributeString("w:styleId","a"),e.writeStartElement("w:name"),e.writeAttributeString("w:val","Normal"),e.writeEndElement(),e.writeStartElement("w:qFormat"),e.writeEndElement(),e.writeStartElement("w:pPr"),e.writeStartElement("w:spacing"),e.writeAttributeString("w:after","0"),e.writeAttributeString("w:line","240"),e.writeAttributeString("w:lineRule","auto"),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("w:rPr"),e.writeStartElement("w:sz"),e.writeAttributeString("w:val",String.stiFormat("{0}",Math.round(2*StiOptions.Export.Word.normalStyleDefaultFontSize))),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("w:style"),e.writeAttributeString("w:type","character"),e.writeAttributeString("w:default","1"),e.writeAttributeString("w:styleId","a0"),e.writeStartElement("w:name"),e.writeAttributeString("w:val","Default Paragraph Font"),e.writeEndElement(),e.writeStartElement("w:uiPriority"),e.writeAttributeString("w:val","1"),e.writeEndElement(),e.writeStartElement("w:semiHidden"),e.writeEndElement(),e.writeStartElement("w:unhideWhenUsed"),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("w:style"),e.writeAttributeString("w:type","table"),e.writeAttributeString("w:default","1"),e.writeAttributeString("w:styleId","a1"),e.writeStartElement("w:name"),e.writeAttributeString("w:val","Normal Table"),e.writeEndElement(),e.writeStartElement("w:uiPriority"),e.writeAttributeString("w:val","99"),e.writeEndElement(),e.writeStartElement("w:semiHidden"),e.writeEndElement(),e.writeStartElement("w:unhideWhenUsed"),e.writeEndElement(),e.writeStartElement("w:qFormat"),e.writeEndElement(),e.writeStartElement("w:tblPr"),e.writeStartElement("w:tblInd"),e.writeAttributeString("w:w","0"),e.writeAttributeString("w:type","dxa"),e.writeEndElement(),e.writeStartElement("w:tblCellMar"),e.writeStartElement("w:top"),e.writeAttributeString("w:w","0"),e.writeAttributeString("w:type","dxa"),e.writeEndElement(),e.writeStartElement("w:left"),e.writeAttributeString("w:w","0"),e.writeAttributeString("w:type","dxa"),e.writeEndElement(),e.writeStartElement("w:bottom"),e.writeAttributeString("w:w","0"),e.writeAttributeString("w:type","dxa"),e.writeEndElement(),e.writeStartElement("w:right"),e.writeAttributeString("w:w","0"),e.writeAttributeString("w:type","dxa"),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeEndElement(),e.writeStartElement("w:style"),e.writeAttributeString("w:type","numbering"),e.writeAttributeString("w:default","1"),e.writeAttributeString("w:styleId","a2"),e.writeStartElement("w:name"),e.writeAttributeString("w:val","No List"),e.writeEndElement(),e.writeStartElement("w:uiPriority"),e.writeAttributeString("w:val","99"),e.writeEndElement(),e.writeStartElement("w:semiHidden"),e.writeEndElement(),e.writeStartElement("w:unhideWhenUsed"),e.writeEndElement(),e.writeEndElement();for(var i=0;i<this.styleList.count;i++){var o=this.styleList[i];e.writeStartElement("w:style"),e.writeAttributeString("w:type","paragraph"),e.writeAttributeString("w:customStyle","1"),e.writeAttributeString("w:styleId",String.stiFormat("Style{0}",i)),e.writeStartElement("w:name"),e.writeAttributeString("w:val",o.name),e.writeEndElement(),e.writeStartElement("w:basedOn"),e.writeAttributeString("w:val","a"),e.writeEndElement(),e.writeStartElement("w:rPr"),e.writeStartElement("w:rFonts"),e.writeAttributeString("w:ascii",o.fontName),e.writeAttributeString("w:hAnsi",o.fontName),e.writeAttributeString("w:cs",o.fontName),e.writeEndElement(),o.bold&&(e.writeStartElement("w:b"),e.writeEndElement()),o.italic&&(e.writeStartElement("w:i"),e.writeEndElement()),o.underline&&(e.writeStartElement("w:u"),e.writeAttributeString("w:val","single"),e.writeEndElement()),e.writeStartElement("w:color"),e.writeAttributeString("w:val",this.getColorString(o.textColor)),e.writeEndElement(),e.writeStartElement("w:sz"),e.writeAttributeString("w:val",String.stiFormat("{0}",o.fontSize)),e.writeEndElement(),0!=StiOptions.Export.Word.spaceBetweenCharacters&&(e.writeStartElement("w:spacing"),e.writeAttributeString("w:val",String.stiFormat("{0}",StiOptions.Export.Word.spaceBetweenCharacters)),e.writeEndElement()),o.rightToLeft&&(o.bold&&(e.writeStartElement("w:bCs"),e.writeEndElement()),o.italic&&(e.writeStartElement("w:iCs"),e.writeEndElement()),e.writeStartElement("w:szCs"),e.writeAttributeString("w:val",String.stiFormat("{0}",o.fontSize)),e.writeEndElement(),e.writeStartElement("w:rtl"),e.writeEndElement()),e.writeEndElement(),e.writeEndElement()}return e.writeFullEndElement(),e.writeEndDocument(),e.flush(),t},k.prototype.writeImage=function(t){var e=new l,i=this.imageCache.imagePackedStore[t];return e.write(i,0,i.length),e},k.prototype.writeAdditionalData=function(e,i){var r=new l,o=null;return o=i?t.System.Convert.fromBase64String(e):n.ASCII.getBytes(e),r.write(o,0,o.length),r},k.prototype.exportWord=function(r,n,o){if(null==o)throw"The 'settings' argument cannot be equal in null.";var a=o.pageRange;this.usePageHeadersAndFooters=o.usePageHeadersAndFooters,this._removeEmptySpaceAtBottom=o.removeEmptySpaceAtBottom,this.imageResolution=o.imageResolution,this.imageQuality=o.imageQuality,this.docCompanyString=o.companyString,this.docLastModifiedString=o.lastModifiedString,this.restrictEditing=o.restrictEditing,this.xmlIndentation=-1,this.imageQuality<0&&(this.imageQuality=0),this.imageQuality>1&&(this.imageQuality=1),this.imageResolution<10&&(this.imageResolution=10),this.imageResolution=this.imageResolution/100,1!=StiOptions.Export.Word.lineSpacing&&(this.lineSpace=Math.round(240*StiOptions.Export.Word.lineSpacing).toString()),StiOptions.Export.Word.restrictEditing>this.restrictEditing&&(this.restrictEditing=StiOptions.Export.Word.restrictEditing),this.report=r;try{this.styleList=[],this.fontList=new w,this.imageCache=new e.StiImageCache(StiOptions.Export.Word.allowImageComparer,!0,e.ImageFormat.Jpeg,this.imageQuality,!1),this.bookmarkList=new w,this.hyperlinkList=new w,this.embedsList=[],this.currentPassNumber=0,this.maximumPassNumber=3+(StiOptions.Export.Word.divideSegmentPages?1:0);var l=a.getSelectedPages(r.renderedPages);if(StiOptions.Export.Word.divideSegmentPages){var u=!0;this.usePageHeadersAndFooters&&l.count>0&&l.getByIndex(0).unlimitedHeight&&1==l.getByIndex(0).segmentPerWidth&&(u=!1),u&&(l=i.StiSegmentPagesDivider.divide(l,this),this.currentPassNumber++)}var c=new s;if(c.begin(n,!0),this.usePageHeadersAndFooters&&(this.headersData=[],this.headersRels=[],this.footersData=[],this.footersRels=[]),c.addFile("word/document.xml",this.writeDocument(l,r,this.usePageHeadersAndFooters),!0),this.usePageHeadersAndFooters)for(var p=0;p<this.headersData.count;p++)c.addFile(String.stiFormat("word/header{0}.xml",p+1),this.headersData[p]),null!=this.headersRels[p]&&c.addFile(String.stiFormat("word/_rels/header{0}.xml.rels",p+1),this.headersRels[p]),c.addFile(String.stiFormat("word/footer{0}.xml",p+1),this.footersData[p]),null!=this.footersRels[p]&&c.addFile(String.stiFormat("word/_rels/footer{0}.xml.rels",p+1),this.footersRels[p]);if(this.usePageHeadersAndFooters&&(c.addFile("word/footnotes.xml",this.writeFootNotes()),c.addFile("word/endnotes.xml",this.writeEndNotes())),c.addFile("[Content_Types].xml",this.writeContentTypes()),c.addFile("_rels/.rels",this.writeMainRels()),c.addFile("docProps/app.xml",this.writeDocPropsApp()),c.addFile("docProps/core.xml",this.writeDocPropsCore()),c.addFile("word/settings.xml",this.writeSettings()),c.addFile("word/webSettings.xml",this.writeWebSettings()),c.addFile("word/fontTable.xml",this.writeFontTable()),c.addFile("word/_rels/document.xml.rels",this.writeDocumentRels()),c.addFile("word/styles.xml",this.writeStyles()),this.imageCache.imagePackedStore.count>0)for(var p=0;p<this.imageCache.imagePackedStore.count;p++)c.addFile(String.stiFormat("word/media/image{0:D5}.jpeg",p+1),this.writeImage(p));t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()||this.usePageHeadersAndFooters||(c.addFile("word/footnotes.xml",this.writeFootNotes()),c.addFile("word/endnotes.xml",this.writeEndNotes()),c.addFile("word/media/imageAdditional.png",this.writeAdditionalData(i.StiExportUtils.additionalData,!0)),c.addFile("word/headerAdditional.xml",this.writeAdditionalData('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<w:hdr xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" '+'xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" '+'xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" '+'xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml"><w:p><w:pPr><w:pStyle w:val="a3"/></w:pPr><w:r><w:rPr><w:noProof/><w:lang w:eastAsia="ru-RU"/></w:rPr><w:pict>'+'<v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"/> <v:formulas>'+'<v:f eqn="if lineDrawn pixelLineWidth 0"/><v:f eqn="sum @0 1 0"/><v:f eqn="sum 0 0 @1"/><v:f eqn="prod @2 1 2"/><v:f eqn="prod @3 21600 pixelWidth"/><v:f eqn="prod @3 21600 pixelHeight"/><v:f eqn="sum @0 0 1"/>'+'<v:f eqn="prod @6 1 2"/><v:f eqn="prod @7 21600 pixelWidth"/><v:f eqn="sum @8 21600 0"/><v:f eqn="prod @7 21600 pixelHeight"/><v:f eqn="sum @10 21600 0"/></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>'+'<o:lock v:ext="edit" aspectratio="t"/></v:shapetype><v:shape id="WordPictureWatermark11777093" o:spid="_x0000_s2050" type="#_x0000_t75" '+'style="position:absolute;margin-left:0;margin-top:0;width:467.45pt;height:433.85pt;z-index:-251657216;mso-position-horizontal:center;mso-position-horizontal-relative:margin;mso-position-vertical:center;mso-position-vertical-relative:margin" '+'o:allowincell="f"><v:imagedata r:id="rId1" o:title="additional"/></v:shape></w:pict></w:r></w:p></w:hdr>',!1)),c.addFile("word/_rels/headerAdditional.xml.rels",this.writeAdditionalData('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/imageAdditional.png" /></Relationships>',!1))),c.end()}finally{null!=this.matrix&&(this.matrix.clear(),this._matrix=null),this.fontList.clear(),this.fontList=null,this.imageCache.clear(),this.imageCache=null,this.styleList.clear(),this.styleList=null,this.bookmarkList.clear(),this.bookmarkList=null,this.hyperlinkList.clear(),this.hyperlinkList=null,this.embedsList.clear(),this.embedsList=null,this.usePageHeadersAndFooters&&(this.headersData.clear(),this.headersData=null,this.headersRels.clear(),this.headersRels=null,this.footersData.clear(),this.footersData=null,this.footersRels.clear(),this.footersRels=null),r.renderedPages.cacheMode&&i.StiMatrix.GCCollect()}},k}(i.StiExportService);i.StiWord2007ExportService=D}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Drawing.Color,n=t.System.IO.MemoryStream,o=t.Report.Components.StiContainer,a=t.Base.Drawing.StiBrush,s=t.Base.Drawing.StiGradientBrush,l=t.Base.Drawing.StiGlareBrush,u=t.Base.Drawing.StiHatchBrush,c=t.Base.Drawing.StiGlassBrush,p=t.System.Collections.Hashtable,h=t.System.Text.StringBuilder,g=t.Report.Components.StiText,m=t.Report.Components.StiShape,d=t.Report.Components.StiRectanglePrimitive,S=t.Report.Components.IStiFont,f=t.Report.Components.IStiBrush,y=t.Report.Components.IStiTextBrush,b=t.Report.Components.IStiTextOptions,C=t.Report.Components.IStiBorder,v=t.System.Xml.XmlTextWriter,I=t.System.DateTime,A=t.Report.Chart.IStiChart,w=t.Report.Components.StiImage,T=t.System.Drawing.Rectangle,B=t.Base.Drawing.StiHorAlignment,R=t.Base.Drawing.StiVertAlignment,P=t.Report.Components.IStiExportImageExtended,F=t.Report.Components.StiCheckBox,x=t.Report.BarCodes.StiBarCode,D=t.Report.Components.IStiTextHorAlignment,k=function(){function t(t){this.X=0,this.Y=0,this.Width=0,this.Height=0,this.Component=null,this.service=null,this.service=t}return Object.defineProperty(t.prototype,"Right",{get:function(){return this.X+this.Width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Top",{get:function(){return this.Y+this.Height},enumerable:!0,configurable:!0}),t}();i.StiPdfData=k;var E=function(){function t(){}return t}(),G=function(){function t(){}return t}(),_=function(){function t(){}return t}();i.StiEditableObject=_;var L=function(L){function N(){var t=null!==L&&L.apply(this,arguments)||this;return t.imageQuality=.75,t.imageResolutionMain=1,t.imageResolutionMode=i.StiImageResolutionMode.Auto,t.sw=null,t.pageStream=null,t.imageList=null,t.imageCache=null,t.imageInterpolationTable=null,t.imageCacheIndexToList=null,t.imageInfoList=null,t.imageInfoCounter=0,t.colorTable=Array.create(String,256),t.alphaTable=Array.create(Boolean,256),t.pdfFont=null,t.bidi=null,t.standardPdfFonts=!0,t.embeddedFonts=!1,t.useUnicodeMode=!1,t.reduceFontSize=!0,t.compressed=!1,t.compressedFonts=!1,t.encrypted=!1,t.usePdfA=!1,t.pdfComplianceMode=i.StiPdfComplianceMode.None,t.exportRtfTextAsImage=!1,t.autoPrint=i.StiPdfAutoPrintMode.None,t.imageCompressionMethod=i.StiPdfImageCompressionMethod.Jpeg,t.imageFormat=i.StiImageFormat.Color,t.monochromeDitheringType=i.StiMonochromeDitheringType.FloydSteinberg,t.allowEditable=i.StiPdfAllowEditable.No,t.fontGlyphsReduceNotNeed=null,t.shadingArray=null,t.hatchArray=null,t.haveBookmarks=!1,t.haveLinks=!1,t.haveAnnots=!1,t.haveTooltips=!1,t.CodePage1252part80AF=[8364,8226,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,8226,381,8226,8226,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,8226,382,376],t.CodePage1252=Array.create(Number,256),t.hiToTwips=.72,t.precision_digits_font=3,t.pdfCKT=.55228,t.IDValue=null,t.IDValueString="",t.IDValueStringMeta="",t.currentDateTime="",t.currentDateTimeMeta="",t.producerName="Stimulsoft Reports",t.creatorName="",t.keywords="",t.keyLength=i.StiPdfEncryptionKeyLength.Bit40,t.lastColorStrokeA=255,t.lastColorNonStrokeA=255,t.colorStack=null,t.info=null,t.haveDigitalSignature=!1,t.printScaling=!0,t.colorHash1=new p,t.colorHash2=new p,t._gsTable=null,t}return __extends(N,L),Object.defineProperty(N.prototype,"exportFormat",{get:function(){return e.StiExportFormat.Pdf},enumerable:!0,configurable:!0}),N.prototype.exportTo=function(t,e,i){this.exportPdf1(t,e,i)},N.prototype.exportToAsync=function(e,r,n,o){var a=this,s=o.imageCompressionMethod==i.StiPdfImageCompressionMethod.Flate;t.Report.Export.StiExportImageHelper.convertAllImages(r,t.System.Drawing.Imaging.ImageFormat.Jpeg,s).try(function(){a.exportTo(r,n,o),e()})},Object.defineProperty(N.prototype,"multipleFiles",{get:function(){return!1},enumerable:!0,configurable:!0}),N.prototype.stringReplace=function(t,e,i){e=e.replace(N.regexEscape,"\\$1");var r=new RegExp(e,"g");return t.replace(r,i)},N.prototype.getHatchNumber=function(t){if(this.hatchArray.count>0)for(var e=0;e<this.hatchArray.count;e++){var i=this.hatchArray[e];if(t.style==i.style&&t.backColor==i.backColor&&t.foreColor==i.foreColor)return e}return this.hatchArray.add(t),this.hatchArray.count-1},N.prototype.addXref=function(t){var e=this.sw.position;this.xref[t]=e.toString().padLeft(10,"0")+" 00000 n",this.currentObjectNumber=t,this.currentGenerationNumber=0},N.prototype.convertToString=function(e,i){return void 0===i&&(i=3),Math.round(e,i).toString().replaceAll(",",t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},N.convertToEscapeSequence=function(t){var e=[40,41,92,13,10,8,12],i="()\\rnbf",r,n;if(null==t)return"";n=new h;for(var o=0;o<t.length;o++){r=!1;for(var a=0;a<e.length;a++)if(t.charCodeAt(o)==e[a]){n.append("\\"+i[a]),r=!0;break}r||n.append(t.charAt(o))}return n.toString()},N.convertToEscapeSequencePlusTabs=function(t){var e=[40,41,92,13,10,9,8,12],i="()\\rntbf",r,n;if(null==t)return"";n=new h;for(var o=0;o<t.length;o++){r=!1;for(var a=0;a<e.length;a++)if(t.charCodeAt(o)==e[a]){n.append("\\"+i[a]),r=!0;break}r||n.append(t.charAt(o))}return n.toString()},N.prototype.setStrokeColor=function(t){var e=this.colorHash1.get(t);null==e&&(e=String.stiFormat("{0} {1} {2} RG",this.colorTable[t.r],this.colorTable[t.g],this.colorTable[t.b]),this.colorHash1.set(t,e)),this.pageStream.writeLine(e);var i=t.a;i!=this.lastColorStrokeA&&StiOptions.Export.Pdf.allowExtGState&&!this.usePdfA&&(this.pageStream.writeLine(this.gsTable[i][0]),this.lastColorStrokeA=i,this.alphaTable[i]=!0)},N.prototype.setNonStrokeColor=function(t){var e=this.colorHash2.get(t);null==e&&(e=String.stiFormat("{0} {1} {2} rg",this.colorTable[t.r],this.colorTable[t.g],this.colorTable[t.b]),this.colorHash2.set(t,e)),this.pageStream.writeLine(e);var i=t.a;i!=this.lastColorNonStrokeA&&StiOptions.Export.Pdf.allowExtGState&&!this.usePdfA&&(this.pageStream.writeLine(this.gsTable[i][1]),this.lastColorNonStrokeA=i,this.alphaTable[i]=!0)},Object.defineProperty(N.prototype,"gsTable",{get:function(){if(null==this._gsTable){this._gsTable=Array.create(String,256,2);for(var t=0;t<256;t++)this._gsTable[t][0]=String.stiFormat("/GS{0:X2}S gs",t),this._gsTable[t][1]=String.stiFormat("/GS{0:X2}N gs",t)}return this._gsTable},enumerable:!0,configurable:!0}),N.prototype.pushColorToStack=function(){this.colorStack.push(this.lastColorStrokeA),this.colorStack.push(this.lastColorNonStrokeA)},N.prototype.popColorFromStack=function(){this.lastColorNonStrokeA=this.colorStack.pop(),this.lastColorStrokeA=this.colorStack.pop()},N.prototype.storeStringLine=function(t,e,i){void 0===i&&(i=!1);var r=t+this.convertToHexString(e,i);this.storeString(r),this.sw.writeLine()},N.prototype.storeString=function(t){this.sw.writeString(t,!1)},N.prototype.convertToHexString=function(t,e){var i=new h;if(String.isNullOrEmpty(t))this.encrypted||i.append("()");else{for(var r=!1,n=0;n<t.length;n++)t.charCodeAt(n)>127&&(r=!0);if(!this.encrypted)if(1==r){i.append("<FEFF");for(var o=0;o<t.length;o++)i.appendFormat("{0:X4}",t.charCodeAt(o));i.append(">")}else e?i.append("("+N.convertToEscapeSequencePlusTabs(t)+")"):i.append("("+t+")")}return i.toString()},N.prototype.storeMemoryStream2=function(t,e){this.encrypted||(this.sw.writeLine(String.stiFormat(e,t.length)),this.sw.writeLine(">>"),this.sw.writeLine("stream"),t.writeTo(this.sw)),t.close()},N.prototype.storeMemoryStream3=function(t,e){for(var i=new n,r=0;r<t.length;r++)i.writeByte(t[r]);this.storeMemoryStream2(i,e),i.close()},N.prototype.storeMemoryStream4=function(t,e){for(var i=new n,r=0;r<t.length;r++)i.writeByte(t[r]);this.storeMemoryStream2(i,e),i.close()},N.prototype.renderStartDoc=function(t,e){this.sw.writeLine(this.keyLength==i.StiPdfEncryptionKeyLength.Bit256_r5||this.keyLength==i.StiPdfEncryptionKeyLength.Bit256_r6?"%PDF-1.7":"%PDF-1.4"),this.sw.write([37,226,227,207,211],0,5),this.sw.writeLine(),this.addXref(1),this.sw.writeLine("1 0 obj"),this.sw.writeLine("<<"),this.keyLength==i.StiPdfEncryptionKeyLength.Bit256_r5&&this.sw.writeLine("/Extensions<</ADBE<</BaseVersion/1.7/ExtensionLevel 3>>>>"),this.keyLength==i.StiPdfEncryptionKeyLength.Bit256_r6&&this.sw.writeLine("/Extensions<</ADBE<</BaseVersion/1.7/ExtensionLevel 8>>>>"),this.sw.writeLine("/Type /Catalog"),this.sw.writeLine("/Pages {0} 0 R",this.info.pages.ref),this.sw.writeLine("/MarkInfo<</Marked true>>"),this.sw.writeLine("/Metadata {0} 0 R",this.info.metadata.ref),this.sw.writeLine("/OutputIntents {0} 0 R",this.info.outputIntents.ref),this.sw.writeLine("/StructTreeRoot {0} 0 R",this.info.structTreeRoot.ref),this.haveBookmarks?(this.sw.writeLine("/Outlines {0} 0 R",this.info.outlines.ref),this.sw.writeLine("/PageMode /UseOutlines")):this.sw.writeLine("/PageMode /UseNone"),this.printScaling||(this.sw.writeLine("/ViewerPreferences"),this.sw.writeLine("<<"),this.sw.writeLine("/PrintScaling /None"),this.sw.writeLine(">>")),(this.haveAnnots||this.haveDigitalSignature)&&this.sw.writeLine("/AcroForm {0} 0 R",this.info.acroForm.ref),this.autoPrint!=i.StiPdfAutoPrintMode.None&&this.sw.writeLine("/Names <</JavaScript {0} 0 R>>",this.info.embeddedJS.ref),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(2),this.sw.writeLine("2 0 obj"),this.sw.writeLine("<<"),this.storeStringLine("/Producer ",this.producerName,!0),this.storeStringLine("/Creator ",this.creatorName,!0),String.isNullOrEmpty(t.reportAuthor)||this.storeStringLine("/Author ",t.reportAuthor,!0),String.isNullOrEmpty(t.reportAlias)||this.storeStringLine("/Subject ",t.reportAlias,!0),String.isNullOrEmpty(t.reportName)||this.storeStringLine("/Title ",t.reportName,!0),String.isNullOrEmpty(this.keywords)||this.storeStringLine("/Keywords ",this.keywords,!0),this.storeStringLine("/CreationDate ","D:"+this.currentDateTime),this.storeStringLine("/ModDate ","D:"+this.currentDateTime),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(3),this.sw.writeLine("3 0 obj"),this.sw.writeLine("<<"),this.sw.writeLine("/Cs1 [/Pattern /DeviceRGB]"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("");var r=[];r.add("/Resources"),r.add("<<"),r.add("/ProcSet [/PDF /Text /ImageC]"),r.add("/Font"),r.add("<<");for(var n=0;n<this.fontsCounter;n++)r.add(String.stiFormat("/F{0} {1} 0 R",n,this.info.fontList[n].ref));if(r.add(">>"),this.imageCache.imageStore.count>0){r.add("/XObject"),r.add("<<");for(var n=0;n<this.imageCache.imageStore.count;n++)r.add(String.stiFormat("/Image{0} {1} 0 R",n,this.info.xObjectList[n].ref));r.add(">>")}r.add("/Pattern"),r.add("<<"),r.add(String.stiFormat("/P1 {0} 0 R",this.info.patterns.first.ref));for(var o=0;o<this.hatchArray.count;o++)r.add(String.stiFormat("/PH{0} {1} 0 R",1+o,this.info.patterns.hatchItems[o].ref));for(var o=0;o<this.shadingArray.count;o++)r.add(String.stiFormat("/P{0} {1} 0 R",2+o,this.info.patterns.shadingItems[o].ref));r.add(">>"),r.add("/ColorSpace 3 0 R"),StiOptions.Export.Pdf.allowExtGState&&!this.usePdfA&&r.add(String.stiFormat("/ExtGState {0} 0 R",this.info.extGState.ref)),r.add(">>"),this.addXref(this.info.pages.ref),this.sw.writeLine("{0} 0 obj",this.info.pages.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Pages"),this.sw.writeLine("/Kids [");for(var n=0;n<e.count;n++)this.sw.writeLine("{0} 0 R",this.info.pageList[n].ref);if(this.sw.writeLine("]"),this.sw.writeLine("/Count {0}",e.count),StiOptions.Export.Pdf.allowInheritedPageResources)for(var a=0;a<r.count;a++)this.sw.writeLine(r[a]);this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(5),this.sw.writeLine("5 0 obj"),this.sw.writeLine("<<"),this.sw.writeLine("/Type /StructTreeRoot"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("");for(var n=0;n<e.count;n++){this.addXref(this.info.pageList[n].ref),this.sw.writeLine("{0} 0 obj",this.info.pageList[n].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Page"),this.sw.writeLine("/Parent 4 0 R");var s=this.hiToTwips*t.unit.convertToHInches(e.list[n].pageHeight*e.list[n].segmentPerHeight),l=this.hiToTwips*t.unit.convertToHInches(e.list[n].pageWidth*e.list[n].segmentPerWidth);if(s>14400&&(s=14400),l>14400&&(l=14400),this.sw.writeLine("/MediaBox [ 0 0 {0} {1} ]",this.convertToString(l),this.convertToString(s)),!StiOptions.Export.Pdf.allowInheritedPageResources)for(var a=0;a<r.count;a++)this.sw.writeLine(r[a]);if(this.sw.writeLine("/Contents {0} 0 R",this.info.pageList[n].content.ref),this.usePdfA||(this.sw.writeLine("/Group"),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Group"),this.sw.writeLine("/S /Transparency"),this.sw.writeLine("/CS /DeviceRGB"),this.sw.writeLine(">>")),this.haveLinks||this.haveAnnots||this.haveDigitalSignature||this.haveTooltips){if(this.sw.writeLine("/Annots ["),this.haveAnnots){for(var u=0;u<this.annotsCounter;u++){var c=this.annotsArray[u];c.Page==n&&this.sw.writeLine("{0} 0 R ",this.info.acroForm.annots[u].ref)}for(var u=0;u<this.annots2Counter;u++){var c=this.annots2Array[u];if(c.Page==n)for(var p=0;p<this.info.acroForm.checkBoxes[u].items.count;p++)this.sw.writeLine("{0} 0 R ",this.info.acroForm.checkBoxes[u].items[p].ref)}}this.sw.writeLine("]")}this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}},N.prototype.renderEndDoc=function(){var e=this.sw.position;this.sw.writeLine("xref"),this.sw.writeLine("0 {0}",this.xref.count+1),this.sw.writeLine("0000000000 65535 f");for(var r=0;r<this.xref.count;r++)this.sw.writeLine(this.xref[r+1]);this.sw.writeLine("trailer"),this.sw.writeLine("<<"),this.sw.writeLine("/Size {0}",this.xref.count+1),this.sw.writeLine("/Root 1 0 R"),this.sw.writeLine("/Info 2 0 R"),this.encrypted&&this.sw.writeLine("/Encrypt {0} 0 R",this.info.encode.ref),this.sw.writeLine("/ID[<{0}><{0}>]",this.IDValueString),this.sw.writeLine(">>"),this.sw.writeLine("%"+i.StiExportUtils.getReportVersion()),this.sw.writeLine("%"+t.StiVersion.platform()),this.sw.writeLine("startxref"),this.sw.writeLine("{0}",e),this.sw.writeLine("%%EOF")},N.prototype.renderPageHeader=function(t){this.addXref(this.info.pageList[t].content.ref),this.sw.writeLine("{0} 0 obj",this.info.pageList[t].content.ref),this.sw.writeLine("<<"),this.pageStream=new n,this.pageStream.writeLine("2 J")},N.prototype.renderPageFooter=function(e,i){if(!t.Base.Licenses.StiLicenseKeyValidator.isValidOnJS()){var n=i/596*1.4,o=e/840*1.4;n>o?n=o:o=n,this.pageStream.writeLine("q"),this.pushColorToStack(),this.pageStream.writeLine("1 J 1 j 20 w"),this.setStrokeColor(r.fromArgb(64,100,100,100)),this.pageStream.writeLine("{0} 0 0 {1} {2} {3} cm 0.707 0.707 -0.707 0.707 0 0 cm 1 0 0 1 -155 -50 cm",this.convertToString(n),this.convertToString(o),this.convertToString(i/2),this.convertToString(e/2)),this.pageStream.writeLine("40 0 m 40 100 l 0 100 m 80 100 l S"),this.pageStream.writeLine("100 0 m 100 70 l 100 45 m 120 65 l 130 72 l 140 68 l S"),this.pageStream.writeLine("170 0 m 170 70 l 169 100 m 171 100 l S"),this.pageStream.writeLine("215 60 m 222 69 l 232 71 l 255 70 l 265 60 l 265 5 l 270 0 l 265 44 m 220 31 l 212 20 l 212 10 l 225 0 l 235 0 l 250 5 l 265 18 l S"),this.pageStream.writeLine("310 0 m 310 100 l S"),this.pageStream.writeLine("Q"),this.popColorFromStack()}this.pageStream.position<this.pageStream.length&&this.pageStream.setLength(this.pageStream.position),1==this.compressed||this.storeMemoryStream2(this.pageStream,"/Filter [] /Length {0}"),this.sw.writeLine(),this.pageStream.close(),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")},N.prototype.renderFontTable=function(){for(var e=0;e<this.fontsCounter;e++){var r=new h;this.pdfFont.currentFont=e;var o=this.pdfFont.fontList[e];if(this.useUnicodeMode){r=new h(o.Name.replaceAll(" ","#20")),(o.Bold||o.Italic)&&(r.append(","),o.Bold&&r.append("Bold"),o.Italic&&r.append("Italic")),this.embeddedFonts&&r.insert(0,String.stiFormat("SR{0}{1}{2}{3}+",String.fromCharCode(24*Math.random()+65),String.fromCharCode(24*Math.random()+65),String.fromCharCode(24*Math.random()+65),String.fromCharCode(24*Math.random()+65))),this.addXref(this.info.fontList[e].ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Font"),this.sw.writeLine("/Subtype /Type0"),this.sw.writeLine("/BaseFont /{0}",r),this.sw.writeLine("/DescendantFonts [{0} 0 R]",this.info.fontList[e].descendantFont.ref),this.sw.writeLine("/Encoding /Identity-H"),this.sw.writeLine("/ToUnicode {0} 0 R",this.info.fontList[e].toUnicode.ref),this.sw.writeLine("/Name /F{0}",e),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.fontList[e].descendantFont.ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].descendantFont.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Font"),this.sw.writeLine("/Subtype /CIDFontType2"),this.sw.writeLine("/BaseFont /{0}",r),this.sw.writeLine("/CIDSystemInfo"),this.sw.writeLine("<<"),this.storeStringLine("/Registry","Adobe"),this.storeStringLine("/Ordering","Identity"),this.sw.writeLine("/Supplement 0"),this.sw.writeLine(">>"),this.sw.writeLine("/FontDescriptor {0} 0 R",this.info.fontList[e].fontDescriptor.ref),this.usePdfA&&this.sw.writeLine("/CIDToGIDMap /Identity"),this.sw.writeLine("/W [0 [1000]");for(var a=this.pdfFont.GlyphList,s=a.length,l=Array.create(Number,s),u=Array.create(Number,s),c=32;c<s;c++)l[c]=a[c],u[c]=c;for(var p=32;p<l.length-1;p++)for(var g=p+1;g<l.length;g++)if(l[p]>l[g]){var m=l[p];l[p]=l[g],l[g]=m;var d=u[p];u[p]=u[g],u[g]=d}var S=new h,f=32;while(f<this.pdfFont.MappedSymbolsCount){S.append(l[f].toString()+" ["),S.append(this.pdfFont.Widths[u[f]-32].toString()),f++;while(f<this.pdfFont.MappedSymbolsCount&&l[f]-1==l[f-1])S.append(" "+this.pdfFont.Widths[u[f]-32].toString()),f++;while(f<this.pdfFont.MappedSymbolsCount&&l[f]==l[f-1])f++;S.append("]"),this.sw.writeLine("{0}",S),S=new h}null!=this.pdfFont.GlyphWidths&&this.pdfFont.GlyphWidths[65535],this.sw.writeLine("]"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.fontList[e].toUnicode.ref);var y="SR+F"+e.toString();this.sw.writeLine("{0} 0 obj",this.info.fontList[e].toUnicode.ref),this.sw.writeLine("<<");var b=new n;b.writeLine("/CIDInit /ProcSet findresource begin"),b.writeLine("12 dict begin"),b.writeLine("begincmap"),b.writeLine("/CIDSystemInfo"),b.writeLine("<<"),b.writeLine("/Registry (Adobe)"),b.writeLine("/Ordering ({0})",y),b.writeLine("/Supplement 0"),b.writeLine(">> def"),b.writeLine("/CMapName /{0} def",y),b.writeLine("/CMapType 2 def"),b.writeLine("1 begincodespacerange"),b.writeLine("<0000> <FFFF>"),b.writeLine("endcodespacerange");var C=this.pdfFont.MappedSymbolsCount-32,v=32;while(C>0){var I=C;I>100&&(I=100),b.writeLine("{0} beginbfchar",I);for(var A=0;A<I;A++)b.writeLine("<{0:X4}> <{1:X4}>",this.pdfFont.GlyphList[v],this.pdfFont.UnicodeMapBack[v]),v++;b.writeLine("endbfchar"),C-=I}b.writeLine("endcmap"),b.writeLine("CMapName currentdict /CMap defineresource pop"),b.writeLine("end"),b.writeLine("end"),b.flush();var w=b.toArray();b.close(),1==this.compressed||this.storeMemoryStream4(w,"/Length {0} /Filter [] /Length1 "+w.length.toString()),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.fontList[e].cIDSet.ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].cIDSet.ref),this.sw.writeLine("<<");for(var T=Array.create(Boolean,65536+32),B=0,R=0;R<this.pdfFont.GlyphList.length;R++){var P=this.pdfFont.GlyphList[R];65535!=P&&(T[P]=!0,P>B&&(B=P))}if(null!=this.pdfFont.GlyphWidths&&0!=this.pdfFont.GlyphWidths[65535])for(var R=0;R<65535;R++)this.pdfFont.GlyphWidths[R]>0&&0==this.pdfFont.GlyphBackList[R]&&(T[R]=!0,R>B&&(B=R));var F=Math.trunc(B/8)+1,x=Array.create(Number,F+1),D=0;while(D<F){var k=8*D,E=0;T[k]&&(E|=128),T[k+1]&&(E|=64),T[k+2]&&(E|=32),T[k+3]&&(E|=16),T[k+4]&&(E|=8),T[k+5]&&(E|=4),T[k+6]&&(E|=2),T[k+7]&&(E|=1),x[D]=E,D++}1==this.compressed||this.storeMemoryStream4(x,"/Length {0} /Filter [] /Length1 "+x.length.toString()),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")}else{this.addXref(this.info.fontList[e].ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Font"),1==this.standardPdfFonts?(this.sw.writeLine("/Subtype /Type1"),this.sw.writeLine("/BaseFont /{0}",o.PdfName)):(this.sw.writeLine("/Subtype /TrueType"),r=new h(this.stringReplace(o.Name," ","#20")),1!=o.Bold&&1!=o.Italic||(r.append(","),1==o.Bold&&r.append("Bold"),1==o.Italic&&r.append("Italic")),this.sw.writeLine("/BaseFont /{0}",r),this.sw.writeLine("/FontDescriptor {0} 0 R",this.info.fontList[e].fontDescriptor.ref)),this.sw.writeLine("/Encoding {0} 0 R",this.info.fontList[e].encoding.ref);for(var G=new h(" "),A=32;A<this.pdfFont.MappedSymbolsCount;A++)G.append(this.pdfFont.Widths[A-32].toString()+" ");if(this.sw.writeLine("/FirstChar {0}",32),this.sw.writeLine("/LastChar {0}",this.pdfFont.MappedSymbolsCount-1),this.sw.writeLine("/Widths [{0}]",G),this.sw.writeLine("/Name /F{0}",e),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.fontList[e].encoding.ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].encoding.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Encoding"),this.sw.writeLine("/BaseEncoding /WinAnsiEncoding"),this.pdfFont.MappedSymbolsCount>this.pdfFont.firstMappedSymbol){for(var _=new h(this.pdfFont.firstMappedSymbol.toString()+" "),A=this.pdfFont.firstMappedSymbol;A<this.pdfFont.MappedSymbolsCount;A++)_.append("/"+this.pdfFont.CharPdfNames[A]);this.sw.writeLine("/Differences [{0}]",_)}this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}var L=null;if(this.embeddedFonts){var N=t.Base.StiFontCollection.getBinFont(o.Font.name,o.Font.style);L=null!=N?N.data:null,null==L||L.sti_is(Uint8Array)||(L=null)}if(0==this.standardPdfFonts){this.addXref(this.info.fontList[e].fontDescriptor.ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].fontDescriptor.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /FontDescriptor"),this.sw.writeLine("/FontName /{0}",r),this.sw.writeLine("/Flags 32"),this.sw.writeLine("/Ascent {0}",this.pdfFont.tmASC),this.sw.writeLine("/CapHeight {0}",this.pdfFont.CH),this.sw.writeLine("/Descent {0}",this.pdfFont.tmDESC),this.sw.writeLine("/FontBBox [{0} {1} {2} {3}]",this.pdfFont.LLX,this.pdfFont.LLY,this.pdfFont.URX,this.pdfFont.URY),this.sw.writeLine("/ItalicAngle {0}",this.pdfFont.ItalicAngle),this.sw.writeLine("/StemV {0}",this.pdfFont.StemV),1==this.embeddedFonts&&null!=L&&this.sw.writeLine("/FontFile2 {0} 0 R",this.info.fontList[-1==o.ParentFontNumber?e:o.ParentFontNumber].fontFile2.ref);var O=1==this.useUnicodeMode;this.pdfComplianceMode!=i.StiPdfComplianceMode.A2&&this.pdfComplianceMode!=i.StiPdfComplianceMode.A3||(O=!1),O&&this.sw.writeLine("/CIDSet {0} 0 R",this.info.fontList[e].cIDSet.ref),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}if(this.embeddedFonts)if(null!=L&&L.length>0&&-1==o.ParentFontNumber){if(this.reduceFontSize){var x=this.pdfFont.reduceFontSize(L,o.Name,!this.fontGlyphsReduceNotNeed[e]);null!=x&&(L=x)}this.addXref(this.info.fontList[e].fontFile2.ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].fontFile2.ref),this.sw.writeLine("<<"),1==this.compressedFonts||(L.sti_is(Uint8Array)&&this.storeMemoryStream3(L,"/Length {0} /Filter [] /Length1 "+L.length.toString()),L.sti_is(n)&&this.storeMemoryStream2(L,"/Length {0} /Filter [] /Length1 "+L.length.toString())),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")}else this.addXref(this.info.fontList[e].fontFile2.ref),this.sw.writeLine("{0} 0 obj",this.info.fontList[e].fontFile2.ref),this.sw.writeLine("<< >>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}},N.prototype.renderImageTable=function(){if(this.imageCache.imageStore.count>0)for(var t=0;t<this.imageCache.imageStore.count;t++){var e=this.imageCacheIndexToList.get(t),r=this.imageCache.imagePackedStore[t],o=this.imageCache.imageMaskStore[t],a=e.ImageFormat;this.addXref(this.info.xObjectList[t].ref),this.sw.writeLine("{0} 0 obj",this.info.xObjectList[t].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /XObject"),this.sw.writeLine("/Subtype /Image"),this.sw.writeLine("/ColorSpace /{0}",a==i.StiImageFormat.Monochrome?"DeviceGray":"DeviceRGB"),this.sw.writeLine("/Width {0}",e.Width),this.sw.writeLine("/Height {0}",e.Height),this.sw.writeLine("/BitsPerComponent {0}",a==i.StiImageFormat.Monochrome?"1":"8"),this.imageInterpolationTable.containsKey(t)&&this.sw.writeLine("/Interpolate true"),null!=o&&this.sw.writeLine("/SMask {0} 0 R",this.info.xObjectList[t].mask.ref),this.sw.writeLine("/Name /{0}",e.Name);var s="DCTDecode";this.imageCompressionMethod==i.StiPdfImageCompressionMethod.Flate&&(s="FlateDecode"),null==r&&(r=[56,48,56,48,56,48],s="ASCIIHexDecode");var l="/Length {0} "+String.stiFormat("/Filter [/{0}]",s),u=new n;if(u.write(r,0,r.length),this.storeMemoryStream2(u,l),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine(""),null!=o){this.addXref(this.info.xObjectList[t].mask.ref),this.sw.writeLine("{0} 0 obj",this.info.xObjectList[t].mask.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /XObject"),this.sw.writeLine("/Subtype /Image"),this.sw.writeLine("/ColorSpace /DeviceGray"),this.sw.writeLine("/Matte [ 0 0 0 ]"),this.sw.writeLine("/Width {0}",e.Width),this.sw.writeLine("/Height {0}",e.Height),this.sw.writeLine("/BitsPerComponent 8"),this.imageInterpolationTable.containsKey(t)&&this.sw.writeLine("/Interpolate true");var c="/Length {0} /Filter /FlateDecode",p=new n;p.write(o,0,o.length),this.storeMemoryStream2(p,c),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")}}},N.prototype.renderPatternTable=function(){if(this.addXref(this.info.patterns.resources.ref),this.sw.writeLine("{0} 0 obj",this.info.patterns.resources.ref),this.sw.writeLine("<< /ProcSet [/PDF] >>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.patterns.first.ref),this.sw.writeLine("{0} 0 obj",this.info.patterns.first.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Pattern"),this.sw.writeLine("/PatternType 1"),this.sw.writeLine("/PaintType 1"),this.sw.writeLine("/TilingType 1"),this.sw.writeLine("/BBox [0 0 2 2]"),this.sw.writeLine("/XStep 3"),this.sw.writeLine("/YStep 3"),this.sw.writeLine("/Resources {0} 0 R",this.info.patterns.resources.ref),this.pageStream=new n,this.pageStream.writeLine("1 J 1 j 1 w"),this.pageStream.writeLine("1 0 0 RG"),this.pageStream.writeString("1 1 m 1.1 1.1 l S"),this.storeMemoryStream2(this.pageStream,"/Length {0}"),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.hatchArray.count>0)for(var t=0;t<this.hatchArray.count;t++)this.writeHatchPattern(t);if(this.shadingArray.count>0)for(var e=0;e<this.shadingArray.count;e++)this.writeShadingPattern(e);this.pageStream.close()},N.prototype.writeHatchPattern=function(t){var e=this.hatchArray[t],r=e.style;r>53&&(r=53),this.addXref(this.info.patterns.hatchItems[t].ref),this.sw.writeLine("{0} 0 obj",this.info.patterns.hatchItems[t].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Pattern"),this.sw.writeLine("/PatternType 1"),this.sw.writeLine("/PaintType 1"),this.sw.writeLine("/TilingType 1"),this.sw.writeLine("/BBox [0 0 1 1]"),this.sw.writeLine("/XStep 1"),this.sw.writeLine("/YStep 1"),this.sw.writeLine("/Resources {0} 0 R",this.info.patterns.resources.ref),this.sw.writeLine("/Matrix [5.5 0 0 5.5 0 0]");var o=new n;0!=e.backColor.a&&(o.writeLine("{0} {1} {2} rg",this.colorTable[e.backColor.r],this.colorTable[e.backColor.g],this.colorTable[e.backColor.b]),o.writeLine("0 0 1 1 re f")),o.writeLine("{0} {1} {2} rg",this.colorTable[e.foreColor.r],this.colorTable[e.foreColor.g],this.colorTable[e.foreColor.b]),o.writeLine("BI"),o.writeLine("/W 8"),o.writeLine("/H 8"),o.writeLine("/BPC 1"),o.writeLine("/IM true"),o.writeLine("/D [1 0]"),o.writeLine("/F [/AHx]"),o.writeLine("ID"),o.writeLine(i.StiPdfResources.hatchData[r]+">"),o.writeLine("EI"),o.flush(),this.storeMemoryStream2(o,"/Length {0}"),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")},N.prototype.writeShadingPattern=function(t){var e=this.shadingArray[t],i=1,r=1,o=e.Angle;o<0&&(o+=360),o>=270&&o<360&&(o=360-o,r=-1),o>=180&&o<270&&(o-=180,r=-1,i=-1),o>=90&&o<180&&(o=180-o,i=-1),o=o*Math.PI/180;var a=e.X+e.Width/2,s=e.Y+e.Height/2,l=Math.sqrt(e.Width*e.Width+e.Height*e.Height)/2,u=Math.atan2(e.Height,e.Width),c=Math.PI/2-o+u,p=l*Math.sin(c),h=p*Math.cos(o)*i,g=p*Math.sin(o)*r,m=a-h,d=a+h,S=s+g,f=s-g;this.addXref(this.info.patterns.shadingItems[t].ref),this.sw.writeLine("{0} 0 obj",this.info.patterns.shadingItems[t].ref),this.sw.writeLine("<<"),this.sw.writeLine("/PatternType 2"),this.sw.writeLine("/Shading <<"),this.sw.writeLine("/ColorSpace /DeviceRGB"),this.sw.writeLine("/ShadingType 2"),this.sw.writeLine("/Coords [ {0} {1} {2} {3} ]",this.convertToString(m),this.convertToString(S),this.convertToString(d),this.convertToString(f)),this.sw.writeLine("/Extend [ true true ]"),this.sw.writeLine("/Function {0} 0 R",this.info.patterns.shadingItems[t].function.ref),this.sw.writeLine(">>"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.patterns.shadingItems[t].function.ref),this.sw.writeLine("{0} 0 obj",this.info.patterns.shadingItems[t].function.ref),this.sw.writeLine("<<"),this.sw.writeLine("/FunctionType 0"),this.sw.writeLine("/Size [ 3 ]"),this.sw.writeLine("/Decode [ 0 1 0 1 0 1 ]"),this.sw.writeLine("/Range [ 0 1 0 1 0 1 ]"),this.sw.writeLine("/BitsPerSample 8"),this.sw.writeLine("/Domain [ 0 1 ]"),this.sw.writeLine("/Encode [ 0 {0} ]",e.IsGlare?2:1),this.sw.writeLine("/Order 1");var y=new n;y.writeByte(e.Color1.r),y.writeByte(e.Color1.g),y.writeByte(e.Color1.b),y.writeByte(e.Color2.r),y.writeByte(e.Color2.g),y.writeByte(e.Color2.b),y.writeByte(e.Color1.r),y.writeByte(e.Color1.g),y.writeByte(e.Color1.b),this.storeMemoryStream2(y,"/Length {0}"),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")},N.prototype.renderAnnotTable=function(){if(this.haveAnnots||this.haveDigitalSignature||this.haveTooltips){this.addXref(this.info.acroForm.ref),this.sw.writeLine("{0} 0 obj",this.info.acroForm.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Fields [");for(var e=0;e<this.annotsCounter;e++)this.sw.writeLine("{0} 0 R",this.info.acroForm.annots[e].ref);for(var e=0;e<this.annots2Counter;e++)for(var r=0;r<this.info.acroForm.checkBoxes[e].items.count;r++)this.sw.writeLine("{0} 0 R",this.info.acroForm.checkBoxes[e].items[r].ref);for(var e=0;e<this.unsignedSignaturesCounter;e++)this.sw.writeLine("{0} 0 R",this.info.acroForm.unsignedSignatures[e].ref);this.haveDigitalSignature&&this.sw.writeLine("{0} 0 R",this.info.acroForm.signatures[0].ref);for(var e=0;e<this.tooltipsCounter;e++)this.sw.writeLine("{0} 0 R",this.info.acroForm.tooltips[e].ref);if(this.sw.writeLine("]"),this.sw.writeLine("/DR <<"),this.annotsCounter>0||this.annots2Counter>0){this.sw.writeLine("/Font <<");for(var e=0;e<this.fontsCounter;e++)this.sw.writeLine("/FA{0} {1} 0 R",e,this.info.acroForm.annotFontItems[e].ref);this.sw.writeLine(">>")}if(this.sw.writeLine(">>"),this.haveAnnots&&this.fontsCounter>0&&this.storeStringLine("/DA ","/FA0 0 Tf 0 g"),this.haveDigitalSignature&&this.sw.writeLine("/SigFlags 3"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.haveAnnots){for(var o=new p,e=0;e<this.annotsCounter;e++){var a=this.annotsArray[e],s=String.empty;if(StiOptions.Export.Pdf.useEditableFieldName&&(s=a.Component.name),StiOptions.Export.Pdf.useEditableFieldAlias&&(s=a.Component.alias),StiOptions.Export.Pdf.useEditableFieldTag&&(s=a.Component.tagValue),String.isNullOrEmpty(s)&&(s=String.stiFormat("Field{0}",e)),o.containsKey(s)){var l=2,u=String.empty;while(o.containsKey(s+u))u="_"+l.toString(),l++;s+=u}o.add(s,s),this.addXref(this.info.acroForm.annots[e].ref),this.sw.writeLine("{0} 0 obj",this.info.acroForm.annots[e].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Annot"),this.sw.writeLine("/Subtype /Widget"),this.sw.writeLine("/Rect [{0} {1} {2} {3}]",this.convertToString(a.X),this.convertToString(a.Y),this.convertToString(a.X+a.Width),this.convertToString(a.Y+a.Height)),this.sw.writeLine("/F 4"),this.sw.writeLine("/P {0} 0 R",this.info.pageList[a.Page].ref),this.sw.writeLine("/FT /Tx"),this.sw.writeLine("/BS << /W 0 >>"),this.storeStringLine("/T ",s),this.sw.writeLine("/MK << /TP 2 >>"),this.sw.writeLine("/H /P"),this.sw.writeLine("/AP << /N {0} 0 R >>",this.info.acroForm.annots[e].aP.ref);var c=a.Multiline?4096:0;null!=a.Component.sti_as(g)&&null!=a.Component.sti_as(g).TextOptions&&a.Component.sti_as(g).TextOptions.LineLimit&&(c|=8388608),this.sw.writeLine("/Ff {0}",c),this.storeStringLine("/DA ",String.stiFormat("/FA{0} {1} Tf {2} {3} {4} rg",a.FontNumber,this.convertToString(a.FontSize,this.precision_digits_font),this.colorTable[a.FontColor.r],this.colorTable[a.FontColor.g],this.colorTable[a.FontColor.b])),this.storeStringLine("/V ",a.Text),this.storeStringLine("/DV ",a.Text),this.sw.writeLine("/Q {0}",(a.Alignment==t.Base.Drawing.StiTextHorAlignment.Center?1:0)+(a.Alignment==t.Base.Drawing.StiTextHorAlignment.Right?2:0)),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.acroForm.annots[e].aP.ref),this.sw.writeLine("{0} 0 obj",this.info.acroForm.annots[e].aP.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Subtype /Form"),this.sw.writeLine("/BBox [{0} {1} {2} {3}]",this.convertToString(0),this.convertToString(0),this.convertToString(a.Width),this.convertToString(a.Height)),this.sw.writeLine("/Resources <<"),this.sw.writeLine("/ProcSet [ /PDF /Text ]"),this.sw.writeLine("/Font << /F{0} {1} 0 R >> >>",a.FontNumber,this.info.fontList[a.FontNumber].ref);var m=new n;m.writeLine("/Tx BMC"),m.writeLine("q");var d=1;m.writeLine("{0} {1} {2} {3} re W n",this.convertToString(d),this.convertToString(d),this.convertToString(a.Width-d),this.convertToString(a.Height-d)),m.flush(),m.write(a.Content,0,a.Content.length),m.writeLine("Q"),m.writeLine("EMC"),m.flush(),this.storeMemoryStream2(m,"/Filter [] /Length {0}"),this.sw.writeLine(""),m.close(),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")}for(var S=0;S<this.fontsCounter;S++){this.pdfFont.currentFont=S;var f=this.pdfFont.fontList[S],y=new h(this.stringReplace(f.Name," ","#20"));if((f.Bold||f.Italic)&&(y.append(","),f.Bold&&y.append("Bold"),f.Italic&&y.append("Italic")),this.addXref(this.info.acroForm.annotFontItems[S].ref),this.sw.writeLine("{0} 0 obj",this.info.acroForm.annotFontItems[S].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Font"),this.sw.writeLine("/Subtype /TrueType"),this.sw.writeLine("/Name /FA{0}",S),this.sw.writeLine("/BaseFont /{0}",y),this.sw.writeLine("/Encoding /WinAnsiEncoding"),this.sw.writeLine("/FontDescriptor {0} 0 R",this.info.acroForm.annotFontItems[S].fontDescriptor.ref),this.fontGlyphsReduceNotNeed[S]){for(var b=new h(" "),C=32;C<256;C++)b.append(this.pdfFont.Widths[this.pdfFont.UnicodeMap[this.CodePage1252[C]]-32].toString()+" ");this.sw.writeLine("/FirstChar 32"),this.sw.writeLine("/LastChar 255"),this.sw.writeLine("/Widths [{0}]",b)}this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.acroForm.annotFontItems[S].fontDescriptor.ref),this.sw.writeLine("{0} 0 obj",this.info.acroForm.annotFontItems[S].fontDescriptor.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /FontDescriptor"),this.sw.writeLine("/FontName /{0}",y),this.sw.writeLine("/Flags 32"),this.sw.writeLine("/Ascent {0}",this.pdfFont.tmASC),this.sw.writeLine("/CapHeight {0}",this.pdfFont.CH),this.sw.writeLine("/Descent {0}",-this.pdfFont.tmDESC),this.sw.writeLine("/FontBBox [{0} {1} {2} {3}]",-500,-200,1500,1e3),this.sw.writeLine("/ItalicAngle {0}",this.pdfFont.ItalicAngle),this.sw.writeLine("/StemV {0}",this.pdfFont.StemV),1==this.embeddedFonts&&this.sw.writeLine("/FontFile2 {0} 0 R",this.info.fontList[S].fontFile2.ref),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}for(var e=0;e<this.annots2Counter;e++){var a=this.annots2Array[e],s=String.empty;if(StiOptions.Export.Pdf.useEditableFieldName&&(s=a.Component.name),StiOptions.Export.Pdf.useEditableFieldAlias&&(s=a.Component.alias),StiOptions.Export.Pdf.useEditableFieldTag&&(s=a.Component.tagValue),String.isNullOrEmpty(s)&&(s=String.stiFormat("Checkbox{0}",e+1)),o.containsKey(s)){var l=2,u=String.empty;while(o.containsKey(s+u))u="_"+l.toString(),l++;s+=u}o.add(s,s);var v=.01,I=a.Component.sti_as(F),A=i.StiPdfRenderPrimitives.getCheckBoxValue(I);if(null==A&&(A=!1),this.info.acroForm.checkBoxes[e].items.count>1){var w=this.info.acroForm.checkBoxes[e].items[0];this.addXref(w.ref),this.sw.writeLine("{0} 0 obj",w.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Annot"),this.sw.writeLine("/Subtype /Widget"),this.sw.writeLine("/FT /Btn"),this.sw.writeLine("/Rect [{0} {1} {2} {3}]",this.convertToString(a.X),this.convertToString(a.Y),this.convertToString(a.X+a.Width-v),this.convertToString(a.Y+a.Height-v)),this.sw.writeLine("/F {0}",4+(3==this.info.acroForm.checkBoxes[e].items.count||0==A?2:0)),this.sw.writeLine("/P {0} 0 R",this.info.pageList[a.Page].ref),this.storeStringLine("/T ",s+"Yes"),this.sw.writeLine("/MK << >>"),this.sw.writeLine("/Ff 65536"),this.sw.writeLine("/A {0} 0 R",w.aA[0].ref),this.sw.writeLine("/AP << /N {0} 0 R >>",w.aP.ref),this.sw.writeLine("/H /O"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aP.ref),this.sw.writeLine("{0} 0 obj",w.aP.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /XObject"),this.sw.writeLine("/Subtype /Form"),this.sw.writeLine("/FormType 1"),this.sw.writeLine("/BBox [{0} {1} {2} {3}]",this.convertToString(0),this.convertToString(0),this.convertToString(a.Width),this.convertToString(a.Height)),this.sw.writeLine("/Matrix [ 1 0 0 1 0 0 ]"),this.sw.writeLine("/Resources <<"),this.sw.writeLine("/ProcSet [ /PDF ]"),this.sw.writeLine("/Pattern"),this.sw.writeLine("<<");for(var T=0;T<this.hatchArray.count;T++)this.sw.writeLine(String.stiFormat("/PH{0} {1} 0 R",1+T,this.info.patterns.hatchItems[T].ref));for(var T=0;T<this.shadingArray.count;T++)this.sw.writeLine(String.stiFormat("/P{0} {1} 0 R",2+T,this.info.patterns.shadingItems[T].ref));this.sw.writeLine(">>"),this.sw.writeLine("/ColorSpace 3 0 R"),this.sw.writeLine(">>");var m=new n;m.writeLine("/Tx BMC"),m.writeLine("q");var d=1;m.writeLine("{0} {1} {2} {3} re W n",this.convertToString(d),this.convertToString(d),this.convertToString(a.Width-d),this.convertToString(a.Height-d)),m.flush(),m.write(a.Content,0,a.Content.length),m.writeLine("Q"),m.writeLine("EMC"),m.flush(),this.storeMemoryStream2(m,"/Filter [] /Length {0}"),this.sw.writeLine(""),m.close(),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aA[0].ref),this.sw.writeLine("{0} 0 obj",w.aA[0].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Next {0} 0 R",w.aA[1].ref),this.sw.writeLine("/S /Hide"),this.sw.writeLine("/T ({0})",s+"Yes"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aA[1].ref),this.sw.writeLine("{0} 0 obj",w.aA[1].ref),this.sw.writeLine("<<"),this.sw.writeLine("/H false"),this.sw.writeLine("/S /Hide"),this.sw.writeLine("/T ({0})",s+"No"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),w=this.info.acroForm.checkBoxes[e].items[1],this.addXref(w.ref),this.sw.writeLine("{0} 0 obj",w.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Annot"),this.sw.writeLine("/Subtype /Widget"),this.sw.writeLine("/FT /Btn"),this.sw.writeLine("/Rect [{0} {1} {2} {3}]",this.convertToString(a.X),this.convertToString(a.Y),this.convertToString(a.X+a.Width-v),this.convertToString(a.Y+a.Height-v)),this.sw.writeLine("/F {0}",4+(3==this.info.acroForm.checkBoxes[e].items.count||1==A?2:0)),this.sw.writeLine("/P {0} 0 R",this.info.pageList[a.Page].ref),this.storeStringLine("/T ",s+"No"),this.sw.writeLine("/MK << >>"),this.sw.writeLine("/Ff 65536"),this.sw.writeLine("/A {0} 0 R",w.aA[0].ref),this.sw.writeLine("/AP << /N {0} 0 R >>",w.aP.ref),this.sw.writeLine("/H /O"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aP.ref),this.sw.writeLine("{0} 0 obj",w.aP.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /XObject"),this.sw.writeLine("/Subtype /Form"),this.sw.writeLine("/FormType 1"),this.sw.writeLine("/BBox [{0} {1} {2} {3}]",this.convertToString(0),this.convertToString(0),this.convertToString(a.Width),this.convertToString(a.Height)),this.sw.writeLine("/Matrix [ 1 0 0 1 0 0 ]"),this.sw.writeLine("/Resources <<"),this.sw.writeLine("/ProcSet [ /PDF ]"),this.sw.writeLine("/Pattern"),this.sw.writeLine("<<");for(var T=0;T<this.hatchArray.count;T++)this.sw.writeLine(String.stiFormat("/PH{0} {1} 0 R",1+T,this.info.patterns.hatchItems[T].ref));for(var T=0;T<this.shadingArray.count;T++)this.sw.writeLine(String.stiFormat("/P{0} {1} 0 R",2+T,this.info.patterns.shadingItems[T].ref));this.sw.writeLine(">>"),this.sw.writeLine("/ColorSpace 3 0 R"),this.sw.writeLine(">>"),m=new n,m.writeLine("/Tx BMC"),m.writeLine("q"),d=1,m.writeLine("{0} {1} {2} {3} re W n",this.convertToString(d),this.convertToString(d),this.convertToString(a.Width-d),this.convertToString(a.Height-d)),m.flush(),m.write(a.Content2,0,a.Content2.length),m.writeLine("Q"),m.writeLine("EMC"),m.flush(),this.storeMemoryStream2(m,"/Filter [] /Length {0}"),this.sw.writeLine(""),m.close(),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aA[0].ref),this.sw.writeLine("{0} 0 obj",w.aA[0].ref),this.sw.writeLine("<<"),this.sw.writeLine("/H false"),this.sw.writeLine("/Next {0} 0 R",w.aA[1].ref),this.sw.writeLine("/S /Hide"),this.sw.writeLine("/T ({0})",s+"Yes"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aA[1].ref),this.sw.writeLine("{0} 0 obj",w.aA[1].ref),this.sw.writeLine("<<"),this.sw.writeLine("/S /Hide"),this.sw.writeLine("/T ({0})",s+"No"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}if(3==this.info.acroForm.checkBoxes[e].items.count){var w=this.info.acroForm.checkBoxes[e].items[2];this.addXref(w.ref),this.sw.writeLine("{0} 0 obj",w.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Annot"),this.sw.writeLine("/Subtype /Widget"),this.sw.writeLine("/FT /Btn"),this.sw.writeLine("/Rect [{0} {1} {2} {3}]",this.convertToString(a.X),this.convertToString(a.Y),this.convertToString(a.X+a.Width-v),this.convertToString(a.Y+a.Height-v)),this.sw.writeLine("/F 4"),this.sw.writeLine("/P {0} 0 R",this.info.pageList[a.Page].ref),this.storeStringLine("/T ",s+"None"),this.sw.writeLine("/MK << >>"),this.sw.writeLine("/Ff 65536"),this.sw.writeLine("/A {0} 0 R",w.aA[0].ref),this.sw.writeLine("/H /O"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aA[0].ref),this.sw.writeLine("{0} 0 obj",w.aA[0].ref),this.sw.writeLine("<<"),this.sw.writeLine("/Next {0} 0 R",w.aA[1].ref),this.sw.writeLine("/S /Hide"),this.sw.writeLine("/T ({0})",s+"None"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(w.aA[1].ref),this.sw.writeLine("{0} 0 obj",w.aA[1].ref),this.sw.writeLine("<<"),this.sw.writeLine("/H false"),this.sw.writeLine("/S /Hide"),this.sw.writeLine("/T ({0})",s+(I.checkStyleForTrue==t.Report.Components.StiCheckStyle.None?"No":"Yes")),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}}for(var e=0;e<this.unsignedSignaturesCounter;e++){var a=this.unsignedSignaturesArray[e],s=String.empty;if(StiOptions.Export.Pdf.useEditableFieldName&&(s=a.Component.name),StiOptions.Export.Pdf.useEditableFieldAlias&&(s=a.Component.alias),StiOptions.Export.Pdf.useEditableFieldTag&&(s=a.Component.tagValue),String.isNullOrEmpty(s)&&(s=String.stiFormat("UnsignedSignature{0}",e)),o.containsKey(s)){var l=2,u=String.empty;while(o.containsKey(s+u))u="_"+l.toString(),l++;s+=u}o.add(s,s);var B=this.info.acroForm.unsignedSignatures[e].ref;this.addXref(B),this.sw.writeLine("{0} 0 obj",B),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Annot"),this.sw.writeLine("/Subtype /Widget"),this.sw.writeLine("/Rect [{0} {1} {2} {3}]",this.convertToString(a.X),this.convertToString(a.Y),this.convertToString(a.X+a.Width),this.convertToString(a.Y+a.Height)),this.sw.writeLine("/F 4"),this.sw.writeLine("/P {0} 0 R",this.info.pageList[a.Page].ref),this.sw.writeLine("/FT /Sig"),this.storeStringLine("/T ",s),this.sw.writeLine("/MK << >>"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")}}}},N.prototype.renderExtGStateRecord=function(){this.addXref(this.info.extGState.ref),this.sw.writeLine("{0} 0 obj",this.info.extGState.ref),this.sw.writeLine("<<");for(var t=0;t<256;t++)if(this.alphaTable[t]){var e=String.stiFormat("{0:X2}",t).toUpper();this.sw.writeLine("/GS{0}S <</Type /ExtGState /BM /Normal /CA {1}>>",e,this.colorTable[t]),this.sw.writeLine("/GS{0}N <</Type /ExtGState /BM /Normal /ca {1}>>",e,this.colorTable[t])}this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine("")},N.prototype.storeImageData=function(t,e,i,r){var n=this.imageCache.addImageInt(t),o=new E;return o.Width=t.width,o.Height=t.height,o.Name=String.stiFormat("Image{0}",n),o.ImageFormat=this.imageFormat,this.imageList.add(o),this.imageCacheIndexToList.set(n,o),r&&this.imageInterpolationTable.set(n,!0),e},N.prototype.writeImageInfo=function(t,e){var n=this.imageList[this.imagesCurrent];this.imagesCurrent++;var o=t.Component.sti_as(w);if(this.imageResolutionMode!=i.StiImageResolutionMode.Exactly&&null!=o&&!o.margins.isEmpty){var a=this.hiToTwips*o.margins.left,s=this.hiToTwips*o.margins.right,l=this.hiToTwips*o.margins.top,u=this.hiToTwips*o.margins.bottom;0!=a&&(t.X+=a,t.Width-=a),0!=u&&(t.Y+=u,t.Height-=u),0!=s&&(t.Width-=s),0!=l&&(t.Height-=l)}var c=t.X,p=t.Y,h=this.hiToTwips*(n.Width-1)/e,g=this.hiToTwips*(n.Height-1)/e,m=!1;if(this.imageResolutionMode!=i.StiImageResolutionMode.Exactly&&null!=o&&null!=o.imageToDraw){var d=o.imageToDraw,S=o.getPaintRectangle(!0,!1);S=o.convertImageMargins(S,!1);var f=new T(0,0,S.width,S.height);if(o.stretch){var y=d.width,b=d.height;if(o.aspectRatio){var C=f.width/y,v=f.height/b;switch(C>v?f.width=y*v:f.height=b*C,o.vertAlignment){case R.Center:f.y=(S.height-f.height)/2;break;case R.Top:f.y=S.height-f.height;break}switch(o.horAlignment){case B.Center:f.x=(S.width-f.width)/2;break;case B.Right:f.x=S.width-f.width;break}c+=f.x*this.hiToTwips,p+=f.y*this.hiToTwips,h=f.width*this.hiToTwips,g=f.height*this.hiToTwips}else h=t.Width,g=t.Height}else{var y=d.width*o.multipleFactor,b=d.height*o.multipleFactor;switch(f.width=y,f.height=b,o.horAlignment){case B.Center:f.x=(S.width-y)/2;break;case B.Right:f.x=S.width-y;break}switch(o.vertAlignment){case R.Center:f.y=(S.height-b)/2;break;case R.Top:f.y=S.height-b;break}c+=f.x*this.hiToTwips,p+=f.y*this.hiToTwips,h=f.width*this.hiToTwips,g=f.height*this.hiToTwips,m=!0}}this.pageStream.writeLine("q"),this.pushColorToStack(),this.setNonStrokeColor(r.black),m&&this.pageStream.writeLine("{0} {1} {2} {3} re W n",this.convertToString(t.X),this.convertToString(t.Y),this.convertToString(t.Width),this.convertToString(t.Height)),this.pageStream.writeLine("{0} 0 0 {1} {2} {3} cm",this.convertToString(h),this.convertToString(g),this.convertToString(c),this.convertToString(p)),this.pageStream.writeLine("/{0} Do",n.Name),this.pageStream.writeLine("Q"),this.popColorFromStack()},N.prototype.renderImage=function(t,i){if(this.imageInfoList.containsKey(this.imageInfoCounter)){var r=this.imageInfoList.get(this.imageInfoCounter);this.writeImageInfo(t,r)}else{var n=t.Component.sti_as(P);if(null!=n&&t.Component.isExportAsImage(e.StiExportFormat.Pdf)){var r=i,o={ref:r},a=n.getImage(o,e.StiExportFormat.Pdf);r=o.ref,null!=a&&null!=a.bytes&&this.writeImageInfo(t,r)}}},N.prototype.renderWatermark=function(e,n,o,a,s){var l=e.watermark;if(null!=l&&l.enabled){if(null!=l.image&&l.showImageBehind==n){var u=this.imageList[this.imagesCurrent],c=u.Width*this.hiToTwips*l.imageMultipleFactor,p=u.Height*this.hiToTwips*l.imageMultipleFactor,h=0,m=0,d=1,S=1,f=l.imageAlignment,y=l.imageTiling;if(l.imageStretch){var b=p/c;c=o,p=a,y=!1,l.aspectRatio&&(a/o>b?p=c*b:c=p/b)}switch((l.imageStretch||l.imageMultipleFactor>1)&&this.imageInterpolationTable.set(this.imageCache.imageIndex[this.imagesCurrent],!0),y&&(f=t.System.Drawing.ContentAlignment.TopLeft,d=Math.round(o/c)+1,S=Math.round(a/p)+1),f){case t.System.Drawing.ContentAlignment.TopCenter:case t.System.Drawing.ContentAlignment.MiddleCenter:case t.System.Drawing.ContentAlignment.BottomCenter:h=(o-c)/2;break;case t.System.Drawing.ContentAlignment.TopRight:case t.System.Drawing.ContentAlignment.MiddleRight:case t.System.Drawing.ContentAlignment.BottomRight:h=o-c;break}switch(f){case t.System.Drawing.ContentAlignment.TopLeft:case t.System.Drawing.ContentAlignment.TopCenter:case t.System.Drawing.ContentAlignment.TopRight:m=a-p;break;case t.System.Drawing.ContentAlignment.MiddleLeft:case t.System.Drawing.ContentAlignment.MiddleCenter:case t.System.Drawing.ContentAlignment.MiddleRight:m=(a-p)/2;break}this.setNonStrokeColor(r.fromArgb(255-l.imageTransparency,r.black));for(var C=0;C<S;C++)for(var v=0;v<d;v++)this.pageStream.writeLine("q"),this.pushColorToStack(),this.pageStream.writeLine("{0} 0 0 {1} {2} {3} cm",this.convertToString(c),this.convertToString(p),this.convertToString(h+c*v),this.convertToString(m-p*C)),this.pageStream.writeLine("/{0} Do",u.Name),this.pageStream.writeLine("Q"),this.popColorFromStack();this.imagesCurrent++}if(!String.isNullOrEmpty(l.text)&&l.showBehind==n){var I=new k(this);I.X=0,I.Y=0,I.Width=o,I.Height=a;var A=new g(new T(I.X,I.Y,I.Width,I.Height));A.text=l.text,A.textBrush=l.textBrush,A.font=l.font,A.textOptions=new t.Base.Drawing.StiTextOptions,A.textOptions.angle=l.angle,A.horAlignment=t.Base.Drawing.StiTextHorAlignment.Center,A.vertAlignment=R.Center,A.page=e,A.textQuality=t.Report.Components.StiTextQuality.Standard,I.Component=A,i.StiPdfRenderText.renderTextFont(I),i.StiPdfRenderText.renderText(I)}}},N.prototype.storeShadingData1=function(t,e){if(null!=t){if(t.sti_is(s)){var i=t.sti_as(s),r=new G;r.Angle=i.angle,r.Color1=i.startColor,r.Color2=i.endColor,r.Page=e,this.shadingArray.add(r)}if(t.sti_is(l)){var i=t.sti_as(l),r=new G;r.Angle=i.angle,r.Color1=i.startColor,r.Color2=i.endColor,r.IsGlare=!0,r.Page=e,this.shadingArray.add(r)}}},N.prototype.storeShadingData2=function(t,e,i,r,n){if(null!=n&&(n.sti_is(s)||n.sti_is(l))){var o=this.shadingArray[this.shadingCurrent];o.X=t,o.Y=e,o.Width=i,o.Height=r,this.shadingArray[this.shadingCurrent]=o,this.shadingCurrent++}return this.shadingCurrent},N.prototype.storeHatchData=function(t){if(null!=t&&(t.sti_is(u)&&this.getHatchNumber(t.sti_as(u)),t.sti_is(c))){t.sti_as(c).drawHatch}},N.prototype.renderMetadata=function(e){var r=new n;r.writeString('<?xpacket begin="ï»¿" id="W5M0MpCehiHzreSzNTczkc9d"?>\r\n');var o=new n,a=new v(t.System.Text.Encoding.UTF8,o);if(a.formatting=t.System.Xml.Formatting.Indented,a.writeStartElement("x:xmpmeta"),a.writeAttributeString("xmlns:x","adobe:ns:meta/"),a.writeAttributeString("x:xmptk","Adobe XMP Core 4.0-c316 44.253921, Sun Oct 01 2006 17:14:39"),a.writeStartElement("rdf:RDF"),a.writeAttributeString("xmlns:rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"),a.writeStartElement("rdf:Description"),a.writeAttributeString("rdf:about",""),a.writeAttributeString("xmlns:xap","http://ns.adobe.com/xap/1.0/"),a.writeElementString("xap:ModifyDate",this.currentDateTimeMeta),a.writeElementString("xap:CreateDate",this.currentDateTimeMeta),a.writeElementString("xap:MetadataDate",this.currentDateTimeMeta),a.writeElementString("xap:CreatorTool",StiOptions.Export.Pdf.creatorString),a.writeFullEndElement(),a.writeStartElement("rdf:Description"),a.writeAttributeString("rdf:about",""),a.writeAttributeString("xmlns:dc","http://purl.org/dc/elements/1.1/"),a.writeElementString("dc:format","application/pdf"),a.writeStartElement("dc:title"),a.writeStartElement("rdf:Alt"),String.isNullOrEmpty(e.reportName)||(a.writeStartElement("rdf:li"),a.writeAttributeString("xml:lang","x-default"),a.writeString(e.reportName),a.writeFullEndElement()),a.writeEndElement(),a.writeFullEndElement(),a.writeStartElement("dc:description"),a.writeStartElement("rdf:Alt"),String.isNullOrEmpty(e.reportAlias)||(a.writeStartElement("rdf:li"),a.writeAttributeString("xml:lang","x-default"),a.writeString(e.reportAlias),a.writeFullEndElement()),a.writeEndElement(),a.writeFullEndElement(),a.writeStartElement("dc:creator"),a.writeStartElement("rdf:Seq"),String.isNullOrEmpty(e.reportAuthor)||(a.writeStartElement("rdf:li"),a.writeAttributeString("xml:lang","x-default"),a.writeString(e.reportAuthor),a.writeFullEndElement()),a.writeEndElement(),a.writeFullEndElement(),a.writeStartElement("dc:subject"),a.writeStartElement("rdf:Bag"),!String.isNullOrEmpty(this.keywords))for(var s=this.keywords.split(";"),l=0,u=s;l<u.length;l++){var c=u[l];a.writeStartElement("rdf:li"),a.writeString(c.trim()),a.writeFullEndElement()}if(a.writeEndElement(),a.writeFullEndElement(),a.writeFullEndElement(),a.writeStartElement("rdf:Description"),a.writeAttributeString("rdf:about",""),a.writeAttributeString("xmlns:xapMM","http://ns.adobe.com/xap/1.0/mm/"),a.writeElementString("xapMM:DocumentID",this.IDValueStringMeta),a.writeElementString("xapMM:InstanceID",this.IDValueStringMeta),a.writeFullEndElement(),a.writeStartElement("rdf:Description"),a.writeAttributeString("rdf:about",""),a.writeAttributeString("xmlns:pdf","http://ns.adobe.com/pdf/1.3/"),a.writeAttributeString("xmlns:pdfx","http://ns.adobe.com/pdf/1.3/"),a.writeElementString("pdf:Producer",this.producerName),a.writeElementString("pdf:Keywords",this.keywords),a.writeFullEndElement(),this.usePdfA){a.writeStartElement("rdf:Description"),a.writeAttributeString("rdf:about",""),a.writeAttributeString("xmlns:pdfaid","http://www.aiim.org/pdfa/ns/id/");var p="1";switch(this.pdfComplianceMode){case i.StiPdfComplianceMode.A1:p="1";break;case i.StiPdfComplianceMode.A2:p="2";break;case i.StiPdfComplianceMode.A3:p="3";break}a.writeElementString("pdfaid:part",p),a.writeElementString("pdfaid:conformance","A"),a.writeFullEndElement()}a.writeFullEndElement(),a.writeFullEndElement(),a.writeString("                              \r\n"),a.writeString("                              \r\n"),a.writeString("                              \r\n"),a.writeString("                              \r\n"),a.writeString("                              \r\n");var h=o.toArray();a.close(),o.close(),r.write(h,0,h.length),r.writeString('<?xpacket end="w"?>'),this.addXref(this.info.metadata.ref),this.sw.writeLine("{0} 0 obj",this.info.metadata.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Type /Metadata"),this.sw.writeLine("/Subtype /XML"),this.storeMemoryStream2(r,"/Length {0}"),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine("")},N.prototype.renderColorSpace=function(){this.addXref(this.info.destOutputProfile.ref),this.sw.writeLine("{0} 0 obj",this.info.destOutputProfile.ref),this.sw.writeLine("<<"),this.sw.writeLine("/N 3");var t=null,e=null;1==this.compressed||(t=new n,t.write(i.StiPdfResources.sRGBprofile,0,i.StiPdfResources.sRGBprofile.length),e="/Length {0}"),this.storeMemoryStream2(t,e),this.sw.writeLine(""),this.sw.writeLine("endstream"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.outputIntents.ref),this.sw.writeLine("{0} 0 obj",this.info.outputIntents.ref),this.sw.writeLine("[<<"),this.storeStringLine("/Info","sRGB IEC61966-2.1"),this.storeStringLine("/OutputConditionIdentifier","Custom"),this.storeStringLine("/OutputCondition",""),this.storeStringLine("/RegistryName",""),this.sw.writeLine("/S /GTS_PDFA1"),this.sw.writeLine("/DestOutputProfile {0} 0 R",this.info.destOutputProfile.ref),this.sw.writeLine("/Type /OutputIntent"),this.sw.writeLine(">>]"),this.sw.writeLine("endobj"),this.sw.writeLine("")},N.prototype.renderAutoPrint=function(){this.autoPrint!=i.StiPdfAutoPrintMode.None&&(this.addXref(this.info.embeddedJS.ref),this.sw.writeLine("{0} 0 obj",this.info.embeddedJS.ref),this.sw.writeLine("<<"),this.sw.writeLine("/Names [(EmbeddedJS) {0} 0 R]",this.info.embeddedJS.content.ref),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""),this.addXref(this.info.embeddedJS.content.ref),this.sw.writeLine("{0} 0 obj",this.info.embeddedJS.content.ref),this.sw.writeLine("<<"),this.sw.writeLine("/S /JavaScript"),this.sw.writeLine("/JS (print\\({0}\\);)",this.autoPrint==i.StiPdfAutoPrintMode.Dialog?"true":"false"),this.sw.writeLine(">>"),this.sw.writeLine("endobj"),this.sw.writeLine(""))},N.prototype.exportPdf=function(t,e,i){try{this.exportPdf1(t,e,i)}finally{}},N.prototype.exportPdf1=function(r,n,s){if(null==s)throw"The 'settings' argument cannot be equal in null.";this.report=r;var l=s.pageRange,u=s.imageResolution;this.imageResolutionMode=s.imageResolutionMode,this.imageQuality=s.imageQuality,this.embeddedFonts=s.embeddedFonts,this.standardPdfFonts=!!s.standardPdfFonts,this.compressed=!!s.compressed,this.useUnicodeMode=s.useUnicode,this.pdfComplianceMode=s.pdfComplianceMode,this.autoPrint=s.autoPrintMode,this.allowEditable=s.allowEditable,this.creatorName=StiOptions.Export.Pdf.creatorString,this.keywords=StiOptions.Export.Pdf.keywordsString,String.isNullOrEmpty(s.creatorString)||(this.creatorName=s.creatorString),String.isNullOrEmpty(s.keywordsString)||(this.keywords=s.keywordsString),String.isNullOrEmpty(this.creatorName)&&(this.creatorName=this.producerName),this.usePdfA=this.pdfComplianceMode!=i.StiPdfComplianceMode.None,this.compressedFonts=!1,this.usePdfA&&(this.standardPdfFonts=!1,this.embeddedFonts=!0,this.useUnicodeMode=!0);var c=l.rangeType!=e.StiRangeType.All,v=!this.usePdfA;this.embeddedFonts&&(this.standardPdfFonts=!1),this.imageQuality<0&&(this.imageQuality=0),this.imageQuality>1&&(this.imageQuality=1),this.useUnicodeMode&&(this.standardPdfFonts=!1),u<10&&(u=10),u/=100,this.imageResolutionMain=u,this.bidi=new i.StiBidirectionalConvert(!0),this.pdfFont=new i.PdfFonts,this.pdfFont.standardPdfFonts=this.standardPdfFonts,this.pdfFont.useUnicode=this.useUnicodeMode,this.fontGlyphsReduceNotNeed=null;for(var T=0;T<=255;T++){var B=Math.round(T/255,3),R=B.toString().replaceAll(",",t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);this.colorTable[T]=R,this.alphaTable[T]=!1}switch(this.lastColorStrokeA=255,this.lastColorNonStrokeA=255,this.colorStack=new Array,this.imageList=new Array,this.imageCompressionMethod){case i.StiPdfImageCompressionMethod.Flate:this.imageCache=new e.StiImageCache(!0,!0,e.ImageFormat.MemoryBmp,this.imageQuality,v);break;default:this.imageCache=new e.StiImageCache(!0,!0,e.ImageFormat.Jpeg,this.imageQuality,v);break}this.imageInterpolationTable=new p,this.imageCacheIndexToList=new p,this.imageInfoList=new p,this.imageInfoCounter=0,this.pdfFont.fontList=new Array,this.xref=new Array,this.haveBookmarks=!1,this.annotsArray=new Array,this.annots2Array=new Array,this.unsignedSignaturesArray=new Array,this.shadingArray=new Array,this.hatchArray=new Array,this.sw=n,this.fontsCounter=0,this.bookmarksCounter=0,this.linksCounter=0,this.annotsCounter=0,this.annots2Counter=0,this.tooltipsCounter=0;for(var E=0;E<256;E++)this.CodePage1252[E]=E;for(var E=0;E<32;E++)this.CodePage1252[128+E]=this.CodePage1252part80AF[E];this.fontGlyphsReduceNotNeed=Array.create(Boolean,256);var G=I.now,L=G.toString("yyyyMMddHHmmsszzz");this.currentDateTime=L.substr(0,17)+"'"+L.substr(18,2)+"'",this.currentDateTimeMeta=G.toString("yyyy-MM-ddTHH:mm:sszzz"),this.IDValue=Array.create(Number,16);for(var E=0;E<16;E++)this.IDValue[E]=Math.round(255*Math.random(),0);for(var N=new h,E=0;E<this.IDValue.length;E++)N.append(this.IDValue[E].toString(16));this.IDValueString=N.toString(),this.IDValueStringMeta=String.stiFormat("uuid:{0}-{1}-{2}-{3}-{4}",this.IDValueString.substring(0,8),this.IDValueString.substring(8,4),this.IDValueString.substring(12,4),this.IDValueString.substring(16,4),this.IDValueString.substring(20,12)).toLower();for(var O=l.getSelectedPages(r.renderedPages),Z=0,M=0,H=O.list;M<H.length;M++){var W=H[M];if(O.getPage(W),this.storeShadingData1(W.brush,Z),this.storeHatchData(W.brush),null!=W.watermark&&W.watermark.enabled){if(!String.isNullOrEmpty(W.watermark.text)){null!=W.watermark.font&&this.pdfFont.getFontNumber(W.watermark.font);var V=new h(W.watermark.text);V=this.bidi.convert(V,!1),this.pdfFont.storeUnicodeSymbolsInMap(V),this.storeShadingData1(W.watermark.textBrush,Z),this.storeHatchData(W.watermark.textBrush)}1==W.watermark.showImageBehind&&null!=W.watermark.image&&this.storeImageData(W.watermark.image,u,!1,!1)}for(var Y=0,j=W.components.list;Y<j.length;Y++){var X=j[Y];if(X.enabled&&(!r.isPrinting||X.printable)){this.imageInfoCounter++;var J=X.width>0&&X.height>0;if(J){var K=X.sti_as(f);null!=K&&(this.storeShadingData1(K.brush,Z),this.storeHatchData(K.brush));var U=X.sti_as(m);if(null!=U&&i.StiPdfRenderPrimitives.checkShape(U))continue;if(X.sti_is(F)){var z=X.sti_as(F);if(this.storeShadingData1(z.textBrush,Z),this.storeHatchData(z.textBrush),this.allowEditable==i.StiPdfAllowEditable.Yes&&z.editable){var Q=new _;Q.Page=Z,Q.Component=X,this.annots2Array.add(Q)}continue}var q=X.isExportAsImage(e.StiExportFormat.Pdf);if(q){var $=!1,tt=X.sti_as(w);if(this.imageResolutionMode!=i.StiImageResolutionMode.Exactly&&null!=tt&&null!=tt.imageToDraw&&null!=tt.imageToDraw.bytes){$=!0;var et=tt.imageToDraw.horizontalResolution/100;this.imageResolutionMode==i.StiImageResolutionMode.NoMoreThan&&(et=tt.stretch?tt.imageToDraw.width/r.unit.convertToHInches(X.width):1/tt.multipleFactor),et=this.storeImageData(tt.imageToDraw,et,!0,tt.smoothing),this.imageInfoList.set(this.imageInfoCounter,et)}if(!$){var it=X.sti_as(P);if(null!=it){var et=u,rt={ref:et},nt=it.getImage(rt,e.StiExportFormat.Pdf);et=rt.ref,null!=nt&&null!=tt.imageToDraw.bytes&&(this.storeImageData(nt,et,!1,!1),this.imageInfoList.set(this.imageInfoCounter,et))}}}var ot=X.sti_as(S);if(null!=ot)var at=this.pdfFont.getFontNumber(ot.font);var st=X.sti_as(b);if(X.sti_is(g)&&!q){var lt=X.sti_as(g),ut=null!=st&&null!=st.textOptions&&st.textOptions.rightToLeft,V=new h(lt.text);if(lt.allowHtmlTags){var ct=new t.Base.Drawing.StiHtmlTagsState(lt.font.bold,lt.font.italic,lt.font.underline,lt.font.strikeout,lt.font.size,lt.font.name,a.toColor(lt.textBrush),a.toColor(lt.brush),!1,!1,0,0,1,lt.horAlignment),pt=new t.Base.Drawing.StiHtmlState(ct,0),ht=t.Base.Drawing.StiTextRenderer.parseHtmlToStates(lt.text,pt);V=new h;for(var gt=0;gt<ht.count;gt++){var mt=ht[gt];V.append(t.Base.Drawing.StiTextRenderer.prepareStateText(mt.text))}}V=this.bidi.convert(V,ut),this.pdfFont.storeUnicodeSymbolsInMap(V);var dt=X.sti_as(y);if(null!=lt&&null!=dt&&(this.storeShadingData1(dt.textBrush,Z),this.storeHatchData(dt.textBrush)),this.allowEditable==i.StiPdfAllowEditable.Yes&&lt.editable){var Q=new _;Q.Page=Z,this.annotsArray.add(Q),this.fontGlyphsReduceNotNeed[this.pdfFont.currentFont]=!0}}if(X.sti_is(x)&&!q){var St=new i.StiPdfGeomWriter(this.pageStream,this,!0),ft=i.StiBarCodeExportPainter.createNew(St),yt=X.sti_as(x);if(!String.isNullOrEmpty(yt.codeValue)&&null!=yt.page){var bt=r.unit.convertToHInches(yt.clientRectangle);yt.barCodeType.draw(ft,yt,bt,1)}}else if(X.sti_is(A)&&!q){var Ct=new k(this);Ct.Component=X,i.StiPdfRenderChart.renderChart(Ct,!0,Z)}}}}Z++,null!=W.watermark&&W.watermark.enabled&&0==W.watermark.showImageBehind&&null!=W.watermark.image&&this.storeImageData(W.watermark.image,u,!1,!1)}for(var vt=0;vt<this.pdfFont.fontList.count;vt++)this.pdfFont.currentFont=vt,this.pdfFont.storeUnicodeSymbolsInMap(new h("…"));for(var It=new h,At=32;At<256;At++)It.append(String.fromCharCode(this.CodePage1252[At]));for(var wt=0;wt<this.pdfFont.fontList.count;wt++)this.fontGlyphsReduceNotNeed[wt]&&(this.pdfFont.currentFont=wt,this.pdfFont.storeUnicodeSymbolsInMap(It));this.imagesCurrent=0,this.annotsCurrent=0,this.annots2Current=0,this.shadingCurrent=0,this.annotsCounter=this.annotsArray.count,this.annots2Counter=this.annots2Array.count,this.unsignedSignaturesCounter=this.unsignedSignaturesArray.count,this.haveAnnots=this.annotsCounter>0||this.annots2Counter>0||this.unsignedSignaturesCounter>0,this.pdfFont.InitFontsData(),this.fontsCounter=this.pdfFont.fontList.count,this.info=new i.StiPdfStructure;for(var E=0;E<O.count;E++)this.info.pageList.add(this.info.createContentObject(!0));for(var E=0;E<this.imageCache.imagePackedStore.count;E++)this.info.xObjectList.add(this.info.createXObject(!0,null!=this.imageCache.imageMaskStore[E]));for(var E=0;E<this.pdfFont.fontList.count;E++)this.info.fontList.add(this.info.createFontObject(!0,this.useUnicodeMode,this.standardPdfFonts,this.embeddedFonts));if(this.info.outlines=this.info.createOutlinesObject(this.haveBookmarks),this.haveBookmarks)for(var E=0;E<this.bookmarksCounter;E++)this.info.outlines.items.add(this.info.createObject(!0));this.info.patterns=this.info.createPatternsObject(!0);for(var E=0;E<this.hatchArray.count;E++)this.info.patterns.hatchItems.add(this.info.createObject(!0));for(var E=0;E<this.shadingArray.count;E++)this.info.patterns.shadingItems.add(this.info.createShadingObject(!0));for(var E=0;E<this.linksCounter;E++)this.info.linkList.add(this.info.createObject(!0));if(this.info.encode=this.info.createObject(this.encrypted),this.info.extGState=this.info.createObject(!0),this.info.acroForm=this.info.createAcroFormObject(this.haveAnnots||this.haveTooltips),this.haveAnnots){for(var E=0;E<this.annotsCounter;E++)this.info.acroForm.annots.add(this.info.createAnnotObject(!0,!0,0));for(var E=0;E<this.fontsCounter;E++)this.info.acroForm.annotFontItems.add(this.info.createFontObject(!0,!1,!1,!1,!0));for(var E=0;E<this.annots2Counter;E++)this.info.acroForm.checkBoxes.add(new i.StiPdfCheckBoxObjInfo),this.info.acroForm.checkBoxes[E].items=[],this.info.acroForm.checkBoxes[E].items.add(this.info.createAnnotObject(!0,!0,2)),this.info.acroForm.checkBoxes[E].items.add(this.info.createAnnotObject(!0,!0,2)),null==this.annots2Array[E].Component.sti_as(F).checkedValue&&this.info.acroForm.checkBoxes[E].items.add(this.info.createAnnotObject(!0,!1,2))}for(var E=0;E<this.tooltipsCounter;E++)this.info.acroForm.tooltips.add(this.info.createAnnotObject(!0,!1,0));this.info.metadata=this.info.createObject(!0),this.info.destOutputProfile=this.info.createObject(!0),this.info.outputIntents=this.info.createObject(!0),this.info.embeddedJS=this.info.createContentObject(this.autoPrint!=i.StiPdfAutoPrintMode.None),this.renderStartDoc(r,O);var Tt=0;this.imageInfoCounter=0,this.currentPassNumber++;for(var Bt=0,Rt=O.list;Bt<Rt.length;Bt++){var W=Rt[Bt];if(O.getPage(W),this.isStopped)return;this.renderPageHeader(Tt++);var Pt=this.hiToTwips*r.unit.convertToHInches(W.pageHeight*W.segmentPerHeight),Ft=this.hiToTwips*r.unit.convertToHInches(W.pageWidth*W.segmentPerWidth),xt=this.hiToTwips*r.unit.convertToHInches(W.margins.left),Dt=this.hiToTwips*r.unit.convertToHInches(W.margins.right),kt=this.hiToTwips*r.unit.convertToHInches(W.margins.top),Et=this.hiToTwips*r.unit.convertToHInches(W.margins.bottom);if(Pt>14400&&(Pt=14400),null!=W.brush){var Ct=new k(this);Ct.X=0,Ct.Y=0,Ct.Width=Ft,Ct.Height=Pt;var Gt=new o;Gt.brush=W.brush,Gt.border=null,Ct.Component=Gt,i.StiPdfRenderPrimitives.renderBorder1(Ct)}this.renderWatermark(W,!0,Ft,Pt,u);for(var _t=new Array,Lt=0,Nt=W.components.list;Lt<Nt.length;Lt++){var X=Nt[Lt];if(X.enabled&&(!r.isPrinting||X.printable)){this.imageInfoCounter++;var Ot=this.hiToTwips*r.unit.convertToHInches(X.left),Zt=this.hiToTwips*r.unit.convertToHInches(X.top),Mt=this.hiToTwips*r.unit.convertToHInches(X.right),Ht=this.hiToTwips*r.unit.convertToHInches(X.bottom),Ct=new k(this);Ct.X=Ot+xt,Ct.Y=Zt+kt,Ct.Width=Mt-Ot,Ct.Height=Ht-Zt,Ct.Y=Pt-(Ct.Y+Ct.Height),Ct.Component=X;var J=X.width>0&&X.height>0;if(J){var q=X.isExportAsImage(e.StiExportFormat.Pdf);if(X.sti_is(m)||i.StiPdfRenderPrimitives.renderBorder1(Ct),X.sti_is(g)&&!q){var Wt=X.sti_as(g),Vt=0;if(this.haveAnnots&&Wt.editable&&(Vt=this.pageStream.position,this.pushColorToStack(),this.lastColorStrokeA=255,this.lastColorNonStrokeA=255),Wt.allowHtmlTags){for(var ct=new t.Base.Drawing.StiHtmlTagsState(Wt.font.bold,Wt.font.italic,Wt.font.underline,Wt.font.strikeout,Wt.font.size,Wt.font.name,a.toColor(Wt.textBrush),a.toColor(Wt.brush),!1,!1,0,0,1,Wt.horAlignment),pt=new t.Base.Drawing.StiHtmlState(ct,0),ht=t.Base.Drawing.StiTextRenderer.parseHtmlToStates(Wt.text,pt),V=new h,gt=0;gt<ht.count;gt++){var mt=ht[gt];V.append(t.Base.Drawing.StiTextRenderer.prepareStateText(mt.text))}var Yt=Wt.clone(!0);if(Yt.text=V.toString(),Ct.Component=Yt,i.StiPdfRenderText.renderTextFont(Ct),i.StiPdfRenderText.renderText(Ct),this.haveAnnots&&Wt.editable){var Q=this.annotsArray[this.annotsCurrent];Q.Multiline=Wt.wordWrap,Q.X=Ct.X,Q.Y=Ct.Y,Q.Width=Ct.Width,Q.Height=Ct.Height,Q.Component=Ct.Component,Q.Alignment=t.Base.Drawing.StiTextHorAlignment.Left;var jt=Ct.Component.sti_as(D);if(null!=jt){var Xt=jt.horAlignment,st=Ct.Component.sti_as(b);null!=st&&null!=st.textOptions&&st.textOptions.rightToLeft&&(Xt==t.Base.Drawing.StiTextHorAlignment.Left?Xt=t.Base.Drawing.StiTextHorAlignment.Right:Xt==t.Base.Drawing.StiTextHorAlignment.Right&&(Xt=t.Base.Drawing.StiTextHorAlignment.Left)),Q.Alignment=Xt}Q.Text=V.toString().replaceAll("\n","")}}else i.StiPdfRenderText.renderTextFont(Ct),i.StiPdfRenderText.renderText(Ct);if(this.haveAnnots&&Wt.editable){this.pageStream.flush();var Jt=this.pageStream.position;this.pageStream.seek(Vt,t.System.IO.SeekOrigin.Begin);var Kt=[];this.pageStream.read(Kt,0,Jt-Vt),this.pageStream.seek(Vt,t.System.IO.SeekOrigin.Begin),this.pageStream.setLength(Vt);var Q=this.annotsArray[this.annotsCurrent];Q.Content=Kt,this.annotsCurrent++,this.popColorFromStack()}}if(X.sti_is(m))i.StiPdfRenderPrimitives.renderShape(Ct,u);else if(X.sti_is(x)&&!q){var St=new i.StiPdfGeomWriter(this.pageStream,this),ft=i.StiBarCodeExportPainter.createNew(St),yt=X.sti_as(x);if(!String.isNullOrEmpty(yt.codeValue)&&null!=yt.page){this.pageStream.writeLine("q"),this.pushColorToStack(),this.pageStream.writeLine("{0} {1} {2} {3} re W n",this.convertToString(Ct.X),this.convertToString(Ct.Y),this.convertToString(Ct.Width),this.convertToString(Ct.Height)),this.pageStream.writeLine("1 0 0 1 {0} {1} cm",this.convertToString(xt),this.convertToString(Pt-kt)),this.pageStream.writeLine("1 0 0 -1 0 0 cm"),this.pageStream.writeLine("{0} 0 0 {0} 0 0 cm",this.convertToString(this.hiToTwips));var bt=r.unit.convertToHInches(yt.clientRectangle);yt.barCodeType.draw(ft,yt,bt,1),this.pageStream.writeLine("Q"),this.popColorFromStack()}}else if(X.sti_is(A)&&!q)this.pageStream.writeLine("q"),this.pushColorToStack(),this.pageStream.writeLine("1 0 0 1 {0} {1} cm",this.convertToString(Ct.X),this.convertToString(Ct.Y+Ct.Height)),this.pageStream.writeLine("1 0 0 -1 0 0 cm"),this.pageStream.writeLine("{0} 0 0 {0} 0 0 cm",this.convertToString(this.hiToTwips/.96)),i.StiPdfRenderChart.renderChart(Ct,!1,Tt-1),this.pageStream.writeLine("Q"),this.popColorFromStack();else if(X.sti_is(F)){var Ut=X.sti_as(F);if(this.haveAnnots&&Ut.editable){var Q=this.annots2Array[this.annots2Current];Q.Multiline=!1,Q.X=Ct.X,Q.Y=Ct.Y,Q.Width=Ct.Width,Q.Height=Ct.Height,Q.Component=Ct.Component,Q.Alignment=t.Base.Drawing.StiTextHorAlignment.Center,Q.Text="";var zt=Ct.X,Qt=Ct.Y;Ct.X=0,Ct.Y=0,this.pageStream.flush();var Vt=this.pageStream.position;this.pushColorToStack(),this.lastColorStrokeA=255,this.lastColorNonStrokeA=255,i.StiPdfRenderPrimitives.renderCheckbox(Ct,!0),this.pageStream.flush();var Jt=this.pageStream.position;this.pageStream.seek(Vt,t.System.IO.SeekOrigin.Begin);var Kt=[];this.pageStream.read(Kt,0,Jt-Vt),this.pageStream.seek(Vt,t.System.IO.SeekOrigin.Begin),Q.Content=Kt,this.popColorFromStack(),this.pageStream.flush(),Vt=this.pageStream.position,this.pushColorToStack(),this.lastColorStrokeA=255,this.lastColorNonStrokeA=255,i.StiPdfRenderPrimitives.renderCheckbox(Ct,!1,!1),this.pageStream.flush(),Jt=this.pageStream.position,this.pageStream.seek(Vt,t.System.IO.SeekOrigin.Begin),Kt=[],this.pageStream.read(Kt,0,Jt-Vt),this.pageStream.seek(Vt,t.System.IO.SeekOrigin.Begin),Q.Content2=Kt,this.popColorFromStack(),this.annots2Current++,Ct.X=zt,Ct.Y=Qt}else{var qt=i.StiPdfRenderPrimitives.getCheckBoxValue(Ut);null!=qt&&i.StiPdfRenderPrimitives.renderCheckbox(Ct,qt)}}else q&&this.renderImage(Ct,u);if(X.sti_is(d));else{var $t=Ct.Component.sti_as(C);null!=$t&&null!=$t.border&&$t.border.topmost?_t.add(Ct):i.StiPdfRenderPrimitives.renderBorder2(Ct)}}}}for(var te=0,ee=_t;te<ee.length;te++){var ie=ee[te];i.StiPdfRenderPrimitives.renderBorder2(ie)}if(_t.clear(),null!=W.border){var Ct=new k(this);Ct.X=xt,Ct.Y=Et,Ct.Width=Ft-xt-Dt,Ct.Height=Pt-kt-Et;var Gt=new o;Gt.border=W.border,Ct.Component=Gt,i.StiPdfRenderPrimitives.renderBorder2(Ct)}this.renderWatermark(W,!1,Ft,Pt,u),this.renderPageFooter(Pt,Ft)}this.renderImageTable(),this.renderFontTable(),this.renderPatternTable(),this.renderExtGStateRecord(),this.renderAnnotTable(),this.renderMetadata(r),this.renderColorSpace(),this.renderAutoPrint(),this.renderEndDoc(),this.xref=null,this.annotsArray=null,this.annots2Array=null,this.unsignedSignaturesArray=null,this.shadingArray=null,this.hatchArray=null,this.colorStack=null,this.pdfFont.clear(),this.pdfFont=null,this.bidi.clear(),this.bidi=null},N.regexEscape=new RegExp("([{}()^$&.*?/+|[\\\\]|]|-)","g"),N}(i.StiExportService);i.StiPdfExportService=L}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=t.System.Drawing.Font,n=t.System.Collections.Hashtable,o=t.System.IO.MemoryStream,a=function(){function t(){}return t}();e.PdfFontInfo=a;var s=function(){function t(){}return t}();e.pfontInfo=s;var l=function(){function t(){this.TagString=null,this.Tag=0,this.CheckSum=0,this.Offset=0,this.Length=0,this.NewOffset=0,this.NewLength=0,this.Required=!1,this.NewTable=null}return t}(),u=function(){function t(){this.HeaderOffset=0,this.NumTables=0,this.NumTablesRequired=0,this.SfntVersion=0,this.Tables=null,this.HeadCheckSumOffset=0,this.NumGlyphs=0,this.IndexToLocFormat=0,this.IndexLocaTable=0,this.IndexGlyfTable=0,this.IndexCmapTable=0,this.FontName=null,this.HeaderOffset=0,this.NumTables=0,this.NumTablesRequired=0,this.SfntVersion=0,this.Tables=null,this.HeadCheckSumOffset=0,this.NumGlyphs=0,this.IndexToLocFormat=0,this.IndexLocaTable=0,this.IndexGlyfTable=0,this.FontName=new n}return t}(),c=function(n){function c(){var t=n.call(this)||this;return t.standardFontQuantity=12,t.standardFontNumWidths=310,t.standardFontNumChars=3680+189,t.firstMappedSymbol=64,t.factor=1,t.maxSymbols=32767,t.useUnicode=!0,t.WIDTHS=null,t.fonts=null,t.UnicodeMapsList=null,t.GlyphMapsList=null,t.standardPdfFonts=!0,t.fontsInfoStore=null,t.family_Helvetica=["Arial","Arial Black","Arial Narrow","Century Gothic","Comic Sans MS","Impact","Microsoft Sans Serif","Tahoma","Verdana"],t.family_Courier=["Courier New","Lucida Console"],t.family_Times_Roman=["Book Antiqua","Bookman Old Style","Garamond","Georgia","Times New Roman"],t.family_Symbol=["Symbol"],t.family_ZapfDingbats=["Wingdings 2"],t.PdfFontName=["Helvetica","Helvetica-Bold","Helvetica-Oblique","Helvetica-BoldOblique","Times-Roman","Times-Bold","Times-Italic","Times-BoldItalic","Courier","Courier-Bold","Courier-Oblique","Courier-BoldOblique","Symbol","ZapfDingbats"],t._currentFont=-1,t.TtfHeaderSize=12,t.ARG_1_AND_2_ARE_WORDS=1,t.ARGS_ARE_XY_VALUES=2,t.ROUND_XY_TO_GRID=4,t.WE_HAVE_A_SCALE=8,t.MORE_COMPONENTS=32,t.WE_HAVE_AN_X_AND_Y_SCALE=64,t.WE_HAVE_A_TWO_BY_TWO=128,t.WE_HAVE_INSTRUCTIONS=256,t.USE_MY_METRICS=512,t.OVERLAP_COMPOUND=1024,t.SCALED_COMPONENT_OFFSET=2048,t.UNSCALED_COMPONENT_OFFSET=4096,t.TablesNames=["head","hhea","hmtx","maxp","cmap","OS/2","post","cvt ","fpgm","glyf","loca","prep","name"],t.fontList=new Array,t.UnicodeMapsList=new Array,t.GlyphMapsList=new Array,t.fontsInfoStore=new p,t}return __extends(c,n),c.prototype.getFontMetrics=function(e,i,n){if(this.WIDTHS=Array.create(Number,this.maxSymbols+1),null==e)return;var o=new r(e.name,1024,e.style,t.System.Drawing.GraphicsUnit.Pixel);Array.copy(i.UnicodeMapBack,0,this.WIDTHS,i.MappedSymbolsCount);var a=t.System.Drawing.Graphics.measureChars(this.WIDTHS,i.MappedSymbolsCount,o),s=a.height,l=a.width;i.CH=0,i.tmASC=Math.round(.8*s*this.factor),i.tmDESC=Math.round(.2*s*this.factor),i.tmExternal=Math.round((l-s)*this.factor),i.LLX=0,i.LLY=0,i.URX=0,i.URY=0,i.StemV=0,i.ItalicAngle=0,i.UnderscoreSize=Math.round(s*(e.bold?.08:.06)*this.factor),i.UnderscorePosition=Math.round(.1*-s*this.factor),i.StrikeoutSize=Math.round(.045*s*this.factor),i.StrikeoutPosition=Math.round(.25*s*this.factor),i.NeedSynt=this.NeedSynt;for(var u=0;u<i.MappedSymbolsCount;u++)this.WIDTHS[u]=Math.round(this.WIDTHS[u]*this.factor,0);var c=t.Base.StiFontCollection.getBinFont(e.name,e.style),p=null!=c?c.data:null;if(null!=p&&p.sti_is(Uint8Array)&&p.byteLength>0){var h=this.getCharToGlyphTable(p,e.name),g=0;"Wingdings"!=e.name&&"Wingdings 2"!=e.name&&"Wingdings 3"!=e.name||(g=61440);for(var u=0;u<i.MappedSymbolsCount;u++){var m=i.UnicodeMapBack[u];m>=128&&m<=255&&(m+=g),i.GlyphList[u]=h[m]}}},Object.defineProperty(c.prototype,"currentFont",{get:function(){return this._currentFont},set:function(t){this._currentFont!=t&&(this._currentFont=t,null!=this.fonts&&this.fonts.length>0&&(this.Widths=this.fonts[this._currentFont].Widths,this.CH=this.fonts[this._currentFont].CH,this.XH=this.fonts[this._currentFont].XH,this.ASC=this.fonts[this._currentFont].ASC,this.DESC=this.fonts[this._currentFont].DESC,this.tmASC=this.fonts[this._currentFont].tmASC,this.tmDESC=this.fonts[this._currentFont].tmDESC,this.tmExternal=this.fonts[this._currentFont].tmExternal,this.MacAscend=this.fonts[this._currentFont].MacAscend,this.MacDescend=this.fonts[this._currentFont].MacDescend,this.MacLineGap=this.fonts[this._currentFont].MacLineGap,this.LLX=this.fonts[this._currentFont].LLX,this.LLY=this.fonts[this._currentFont].LLY,this.URX=this.fonts[this._currentFont].URX,this.URY=this.fonts[this._currentFont].URY,this.StemV=this.fonts[this._currentFont].StemV,this.ItalicAngle=this.fonts[this._currentFont].ItalicAngle,this.LineGap=this.fonts[this._currentFont].LineGap,this.NtmFlags=this.fonts[this._currentFont].NtmFlags,this.UnderscoreSize=this.fonts[this._currentFont].UnderscoreSize,this.UnderscorePosition=this.fonts[this._currentFont].UnderscorePosition,this.StrikeoutSize=this.fonts[this._currentFont].StrikeoutSize,this.StrikeoutPosition=this.fonts[this._currentFont].StrikeoutPosition,this.UnicodeMap=this.fonts[this._currentFont].UnicodeMap,this.UnicodeMapBack=this.fonts[this._currentFont].UnicodeMapBack,this.GlyphList=this.fonts[this._currentFont].GlyphList,this.GlyphBackList=this.fonts[this._currentFont].GlyphBackList,this.GlyphRtfList=this.fonts[this._currentFont].GlyphRtfList,this.SymsToPDF=this.fonts[this._currentFont].SymsToPDF,this.CharPdfNames=this.fonts[this._currentFont].CharPdfNames,this.MappedSymbolsCount=this.fonts[this._currentFont].MappedSymbolsCount,this.NeedSynt=this.fonts[this._currentFont].NeedSynt,this.GlyphWidths=this.fonts[this._currentFont].GlyphWidths,this.ChildFontsMap=this.fonts[this._currentFont].ChildFontsMap))},enumerable:!0,configurable:!0}),c.prototype.InitFontsData=function(){if(!this.useUnicode)for(var t=this.fontList.count,i=0;i<t;i++){for(var r=this.UnicodeMapsList[i],n=this.firstMappedSymbol,o=this.firstMappedSymbol;o<65536;o++)r[o]>0&&n++;if(n>255){for(var l=this.fontList[i],u=null,c=Array.create(Number,65536),p=this.fontList.count,o=0;o<this.firstMappedSymbol;o++)c[o]=p;var h=!0;n=this.firstMappedSymbol;for(var o=this.firstMappedSymbol;o<65536;o++){if(h){var g=new s;g.Name=l.Name,g.PdfName=l.PdfName,g.Bold=l.Bold,g.Italic=l.Italic,g.Number=l.Number,g.Font=l.Font,g.ParentFontNumber=i,this.fontList.add(g),u=Array.create(Number,65536),Array.copy(r,0,u,64),this.UnicodeMapsList.add(u),this.GlyphMapsList.add(Array.create(Number,65536)),p=this.fontList.count-1,n=this.firstMappedSymbol,h=!1}r[o]>0&&(u[o]=1,c[o]=p,254==++n&&(h=!0))}l.ChildFontsMap=c,this.fontList[i]=l}}this.fonts=Array.create(a,this.fontList.count);for(var i=0;i<this.fontList.count;i++){this.fonts[i]=new a;var m=this.fonts[i];m.UnicodeMap=this.UnicodeMapsList[i],m.UnicodeMapBack=Array.create(Number,this.maxSymbols+1);var d=this.GlyphMapsList[i],S=Array.create(Number,65536);d[65535];for(var f=this.firstMappedSymbol,y=this.firstMappedSymbol;y<65536;y++)0!=m.UnicodeMap[y]&&(m.UnicodeMap[y]=f,m.UnicodeMapBack[f]=y,f++,f>this.maxSymbols&&(f=this.maxSymbols),this.useUnicode||92!=f||(m.UnicodeMapBack[f]=y,f++));var b=8226;m.UnicodeMap[b]=f,m.UnicodeMapBack[f]=b,f++,m.MappedSymbolsCount=f;for(var y=0;y<this.firstMappedSymbol;y++)m.UnicodeMap[y]=y,m.UnicodeMapBack[y]=y;m.CharPdfNames=Array.create(String,f),m.SymsToPDF=Array.create(Number,f);for(var C=32;C<m.MappedSymbolsCount;C++){for(var v=-1,I=0;I<this.standardFontNumWidths;I++);m.SymsToPDF[C]=v;var A=e.StiPdfResources.standardFontCharsNames[m.UnicodeMapBack[C]];null==A&&(A="uni"+m.UnicodeMapBack[C].toString(16).toUpper().padLeft(4,"0")),m.CharPdfNames[C]=A}m.GlyphList=Array.create(Number,f);var w=this.fontList[i];this.fonts[i].Widths=Array.create(Number,f),this.getFontMetrics(w.Font,m,d);for(var T=0;T<f-32;T++)this.fonts[i].Widths[T]=this.WIDTHS[32+T];this.standardPdfFonts,null!=this.fontList[i].ChildFontsMap&&(m.MappedSymbolsCount=255,m.ChildFontsMap=this.fontList[i].ChildFontsMap)}this._currentFont=-1,this.currentFont=0},c.prototype.getFontNumber=function(t){var e=-1;if(this.fontList.count>0)for(var i=0;i<this.fontList.count;i++){var r=this.fontList[i];if(r.Name==t.name&&r.Bold==t.bold&&r.Italic==t.italic){e=i;break}}if(-1==e){var n=new s;n.Name=t.name,n.Bold=t.bold,n.Italic=t.italic,n.Font=t,n.ParentFontNumber=-1,e=0;for(var o=0,a=this.family_Helvetica;o<a.length;o++){var l=a[o];n.Name==l&&(e=0)}for(var u=0,c=this.family_Times_Roman;u<c.length;u++){var l=c[u];n.Name==l&&(e=4)}for(var p=0,h=this.family_Courier;p<h.length;p++){var l=h[p];n.Name==l&&(e=8)}e<12&&(1==n.Bold&&(e+=1),1==n.Italic&&(e+=2)),n.Number=e,n.PdfName=this.PdfFontName[e],this.fontList.add(n),e=this.fontList.count-1,this.UnicodeMapsList.add(Array.create(Number,65536)),this.GlyphMapsList.add(Array.create(Number,65536))}return this.currentFont=e,e},c.prototype.storeUnicodeSymbolsInMap=function(t){var e=t.toString();if(e.length>0&&-1!=this.currentFont)for(var i=this.UnicodeMapsList[this.currentFont],r=0;r<e.length;r++)i[e.charCodeAt(r)]=1},c.prototype.getCharToGlyphTable=function(t,e){var i=this.scanFontFile(t,e);if(null!=i)return this.getCmapTable(t,i);return null},c.prototype.reduceFontSize=function(t,e,i){var r=this.scanFontFile(t,e),n=null;if(null!=r){if(i){for(var a=Array.create(Boolean,r.NumGlyphs),s=Array.create(Boolean,r.NumGlyphs),l=0;l<this.GlyphList.length;l++){var u=this.GlyphList[l];u<r.NumGlyphs&&(a[u]=!0,s[u]=!0)}a[0]=!0,a[1]=!0,a[2]=!0,a[3]=!0,s[0]=!0,s[1]=!0,s[2]=!0,s[3]=!0;var c=r.Tables[r.IndexLocaTable].Offset,p=r.Tables[r.IndexGlyfTable].Offset,h=!0;while(h){h=!1;for(var l=0;l<r.NumGlyphs;l++)if(1==s[l]){s[l]=!1;var g=c+l*(1==r.IndexToLocFormat?4:2),m=0;if(m=1==r.IndexToLocFormat?this.GetUInt32(t,g):2*this.GetUInt16(t,g),m+=p,-1==this.GetInt16(t,m)){h=!0,m+=10;var d=0;do{d=this.GetUInt16(t,m);var S=this.GetUInt16(t,m+2);S<r.NumGlyphs&&(a[S]=!0,s[S]=!0),m+=4,(d&this.ARG_1_AND_2_ARE_WORDS)>0?(m+=2,m+=2):m+=2,(d&this.WE_HAVE_A_SCALE)>0?m+=2:(d&this.WE_HAVE_AN_X_AND_Y_SCALE)>0?(m+=2,m+=2):(d&this.WE_HAVE_A_TWO_BY_TWO)>0&&(m+=2,m+=2,m+=2,m+=2)}while((d&this.MORE_COMPONENTS)>0)}}}for(var f=0,y=c,l=0;l<r.NumGlyphs;l++){var b=0,C=0;1==r.IndexToLocFormat?(b=this.GetUInt32(t,y),C=this.GetUInt32(t,y+4),y+=4):(b=2*this.GetUInt16(t,y),C=2*this.GetUInt16(t,y+2),y+=2),a[l]&&(f+=C-b)}var v=new Uint8Array(f+4),I=new Uint8Array(r.Tables[r.IndexLocaTable].Length+4),A=0;y=c;for(var w=0,l=0;l<r.NumGlyphs;l++){var b=0,C=0;1==r.IndexToLocFormat?(b=this.GetUInt32(t,y),C=this.GetUInt32(t,y+4),y+=4):(b=2*this.GetUInt16(t,y),C=2*this.GetUInt16(t,y+2),y+=2);var T=C-b;if(1==a[l])for(var B=0;B<T;B++)v[A+B]=t[p+b+B];else T=0;0==r.IndexToLocFormat?this.SetUInt16(I,w,A/2):this.SetUInt32(I,w,A),A+=T,w+=1==r.IndexToLocFormat?4:2}0==r.IndexToLocFormat?this.SetUInt16(I,w,A/2):this.SetUInt32(I,w,A),r.Tables[r.IndexGlyfTable].NewLength=A,r.Tables[r.IndexGlyfTable].NewTable=v,r.Tables[r.IndexLocaTable].NewTable=I}var R=new Uint8Array(this.TtfHeaderSize+16*r.NumTablesRequired);this.copyUint8Array(t,r.HeaderOffset,R,0,R.length);var P=1;while(2<<P-1<=r.NumTablesRequired)P++;P--;var F=16*(2<<P-1),x=P,D=16*r.NumTablesRequired-F;this.SetUInt16(R,4,r.NumTablesRequired),this.SetUInt16(R,6,F),this.SetUInt16(R,8,x),this.SetUInt16(R,10,D);for(var k=0,E=this.TtfHeaderSize+16*r.NumTablesRequired,G=0;G<r.NumTables;G++)if(r.Tables[G].Required){r.Tables[G].NewOffset=E,E+=r.Tables[G].NewLength;var _=E%4;_>0&&(E+=4-_);var L=this.TtfHeaderSize+16*k;this.SetUInt32(R,L,r.Tables[G].Tag),this.SetUInt32(R,L+4,r.Tables[G].CheckSum),this.SetUInt32(R,L+8,r.Tables[G].NewOffset),this.SetUInt32(R,L+12,r.Tables[G].NewLength),k++}n=new o,n.writeBytes(R,0,R.length);for(var G=0;G<r.NumTables;G++)if(r.Tables[G].Required){null!=r.Tables[G].NewTable?n.writeBytes(r.Tables[G].NewTable,0,r.Tables[G].NewLength):n.writeBytes(t,r.Tables[G].Offset,r.Tables[G].NewLength);var _=r.Tables[G].NewLength%4;_>0&&n.write(Array.create(Number,4-_),0,4-_)}n.flush()}return n},c.prototype.scanFontFile=function(t,e){var i=null,r=this.GetUInt32(t,0);if(65536==r)i=this.getTtfInfo(t,0);else{var n=this.GetUInt32(t,4);if(1953784678==r&&(65536==n||131072==n))for(var o=this.GetUInt32(t,8),a=o-1;a>=0;a--){var s=this.GetUInt32(t,12+4*a),l=this.GetUInt32(t,s);if(65536==l&&(i=this.getTtfInfo(t,s),i.FontName.contains(e)))break}}return i},c.prototype.getCmapTable=function(t,e){for(var i=null,r=e.Tables[e.IndexCmapTable].Offset,n=this.GetUInt16(t,r+2),o=0;o<n;o++){var a=r+4+8*o,s=this.GetUInt16(t,a),l=this.GetUInt16(t,a+2),u=r+this.GetUInt32(t,a+4);if(3==s&&1==l){if(4==this.GetUInt16(t,u)){i=Array.create(Number,65536);for(var c=0;c<65536;c++)i[c]=65535;for(var p=this.GetUInt16(t,u+6),h=0;h<p;h+=2){var g=u+14+h,m=this.GetUInt16(t,g),d=this.GetUInt16(t,g+2+p),S=this.GetInt16(t,g+2+2*p),f=this.GetUInt16(t,g+2+3*p);if(65535!=d)for(var y=d;y<=m;y++){var b=65535;if(0==f)b=S+y;else{var C=f+2*(y-d)+(g+2+3*p);b=this.GetUInt16(t,C),0!=b&&(b+=S)}i[y]=b}}}}}return i},c.prototype.copyUint8Array=function(t,e,i,r,n){for(var o=0;o<n;o++)i[r+o]=t[e+o]},c.prototype.getTtfInfo=function(t,e){var r=new u;r.HeaderOffset=e,r.SfntVersion=this.GetUInt32(t,r.HeaderOffset),r.NumTables=this.GetUInt16(t,r.HeaderOffset+4),r.NumTablesRequired=0,r.Tables=[];for(var n=0;n<r.NumTables;n++)r.Tables[n]=new l;for(var o=0;o<r.NumTables;o++){for(var a=r.HeaderOffset+this.TtfHeaderSize+16*o,s=new i,c=0;c<4;c++)s.append(String.fromCharCode(this.GetUInt8(t,a+c)));r.Tables[o].Tag=this.GetUInt32(t,a),r.Tables[o].TagString=s.toString(),r.Tables[o].CheckSum=this.GetUInt32(t,a+4),r.Tables[o].Offset=this.GetUInt32(t,a+8),r.Tables[o].Length=this.GetUInt32(t,a+12),r.Tables[o].NewLength=r.Tables[o].Length;for(var c=0;c<this.TablesNames.length;c++)if(r.Tables[o].TagString==this.TablesNames[c]){r.Tables[o].Required=!0,r.NumTablesRequired++;break}switch(r.Tables[o].TagString){case"head":r.IndexToLocFormat=this.GetUInt16(t,r.Tables[o].Offset+50);break;case"maxp":r.NumGlyphs=this.GetUInt16(t,r.Tables[o].Offset+4);break;case"loca":r.IndexLocaTable=o;break;case"glyf":r.IndexGlyfTable=o;break;case"cmap":r.IndexCmapTable=o;break;case"name":for(var p=r.Tables[o].Offset,h=this.GetUInt16(t,p+2),g=this.GetUInt16(t,p+4),m=0;m<h;m++){var d=p+6+12*m,S=this.GetUInt16(t,d),f=this.GetUInt16(t,d+2),y=this.GetUInt16(t,d+6),b=this.GetUInt16(t,d+8),C=this.GetUInt16(t,d+10);if(3==S&&1==f&&1==y||0==S&&3==f&&1==y){for(var v=new i,I=0;I<b/2;I++)v.append(String.fromCharCode(this.GetUInt16(t,p+g+C+2*I)));var A=v.toString();r.FontName[A]=A}}break}}return r},c.prototype.GetUInt8=function(t,e){return t[e]},c.prototype.GetUInt16=function(t,e){return(t[e]<<8)+t[e+1]},c.prototype.GetUInt32=function(t,e){return(t[e]<<24)+(t[e+1]<<16)+(t[e+2]<<8)+t[e+3]},c.prototype.GetInt16=function(t,e){var i=(t[e]<<8)+t[e+1];return i>32767?i-65536:i},c.prototype.SetUInt16=function(t,e,i){t[e+0]=i>>>8&255,t[e+1]=255&i},c.prototype.SetUInt32=function(t,e,i){t[e+0]=i>>>24&255,t[e+1]=i>>>16&255,t[e+2]=i>>>8&255,t[e+3]=255&i},c.prototype.clear=function(){this.fonts=null,this.fontList=null,this.UnicodeMapsList=null,this.GlyphMapsList=null,this.Widths=null,this.CharPdfNames=null,this.UnicodeMap=null,this.UnicodeMapBack=null,this.GlyphList=null,this.GlyphBackList=null,this.GlyphRtfList=null,this.SymsToPDF=null,this.GlyphWidths=null,this.fontsInfoStore.clear()},c}(a);e.PdfFonts=c;var p=function(){function t(){}return t.prototype.clear=function(){},t}();e.FontsInfoStore=p}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Point,r=t.System.Drawing.Rectangle,n=t.System.Text.StringBuilder,o=t.Base.Context.StiPenGeom,a=t.System.Drawing.Color,s=t.Base.Drawing.StiBrush,l=t.Base.Drawing.StiGradientBrush,u=t.Base.Drawing.StiGlareBrush,c=t.Base.Drawing.StiHatchBrush,p=t.Base.Drawing.StiGlassBrush,h=t.Base.Drawing.StiPenStyle,g=t.Base.Drawing.StiPenUtils,m=t.System.Drawing.Drawing2D.DashStyle,d=t.Report.Components.StiText,S=t.System.Drawing.Rectangle,f=t.System.Drawing.StringAlignment,y=t.Base.Drawing.StiTextHorAlignment,b=t.Base.Drawing.StiVertAlignment,C=t.System.Drawing.StringFormatFlags,v=t.System.Drawing.Size,I=function(){function I(t,e,i){void 0===i&&(i=!1),this.penWidthDefault=.1,this.precision_digits=3,this.hiToTwips=.72,this.pdfCKT=.55228,this.makepath=!1,this.pathClosed=!1,this.path=null,this.pageStream=null,this.pdfService=null,this.assembleData=!1,this.pageNumber=0,this.matrixCache=null,this.xmin=null,this.xmax=null,this.ymin=null,this.ymax=null,this.pageStream=t,this.pdfService=e,this.assembleData=i,this.matrixCache=new Array}return I.prototype.calculateMinMax=function(t){null==this.xmin?this.xmin=t.x:this.xmin=Math.min(this.xmin,t.x),null==this.xmax?this.xmax=t.x:this.xmax=Math.max(this.xmax,t.x),null==this.ymin?this.ymin=t.y:this.ymin=Math.min(this.ymin,t.y),null==this.ymax?this.ymax=t.y:this.ymax=Math.max(this.ymax,t.y)},I.prototype.convertToString=function(e){return Math.round(e,this.precision_digits).toString().replaceAll(",",t.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},I.prototype.setPen=function(e,i){if(void 0===i&&(i=!1),null==e)return!1;var r=!1;if(e.sti_is(t.Base.Context.StiPenGeom)){var n=e.sti_as(o),l=a.transparent;n.brush.sti_is(a)&&(l=n.brush.sti_as(a)),n.brush.sti_is(s)&&(l=s.toColor(n.brush.sti_as(s))),this.pdfService.setStrokeColor(l);var u=n.thickness>1?n.thickness:n.thickness*this.hiToTwips;0==u&&(u=this.penWidthDefault),this.pageStream.writeLine("{0} w",this.convertToString(u)),r=i&&n.penStyle!=h.Solid,r&&this.pageStream.writeLine("q");var c=this.getPenStyleDashString(g.getPenStyle(n.penStyle),.025*n.thickness);null!=c&&this.pageStream.writeLine(c)}return r},I.prototype.setBrush=function(t,e,n){if(void 0===n&&(n=!1),null==t)return!1;if(this.assembleData)return(t.sti_is(l)||t.sti_is(u)||t.sti_is(c)||t.sti_is(p))&&(this.pdfService.storeShadingData1(t.sti_as(s),this.pageNumber),this.pdfService.storeHatchData(t.sti_as(s))),!1;var o=!1,h=a.transparent;if(t.sti_is(a)&&(h=t.sti_as(a)),t.sti_is(s)&&(h=s.toColor(t.sti_as(s))),this.pdfService.setNonStrokeColor(h),t.sti_is(l)||t.sti_is(u)||t.sti_is(c)||t.sti_is(p)){var g=this.matrixCache.peek(),m=new i(e.x,e.bottom),d=new i(e.right,e.y),S=[m,d];g.transformPoints(S);var f=new r(S[0].x,S[0].y,S[1].x-S[0].x,S[1].y-S[0].y),y=this.pdfService.storeShadingData2(f.x,f.y,f.width,f.height,t.sti_as(s));if((t.sti_is(l)||t.sti_is(u))&&this.pageStream.writeLine("/Pattern cs /P{0} scn",1+y),t.sti_is(c)){var b=t.sti_as(c);this.pageStream.writeLine("/Cs1 cs /PH{0} scn",this.pdfService.getHatchNumber(b)+1)}o=!0}return o=o&&n,o&&this.pageStream.writeLine("q"),o},I.prototype.outputLineString=function(t,e){if(null!=e){var i=this.setPen(e,!0);this.pageStream.writeLine(t),i&&this.pageStream.writeLine("Q")}},I.prototype.convertArcToBezierPoints=function(t,e,r){var n=t.x+t.width/2,o=t.y+t.height/2,a=t.width/2;e*=Math.PI/180,r*=Math.PI/180;var s=Math.ceil(Math.abs(r)/(Math.PI/2)),l=Array.create(i,3*s+1,!0),u=r/s,c=Math.sin(u/2),p=Math.cos(u/2),h=4*(1-p)/3,g=c-h*p/(c+1e-4),m=[],d=[];m[0]=p,d[0]=-c,m[1]=p+h,d[1]=-g,m[2]=p+h,d[2]=g,m[3]=p,d[3]=c;var S=Math.sin(e+u/2),f=Math.cos(e+u/2);l[0].x=n+a*(m[0]*f-d[0]*S),l[0].y=o+a*(m[0]*S+d[0]*f);for(var y=0;y<s;y++){var b=e+u*y;S=Math.sin(b+u/2),f=Math.cos(b+u/2);for(var C=1;C<=3;C++)l[C+3*y].x=n+a*(m[C]*f-d[C]*S),l[C+3*y].y=o+a*(m[C]*S+d[C]*f)}return l},I.prototype.convertSplineToCubicBezier=function(t,e){var i=t.length,r=3*i-2,n=[];e*=.3,n[0]=t[0],n[1]=this.calculateCurveBezierEndPoints(t[0],t[1],e);for(var o=0;o<i-2;o++){var a=this.calculateCurveBezier(t,o,e);n[3*o+2]=a[0],n[3*o+3]=t[o+1],n[3*o+4]=a[1]}return n[r-2]=this.calculateCurveBezierEndPoints(t[i-1],t[i-2],e),n[r-1]=t[i-1],n},I.prototype.calculateCurveBezier=function(t,e,r){var n=t[e+2].x-t[e+0].x,o=t[e+2].y-t[e+0].y;return[new i(t[e+1].x-r*n,t[e+1].y-r*o),new i(t[e+1].x+r*n,t[e+1].y+r*o)]},I.prototype.calculateCurveBezierEndPoints=function(t,e,r){return new i(r*(e.x-t.x)+t.x,r*(e.y-t.y)+t.y)},I.prototype.getPointString=function(t){return this.calculateMinMax(t),String.stiFormat("{0} {1} {2} ",this.convertToString(t.x),this.convertToString(t.y),this.makepath&&this.path.length>0?"l":"m")},I.prototype.getLineToString=function(t){return this.calculateMinMax(t),String.stiFormat("{0} {1} l ",this.convertToString(t.x),this.convertToString(t.y))},I.prototype.getRectString4=function(t,e,i,n){return this.getRectString(new r(t,e,i,n))},I.prototype.getRectString=function(t){return String.stiFormat("{0} {1} {2} {3} re ",this.convertToString(t.x),this.convertToString(t.top),this.convertToString(t.right-t.x),this.convertToString(t.bottom-t.y))},I.prototype.getBezierString=function(t,e,i){return this.calculateMinMax(t),this.calculateMinMax(e),this.calculateMinMax(i),String.stiFormat("{0} {1} {2} {3} {4} {5} c ",this.convertToString(t.x),this.convertToString(t.y),this.convertToString(e.x),this.convertToString(e.y),this.convertToString(i.x),this.convertToString(i.y))},I.prototype.getBezierString2=function(t,e,r,n,o,a){return this.calculateMinMax(new i(t,e)),this.calculateMinMax(new i(r,n)),this.calculateMinMax(new i(o,a)),String.stiFormat("{0} {1} {2} {3} {4} {5} c ",this.convertToString(t),this.convertToString(e),this.convertToString(r),this.convertToString(n),this.convertToString(o),this.convertToString(a))},I.prototype.getPolylineString=function(t,e,i){var r=new n;i||r.append(this.getPointString(t[0]));for(var o=i?0:1;o<t.length;o++)r.append(this.getLineToString(t[o]));return e&&r.append("h "),r.toString()},I.prototype.getEllipseString4=function(t,e,i,n){return this.getEllipseString(new r(t,e,i,n))},I.prototype.getEllipseString=function(t){var e=t.width/2*(1-this.pdfCKT),i=t.height/2*(1-this.pdfCKT),r=new n;return r.appendFormat("{0} {1} m ",this.convertToString(t.x),this.convertToString(t.y+t.height/2)),r.append(this.getBezierString2(t.x,t.y+t.height-i,t.x+e,t.y+t.height,t.x+t.width/2,t.y+t.height)),r.append(this.getBezierString2(t.x+t.width-e,t.y+t.height,t.x+t.width,t.y+t.height-i,t.x+t.width,t.y+t.height/2)),r.append(this.getBezierString2(t.x+t.width,t.y+i,t.x+t.width-e,t.y,t.x+t.width/2,t.y)),r.append(this.getBezierString2(t.x+e,t.y,t.x,t.y+i,t.x,t.y+t.height/2)),r.toString()},I.prototype.getPenStyleDashString=function(t,e){switch(t){case m.Dot:return String.stiFormat("[{0} {1}] 0 d",this.convertToString(e),this.convertToString(58*e));case m.Dash:return String.stiFormat("[{0} {1}] 0 d",this.convertToString(49.5*e),this.convertToString(62*e));case m.DashDot:return String.stiFormat("[{0} {1} {2} {1}] 0 d",this.convertToString(50*e),this.convertToString(55*e),this.convertToString(e));case m.DashDotDot:return String.stiFormat("[{0} {1} {2} {1} {2} {1}] 0 d",this.convertToString(50*e),this.convertToString(55*e),this.convertToString(e))}return null},I.prototype.beginPath=function(){if(this.assembleData)return;this.path=new n,this.makepath=!0,this.pathClosed=!1,this.xmin=null,this.xmax=null,this.ymin=null,this.ymax=null},I.prototype.closeFigure=function(){if(this.assembleData)return;this.path.append("h "),this.pathClosed=!0},I.prototype.endPath=function(){if(this.assembleData)return;this.makepath=!1},I.prototype.fillPath=function(t){var e=this.assembleData?new r:new r(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),i=this.setBrush(t,e,!0);if(this.assembleData)return;this.pathClosed||this.endPath(),this.pageStream.writeString(this.path.toString()),this.pageStream.writeLine("f"),i&&this.pageStream.writeLine("Q")},I.prototype.strokePath=function(t){if(this.assembleData)return;this.setPen(t),this.pageStream.writeString(this.path.toString()),this.pageStream.writeLine("S")},I.prototype.moveTo=function(t){if(this.assembleData)return;this.lastPoint=t;var e=this.getPointString(t);this.makepath?this.path.appendLine(e):this.pageStream.writeLine(e)},I.prototype.drawLine=function(t,e,i){if(this.assembleData)return;var r=this.getPointString(t)+this.getLineToString(e);this.makepath?this.path.appendLine(r):this.outputLineString(r+"S",i),this.lastPoint=e},I.prototype.drawLineTo=function(t,e){if(this.assembleData)return;var i=this.getLineToString(t);this.makepath?this.path.appendLine(i):this.outputLineString(i+"S",e),this.lastPoint=t},I.prototype.drawRectangle=function(t,e){if(this.assembleData)return;this.outputLineString(this.getRectString(t)+"S",e)},I.prototype.fillRectangle=function(t,e){var i=this.setBrush(e,t,!0);if(this.assembleData)return;null!=e&&this.pageStream.writeLine(this.getRectString(t)+"f"),i&&this.pageStream.writeLine("Q")},I.prototype.drawPolygon=function(t,e){this.drawPolyline(t,e,!0)},I.prototype.drawPolyline=function(t,e,i,r){if(void 0===i&&(i=!1),void 0===r&&(r=!1),this.assembleData)return;var n=this.getPolylineString(t,i,r);this.makepath?this.path.appendLine(n):this.outputLineString(n+"S",e),this.lastPoint=t[t.length-1]},I.prototype.drawPolylineTo=function(t,e){this.drawPolyline(t,e,!1,!0)},I.prototype.fillPolygon=function(t,e){for(var i=0,n=t;i<n.length;i++){var o=n[i];this.calculateMinMax(o)}var a=new r(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),s=this.setBrush(e,a,!0);if(this.assembleData)return;if(null!=e){var l=this.getPolylineString(t,!0,!1);this.pageStream.writeLine(l+"f")}s&&this.pageStream.writeLine("Q")},I.prototype.drawBezier=function(t,e,i,r,n){if(this.assembleData)return;var o=this.getPointString(t)+this.getBezierString(e,i,r);this.makepath?this.path.appendLine(o):this.outputLineString(o+"S",n),this.lastPoint=r},I.prototype.drawBezierTo=function(t,e,i,r){if(this.assembleData)return;var n=this.getBezierString(t,e,i);this.makepath?this.path.appendLine(n):this.outputLineString(n+"S",r),this.lastPoint=i},I.prototype.drawSpline=function(t,e,i){if(this.assembleData)return;var r=this.convertSplineToCubicBezier(t,e),o=(r.length-1)/3,a=new n;a.append(this.getPointString(r[0])+this.getBezierString(r[1],r[2],r[3]));for(var s=1;s<o;s++)a.append(this.getBezierString(r[3*s+1],r[3*s+2],r[3*s+3]));this.makepath?this.path.appendLine(a.toString()):this.outputLineString(a.toString()+"S",i),this.lastPoint=r[r.length-1]},I.prototype.drawArc=function(t,e,i){if(this.assembleData)return;var r=this.convertArcToBezierPoints(t,e,i),n=(r.length-1)/3;this.drawBezier(r[0],r[1],r[2],r[3],null);for(var o=1;o<n;o++)this.drawBezierTo(r[3*o+1],r[3*o+2],r[3*o+3],null)},I.prototype.drawEllipse=function(t,e){if(this.assembleData)return;this.outputLineString(this.getEllipseString(t)+"S",e)},I.prototype.fillEllipse=function(t,e){var i=this.setBrush(e,t,!0);if(this.assembleData)return;null!=e&&this.pageStream.writeLine(this.getEllipseString(t)+"f"),i&&this.pageStream.writeLine("Q")},I.prototype.drawPie=function(t,e,r){if(this.assembleData)return;var n=this.convertArcToBezierPoints(t,e,r),o=(n.length-1)/3,a=t.x+t.width/2,s=t.y+t.height/2;this.drawBezier(n[0],n[1],n[2],n[3],null);for(var l=1;l<o;l++)this.drawBezierTo(n[3*l+1],n[3*l+2],n[3*l+3],null);this.drawLineTo(new i(a,s),null),this.drawLineTo(n[0],null)},I.prototype.drawString=function(t,i,r,o,a){if(this.assembleData){if(null!=i)var s=this.pdfService.pdfFont.getFontNumber(i);var l=new n(t);return void this.pdfService.pdfFont.storeUnicodeSymbolsInMap(l)}var u=new d;u.clientRectangle=new S(o.x,o.y,o.width,o.height),u.text=t,u.font=i,u.textBrush=r,a.alignment==f.Center&&(u.horAlignment=y.Center),a.alignment==f.Far&&(u.horAlignment=y.Right),a.lineAlignment==f.Center&&(u.vertAlignment=b.Center),a.lineAlignment==f.Far&&(u.vertAlignment=b.Bottom),0==(a.formatFlags&C.NoWrap)&&(u.wordWrap=!0);var c=new e.StiPdfData(this.pdfService);c.Component=u,c.Width=o.width*this.hiToTwips,c.Height=o.height*this.hiToTwips,this.pageStream.writeLine("q"),this.pdfService.pushColorToStack(),this.pageStream.writeLine("1 0 0 1 {0} {1} cm",this.convertToString(o.x),this.convertToString(o.y+o.height)),this.pageStream.writeLine("1 0 0 -1 0 0 cm"),this.pageStream.writeLine("1.39 0 0 1.39 0 0 cm"),e.StiPdfRenderText.renderTextFont(c),e.StiPdfRenderText.renderText(c),this.pageStream.writeLine("Q"),this.pdfService.popColorFromStack()},I.prototype.saveState=function(){if(this.assembleData)return;this.pageStream.writeLine("q"),this.pdfService.pushColorToStack(),this.matrixCache.count>0&&this.matrixCache.push(this.matrixCache.peek().clone())},I.prototype.restoreState=function(){if(this.assembleData)return;this.pageStream.writeLine("Q"),this.pdfService.popColorFromStack(),this.matrixCache.count>0&&this.matrixCache.pop()},I.prototype.translateTransform=function(t,e){if(this.assembleData)return;this.pageStream.writeLine("1 0 0 1 {0} {1} cm",this.convertToString(t),this.convertToString(e)),this.matrixCache.count>0&&this.matrixCache.peek().translate(t,e)},I.prototype.rotateTransform=function(t){if(this.assembleData)return;var e=t*Math.PI/180;this.pageStream.writeLine("{0} {1} {2} {3} 0 0 cm",this.convertToString(Math.cos(e)),this.convertToString(Math.sin(e)),this.convertToString(-Math.sin(e)),this.convertToString(Math.cos(e))),this.matrixCache.count>0&&this.matrixCache.peek().rotate(t)},I.prototype.setClip=function(t){if(this.assembleData)return;this.pageStream.writeLine(this.getRectString(t)+"W n")},I.prototype.drawArc2=function(t,e,i,r){},I.prototype.drawText=function(t,e,i,r,n,o,a){},I.prototype.setPixel=function(t,e){},I.prototype.measureString=function(t,e){return new v(0,0)},I.prototype.drawImage=function(t,e){},I}();e.StiPdfGeomWriter=I}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.System.Drawing.Graphics,n=t.Base.Context.StiContext,o=t.Base.Context.StiContextPainter,a=t.System.Drawing.Point,s=t.System.Drawing.Point,l=t.System.Drawing.Rectangle,u=t.System.Drawing.Rectangle,c=t.System.Drawing.StringFormat,p=t.Base.Drawing.StiRotationMode,h=t.Base.Context.StiPushTranslateTransformGeom,g=t.Base.Context.StiPushRotateTransformGeom,m=t.Base.Context.StiPopTransformGeom,d=t.Base.Context.StiBorderGeom,S=t.Base.Context.StiLineGeom,f=t.Base.Context.StiLinesGeom,y=t.Base.Context.StiPushClipGeom,b=t.Base.Context.StiPopClipGeom,C=t.Base.Context.StiPushSmothingModeToAntiAliasGeom,v=t.Base.Context.StiPopSmothingModeGeom,I=t.Base.Context.StiPushTextRenderingHintToAntiAliasGeom,A=t.Base.Context.StiPopTextRenderingHintGeom,w=t.Base.Context.StiCurveGeom,T=t.Base.Context.StiEllipseGeom,B=t.Base.Context.StiCachedShadowGeom,R=t.Base.Drawing.StiShadowSides,P=t.Base.Drawing.StiSolidBrush,F=t.Base.Context.StiShadowGeom,x=t.Base.Context.StiTextGeom,D=t.Base.Context.StiPathGeom,k=t.Base.Context.StiPieSegmentGeom,E=t.Base.Context.StiArcSegmentGeom,G=t.Base.Context.StiLineSegmentGeom,_=t.Base.Context.StiLinesSegmentGeom,L=t.Base.Context.StiCurveSegmentGeom,N=t.Base.Context.StiCloseFigureSegmentGeom,O=t.System.Drawing.Drawing2D.Matrix,Z=t.Report.Chart.IStiChart,M=t.Base.Drawing.StiPenStyle,H=t.System.Drawing.Font,W=t.Base.Drawing.StiBrush,V=function(){function t(){}return t.renderChart=function(t,p,M){var W=t.Component.sti_as(Z),V=new o,Y=new n(V,!0,!1,!1,1),j=W.isAnimation;W.isAnimation=!1;var X=.96;W.core.render(Y,new u(0,0,t.service.report.unit.convertToHInches(t.Component.width)*X,t.service.report.unit.convertToHInches(t.Component.height)*X),!0).drawGeom(Y),W.isAnimation=j;var J=new O(1,0,0,1,0,0),K=t.service.hiToTwips/.96;J.translate(t.X,t.Y+t.Height),J.scale(1,-1),J.scale(K,K);var U=new e.StiPdfGeomWriter(t.service.pageStream,t.service,p);U.pageNumber=M,U.matrixCache.push(J);for(var z=0,Q=Y.geoms;z<Q.length;z++){var q=Q[z];if(q.sti_is(h)){var $=q.sti_as(h);U.saveState(),U.translateTransform($.x,$.y)}if(q.sti_is(g)){var tt=q.sti_as(g);U.saveState(),U.rotateTransform(tt.angle)}if(q.sti_is(m)&&U.restoreState(),q.sti_is(y)){var et=q.sti_as(y);U.saveState(),U.setClip(et.clipRectangle)}if(q.sti_is(b)&&U.restoreState(),q.sti_is(C)&&U.saveState(),q.sti_is(v)&&U.restoreState(),q.sti_is(I)&&U.saveState(),q.sti_is(A)&&U.restoreState(),q.sti_is(d)){var it=q.sti_as(d);null!=it.background&&U.fillRectangle(this.rectToRectangle(it.rect),it.background),this.checkPenGeom(it.borderPen)&&U.drawRectangle(this.rectToRectangle(it.rect),it.borderPen)}if(q.sti_is(S)){var rt=q.sti_as(S);this.checkPenGeom(rt.pen)&&U.drawLine(new a(rt.x1,rt.y1),new a(rt.x2,rt.y2),rt.pen)}if(q.sti_is(f)){var nt=q.sti_as(f);this.checkPenGeom(nt.pen)&&U.drawPolyline(nt.points,nt.pen)}if(q.sti_is(w)){var ot=q.sti_as(w);this.checkPenGeom(ot.pen)&&U.drawSpline(ot.points,ot.tension,ot.pen)}if(q.sti_is(T)){var at=q.sti_as(T);null!=at.background&&U.fillEllipse(this.rectToRectangle(at.rect),at.background),this.checkPenGeom(at.borderPen)&&U.drawEllipse(this.rectToRectangle(at.rect),at.borderPen)}if(q.sti_is(B)){var st=q.sti_as(B),lt=st.rect,ut=st.sides,ct=lt.y+8,pt=lt.x+8,ht=(ut&R.Edge)>0?4:0;(ut&R.Top)>0&&(ct=lt.y+4),(ut&R.Left)>0&&(pt=lt.x+4);for(var gt=0;gt<3;gt++){var mt=new Array;(ut&R.Right)>0?(mt.add(new a(lt.right,ct)),(ut&R.Bottom)>0?(mt.add(new a(lt.right,lt.bottom)),mt.add(new a(pt,lt.bottom)),mt.add(new a(pt,lt.bottom+gt+1)),mt.add(new a(lt.right+gt+1,lt.bottom+gt+1))):(mt.add(new a(lt.right,lt.bottom+ht)),mt.add(new a(lt.right+gt+1,lt.bottom+ht))),mt.add(new a(lt.right+gt+1,ct))):(mt.add(new a(pt,lt.bottom)),mt.add(new a(lt.right+ht,lt.bottom)),mt.add(new a(lt.right+ht,lt.bottom+gt+1)),mt.add(new a(pt,lt.bottom+gt+1)));var dt=new P(i.fromArgb(40-10*gt,i.black));U.fillPolygon(mt,dt)}}if(q.sti_is(F))var St=q.sti_as(F);if(q.sti_is(x)){var ft=q.sti_as(x),yt=new H(ft.font.fontName,ft.font.fontSize,ft.font.fontStyle,ft.font.unit),bt=new c;bt.alignment=ft.stringFormat.alignment,bt.formatFlags=ft.stringFormat.formatFlags,bt.hotkeyPrefix=ft.stringFormat.hotkeyPrefix,bt.lineAlignment=ft.stringFormat.lineAlignment,bt.trimming=ft.stringFormat.trimming;var Ct=this.brushToStiBrush(ft.brush);if(ft.isRotatedText){var vt=new a;if(ft.location.sti_is(a))vt=ft.location.sti_as(a);else if(ft.location.sti_is(s)){var It=ft.location.sti_as(s);vt=new a(It.x,It.y)}else{var At=this.rectToRectangle(ft.location);vt=new a(At.x+At.width/2,At.y+At.height/2)}var wt=r.measureString(ft.text,yt,ft.maximalWidth),Tt=new l(0,0,wt.width,wt.height),Bt=this.getStartPoint(ft.rotationMode,Tt);Tt.x-=Bt.x,Tt.y-=Bt.y,U.saveState(),U.translateTransform(vt.x,vt.y),U.rotateTransform(ft.angle),U.drawString(ft.text,yt,Ct,Tt,bt),U.restoreState()}else U.drawString(ft.text,yt,Ct,this.rectToRectangle(ft.location),bt)}if(q.sti_is(D)){var Rt=q.sti_as(D);U.beginPath();for(var Pt=0,Ft=Rt.geoms;Pt<Ft.length;Pt++){var xt=Ft[Pt];if(xt.sti_is(k)){var Dt=xt.sti_as(k);U.drawPie(Dt.rect,Dt.startAngle,Dt.sweepAngle)}if(xt.sti_is(E)){var kt=xt.sti_as(E);U.drawArc(kt.rect,kt.startAngle,kt.sweepAngle)}if(xt.sti_is(G)){var Et=xt.sti_as(G);U.drawLine(new a(Et.x1,Et.y1),new a(Et.x2,Et.y2),null)}if(xt.sti_is(_)){var Gt=xt.sti_as(_);U.drawPolyline(Gt.points,null)}if(xt.sti_is(L)){var _t=xt.sti_as(L);U.drawSpline(_t.points,_t.tension,null)}xt.sti_is(N)&&U.closeFigure()}U.closeFigure(),U.endPath(),null!=Rt.background&&U.fillPath(Rt.background),this.checkPenGeom(Rt.pen)&&U.strokePath(Rt.pen)}}},t.getStartPoint=function(t,e){var i=new a(e.x+e.width/2,e.y+e.height/2);switch(t){case p.LeftCenter:return new a(e.x,i.y);case p.LeftBottom:return new a(e.x,e.bottom);case p.CenterTop:return new a(i.x,e.top);case p.CenterCenter:return i;case p.CenterBottom:return new a(i.x,e.bottom);case p.RightTop:return new a(e.right,e.top);case p.RightCenter:return new a(e.right,i.y);case p.RightBottom:return new a(e.right,e.bottom);default:return new a(e.x,e.y)}},t.rectToRectangle=function(t){if(null==t)return new l;if(t.sti_is(l))return t.sti_as(l);if(t.sti_is(u)){var e=t.sti_as(u);return new l(e.x,e.y,e.width,e.height)}return new l},t.brushToStiBrush=function(t){if(null==t)return null;if(t.sti_is(i))return new P(t.sti_as(i));if(t.sti_is(W))return t.sti_as(W);return null},t.checkPenGeom=function(t){return!(null==t||null==t.brush||t.penStyle==M.None)},t}();e.StiPdfRenderChart=V}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.Base.Drawing.StiBrush,n=t.Base.Drawing.StiGradientBrush,o=t.Base.Drawing.StiGlareBrush,a=t.Base.Drawing.StiHatchBrush,s=t.Base.Drawing.StiGlassBrush,l=t.Report.Components.IStiBrush,u=t.Base.Drawing.StiBorderSides,c=t.Report.Components.IStiBorder,p=t.Base.Drawing.StiBorderSide,h=t.Base.Drawing.StiAdvancedBorder,g=t.Base.Drawing.StiPenStyle,m=t.Report.Components.StiShape,d=t.Report.Components.StiVerticalLineShapeType,S=t.Report.Components.StiHorizontalLineShapeType,f=t.Report.Components.StiTopAndBottomLineShapeType,y=t.Report.Components.StiLeftAndRightLineShapeType,b=t.Report.Components.StiRectangleShapeType,C=t.Report.Components.StiRoundedRectangleShapeType,v=t.Report.Components.StiDiagonalDownLineShapeType,I=t.Report.Components.StiDiagonalUpLineShapeType,A=t.Report.Components.StiTriangleShapeType,w=t.Report.Components.StiOvalShapeType,T=t.Report.Components.StiArrowShapeType,B=t.Report.Components.StiOctagonShapeType,R=t.Report.Components.StiComplexArrowShapeType,P=t.Report.Components.StiBentArrowShapeType,F=t.Report.Components.StiChevronShapeType,x=t.Report.Components.StiDivisionShapeType,D=t.Report.Components.StiEqualShapeType,k=t.Report.Components.StiFlowchartCardShapeType,E=t.Report.Components.StiFlowchartCollateShapeType,G=t.Report.Components.StiFlowchartDecisionShapeType,_=t.Report.Components.StiFlowchartManualInputShapeType,L=t.Report.Components.StiFlowchartOffPageConnectorShapeType,N=t.Report.Components.StiFlowchartPreparationShapeType,O=t.Report.Components.StiFlowchartSortShapeType,Z=t.Report.Components.StiFrameShapeType,M=t.Report.Components.StiMinusShapeType,H=t.Report.Components.StiMultiplyShapeType,W=t.Report.Components.StiParallelogramShapeType,V=t.Report.Components.StiPlusShapeType,Y=t.Report.Components.StiRegularPentagonShapeType,j=t.Report.Components.StiTrapezoidShapeType,X=t.Report.Components.StiSnipSameSideCornerRectangleShapeType,J=t.Report.Components.StiSnipDiagonalSideCornerRectangleShapeType,K=t.Report.Components.StiShapeDirection,U=t.System.Drawing.Rectangle,z=t.Report.Components.StiCheckBox,Q=t.Report.Components.StiCheckStyle,q=function(){function t(){}return t.renderBorder1=function(t){var e=i.transparent,u=t.Component.sti_as(l);if(null!=u&&null!=u.brush&&(e=r.toColor(u.brush)),t.service.setNonStrokeColor(e),null!=u&&null!=u.brush){if(t.service.storeShadingData2(t.X,t.Y,t.Width,t.Height,u.brush),(u.brush.sti_is(n)||u.brush.sti_is(o))&&t.service.pageStream.writeLine("/Pattern cs /P{0} scn",1+t.service.shadingCurrent),u.brush.sti_is(a)){var c=u.brush.sti_as(a);t.service.pageStream.writeLine("/Cs1 cs /PH{0} scn",t.service.getHatchNumber(c)+1)}if(u.brush.sti_is(s))var p=u.brush.sti_as(s)}0!=e.a&&t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.Width),t.service.convertToString(t.Height))},t.renderBorder2=function(t){var e=t.Component.sti_as(c);if(null!=e){var n=i.transparent;if(e.border.dropShadow&&null!=e.border.shadowBrush&&(n=r.toColor(e.border.shadowBrush),0!=n.a)){var o=.8*e.border.shadowSize;t.service.setNonStrokeColor(n),t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X+o),t.service.convertToString(t.Y-o),t.service.convertToString(t.Width-o),t.service.convertToString(o)),t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y-o),t.service.convertToString(o),t.service.convertToString(t.Height))}var a=new p(e.border.color,e.border.size,e.border.style),s=e.border.sti_as(h),l=null!=s,m=e.border.isLeftBorderSidePresent,d=e.border.isRightBorderSidePresent,S=e.border.isTopBorderSidePresent,f=e.border.isBottomBorderSidePresent,y=e.border.style!=g.None&&e.border.style!=g.Solid,b=e.border.side!=u.None&&e.border.style!=g.None;if(l&&(b=s.side!=u.None),b){var C=0;l||(y&&(t.service.pageStream.writeLine("q"),t.service.pushColorToStack()),C=this.storeBorderSideData(a,t)),l||e.border.side!=u.All?(m&&(l&&(a=s.leftSide,a.style!=g.Solid&&(t.service.pageStream.writeLine("q"),t.service.pushColorToStack()),C=this.storeBorderSideData(a,t)),t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X-C),t.service.convertToString(t.Y-C)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X-C),t.service.convertToString(t.Y+t.Height+C)),a.style==g.Double&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+C),t.service.convertToString(t.Y+(f?C:-C))),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+C),t.service.convertToString(t.Y+t.Height+(S?-C:C)))),l&&a.style!=g.Solid&&(t.service.pageStream.writeLine("Q"),t.service.popColorFromStack())),d&&(l&&(a=s.rightSide,a.style!=g.Solid&&(t.service.pageStream.writeLine("q"),t.service.pushColorToStack()),C=this.storeBorderSideData(a,t)),t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+t.Width+C),t.service.convertToString(t.Y-C)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width+C),t.service.convertToString(t.Y+t.Height+C)),a.style==g.Double&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+t.Width-C),t.service.convertToString(t.Y+(f?C:-C))),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width-C),t.service.convertToString(t.Y+t.Height+(S?-C:C)))),l&&a.style!=g.Solid&&(t.service.pageStream.writeLine("Q"),t.service.popColorFromStack())),S&&(l&&(a=s.topSide,a.style!=g.Solid&&(t.service.pageStream.writeLine("q"),t.service.pushColorToStack()),C=this.storeBorderSideData(a,t)),t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X-C),t.service.convertToString(t.Y+t.Height+C)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width+C),t.service.convertToString(t.Y+t.Height+C)),a.style==g.Double&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+(m?C:-C)),t.service.convertToString(t.Y+t.Height-C)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width+(d?-C:C)),t.service.convertToString(t.Y+t.Height-C))),l&&a.style!=g.Solid&&(t.service.pageStream.writeLine("Q"),t.service.popColorFromStack())),f&&(l&&(a=s.bottomSide,a.style!=g.Solid&&(t.service.pageStream.writeLine("q"),t.service.pushColorToStack()),C=this.storeBorderSideData(a,t)),t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X-C),t.service.convertToString(t.Y-C)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width+C),t.service.convertToString(t.Y-C)),a.style==g.Double&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+(m?C:-C)),t.service.convertToString(t.Y+C)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width+(d?-C:C)),t.service.convertToString(t.Y+C))),l&&a.style!=g.Solid&&(t.service.pageStream.writeLine("Q"),t.service.popColorFromStack()))):(t.service.pageStream.writeLine("{0} {1} {2} {3} re S",t.service.convertToString(t.X-C),t.service.convertToString(t.Y-C),t.service.convertToString(t.Width+2*C),t.service.convertToString(t.Height+2*C)),e.border.style==g.Double&&t.service.pageStream.writeLine("{0} {1} {2} {3} re S",t.service.convertToString(t.X+C),t.service.convertToString(t.Y+C),t.service.convertToString(t.Width-2*C),t.service.convertToString(t.Height-2*C))),!l&&y&&(t.service.pageStream.writeLine("Q"),t.service.popColorFromStack())}}},t.storeBorderSideData=function(t,e){var i=t.size;i<1&&(i=1),t.style==g.Double&&(i=1);var r=i*e.service.hiToTwips*.9;e.service.pageStream.writeLine("{0} w",e.service.convertToString(r));var n=this.getPenStyleDashString(t.style,.04*r,e);return null!=n&&e.service.pageStream.writeLine(n),e.service.setStrokeColor(t.color),t.style==g.Double?r:0},t.getPenStyleDashString=function(t,e,i){switch(t){case g.Dot:return String.stiFormat("[{0} {1}] 0 d",i.service.convertToString(e),i.service.convertToString(58*e));case g.Dash:return String.stiFormat("[{0} {1}] 0 d",i.service.convertToString(49.5*e),i.service.convertToString(62*e));case g.DashDot:return String.stiFormat("[{0} {1} {2} {1}] 0 d",i.service.convertToString(50*e),i.service.convertToString(55*e),i.service.convertToString(e));case g.DashDotDot:return String.stiFormat("[{0} {1} {2} {1} {2} {1}] 0 d",i.service.convertToString(50*e),i.service.convertToString(55*e),i.service.convertToString(e))}return null},t.checkShape=function(t){if(t.shapeType.sti_is(d)||t.shapeType.sti_is(S)||t.shapeType.sti_is(f)||t.shapeType.sti_is(y)||t.shapeType.sti_is(b)||t.shapeType.sti_is(C)||t.shapeType.sti_is(v)||t.shapeType.sti_is(I)||t.shapeType.sti_is(A)||t.shapeType.sti_is(w)||t.shapeType.sti_is(T)||t.shapeType.sti_is(B)||t.shapeType.sti_is(R)||t.shapeType.sti_is(P)||t.shapeType.sti_is(F)||t.shapeType.sti_is(x)||t.shapeType.sti_is(D)||t.shapeType.sti_is(k)||t.shapeType.sti_is(E)||t.shapeType.sti_is(G)||t.shapeType.sti_is(_)||t.shapeType.sti_is(L)||t.shapeType.sti_is(N)||t.shapeType.sti_is(O)||t.shapeType.sti_is(Z)||t.shapeType.sti_is(M)||t.shapeType.sti_is(H)||t.shapeType.sti_is(W)||t.shapeType.sti_is(V)||t.shapeType.sti_is(Y)||t.shapeType.sti_is(j)||t.shapeType.sti_is(X)||t.shapeType.sti_is(J))return!0;return!1},
t.renderShape=function(t,s){var u=t.Component.sti_as(m);if(null!=u)if(1==this.checkShape(u)){var c=t.Component.sti_as(l),p=new e.StiPdfGeomWriter(t.service.pageStream,t.service,!1),h=i.transparent;if(null!=c&&(h=r.toColor(c.brush)),0!=h.a&&t.service.setNonStrokeColor(h),null!=c&&((c.brush.sti_is(n)||c.brush.sti_is(o))&&(t.service.storeShadingData2(t.X,t.Y,t.Width,t.Height,c.brush),t.service.pageStream.writeLine("/Pattern cs /P{0} scn",1+t.service.shadingCurrent)),c.brush.sti_is(a))){var z=c.brush.sti_as(a);t.service.pageStream.writeLine("/Cs1 cs /PH{0} scn",t.service.getHatchNumber(z)+1)}var Q=u.borderColor;t.service.setStrokeColor(Q);var q=h.a>0,$=u.style!=g.None;if(!q&&!$)return;var tt=q?$?"B":"f":$?"S":"n";t.service.pageStream.writeLine("{0} w",t.service.convertToString(u.size*t.service.hiToTwips)),t.service.pageStream.writeLine("q");var et=u.size*t.service.hiToTwips*.04;switch(u.style){case g.Dot:t.service.pageStream.writeLine("[{0} {1}] 0 d",t.service.convertToString(et),t.service.convertToString(55*et));break;case g.Dash:t.service.pageStream.writeLine("[{0} {1}] 0 d",t.service.convertToString(50*et),t.service.convertToString(55*et));break;case g.DashDot:t.service.pageStream.writeLine("[{0} {1} {2} {1}] 0 d",t.service.convertToString(50*et),t.service.convertToString(55*et),t.service.convertToString(et));break;case g.DashDotDot:t.service.pageStream.writeLine("[{0} {1} {2} {1} {2} {1}] 0 d",t.service.convertToString(50*et),t.service.convertToString(55*et),t.service.convertToString(et));break}if(u.shapeType.sti_is(d)&&(q&&t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.Width),t.service.convertToString(t.Height)),$&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height)))),u.shapeType.sti_is(S)&&(q&&t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.Width),t.service.convertToString(t.Height)),$&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height/2)))),u.shapeType.sti_is(f)&&(q&&t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.Width),t.service.convertToString(t.Height)),$&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y)))),u.shapeType.sti_is(y)&&(q&&t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.Width),t.service.convertToString(t.Height)),$&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height)))),u.shapeType.sti_is(b)&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y))),u.shapeType.sti_is(v)&&(q&&t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.Width),t.service.convertToString(t.Height)),$&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y)))),u.shapeType.sti_is(I)&&(q&&t.service.pageStream.writeLine("{0} {1} {2} {3} re f",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.Width),t.service.convertToString(t.Height)),$&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l S",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height)))),u.shapeType.sti_is(A)){var it=u.shapeType.sti_as(A).direction;it==K.Up&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y))),it==K.Down&&(tt=q?$?"B*":"f*":$?"S":"n",t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height))),it==K.Left&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y))),it==K.Right&&(tt=q?$?"B*":"f*":$?"S":"n",t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y)))}if(u.shapeType.sti_is(w)&&t.service.pageStream.writeLine(p.getEllipseString(new U(t.X,t.Y,t.Width,t.Height))+tt),u.shapeType.sti_is(C)){var rt=u.shapeType.sti_as(C).round,nt=t.Width;nt>t.Height&&(nt=t.Height);var ot=Math.min(nt,70)*rt,at=ot*(1-t.service.pdfCKT);t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+ot)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height-ot)),t.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} c",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height-at),t.service.convertToString(t.X+at),t.service.convertToString(t.Y+t.Height),t.service.convertToString(t.X+ot),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ot),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} c",t.service.convertToString(t.X+t.Width-at),t.service.convertToString(t.Y+t.Height),t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height-at),t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height-ot)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+ot)),t.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} c",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+at),t.service.convertToString(t.X+t.Width-at),t.service.convertToString(t.Y),t.service.convertToString(t.X+t.Width-ot),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ot),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} c "+tt,t.service.convertToString(t.X+at),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y+at),t.service.convertToString(t.X),t.service.convertToString(t.Y+ot))}if(u.shapeType.sti_is(T)){var it=u.shapeType.sti_as(T).direction,st=u.shapeType.sti_as(T).arrowWidth,lt=u.shapeType.sti_as(T).arrowHeight,ut=t.Width*st,ct=t.Height*lt;it!=K.Left&&it!=K.Right||(ut=t.Height*st,ct=t.Width*lt),0==lt&&(ct=Math.min(t.Width/2,t.Height/2)),it==K.Up&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+ut),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ut),t.service.convertToString(t.Y+t.Height-ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height-ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height-ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ut),t.service.convertToString(t.Y+t.Height-ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ut),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X+ut),t.service.convertToString(t.Y))),it==K.Down&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+t.Width-ut),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ut),t.service.convertToString(t.Y+ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ut),t.service.convertToString(t.Y+ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ut),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X+t.Width-ut),t.service.convertToString(t.Y+t.Height))),it==K.Left&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+ut)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ct),t.service.convertToString(t.Y+ut)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ct),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ct),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ct),t.service.convertToString(t.Y+t.Height-ut)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height-ut)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+ut))),it==K.Right&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height-ut)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ct),t.service.convertToString(t.Y+t.Height-ut)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ct),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ct),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ct),t.service.convertToString(t.Y+ut)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+ut)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height-ut)))}if(u.shapeType.sti_is(B)){var pt=u.shapeType.sti_as(B),ht=(null!=u.report?u.report.unit.convertToHInches(pt.bevel):pt.bevel)*t.service.hiToTwips,gt=ht;pt.autoSize&&(ht=t.Width/(2.414*1.414),gt=t.Height/(2.414*1.414)),ht>t.Width/2&&(ht=t.Width/2),gt>t.Height/2&&(gt=t.Height/2),t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+ht),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ht),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+gt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width),t.service.convertToString(t.Y+t.Height-gt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width-ht),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+ht),t.service.convertToString(t.Y+t.Height)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height-gt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+gt)),t.service.pageStream.writeLine("{0} {1} l "+tt,t.service.convertToString(t.X+ht),t.service.convertToString(t.Y))}if(u.shapeType.sti_is(R)){var mt=t.Width<t.Height?t.Width/2:t.Height/2,dt=t.Height/3.8,St=t.Width/3.8,ft=t.Height<t.Width?t.Height/2:t.Width/2;switch(u.shapeType.sti_as(R).direction){case K.Left:case K.Right:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+mt),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+mt),t.service.convertToString(t.Y+dt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-mt),t.service.convertToString(t.Y+dt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-mt),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-mt),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-mt),t.service.convertToString(t.Top-dt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+mt),t.service.convertToString(t.Top-dt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+mt),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y+t.Height/2));break;case K.Down:case K.Up:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y+ft)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Y+ft)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-St),t.service.convertToString(t.Y+ft)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-St),t.service.convertToString(t.Top-ft)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top-ft)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Top-ft)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+St),t.service.convertToString(t.Top-ft)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+St),t.service.convertToString(t.Y+ft)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y+ft));break}}if(u.shapeType.sti_is(P)){var yt=0,bt=0,Ct=0;switch(t.Height>t.Width?(bt=t.Width/4,yt=bt,Ct=bt/2):(yt=Math.floor(t.Height/4),bt=yt,Ct=bt/2),u.shapeType.sti_as(P).direction){case K.Up:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+yt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-(Ct+yt)),t.service.convertToString(t.Y+yt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-(Ct+yt)),t.service.convertToString(t.Top-bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-2*bt),t.service.convertToString(t.Top-bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-bt),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top-bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-Ct),t.service.convertToString(t.Top-bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-Ct),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y));break;case K.Left:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.Right),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top-Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+bt),t.service.convertToString(t.Top-Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+bt),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Top-bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+bt),t.service.convertToString(t.Top-2*bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+bt),t.service.convertToString(t.Top-bt-Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-yt),t.service.convertToString(t.Top-bt-Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-yt),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Y));break;case K.Down:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.Right),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+Ct),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+Ct),t.service.convertToString(t.Y+bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+bt),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+2*bt),t.service.convertToString(t.Y+bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+bt+Ct),t.service.convertToString(t.Y+bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+bt+Ct),t.service.convertToString(t.Top-yt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top-yt)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top));break;case K.Right:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-bt),t.service.convertToString(t.Y+Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-bt),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Y+bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-bt),t.service.convertToString(t.Y+2*bt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-bt),t.service.convertToString(t.Y+bt+Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+yt),t.service.convertToString(t.Y+bt+Ct)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+yt),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Top));break}}if(u.shapeType.sti_is(F)){var vt=t.Width>t.Height?t.Height/2:t.Width/2;switch(u.shapeType.sti_as(F).direction){case K.Right:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+vt),t.service.convertToString(t.Top-t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-vt),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top-t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-vt),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Top));break;case K.Left:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.Right),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+vt),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/2)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+vt),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right-vt),t.service.convertToString(t.Top-t.Height/2)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top));break;case K.Up:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Top-vt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top-vt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+vt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Top-vt));break;case K.Down:t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top-vt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.Right),t.service.convertToString(t.Y+vt)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l",t.service.convertToString(t.X),t.service.convertToString(t.Y+vt)),t.service.pageStream.writeLine("{0} {1} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Top));break}}if(u.shapeType.sti_is(x)){var mt=t.Height/3,It=4*t.service.hiToTwips;t.service.pageStream.writeLine(p.getRectString4(t.X,t.Y+mt+It,t.Width,mt-2*It)+tt),t.service.pageStream.writeLine(p.getEllipseString4(t.X+t.Width/2-mt/2,t.Top-t.service.hiToTwips-mt,mt,mt)+tt),t.service.pageStream.writeLine(p.getEllipseString4(t.X+t.Width/2-mt/2,t.Y+2*t.service.hiToTwips,mt,mt)+tt)}if(u.shapeType.sti_is(D)){var At=(t.Height-t.Height/6)/2;t.service.pageStream.writeLine(p.getRectString4(t.X,t.Top-At,t.Width,At)+tt),t.service.pageStream.writeLine(p.getRectString4(t.X,t.Y,t.Width,At)+tt)}if(u.shapeType.sti_is(k)&&(t.service.pageStream.writeLine("{0} {1} m {2} {3} l",t.service.convertToString(t.Right),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/5),t.service.convertToString(t.X+t.Width/5),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top))),u.shapeType.sti_is(E))switch(u.shapeType.sti_as(E).direction){case K.Down:case K.Up:t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height/2),t.service.convertToString(t.Right),t.service.convertToString(t.Y));break;case K.Left:case K.Right:t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height/2)),t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Y),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height/2),t.service.convertToString(t.Right),t.service.convertToString(t.Top));break}if(u.shapeType.sti_is(G)&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/2)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top-t.Height/2),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/2))),u.shapeType.sti_is(_)&&(t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/5)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/5))),u.shapeType.sti_is(L)){var mt=t.Height/5,ft=t.Width/5;switch(u.shapeType.sti_as(L).direction){case K.Down:t.service.pageStream.writeLine("{0} {1} m {2} {3} l",t.service.convertToString(t.X),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Y+mt),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y+mt),t.service.convertToString(t.X),t.service.convertToString(t.Top));break;case K.Up:t.service.pageStream.writeLine("{0} {1} m {2} {3} l",t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top-mt),t.service.convertToString(t.Right),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y));break;case K.Left:t.service.pageStream.writeLine("{0} {1} m {2} {3} l",t.service.convertToString(t.X+ft),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Y),t.service.convertToString(t.X+ft),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/2),t.service.convertToString(t.X+ft),t.service.convertToString(t.Top));break;case K.Right:t.service.pageStream.writeLine("{0} {1} m {2} {3} l",t.service.convertToString(t.X),t.service.convertToString(t.Top),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top-t.Height/2),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top));break}}if(u.shapeType.sti_is(N)){var ft=t.Width/5,mt=t.Height/5,wt=t.Width/2,Tt=t.Height/2;switch(u.shapeType.sti_as(N).direction){case K.Left:case K.Right:t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l",t.service.convertToString(t.X),t.service.convertToString(t.Top-Tt),t.service.convertToString(t.X+ft),t.service.convertToString(t.Top),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top-Tt),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Y),t.service.convertToString(t.X+ft),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-Tt));break;case K.Down:case K.Up:t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l",t.service.convertToString(t.X+wt),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top-mt),t.service.convertToString(t.Right),t.service.convertToString(t.Y+mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X+wt),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y+mt),t.service.convertToString(t.X),t.service.convertToString(t.Top-mt),t.service.convertToString(t.X+wt),t.service.convertToString(t.Top));break}}if(u.shapeType.sti_is(O)&&(t.service.pageStream.writeLine("{0} {1} m {2} {3} l",t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/2),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top-t.Height/2),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-t.Height/2),t.service.convertToString(t.Right),t.service.convertToString(t.Top-t.Height/2))),u.shapeType.sti_is(Z)){var ft=t.Width/7,mt=t.Height/7;t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l {6} {7} l h",t.service.convertToString(t.X),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y)),t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X+ft),t.service.convertToString(t.Top-mt),t.service.convertToString(t.X+ft),t.service.convertToString(t.Y+mt),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Y+mt),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top-mt))}if(u.shapeType.sti_is(M)){var mt=t.Height/3;t.service.pageStream.writeLine(p.getRectString4(t.X,t.Y+mt,t.Width,mt)+tt)}if(u.shapeType.sti_is(H)){var ft=t.Width/4,mt=t.Height/4;t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X),t.service.convertToString(t.Top-mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l",t.service.convertToString(t.X+ft),t.service.convertToString(t.Top),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top-mt),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top-mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l",t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top-t.Height/2),t.service.convertToString(t.Right),t.service.convertToString(t.Y+mt),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Y),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l h "+tt,t.service.convertToString(t.X+ft),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y+mt),t.service.convertToString(t.X+ft),t.service.convertToString(t.Top-t.Height/2))}if(u.shapeType.sti_is(W)){var ft=t.Width/7,mt=t.Height/7;t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X+t.Width/5),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top),t.service.convertToString(t.Right-t.Width/5),t.service.convertToString(t.Y))}if(u.shapeType.sti_is(V)){var ft=t.Width/3,mt=t.Height/3;t.service.pageStream.writeLine("{0} {1} m",t.service.convertToString(t.X+ft),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l",t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top-mt),t.service.convertToString(t.Right),t.service.convertToString(t.Top-mt),t.service.convertToString(t.Right),t.service.convertToString(t.Y+mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l",t.service.convertToString(t.Right-ft),t.service.convertToString(t.Y+mt),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Y),t.service.convertToString(t.X+ft),t.service.convertToString(t.Y),t.service.convertToString(t.X+ft),t.service.convertToString(t.Y+mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y+mt),t.service.convertToString(t.X),t.service.convertToString(t.Top-mt),t.service.convertToString(t.X+ft),t.service.convertToString(t.Top-mt),t.service.convertToString(t.X+ft),t.service.convertToString(t.Top))}if(u.shapeType.sti_is(Y)){var Bt=t.Height/2.6,Rt=t.Width/5.5;t.service.pageStream.writeLine("{0} {1} m {2} {3} l",t.service.convertToString(t.X),t.service.convertToString(t.Top-Bt),t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top-Bt),t.service.convertToString(t.Right-Rt),t.service.convertToString(t.Y),t.service.convertToString(t.X+Rt),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Top-Bt))}if(u.shapeType.sti_is(j)){var vt=t.Width/4.75;t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l {6} {7} l h "+tt,t.service.convertToString(t.X),t.service.convertToString(t.Y),t.service.convertToString(t.X+vt),t.service.convertToString(t.Top),t.service.convertToString(t.Right-vt),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Y))}if(u.shapeType.sti_is(X)){var ft=t.Width/7.2,mt=t.Height/4.6;t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l",t.service.convertToString(t.X),t.service.convertToString(t.Top-mt),t.service.convertToString(t.X+ft),t.service.convertToString(t.Top),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Top-mt),t.service.convertToString(t.Right),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y))}if(u.shapeType.sti_is(J)){var ft=t.Width/7.2,mt=t.Height/4.6;t.service.pageStream.writeLine("{0} {1} m {2} {3} l {4} {5} l",t.service.convertToString(t.X),t.service.convertToString(t.Top),t.service.convertToString(t.Right-ft),t.service.convertToString(t.Top),t.service.convertToString(t.Right),t.service.convertToString(t.Top-mt)),t.service.pageStream.writeLine("{0} {1} l {2} {3} l {4} {5} l h "+tt,t.service.convertToString(t.Right),t.service.convertToString(t.Y),t.service.convertToString(t.X+ft),t.service.convertToString(t.Y),t.service.convertToString(t.X),t.service.convertToString(t.Y+mt))}t.service.pageStream.writeLine("Q")}else var Pt=s},t.renderCheckbox=function(t,e,i){void 0===i&&(i=!0);var s=t.Component.sti_as(z);if(null!=s){var l=null;switch(e?s.checkStyleForTrue:s.checkStyleForFalse){case Q.Cross:l="62.568 52.024 m 62.018 52.166 60.405 52.537 58.984 52.848 c 55.336 53.645 49.313 58.685 44.741 64.767 c 40.839 69.958 l 45.919 71.092 l \r\n"+"53.272 72.735 59.559 76.81 67.746 85.239 c 74.954 92.661 l 68.543 100.174 l 56.77 113.972 54.196 123.193 59.915 131.088 c 62.809 135.083 71.734 143.458 73.097 143.458 c \r\n"+"73.509 143.458 74.16 141.77 74.546 139.708 c 75.526 134.457 81.002 122.942 85.482 116.708 c 87.557 113.82 89.473 111.458 89.74 111.458 c \r\n"+"90.006 111.458 93.515 114.945 97.537 119.208 c 113.934 136.584 127.211 138.972 135.818 126.095 c 139.973 119.877 140.004 118.024 135.958 117.739 c \r\n"+"130.11 117.329 118.795 109.205 110.443 99.42 c 105.812 93.994 l 110.69 89.679 l 117.241 83.884 129.589 77.786 136.531 76.919 c \r\n"+"139.576 76.539 142.068 75.813 142.068 75.307 c 142.068 72.526 132.802 60.889 129.038 58.942 c 121.077 54.825 112.668 58.23 96.273 72.209 c \r\n"+"91.287 76.46 l 84.2 67.488 l 80.303 62.554 75.379 57.368 73.259 55.965 c 69.353 53.38 64.393 51.552 62.568 52.024 c h";break;case Q.Check:l="60.972 37.503 m 51.173 63.277 43.562 76.623 35.37 82.397 c 30.912 85.54 l 33.664 88.435 l 37.539 92.513 43.698 95.935 48.566 96.713 c \r\n"+"52.426 97.33 53.024 97.093 57.102 93.334 c 59.763 90.882 63.368 85.726 66.269 80.223 c 68.899 75.234 71.18 71.153 71.337 71.153 c \r\n"+"71.493 71.153 73.65 74.19 76.13 77.903 c 96.259 108.044 129.683 141.214 157.565 158.718 c 166.414 164.274 l 168.677 161.643 l \r\n"+"170.941 159.012 l 163.178 152.717 l 139.859 133.81 108.017 94.486 89.043 61.164 c 82.362 49.432 81.87 48.851 73.952 43.345 c \r\n"+"69.45 40.214 64.908 37.04 63.858 36.292 c 62.149 35.074 61.848 35.2 60.972 37.503 c h";break;case Q.CrossRectangle:l="24.153 97.958 m 24.153 170.458 l 98.653 170.458 l 173.153 170.458 l 173.153 97.958 l 173.153 25.458 l 98.653 25.458 l 24.153 25.458 l 24.153 97.958 l h \r\n"+"157.911 97.708 m 157.653 154.958 l 98.653 154.958 l 39.653 154.958 l 39.393 98.958 l 39.25 68.158 39.348 42.395 39.611 41.708 c \r\n"+"39.987 40.727 52.819 40.458 99.129 40.458 c 158.169 40.458 l 157.911 97.708 l h \r\n"+"67.337 54.521 m 65.513 54.912 62.41 56.378 60.442 57.778 c 57.123 60.14 48.153 70.186 48.153 71.541 c 48.153 71.87 50.57 72.68 53.525 73.342 c \r\n"+"60.71 74.95 67.272 79.277 75.328 87.718 c 82.003 94.713 l 75.624 102.027 l 64.931 114.288 61.644 123.705 65.472 131.108 c \r\n"+"67.054 134.168 78.562 145.458 80.098 145.458 c 80.556 145.458 81.245 143.77 81.63 141.708 c 82.611 136.457 88.086 124.942 92.567 118.708 c \r\n"+"94.642 115.82 96.558 113.458 96.824 113.458 c 97.091 113.458 100.6 116.945 104.622 121.208 c 121.019 138.584 134.296 140.972 142.903 128.095 c \r\n"+"147.058 121.877 147.089 120.024 143.043 119.739 c 137.213 119.33 124.806 110.39 117.127 101.066 c 113.226 96.33 113.155 96.112 114.876 94.198 c \r\n"+"118.066 90.648 128.579 83.654 133.847 81.578 c 136.682 80.461 141.285 79.244 144.077 78.873 c 146.868 78.503 149.153 77.878 149.153 77.484 c \r\n"+"149.153 75.37 140.777 64.275 137.501 62.048 c 129.107 56.344 120.869 59.278 103.358 74.209 c 98.372 78.46 l 91.285 69.488 l \r\n"+"81.563 57.18 74.76 52.928 67.337 54.521 c h";break;case Q.CheckRectangle:l="19.915 96.5 m 19.915 169 l 91.857 169 l 163.8 169 l 170.357 173.111 l 176.914 177.223 l 178.882 174.861 l 179.963 173.563 180.864 172.217 180.882 171.872 c \r\n"+"180.9 171.526 178.44 169.334 175.415 167 c 169.915 162.757 l 169.915 93.378 l 169.915 24 l 94.915 24 l 19.915 24 l 19.915 96.5 l h \r\n"+"153.915 92.622 m 153.915 141.962 153.786 146.137 152.294 144.899 c 149.513 142.592 136.609 126.998 127.965 115.5 c 117.473 101.544 104.486 81.963 98.451 71 c \r\n"+"93.993 62.903 93.316 62.192 84.16 56 c 78.873 52.425 74.256 49.375 73.9 49.223 c 73.544 49.07 71.988 52.22 70.441 56.223 c \r\n"+"68.895 60.225 65.183 68.635 62.192 74.911 c 57.906 83.903 55.515 87.56 50.914 92.161 c 47.703 95.372 44.364 98 43.495 98 c \r\n"+"40.697 98 41.79 99.66 47.479 104.049 c 53.073 108.365 60.662 111.14 64.28 110.194 c 67.84 109.263 73.689 102.039 78.2 93.002 c \r\n"+"82.663 84.062 l 87.207 90.895 l 95.518 103.394 108.214 118.311 125.807 136.25 c 143.215 154 l 89.565 154 l 35.915 154 l 35.915 96.5 l \r\n"+"35.915 39 l 94.915 39 l 153.915 39 l 153.915 92.622 l h";break;case Q.CrossCircle:l="83.347 26.864 m 61.07 31.95 42.193 47.128 32.202 67.986 c 23.401 86.36 23.68 110.034 32.919 128.958 c 41.882 147.315 60.868 162.86 80.847 168.201 c \r\n"+"91.083 170.936 112.112 170.628 121.812 167.6 c 147.999 159.425 167.881 138.673 173.432 113.721 c 175.869 102.768 175 85.662 171.452 74.743 c \r\n"+"164.795 54.256 145.804 35.792 124.126 28.729 c 117.735 26.647 113.94 26.133 102.847 25.845 c 93.814 25.61 87.363 25.947 83.347 26.864 c h \r\n"+"112.414 41.542 m 129.545 44.672 146.131 57.503 153.827 73.579 c 168.725 104.698 152.719 141.239 119.425 152.119 c 112.712 154.313 109.49 154.763 100.347 154.781 c \r\n"+"90.993 154.8 88.185 154.404 81.579 152.131 c 64.423 146.231 51.91 134.6 45.14 118.265 c 42.988 113.072 42.446 109.911 42.069 100.368 c \r\n"+"41.551 87.229 42.811 81.166 48.181 70.958 c 52.288 63.15 63.613 51.864 71.549 47.67 c 83.611 41.295 98.688 39.034 112.414 41.542 c h \r\n"+"69.097 66.583 m 66.21 69.342 63.847 71.942 63.847 72.361 c 63.847 72.78 69.506 78.671 76.422 85.451 c 88.996 97.78 l 76.198 110.607 l 63.4 123.434 l \r\n"+"68.336 128.446 l 71.051 131.202 73.641 133.458 74.091 133.458 c 74.542 133.458 80.666 127.846 87.7 120.988 c 100.49 108.517 l 104.919 113.071 l \r\n"+"107.354 115.575 113.31 121.259 118.154 125.701 c 126.961 133.777 l 132.308 128.496 l 137.656 123.215 l 124.694 110.658 l 111.733 98.1 l 124.866 84.939 l \r\n"+"137.999 71.779 l 132.815 67.118 l 129.964 64.555 127.11 62.458 126.474 62.458 c 125.837 62.458 119.93 67.858 113.347 74.458 c \r\n"+"106.765 81.058 100.96 86.458 100.449 86.458 c 99.938 86.458 93.856 80.857 86.933 74.013 c 74.347 61.567 l 69.097 66.583 l h";break;case Q.DotCircle:l="81.653 29.406 m 59.375 34.493 40.499 49.67 30.507 70.529 c 21.706 88.903 21.985 112.576 31.224 131.5 c 40.187 149.857 59.173 165.402 79.153 170.743 c \r\n"+"89.388 173.479 110.417 173.17 120.117 170.142 c 146.304 161.968 166.186 141.215 171.737 116.263 c 174.174 105.311 173.305 88.205 169.757 77.285 c \r\n"+"163.1 56.798 144.109 38.334 122.431 31.271 c 116.04 29.189 112.245 28.675 101.153 28.387 c 92.119 28.152 85.668 28.49 81.653 29.406 c h \r\n"+"111.653 44.504 m 132.341 48.848 149.671 64.959 155.751 85.5 c 158.113 93.481 158.113 107.519 155.751 115.5 c 150.089 134.629 134.635 149.703 114.653 155.588 c \r\n"+"106.553 157.973 90.741 157.974 82.695 155.589 c 62.46 149.592 46.687 133.961 41.605 114.869 c 39.656 107.547 39.74 91.753 41.764 84.932 c \r\n"+"50.494 55.507 80.736 38.013 111.653 44.504 c h \r\n"+"90.005 77.33 m 76.55 82.362 69.825 98.176 75.898 110.5 c 78.035 114.836 83.045 119.856 87.653 122.277 c 93.231 125.208 104.066 125.204 109.705 122.27 c \r\n"+"127.735 112.887 128.781 89.485 111.62 79.428 c 106.047 76.162 95.789 75.166 90.005 77.33 c h";break;case Q.DotRectangle:l="23.847 98.805 m 23.847 171.305 l 98.347 171.305 l 172.847 171.305 l 172.847 98.805 l 172.847 26.305 l 98.347 26.305 l 23.847 26.305 l 23.847 98.805 l h \r\n"+"157.847 98.813 m 157.847 156.321 l 98.597 156.063 l 39.347 155.805 l 39.089 98.555 l 38.831 41.305 l 98.339 41.305 l 157.847 41.305 l 157.847 98.813 l h \r\n"+"63.527 64.959 m 63.153 65.333 62.847 80.638 62.847 98.972 c 62.847 132.305 l 98.361 132.305 l 133.874 132.305 l 133.611 98.555 l 133.347 64.805 l \r\n"+"98.777 64.542 l 79.763 64.398 63.901 64.585 63.527 64.959 c h";break;case Q.NoneCircle:l="83.5 29.406 m 61.222 34.493 42.346 49.67 32.355 70.529 c 23.554 88.903 23.832 112.576 33.071 131.5 c 42.034 149.857 61.02 165.402 81 170.743 c \r\n"+"91.235 173.479 112.265 173.17 121.965 170.142 c 148.151 161.968 168.034 141.215 173.585 116.263 c 176.022 105.311 175.152 88.205 171.605 77.285 c \r\n"+"164.948 56.798 145.957 38.334 124.278 31.271 c 117.887 29.189 114.092 28.675 103 28.387 c 93.966 28.152 87.515 28.49 83.5 29.406 c h \r\n"+"113.5 44.504 m 134.189 48.848 151.519 64.959 157.598 85.5 c 159.961 93.481 159.961 107.519 157.598 115.5 c 151.937 134.629 136.483 149.703 116.5 155.588 c \r\n"+"108.401 157.973 92.589 157.974 84.543 155.589 c 64.308 149.592 48.534 133.961 43.453 114.869 c 41.504 107.547 41.588 91.753 43.612 84.932 c \r\n"+"52.342 55.507 82.583 38.013 113.5 44.504 c h";break;case Q.NoneRectangle:l="24.153 97.958 m 24.153 170.458 l 98.653 170.458 l 173.153 170.458 l 173.153 97.958 l 173.153 25.458 l 98.653 25.458 l 24.153 25.458 l 24.153 97.958 l h \r\n"+"157.911 97.708 m 157.653 154.958 l 98.653 154.958 l 39.653 154.958 l 39.393 98.958 l 39.25 68.158 39.348 42.395 39.611 41.708 c \r\n"+"39.987 40.727 52.819 40.458 99.129 40.458 c 158.169 40.458 l 157.911 97.708 l h";break}t.service.pageStream.writeLine("q"),t.service.pushColorToStack();var u=r.toColor(s.textBrush);if(0!=u.a&&t.service.setNonStrokeColor(u),(s.textBrush.sti_is(n)||s.textBrush.sti_is(o))&&(i&&t.service.storeShadingData2(t.X,t.Y,t.Width,t.Height,s.textBrush),t.service.pageStream.writeLine("/Pattern cs /P{0} scn",1+t.service.shadingCurrent)),s.textBrush.sti_is(a)){var c=s.textBrush.sti_as(a);t.service.pageStream.writeLine("/Cs1 cs /PH{0} scn",t.service.getHatchNumber(c)+1)}t.service.setStrokeColor(s.contourColor),t.service.pageStream.writeLine("{0} w",t.service.convertToString(s.size)),t.service.pageStream.writeLine("1 0 0 1 {0} {1} cm",t.service.convertToString(t.X+t.Width/2),t.service.convertToString(t.Y+t.Height/2));var p=Math.min(t.Width,t.Height),h=p/200;t.service.pageStream.writeLine("{0} 0 0 {0} 0 0 cm",t.service.convertToString(h)),t.service.pageStream.writeLine("1 0 0 1 -98 -98 cm"),t.service.pageStream.writeLine(l),t.service.pageStream.writeLine("B"),t.service.pageStream.writeLine("Q"),t.service.popColorFromStack()}},t.getCheckBoxValue=function(t){var e=null;if(null!=t&&null!=t.checkedValue){e=!1;var i=t.checkedValue.toString().trim().toLowerCase(),r=t.values.split("/");if(1==r.length&&(r=t.values.split(";")),1==r.length&&(r=t.values.split(",")),null!=r&&r.length>0){e=i==r[0].trim().toLowerCase()}}return e},t}();e.StiPdfRenderPrimitives=q}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.IStiTextBrush,r=t.Report.Components.IStiText,n=t.Report.Components.IStiTextHorAlignment,o=t.Report.Components.IStiVertAlignment,a=t.Report.Components.IStiTextOptions,s=t.Report.Components.IStiFont,l=t.Report.Components.StiText,u=t.Base.Drawing.StiTextHorAlignment,c=t.Base.Drawing.StiVertAlignment,p=t.System.Drawing.Color,h=t.Base.Drawing.StiBrush,g=t.Base.Drawing.StiGradientBrush,m=t.Base.Drawing.StiGlareBrush,d=t.Base.Drawing.StiHatchBrush,S=t.System.Text.StringBuilder,f=t.System.Char,y=t.System.Drawing.Drawing2D.Matrix,b=function(){function b(){}return b.renderText=function(b){var C=b.Component.sti_as(i),v=b.Component.sti_as(r),I=b.Component.sti_as(a),A=b.Component.sti_as(n),w=b.Component.sti_as(o),T=b.Component.sti_as(l),B=null!=I&&I.textOptions.wordWrap,R=null!=A&&A.horAlignment==u.Width,P=b.service.haveAnnots&&T.editable,F=null!=I&&null!=I.textOptions&&I.textOptions.rightToLeft,x=null,D=0,k=0,E=T.textQuality==t.Report.Components.StiTextQuality.Wysiwyg;if(R&&(B=!0),null!=v){P||(b.service.pageStream.writeLine("q"),b.service.pushColorToStack(),b.service.pageStream.writeLine("{0} {1} {2} {3} re W n",b.service.convertToString(b.X),b.service.convertToString(b.Y),b.service.convertToString(b.Width),b.service.convertToString(b.Height)));var G=p.transparent;if(null!=C){if(G=h.toColor(C.textBrush),b.service.setNonStrokeColor(G),b.service.storeShadingData2(b.X,b.Y,b.Width,b.Height,C.textBrush),(C.textBrush.sti_is(g)||C.textBrush.sti_is(m))&&b.service.pageStream.writeLine("/Pattern cs /P{0} scn",1+b.service.shadingCurrent),C.textBrush.sti_is(d)){var _=C.textBrush.sti_as(d);b.service.pageStream.writeLine("/Cs1 cs /PH{0} scn",b.service.getHatchNumber(_)+1)}if(P){var L=b.service.annotsArray[b.service.annotsCurrent];L.FontColor=G}}var N=1,O=b.Component.sti_as(s);null!=O&&(N=O.font.sizeInPoints);var Z=1,M=N*this.fontCorrectValue*b.service.pdfFont.tmASC/1e3*Z,H=N*this.fontCorrectValue*b.service.pdfFont.tmDESC/1e3*-1*Z,W=N*this.fontCorrectValue*b.service.pdfFont.tmExternal/1e3*Z,V=N*this.fontCorrectValue*b.service.pdfFont.UnderscoreSize/1e3*Z,Y=N*this.fontCorrectValue*b.service.pdfFont.UnderscorePosition/1e3*Z,j=N*this.fontCorrectValue*b.service.pdfFont.StrikeoutSize/1e3*Z,X=N*this.fontCorrectValue*b.service.pdfFont.StrikeoutPosition/1e3*Z,J=M-H+W,K=M,U=H,z=T.margins,Q=this.hiToTwips*z.left,q=this.hiToTwips*z.right,$=this.hiToTwips*z.top,tt=this.hiToTwips*z.bottom,et=b.X+Q,it=b.Y+tt,rt=b.Width-Q-q,nt=b.Height-$-tt;P&&(et-=b.X,it-=b.Y);var ot=.85,at=.85;et+=ot,rt-=2*ot,it+=at,nt-=2*at;var st=v.text;if(st=b.service.stringReplace(st,"\r",""),st=b.service.stringReplace(st,"",""),P&&(x=b.service.stringReplace(v.text,"\n","")),rt>0&&st.length>0){var lt=et,ut=it,ct=rt,pt=nt;if(null!=I&&0!=(k=I.textOptions.angle)){if(k>45&&k<135||k>225&&k<315){var ht=rt;rt=nt,nt=ht}et=-rt/2,it=-nt/2}var gt=e.StiExportUtils.splitString(st,!1);if(B)for(var mt=0;mt<gt.count;mt++){var dt=gt[mt],St=new S,ft=0;while(ft<dt.length)if(f.isWhitespace(dt,ft))St.append(dt.charAt(ft)),ft++;else{var yt=new S;while(ft<dt.length&&!f.isWhitespace(dt,ft))yt.append(dt.charAt(ft)),ft++;var bt=b.service.bidi.convert(yt,!1);St.append(bt);var Ct=yt.length-bt.length;Ct>0&&St.append(String.repeat(String.fromCharCode(0),Ct))}for(var vt=[],It=St.toString(),At=0;At<dt.length;At++)vt[At]=b.service.pdfFont.UnicodeMap[It.charCodeAt(At)];for(var wt=Array.create(Number,dt.length),Tt=Array.create(Number,dt.length),Bt=0,Rt=0,Pt=0;Pt<vt.length;Pt++)vt[Pt]>=32&&(Rt+=b.service.pdfFont.Widths[vt[Pt]-32]),9==vt[Pt]&&(Rt+=this.getTabsSize(I,N,Rt)),wt[Pt]=Math.trunc(Rt),this.isWordWrapSymbol(It,Pt)&&Pt>0&&Bt++,Tt[Pt]=Bt;var Ft=Rt*(N*this.fontCorrectValue)/1e3;if(Ft>rt){var Pt=dt.length-1,xt=Math.trunc(1e3*rt/(N*this.fontCorrectValue));while(wt[Pt]>xt&&Pt>0)Pt--;var Dt=Pt;if(Tt[Pt]>0)if(Tt[Pt]!=Tt[Pt+1]){Dt=Pt++;while(f.isWhitespace(It,Pt)&&"\t"!=It.charAt(Pt))Pt++}else{while(!this.isWordWrapSymbol(It,Pt))Pt--;Dt=Pt-1;while(f.isWhitespace(It,Dt)&&Dt>0)Dt--;while(f.isWhitespace(It,Pt)&&"\t"!=It.charAt(Pt))Pt++}else Pt++;gt[mt]=R?dt.substr(0,Dt+1)+String.fromCharCode(7):dt.substr(0,Dt+1),gt.insert(mt+1,dt.substr(Pt,dt.length-Pt).trimStart(" "))}}D=gt.count;for(var kt=-1,mt=0;mt<gt.count;mt++){for(var dt=gt[mt],Et=b.service.bidi.convert(new S(dt),F).toString(),Gt=new S,Pt=0;Pt<Et.length;Pt++)Gt.append(String.fromCharCode(b.service.pdfFont.UnicodeMap[Et.charCodeAt(Pt)]));gt[mt]=Gt.toString()}if(null!=w){var _t=J,Lt=D*_t,Nt=w.vertAlignment;0!=k&&90!=k&&180!=k&&270!=k&&(Nt=c.Center),Nt==c.Top&&(it+=nt-Lt+(_t-K)),Nt==c.Center&&(it+=(nt-Lt)/2+(_t-K)),Nt==c.Bottom&&(it+=_t-K)}b.service.pageStream.writeLine("BT");var Ot=0,Zt=0,Mt=Array.create(Number,gt.count,3),Ht=null;if(0!=k){var Wt=k*Math.PI/180;Ht=new y(Math.cos(Wt),Math.sin(Wt),-Math.sin(Wt),Math.cos(Wt),lt+ct/2,ut+pt/2),b.service.pdfFont.NeedSynt&&null!=O&&O.font.italic||b.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} Tm",b.service.convertToString(Ht.elements[0]),b.service.convertToString(Ht.elements[1]),b.service.convertToString(Ht.elements[2]),b.service.convertToString(Ht.elements[3]),b.service.convertToString(Ht.elements[4]),b.service.convertToString(Ht.elements[5]))}b.service.pdfFont.NeedSynt&&null!=O&&O.font.bold&&(b.service.pageStream.writeLine("{0} w 2 Tr",b.service.convertToString(this.boldFontStrokeWidthValue*N,3)),b.service.setStrokeColor(G));for(var mt=0;mt<D;mt++){for(var dt=gt[mt],Vt=Array.create(Number,dt.length),Yt=0,Rt=0,jt=0,Xt=1e3*rt/(N*this.fontCorrectValue),Jt=b.service.pdfFont.Widths[b.service.pdfFont.UnicodeMap["…".charCodeAt(0)]],Kt=0,Pt=0;Pt<dt.length;Pt++){var Ut=dt.charCodeAt(Pt);if(Ut>=32&&(Rt+=b.service.pdfFont.Widths[Ut-32]),9==Ut){var zt=this.getTabsSize(I,N,Rt);Rt+=zt,Vt[Yt++]=zt}Rt+Jt<Xt&&(jt=Rt,Kt=Pt)}if(Rt=Rt*(N*this.fontCorrectValue)/1e3,-1!=kt&&(mt==D-1&&kt<gt.count||Rt>rt)&&(dt=dt.substr(0,Kt)+String.fromCharCode(b.service.pdfFont.UnicodeMap["…".charCodeAt(0)]),Rt=(jt+Jt)*(N*this.fontCorrectValue)/1e3),b.service.useUnicodeMode){for(var St=new S,Pt=0;Pt<dt.length;Pt++){Pt%121==120&&St.appendLine("\r");var Qt=dt.charCodeAt(Pt);if(32==Qt||9==Qt||7==Qt)St.append(dt.charAt(Pt));else{var qt=b.service.pdfFont.GlyphList[Qt];65535==qt&&(qt=0),St.appendFormat("{0:X4}",qt)}}dt=St.toString()}else dt=e.StiPdfExportService.convertToEscapeSequence(dt);var $t=et,te=it+J*(D-mt-1),ee=!1,ie=!1;if(null!=A){var re=A.horAlignment;if(R&&(dt.length>0&&7===dt.charCodeAt(dt.length-1)?dt=dt.substr(0,dt.length-1):re=u.Left),null!=I&&null!=I.textOptions&&I.textOptions.rightToLeft&&(re==u.Left?re=u.Right:re==u.Right&&(re=u.Left)),re==u.Center&&($t+=(rt-Rt)/2),re==u.Right&&($t+=rt-Rt),re==u.Width){for(var ne=0,oe=0;oe<dt.length;oe++)32===dt.charCodeAt(oe)&&ne++;if(ne>0&&(mt!=gt.count-1||E&&Rt>rt)){ie=!0;var ae=(rt-Rt)/ne*1e3/(N*this.fontCorrectValue);if(ae>0||E){ee=!0,ae+=b.service.pdfFont.Widths[0],ae<.5*b.service.pdfFont.Widths[0]&&(ae=.5*b.service.pdfFont.Widths[0]);for(var se=new S(b.service.useUnicodeMode?"<":"("),le=0;le<dt.length;le++)32===dt.charCodeAt(le)?b.service.useUnicodeMode?se.append(">-"+b.service.convertToString(ae)+"<"):se.append(")-"+b.service.convertToString(ae)+"("):se.append(dt[le]);se.append(b.service.useUnicodeMode?">":")"),dt=se.toString()}}}}if(Yt>0){var ue=0,ce=new S;0==ie&&ce.append(b.service.useUnicodeMode?"<":"(");for(var le=0;le<dt.length;le++)if("\t"==dt[le]){var pe=Vt[ue++];b.service.useUnicodeMode?ce.append(">-"+b.service.convertToString(pe)+"<"):ce.append(")-"+b.service.convertToString(pe)+"(")}else ce.append(dt[le]);0==ie&&ce.append(b.service.useUnicodeMode?">":")"),dt=ce.toString()}b.service.useUnicodeMode&&(dt=b.service.stringReplace(dt," ",b.service.pdfFont.GlyphList[32].toString(16).padLeft(4,"0")).replaceAll("a","0000"));for(var he=null!=b.service.pdfFont.ChildFontsMap,ge=0,vt=Array.create(Number,dt.length),me=new Array,At=0;At<dt.length;At++){var de=dt.charCodeAt(At);vt[At]=de;var Se=!1;if(13==de&&(me.add(At),Se=!0),he){var fe=b.service.pdfFont.UnicodeMapBack[de];92==de&&(fe=b.service.pdfFont.UnicodeMapBack[dt.charCodeAt(At+1)]);var ye=b.service.pdfFont.ChildFontsMap[fe];fe<64&&(At>0?ye=ge:dt.length>1&&(ye=b.service.pdfFont.ChildFontsMap[b.service.pdfFont.UnicodeMapBack[dt.charCodeAt(1)]])),92!=de&&(vt[At]=b.service.pdfFont.fonts[ye].UnicodeMap[fe]),ye==ge||Se||0==At||me.add(At),ge=ye}}if(me.add(dt.length),Mt[mt][0]=$t,Mt[mt][1]=te,Mt[mt][2]=Rt,b.service.pdfFont.NeedSynt&&null!=O&&O.font.italic){var be=new y(1,0,this.italicAngleTanValue,1,$t,te);null!=Ht&&be.multiply(be),b.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} Tm",b.service.convertToString(be.elements[0]),b.service.convertToString(be.elements[1]),b.service.convertToString(be.elements[2]),b.service.convertToString(be.elements[3]),b.service.convertToString(be.elements[4]),b.service.convertToString(be.elements[5]))}else b.service.pageStream.writeLine("{0} {1} Td",b.service.convertToString($t-Ot),b.service.convertToString(te-Zt)),Ot=$t,Zt=te;for(var Ce=0,ve=0;ve<me.count;ve++){if(he&&dt.length>0){var Ie=dt.charCodeAt(Ce)<64&&dt.length>Ce+1?Ce+1:Ce,ye=b.service.pdfFont.ChildFontsMap[b.service.pdfFont.UnicodeMapBack[dt.charCodeAt(Ie)]];b.service.pageStream.writeLine("/F{0} {1} Tf",ye,b.service.convertToString(N*this.fontCorrectValue,this.precision_digits_font))}var Ae=me[ve],we=Ae-Ce;we>0&&(ee||Yt>0?(b.service.pageStream.writeString("["),ve>0&&b.service.pageStream.writeString(b.service.useUnicodeMode?"<":"("),b.service.pageStream.write(vt,Ce,we),ve<me.count-1&&b.service.pageStream.writeString(b.service.useUnicodeMode?">":")"),b.service.pageStream.writeLine("] TJ")):(b.service.pageStream.writeString(b.service.useUnicodeMode?"<":"("),b.service.pageStream.write(vt,Ce,we),b.service.pageStream.writeLine("{0} Tj",b.service.useUnicodeMode?">":")"))),Ce=Ae,Ae<vt.length-1&&13==vt[Ae]&&Ce++}}if(b.service.pdfFont.NeedSynt&&null!=O&&O.font.bold&&b.service.pageStream.writeLine("0 Tr"),b.service.pageStream.writeLine("ET"),null!=O&&O.font.underline){b.service.pageStream.writeLine("q"),b.service.pushColorToStack();var Te=.07*N,Be=.1*-N;if(0!=b.service.pdfFont.UnderscoreSize&&(Te=V,Be=Y),Te<.1&&(Te=.1),b.service.pageStream.writeLine("{0} w",b.service.convertToString(Te)),0!=k){var Wt=k*Math.PI/180;b.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} cm",b.service.convertToString(Math.cos(Wt)),b.service.convertToString(Math.sin(Wt)),b.service.convertToString(-Math.sin(Wt)),b.service.convertToString(Math.cos(Wt)),b.service.convertToString(lt+ct/2),b.service.convertToString(ut+pt/2))}null!=C&&b.service.setStrokeColor(G);for(var At=0;At<gt.count;At++)0!=Mt[At][2]&&(b.service.pageStream.writeLine("{0} {1} m",b.service.convertToString(Mt[At][0]),b.service.convertToString(Mt[At][1]+Be)),b.service.pageStream.writeLine("{0} {1} l S",b.service.convertToString(Mt[At][0]+Mt[At][2]),b.service.convertToString(Mt[At][1]+Be)));b.service.pageStream.writeLine("Q"),b.service.popColorFromStack()}if(null!=O&&O.font.strikeout){b.service.pageStream.writeLine("q"),b.service.pushColorToStack();var Re=.045*N,Pe=.25*N;if(0!=b.service.pdfFont.StrikeoutSize&&(Re=j,Pe=X),Re<.1&&(Re=.1),b.service.pageStream.writeLine("{0} w",b.service.convertToString(Re)),0!=k){var Wt=k*Math.PI/180;b.service.pageStream.writeLine("{0} {1} {2} {3} {4} {5} cm",b.service.convertToString(Math.cos(Wt)),b.service.convertToString(Math.sin(Wt)),b.service.convertToString(-Math.sin(Wt)),b.service.convertToString(Math.cos(Wt)),b.service.convertToString(lt+ct/2),b.service.convertToString(ut+pt/2))}null!=C&&b.service.setStrokeColor(G);for(var At=0;At<gt.count;At++)0!=Mt[At][2]&&(b.service.pageStream.writeLine("{0} {1} m",b.service.convertToString(Mt[At][0]),b.service.convertToString(Mt[At][1]+Pe)),b.service.pageStream.writeLine("{0} {1} l S",b.service.convertToString(Mt[At][0]+Mt[At][2]),b.service.convertToString(Mt[At][1]+Pe)));b.service.pageStream.writeLine("Q"),b.service.popColorFromStack()}}if(P){var L=b.service.annotsArray[b.service.annotsCurrent];if(L.Multiline=B,L.X=b.X,L.Y=b.Y,L.Width=b.Width,L.Height=b.Height,L.Text=x,L.Component=b.Component,L.Alignment=u.Left,null!=A){var re=A.horAlignment;null!=I&&null!=I.textOptions&&I.textOptions.rightToLeft&&(re==u.Left?re=u.Right:re==u.Right&&(re=u.Left)),L.Alignment=re}}P||(b.service.pageStream.writeLine("Q"),b.service.popColorFromStack())}},b.isWordWrapSymbol=function(t,e){var i=t.charCodeAt(e),r=t.charAt(e);if(i>=12288&&i<=55215||f.isWhitespace(t,e)&&160!=i||"("==r||"{"==r)return!0;if(e>0){var n=t.charAt(e-1);if("!"==n||"%"==n||")"==n||"}"==n||"-"==n||"?"==n)return!0}return!1},b.getTabsSize=function(t,e,i){if(null!=t&&null!=t.textOptions){var r=i,n=750/e,o=n*t.textOptions.distanceBetweenTabs,a=n*t.textOptions.firstTabOffset+o;if(i<a)r=a;else if(t.textOptions.distanceBetweenTabs>0){var s=Math.trunc((i-a)/o);s++,r=a+s*o}return r-i}return 0},b.renderTextFont=function(t){var e=t.Component.sti_as(s);if(null!=e){var i=t.service.pdfFont.getFontNumber(e.font),r=e.font.sizeInPoints*this.fontCorrectValue;if(t.service.pageStream.writeLine("/F{0} {1} Tf",i,t.service.convertToString(r,this.precision_digits_font)),t.service.pdfFont.currentFont=i,t.service.haveAnnots&&t.Component.sti_as(l).editable){var n=t.service.annotsArray[t.service.annotsCurrent];n.FontNumber=i,n.FontSize=r}}},b.hiToTwips=.72,b.precision_digits_font=3,b.fontCorrectValue=.955,b.boldFontStrokeWidthValue=.031,b.italicAngleTanValue=.325,b}();e.StiPdfRenderText=b}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return Object.defineProperty(t,"standardFontCharsNames",{get:function(){if(null==this._standardFontCharsNames){var t=["0020space","0021exclam","0022quotedbl","0023numbersign","0024dollar","0025percent","0026ampersand","0027quotesingle","0028parenleft","0029parenright","002Aasterisk","002Bplus","002Ccomma","002Dhyphen","002Eperiod","002Fslash","0030zero","0031one","0032two","0033three","0034four","0035five","0036six","0037seven","0038eight","0039nine","003Acolon","003Bsemicolon","003Cless","003Dequal","003Egreater","003Fquestion","0040at","0041A","0042B","0043C","0044D","0045E","0046F","0047G","0048H","0049I","004AJ","004BK","004CL","004DM","004EN","004FO","0050P","0051Q","0052R","0053S","0054T","0055U","0056V","0057W","0058X","0059Y","005AZ","005Bbracketleft","005Cbackslash","005Dbracketright","005Easciicircum","005Funderscore","0060grave","0061a","0062b","0063c","0064d","0065e","0066f","0067g","0068h","0069i","006Aj","006Bk","006Cl","006Dm","006En","006Fo","0070p","0071q","0072r","0073s","0074t","0075u","0076v","0077w","0078x","0079y","007Az","007Bbraceleft","007Cbar","007Dbraceright","007Easciitilde","007FcontrolDEL","00A0nbspace","00A1exclamdown","00A2cent","00A3sterling","00A4currency","00A5yen","00A6brokenbar","00A7section","00A8dieresis","00A9copyright","00AAordfeminine","00ABguillemotleft","00AClogicalnot","00ADsofthyphen","00AEregistered","00AFmacron","00B0degree","00B1plusminus","00B2twosuperior","00B3threesuperior","00B4acute","00B5mu","00B6paragraph","00B7periodcentered","00B8cedilla","00B9onesuperior","00BAordmasculine","00BBguillemotright","00BConequarter","00BDonehalf","00BEthreequarters","00BFquestiondown","00C0Agrave","00C1Aacute","00C2Acircumflex","00C3Atilde","00C4Adieresis","00C5Aring","00C6AE","00C7Ccedilla","00C8Egrave","00C9Eacute","00CAEcircumflex","00CBEdieresis","00CCIgrave","00CDIacute","00CEIcircumflex","00CFIdieresis","00D0Eth","00D1Ntilde","00D2Ograve","00D3Oacute","00D4Ocircumflex","00D5Otilde","00D6Odieresis","00D7multiply","00D8Oslash","00D9Ugrave","00DAUacute","00DBUcircumflex","00DCUdieresis","00DDYacute","00DEThorn","00DFgermandbls","00E0agrave","00E1aacute","00E2acircumflex","00E3atilde","00E4adieresis","00E5aring","00E6ae","00E7ccedilla","00E8egrave","00E9eacute","00EAecircumflex","00EBedieresis","00ECigrave","00EDiacute","00EEicircumflex","00EFidieresis","00F0eth","00F1ntilde","00F2ograve","00F3oacute","00F4ocircumflex","00F5otilde","00F6odieresis","00F7divide","00F8oslash","00F9ugrave","00FAuacute","00FBucircumflex","00FCudieresis","00FDyacute","00FEthorn","00FFydieresis","0100Amacron","0101amacron","0102Abreve","0103abreve","0104Aogonek","0105aogonek","0106Cacute","0107cacute","0108Ccircumflex","0109ccircumflex","010ACdotaccent","010Bcdotaccent","010CCcaron","010Dccaron","010EDcaron","010Fdcaron","0110Dcroat","0111dcroat","0112Emacron","0113emacron","0114Ebreve","0115ebreve","0116Edotaccent","0117edotaccent","0118Eogonek","0119eogonek","011AEcaron","011Becaron","011CGcircumflex","011Dgcircumflex","011EGbreve","011Fgbreve","0120Gdotaccent","0121gdotaccent","0122Gcommaaccent","0123gcommaaccent","0124Hcircumflex","0125hcircumflex","0126Hbar","0127hbar","0128Itilde","0129itilde","012AImacron","012Bimacron","012CIbreve","012Dibreve","012EIogonek","012Fiogonek","0130Idotaccent","0131dotlessi","0132IJ","0133ij","0134Jcircumflex","0135jcircumflex","0136Kcommaaccent","0137kcommaaccent","0138kgreenlandic","0139Lacute","013Alacute","013BLcommaaccent","013Clcommaaccent","013DLcaron","013Elcaron","013FLdot","0140ldot","0141Lslash","0142lslash","0143Nacute","0144nacute","0145Ncommaaccent","0146ncommaaccent","0147Ncaron","0148ncaron","0149napostrophe","014AEng","014Beng","014COmacron","014Domacron","014EObreve","014Fobreve","0150Ohungarumlaut","0151ohungarumlaut","0152OE","0153oe","0154Racute","0155racute","0156Rcommaaccent","0157rcommaaccent","0158Rcaron","0159rcaron","015ASacute","015Bsacute","015CScircumflex","015Dscircumflex","015EScedilla","015Fscedilla","0160Scaron","0161scaron","0162Tcommaaccent","0163tcommaaccent","0164Tcaron","0165tcaron","0166Tbar","0167tbar","0168Utilde","0169utilde","016AUmacron","016Bumacron","016CUbreve","016Dubreve","016EUring","016Furing","0170Uhungarumlaut","0171uhungarumlaut","0172Uogonek","0173uogonek","0174Wcircumflex","0175wcircumflex","0176Ycircumflex","0177ycircumflex","0178Ydieresis","0179Zacute","017Azacute","017BZdotaccent","017Czdotaccent","017DZcaron","017Ezcaron","017Flongs","0180bstroke","0181Bhook","0182Btopbar","0183btopbar","0184Tonesix","0185tonesix","0186Oopen","0187Chook","0188chook","0189Dafrican","018ADhook","018BDtopbar","018Cdtopbar","018Ddeltaturned","018EEreversed","018FSchwa","0190Eopen","0191Fhook","0192florin","0193Ghook","0194Gammaafrican","0195hv","0196Iotaafrican","0197Istroke","0198Khook","0199khook","019Albar","019Blambdastroke","019CMturned","019DNhookleft","019Enlegrightlong","019FOcenteredtilde","01A0Ohorn","01A1ohorn","01A2Oi","01A3oi","01A4Phook","01A5phook","01A6yr","01A7Tonetwo","01A8tonetwo","01A9Esh","01AAeshreversedloop","01ABtpalatalhook","01ACThook","01ADthook","01AETretroflexhook","01AFUhorn","01B0uhorn","01B1Upsilonafrican","01B2Vhook","01B3Yhook","01B4yhook","01B5Zstroke","01B6zstroke","01B7Ezh","01B8Ezhreversed","01B9ezhreversed","01BAezhtail","01BBtwostroke","01BCTonefive","01BDtonefive","01BEglottalinvertedstroke","01BFwynn","01C0clickdental","01C1clicklateral","01C2clickalveolar","01C3clickretroflex","01C4DZcaron","01C5Dzcaron","01C6dzcaron","01C7LJ","01C8Lj","01C9lj","01CANJ","01CBNj","01CCnj","01CDAcaron","01CEacaron","01CFIcaron","01D0icaron","01D1Ocaron","01D2ocaron","01D3Ucaron","01D4ucaron","01F0jcaron","01F1DZ","01F2Dz","01F3dz","01F4Gacute","01F5gacute","01FAAringacute","01FBaringacute","01FCAEacute","01FDaeacute","01FEOslashacute","01FFoslashacute","0254oopen","0255ccurl","0256dtail","0257dhook","0258ereversed","0259schwa","025Aschwahook","025Beopen","025Fjdotlessstroke","0260ghook","0261gscript","0264ramshorn","0265hturned","0266hhook","0267henghook","0268istroke","0269iotalatin","026Clbelt","026Elezh","026Fmturned","0271mhook","0272nhookleft","0275obarred","0278philatin","0279rturned","027Brhookturned","027Crlongleg","027Drhook","027Erfishhook","0282shook","0283esh","0286eshcurl","0287tturned","0289ubar","028Bvhook","028Cvturned","028Dwturned","028Eyturned","0290zretroflexhook","0291zcurl","0292ezh","0293ezhcurl","0294glottalstop","02A3dzaltone","02A4dezh","02A5dzcurl","02A6ts","02A7tesh","02A8tccurl","02D6plusmod","02D7minusmod","02D8breve","02D9dotaccent","02DAring","02DBogonek","02DCtilde","0391Alpha","0392Beta","0393Gamma","0394Deltagreek","0395Epsilon","0396Zeta","0397Eta","0398Theta","0399Iota","039AKappa","039BLambda","039CMu","039DNu","039EXi","039FOmicron","03A0Pi","03A1Rho","03A3Sigma","03A4Tau","03A5Upsilon","03A6Phi","03A7Chi","03A8Psi","03A9Omegagreek","03AAIotadieresis","03ABUpsilondieresis","03ACalphatonos","03ADepsilontonos","03AEetatonos","03AFiotatonos","03B0upsilondieresistonos","03B1alpha","03B2beta","03B3gamma","03B4delta","03B5epsilon","03B6zeta","03B7eta","03B8theta","03B9iota","03BAkappa","03BBlambda","03BCmu","03BDnu","03BExi","03BFomicron","03C0pi","03C1rho","03C2sigma1","03C3sigma","03C4tau","03C5upsilon","03C6phi","03C7chi","03C8psi","03C9omega","03CAiotadieresis","03CBupsilondieresis","03CComicrontonos","03CDupsilontonos","03CEomegatonos","03D0betasymbolgreek","03D1theta1","03D2Upsilon1","03D5phi1","03D6omega1","03DAStigmagreek","03DCDigammagreek","03DEKoppagreek","03E0Sampigreek","03E2Sheicoptic","03E3sheicoptic","03E4Feicoptic","03E5feicoptic","03E6Kheicoptic","03E7kheicoptic","03E8Horicoptic","03E9horicoptic","03EAGangiacoptic","03EBgangiacoptic","03ECShimacoptic","03EDshimacoptic","03EEDeicoptic","03EFdeicoptic","03F0kappasymbolgreek","03F1rhosymbolgreek","03F3yotgreek","0401afii10023","0402afii10051","0403afii10052","0404afii10053","0405afii10054","0406afii10055","0407afii10056","0408afii10057","0409afii10058","040Aafii10059","040Bafii10060","040Cafii10061","040Eafii10062","040Fafii10145","0410afii10017","0411afii10018","0412afii10019","0413afii10020","0414afii10021","0415afii10022","0416afii10024","0417afii10025","0418afii10026","0419afii10027","041Aafii10028","041Bafii10029","041Cafii10030","041Dafii10031","041Eafii10032","041Fafii10033","0420afii10034","0421afii10035","0422afii10036","0423afii10037","0424afii10038","0425afii10039","0426afii10040","0427afii10041","0428afii10042","0429afii10043","042Aafii10044","042Bafii10045","042Cafii10046","042Dafii10047","042Eafii10048","042Fafii10049","0430afii10065","0431afii10066","0432afii10067","0433afii10068","0434afii10069","0435afii10070","0436afii10072","0437afii10073","0438afii10074","0439afii10075","043Aafii10076","043Bafii10077","043Cafii10078","043Dafii10079","043Eafii10080","043Fafii10081","0440afii10082","0441afii10083","0442afii10084","0443afii10085","0444afii10086","0445afii10087","0446afii10088","0447afii10089","0448afii10090","0449afii10091","044Aafii10092","044Bafii10093","044Cafii10094","044Dafii10095","044Eafii10096","044Fafii10097","0451afii10071","0452afii10099","0453afii10100","0454afii10101","0455afii10102","0456afii10103","0457afii10104","0458afii10105","0459afii10106","045Aafii10107","045Bafii10108","045Cafii10109","045Eafii10110","045Fafii10193","0462afii10146","0463afii10194","0472afii10147","0473afii10195","0474afii10148","0475afii10196","0490afii10050","0491afii10098","04D9afii10846","060Cafii57388","061Bafii57403","061Fafii57407","0621afii57409","0622afii57410","0623afii57411","0624afii57412","0625afii57413","0626afii57414","0627afii57415","0628afii57416","0629afii57417","062Aafii57418","062Bafii57419","062Cafii57420","062Dafii57421","062Eafii57422","062Fafii57423","0630afii57424","0631afii57425","0632afii57426","0633afii57427","0634afii57428","0635afii57429","0636afii57430","0637afii57431","0638afii57432","0639afii57433","063Aafii57434","0640afii57440","0641afii57441","0642afii57442","0643afii57443","0644afii57444","0645afii57445","0646afii57446","0647afii57470","0648afii57448","0649afii57449","064Aafii57450","064Bafii57451","064Cafii57452","064Dafii57453","064Eafii57454","064Fafii57455","0650afii57456","0651afii57457","0652afii57458","0660afii57392","0661afii57393","0662afii57394","0663afii57395","0664afii57396","0665afii57397","0666afii57398","0667afii57399","0668afii57400","0669afii57401","066Aafii57381","066Bdecimalseparatorarabic","066Cthousandsseparatorarabic","066Dafii63167","0679afii57511","067Eafii57506","0686afii57507","0688afii57512","0691afii57513","0698afii57508","06A4afii57505","06AFafii57509","06BAafii57514","06C1hehaltonearabic","06D1yehthreedotsbelowarabic","06D2afii57519","06D5afii57534","06F0zeropersian","06F1onepersian","06F2twopersian","06F3threepersian","06F4fourpersian","06F5fivepersian","06F6sixpersian","06F7sevenpersian","06F8eightpersian","06F9ninepersian","1E00Aringbelow","1E01aringbelow","1E02Bdotaccent","1E03bdotaccent","1E04Bdotbelow","1E05bdotbelow","1E06Blinebelow","1E07blinebelow","1E08Ccedillaacute","1E09ccedillaacute","1E0ADdotaccent","1E0Bddotaccent","1E0CDdotbelow","1E0Dddotbelow","1E0EDlinebelow","1E0Fdlinebelow","1E10Dcedilla","1E11dcedilla","1E12Dcircumflexbelow","1E13dcircumflexbelow","1E14Emacrongrave","1E15emacrongrave","1E16Emacronacute","1E17emacronacute","1E18Ecircumflexbelow","1E19ecircumflexbelow","1E1AEtildebelow","1E1Betildebelow","1E1CEcedillabreve","1E1Decedillabreve","1E1EFdotaccent","1E1Ffdotaccent","1E20Gmacron","1E21gmacron","1E22Hdotaccent","1E23hdotaccent","1E24Hdotbelow","1E25hdotbelow","1E26Hdieresis","1E27hdieresis","1E28Hcedilla","1E29hcedilla","1E2AHbrevebelow","1E2Bhbrevebelow","1E2CItildebelow","1E2Ditildebelow","1E2EIdieresisacute","1E2Fidieresisacute","1E30Kacute","1E31kacute","1E32Kdotbelow","1E33kdotbelow","1E34Klinebelow","1E35klinebelow","1E36Ldotbelow","1E37ldotbelow","1E38Ldotbelowmacron","1E39ldotbelowmacron","1E3ALlinebelow","1E3Bllinebelow","1E3CLcircumflexbelow","1E3Dlcircumflexbelow","1E3EMacute","1E3Fmacute","1E40Mdotaccent","1E41mdotaccent","1E42Mdotbelow","1E43mdotbelow","1E44Ndotaccent","1E45ndotaccent","1E46Ndotbelow","1E47ndotbelow","1E48Nlinebelow","1E49nlinebelow","1E4ANcircumflexbelow","1E4Bncircumflexbelow","1E4COtildeacute","1E4Dotildeacute","1E4EOtildedieresis","1E4Fotildedieresis","1E50Omacrongrave","1E51omacrongrave","1E52Omacronacute","1E53omacronacute","1E54Pacute","1E55pacute","1E56Pdotaccent","1E57pdotaccent","1E58Rdotaccent","1E59rdotaccent","1E5ARdotbelow","1E5Brdotbelow","1E5CRdotbelowmacron","1E5Drdotbelowmacron","1E5ERlinebelow","1E5Frlinebelow","1E60Sdotaccent","1E61sdotaccent","1E62Sdotbelow","1E63sdotbelow","1E64Sacutedotaccent","1E65sacutedotaccent","1E66Scarondotaccent","1E67scarondotaccent","1E68Sdotbelowdotaccent","1E69sdotbelowdotaccent","1E6ATdotaccent","1E6Btdotaccent","1E6CTdotbelow","1E6Dtdotbelow","1E6ETlinebelow","1E6Ftlinebelow","1E70Tcircumflexbelow","1E71tcircumflexbelow","1E72Udieresisbelow","1E73udieresisbelow","1E74Utildebelow","1E75utildebelow","1E76Ucircumflexbelow","1E77ucircumflexbelow","1E78Utildeacute","1E79utildeacute","1E7AUmacrondieresis","1E7Bumacrondieresis","1E7CVtilde","1E7Dvtilde","1E7EVdotbelow","1E7Fvdotbelow","1E80Wgrave","1E81wgrave","1E82Wacute","1E83wacute","1E84Wdieresis","1E85wdieresis","1E86Wdotaccent","1E87wdotaccent","1E88Wdotbelow","1E89wdotbelow","1E8AXdotaccent","1E8Bxdotaccent","1E8CXdieresis","1E8Dxdieresis","1E8EYdotaccent","1E8Fydotaccent","1E90Zcircumflex","1E91zcircumflex","1E92Zdotbelow","1E93zdotbelow","1E94Zlinebelow","1E95zlinebelow","1E96hlinebelow","1E97tdieresis","1E98wring","1E99yring","1E9Aarighthalfring","1E9Bslongdotaccent","1EA0Adotbelow","1EA1adotbelow","1EA2Ahookabove","1EA3ahookabove","1EA4Acircumflexacute","1EA5acircumflexacute","1EA6Acircumflexgrave","1EA7acircumflexgrave","1EA8Acircumflexhookabove","1EA9acircumflexhookabove","1EAAAcircumflextilde","1EABacircumflextilde","1EACAcircumflexdotbelow","1EADacircumflexdotbelow","1EAEAbreveacute","1EAFabreveacute","1EB0Abrevegrave","1EB1abrevegrave","1EB2Abrevehookabove","1EB3abrevehookabove","1EB4Abrevetilde","1EB5abrevetilde","1EB6Abrevedotbelow","1EB7abrevedotbelow","1EB8Edotbelow","1EB9edotbelow","1EBAEhookabove","1EBBehookabove","1EBCEtilde","1EBDetilde","1EBEEcircumflexacute","1EBFecircumflexacute","1EC0Ecircumflexgrave","1EC1ecircumflexgrave","1EC2Ecircumflexhookabove","1EC3ecircumflexhookabove","1EC4Ecircumflextilde","1EC5ecircumflextilde","1EC6Ecircumflexdotbelow","1EC7ecircumflexdotbelow","1EC8Ihookabove","1EC9ihookabove","1ECAIdotbelow","1ECBidotbelow","1ECCOdotbelow","1ECDodotbelow","1ECEOhookabove","1ECFohookabove","1ED0Ocircumflexacute","1ED1ocircumflexacute","1ED2Ocircumflexgrave","1ED3ocircumflexgrave","1ED4Ocircumflexhookabove","1ED5ocircumflexhookabove","1ED6Ocircumflextilde","1ED7ocircumflextilde","1ED8Ocircumflexdotbelow","1ED9ocircumflexdotbelow","1EDAOhornacute","1EDBohornacute","1EDCOhorngrave","1EDDohorngrave","1EDEOhornhookabove","1EDFohornhookabove","1EE0Ohorntilde","1EE1ohorntilde","1EE2Ohorndotbelow","1EE3ohorndotbelow","1EE4Udotbelow","1EE5udotbelow","1EE6Uhookabove","1EE7uhookabove","1EE8Uhornacute","1EE9uhornacute","1EEAUhorngrave","1EEBuhorngrave","1EECUhornhookabove","1EEDuhornhookabove","1EEEUhorntilde","1EEFuhorntilde","1EF0Uhorndotbelow","1EF1uhorndotbelow","1EF2Ygrave","1EF3ygrave","1EF4Ydotbelow","1EF5ydotbelow","1EF6Yhookabove","1EF7yhookabove","1EF8Ytilde","1EF9ytilde","2002enspace","200Bzerowidthspace","200Cafii61664","200Dafii301","200Eafii299","200Fafii300","2010hyphentwo","2012figuredash","2013endash","2014emdash","2015afii00208","2016dblverticalbar","2017underscoredbl","2018quoteleft","2019quoteright","201Aquotesinglbase","201Bquotereversed","201Cquotedblleft","201Dquotedblright","201Equotedblbase","2020dagger","2021daggerdbl","2022bullet","2024onedotenleader","2025twodotenleader","2026ellipsis","202Cafii61573","202Dafii61574","202Eafii61575","2030perthousand","2032minute","2033second","2035primereversed","2039guilsinglleft","203Aguilsinglright","203Breferencemark","203Cexclamdbl","203Eoverline","2042asterism","2044fraction","2070zerosuperior","2074foursuperior","2075fivesuperior","2076sixsuperior","2077sevensuperior","2078eightsuperior","2079ninesuperior","207Aplussuperior","207Cequalsuperior","207Dparenleftsuperior","207Eparenrightsuperior","207Fnsuperior","2080zeroinferior","2081oneinferior","2082twoinferior","2083threeinferior","2084fourinferior","2085fiveinferior","2086sixinferior","2087seveninferior","2088eightinferior","2089nineinferior","208Dparenleftinferior","208Eparenrightinferior","20A1colonmonetary","20A2cruzeiro","20A3franc","20A4afii08941","20A7peseta","20A9won","20AAafii57636","20ABdong","20ACEuro","2103centigrade","2105afii61248","2109fahrenheit","2111Ifraktur","2113afii61289","2116afii61352","2118weierstrass","211CRfraktur","211Eprescription","2121telephone","2122trademark","2126Omega","212Bangstrom","212Eestimated","2135aleph","2153onethird","2154twothirds","215Boneeighth","215Cthreeeighths","215Dfiveeighths","215Eseveneighths","2160Oneroman","2161Tworoman","2162Threeroman","2163Fourroman","2164Fiveroman","2165Sixroman","2166Sevenroman","2167Eightroman","2168Nineroman","2169Tenroman","216AElevenroman","216BTwelveroman","2170oneroman","2171tworoman","2172threeroman","2173fourroman","2174fiveroman","2175sixroman","2176sevenroman","2177eightroman","2178nineroman","2179tenroman","217Aelevenroman","217Btwelveroman","2200universal","2202partialdiff","2203existential","2205emptyset","2206Delta","2207gradient","2208element","2209notelement","220Bsuchthat","220Cnotcontains","220Fproduct","2211summation","2212minus","2213minusplus","2215divisionslash","2217asteriskmath","2219bulletoperator","221Aradical","221Dproportional","221Einfinity","221Forthogonal","2220angle","2223divides","2225parallel","2226notparallel","2227logicaland","2228logicalor","2229intersection","222Aunion","222Bintegral","222Cdblintegral","222Econtourintegral","2234therefore","2235because","2236ratio","2237proportion","223Csimilar","223Dreversedtilde","2243asymptoticallyequal","2245congruent","2248approxequal","224Callequal","2250approaches","2251geometricallyequal","2252approxequalorimage","2253imageorapproximatelyequal","2260notequal","2261equivalence","2262notidentical","2264lessequal","2265greaterequal","2266lessoverequal","2267greateroverequal","226Amuchless","226Bmuchgreater","226Enotless","226Fnotgreater","2270notlessnorequal","2271notgreaternorequal","2272lessorequivalent","2273greaterorequivalent","2276lessorgreater","2277greaterorless","2279notgreaternorless","227Aprecedes","227Bsucceeds","2280notprecedes","2281notsucceeds","2282propersubset","2283propersuperset","2284notsubset","2285notsuperset","2286reflexsubset","2287reflexsuperset","228Asubsetnotequal","228Bsupersetnotequal","2295circleplus","2296minuscircle","2297circlemultiply","2299circleot","22A3tackleft","22A4tackdown","22A5perpendicular","22BFrighttriangle","22C5dotmath","22CEcurlyor","22CFcurlyand","22DAlessequalorgreater","22DBgreaterequalorless","22EEellipsisvertical","F6BEdotlessj","F6BFLL","F6C0ll","F6C3commaaccent","F6C4afii10063","F6C5afii10064","F6C6afii10192","F6C7afii10831","F6C8afii10832","F6C9Acute","F6CACaron","F6CBDieresis","F6CCDieresisAcute","F6CDDieresisGrave","F6CEGrave","F6CFHungarumlaut","F6D0Macron","F6D1cyrBreve","F6D2cyrFlex","F6D3dblGrave","F6D4cyrbreve","F6D5cyrflex","F6D6dblgrave","F6D7dieresisacute","F6D8dieresisgrave","F6D9copyrightserif","F6DAregisterserif","F6DBtrademarkserif","F6DConefitted","F6DDrupiah","F8FFapple","FB00ff","FB01fi","FB02fl","FB03ffi","FB04ffl","FE61asterisksmall","FE62plussmall","FE63hyphensmall","FE64lesssmall","FE65greatersmall","FE66equalsmall","FE69dollarsmall","FE6Apercentsmall","FE6Batsmall","F020space","F021exclam","F022universal","F023numbersign","F024existential","F025percent","F026ampersand","F027suchthat","F028parenleft","F029parenright","F02Aasteriskmath","F02Bplus","F02Ccomma","F02Dminus","F02Eperiod","F02Fslash","F030zero","F031one","F032two","F033three","F034four","F035five","F036six","F037seven","F038eight","F039nine","F03Acolon","F03Bsemicolon","F03Cless","F03Dequal","F03Egreater","F03Fquestion","F040congruent","F041Alpha","F042Beta","F043Chi","F044Delta","F045Epsilon","F046Phi","F047Gamma","F048Eta","F049Iota","F04Atheta1","F04BKappa","F04CLambda","F04DMu","F04ENu","F04FOmicron","F050Pi","F051Theta","F052Rho","F053Sigma","F054Tau","F055Upsilon","F056sigma1","F057Omega","F058Xi","F059Psi","F05AZeta","F05Bbracketleft","F05Ctherefore","F05Dbracketright","F05Eperpendicular","F05Funderscore","F060radicalex","F061alpha","F062beta","F063chi","F064delta","F065epsilon","F066phi","F067gamma","F068eta","F069iota","F06Aphi1","F06Bkappa","F06Clambda","F06Dmu","F06Enu","F06Fomicron","F070pi","F071theta","F072rho","F073sigma","F074tau","F075upsilon","F076omega1","F077omega","F078xi","F079psi","F07Azeta","F07Bbraceleft","F07Cbar","F07Dbraceright","F07Esimilar","F0A0Euro","F0A1Upsilon1","F0A2minute","F0A3lessequal","F0A4fraction","F0A5infinity","F0A6florin","F0A7club","F0A8diamond","F0A9heart","F0AAspade","F0ABarrowboth","F0ACarrowleft","F0ADarrowup","F0AEarrowright","F0AFarrowdown","F0B0degree","F0B1plusminus","F0B2second","F0B3greaterequal","F0B4multiply","F0B5proportional","F0B6partialdiff","F0B7bullet","F0B8divide","F0B9notequal","F0BAequivalence","F0BBapproxequal","F0BCellipsis","F0BDarrowvertex","F0BEarrowhorizex","F0BFcarriagereturn","F0C0aleph","F0C1Ifraktur","F0C2Rfraktur","F0C3weierstrass","F0C4circlemultiply","F0C5circleplus","F0C6emptyset","F0C7intersection","F0C8union","F0C9propersuperset","F0CAreflexsuperset","F0CBnotsubset","F0CCpropersubset","F0CDreflexsubset","F0CEelement","F0CFnotelement","F0D0angle","F0D1gradient","F0D2registerserif","F0D3copyrightserif","F0D4trademarkserif","F0D5product","F0D6radical","F0D7dotmath","F0D8logicalnot","F0D9logicaland","F0DAlogicalor","F0DBarrowdblboth","F0DCarrowdblleft","F0DDarrowdblup","F0DEarrowdblright","F0DFarrowdbldown","F0E0lozenge","F0E1angleleft","F0E2registersans","F0E3copyrightsans","F0E4trademarksans","F0E5summation","F0E6parenlefttp","F0E7parenleftex","F0E8parenleftbt","F0E9bracketlefttp","F0EAbracketleftex","F0EBbracketleftbt","F0ECbracelefttp","F0EDbraceleftmid","F0EEbraceleftbt","F0EFbraceex","F0F1angleright","F0F2integral","F0F3integraltp","F0F4integralex","F0F5integralbt","F0F6parenrighttp","F0F7parenrightex","F0F8parenrightbt","F0F9bracketrighttp","F0FAbracketrightex","F0FBbracketrightbt","F0FCbracerighttp","F0FDbracerightmid","F0FEbracerightbt"];this._standardFontCharsNames=[];for(var e=0;e<t.length;e++){var i=parseInt(t[e].substr(0,4),16);this._standardFontCharsNames[i]=t[e].substr(4)}}return this._standardFontCharsNames},enumerable:!0,configurable:!0}),t.sRGBprofile=[0,0,12,72,76,105,110,111,2,16,0,0,109,110,116,114,82,71,66,32,88,89,90,32,7,206,0,2,0,9,0,6,0,49,0,0,97,99,115,112,77,83,70,84,0,0,0,0,73,69,67,32,115,82,71,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,214,0,1,0,0,0,0,211,45,72,80,32,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,99,112,114,116,0,0,1,80,0,0,0,51,100,101,115,99,0,0,1,132,0,0,0,108,119,116,112,116,0,0,1,240,0,0,0,20,98,107,112,116,0,0,2,4,0,0,0,20,114,88,89,90,0,0,2,24,0,0,0,20,103,88,89,90,0,0,2,44,0,0,0,20,98,88,89,90,0,0,2,64,0,0,0,20,100,109,110,100,0,0,2,84,0,0,0,112,100,109,100,100,0,0,2,196,0,0,0,136,118,117,101,100,0,0,3,76,0,0,0,134,118,105,101,119,0,0,3,212,0,0,0,36,108,117,109,105,0,0,3,248,0,0,0,20,109,101,97,115,0,0,4,12,0,0,0,36,116,101,99,104,0,0,4,48,0,0,0,12,114,84,82,67,0,0,4,60,0,0,8,12,103,84,82,67,0,0,4,60,0,0,8,12,98,84,82,67,0,0,4,60,0,0,8,12,116,101,120,116,0,0,0,0,67,111,112,121,114,105,103,104,116,32,40,99,41,32,49,57,57,56,32,72,101,119,108,101,116,116,45,80,97,99,107,97,114,100,32,67,111,109,112,97,110,121,0,0,100,101,115,99,0,0,0,0,0,0,0,18,115,82,71,66,32,73,69,67,54,49,57,54,54,45,50,46,49,0,0,0,0,0,0,0,0,0,0,0,18,115,82,71,66,32,73,69,67,54,49,57,54,54,45,50,46,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,89,90,32,0,0,0,0,0,0,243,81,0,1,0,0,0,1,22,204,88,89,90,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,89,90,32,0,0,0,0,0,0,111,162,0,0,56,245,0,0,3,144,88,89,90,32,0,0,0,0,0,0,98,153,0,0,183,133,0,0,24,218,88,89,90,32,0,0,0,0,0,0,36,160,0,0,15,132,0,0,182,207,100,101,115,99,0,0,0,0,0,0,0,22,73,69,67,32,104,116,116,112,58,47,47,119,119,119,46,105,101,99,46,99,104,0,0,0,0,0,0,0,0,0,0,0,22,73,69,67,32,104,116,116,112,58,47,47,119,119,119,46,105,101,99,46,99,104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,101,115,99,0,0,0,0,0,0,0,46,73,69,67,32,54,49,57,54,54,45,50,46,49,32,68,101,102,97,117,108,116,32,82,71,66,32,99,111,108,111,117,114,32,115,112,97,99,101,32,45,32,115,82,71,66,0,0,0,0,0,0,0,0,0,0,0,46,73,69,67,32,54,49,57,54,54,45,50,46,49,32,68,101,102,97,117,108,116,32,82,71,66,32,99,111,108,111,117,114,32,115,112,97,99,101,32,45,32,115,82,71,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,100,101,115,99,0,0,0,0,0,0,0,44,82,101,102,101,114,101,110,99,101,32,86,105,101,119,105,110,103,32,67,111,110,100,105,116,105,111,110,32,105,110,32,73,69,67,54,49,57,54,54,45,50,46,49,0,0,0,0,0,0,0,0,0,0,0,44,82,101,102,101,114,101,110,99,101,32,86,105,101,119,105,110,103,32,67,111,110,100,105,116,105,111,110,32,105,110,32,73,69,67,54,49,57,54,54,45,50,46,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,118,105,101,119,0,0,0,0,0,19,164,254,0,20,95,46,0,16,207,20,0,3,237,204,0,4,19,11,0,3,92,158,0,0,0,1,88,89,90,32,0,0,0,0,0,76,9,86,0,80,0,0,0,87,31,231,109,101,97,115,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,143,0,0,0,2,115,105,103,32,0,0,0,0,67,82,84,32,99,117,114,118,0,0,0,0,0,0,4,0,0,0,0,5,0,10,0,15,0,20,0,25,0,30,0,35,0,40,0,45,0,50,0,55,0,59,0,64,0,69,0,74,0,79,0,84,0,89,0,94,0,99,0,104,0,109,0,114,0,119,0,124,0,129,0,134,0,139,0,144,0,149,0,154,0,159,0,164,0,169,0,174,0,178,0,183,0,188,0,193,0,198,0,203,0,208,0,213,0,219,0,224,0,229,0,235,0,240,0,246,0,251,1,1,1,7,1,13,1,19,1,25,1,31,1,37,1,43,1,50,1,56,1,62,1,69,1,76,1,82,1,89,1,96,1,103,1,110,1,117,1,124,1,131,1,139,1,146,1,154,1,161,1,169,1,177,1,185,1,193,1,201,1,209,1,217,1,225,1,233,1,242,1,250,2,3,2,12,2,20,2,29,2,38,2,47,2,56,2,65,2,75,2,84,2,93,2,103,2,113,2,122,2,132,2,142,2,152,2,162,2,172,2,182,2,193,2,203,2,213,2,224,2,235,2,245,3,0,3,11,3,22,3,33,3,45,3,56,3,67,3,79,3,90,3,102,3,114,3,126,3,138,3,150,3,162,3,174,3,186,3,199,3,211,3,224,3,236,3,249,4,6,4,19,4,32,4,45,4,59,4,72,4,85,4,99,4,113,4,126,4,140,4,154,4,168,4,182,4,196,4,211,4,225,4,240,4,254,5,13,5,28,5,43,5,58,5,73,5,88,5,103,5,119,5,134,5,150,5,166,5,181,5,197,5,213,5,229,5,246,6,6,6,22,6,39,6,55,6,72,6,89,6,106,6,123,6,140,6,157,6,175,6,192,6,209,6,227,6,245,7,7,7,25,7,43,7,61,7,79,7,97,7,116,7,134,7,153,7,172,7,191,7,210,7,229,7,248,8,11,8,31,8,50,8,70,8,90,8,110,8,130,8,150,8,170,8,190,8,210,8,231,8,251,9,16,9,37,9,58,9,79,9,100,9,121,9,143,9,164,9,186,9,207,9,229,9,251,10,17,10,39,10,61,10,84,10,106,10,129,10,152,10,174,10,197,10,220,10,243,11,11,11,34,11,57,11,81,11,105,11,128,11,152,11,176,11,200,11,225,11,249,12,18,12,42,12,67,12,92,12,117,12,142,12,167,12,192,12,217,12,243,13,13,13,38,13,64,13,90,13,116,13,142,13,169,13,195,13,222,13,248,14,19,14,46,14,73,14,100,14,127,14,155,14,182,14,210,14,238,15,9,15,37,15,65,15,94,15,122,15,150,15,179,15,207,15,236,16,9,16,38,16,67,16,97,16,126,16,155,16,185,16,215,16,245,17,19,17,49,17,79,17,109,17,140,17,170,17,201,17,232,18,7,18,38,18,69,18,100,18,132,18,163,18,195,18,227,19,3,19,35,19,67,19,99,19,131,19,164,19,197,19,229,20,6,20,39,20,73,20,106,20,139,20,173,20,206,20,240,21,18,21,52,21,86,21,120,21,155,21,189,21,224,22,3,22,38,22,73,22,108,22,143,22,178,22,214,22,250,23,29,23,65,23,101,23,137,23,174,23,210,23,247,24,27,24,64,24,101,24,138,24,175,24,213,24,250,25,32,25,69,25,107,25,145,25,183,25,221,26,4,26,42,26,81,26,119,26,158,26,197,26,236,27,20,27,59,27,99,27,138,27,178,27,218,28,2,28,42,28,82,28,123,28,163,28,204,28,245,29,30,29,71,29,112,29,153,29,195,29,236,30,22,30,64,30,106,30,148,30,190,30,233,31,19,31,62,31,105,31,148,31,191,31,234,32,21,32,65,32,108,32,152,32,196,32,240,33,28,33,72,33,117,33,161,33,206,33,251,34,39,34,85,34,130,34,175,34,221,35,10,35,56,35,102,35,148,35,194,35,240,36,31,36,77,36,124,36,171,36,218,37,9,37,56,37,104,37,151,37,199,37,247,38,39,38,87,38,135,38,183,38,232,39,24,39,73,39,122,39,171,39,220,40,13,40,63,40,113,40,162,40,212,41,6,41,56,41,107,41,157,41,208,42,2,42,53,42,104,42,155,42,207,43,2,43,54,43,105,43,157,43,209,44,5,44,57,44,110,44,162,44,215,45,12,45,65,45,118,45,171,45,225,46,22,46,76,46,130,46,183,46,238,47,36,47,90,47,145,47,199,47,254,48,53,48,108,48,164,48,219,49,18,49,74,49,130,49,186,49,242,50,42,50,99,50,155,50,212,51,13,51,70,51,127,51,184,51,241,52,43,52,101,52,158,52,216,53,19,53,77,53,135,53,194,53,253,54,55,54,114,54,174,54,233,55,36,55,96,55,156,55,215,56,20,56,80,56,140,56,200,57,5,57,66,57,127,57,188,57,249,58,54,58,116,58,178,58,239,59,45,59,107,59,170,59,232,60,39,60,101,60,164,60,227,61,34,61,97,61,161,61,224,62,32,62,96,62,160,62,224,63,33,63,97,63,162,63,226,64,35,64,100,64,166,64,231,65,41,65,106,65,172,65,238,66,48,66,114,66,181,66,247,67,58,67,125,67,192,68,3,68,71,68,138,68,206,69,18,69,85,69,154,69,222,70,34,70,103,70,171,70,240,71,53,71,123,71,192,72,5,72,75,72,145,72,215,73,29,73,99,73,169,73,240,74,55,74,125,74,196,75,12,75,83,75,154,75,226,76,42,76,114,76,186,77,2,77,74,77,147,77,220,78,37,78,110,78,183,79,0,79,73,79,147,79,221,80,39,80,113,80,187,81,6,81,80,81,155,81,230,82,49,82,124,82,199,83,19,83,95,83,170,83,246,84,66,84,143,84,219,85,40,85,117,85,194,86,15,86,92,86,169,86,247,87,68,87,146,87,224,88,47,88,125,88,203,89,26,89,105,89,184,90,7,90,86,90,166,90,245,91,69,91,149,91,229,92,53,92,134,92,214,93,39,93,120,93,201,94,26,94,108,94,189,95,15,95,97,95,179,96,5,96,87,96,170,96,252,97,79,97,162,97,245,98,73,98,156,98,240,99,67,99,151,99,235,100,64,100,148,100,233,101,61,101,146,101,231,102,61,102,146,102,232,103,61,103,147,103,233,104,63,104,150,104,236,105,67,105,154,105,241,106,72,106,159,106,247,107,79,107,167,107,255,108,87,108,175,109,8,109,96,109,185,110,18,110,107,110,196,111,30,111,120,111,209,112,43,112,134,112,224,113,58,113,149,113,240,114,75,114,166,115,1,115,93,115,184,116,20,116,112,116,204,117,40,117,133,117,225,118,62,118,155,118,248,119,86,119,179,120,17,120,110,120,204,121,42,121,137,121,231,122,70,122,165,123,4,123,99,123,194,124,33,124,129,124,225,125,65,125,161,126,1,126,98,126,194,127,35,127,132,127,229,128,71,128,168,129,10,129,107,129,205,130,48,130,146,130,244,131,87,131,186,132,29,132,128,132,227,133,71,133,171,134,14,134,114,134,215,135,59,135,159,136,4,136,105,136,206,137,51,137,153,137,254,138,100,138,202,139,48,139,150,139,252,140,99,140,202,141,49,141,152,141,255,142,102,142,206,143,54,143,158,144,6,144,110,144,214,145,63,145,168,146,17,146,122,146,227,147,77,147,182,148,32,148,138,148,244,149,95,149,201,150,52,150,159,151,10,151,117,151,224,152,76,152,184,153,36,153,144,153,252,154,104,154,213,155,66,155,175,156,28,156,137,156,247,157,100,157,210,158,64,158,174,159,29,159,139,159,250,160,105,160,216,161,71,161,182,162,38,162,150,163,6,163,118,163,230,164,86,164,199,165,56,165,169,166,26,166,139,166,253,167,110,167,224,168,82,168,196,169,55,169,169,170,28,170,143,171,2,171,117,171,233,172,92,172,208,173,68,173,184,174,45,174,161,175,22,175,139,176,0,176,117,176,234,177,96,177,214,178,75,178,194,179,56,179,174,180,37,180,156,181,19,181,138,182,1,182,121,182,240,183,104,183,224,184,89,184,209,185,74,185,194,186,59,186,181,187,46,187,167,188,33,188,155,189,21,189,143,190,10,190,132,190,255,191,122,191,245,192,112,192,236,193,103,193,227,194,95,194,219,195,88,195,212,196,81,196,206,197,75,197,200,198,70,198,195,199,65,199,191,200,61,200,188,201,58,201,185,202,56,202,183,203,54,203,182,204,53,204,181,205,53,205,181,206,54,206,182,207,55,207,184,208,57,208,186,209,60,209,190,210,63,210,193,211,68,211,198,212,73,212,203,213,78,213,209,214,85,214,216,215,92,215,224,216,100,216,232,217,108,217,241,218,118,218,251,219,128,220,5,220,138,221,16,221,150,222,28,222,162,223,41,223,175,224,54,224,189,225,68,225,204,226,83,226,219,227,99,227,235,228,115,228,252,229,132,230,13,230,150,231,31,231,169,232,50,232,188,233,70,233,208,234,91,234,229,235,112,235,251,236,134,237,17,237,156,238,40,238,180,239,64,239,204,240,88,240,229,241,114,241,255,242,140,243,25,243,167,244,52,244,194,245,80,245,222,246,109,246,251,247,138,248,25,248,168,249,56,249,199,250,87,250,231,251,119,252,7,252,152,253,41,253,186,254,75,254,220,255,109,255,255],t.hatchData=["000000FF00000000","1010101010101010","8040201008040201","0102040810204080","101010FF10101010","8142241818244281","8000000008000000","0010000100100001","2200880022008800","2288228822882288","2255885522558855","AA558A55AA55A855","AA55AA55AA55AA55","BB55EE55BB55EE55","DD77DD77DD77DD77","FFDDFF77FFDDFF77","FF7FFFF7FF7FFFF7","FF7FFFFFFFF7FFFF","8844221188442211","1122448811224488","CC663399CC663399","993366CC993366CC","E070381C0E0783C1","C183070E1C3870E0","4040404040404040","00FF000000FF0000","AAAAAAAAAAAAAAAA","FF00FF00FF00FF00","CCCCCCCCCCCCCCCC","FFFF0000FFFF0000","8844221100000000","1122448800000000","F00000000F000000","8080808008080808","0240088004200110","0C8DB130031BD8C0","8403304884033048","00304A8100304A81","0102040818244281","202020FF020202FF","1422518854224588","F0F0F0F0AA55AA55","0100201020000102","AA00800080008000","0020008800020088","8448300C02010103","33FFCCFF33FFCCFF","98F8F877898F8F77","111111FF111111FF","3333CCCC3333CCCC","0F0F0F0FF0F0F0F0","0502058850205088","10387CFE7C381000","0000000000000000"],t.standardFontWidths=null,t.standardFontInfo=null,t._standardFontCharsNames=null,t}();t.StiPdfResources=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){this.ref=-1,this.info=null}return Object.defineProperty(t.prototype,"isUsed",{get:function(){return!(-1==this.ref)},enumerable:!0,configurable:!0}),t.prototype.addRef=function(){this.info.addRef(this)},t.prototype.toString=function(){if(-1==this.ref)return"-";return String.stiFormat("ref = {0}",this.ref)},t}();t.StiPdfObjInfo=e;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfContentObjInfo=i;var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfXObjectObjInfo=r;var n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfFontObjInfo=n;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfOutlinesObjInfo=o;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfShadingObjInfo=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfPatternsObjInfo=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfAnnotObjInfo=l;var u=function(){function t(){}return t}();t.StiPdfCheckBoxObjInfo=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(e);t.StiPdfAcroFormObjInfo=c;var p=function(){function t(){this.objectsCounter=0,this.objects=null,this.objectsCounter=0,this.objects=[],this.root=this.createObject(!0),this.info=this.createObject(!0),this.colorSpace=this.createObject(!0),this.pages=this.createObject(!0),this.structTreeRoot=this.createObject(!0),this.pageList=[],this.xObjectList=[],this.fontList=[],this.linkList=[],this.embeddedFilesList=[]}return t.prototype.addRef=function(t){this.objectsCounter++,t.ref=this.objectsCounter},t.prototype.createObject=function(t){void 0===t&&(t=!1);var i=new e;return i.info=this,t&&this.addRef(i),i},t.prototype.createContentObject=function(t){void 0===t&&(t=!1);var e=new i;return e.info=this,t&&this.addRef(e),e.content=this.createObject(t),e},t.prototype.createXObject=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=new r;return i.info=this,t&&this.addRef(i),i.mask=this.createObject(t&&e),i},t.prototype.createFontObject=function(t,e,i,r,o){void 0===t&&(t=!1),void 0===e&&(e=!0),void 0===i&&(i=!1),void 0===r&&(r=!0),void 0===o&&(o=!1);var a=new n;return a.info=this,t&&this.addRef(a),a.descendantFont=this.createObject(t&&e),a.toUnicode=this.createObject(t&&e),a.cIDSet=this.createObject(t&&e),a.encoding=this.createObject(t&&!e&&!o),a.fontDescriptor=this.createObject(t&&!i),a.fontFile2=this.createObject(t&&r),a},t.prototype.createOutlinesObject=function(t){void 0===t&&(t=!1);var e=new o;return e.info=this,t&&this.addRef(e),e.items=[],e},t.prototype.createPatternsObject=function(t){void 0===t&&(t=!1);var e=new s;return e.info=this,e.resources=this.createObject(t),e.first=this.createObject(t),e.hatchItems=[],e.shadingItems=[],e},t.prototype.createShadingObject=function(t){void 0===t&&(t=!1);var e=new a;return e.info=this,t&&this.addRef(e),e.function=this.createObject(t),e},t.prototype.createAcroFormObject=function(t){void 0===t&&(t=!1);var e=new c;return e.info=this,t&&this.addRef(e),e.annots=[],e.checkBoxes=[],e.unsignedSignatures=[],e.signatures=[],e.tooltips=[],e.annotFontItems=[],e},t.prototype.createAnnotObject=function(t,e,i){void 0===t&&(t=!1),void 0===e&&(e=!1),void 0===i&&(i=0);var r=new l;r.info=this,t&&this.addRef(r),r.aP=this.createObject(t&&e),r.aA=[];for(var n=0;n<i;n++)r.aA.add(this.createObject(t));return r},t}();t.StiPdfStructure=p}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Base.Localization.StiLocalization,n=function(){function t(){}return t}(),o=function(){function t(){}return t}(),a=function(t){function n(){var i=null!==t&&t.apply(this,arguments)||this;return i.colorList=null,i.fontList=null,i.styleList=null,i.unicodeMapArray=null,i.codePageToFont=null,i.charsetCount=0,i.fontToCodePages=null,i.baseFontNumber=0,i.usePageHeadersAndFooters=!1,i.imageResolution=.96,i.imageQuality=.75,i.imageFormat=e.StiExportFormat.Rtf,i.useStyles=!1,i.bookmarkList=null,i.usedBookmarks=null,i}return __extends(n,t),Object.defineProperty(n.prototype,"defaultExtension",{get:function(){return"rtf"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"exportFormat",{get:function(){return e.StiExportFormat.Rtf},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"groupCategory",{get:function(){return"Word"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return i.StiExportPosition.Rtf},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"exportNameInMenu",{get:function(){return r.get("Export","ExportTypeRtfFile")},enumerable:!0,configurable:!0}),n.prototype.getFilter=function(){return r.get("FileFilters","RtfFiles")},n.prototype.exportTo=function(t,e,i){},Object.defineProperty(n.prototype,"multipleFiles",{get:function(){return!1},enumerable:!0,configurable:!0}),n.prototype.getColorNumberInt=function(t,e){if(t.count>0)for(var i=0;i<t.count;i++)if(t[i].stiEquals(e))return i;return t.add(e),t.count-1},n.prototype.getColorNumber=function(t,e){return this.getColorNumberInt(t,e).toString()},n.prototype.getFontNumber2=function(t,e){if(t.count>0)for(var i=0;i<t.count;i++){var r=t[i];if(r.name==e.name)return i*(0==this.charsetCount?1:this.charsetCount)}return t.add(e),(t.count-1)*(0==this.charsetCount?1:this.charsetCount)},n.prototype.getFontNumber3=function(t,e,i){if(t.count>0)for(var r=0;r<t.count;r++){var n=t[r];if(n.name==e.name)return r*(0==this.charsetCount?1:this.charsetCount)+this.getCharsetIndex(i)}return t.add(e),(t.count-1)*(0==this.charsetCount?1:this.charsetCount)+this.getCharsetIndex(i)},n.prototype.getCharsetIndex=function(t){var e=0;if(0==this.charsetCount)return this.codePageToFont[e]=1,0;return this.codePageToFont[e]},n}(i.StiExportService);i.StiRtfExportService=a}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(){function e(){}return e.prototype.getExportFormat=function(){return t.StiExportFormat.None},e}();e.StiExportSettings=i}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i.pageRange=new t.StiPagesRange,i}return __extends(i,e),i}(e.StiExportSettings);e.StiPageRangeExportSettings=i}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.Encoding,n=function(t){function n(e){void 0===e&&(e=i.StiDataType.Csv);var n=t.call(this)||this;return n.dataType=i.StiDataType.Csv,n.dataExportMode=i.StiDataExportMode.Data,n.exportDataOnly=!1,n.codePage=i.StiDbfCodePages.Default,n.skipColumnHeaders=!1,n.useDefaultSystemEncoding=!0,n.dataType=e,n.encoding=r.UTF8,n.separator=";",n}return __extends(n,t),n.prototype.getExportFormat=function(){if(this.dataType==i.StiDataType.Dbf)return e.StiExportFormat.Dbf;if(this.dataType==i.StiDataType.Dif)return e.StiExportFormat.Dif;if(this.dataType==i.StiDataType.Sylk)return e.StiExportFormat.Sylk;if(this.dataType==i.StiDataType.Xml)return e.StiExportFormat.Xml;return e.StiExportFormat.Csv},n}(i.StiPageRangeExportSettings);i.StiDataExportSettings=n}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(){return e.call(this,t.StiDataType.Csv)||this}return __extends(i,e),i}(t.StiDataExportSettings);t.StiCsvExportSettings=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Text.Encoding,n=t.Base.Drawing.StiHorAlignment,o=function(t){function o(o){void 0===o&&(o=i.StiHtmlType.Html);var a=t.call(this)||this;return a.htmlType=i.StiHtmlType.Html,a.imageQuality=.75,a.imageResolution=96,a.encoding=r.Default,a.zoom=1,a.exportMode=i.StiHtmlExportMode.Table,a.exportQuality=i.StiHtmlExportQuality.High,a.addPageBreaks=!0,a.bookmarksTreeWidth=150,a.exportBookmarksMode=i.StiHtmlExportBookmarksMode.All,a.useStylesTable=!0,a.removeEmptySpaceAtBottom=StiOptions.Export.Html.removeEmptySpaceAtBottom,a.pageHorAlignment=n.Left,a.compressToArchive=!1,a.useEmbeddedImages=!1,a.continuousPages=!0,a.chartType=i.StiHtmlChartType.AnimatedVector,a.openLinksTarget=null,a.useWatermarkMargins=!1,a.htmlType=o,a.encoding=r.UTF8,a.imageFormat=e.ImageFormat.Png,a}return __extends(o,t),o.prototype.getExportFormat=function(){if(this.htmlType==i.StiHtmlType.Html5)return e.StiExportFormat.Html5;if(this.htmlType==i.StiHtmlType.Mht)return e.StiExportFormat.Mht;return e.StiExportFormat.Html},o}(i.StiPageRangeExportSettings);i.StiHtmlExportSettings=o}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(){return e.call(this,t.StiHtmlType.Html5)||this}return __extends(i,e),i}(t.StiHtmlExportSettings);t.StiHtml5ExportSettings=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(t){void 0===t&&(t=e.StiExcelType.ExcelBinary);var r=i.call(this)||this;return r.excelType=e.StiExcelType.ExcelBinary,r.useOnePageHeaderAndFooter=!1,r.exportDataOnly=!1,r.exportPageBreaks=!1,r.exportObjectFormatting=!0,r.exportEachPageToSheet=!1,r.imageQuality=.75,r.imageResolution=100,r.companyString=e.StiExportUtils.getReportVersion(),r.lastModifiedString=e.StiExportUtils.getReportVersion(),r.restrictEditing=e.StiExcel2007RestrictEditing.No,r.excelType=t,r}return __extends(r,i),r.prototype.getExportFormat=function(){if(this.excelType==e.StiExcelType.ExcelXml)return t.StiExportFormat.ExcelXml;if(this.excelType==e.StiExcelType.Excel2007)return t.StiExportFormat.Excel2007;return t.StiExportFormat.Excel},r}(e.StiPageRangeExportSettings);e.StiExcelExportSettings=i}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(e){function i(){return e.call(this,t.StiExcelType.Excel2007)||this}return __extends(i,e),i}(t.StiExcelExportSettings);t.StiExcel2007ExportSettings=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=function(r){function n(){var e=null!==r&&r.apply(this,arguments)||this;return e.usePageHeadersAndFooters=!1,e.imageQuality=.75,e.imageResolution=100,e.removeEmptySpaceAtBottom=StiOptions.Export.Word.removeEmptySpaceAtBottom,e.companyString=t.Report.Export.StiExportUtils.getReportVersion(),e.lastModifiedString=t.Report.Export.StiExportUtils.getReportVersion(),e.restrictEditing=i.StiWord2007RestrictEditing.No,e}return __extends(n,r),n.prototype.getExportFormat=function(){return e.StiExportFormat.Word2007},n}(i.StiPageRangeExportSettings);i.StiWord2007ExportSettings=r}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(i){function r(){var t=null!==i&&i.apply(this,arguments)||this;return t.imageQuality=.75,t.imageResolution=100,t.imageResolutionMode=e.StiImageResolutionMode.Auto,t.embeddedFonts=!0,t.standardPdfFonts=!1,t.compressed=!1,t.useUnicode=!1,t.useDigitalSignature=!1,t.getCertificateFromCryptoUI=!0,t.exportRtfTextAsImage=!1,t.passwordInputUser=String.empty,t.passwordInputOwner=String.empty,t.userAccessPrivileges=e.StiUserAccessPrivileges.All,t.keyLength=e.StiPdfEncryptionKeyLength.Bit40,t.creatorString=String.empty,t.keywordsString=String.empty,t.imageCompressionMethod=e.StiPdfImageCompressionMethod.Jpeg,t.imageFormat=e.StiImageFormat.Color,t.ditheringType=e.StiMonochromeDitheringType.FloydSteinberg,t.pdfComplianceMode=e.StiPdfComplianceMode.None,t.autoPrintMode=StiOptions.Export.Pdf.defaultAutoPrintMode,t.allowEditable=e.StiPdfAllowEditable.No,t}return __extends(r,i),r.prototype.getExportFormat=function(){return t.StiExportFormat.Pdf},Object.defineProperty(r.prototype,"pdfACompliance",{get:function(){return this.pdfComplianceMode!=e.StiPdfComplianceMode.None},set:function(t){this.pdfComplianceMode=t?e.StiPdfComplianceMode.A1:e.StiPdfComplianceMode.None},enumerable:!0,configurable:!0}),r}(e.StiPageRangeExportSettings);e.StiPdfExportSettings=i}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiBrush,r=t.System.Drawing.Rectangle,n=t.System.Drawing.Pen,o=function(){function t(t){this.geomWriter=null,this.geomWriter=t}return t.prototype.baseTransform=function(t,e,i,r,n,o){this.geomWriter.translateTransform(e,i),this.geomWriter.rotateTransform(r),this.geomWriter.translateTransform(n,o)},t.prototype.baseRollbackTransform=function(t){if(this.geomWriter.sti_is(e.StiSvgGeomWriter)){var i=this.geomWriter.sti_as(e.StiSvgGeomWriter);i.endTransform(),i.endTransform(),i.endTransform()}},t.prototype.baseFillRectangle=function(t,e,i,n,o,a){var s=new r(i,n,o,a);this.geomWriter.fillRectangle(s,e)},t.prototype.baseFillRectangle2D=function(t,e,i,n,o,a){var s=new r(i,n,o,a);this.geomWriter.fillRectangle(s,e)},t.prototype.baseFillPolygon=function(t,e,i){this.geomWriter.fillPolygon(i,e)},t.prototype.baseFillEllipse=function(t,e,i,n,o,a){this.geomWriter.fillEllipse(new r(i,n,o,a),e)},t.prototype.baseDrawRectangle=function(t,e,i,o,a,s,l){var u=new r(o,a,s,l);this.geomWriter.drawRectangle(u,new n(e))},t.prototype.baseDrawImage=function(t,e,i,n,o,a,s){if(null!=e){var l=new r(n,o,a,s);this.geomWriter.drawImage(e,l)}},t.prototype.baseDrawString=function(t,e,r,n,o,a){var s=i.getBrush(n,o);this.geomWriter.drawString(e,r,n,o,a)},t.prototype.baseMeasureString=function(t,e,i){return this.geomWriter.measureString(e,i)},t.createNew=function(e){var i=new t(null);return i.geomWriter=e,i},t}();e.StiBarCodeExportPainter=o}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=function(){function e(t){if(void 0===t&&(t=!0),this.arabicTableSize=76,this.ligaturesTableSize=8+32,this.stSeparator="./:\\,-",this.modePdf=!0,this.modePdf=t,null==e.arabicTable){var i=[[1569,1,65152,0,0,0],[1570,2,65153,65154,0,0],[1571,2,65155,65156,0,0],[1572,2,65157,65158,0,0],[1573,2,65159,65160,0,0],[1574,3,65161,65162,65163,65164],[1575,2,65165,65166,0,0],[1576,3,65167,65168,65169,65170],[1577,2,65171,65172,0,0],[1578,3,65173,65174,65175,65176],[1579,3,65177,65178,65179,65180],[1580,3,65181,65182,65183,65184],[1581,3,65185,65186,65187,65188],[1582,3,65189,65190,65191,65192],[1583,2,65193,65194,0,0],[1584,2,65195,65196,0,0],[1585,2,65197,65198,0,0],[1586,2,65199,65200,0,0],[1587,3,65201,65202,65203,65204],[1588,3,65205,65206,65207,65208],[1589,3,65209,65210,65211,65212],[1590,3,65213,65214,65215,65216],[1591,3,65217,65218,65219,65220],[1592,3,65221,65222,65223,65224],[1593,3,65225,65226,65227,65228],[1594,3,65229,65230,65231,65232],[1601,3,65233,65234,65235,65236],[1602,3,65237,65238,65239,65240],[1603,3,65241,65242,65243,65244],[1604,3,65245,65246,65247,65248],[1605,3,65249,65250,65251,65252],[1606,3,65253,65254,65255,65256],[1607,3,65257,65258,65259,65260],[1608,2,65261,65262,0,0],[1609,3,65263,65264,64488,64489],[1610,3,65265,65266,65267,65268],[1649,2,64336,64337,0,0],[1655,2,64477,1655,0,0],[1657,3,64358,64359,64360,64361],[1658,3,64350,64351,64352,64353],[1659,3,64338,64339,64340,64341],[1662,3,64342,64343,64344,64345],[1663,3,64354,64355,64356,64357],[1664,3,64346,64347,64348,64349],[1667,3,64374,64375,64376,64377],[1668,3,64370,64371,64372,64373],[1670,3,64378,64379,64380,64381],[1671,3,64382,64383,64384,64385],[1672,2,64392,64393,0,0],[1676,2,64388,64389,0,0],[1677,2,64386,64387,0,0],[1678,2,64390,64391,0,0],[1681,2,64396,64397,0,0],[1688,2,64394,64395,0,0],[1700,3,64362,64363,64364,64365],[1702,3,64366,64367,64368,64369],[1705,3,64398,64399,64400,64401],[1709,3,64467,64468,64469,64470],[1711,3,64402,64403,64404,64405],[1713,3,64410,64411,64412,64413],[1715,3,64406,64407,64408,64409],[1722,2,64414,64415,0,0],[1723,3,64416,64417,64418,64419],[1726,3,64426,64427,64428,64429],[1728,2,64420,64421,0,0],[1729,3,64422,64423,64424,64425],[1733,2,64480,64481,0,0],[1734,2,64473,64474,0,0],[1735,2,64471,64472,0,0],[1736,2,64475,64476,0,0],[1737,2,64482,64483,0,0],[1739,2,64478,64479,0,0],[1740,3,64508,64509,64510,64511],[1744,3,64484,64485,64486,64487],[1746,2,64430,64431,0,0],[1747,2,64432,64433,0,0]];e.arabicTable=i}if(null==e.ligaturesTable){var r=[["ﻟﺂ","ﻵ"],["ﻠﺂ","ﻶ"],["ﻟﺄ","ﻷ"],["ﻠﺄ","ﻸ"],["ﻟﺈ","ﻹ"],["ﻠﺈ","ﻺ"],["ﻟﺎ","ﻻ"],["ﻠﺎ","ﻼ"],["שׁ","שׁ"],["שׂ","שׂ"],["שּׁ","שּׁ"],["שּׂ","שּׂ"],["אַ","אַ"],["אָ","אָ"],["אּ","אּ"],["בּ","בּ"],["גּ","גּ"],["דּ","דּ"],["הּ","הּ"],["וּ","וּ"],["זּ","זּ"],["טּ","טּ"],["יּ","יּ"],["ךּ","ךּ"],["כּ","כּ"],["לּ","לּ"],["מּ","מּ"],["נּ","נּ"],["סּ","סּ"],["ףּ","ףּ"],["פּ","פּ"],["צּ","צּ"],["קּ","קּ"],["רּ","רּ"],["שּ","שּ"],["תּ","תּ"],["וֹ","וֹ"],["בֿ","בֿ"],["כֿ","כֿ"],["פֿ","פֿ"],["אל","ﭏ"]];e.ligaturesTable=r}if(null==e.arabicTableArray){for(var n=Array.create(Number,65536,5),o=0;o<this.arabicTableSize;o++){var a=e.arabicTable[o][0];n[a][0]=e.arabicTable[o][1],n[a][1]=e.arabicTable[o][2],n[a][2]=e.arabicTable[o][3],n[a][3]=e.arabicTable[o][4],n[a][4]=e.arabicTable[o][5]}for(var o=1424;o<=1535;o++)n[o][0]=1,n[o][1]=o;for(var o=64285;o<=64335;o++)n[o][0]=1,n[o][1]=o;e.arabicTableArray=n}}return e.prototype.convert=function(r,n){var o=new i;if(r.length>0)if(n){var a=0,s=new i;if(t.System.Char.isDigit(r.charAt(0))){var l=new i,u=0;while(u<r.length&&(t.System.Char.isDigit(r.charAt(u))||-1!=this.stSeparator.indexOf(r.charAt(u))))l.append(r.charAt(u)),u++;"."==r.charAt(u-1)&&(l.length--,l.insert(0,"."));while(u<r.length&&(32==r.charCodeAt(u)||160==r.charCodeAt(u)))u++,o.insert(0," ");o.append(l),a=u}while(a<r.length){var c=r.charCodeAt(a);if(e.symbolIsArabicOrHebrew(c)||this.symbolIsRTLMark(c)){if(!this.symbolIsRTLMark(c)){var p=s.length,h=-1,g=-1;while(a>0&&p>0&&(r.charCodeAt(a-1)>=32&&r.charCodeAt(a-1)<=64||r.charCodeAt(a-1)>=91&&r.charCodeAt(a-1)<=96||r.charCodeAt(a-1)>=123&&r.charCodeAt(a-1)<=126||160==r.charCodeAt(a-1)))a--,p--,32!=r.charCodeAt(a)&&160!=r.charCodeAt(a)||(h=a,g=p);-1!=h&&(a=h,p=g),s.length=p}var m=a,d=m,S=m;c=r.charCodeAt(a);while(!this.symbolIsLTRMark(c)&&(e.symbolIsArabicOrHebrew(c)||c>=32&&c<=64||c>=91&&c<=96||c>=123&&c<=126||160==c||c>=8192&&c<=8303))e.symbolIsArabicOrHebrew(c)&&(S=a),t.System.Char.isWhitespace(String.fromCharCode(c))&&(d=a),a++,c=a<r.length?r.charCodeAt(a):0;var f=a;d>S&&(f=d+1);var y=new i;for(a=m;a<f;a++)c=r.charCodeAt(a),this.symbolIsBidiMark(c)||y.append(r.charAt(a));a--,o.insert(0,s.toString()),o.insert(0,this.convertArabic(y)),s=new i}else this.symbolIsBidiMark(c)||s.append(String.fromCharCode(c));a++}o.insert(0,s.toString())}else{var a=0;while(a<r.length){var c=r.charCodeAt(a);if(e.symbolIsArabicOrHebrew(c)&&!t.System.Char.isDigit(String.fromCharCode(c))){var y=new i;while(e.symbolIsArabicOrHebrew(c)||c>=32&&c<=64||c>=91&&c<=96||c>=123&&c<=126||160==c||c>=8192&&c<=8303)this.symbolIsBidiMark(c)||y.append(r.charAt(a)),a++,c=a<r.length?r.charCodeAt(a):0;a--;while(32==r.charCodeAt(a)||160==r.charCodeAt(a))a--,y.length--;o.append(this.convertArabic(y))}else this.symbolIsBidiMark(c)||o.append(String.fromCharCode(c));a++}}return o},e.prototype.convertArabic=function(r){var n=new i,o=0;while(o<r.length){switch(e.arabicTableArray[r.charCodeAt(o)][0]){case 3:var a=new i;a.append(r.charAt(o));while(o+1<r.length&&3==e.arabicTableArray[r.charCodeAt(o+1)][0])o++,a.append(r.charAt(o));if(o+1<r.length&&2==e.arabicTableArray[r.charCodeAt(o+1)][0]&&(o++,a.append(r.charAt(o))),1==a.length)n.append(String.fromCharCode(e.arabicTableArray[a.charCodeAt(0)][1]));else{if(n.append(String.fromCharCode(e.arabicTableArray[a.charCodeAt(0)][3])),a.length>2)for(var s=1;s<a.length-1;s++)n.append(String.fromCharCode(e.arabicTableArray[a.charCodeAt(s)][4]));n.append(String.fromCharCode(e.arabicTableArray[a.charCodeAt(a.length-1)][2]))}break;case 2:case 1:n.append(String.fromCharCode(e.arabicTableArray[r.charCodeAt(o)][1]));break;default:n.append(r.charAt(o));break}o++}var l=new i;l=n;for(var u=0;u<this.ligaturesTableSize;u++)l=l.replace(e.ligaturesTable[u][0],e.ligaturesTable[u][1]);var c=new i,p=l.length-1;while(p>=0){var h=l.charAt(p);switch(h){case"(":h=")";break;case")":h="(";break;case"[":h="]";break;case"]":h="[";break;case"{":h="}";break;case"}":h="{";break}if(t.System.Char.isDigit(h)){var g=p;while(g>0&&this.symbolIsDigitOrDelimiter(l.charCodeAt(g-1)))g--;for(var m=g;m<=p;m++)c.append(l.charAt(m));p=g}else c.append(h);p--}return c.toString()},e.prototype.symbolIsDigitOrDelimiter=function(e){return t.System.Char.isDigit(String.fromCharCode(e))||46==e||47==e||58==e||92==e||44==e||45==e},e.symbolIsArabicOrHebrew=function(t){return t>=1536&&t<=1791||t>=1424&&t<=1535||t>=64285&&t<=64335||t>=64336&&t<=65023||t>=65136&&t<=65279},e.stringContainArabicOrHebrew=function(t){if(String.isNullOrWhiteSpace(t))return!1;for(var e=0,i=t.split("");e<i.length;e++){var r=i[e];if(this.symbolIsArabicOrHebrew(r.charCodeAt(0)))return!0}return!1},e.prototype.symbolIsBidiMark=function(t){return 8206==t||8207==t||t>=8234&&t<=8238},e.prototype.symbolIsLTRMark=function(t){return 8206==t||8234==t||8237==t},e.prototype.symbolIsRTLMark=function(t){return 8207==t||8235==t||8238==t},e.prototype.clear=function(){e.arabicTable=null,e.ligaturesTable=null,e.arabicTableArray=null},e.ligaturesTable=null,e.arabicTable=null,e.arabicTableArray=null,e}();e.StiBidirectionalConvert=r}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.IStiTextOptions,n=t.Report.Components.IStiExportImage,o=t.Report.Components.IStiExportImageExtended,a=function(){function t(t){void 0===t&&(t=e.StiExportFormat.None),this._exportFormat=e.StiExportFormat.None,this._exportImage=null,this.left=0,this.top=0,this.width=0,this._height=0,this.text="",this._exportFormat=t}return t.prototype.clone=function(){return this.memberwiseClone()},t.prototype.forceExportAsImage=function(t){var e=t.sti_as(r);return null!=e&&0!=e.textOptions.angle},Object.defineProperty(t.prototype,"exportFormat",{get:function(){return this._exportFormat},set:function(t){this._exportFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this._component},set:function(t){this._component=t,this._exportImage=t.sti_as(n),null!=this._exportImage&&this._exportImage.sti_is(o)&&(this._exportImage.isExportAsImage(this._exportFormat)||this.forceExportAsImage(t)||(this._exportImage=null))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exportImage",{get:function(){return this._exportImage},set:function(t){this._exportImage=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(t){this._height=Math.max(t,0)},enumerable:!0,configurable:!0}),t}();i.StiCell=a}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Guid,n=function(){function t(t,e,i,r,n,o,a,s,l,u,c,p,h,g,m){void 0===g&&(g=!0),void 0===m&&(m=0),this.absolutePosition=!1,this.overflow=!0,this.borderRadius=0,this._internalStyleName=null,this._styleName=null,this.color=t,this.textColor=e,this.font=i,this.horAlignment=r,this.vertAlignment=n,this.border=o,this.borderL=a,this.borderR=s,this.borderB=l,this.textOptions=u,this.wordWrap=c,this.internalStyleName=h,this.format=p,this.overflow=g,this.borderRadius=m}return t.prototype.clone=function(){var t=this.memberwiseClone();return t.horAlignment=this.horAlignment,t.vertAlignment=this.vertAlignment,null!=this.border&&(t.border=this.border.clone()),null!=this.borderL&&(t.borderL=this.borderL.clone()),null!=this.borderR&&(t.borderR=this.borderR.clone()),null!=this.borderB&&(t.borderB=this.borderB.clone()),null!=this.font&&(t.font=this.font.clone()),null!=this.textOptions&&(t.textOptions=this.textOptions.clone()),t.horAlignment=this.horAlignment,t.overflow=this.overflow,t.borderRadius=this.borderRadius,t},t.prototype.getHashCode=function(){var t=null!=this.border?this.border.getHashCode():0;return t=397*t^(null!=this.borderL?this.borderL.getHashCode():0),t=397*t^(null!=this.borderR?this.borderR.getHashCode():0),t=397*t^(null!=this.borderB?this.borderB.getHashCode():0),t=397*t^this.color.getHashCode(),t=397*t^(null!=this.font?this.font.getHashCode():0),t=397*t^this.horAlignment,t=397*t^this.vertAlignment,t=397*t^(null!=this.textOptions?this.textOptions.getHashCode():0),t=397*t^this.textColor.getHashCode(),t=397*t^this.wordWrap.getHashCode(),t=397*t^(null!=this.format?this.format.getHashCode():0),t=397*t^(null!=this._internalStyleName?this._internalStyleName.getHashCode():0),t=397*t^this.format.getHashCode()},t.prototype.stiEquals=function(e){var i=e.sti_as(t);if(!this.color.stiEquals(i.color))return!1;if(this.horAlignment!=i.horAlignment)return!1;if(this.vertAlignment!=i.vertAlignment)return!1;if(!this.textColor.stiEquals(i.textColor))return!1;if(this.wordWrap!=i.wordWrap)return!1;if(this.font.bold!=i.font.bold)return!1;if(this.font.italic!=i.font.italic)return!1;if(this.font.strikeout!=i.font.strikeout)return!1;if(this.font.underline!=i.font.underline)return!1;if(this.font.size!=i.font.size)return!1;if(this.font.name!=i.font.name)return!1;if(null==this.textOptions){if(null!=i.textOptions)return!1}else{if(null==i.textOptions)return!1;if(this.textOptions.angle!=i.textOptions.angle)return!1;if(this.textOptions.wordWrap!=i.textOptions.wordWrap)return!1;if(this.textOptions.rightToLeft!=i.textOptions.rightToLeft)return!1}if(null==this.border){if(null!=i.border)return!1}else{if(null==i.border)return!1;if(this.border.color.stiEquals(i.border.color))return!1;if(this.border.size!=i.border.size)return!1;if(this.border.style!=i.border.style)return!1}if(null==this.borderL){if(null!=i.borderL)return!1}else{if(null==i.borderL)return!1;if(!this.borderL.color.stiEquals(i.borderL.color))return!1;if(this.borderL.size!=i.borderL.size)return!1;if(this.borderL.style!=i.borderL.style)return!1}if(null==this.borderR){if(null!=i.borderR)return!1}else{if(null==i.borderR)return!1;if(!this.borderR.color.stiEquals(i.borderR.color))return!1;if(this.borderR.size!=i.borderR.size)return!1;if(this.borderR.style!=i.borderR.style)return!1}if(null==this.borderB){if(null!=i.borderB)return!1}else{if(null==i.borderB)return!1;if(!this.borderB.color.stiEquals(i.borderB.color))return!1;if(this.borderB.size!=i.borderB.size)return!1;if(this.borderB.style!=i.borderB.style)return!1}if(this.format!=i.format)return!1;if(this.internalStyleName!=i.internalStyleName)return!1;if(this.overflow!=i.overflow)return!1;if(this.borderRadius!=i.borderRadius)return!1;return!0},t.getStyleFromCache=function(e,i,r,n,o,a,s,l,u,c,p,h,g,m,d,S,f,y,b,C){var v=0;if(null!=r){var I=S.get(r);null==I?(v=r.bold?1231:1237,v=397*v^(r.italic?1231:1237),v=397*v^(r.strikeout?1231:1237),v=397*v^(r.underline?1231:1237),v=397*v^r.size.getHashCode(),v=397*v^r.name.getHashCode(),S.add(r,v)):v=I.sti_as(Number)}if(v=397*v^(null!=a?a.getHashCode():0),v=397*v^(null!=s?s.getHashCode():0),v=397*v^(null!=l?l.getHashCode():0),v=397*v^(null!=u?u.getHashCode():0),v=397*v^e.getHashCode(),v=397*v^n,v=397*v^o,v=397*v^(null!=c?c.getHashCode():0),v=397*v^i.getHashCode(),v=397*v^(p?1:0),v=397*v^(null!=h?h.getHashCode():0),v=397*v^(null!=g?g.getHashCode():0),v=397*v^(b?1:0),v=397*v^C,y&&null!=f)return m.set(v,f),f;var A=m.get(v);if(null==A){var w=new t(e,i,r,n,o,a,s,l,u,c,p,h,g,b,C);return null!=f&&(w.styleName=f.styleName),m.set(v,w),d.add(w),w}return A.sti_as(t)},Object.defineProperty(t.prototype,"internalStyleName",{get:function(){return this._internalStyleName},set:function(t){null!=t&&(this._internalStyleName=e.StiNameValidator.correctName(t.trim()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleName",{get:function(){return null==this._styleName&&(this._styleName=this._internalStyleName,null==this._styleName&&(this._styleName=r.newGuid().toString().replaceAll("-","").substr(0,8))),this._styleName},set:function(t){this._styleName=t},enumerable:!0,configurable:!0}),t}();i.StiCellStyle=n}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiImage,r=t.System.Promise,n=function(){function t(){}return t.convertAllImages=function(t,e,n){void 0===n&&(n=!1);var o=new r;t.isRendering=!0;for(var a=0,s=!1,l=0,u=t.renderedPages.list;l<u.length;l++){for(var c=u[l],p=0,h=c.getComponentsList();p<h.length;p++){var g=h[p],m=g.sti_as(i);null!=m&&null!=m.imageToDraw&&null!=m.imageToDraw&&(a++,m.imageToDraw.convert(e,n).try(function(){}).finally(function(){a--,s&&0==a&&o.callTry()}))}null!=c.watermark&&null!=c.watermark.image&&(a++,c.watermark.image.convert(e,n).try(function(){}).finally(function(){a--,s&&0==a&&o.callTry()}))}return s=!0,0==a&&o.callTry(),o},t}();e.StiExportImageHelper=n}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Char,n=t.System.Text.StringBuilder,o=function(){function i(){}return i.convertDigitsToArabic=function(t,i){for(var r=0;r<t.length;r++){var n=parseInt(t.charAt(r));n>=48&&n<=57&&(n+=1632-48,i==e.StiArabicDigitsType.Eastern&&(n+=1776-1632),t.insert(r,n.toString(),1))}return t},i.getReportVersion=function(){return null==this.reportVersion&&(this.reportVersion="Stimulsoft Report.JS "+t.StiVersion.version),this.reportVersion},i.saveComponentToString=function(t,i,r,n){void 0===i&&(i=e.ImageFormat.Png),void 0===r&&(r=.75),void 0===n&&(n=100);var o=n/100;if(null==null)return String.empty},i.trimEndWhiteSpace=function(t){return this.trimEndWhiteSpace2(t,!0)},i.trimEndWhiteSpace2=function(t,e){var i="",n=t.length;while(n>0&&r.isWhitespace(t[n-1])&&(e||t.charCodeAt(n-1)>=32))n--;return n==t.length?i=t:n>0&&(i=t.substring(0,n)),i},i.splitString=function(t,e){for(var i=new Array,o=new n,a=0;a<t.length;a++){var s=t.charCodeAt(a);10==s?(i.add(this.trimEndWhiteSpace2(o.toString(),e)),o.clear()):e&&r.isControl(t,a)&&9!=s||o.append(t.charAt(a))}return o.length>0&&i.add(this.trimEndWhiteSpace2(o.toString(),e)),0==i.count&&i.add(""),i},i.stringToUrl=function(e){for(var r=t.System.Text.Encoding.UTF8.getBytes(e),n="",o=0,a=r;o<a.length;o++){var s=a[o];s<32||s>127||-1!=i.wrongUrlSymbols.indexOf(String.fromCharCode(s))?n+=String.stiFormat("%{0:x2}",s):n+=String.fromCharCode(s)}return n},i.reportVersion=null,i.wrongUrlSymbols=" \"'*,;<>[^`{|}:",i.additionalData="iVBORw0KGgoAAAANSUhEUgAAAd8AAAGNCAYAAABQRnukAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhdEVYdENyZWF0aW9uIFRpbWUAMjAxNzowMjowNSAwMjoyODo0OXhS4H0AABHRSURBVHhe7d0LktvIsYbRkZcy+1/TbEVuWA1Pq0USIFC"+"PzKxzIhzWDYct4hH/10Xp2j9+fvgLABjmP5//DAAMIr4AMJj4AsBg4gsAg4kvAAwmvgAwmPgCwGDiCwCDiS8ADCa+ADCY+ALAYOILAIOJLwAMJr4AMJj4AsBg4gsAg4kvAAwmvgAwmPgCfPPPP//87x/Qi/gCfPE1ugJML+IL8OlRbAWYHsQX4MOryAowrYkvsLwzcRVgWhJfYGnvRFWAaUV8gW"+"VdiakA04L4Aku6E1EB5i7xBZbTIp4CzB3iCyylZTQFmKvEF1hGj1gKMFeIL7CEnpEUYN4lvkB5I+IowLxDfIHSRkZRgDlLfIGyZsRQgDlDfIGSZkZQgDkivkA5EeInwLwivkApkaInwDwjvkAZEWMnwDwivgCdCTDfiS9Qxt9///35q3gEmK/EFyhFgMlAfIFyBJjoxBcoSYCJTHyBsgSYqMQXK"+"E2AiUh8gfIEmGjEF1iCABOJ+ALLEGCiEF9gKQJMBOILLEeAmU18gSUJMDOJL7AsAWYW8QWWJsDMIL7A8gSY0cQX4IMAM5L4AnwSYEYRX4AvBJgRxBfgGwGmN/EFeECA6Ul8AZ4QYHoRX4AXBJgexBfggADTmvgCnCDAtCS+ACcJMK2IL8AbBJgWxBfgTQLMXeILcIEAc4f4AlwkwFwlvgA3CDBX"+"iC/ATQLMu8QXoAEB5h3iC9CIAHOW+AI0JMCcIb4AjQkwR8QXoAMB5hXxBehEgHlGfAE6EmAeEV+AzgSY78QXYAAB5ivxBRhEgNmJL8BAAsxGfAEGE2DEF2ACAV6b+AJMIsDrEl+AiQR4TeILMJkAr0d8AQIQ4LWIL0AQArwO8QUIRIDXIL4AwQhwfeILEJAA1ya+AEEJcF3iCxCYANckvgDBCXA"+"94guQgADXIr4ASQhwHeILkIgA1yC+AMkIcH4/fn74/DVAKY9CEDlc74ocukr3uQfxBUq4GqLskRDgnMQXSKt1eLLGQoDzEV8glRGhyRgMAc5FfIEURsdFgNsS4N+JLxDezKhki4YA5yC+QFhRQiLA7QjwL/7/fIGQIgUkcsweiRy4bPeyFydfIBSntnbcy7jEFwgjy6koUzgEOCZfOwMhZPo6Mt"+"Nn9RV0TE6+wFSZB9gJuI0VT8BOvsA02U8+TsBtrHgCFl9giiqDK8BtrBZg8QWGqza0AtzGSgEWX2CoqgMrwG2sEmDxBYapPqwC3MYKARZfYIhVTjQC3Eb190V8ge5WCe9OgNuo/N6IL9DVauHdCXAbVd8f8QW6WTW8OwFuo+J7JL5AF6uHdyfAbVR7n8QXaE54fyfAfCe+QFPC+5gA31PthwLxB"+"ZoR3tcE+JqKp3HxBZoQ3nME+D0Vw7sRX4DBBPicquHd+N/zBW6bGZNXAx09cpniMvpeVg7vRnyBW2YF7p1xjhxhAf5T9fBuxBe4bEbU7gxz1AgL8L9WCO/Gn/kCadwd5qjDHvlk/l3Pe7hKeDfiC1wyOhithlmA7+txD1cK70Z8gbdlDe9OgO9reQ9XC+9GfIGwtlHuNcwCfF+Le7hieDfiC7xl"+"VBxWHeXNKgFe+RmLLxDOyqO8qx7g1Z+x+AKnZQrCkQzXUjXAfrgSXyAYw/y7agH2fH8RX+CUEREYNczZTvBVAiy8/xJfIATD/Fr2AHu+vxNf4FC2k+Irma8la4CF90/iC0xnnM/LFmDP9jHxhTdVOgWupsqz8w7mJ77whn30jF87TkbXeAdzE1846fvYrTJ+Va6z4vMS4LzEF054NnLGL4fKz8k"+"7mJP4woGjcTN+zOYdzEd84YWzo2b84mr9bKL+GbV3MBfxhSfeHTPjF0+v8EYOsPcwB/GFB64OmOFbR+S/pe09jE984Zu7w2X4Ymj9HB7FVoC5Snzhi1aDZfjO63GvRoR3J8BcIb7wqfVQGb51RA+wdzEe8YUPvcbJ6I3X+p6fDWvkAG9EOBbxZXm9B8ngjTP7XkcP8Mb7GIP4srRRQ2TwXot6f6"+"7ENEuAvZNziS/LGj0+xq6v1vf3TkQzBHizR9i7OZ74sqRZY2PkHrsbK/f1PhEe68fPD5+/hiVEGJgsJ6Ndz3vW4l60/nytnk/2mGV7TzNx8mUpUcYw+yi3EjG8LWWOl/D2Jb4sQ/Di2IY96ri3/lwZIya8/YkvS4gW3mzj1vLztvzPav1cRcc9GEV8WUKkQVl13Lbrbnntmb7JyPLMV303ZxBfl"+"hFhWFYdtwzXvXp4hHcs8WUpMwdmxXHbrrnHdfu6ua3Vr38G8WU5M4amwri9ew29rtlfnGtLeOcQX5Y0cnBWHLdM1zzqs0a8Jyu+m1GIL8saMTzVxu3oerZ/vec1O/W2U+3dzEZ8WVrPAVpt3DJe76oBEt75xJfl9RiiyuP2/dq2/3vE9fpLVm2set3RiC98aDlIrcct8lethjwXzysO8YVPLYap"+"V3ijBXi7zpFD7s967xPeWMQXvrgzUL3CuxOgdmaEaObzE954xBe+uTJUvcO7WzHAfuj49X5dfceENybxhQfeGaxR4d2J0T2ZY7R99pnvJu2ILzxxZrhaj9vZsK4SYD9oPHYmwsIbm/jCC68GbFZ4d8KUR69n9SzCwhuf+MKBEeN2dZwFmM3XCAtvDuILJ3wdtCjh3VUNcJXrunsd77xvwpuH+MJ"+"J27BFC++uaoChKvGFSVoHU4Dj8Ux4Rnxhgl6jXGXse16HIBKB+MJgvcdfXGLwHHhFfGGgUYNs+Ody/zkivjDI6EEWgOey3Bt/e7ku8YUBZo29AD/X696455whvtDZ7DEWg+da3pvtP8u95izxhY6ijLEoPNfi3vS4v75yrk18oZNowRPg57Z7c+X+XP33wY+fHz5/DTQSeZAznKgi3L9X92nE53"+"PyrU18oRMBvm7106Tw1udrZ+gk8oCuHjeYTXyhIwG+ZuWTn1PvGsQXOhNg4DvxhQEEmDOcetchvjCIAAM78YWBBPi81U6BTr1rEV8YTIAB8YUJBPicVU6DTr3rEV+YRIDZCO+axBcmEuBjleMkvOsSX5hMgGE9/rud4aTvIWodzcihi/ADQrUfBJx61ya+8MKrwe8xngL8WpUACy++doYHtpE/G"+"voeIYg8ylXCN5vwshFf+OJMdHsT4Oeyh0t42YkvfLoSll4xEuDnsgZMePlKfFneFpPZQXlEgJ/LFjLh5Tt/4YqltYpIz3GN+IPBbnZUIt+bjejyjJMvy4o+3LvIA+4E/Jzw8or4sqQs4d0J8HPbvYl2f4SXI752Zjm9YjFicCP/0BAhOE7iZCG+LKXnOI8aXgE+NvoeiS7v8rUzy+g9yKMGP/LQ"+"R/nBYOQ9El6ucPJlGSPCMHKIo4TukWhBan2vBJe7xJcljAyVAP8SNVBX75ng0pL4Ut7oQI0eaQGGfPyZLzRWPfbviPyDAcwkvpS2yvgLMOQivtDBjOAIMOQhvlCIAEMO4gudzIqNAEN84ktZKw+9AENs4gsdzQyNAENc4gsdzQ6gAENM/ks2KGvWuEcMXuTQRf4BAXoR3wXsw7vayI0MToZ7K8A"+"Qh6+di/s6uJHHN7Ms4Yj8Ob2brEZ8C3s0aEaunS1m2U5sAgwxiG9Rr4aswsjNvoZs0f1KgGE+8S3ozIBlHrn9sx9dQ6/IZA7vToBhLvEt5p3hyjhy3z/z6GuoEN6dAMM84lvIlcHKNHLPPuuoa6gU3p0AwxziW8Sdocowckefsfc1VAzvToBhPPEtoMVARR65s5/NUF8nwDCW+CbXcpgijty7n6"+"nHNVQ+9X4lwDCO+CbWY5AijdzVz2KorxNgGEN8k+o5RBFG7u5n2P/9d2Oyyqn3KwGG/sQ3oREDNHPkWv3ehvo6AYa+xDeZkcMzY+Ra/56G+joBhn7EN5EKMXzFoMYjwNCH+CYxc2hG/N6GNC4BhvbEN4EIA9PzMxjQ+AQY2hLf4KIMS6/xNZx5CDC0I76BCe98Rv13UQMc+QcDeER8gxJeoooWO"+"uElI/ENSHiJLkrwhJesxDeY6uHNyA8Lj81+R7yjZCa+gawSXqNZx6xn6R0iO/ENYrUTr/GsY/Sz9O5QgfgGsOpXzZlG1FfPr416lsJLFeI72arh3RnTOno/S+8KlYjvRKuHd5dlVJ1+j/V6lsJLNeI7ifD+ToDraP0shZeKxHcC4X3MyNbR6ll6J6hKfAcT3tcyjK3T7zl3n6XwUpn4DiS85whw"+"HVefpfBSnfgOIrzvEeA63n2WwssKxHcA4b3GCNdx9ll65qxCfDsT3nuif26n3/OOnqXwshLx7Uh42xDgOp49S+FlNeLbifC2JcB1fH+WwsuKxLcD4e1DgOvYn6XwsqofPz98/poGhLe/6JETFOCIk29DwjtG9OtzAgaOiG8jwjuW0yWQmfg2ILxzRL5ep1/gFfG9SXjnEmAgI/G9QXhjEGAgG/G"+"9SHhjEWAgE/G9QHhjEmAgC/F9k/DGJsBABuL7BuHNQYCB6MT3pEijacCPCTAQmfieEHEsDfgxAQaiEt8DkUfSgB8TYCAi8X0hwzga8GMCDEQjvk9kGkUDfkyAgUjE94GMY2jAjwkwEIX4fpN5BA34MQEGIhDfLyqMnwE/JsDAbOL7qdLoGfBjAgzMJL4fKo6dAT8mwMAsy8e38sgZ8GMCDMywdH"+"xXGDcDfkyAgdGWje9Ko2bAjwkwMNKS8V1xzAz4MQEGRlkuviuPmAE/JsDACEvF13i5B2cIMNDbMvE1Wv9yL44JMNDTEvE1Vn9yT44JMNBL+fgaqefcm2MCDPRQOr7G6Zh7dEyAgdbKxjfKKEUe7p0BPybAQEsl4xstvAJcgwADrZSLb7Tw7gS4BgEGWigV36jh3QlwDQIM3FUmvtHDuxPgGgQYu"+"KNEfLOEdyfANQgwcFX6+GYL706AaxBg4IrU8c0a3p0A1yDAwLvSxjd7eHcCXEOG5wjEkTK+VcK7E+AaIj5HPxRATOniWy28OwGuIdJzFF6IK1V8q4Z3J8A1RHiOwguxpYlv9fDuBLiGmc9ReCG+tH/haoZRoybANcx4jsILOaSJ7+xRGf37C3ANI5+j8EIeqU6+s8Zltd/3HQJ8bMRzFF7IJd3X"+"zqNHZvaoCXANPZ+j8EI+Kf/Md9TYRBk1Aa6hx3MUXsgp7V+46j060UZNgGto+RyFF/JKG99Nr/GJOmoCXEOL5yi8kFvq+G5aj1D0URPgGu48R+GF/NLHd9NqjLKMmgDXcOU5Ci/UUCK+m7ujlG3UBLiGd56j8EIdZeK7uTpOWUdNgGs48xyFF2opFd/NuyOVfdQEuIZXz1F4oZ5y8d2cHasqoyb"+"ANTx6jsILNZWM7+ZotKqNmgDX8PU5Ci/U9ePnh89fl/Ro8CuPWobAiQqwurIn3933oa8+/BmuzwkYWF35+G72IK1y4hJggNjKf+28Ml9BA8S0xMl3VU7AADGJb3ECDBCP+C5AgAFiEd9FCDBAHOK7EAEGiEF8FyPAAPOJ74IEGGAu8V2UAAPMI74LE2CAOcR3cQIMMJ74IsAAg4kv/yPAAOOIL/"+"8nwABjiC+/EWCA/sSXPwgwQF/iy0MCDNCP+PKUAAP0Ib68JMAA7YkvhwQYoC3x5RQBBmhHfDlNgAHaEF/eIsAA94kvbxNggHvEl0sEGOA68eUyAQa4Rny5RYAB3ie+3CbAAO8RX5oQYIDzxJdmBBjgHPGlKQEGOCa+NCfAAK+JL10IMMBz4ks3AgzwmPjSVYYAA4wmvnQXOcB+OABmEF+GiBg54"+"QVmEV+GiRQ74QVmEl+GihA94QVmE1+Gmxk/4QUiEF+mmBFB4QWiEF+mGRlD4QUiEV+mGhFF4QWiEV+m6xlH4QUiEl9C6BFJ4QWiEl/CaBlL4QUiE19CaRFN4QWiE1/CuRNP4QUyEF9CuhJR4QWyEF/CeiemwgtkIr6EdiaqwgtkI76E9yquwgtkJL6k8CiywgtkJb6k8TW2wgtk9uPnh89fAwAD"+"OPkCwGDiCwCDiS8ADCa+ADCY+ALAYOILAIOJLwAMJr4AMJj4AsBg4gsAg4kvAAwmvgAwmPgCwGDiCwCDiS8ADCa+ADCY+ALAYOILAIOJLwAMJr4AMJj4AsBQf/31X1H6k/ZbMBjlAAAAAElFTkSuQmCC",i}();i.StiExportUtils=o}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t){this.htmlExport=null,this.isMhtExport=!1,this.forcePng=!1,this.htmlExport=t,this.isMhtExport=!1,this.forcePng=!1}return t.prototype.getImageString=function(t){var e=t.base64;if(!String.isNullOrEmpty(e))return e;if(!String.isNullOrEmpty(t.url))return t.url.replaceAll("\\","/");return""},t}();t.StiHtmlImageHost=e}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.StiDataBand,n=t.Report.Components.IStiEditable,o=t.System.Text.StringBuilder,a=t.System.Collections.Hashtable,s=t.Report.Components.StiComponent,l=t.Report.Components.IStiTextOptions,u=t.Report.Components.StiText,c=t.Base.Drawing.StiVertAlignment,p=t.Base.Drawing.StiTextHorAlignment,h=t.Base.Drawing.StiPenStyle,g=t.Report.Components.IStiTextBrush,m=t.System.Drawing.Color,d=t.Report.Components.IStiFont,S=t.Base.Drawing.StiBrush,f=t.Base.Drawing.StiHorAlignment,y=t.Report.Components.StiTextQuality,b=t.Report.Components.StiBandInteraction,C=t.Report.Components.StiContainer,v=t.Report.Components.IStiExportImage,I=t.Report.Engine.StiDataBandBuilder,A=t.Report.Components.IStiExportImageExtended,w=t.Report.Components.StiImage,T=t.Report.Components.StiImageRotation,B;!function(t){t[t.Pixel=0]="Pixel",t[t.Point=1]="Point"}(B=i.StiHtmlUnitType||(i.StiHtmlUnitType={}));var R=function(){function t(){this.value=0,this.unitType=B.Pixel}return t.prototype.toString=function(){return Math.trunc(this.value).toString()+"px"},t.toPixelString=function(t){return Math.trunc(t).toString()+"px"},t.newUnit2=function(e,i){var r=new t;return r.unitType=i,r.value=e,r},t.newUnit=function(t,e){return e?this.newUnit2(t,e?B.Point:B.Pixel):this.newUnit2(t,B.Pixel)},t.isNullOrZero=function(t){return null==t||0==t.value},t.hiToPt=.748,t}();i.StiHtmlUnit=R;var P=function(){function t(){}return t}();i.StiHtmlSvg=P;var F=function(){function t(){this.attributes=new a,this.style=new a}return t}();i.StiHtmlHyperlink=F;var x=function(){function t(){}return t}();i.StiHtmlImage=x;var D=function(){function t(){this.controls=[],this.style=new a,this.controls=[]}return t}();i.StiHtmlTableCell=D;var k=function(){function t(){this.style=new a,this.cells=new Array}return t}();i.StiHtmlTableRow=k;var E=function(){function t(){this.align=f.Left,this.htmlExportSettings=null,this.rows=[]}return t.stringToUrl=function(t){for(var e="",i=t.split(""),r=0,n=i;r<n.length;r++){var o=n[r],a=o.charCodeAt(0);a<=32||a>127||-1!=this.wrongUrlSymbols.indexOf(o)?((a<=32||a>127)&&(e+=String.stiFormat("%{0:x2}",a)),34==a&&(e+="&quot;"),38==a&&(e+="&amp;"),60==a&&(e+="&lt;")):e+=o}return e},t.prototype.renderControl=function(e){this.writeTableBegin(e,!1);for(var i=0,r=this.rows;i<r.length;i++){var n=r[i];if(n.style.containsKey(t.pageBreakBeforeKey)&&(n.style.remove(t.pageBreakBeforeKey),this.writeTableEnd(e),e.writeLine(),this.writeTableBegin(e,!0)),e.writeBeginTag("tr"),StiOptions.Export.Html.useExtendedStyle&&e.writeAttribute("class","sBaseStyleFix"),R.isNullOrZero(n.height)||n.style.set("height",n.height.toString()),n.style.count>0){e.write(' style="');for(var o=0,a=n.style.keys;o<a.length;o++){var s=a[o];e.writeStyleAttribute(s,n.style.get(s))}e.write('"')}e.writeLine(">"),e.indent++;for(var l=0,u=n.cells;l<u.length;l++){var p=u[l];e.writeBeginTag("td"),String.isNullOrEmpty(p.toolTip)||e.writeAttribute("title",p.toolTip),String.isNullOrEmpty(p.cssClass)||e.writeAttribute("class",p.cssClass),String.isNullOrEmpty(p.id)||e.writeAttribute("id",p.id),String.isNullOrEmpty(p.editable)||e.writeAttribute("editable",p.editable),p.columnSpan>0&&e.writeAttribute("colspan",p.columnSpan.toString()),p.rowSpan>0&&e.writeAttribute("rowspan",p.rowSpan.toString()),String.isNullOrEmpty(p.interaction)||e.writeAttribute("interaction",p.interaction),String.isNullOrEmpty(p.collapsed)||e.writeAttribute("collapsed",p.collapsed),String.isNullOrEmpty(p.sortDirection)||e.writeAttribute("sort",p.sortDirection),String.isNullOrEmpty(p.dataBandSort)||e.writeAttribute("databandsort",p.dataBandSort),String.isNullOrEmpty(p.pageGuid)||e.writeAttribute("pageguid",p.pageGuid),String.isNullOrEmpty(p.pageIndex)||e.writeAttribute("pageindex",p.pageIndex),String.isNullOrEmpty(p.reportFile)||e.writeAttribute("reportfile",p.reportFile),String.isNullOrEmpty(p.componentIndex)||e.writeAttribute("compindex",p.componentIndex),R.isNullOrZero(p.height)||p.style.set("height",p.height.toString()),R.isNullOrZero(p.width)||p.style.set("width",p.width.toString()),String.isNullOrEmpty(p.text)||(p.style.containsKey("height")&&p.style.set("max-height",p.height.toString()),p.style.containsKey("width")&&p.style.set("max-width",p.width.toString()),(p.style.containsKey("height")||p.style.containsKey("width"))&&(p.style.set("overflow","hidden"),p.style.set("text-overflow","clip"),p.style.set("box-sizing","border-box")));var h=null,g=null,m=null;StiOptions.Export.Html.useStrictTableCellSize&&p.style.count>0&&(p.style.containsKey(t.marginsKey)&&(h=p.style.get(t.marginsKey),p.style.remove(t.marginsKey)),p.style.containsKey(t.vertAlignKey)&&p.style.containsKey("height")&&(g=p.style.get(t.vertAlignKey),p.style.remove(t.vertAlignKey)),p.style.containsKey(t.horAlignKey)&&p.style.containsKey("width")&&(m=p.style.get(t.horAlignKey),p.style.remove(t.horAlignKey)));var d=!1;p.style.containsKey(t.wordwrapKey)&&p.style.containsKey("width")&&(d=!0,p.style.remove(t.wordwrapKey),p.style.remove("white-space"));var S=null,y=null,b=null;if(p.controls.count>0&&(S=p.controls[0].sti_as(F),y=p.controls[0].sti_as(x),b=p.controls[0].sti_as(P)),null==y||StiOptions.Export.Html.useStrictTableCellSize||p.style.set("line-height","0"),p.style.count>0){e.write(' style="');for(var C=0,v=p.style.keys;C<v.length;C++){var s=v[C];e.writeStyleAttribute(s,p.style.get(s))}e.write('"')}e.write(">");var I=null,A=p.controls.count>0||!String.isNullOrEmpty(p.text);if(A&&StiOptions.Export.Html.useStrictTableCellSize){if(e.write("<div"),StiOptions.Export.Html.useExtendedStyle){e.writeAttribute("class","sBaseStyleFix");var w=p.style.get("Font"),B=p.style.get("text-decoration"),D=p.style.get("color");String.isNullOrEmpty(w)||(I="Font:"+w+";"),String.isNullOrEmpty(B)||(I+="text-decoration:"+B+";"),String.isNullOrEmpty(D)||(I+="color:"+D+";")}(p.style.containsKey("width")||p.style.containsKey("height")||null!=I)&&(e.write(' style="'),p.style.containsKey("width")&&e.writeStyleAttribute("width",p.style.get("width")),p.style.containsKey("height")&&e.writeStyleAttribute("height",p.style.get("height")),String.isNullOrEmpty(I)||e.write(I),e.write('"')),e.write(">"),null==g&&null==m||(e.write("<div "),StiOptions.Export.Html.useExtendedStyle&&e.write('class="sBaseStyleFix" '),e.write('style="'),e.writeStyleAttribute("display","table-cell"),null!=g&&(e.writeStyleAttribute("height",p.style.get("height")),e.writeStyleAttribute("vertical-align",g)),null!=m&&(e.writeStyleAttribute("width",p.style.get("width")),e.writeStyleAttribute("text-align",m)),String.isNullOrEmpty(I)||e.write(I),e.write('">')),(null!=h||d)&&(e.write("<div "),StiOptions.Export.Html.useExtendedStyle&&e.write('class="sBaseStyleFix" '),e.write('style="'),null!=h&&e.writeStyleAttribute("margin",h),d&&e.writeStyleAttribute("width",p.style.get("width")),String.isNullOrEmpty(I)||e.write(I),e.write('">'))}if(null!=y)if(y.stretch||y.imageRotation!=T.None)if(y.aspectRatio||y.imageRotation!=T.None){e.write('<div style="'),e.writeStyleAttribute("width",p.width.toString()),e.writeStyleAttribute("height",p.height.toString());var k=y.horAlignment,E=y.vertAlignment;switch(y.imageRotation){case T.Rotate90CW:E=y.horAlignment==f.Left?c.Bottom:y.horAlignment==f.Right?c.Top:c.Center,k=y.vertAlignment==c.Top?f.Left:y.vertAlignment==c.Bottom?f.Right:f.Center;break;case T.Rotate90CCW:E=y.horAlignment==f.Left?c.Top:y.horAlignment==f.Right?c.Bottom:c.Center,k=y.vertAlignment==c.Top?f.Right:y.vertAlignment==c.Bottom?f.Left:f.Center;break;case T.Rotate180:y.horAlignment==f.Left?k=f.Right:y.horAlignment==f.Right&&(k=f.Left),y.vertAlignment==c.Top?E=c.Bottom:y.vertAlignment==c.Bottom&&(E=c.Top);break;case T.FlipHorizontal:y.horAlignment==f.Left?k=f.Right:y.horAlignment==f.Right&&(k=f.Left);break;case T.FlipVertical:y.vertAlignment==c.Top?E=c.Bottom:y.vertAlignment==c.Bottom&&(E=c.Top);break}if(y.imageRotation==T.Rotate90CCW||y.imageRotation==T.Rotate90CW){var G=new R;G.unitType=p.width.unitType,G.value=-p.width.value/2;var _=new R;G.unitType=p.height.unitType,_.value=p.width.value/2-p.height.value/2,e.write('"><div style="'),e.writeStyleAttribute("width",p.height.toString()),e.writeStyleAttribute("height",p.width.toString()),e.writeStyleAttribute("transform","rotate("+(y.imageRotation==T.Rotate90CCW?"-":"")+"90deg)"),e.writeStyleAttribute("margin",G.toString()+" 0 0 "+_.toString())}e.writeStyleAttribute("background-repeat","no-repeat"),e.writeStyleAttribute("background-size","contain"),e.writeStyleAttribute("background-position",f[k].toLower()+" "+c[E].toLower()),e.writeStyleAttribute("background-image","url("+t.stringToUrl(y.imageUrl)+")"),y.imageRotation==T.FlipHorizontal?e.writeStyleAttribute("transform","scaleX(-1)"):y.imageRotation==T.FlipVertical?e.writeStyleAttribute("transform","scaleY(-1)"):y.imageRotation==T.Rotate180&&e.writeStyleAttribute("transform","scale(-1)"),y.imageRotation==T.Rotate90CCW||y.imageRotation==T.Rotate90CW?e.write('"></div>'):e.write('">'),e.write("</div>")}else e.writeBeginTag("img"),String.isNullOrEmpty(y.toolTip)||e.writeAttribute("title",y.toolTip),String.isNullOrEmpty(y.base64)?String.isNullOrEmpty(y.imageUrl)||e.writeAttribute("src",t.stringToUrl(y.imageUrl)):e.writeAttribute("src",y.base64),e.write(' style="'),e.writeStyleAttribute("width",p.width.toString()),e.writeStyleAttribute("height",p.height.toString()),e.writeStyleAttribute("border-width",R.toPixelString(0)),e.write('" />');else e.write('<div style="'),e.writeStyleAttribute("height",p.height.toString()),e.writeStyleAttribute("width",p.width.toString()),e.writeStyleAttribute("display","table-cell"),e.writeStyleAttribute("text-align",f[y.horAlignment].toLower()),e.writeStyleAttribute("vertical-align",c[y.vertAlignment].toLower().replaceAll("center","middle")),e.write('">'),e.write('<div style="'),e.writeStyleAttribute("max-height",p.height.toString()),e.writeStyleAttribute("max-width",p.width.toString()),e.writeStyleAttribute("overflow","hidden"),e.write('">'),e.writeBeginTag("img"),String.isNullOrEmpty(y.toolTip)||e.writeAttribute("title",y.toolTip),String.isNullOrEmpty(y.base64)?String.isNullOrEmpty(y.imageUrl)||e.writeAttribute("src",t.stringToUrl(y.imageUrl)):e.writeAttribute("src",y.base64),e.writeAttribute("height",(y.height.value*y.zoom).toString()+"px"),e.writeAttribute("width",(y.width.value*y.zoom).toString()+"px"),e.write(' style="'),e.writeStyleAttribute("border-width",R.toPixelString(0)),e.write('" /></div></div>');else if(null!=S){if(e.writeBeginTag("a"),String.isNullOrEmpty(S.openLinksTarget)||e.writeAttribute("target",S.openLinksTarget),String.isNullOrEmpty(S.toolTip)||e.writeAttribute("title",S.toolTip),String.isNullOrEmpty(S.cssClass)||e.writeAttribute("class",S.cssClass),S.attributes.containsKey("name")&&e.writeAttribute("name",S.attributes.get("name")),S.attributes.containsKey("guid")&&e.writeAttribute("guid",S.attributes.get("guid")),String.isNullOrEmpty(S.navigateUrl)||e.writeAttribute("href",t.stringToUrl(S.navigateUrl)),String.isNullOrEmpty(S.imageUrl)||(S.style.set("display","inline-block"),S.style.set("height",S.height.toString()),S.style.set("width",S.width.toString())),StiOptions.Export.Html.useExtendedStyle&&S.style.set("border","0"),S.style.count>0){e.write(' style="');for(var L=0,N=S.style.keys;L<N.length;L++){var s=N[L];e.writeStyleAttribute(s,S.style.get(s))}String.isNullOrEmpty(I)||e.write(I),e.write('"')}e.write(">"),String.isNullOrEmpty(S.imageUrl)||(e.writeBeginTag("img"),String.isNullOrEmpty(S.toolTip)||e.writeAttribute("title",S.toolTip),e.writeAttribute("src",t.stringToUrl(S.imageUrl)),e.write(' style="'),e.writeStyleAttribute("height",S.height.toString()),e.writeStyleAttribute("width",S.width.toString()),e.writeStyleAttribute("border","0"),e.write('" />')),S.attributes.containsKey("id")?(e.writeBeginTag("div"),e.writeAttribute("id",S.attributes.get("id")),e.write('style="'),R.isNullOrZero(p.height)||e.writeStyleAttribute("height",p.height.toString()),R.isNullOrZero(p.width)||e.writeStyleAttribute("width",p.width.toString()),e.write('">'),e.write(S.text),e.write("</div>")):e.write(S.text),e.writeFullEndTag("a")}else null!=b?e.write(b.text):e.write(p.text);A&&StiOptions.Export.Html.useStrictTableCellSize&&((null!=h||d)&&e.write("</div>"),null==g&&null==m||e.write("</div>"),e.write("</div>")),e.writeFullEndTag("td")}e.writeLine(),e.indent--,e.writeFullEndTag("tr")}this.writeTableEnd(e)},t.prototype.writeTableBegin=function(e,i){e.writeBeginTag("table"),e.writeAttribute("cellspacing",this.cellSpacing.toString()),e.writeAttribute("cellpadding",this.cellPadding.toString()),e.writeAttribute("border","0"),this.align!=f.Left&&e.writeAttribute("align",this.align==f.Center?"center":"right"),StiOptions.Export.Html.useExtendedStyle&&e.writeAttribute("class","sBaseStyleFix"),e.write(' style="'),e.writeStyleAttribute("border-width",R.toPixelString(this.borderWidth)),e.writeStyleAttribute("width",this.width.toString()),String.isNullOrEmpty(this.backImageUrl)||e.writeStyleAttribute("background-image",String.stiFormat("url('{0}')",t.stringToUrl(this.backImageUrl))),String.isNullOrEmpty(this.backgroundPosition)||e.writeStyleAttribute("background-position",this.backgroundPosition),String.isNullOrEmpty(this.backgroundRepeat)||e.writeStyleAttribute("background-repeat",this.backgroundRepeat),e.writeStyleAttribute("border-collapse","collapse"),i&&e.writeStyleAttribute(t.pageBreakBeforeKey,"always"),e.write('">'),e.writeLine(),e.indent++,StiOptions.Export.Html.useExtendedStyle&&(e.writeBeginTag("tbody"),e.writeAttribute("class","sBaseStyleFix"),e.writeLine(">"),e.indent++)},t.prototype.writeTableEnd=function(t){StiOptions.Export.Html.useExtendedStyle&&(t.writeLine(),t.indent--,t.writeFullEndTag("tbody")),t.writeLine(),t.indent--,t.writeFullEndTag("table")},t.marginsKey="padding",t.pageBreakBeforeKey="page-break-before",t.vertAlignKey="div:vertical-align",t.horAlignKey="div:text-align",t.wordwrapKey="div:wordwrap",t.wrongUrlSymbols='"&<',t}();i.StiHtmlTable=E;var G;!function(t){t[t.None=0]="None",t[t.BeginTag=1]="BeginTag",t[t.Attribute=2]="Attribute",t[t.Data=3]="Data"}(G=i.WriterMode||(i.WriterMode={}));var _=function(){function t(t){this.stream=null,this.mode=G.None,this.indent=0,this.stream=t,this.mode=G.None,this.indent=0}return t.prototype.write=function(t){this.checkIndent(),this.stream.write(t),this.mode=G.Data},t.prototype.writeLine=function(t){t?(String.isNullOrEmpty(t)?this.stream.writeLine():(this.checkIndent(),this.stream.writeLine(t)),this.mode=G.None):(this.stream.writeLine(),this.mode=G.None)},t.prototype.writeBeginTag=function(t){this.closeTag(),this.checkIndent(),this.stream.write("<"+t),this.mode=G.BeginTag},t.prototype.writeFullBeginTag=function(t){this.closeTag(),this.checkIndent(),this.stream.write("<"+t+">"),this.mode=G.Data},t.prototype.writeEndTag=function(t){this.mode==G.BeginTag?this.stream.write("/>"):(this.closeTag(),this.checkIndent(),this.stream.write("</"+t+">")),this.mode=G.Data},t.prototype.writeFullEndTag=function(t){this.closeTag(),this.checkIndent(),this.stream.write("</"+t+">"),this.mode=G.Data},t.prototype.writeAttribute=function(t,e){this.stream.write(" "+t),null!=e&&this.stream.write('="'+e+'"'),this.mode=G.Attribute},t.prototype.writeStyleAttribute=function(t,e){this.stream.write(t+":"+e+";"),this.mode=G.Attribute},t.prototype.flush=function(){this.stream.flush()},t.prototype.closeTag=function(){this.mode!=G.Attribute&&this.mode!=G.BeginTag||this.stream.write(">")},t.prototype.checkIndent=function(){if(this.mode==G.None)for(var t=0;t<this.indent;t++)this.stream.write("\t")},t}();i.StiHtmlTextWriter=_;var L=function(){function f(t,e,r){this.htmlExport=null,this.htmlExportSettings=null,this.matrix=new i.StiMatrix(r,!1,t,t.styles),this.htmlExport=t,this.htmlExportSettings=e}return f.prototype.renderStyle=function(t){this.htmlExport.renderBackColor(null,t.color),this.htmlExport.renderTextColor(null,t.textColor),this.htmlExport.renderFont(null,t.font),this.htmlExport.renderBorder3(null,t.border,"top"),this.htmlExport.renderBorder3(null,t.borderL,"left"),this.htmlExport.renderBorder3(null,t.borderR,"right"),this.htmlExport.renderBorder3(null,t.borderB,"bottom",t.borderRadius),this.htmlExport.renderTextDirection(null,t.textOptions),this.htmlExport.renderTextHorAlignment(null,t),this.htmlExportSettings.exportMode==i.StiHtmlExportMode.Table&&this.htmlExport.renderVertAlignment(null,t.vertAlignment),t.absolutePosition&&this.htmlExport.htmlWriter.writeStyleAttribute("position","absolute"),t.overflow&&this.htmlExport.htmlWriter.write("overflow:hidden;"),this.htmlExport.htmlWriter.write("line-height:1.15em;")},f.prototype.renderStyleTable=function(t,e){this.htmlExport.renderBackColor(t,e.color),this.htmlExport.renderTextColor(t,e.textColor),this.htmlExport.renderFont(t,e.font),null==t&&this.htmlExport.htmlWriter.write("border:0px;"),this.htmlExport.renderBorder3(t,e.border,"top"),this.htmlExport.renderBorder3(t,e.borderL,"left"),this.htmlExport.renderBorder3(t,e.borderR,"right"),this.htmlExport.renderBorder3(t,e.borderB,"bottom"),this.htmlExport.renderTextDirection(t,e.textOptions),this.htmlExport.renderTextHorAlignment(t,e),this.htmlExport.renderVertAlignment(t,e.vertAlignment),null==t?(e.absolutePosition&&this.htmlExport.htmlWriter.writeStyleAttribute("position","absolute"),this.htmlExport.htmlWriter.write("line-height:1.15em;"),StiOptions.Export.Html.useStrictTableCellSize?(e.wordWrap?this.htmlExport.htmlWriter.write("word-wrap:break-word;"):this.htmlExport.htmlWriter.write("white-space:nowrap;"),this.htmlExport.htmlWriter.write("overflow:hidden;")):!e.wordWrap&&StiOptions.Export.Html.useWordWrapBreakWordMode&&this.htmlExport.htmlWriter.write("word-wrap:break-word;")):(e.absolutePosition&&(t.style.position="absolute"),t.style.set("line-height","1.15em"),StiOptions.Export.Html.useStrictTableCellSize?(e.wordWrap?t.style.set("word-wrap","break-word"):t.style.set("white-space","nowrap"),t.style.set("overflow","hidden")):!e.wordWrap&&StiOptions.Export.Html.useWordWrapBreakWordMode&&t.style.set("word-wrap","break-word"))},f.prototype.renderStyles=function(e,i,r){this.htmlExport.htmlWriter.writeLine('<style type="text/css">');for(var n=0,o=t.Base.StiFontCollection.getBinFonts();n<o.length;n++){var a=o[n];this.htmlExport.htmlWriter.writeLine("@font-face {font-family: "+a+';src: url("'+t.Base.StiFontCollection.getBinFont(a).filePath+'");}')}if(StiOptions.Export.Html.useExtendedStyle&&this.htmlExport.htmlWriter.writeLine(".sBaseStyleFix { border: 0; }"),!i&&this.htmlExport.useStylesTable)for(var s=0;s<this.matrix.styles.count;s++){var l=this.matrix.styles[s];this.htmlExport.htmlWriter.write(".s"+l.styleName),this.htmlExport.htmlWriter.write("{"),this.renderStyle(l),this.htmlExport.htmlWriter.writeLine("}")}if(null!=r&&r.count>0)for(var u=0,c=r.keys;u<c.length;u++){var p=c[u];this.htmlExport.htmlWriter.writeLine("."+p+" {"+r.get(p)+";overflow:hidden;}")}e&&(StiOptions.Export.Html.useExtendedStyle?(this.htmlExport.htmlWriter.writeLine(".dtree {border:0; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:11px;color:#666;white-space:nowrap;}"),this.htmlExport.htmlWriter.writeLine(".dTreeNode {border:0;}"),this.htmlExport.htmlWriter.writeLine(".dtreeStyleFix {border:0;}"),this.htmlExport.htmlWriter.writeLine(".dtree img {border:0; vertical-align: middle;}"),this.htmlExport.htmlWriter.writeLine(".dtree a {border:0;line-height:0; color:#333;text-decoration:none;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node, .dtree a.nodeSel {border:0; white-space: nowrap;padding: 1px 2px 1px 2px;font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:11px;color:#666;text-decoration: none;font-weight:normal;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node:hover, .dtree a.nodeSel:hover {border:0; color: #333;text-decoration: underline;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.nodeSel {border:0; background-color: #c0d2ec;}"),this.htmlExport.htmlWriter.writeLine(".dtree .clip {border:0; overflow: hidden;}"),this.htmlExport.htmlWriter.writeLine(".dtreeframe {border:0; border-right:1px;border-right-style:solid;border-right-color:Gray;}")):(this.htmlExport.htmlWriter.writeLine(".dtree {font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:11px;color:#666;white-space:nowrap;}"),this.htmlExport.htmlWriter.writeLine(".dtree img {border: 0px;vertical-align: middle;}"),this.htmlExport.htmlWriter.writeLine(".dtree a {color: #333;text-decoration: none;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node, .dtree a.nodeSel {white-space: nowrap;padding: 1px 2px 1px 2px;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node:hover, .dtree a.nodeSel:hover {color: #333;text-decoration: underline;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.nodeSel {background-color: #c0d2ec;}"),this.htmlExport.htmlWriter.writeLine(".dtree .clip {overflow: hidden;}"),this.htmlExport.htmlWriter.writeLine(".dtreeframe {border-right:1px;border-right-style:solid;border-right-color:Gray;}"))),this.htmlExport.htmlWriter.writeLine("</style>")},f.prototype.renderStylesTable=function(t,e,i){void 0===i&&(i=null),this.renderStylesTable2(t,e,!0,i)},f.prototype.renderStylesTable2=function(e,i,r,n){if(void 0===n&&(n=null),r&&this.htmlExport.htmlWriter.writeLine('<style type="text/css">'),this.htmlExport.htmlWriter.writeLine(t.System.Drawing.Graphics.getCustomFontsCss()),StiOptions.Export.Html.useExtendedStyle&&this.htmlExport.htmlWriter.writeLine(".sBaseStyleFix { border: 0; }"),!i&&this.htmlExport.useStylesTable)for(var o=0;o<this.matrix.styles.count;o++){var a=this.matrix.styles[o];this.htmlExport.htmlWriter.write(".s"+a.styleName),this.htmlExport.htmlWriter.write("{"),this.renderStyleTable(null,a),this.htmlExport.htmlWriter.writeLine("}")}if(null!=n&&n.count>0)for(var s=0,l=n.keys;s<l.length;s++){var u=l[s];this.htmlExport.htmlWriter.writeLine("."+u+" {"+n.get(u)+";}")}e&&(StiOptions.Export.Html.useExtendedStyle?(this.htmlExport.htmlWriter.writeLine(".dtree {border:0; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:11px;color:#666;white-space:nowrap;}"),this.htmlExport.htmlWriter.writeLine(".dTreeNode {border:0;}"),this.htmlExport.htmlWriter.writeLine(".dtreeStyleFix {border:0;}"),this.htmlExport.htmlWriter.writeLine(".dtree img {border:0; vertical-align: middle;}"),this.htmlExport.htmlWriter.writeLine(".dtree a {border:0;line-height:0; color:#333;text-decoration:none;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node, .dtree a.nodeSel {border:0; white-space: nowrap;padding: 1px 2px 1px 2px;font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:11px;color:#666;text-decoration: none;font-weight:normal;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node:hover, .dtree a.nodeSel:hover {border:0; color: #333;text-decoration: underline;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.nodeSel {border:0; background-color: #c0d2ec;}"),this.htmlExport.htmlWriter.writeLine(".dtree .clip {border:0; overflow: hidden;}"),this.htmlExport.htmlWriter.writeLine(".dtreeframe {border:0; border-right:1px;border-right-style:solid;border-right-color:Gray;}")):(this.htmlExport.htmlWriter.writeLine(".dtree {font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:11px;color:#666;white-space:nowrap;}"),this.htmlExport.htmlWriter.writeLine(".dtree img {border: 0px;vertical-align: middle;}"),this.htmlExport.htmlWriter.writeLine(".dtree a {color: #333;text-decoration: none;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node, .dtree a.nodeSel {white-space: nowrap;padding: 1px 2px 1px 2px;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.node:hover, .dtree a.nodeSel:hover {color: #333;text-decoration: underline;}"),this.htmlExport.htmlWriter.writeLine(".dtree a.nodeSel {background-color: #c0d2ec;}"),this.htmlExport.htmlWriter.writeLine(".dtree .clip {overflow: hidden;}"),this.htmlExport.htmlWriter.writeLine(".dtreeframe {border-right:1px;border-right-style:solid;border-right-color:Gray;}"))),r&&this.htmlExport.htmlWriter.writeLine("</style>")},f.prototype.getWidth=function(t,e,i,r){return(t.getByIndex(i+1,e)-t.getByIndex(i,e))*r},f.prototype.getHeight=function(t,e,i,r){return(t.getByIndex(i+1,e)-t.getByIndex(i,e))*r},f.prototype.renderTable=function(f,B,G,_,L){f&&this.renderStylesTable(G,_,L);var N=new E;N.htmlExportSettings=this.htmlExportSettings,N.align=this.htmlExport.pageHorAlignment,N.backImageUrl=B,N.width=R.newUnit(Math.round(this.matrix.totalWidth*this.htmlExport.zoom,0),StiOptions.Export.Html.printLayoutOptimization),N.borderWidth=0,N.cellPadding=0,N.cellSpacing=0;for(var O=this.matrix.coordX,Z=this.matrix.coordY,M=O.getKeys(),H=Z.getKeys(),W=Array.create(Boolean,this.matrix.coordX.count,this.matrix.coordY.count),V=new a,Y=0,j=this.matrix.styles;Y<j.length;Y++){var X=j[Y];V.set(X,this.matrix.styles.indexOf(X))}for(var J=null,K=0;K<this.matrix.coordY.count-1;K++){if(this.htmlExport.invokeExporting2(K,this.matrix.coordY.count,2,3),this.htmlExport.isStopped)return;var U=this.getHeight(Z,H,K,this.htmlExport.zoom),z=new k;z.height=R.newUnit(U,StiOptions.Export.Html.printLayoutOptimization),N.rows.add(z);for(var Q=[m.transparent],q=0;q<this.matrix.coordX.count-1;q++){if(!W[q][K]){var $=new D;z.cells.add($);var tt=this.getWidth(O,M,q,this.htmlExport.zoom),et=U,it=this.matrix.cells[K][q];if(null!=it){this.htmlExportSettings.addPageBreaks&&(null!=it.component&&it.component.page!=J&&null!=J&&z.style.set(E.pageBreakBeforeKey,"always"),J=it.component.page);var rt=null!=it.text?it.text:"",nt=it.component.sti_as(l);null!=nt&&StiOptions.Export.Html.convertDigitsToArabic&&nt.textOptions.rightToLeft;var ot=!0;if(null!=it.component){var at=it.component.sti_as(u);null!=at&&at.checkAllowHtmlTags()&&(rt=i.StiHtmlExportService.convertTextWithHtmlTagsToHtmlText(at,rt),ot=!1),StiOptions.Export.Html.forceWysiwygWordwrap&&null!=at&&!at.checkAllowHtmlTags()&&at.textQuality==y.Wysiwyg&&null!=nt&&nt.textOptions.wordWrap}StiOptions.Export.Html.replaceSpecialCharacters&&ot&&(rt=rt.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll(" ","&nbsp;")),rt=this.htmlExport.prepareTextForHtml(rt);for(var st=it.width+1,lt=it.height+1,ut=q;ut<q+st;ut++)for(var ct=K;ct<K+lt;ct++)W[ut][ct]=!0;st>1&&($.columnSpan=st),lt>1&&($.rowSpan=lt);var pt=this.matrix.cellStyles[K][q];if(null==pt&&(pt=it.cellStyle),null!=pt){var ht=V.get(pt);if(null!=ht&&this.htmlExport.useStylesTable&&($.cssClass="s"+pt.styleName),StiOptions.Export.Html.useStrictTableCellSize){pt.vertAlignment!=c.Top&&$.style.set(E.vertAlignKey,pt.vertAlignment==c.Center?"middle":"bottom");var gt=null!=pt.textOptions&&pt.textOptions.rightToLeft,mt=null;pt.horAlignment==p.Left&&(mt=gt?"right":null),pt.horAlignment==p.Right&&(mt=gt?null:"right"),pt.horAlignment==p.Center&&(mt="center"),pt.horAlignment==p.Width&&(mt="justify"),null!=mt&&$.style.set(E.horAlignKey,mt);for(var dt=0;dt<st;dt++)Q[q+dt]=pt.color}}if(null!=it.component){var St=it.component.tagValue;if(!String.isNullOrEmpty(St))for(var ft=this.matrix.splitTagWithCache(St),yt=0;yt<ft.length;yt++)if(ft[yt].toLower().startsWith("css")){var bt=i.StiMatrix.getStringsFromTag(ft[yt],3);if(bt.length>1&&this.htmlExport.useStylesTable){$.cssClass=bt[0].trim();break}}}if(this.htmlExport.useStylesTable?StiOptions.Export.Html.useExtendedStyle&&(this.htmlExport.renderTextColor($,pt.textColor,!0),this.htmlExport.renderFont($,pt.font)):this.renderStyleTable($,pt),StiOptions.Export.Html.printLayoutOptimization&&null!=pt&&null!=pt.border&&pt.border.style!=h.None&&(et-=pt.border.size,tt-=pt.border.size,et<0&&(et=0),tt<0&&(tt=0)),this.htmlExport.exportQuality==i.StiHtmlExportQuality.High)if(StiOptions.Export.Html.forceIE6Compatibility)1==st&&($.width=R.newUnit(tt,StiOptions.Export.Html.printLayoutOptimization)),1==lt&&($.height=R.newUnit(et,StiOptions.Export.Html.printLayoutOptimization));else{if(st>1)for(var Ct=1;Ct<st;Ct++)tt+=this.getWidth(O,M,q+Ct,this.htmlExport.zoom);if(lt>1)for(var vt=1;vt<lt;vt++)et+=this.getHeight(Z,H,K+vt,this.htmlExport.zoom);$.width=R.newUnit(tt,StiOptions.Export.Html.printLayoutOptimization),$.height=R.newUnit(et,StiOptions.Export.Html.printLayoutOptimization)}if(this.htmlExport.insertInteractionParameters&&null!=it.component&&!it.component.report.isDocument&&(this.matrix.isComponentHasInteraction(it.component)||this.matrix.interactions[K][q][1]>0)){var It=it.component;if(!this.matrix.isComponentHasInteraction(It)){var At=this.htmlExport.report.renderedPages.getByIndex(this.matrix.interactions[K][q][0]-1);this.htmlExport.report.renderedPages.getPage(At),It=At.components.getByIndex(this.matrix.interactions[K][q][1]-1)}if($.interaction=It.name,It.interaction.sortingEnabled){var wt=It.interaction.getSortDataBandName(),Tt=It.report.getComponentByName(wt);if(null!=(Tt=null!=Tt?Tt.sti_as(r):null)){$.dataBandSort=wt+";"+String.join(";",Tt.sort);for(var Bt=0;Bt<Tt.sort.length;Bt+=2)Tt.sort[Bt+1]==It.interaction.getSortColumnsString()&&($.sortDirection=Tt.sort[Bt].toLower())}}!It.interaction.drillDownEnabled||null==It.interaction.drillDownPage&&String.isNullOrEmpty(It.interaction.drillDownReport)||(null!=It.interaction.drillDownPage&&($.pageGuid=It.interaction.drillDownPage.guid),String.isNullOrEmpty(It.interaction.drillDownReport)||($.reportFile=It.interaction.drillDownReport),$.pageIndex=It.page.report.renderedPages.indexOf(It.page).toString(),$.componentIndex=It.page.components.indexOf(It).toString());var Rt=It.interaction.sti_as(b);if(null!=Rt&&Rt.collapsingEnabled&&It.sti_is(C)){var Pt=It;$.collapsed=I.isCollapsed(Pt,!1).toString().toLower(),$.componentIndex=Pt.collapsingIndex.toString()}}var Ft=null,xt=null,Dt=null,kt=!1,Et=!1,Gt=!1,_t=it.exportImage;if(null!=it.component){if(Ft=it.component.hyperlinkValue,xt=it.component.toolTipValue,Dt=it.component.bookmarkValue,!String.isNullOrWhiteSpace(Ft)&&Ft.startsWith("##")&&(Ft=Ft.substr(1)),String.isNullOrEmpty(Dt))for(var Lt=0;Lt<=it.height;Lt++){for(var Nt=!1,Ot=0;Ot<=it.width;Ot++){var Zt=this.matrix.bookmarks[K+Lt][q+Ot];if(!String.isNullOrEmpty(Zt)){Dt=Zt,Nt=!0;break}}if(Nt)break}if(StiOptions.Export.Html.allowStrippedImages&&null==_t){var Mt=it.component.sti_as(v);null!=Mt&&Mt.sti_is(A)&&(!Mt.isExportAsImage(e.StiExportFormat.HtmlTable)||null!=nt&&0!=nt.textOptions.angle||(_t=Mt))}null!=it.component.sti_as(t.Report.Chart.IStiChart)&&this.htmlExport.chartType!=i.StiHtmlChartType.Image&&(kt=!0);null!=it.component.sti_as(t.Report.Components.Gauge.IStiGauge)&&this.htmlExport.chartType!=i.StiHtmlChartType.Image&&(Et=!0);null!=it.component.sti_as(t.Report.Maps.StiMap)&&this.htmlExport.chartType!=i.StiHtmlChartType.Image&&(Gt=!0);var Ht=it.component.sti_as(n);if(null!=Ht&&Ht.editable){var Wt=new o,Vt=it.component.page.components.indexOf(it.component);Wt.appendFormat("{0};",Vt);null!=it.component.sti_as(u)&&Wt.appendFormat("Text"),$.editable=Wt.toString()}}var Yt=!0;if(String.isNullOrEmpty(Dt))if(kt&&this.htmlExportSettings.chartType==i.StiHtmlChartType.AnimatedVector){if(String.isNullOrEmpty(Ft))$.toolTip=xt;else{var jt=new F;jt.toolTip=xt,jt.navigateUrl=Ft,jt.openLinksTarget=this.htmlExport.openLinksTarget,jt.style.set("display","block"),$.controls.add(jt)}$.id=String.stiFormat("id{0}",this.htmlExport.chartData.count),this.htmlExport.prepareChartData(it.component,tt,et)}else if(Et)$.id=String.stiFormat("id{0}",this.htmlExport.chartData.count),$.text=this.htmlExport.prepareGaugeData(null,it.component,tt,et);else if(Gt)$.id=String.stiFormat("id{0}",this.htmlExport.chartData.count),$.text=this.htmlExport.prepareMapData(null,it.component,tt,et);else if(it.component.sti_is(t.Report.BarCodes.StiBarCode)||it.component.sti_is(t.Report.Components.StiCheckBox)||it.component.sti_is(t.Report.Components.StiShape)||kt&&this.htmlExportSettings.chartType!=i.StiHtmlChartType.AnimatedVector){var It=it.component.sti_as(s),Xt=new P,Jt=i.StiSvgHelper.saveComponentToString(It,e.ImageFormat.Jpeg,.75,100,!1),Kt=String.stiFormat('<svg width="{0}" height="{1}"><g transform="scale({2})">{3}</g></svg>',tt,et,this.htmlExport.zoom,Jt);Xt.text=Kt,$.controls.add(Xt)}else if(null==_t)if(null!=Ft&&Ft.length>0){var jt=new F;if(jt.text=rt,jt.toolTip=xt,jt.navigateUrl=Ft,jt.openLinksTarget=this.htmlExport.openLinksTarget,jt.style.set("display","block"),null!=it.component&&it.component.sti_is(g)){var Ut=it.component.sti_as(g),zt=S.toColor(Ut.textBrush);jt.style.set("color",this.htmlExport.formatColor(zt))}if(null!=it.component&&it.component.sti_is(d)){var Qt=it.component.sti_as(d);Qt.font.underline?jt.style.set("text-decoration","underline"):jt.style.set("text-decoration","none")}$.controls.add(jt)}else{var qt=it.component.sti_as(u);if(null==qt||0==qt.angle&&null==qt.indicator)$.text=rt;else{var Xt=new P,Jt=i.StiSvgHelper.saveComponentToString(qt,e.ImageFormat.Jpeg,.75,100,!1),Kt=String.stiFormat('<svg width="{0}" height="{1}"><g transform="scale({2})">{3}</g></svg>',tt,et,this.htmlExport.zoom,Jt);$.text=Kt}$.toolTip=xt}else{var $t=this.htmlExport.zoom,te=this.htmlExport.imageResolution;if(StiOptions.Export.Html.useImageResolution&&null!=_t.sti_as(w)&&null!=_t.sti_as(w).imageToDraw){var ee=_t.imageToDraw.horizontalResolution;ee>=50&&ee<=1250&&(te=ee)}100!=te&&($t*=te/100);var ie=null;this.htmlExport.setCurrentCulture();var re=_t.sti_as(A),ne={ref:$t};if(ie=re.imageToDraw,$t=ne.ref,this.htmlExport.restoreCulture(),null!=ie){it.exportImage&&(ie.aspectRatio=it.exportImage.aspectRatio,ie.multipleFactor=it.exportImage.multipleFactor,ie.margins=it.exportImage.margins,ie.horAlignment=it.exportImage.horAlignment,ie.vertAlignment=it.exportImage.vertAlignment,ie.imageRotation=it.exportImage.imageRotation,ie.stretch=it.exportImage.stretch);var oe=this.matrix.getRealImageData(it,ie);if(null!=oe&&(ie=oe),null!=Ft&&Ft.length>0){var jt=new F;jt.navigateUrl=Ft,jt.toolTip=xt,null!=this.htmlExport.htmlImageHost&&(jt.imageUrl=this.htmlExport.htmlImageHost.getImageString(ie)),jt.cssClass=$.cssClass,jt.width=R.newUnit(ie.width/$t*this.htmlExport.zoom,StiOptions.Export.Html.printLayoutOptimization),jt.height=R.newUnit(ie.height/$t*this.htmlExport.zoom,StiOptions.Export.Html.printLayoutOptimization),jt.openLinksTarget=this.htmlExport.openLinksTarget,$.controls.add(jt)}else{var ae=null;if(null!=it.component&&it.component.sti_is(w)){var se=it.component.sti_as(w);se.stretch&&1!=se.aspectRatio&&se.imageRotation==T.None&&(ae=se.imageURLValue?se.imageURLValue.sti_as(String):null)}var le=new x;le.aspectRatio=ie.aspectRatio,le.horAlignment=ie.horAlignment,le.vertAlignment=ie.vertAlignment,le.imageRotation=ie.imageRotation,le.margins=ie.margins,le.multipleFactor=ie.multipleFactor,le.stretch=ie.stretch,le.zoom=ie.zoom,le.base64=ie.base64,null!=ae&&0!=ae.length?le.imageUrl=ae:null!=this.htmlExport.htmlImageHost&&(le.imageUrl=this.htmlExport.htmlImageHost.getImageString(ie)),le.toolTip=xt,le.width=R.newUnit(ie.width/$t*this.htmlExport.zoom,!1),le.height=R.newUnit(ie.height/$t*this.htmlExport.zoom,!1),$.controls.add(le)}Yt=!1}}else{var ue=new F;if(ue.attributes.set("name",Dt),ue.toolTip=xt,ue.navigateUrl=Ft,kt)ue.attributes.set("id",String.stiFormat("id{0}",this.htmlExport.chartData.count)),this.htmlExport.prepareChartData(it.component,tt,et);else if(Et)$.id=String.stiFormat("id{0}",this.htmlExport.chartData.count),$.text=this.htmlExport.prepareMapData(null,it.component,tt,et);else if(Gt)$.id=String.stiFormat("id{0}",this.htmlExport.chartData.count),$.text=this.htmlExport.prepareMapData(null,it.component,tt,et);else if(it.component.sti_is(t.Report.BarCodes.StiBarCode)||it.component.sti_is(t.Report.Components.StiCheckBox)||it.component.sti_is(t.Report.Components.StiShape)||kt&&this.htmlExportSettings.chartType!=i.StiHtmlChartType.AnimatedVector){var It=it.component.sti_as(s),Xt=new P,Jt=i.StiSvgHelper.saveComponentToString(It,e.ImageFormat.Jpeg,.75,100,!1),Kt=String.stiFormat('<svg width="{0}" height="{1}"><g transform="scale({2})">{3}</g></svg>',tt,et,this.htmlExport.zoom,Jt);Xt.text=Kt,$.controls.add(Xt)}else if(null!=_t){var $t=this.htmlExport.zoom,te=this.htmlExport.imageResolution;if(StiOptions.Export.Html.useImageResolution&&null!=_t.sti_as(w)&&null!=_t.sti_as(w).imageToDraw){var ee=_t.imageToDraw.horizontalResolution;ee>=50&&ee<=1250&&(te=ee)}100!=te&&($t*=te/100);var ie=null;this.htmlExport.setCurrentCulture();var re=_t.sti_as(A),ne={ref:$t};if(ie=re.imageToDraw,$t=ne.ref,this.htmlExport.restoreCulture(),null!=ie){var oe=this.matrix.getRealImageData(it,ie);if(null!=oe&&(ie=oe),null!=Ft&&Ft.length>0){var jt=new F;jt.navigateUrl=Ft,jt.toolTip=xt,null!=this.htmlExport.htmlImageHost&&(jt.imageUrl=this.htmlExport.htmlImageHost.getImageString(ie)),jt.cssClass=$.cssClass,jt.width=R.newUnit(ie.width/$t*this.htmlExport.zoom,StiOptions.Export.Html.printLayoutOptimization),jt.height=R.newUnit(ie.height/$t*this.htmlExport.zoom,StiOptions.Export.Html.printLayoutOptimization),jt.openLinksTarget=this.htmlExport.openLinksTarget,$.controls.add(jt)}else{var ae=null;if(null!=it.component&&it.component.sti_is(w)){var se=it.component.sti_as(w);se.stretch&&1!=se.aspectRatio&&se.imageRotation==T.None&&(ae=se.imageURLValue?se.imageURLValue.sti_as(String):null)}var le=new x;le.aspectRatio=ie.aspectRatio,le.horAlignment=ie.horAlignment,le.vertAlignment=ie.vertAlignment,le.imageRotation=ie.imageRotation,le.margins=ie.margins,le.multipleFactor=ie.multipleFactor,le.stretch=ie.stretch,le.zoom=ie.zoom,le.base64=ie.base64,null!=ae&&0!=ae.length?le.imageUrl=ae:null!=this.htmlExport.htmlImageHost&&(le.imageUrl=this.htmlExport.htmlImageHost.getImageString(ie)),le.toolTip=xt,le.width=R.newUnit(ie.width/$t*this.htmlExport.zoom,!1),le.height=R.newUnit(ie.height/$t*this.htmlExport.zoom,!1),$.controls.add(le)}Yt=!1}}if(Yt&&!kt){if(ue.text=rt,null!=it.component&&it.component.sti_is(g)){var Ut=it.component.sti_as(g),zt=S.toColor(Ut.textBrush);ue.style.set("color",this.htmlExport.formatColor(zt))}if(null!=it.component&&it.component.sti_is(d)){var Qt=it.component.sti_as(d);Qt.font.underline?ue.style.set("text-decoration","underline"):ue.style.set("text-decoration","none")}}$.controls.add(ue)}var ce=it.component.sti_as(u);null!=ce&&!ce.margins.isEmpty&&Yt&&$.style.set(E.marginsKey,String.stiFormat("{0} {1} {2} {3}",R.newUnit(ce.margins.top),R.newUnit(ce.margins.right),R.newUnit(ce.margins.bottom),R.newUnit(ce.margins.left))),null!=nt&&nt.textOptions.wordWrap?($.style.set("word-wrap","break-word"),$.style.remove("white-space")):$.style.set("white-space","nowrap")}else{this.htmlExport.exportQuality==i.StiHtmlExportQuality.High&&($.width=R.newUnit(tt,StiOptions.Export.Html.printLayoutOptimization),$.height=R.newUnit(et,StiOptions.Export.Html.printLayoutOptimization));var pt=this.matrix.cellStyles[K][q];if(null!=pt){var ht=V.get(pt);null!=ht&&this.htmlExport.useStylesTable&&($.cssClass="s"+pt.styleName)}String.isNullOrEmpty($.cssClass)&&$.style.set("border","0px")}}null==Q[q]&&(Q[q]=m.transparent)}if(StiOptions.Export.Html.useStrictTableCellSize&&0!=Q[0].a){for(var ot=!0,pe=0;pe<Q.length-1;pe++)if(!Q[pe].stiEquals(Q[pe+1])){ot=!1;break}ot&&z.style.set("background-color",this.htmlExport.formatColor(Q[0]))}}N.renderControl(this.htmlExport.htmlWriter)},f}();i.StiHtmlTableRender=L}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.TA_LEFT=0]="TA_LEFT",t[t.TA_RIGHT=2]="TA_RIGHT",t[t.TA_CENTER=6]="TA_CENTER",t[t.TA_TOP=0]="TA_TOP",t[t.TA_BOTTOM=8]="TA_BOTTOM",t[t.TA_BASELINE=24]="TA_BASELINE",t[t.TA_NOUPDATECP=0]="TA_NOUPDATECP",t[t.TA_UPDATECP=1]="TA_UPDATECP",t[t.TA_RTLREADING=256]="TA_RTLREADING",t[t.TA_MASK=287]="TA_MASK"}(e=t.EmfTextAlignmentMode||(t.EmfTextAlignmentMode={}))}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.Base.StiGuidUtils,n=t.Report.Components.StiPagesCollection,o=function(){function t(){}return t.divide=function(t,e){void 0===e&&(e=null);for(var o=!1,a=0,s=t.list;a<s.length;a++){var l=s[a];if(l.segmentPerWidth>1||l.segmentPerHeight>1){o=!0;break}}if(!o)return t;var u=new n(t.report,t);u.cacheMode=t.cacheMode,1==u.cacheMode&&(u.canUseCacheMode=!0);for(var c=0,p=t.list;c<p.length;c++){var l=p[c];if(t.getPage(l),null!=e&&e.invokeExporting(l,t,e.currentPassNumber,e.maximumPassNumber),l.segmentPerWidth>1||l.segmentPerHeight>1)for(var h=0;h<l.segmentPerWidth;h++)for(var g=0;g<l.segmentPerHeight;g++){var m=l.clone(!1,!1);m.cacheGuid=r.newGuid(),m.segmentPerWidth=1,m.segmentPerHeight=1;for(var d=new i(h*m.width,g*m.height,m.width,m.height),S=h*m.width,f=(h+1)*m.width,y=g*m.height,b=(g+1)*m.height,C=0,v=l.components.list;C<v.length;C++){var I=v[C];if(I.enabled&&S<=I.left&&I.left<f&&y<=I.top&&I.top<b)if(0==d.left&&0==d.top)m.components.add(I);else{var A=I.clone();A.left-=d.left,A.top-=d.top,m.components.add(A)}}u.addV2Internal(m)}else u.canUseCacheMode=!1,u.addV2Internal(l),u.canUseCacheMode=1==u.cacheMode}return u.canUseCacheMode=!1,u},t}();e.StiSegmentPagesDivider=o}(i=e.Export||(e.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.Span=1]="Span",t[t.Div=2]="Div",t[t.Table=3]="Table"}(e=t.StiHtmlExportMode||(t.StiHtmlExportMode={}));var i;!function(t){t[t.High=1]="High",t[t.Low=2]="Low"}(i=t.StiHtmlExportQuality||(t.StiHtmlExportQuality={}));var r;!function(t){t[t.None=0]="None",t[t.PrintDocument=1]="PrintDocument",t[t.ModifyContents=2]="ModifyContents",t[t.CopyTextAndGraphics=4]="CopyTextAndGraphics",t[t.AddOrModifyTextAnnotations=8]="AddOrModifyTextAnnotations",t[t.All=15]="All"}(r=t.StiUserAccessPrivileges||(t.StiUserAccessPrivileges={}));var n;!function(t){t[t.Bit40=1]="Bit40",t[t.Bit128=2]="Bit128",t[t.Bit256_r5=3]="Bit256_r5",t[t.Bit256_r6=4]="Bit256_r6"}(n=t.StiPdfEncryptionKeyLength||(t.StiPdfEncryptionKeyLength={}));var o;!function(t){t[t.Jpeg=1]="Jpeg",t[t.Flate=2]="Flate"}(o=t.StiPdfImageCompressionMethod||(t.StiPdfImageCompressionMethod={}));var a;!function(t){t[t.None=1]="None",t[t.Dialog=2]="Dialog",t[t.Silent=3]="Silent"}(a=t.StiPdfAutoPrintMode||(t.StiPdfAutoPrintMode={}));var s;!function(t){t[t.Simple=1]="Simple",t[t.UnicodeSingle=2]="UnicodeSingle",t[t.UnicodeDouble=3]="UnicodeDouble"}(s=t.StiTxtBorderType||(t.StiTxtBorderType={}));var l;!function(t){t[t.Monochrome=1]="Monochrome",t[t.Color=2]="Color"}(l=t.StiPcxPaletteType||(t.StiPcxPaletteType={}));var u;!function(t){t[t.None=1]="None",t[t.FloydSteinberg=2]="FloydSteinberg",t[t.Ordered=3]="Ordered"}(u=t.StiMonochromeDitheringType||(t.StiMonochromeDitheringType={}));var c;!function(t){t[t.Bmp=1]="Bmp",t[t.Gif=2]="Gif",t[t.Jpeg=3]="Jpeg",t[t.Pcx=4]="Pcx",t[t.Png=5]="Png",t[t.Tiff=6]="Tiff",t[t.Emf=7]="Emf",t[t.Svg=8]="Svg",t[t.Svgz=9]="Svgz"}(c=t.StiImageType||(t.StiImageType={}));var p;!function(t){t[t.Html=1]="Html",t[t.Html5=2]="Html5",t[t.Mht=3]="Mht"}(p=t.StiHtmlType||(t.StiHtmlType={}));var h;!function(t){t[t.Image=1]="Image",t[t.Vector=2]="Vector",t[t.AnimatedVector=3]="AnimatedVector"}(h=t.StiHtmlChartType||(t.StiHtmlChartType={}));var g;!function(t){t[t.ExcelBinary=1]="ExcelBinary",t[t.ExcelXml=2]="ExcelXml",t[t.Excel2007=3]="Excel2007"}(g=t.StiExcelType||(t.StiExcelType={}));var m;!function(t){t[t.Csv=1]="Csv",t[t.Dbf=2]="Dbf",t[t.Dif=3]="Dif",t[t.Sylk=4]="Sylk",t[t.Xml=5]="Xml"}(m=t.StiDataType||(t.StiDataType={}));var d;!function(t){t[t.Pdf=0]="Pdf",t[t.Xps=1]="Xps",t[t.Ppt2007=2]="Ppt2007",t[t.Html=10]="Html",t[t.Html5=11]="Html5",t[t.Mht=12]="Mht",t[t.Txt=20]="Txt",t[t.Rtf=21]="Rtf",t[t.Word2007=22]="Word2007",t[t.Odt=23]="Odt",t[t.Excel=30]="Excel",t[t.ExcelXml=31]="ExcelXml",t[t.Excel2007=32]="Excel2007",t[t.Ods=33]="Ods",t[t.Data=40]="Data",t[t.Image=50]="Image"}(d=t.StiExportPosition||(t.StiExportPosition={}));var S;!function(t){t[t.BookmarksOnly=1]="BookmarksOnly",t[t.ReportOnly=2]="ReportOnly",t[t.All=3]="All"}(S=t.StiHtmlExportBookmarksMode||(t.StiHtmlExportBookmarksMode={}));var f;!function(t){t[t.Default=0]="Default",t[t.USDOS=437]="USDOS",t[t.MazoviaDOS=620]="MazoviaDOS",t[t.GreekDOS=737]="GreekDOS",t[t.InternationalDOS=850]="InternationalDOS",t[t.EasternEuropeanDOS=852]="EasternEuropeanDOS",t[t.IcelandicDOS=861]="IcelandicDOS",t[t.NordicDOS=865]="NordicDOS",t[t.RussianDOS=866]="RussianDOS",t[t.KamenickyDOS=895]="KamenickyDOS",t[t.TurkishDOS=857]="TurkishDOS",t[t.EasternEuropeanWindows=1250]="EasternEuropeanWindows",t[t.RussianWindows=1251]="RussianWindows",t[t.WindowsANSI=1252]="WindowsANSI",t[t.GreekWindows=1253]="GreekWindows",t[t.TurkishWindows=1254]="TurkishWindows",t[t.StandardMacintosh=1e4]="StandardMacintosh",t[t.GreekMacintosh=10006]="GreekMacintosh",t[t.RussianMacintosh=10007]="RussianMacintosh",t[t.EasternEuropeanMacintosh=10029]="EasternEuropeanMacintosh"}(f=t.StiDbfCodePages||(t.StiDbfCodePages={}));var y;!function(t){t[t.String=0]="String",t[t.Int=1]="Int",t[t.Long=2]="Long",t[t.Float=3]="Float",t[t.Double=4]="Double",t[t.Date=5]="Date",t[t.Bool=6]="Bool"}(y=t.StiExportDataType||(t.StiExportDataType={}));var b;!function(t){t[t.Color=1]="Color",t[t.Grayscale=2]="Grayscale",t[t.Monochrome=3]="Monochrome"}(b=t.StiImageFormat||(t.StiImageFormat={}));var C;!function(t){t[t.Table=4]="Table",t[t.Frame=1]="Frame",t[t.WinWord=2]="WinWord",t[t.TabbedText=3]="TabbedText"}(C=t.StiRtfExportMode||(t.StiRtfExportMode={}));var v;!function(t){t[t.Data=1]="Data",t[t.Headers=2]="Headers",t[t.Footers=4]="Footers",t[t.HeadersFooters=6]="HeadersFooters",t[t.DataAndHeadersFooters=7]="DataAndHeadersFooters",t[t.AllBands=15]="AllBands"}(v=t.StiDataExportMode||(t.StiDataExportMode={}));var I;!function(t){t[t.No=1]="No",t[t.ExceptEditableFields=2]="ExceptEditableFields",t[t.Yes=3]="Yes"}(I=t.StiWord2007RestrictEditing||(t.StiWord2007RestrictEditing={}));var A;!function(t){t[t.No=1]="No",t[t.ExceptEditableFields=2]="ExceptEditableFields",t[t.Yes=3]="Yes"}(A=t.StiExcel2007RestrictEditing||(t.StiExcel2007RestrictEditing={}));var w;!function(t){t[t.No=1]="No",t[t.Yes=2]="Yes"}(w=t.StiPdfAllowEditable||(t.StiPdfAllowEditable={}));var T;!function(t){t[t.Exactly=1]="Exactly",t[t.NoMoreThan=2]="NoMoreThan",t[t.Auto=3]="Auto"}(T=t.StiImageResolutionMode||(t.StiImageResolutionMode={}));var B;!function(t){t[t.None=0]="None",t[t.A1=1]="A1",t[t.A2=2]="A2",t[t.A3=3]="A3"}(B=t.StiPdfComplianceMode||(t.StiPdfComplianceMode={}));var R;!function(t){t[t.Normal=1]="Normal",t[t.PageLayout=2]="PageLayout",t[t.PageBreakPreview=3]="PageBreakPreview"}(R=t.StiExcelSheetViewMode||(t.StiExcelSheetViewMode={}))}(e=t.Export||(t.Export={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Components.StiPagesCollection,r=function(){function r(t,i,r){void 0===t&&(t=e.StiRangeType.All),void 0===i&&(i=String.empty),void 0===r&&(r=0),this.rangeType=e.StiRangeType.All,this.pageRanges="",this.currentPage=0,this.rangeType=t,this.pageRanges=i,this.currentPage=r}return r.prototype.stiEquals=function(t){if(null==t)return!1;var e=t;if(this.rangeType!=e.rangeType||this.pageRanges!=e.pageRanges||this.currentPage!=e.currentPage)return!1;return!0},r.prototype.getSelectedPages=function(r){var n=new i(r.report,r);if(n.cacheMode=r.cacheMode,"All"==this.pageRanges&&(this.rangeType=e.StiRangeType.All),this.rangeType==e.StiRangeType.Pages){if(!String.isNullOrEmpty(this.pageRanges))for(var o=this.pageRanges.split(","),a=0,s=o;a<s.length;a++){var l=s[a];if(-1==l.indexOf("-"))try{var u=parseInt(l.trim());u>=1&&u<=r.count&&n.addV2Internal(r.getByIndex(u-1))}catch(e){t.System.StiError.showError(e,!1)}else{var c=l.split("-");try{var p=parseInt(c[0].trim()),h=parseInt(c[1].trim());if(h=Math.min(h,r.count),p>=1&&p<=r.count&&h>=1&&h<=r.count)if(p<=h)for(var g=p;g<=h;g++)n.addV2Internal(r.getByIndex(g-1));else for(var g=p;g>=h;g--)n.addV2Internal(r.getByIndex(g-1))}catch(e){t.System.StiError.showError(e,!1)}}}if(0!=n.count)return n}else if(this.rangeType==e.StiRangeType.CurrentPage&&(this.currentPage>=0&&this.currentPage<r.count&&n.addV2Internal(r.getByIndex(this.currentPage)),0!=n.count))return n;for(var m=0,d=r.list;m<d.length;m++){var S=d[m];n.addV2Internal(S)}return n},r.All=new r,r}();e.StiPagesRange=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=function(){function t(){}return t.addUnits=function(t,e){0!=e&&t.append(this.units[e-1])},t.addTens=function(t,e){0!=e&&t.append(this.tens[e-1])},t.addRank=function(t,e,i,r){var n=e.ref,o=i.ref,a=o/n|0;if(a>0){var s=a/100|0,l=(a/10|0)%10,u=a%10;1==l&&(l=0,u=a%100),t.length>0&&(s>0?t.append(" "):l+u>0&&t.append(" and ")),s>0&&(this.addUnits(t,s),t.append(" hundred"),l+u>0&&t.append(" and ")),l>0&&(this.addTens(t,l),u>0&&t.append("-")),u>0&&this.addUnits(t,u),t.append(" "),t.append(r),o%=n}n=Math.floor(n/1e3),e.ref=n,i.ref=o},t.decline=function(t,e,i,r){if(void 0===r&&(r=void 0),e.sti_is(String)&&null==r){var n=""+e,o=i;if(1==t%100)return n;return o}if(e.sti_is(Boolean)&&void 0!=r){var a=!!e,s=i;if(a){var l=r.split("/");return this.decline(t,l[0],l[1])}var u=s.split("/");return this.decline(t,u[0],u[1])}return null},t.numToStr=function(t,e){void 0===e&&(e=!0);var r=new i;if(0==t)r.append("zero");else{var n=!1;t<0&&(n=!0,t=Math.abs(t));var o=1e18,a={ref:o},s={ref:t};this.addRank(r,a,s,"quintillion"),this.addRank(r,a,s,"quadrillion"),this.addRank(r,a,s,"trillion"),this.addRank(r,a,s,"billion"),this.addRank(r,a,s,"million"),this.addRank(r,a,s,"thousand"),this.addRank(r,a,s,""),o=a.ref,t=s.ref,n&&r.insert(0,"minus ")}var l=r.toString();return e&&(l=l.charAt(0).toUpper()+l.substr(1)),l},t.currToStr3=function(t,e){return this.currToStr(t,!0,e,"dollar/dollars","cent/cents")},t.currToStr=function(t,e,i,r,n){void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===r&&(r="dollar/dollars"),void 0===n&&(n="cent/cents");var o=Math.trunc(t),a=0;StiOptions.Engine.useRoundForToCurrencyWordsFunctions?(a=Math.round(100*(t-o)))>99&&(a=0,o++):a=100*(t-o);var s=this.numToStr(o,e);return 0==t&&(s+=" "),s.endsWith(" ")||(s+=" "),s=String.stiFormat("{0}{1}",s,this.decline(o,!1,r,n)),i&&(s+=" and ",s+=String.stiFormat("{0}",this.numToStr(a,!1)),0==a&&(s+=" "),s+=String.stiFormat("{0}",this.decline(a,!0,r,n))),s},t.dateToStr=function(t,e){if(void 0===e&&(e=!1),null==t)return"";var i=String.stiFormat("{0} {1} {2}",t.day,this.months[t.month-1],t.year);return e&&(i=i.charAt(0).toUpper()+i.substr(1)),i},t.months=["January","February","March","April","May","June","July","August","September","October","November","December"],t.units=["one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],t.tens=["ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],t}();e.En=r}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Globalization.CultureInfo,r=function(){function t(){}return t.convertToWord=function(t,r,n){var o=new i("en-GB");if(t>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",o),t);var a=Math.trunc(t),s=Math.abs((t-a)*Math.pow(10,n));if(s>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",o),s);var l=this.convertToWord2(a,e.Resource.resourceManager.getString(r+"Gender",o).toNumber(),0),u=this.convertToWord2(s,e.Resource.resourceManager.getString(r+"CentGender",o).toNumber(),0),c="",p="",h={ref:c},g={ref:p};return e.NumToWordHelper.determinateCurrencies(o,r,a,s,h,g),p=g.ref,c=h.ref,e.NumToWordHelper.addWords(l,u,c,p,"and").trim()},t.convertToWord2=function(t,e,i){t=Math.floor(t);var r="",n=t<0;return n&&(t=Math.abs(t)),0==t?r=this.zeroWord:t<20?r=this.lessTwenty[t]:t<100?r=t%10==0?this.tens[Math.floor(t/10)]:this.tens[Math.floor(t/10)]+"-"+this.convertToWord2(t%10,e,0):t<1e3?(r=this.convertToWord2(Math.floor(t/100),e,0)+" hundred",t%100>0&&(r=r+" and "+this.convertToWord2(t%100,e,0))):r=this.calculateOver(t,e),n&&(r=this.lessWord+" "+r),r.trim()},t.calculateOver=function(t,e){var i="",r="",n=(t.toString().length-1)/3|0,o=Math.pow(10,3*n);t%o>0&&(r=this.convertToWord2(t%o,e,n));var a=Math.floor(t/o);switch(a){case 0:break;default:i=this.convertToWord2(a,e,n)+this.triplets[n][0]+" "+r;break}return i},t.zeroWord="zero",t.lessWord="minus",t}();e.EnGb=r,r.triplets=Array.create(String,7,2),r.lessTwenty=[],r.tens=[],r.triplets[0][0]="",r.triplets[1][0]=" thousand",r.triplets[2][0]=" million",r.triplets[3][0]=" billion",r.triplets[4][0]=" trillion",r.triplets[5][0]=" quadrillion",r.triplets[6][0]=" qunintillion",r.triplets[0][1]="",r.triplets[1][1]=" thousands",r.triplets[2][1]=" millions",r.triplets[3][1]=" milliards",r.triplets[4][1]=" trillions",r.triplets[5][1]=" quadrillions",r.triplets[6][1]=" qunintillions",r.lessTwenty[0]="",r.lessTwenty[1]="one",r.lessTwenty[2]="two",r.lessTwenty[3]="three",r.lessTwenty[4]="four",r.lessTwenty[5]="five",r.lessTwenty[6]="six",r.lessTwenty[7]="seven",r.lessTwenty[8]="eight",r.lessTwenty[9]="nine",r.lessTwenty[10]="ten",r.lessTwenty[11]="eleven",r.lessTwenty[12]="twelve",r.lessTwenty[13]="thirteen",r.lessTwenty[14]="fourteen",r.lessTwenty[15]="fifteen",r.lessTwenty[16]="sixteen",r.lessTwenty[17]="seventeen",r.lessTwenty[18]="eighteen",r.lessTwenty[19]="nineteen",r.tens[2]="twenty",r.tens[3]="thirty",r.tens[4]="fourty",r.tens[5]="fifty",r.tens[6]="sixty",r.tens[7]="seventy",r.tens[8]="eighty",r.tens[9]="ninety"}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.numberToStr=function(t,e){return void 0===e&&(e=!1),this.numberToWords(t,e).replace(/([^\W_]+[^\s-]*) */g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})},t.currencyToStr=function(t,e,i,r,n){if(void 0===n&&(n=!1),i<0)throw"Cannot convert negative numbers.";var o=0,a=i,s=i.toString().replaceAll(",",".").lastIndexOf(".");if(s>0){for(var l=i.toString().substr(s+1),u=l.length;u<r;u++)l+="0";o=l.toNumber()}var c=this.numberToWords(a,n).trim(),p=this.numberToWords(o,!0).trim();return c.length>0&&p.length>0?c=c+" and "+e+" "+p:0==c.length&&p.length>0&&(c=this.wordsDictionary.K_0,c=c+" and "+e.toLower()+" "+p),(t+" "+c+" Only").replace(/([^\W_]+[^\s-]*) */g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()})},t.numberToWords=function(t,e){t=Math.floor(t);var i="",r="",n=0,o=0;if(0==t)i=this.wordsDictionary["K_"+t.toString()],e&&(i="");else if(t>=1&&t<20)i=this.wordsDictionary["K_"+t.toString()];else if(t>=20&&t<100)n=10*Math.floor(t/10),i=this.wordsDictionary["K_"+n.toString()],o=t%10,i=i+" "+this.numberToWords(o,!0);else if(t>=100&&t<1e3)n=Math.floor(t/100),i=this.numberToWords(n,!0),r=this.wordsDictionary.K_100,o=t%100,i=i+" "+r+" "+this.numberToWords(o,!0);else if(t>=1e3&&t<1e5)n=Math.floor(t/1e3),i=this.numberToWords(n,!0),r=this.wordsDictionary.K_1000,o=t%1e3,i=i+" "+r+" "+this.numberToWords(o,!0);else if(t>=1e5&&t<1e7)n=Math.floor(t/1e5),i=this.numberToWords(n,!0),r=this.wordsDictionary.K_100000,o=t%1e5,i=i+" "+r+" "+this.numberToWords(o,!0);else if(t>=1e7&&t<1e9)n=Math.floor(t/1e7),i=this.numberToWords(n,!0),r=this.wordsDictionary.K_10000000,o=t%1e7,i=i+" "+r+" "+this.numberToWords(o,!0);else{if(!(t>=1e9&&t<1e15))throw"number to big to convert.";n=Math.floor(t/1e7),i=this.numberToWords(n,!0),r=this.wordsDictionary.K_10000000,i=i+" "+r,r="",o=t%1e7,i=i+" "+this.numberToWords(o,!0)}return i},Object.defineProperty(t,"wordsDictionary",{get:function(){return null==this._wordsDictionary&&(this._wordsDictionary={},this._wordsDictionary.K_0="Zero",this._wordsDictionary.K_1="One",this._wordsDictionary.K_2="Two",this._wordsDictionary.K_3="Three",this._wordsDictionary.K_4="Four",this._wordsDictionary.K_5="Five",this._wordsDictionary.K_6="Six",this._wordsDictionary.K_7="Seven",this._wordsDictionary.K_8="Eight",this._wordsDictionary.K_9="Nine",this._wordsDictionary.K_10="Ten",this._wordsDictionary.K_11="Eleven",this._wordsDictionary.K_12="Twelve",this._wordsDictionary.K_13="Thirteen",this._wordsDictionary.K_14="Fourteen",this._wordsDictionary.K_15="Fifteen",this._wordsDictionary.K_16="Sixteen",this._wordsDictionary.K_17="Seventeen",this._wordsDictionary.K_18="Eighteen",this._wordsDictionary.K_19="Nineteen",this._wordsDictionary.K_20="Twenty",this._wordsDictionary.K_30="Thirty",this._wordsDictionary.K_40="Forty",this._wordsDictionary.K_50="Fifty",this._wordsDictionary.K_60="Sixty",this._wordsDictionary.K_70="Seventy",this._wordsDictionary.K_80="Eighty",this._wordsDictionary.K_90="Ninety",this._wordsDictionary.K_100="Hundred",this._wordsDictionary.K_1000="Thousand",this._wordsDictionary.K_100000="Lac",this._wordsDictionary.K_10000000="Crore"),this._wordsDictionary},enumerable:!0,configurable:!0}),t._wordsDictionary=null,t}();t.EnIn=e}(e=t.Func||(t.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){function i(t,e){return t+" : "+e}var r=t.Report.Dictionary.StiBusinessObject,n=t.Report.Dictionary.StiDataSource,o=t.System.Collections.Hashtable,a=t.System.Globalization.CultureInfo,s=t.System.ResourceManager,l=t.System.Text.StringBuilder,u;!function(t){t[t.Masculine=0]="Masculine",t[t.Feminine=1]="Feminine",t[t.Neutral=2]="Neutral"}(u=e.Gender||(e.Gender={}));var c=function(){function t(){}return Object.defineProperty(t.prototype,"gender",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centsGender",{get:function(){return null},enumerable:!0,configurable:!0}),t}();e.BaseCurrency=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"dollars",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cents",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dollarOne",{get:function(){return this.dollars[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dollarTwo",{get:function(){return this.dollars[1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dollarFive",{get:function(){return this.dollars[2]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centOne",{get:function(){return this.cents[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centTwo",{get:function(){return this.cents[1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centFive",{get:function(){return this.cents[2]},enumerable:!0,configurable:!0}),e}(c);e.Currency=p;var h=function(){function t(){}return t.addWord=function(t,e,i){var r=t.ref;String.isNullOrEmpty(e)||(r=r+i+e),t.ref=r},t.addWords=function(t,e,i,r,n){var o="",a={ref:o};return this.addWord(a,t," "),this.addWord(a,i," "),this.addWord(a,n," "),this.addWord(a,e," "),this.addWord(a,r," "),o=a.ref},t.determinateCurrencies=function(t,e,i,r,n,o){var a=n.ref,s=o.ref;a=i/1e6>0&&i%1e6==0?g.resourceManager.getString(e+"BigSeparator",t):i>1?g.resourceManager.getString(e+"Plural",t):g.resourceManager.getString(e+"Single",t),s=r>1?g.resourceManager.getString(e+"CentPlural",t):g.resourceManager.getString(e+"CentSingle",t),n.ref=a,o.ref=s},t.maxValue=1e15,t}();e.NumToWordHelper=h,e.NumToWordException=i;var g=function(){function t(){}return Object.defineProperty(t,"resourceManager",{get:function(){return null==this.resourceMan&&(this.resourceMan=new s),this.resourceMan},enumerable:!0,configurable:!0}),Object.defineProperty(t,"culture",{get:function(){return this.resourceCulture},set:function(t){this.resourceCulture=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"eurBigSeparator",{get:function(){return this.resourceManager.getString("EURBigSeparator",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"eurCentGender",{get:function(){return this.resourceManager.getString("EURCentGender",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"eurCentPlural",{get:function(){return this.resourceManager.getString("EURCentPlural",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"EURCentSingle",{get:function(){return this.resourceManager.getString("EURCentSingle",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"EURGender",{get:function(){return this.resourceManager.getString("EURGender",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"EURPlural",{get:function(){return this.resourceManager.getString("EURPlural",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"EURSingle",{get:function(){return this.resourceManager.getString("EURSingle",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GBPBigSeparator",{get:function(){return this.resourceManager.getString("GBPBigSeparator",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GBPCentGender",{get:function(){return this.resourceManager.getString("GBPCentGender",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GBPCentPlural",{get:function(){return this.resourceManager.getString("GBPCentPlural",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GBPCentSingle",{get:function(){return this.resourceManager.getString("GBPCentSingle",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GBPGender",{get:function(){return this.resourceManager.getString("GBPGender",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GBPPlural",{get:function(){return this.resourceManager.getString("GBPPlural",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GBPSingle",{get:function(){return this.resourceManager.getString("GBPSingle",this.resourceCulture)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"TooLongError",{get:function(){return this.resourceManager.getString("TooLongError",this.resourceCulture)},enumerable:!0,configurable:!0}),t}();e.Resource=g;var m=function(){function t(){}return t.toRoman=function(t){var e="";while(t>0)for(var i=5;i>=0;i--){if(t>=this.arabics[i]){e+=this.romans[i],t-=this.arabics[i];break}for(var r=!1,n=this.subs[i];n<i;n++){if(this.arabics[n]==this.arabics[i]-this.arabics[n])continue;if(t>=this.arabics[i]-this.arabics[n]){e+=this.romans[n],e+=this.romans[i],t-=this.arabics[i]-this.arabics[n],r=!0;break}}if(r)break}return e},t.toABC=function(t){if(t<1)return String.empty;var e="",i=0;while(t>26)i++,t-=26;return String.repeat(this.abc[t-1],i+1)},t.toABCNumeric=function(t){var e=0;while(t>26)e++,t-=26;return 0==e?String.fromCharCode(t+64):String.fromCharCode(t+64)+""+e.toNumber()},t.toABCRu=function(t){if(t<1)return String.empty;var e="",i=0;while(t>26)i++,t-=26;return String.repeat(this.abcRu[t-1],i+1)},t.toArabic=function(t,e){for(var i=t.toString(),r="",n=0;n<i.length;n++){var o=i.charCodeAt(n);o>=48&&o<=57&&(o+=1632-48,e&&(o+=1776-1632)),r+=String.fromCharCode(o)}return r},t.arabics=[1,5,10,50,100,1e3],t.romans=["I","V","X","L","C","M"],t.subs=[0,0,0,2,2,4],t.abc=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t.abcRu=["А","Б","В","Г","Д","Е","Ж","З","И","К","Л","М","Н","О","П","Р","С","Т","У","Ф","Х","Ц","Ч","Ш","Щ","Э","Ю","Я"],t}();e.Convert=m;var d=function(){function e(){}return e.joinColumnContent=function(t,e,i,a){if(void 0===a&&(a=!1),t.sti_is(n)){var s=t.sti_as(n),u=new Array,c=new o;if(!s.isEmpty){s.saveState("JoinColumnContent"),s.first();while(!s.isEof){var p=s.getByName(e).toString(),h=!0;a&&(c.containsKey(p)?h=!1:c.set(p,null)),h&&u.add(p),s.next()}s.restoreState("JoinColumnContent")}for(var g=new l,m=0;m<u.count;m++)g.append(u[m]),m<u.count-1&&g.append(i);return g.toString()}if(t.sti_is(r)){var d=t.sti_as(r),u=new Array,c=new o;if(!d.isEmpty&&d.count>0){d.saveState("JoinColumnContent"),d.first();var S=e.split(".");while(!d.isEof){var f=d,y=null,b=0;while(b<S.length-1){if(y=S[b],f.columns.contains(y))break;f=f.businessObjects.getByName(y),b++}var C=f.getByName(S[b]),p=C.toString(),h=!0;a&&(c.containsKey(p)?h=!1:c.set(p,null)),h&&u.add(p),d.next()}d.restoreState("JoinColumnContent")}for(var g=new l,m=0;m<u.count;m++)g.append(u[m]),m<u.count-1&&g.append(i);return g.toString()}return String.empty},e.toQueryString=function(e,i,r){for(var n=new l,o=0,a=0,s=e;a<s.length;a++){var u=s[a];o>0&&n.append(", ");var c=void 0;c=String.isNullOrEmpty(r)?u.toString():String.stiFormat(r,t.System.Convert.toDateTime(u).toString()),String.isNullOrEmpty(i)||(c=c.replaceAll(i,i+i)),n.append(i+c+i),o++}return n.toString()},e}();e.EngineHelper=d;var S=function(){function e(){}return e.monthName=function(e,i,r){if(void 0===i&&(i=null),void 0===r&&(r=null),null==i)return this.monthName(e,a.currentCulture.name.toString());if(null!=i&&i.sti_is(Boolean)){if(i)switch(e.month){case 1:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthJanuary");case 2:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthFebruary");case 3:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthMarch");case 4:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthApril");case 5:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthMay");case 6:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthJune");case 7:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthJuly");case 8:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthAugust");case 9:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthSeptember");case 10:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthOctober");case 11:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthNovember");case 12:return t.Base.Localization.StiLocalization.get("A_WebViewer","MonthDecember")}return this.monthName(e)}if(null!=i&&i.sti_is(String)){var n=""+i,o=e.month,s=String.empty;try{var l=a.cultures[n];s=l.dateTimeFormat.monthNames[o-1]}catch(e){t.System.StiError.showError(e,!1);var u=n.toLower(),c=+this.cultureIndexes.get(u);o<this.months[c].length&&(s=this.months[c][o-1]),this.defaultUpperCaseList[c]&&(s=s.substr(0,1).toUpper()+s.substr(1))}if(null!=r){if(r)return s.substr(0,1).toUpper()+s.substr(1);return s.substr(0,1).toLower()+s.substr(1)}return s}return""},e.addCulture=function(t,e,i){var r=this.months.count;this.months.add(t),this.defaultUpperCaseList.add(i);for(var n=0,o=e;n<o.length;n++){var a=o[n];this.cultureIndexes.set(a.toLower(),r)}},e.MonthToStr=function(){var t=new Array,e=new Array,i=new o;this.addCulture(["January","February","March","April","May","June","July","August","September","October","November","December"],["en"],!1),this.addCulture(["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],["ru"],!1),this.addCulture(["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],["es"],!1),this.addCulture(["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],["it"],!1),this.addCulture(["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],["ro"],!1),this.addCulture(["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],["pt"],!1),this.addCulture(["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awissu","Settembru","Ottubru","Novembru","Diċembru"],["mt"],!1),this.addCulture(["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],["hu"],!1),this.addCulture(["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],["sk"],!1),this.addCulture(["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"],["is"],!1),this.addCulture(["januar","februar","mars","apríl","mai","juni","juli","august","september","oktober","november","desember"],["fo"],!1),this.addCulture(["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],["de"],!1),this.addCulture(["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],["nl"],!1),this.addCulture(["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember"],["id"],!1),this.addCulture(["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"],["lv"],!1),this.addCulture(["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],["fr"],!1),this.addCulture(["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],["cs"],!1),this.addCulture(["Mutarama","Gashyantare","Werurwe","Mata","Gicurasi","Kamena","Nyakanga","Kanama","Nzeli","Ukwakira","Ugushyingo","Ukuboza"],["rw"],!1),this.addCulture(["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],["tr"],!1),this.addCulture(["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu"],["se"],!1),this.addCulture(["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"],["lt"],!1),this.addCulture(["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"],["hr"],!1),this.addCulture(["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],["pl"],!1),this.addCulture(["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],["fi"],!1),this.addCulture(["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],["mk"],!1),this.addCulture(["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],["bg"],!1),this.addCulture(["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],["th"],!1)},e.months=null,e.defaultUpperCaseList=null,e.cultureIndexes=null,e}();e.MonthToStr=S;var f=function(){function e(){}return e.dayOfWeek=function(e,i,r){if(void 0===i&&(i=null),void 0===r&&(r=null),null==i)return this.dayOfWeek(e,a.currentCulture.name.toString());if(null!=i&&i.sti_is(Boolean)){if(i)switch(e.dayOfWeek){case t.System.DayOfWeek.Sunday:return t.Base.Localization.StiLocalization.get("A_WebViewer","DaySunday");case t.System.DayOfWeek.Monday:return t.Base.Localization.StiLocalization.get("A_WebViewer","DayMonday");case t.System.DayOfWeek.Tuesday:return t.Base.Localization.StiLocalization.get("A_WebViewer","DayTuesday");case t.System.DayOfWeek.Wednesday:return t.Base.Localization.StiLocalization.get("A_WebViewer","DayWednesday");case t.System.DayOfWeek.Thursday:return t.Base.Localization.StiLocalization.get("A_WebViewer","DayThursday");case t.System.DayOfWeek.Friday:return t.Base.Localization.StiLocalization.get("A_WebViewer","DayFriday");case t.System.DayOfWeek.Saturday:return t.Base.Localization.StiLocalization.get("A_WebViewer","DaySaturday")}return this.dayOfWeek(e,a.currentCulture.name.toString())}if(null!=i&&i.sti_is(String)){var n=""+i,o=String.empty;try{var s=a.cultures[n];o=s.dateTimeFormat.dayNames[e.dayOfWeek]}catch(i){t.System.StiError.showError(i,!1);var l=+e.dayOfWeek,u=n.toLower(),c=+this.cultureIndexes.get(u);l<this.days[c].length&&(o=this.days[c][l]),this.defaultUpperCaseList[c]&&(o=o.substr(0,1).toUpper()+o.substr(1))}if(null!=r){if(r)return o.substr(0,1).toUpper()+o.substr(1);return o.substr(0,1).toLower()+o.substr(1)}return o}return""},e.addCulture=function(t,e,i){var r=this.days.count;this.days.add(t),this.defaultUpperCaseList.add(i);for(var n=0,o=e;n<o.length;n++){var a=o[n];this.cultureIndexes.set(a.toLower(),r)}},e.DayOfWeekToStr=function(){var t=[],e=[],i=new o;this.addCulture(["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["fr"],!1),this.addCulture(["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],["it"],!1),this.addCulture(["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["es"],!1),this.addCulture(["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["pt"],!1),this.addCulture(["duminică","luni","marţi","miercuri","joi","vineri","sâmbătă"],["ro"],!1),this.addCulture(["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"],["mt"],!1),this.addCulture(["Ku wa mbere","Ku wa kabiri","Ku wa gatatu","Ku wa kane","Ku wa gatanu","Ku wa gatandatu","Ku cyumweru"],["rw"],!1),this.addCulture(["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],["id"],!1),this.addCulture(["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],["sk"],!1),this.addCulture(["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"],["hr"],!1),this.addCulture(["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],["pl"],!1),this.addCulture(["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],["tr"],!1),this.addCulture(["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"],["lt"],!1),this.addCulture(["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["de"],!1),this.addCulture(["sotnabeaivi","mánnodat","disdat","gaskavahkku","duorastat","bearjadat","lávvardat"],["se"],!1),this.addCulture(["sunnudagur","mánadagur","týsdagur","mikudagur","hósdagur","fríggjadagur","leygardagur"],["fo"],!1),this.addCulture(["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"],["is"],!1),this.addCulture(["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],["fi"],!1),this.addCulture(["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"],["lv"],!1),this.addCulture(["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],["hu"],!1),this.addCulture(["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["nl"],!1),this.addCulture(["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],["ru"],!1),this.addCulture(["недела","понеделник","вторник","среда","четврток","петок","сабота"],["mk"],!1),this.addCulture(["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"],["bg"],!1),this.addCulture(["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"],["mn"],!1),this.addCulture(["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],["th"],!1)},e.days=null,e.defaultUpperCaseList=null,e.cultureIndexes=null,e}();e.DayOfWeekToStr=f}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Globalization.CultureInfo,r=function(){function t(){}return t.convertToWord=function(t,r,n){var o=new i("es-ES");if(t>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",o),t);var a=Math.trunc(t),s=Math.abs((t-a)*Math.pow(10,n));if(s>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",o),s);var l=this.convertToWord2(a,e.Resource.resourceManager.getString(r+"Gender",o).toNumber(),0),u=this.convertToWord2(s,e.Resource.resourceManager.getString(r+"CentGender",o).toNumber(),0),c="",p="",h={ref:c},g={ref:p};return e.NumToWordHelper.determinateCurrencies(o,r,a,s,h,g),this.determinateCurrenciesEurUsd(o,r,a,s,h,g),p=g.ref,c=h.ref,e.NumToWordHelper.addWords(l,u,c,p,"y").trim()},t.determinateCurrenciesEurUsd=function(t,e,i,r,n,o){var a=n.ref,s=o.ref,l=-1;"USD"==e&&(l=0),"EUR"==e&&(l=1),-1!=l&&(a=Math.floor(i/1e6)>0&&i%1e6==0?this.currencies[l][1]:i>1?this.currencies[l][1]:this.currencies[l][0],s=r>1?this.currencies[l][3]:this.currencies[l][2]),n.ref=a,o.ref=s},t.numToStr=function(t,r){var n=new i("es-ES");if(t>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",n),t);var o=this.convertToWord2(t,1,0,!0);return r&&o.length>1&&(o=o[0].toUpper()+o.substr(1)),o.trim()},t.numToStr2=function(t,r,n){var o=new i("es-ES");if(t>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",o),t);var a=this.convertToWord2(t,n?2:1,0,!0);return r&&a.length>1&&(a=a[0].toUpper()+a.substr(1)),a.trim()},t.convertToWord2=function(t,e,i,r){void 0===r&&(r=!1),t=Math.floor(t);var n="",o=t<0;if(o&&(t=Math.abs(t)),0==t)n=this.zeroWord;else if(t<20)n=1==t&&2==e?"una":1!=t||1!=e||r?this.lessTwenty[t]:"un";else if(t<100)n=t%10==0?this.tens[t/10|0]:2==(t/10|0)?"veinti"+this.convertToWord2(t%10,e,0,r):this.tens[t/10|0]+" y "+this.convertToWord2(t%10,e,0,r);else if(t<1e3){switch(t/100|0){case 1:n=100==t?"cien":"ciento";break;case 5:n=1==e?"quinientos":"quinientas";break;case 7:n=1==e?"setecientos":"setecientas";break;case 9:n=1==e?"novecientos":"novecientas";break;default:n=this.convertToWord2(t/100|0,e,0,r)+(1==e?"cientos":"cientas");break}t%100>0&&(n=n+" "+this.convertToWord2(t%100,e,0,r))}else n=t<1e6?1==Math.floor(t/1e3)?this.triplets[1][0]+(t%1e3==0?"":" "+this.convertToWord2(t%1e3,e,0,r)):this.convertToWord2(Math.floor(t/1e3),e,1,r)+this.triplets[1][1]+(t%1e3==0?"":" "+this.convertToWord2(t%1e3,e,0,r)):t<1e12?1==Math.floor(t/1e6)?this.convertToWord2(Math.floor(t/1e6),e,2,r)+this.triplets[2][0]+(t%1e6==0?"":" "+this.convertToWord2(t%1e6,e,0,r)):this.convertToWord2(Math.floor(t/1e6),e,2,r)+this.triplets[2][1]+(t%1e6==0?"":" "+this.convertToWord2(t%1e6,e,0,r)):t<1e18?1==Math.floor(t/1e12)?this.convertToWord2(Math.floor(t/1e12),e,2,r)+this.triplets[4][0]+(t%1e12==0?"":" "+this.convertToWord2(t%1e12,e,0,r)):this.convertToWord2(Math.floor(t/1e12),e,2,r)+this.triplets[4][1]+(t%1e12==0?"":" "+this.convertToWord2(t%1e12,e,0,r)):1==Math.floor(t/1e18)?this.convertToWord2(Math.floor(t/1e18),e,2,r)+this.triplets[6][0]+(t%1e18==0?"":" "+this.convertToWord2(t%1e18,e,0,r)):this.convertToWord2(Math.floor(t/1e18),e,2,r)+this.triplets[6][1]+(t%1e18==0?"":" "+this.convertToWord2(t%1e18,e,0,r));return o&&(n=this.lessWord+" "+n),n.trim()},t.zeroWord="cero",t.lessWord="menos",t.currencies=[["dólar","dólares","centavo","centavos"],["euro","euros","céntimo","céntimos"]],t}();e.Es=r,r.triplets=Array.create(String,7,2),r.lessTwenty=[],r.tens=[],r.triplets[0][0]="",r.triplets[1][0]=" mil",r.triplets[2][0]=" millón",r.triplets[3][0]=" mil milliones",r.triplets[4][0]=" billón",r.triplets[5][0]=" mil billón",r.triplets[6][0]=" trillón",r.triplets[0][1]="",r.triplets[1][1]=" mil",r.triplets[2][1]=" millones",r.triplets[3][1]=" mil milliones",r.triplets[4][1]=" billónes",r.triplets[5][1]=" mil billónes",r.triplets[6][1]=" trillónes",r.lessTwenty[0]="",r.lessTwenty[1]="uno",r.lessTwenty[2]="dos",r.lessTwenty[3]="tres",r.lessTwenty[4]="cuatro",r.lessTwenty[5]="cinco",r.lessTwenty[6]="seis",r.lessTwenty[7]="siete",r.lessTwenty[8]="ocho",r.lessTwenty[9]="nueve",r.lessTwenty[10]="diez",r.lessTwenty[11]="once",r.lessTwenty[12]="doce",r.lessTwenty[13]="trece",r.lessTwenty[14]="catorce",r.lessTwenty[15]="quince",r.lessTwenty[16]="dieciséis",r.lessTwenty[17]="diecisiete",r.lessTwenty[18]="dieciocho",r.lessTwenty[19]="diecinueve",r.tens[2]="veinte",r.tens[3]="treinta",r.tens[4]="cuarenta",r.tens[5]="cincuenta",r.tens[6]="sesenta",r.tens[7]="setenta",r.tens[8]="ochenta",r.tens[9]="noventa"}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.convertToWord=function(t){t=Math.floor(t);var e=[],i=[],r=String.empty;if(0==(t=Math.abs(t)))return"صفر";while(!0){var n=0,o=0;if(n=Math.floor(t/1e3),o=t%1e3,e.add(o),!(n>=1e3)){0!=n&&e.add(n);break}t=n}for(var a=0;a<=e.count-1;a++)i.add(this.changingNum(e[a]));for(var s=i.count-1;s>=0;s+=-1)if(5==s){if(!String.isNullOrEmpty(i[5])){if(String.isNullOrEmpty(i[4])&&String.isNullOrEmpty(i[3])&&String.isNullOrEmpty(i[2])&&String.isNullOrEmpty(i[1])&&String.isNullOrEmpty(i[0])){r+=i[5]+" بيليارد";break}r+=i[5]+" بيليارد و "}}else if(4==s){if(!String.isNullOrEmpty(i[4])){if(String.isNullOrEmpty(i[3])&&String.isNullOrEmpty(i[2])&&String.isNullOrEmpty(i[1])&&String.isNullOrEmpty(i[0])){r+=i[4]+" بيليون";break}r+=i[4]+" بيليون و "}}else if(3==s){if(!String.isNullOrEmpty(i[3])){if(String.isNullOrEmpty(i[2])&&String.isNullOrEmpty(i[1])&&String.isNullOrEmpty(i[0])){r+=i[3]+" ميليارد";break}r+=i[3]+" ميليارد و "}}else if(2==s){if(!String.isNullOrEmpty(i[2])){if(String.isNullOrEmpty(i[1])&&String.isNullOrEmpty(i[0])){r+=i[2]+" ميليون";break}r+=i[2]+" ميليون و "}}else if(1==s){if(!String.isNullOrEmpty(i[1])){if(String.isNullOrEmpty(i[0])){r+=i[1]+" هزار";break}r+=i[1]+" هزار و "}}else r+=i[0];return r},t.changingNum=function(t){var e=[],i=String.empty,r=String.empty,n=String.empty,o=String.empty;while(!0){var a=0,s=0;if(a=Math.trunc(t/10),s=Math.trunc(t%10),e.add(s.toString()),!(a>=10)){e.add(a.toString());break}t=a}if(3==e.count)switch(e[2]){case"0":n="";break;case"1":n="صد";break;case"2":n="دويست";break;case"3":n="سيصد";break;case"4":n="چهارصد";break;case"5":n="پانصد";break;case"6":n="ششصد";break;case"7":n="هفتصد";break;case"8":n="هشتصد";break;case"9":n="نهصد";break}switch(e[0]){case"0":i="";break;case"1":i="يک";break;case"2":i="دو";break;case"3":i="سه";break;case"4":i="چهار";break;case"5":i="پنج";break;case"6":i="شش";break;case"7":i="هفت";break;case"8":i="هشت";break;case"9":i="نه";break}switch(e[1]){case"0":r="";break;case"1":switch(e[0]){case"0":i="ده";break;case"1":i="يازده";break;case"2":i="دوازده";break;case"3":i="سيزده";break;case"4":i="چهارده";break;case"5":i="پانزده";break;case"6":i="شانزده";break;case"7":i="هفده";break;case"8":i="هيجده";break;case"9":i="نوزده";break}break;case"2":r="بيست";break;case"3":r="سي";break;case"4":r="چهل";break;case"5":r="پنجاه";break;case"6":r="شصت";break;case"7":r="هفتاد";break;case"8":r="هشتاد";break;case"9":r="نود";break}return String.isNullOrEmpty(n)?String.isNullOrEmpty(r)?o+=i:(o+=r,String.isNullOrEmpty(i)||(o+=" و "+i)):(o+=n,String.isNullOrEmpty(r)?String.isNullOrEmpty(i)||(o+=" و "+i):(o+=" و "+r,String.isNullOrEmpty(i)||(o+=" و "+i))),o},t}();t.Fa=e}(e=t.Func||(t.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Globalization.CultureInfo,r=function(){function t(){}return t.convertToWord=function(t,r,n){var o=new i("fr-FR");if(t>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",o),t);var a=Math.trunc(t),s=Math.abs((t-a)*Math.pow(10,n));if(s>e.NumToWordHelper.maxValue)throw e.NumToWordException(e.Resource.resourceManager.getString("TooLongError",o),s);var l=this.convertToWord2(a,e.Resource.resourceManager.getString(r+"Gender",o).toNumber(),0),u=this.convertToWord2(s,e.Resource.resourceManager.getString(r+"CentGender",o).toNumber(),0),c="",p="",h={ref:c},g={ref:p};return e.NumToWordHelper.determinateCurrencies(o,r,a,s,h,g),c=h.ref,p=g.ref,e.NumToWordHelper.addWords(l,u,c,p,"et").trim()},t.convertToWord2=function(t,e,i){t=Math.floor(t);var r="",n=t<0;if(n&&(t=Math.abs(t)),0==t)r=this.zeroWord;else if(t<20)r=1==t&&2==e?this.lessTwentys[t]+"e":this.lessTwentys[t];else if(t<100){var o="";switch(t%10){case 0:switch(t/10|0){case 7:o="-";break;case 8:1!=i&&(o="s");break;case 9:o="-";break;default:o="";break}break;case 1:switch(t/10|0){case 8:o=" ";break;case 9:o=" ";break;default:o="-et-";break}break;default:o="-";break}r=this.tens[t/10|0]+o,7==(t/10|0)||9==(t/10|0)?(""==o&&(o=" "),r+=this.convertToWord2(t%10+10,e,0)):t%10!=0&&(r+=this.convertToWord2(t%10,e,0))}else if(t<1e3){switch(t/100|0){case 1:r="cent";break;default:r=this.convertToWord2(t/100|0,e,0)+" cent",t%100==0&&1!=i&&(r+="s");break}t%100>0&&(r=r+" "+this.convertToWord2(t%100,e,0))}else r=this.calculateOver(t,e);return n&&(r=this.lessWord+" "+r),r.trim()},t.calculateOver=function(t,e){var i="",r="",n=(t.toString().length-1)/3|0,o=Math.pow(10,3*n);t%o>0&&(r=this.convertToWord2(t%o,e,n));var a=Math.floor(t/o);switch(a){case 0:break;case 1:i=1==n?this.triplets[n][0]+" "+r:this.convertToWord2(a,e,n)+this.triplets[n][0]+" "+r;break;default:i=this.convertToWord2(a,e,n)+this.triplets[n][1]+" "+r;break}return i},t.zeroWord="zéro",t.lessWord="moins",t}();e.Fr=r,r.triplets=Array.create(String,7,2),r.lessTwentys=[],r.tens=[],r.triplets[0][0]="",r.triplets[1][0]=" mille",r.triplets[2][0]=" million",r.triplets[3][0]=" milliard",r.triplets[4][0]=" trillion",r.triplets[5][0]=" quadrillion",r.triplets[6][0]=" qunintillion",r.triplets[0][1]="",r.triplets[1][1]=" mille",r.triplets[2][1]=" millions",r.triplets[3][1]=" milliards",r.triplets[4][1]=" trillions",r.triplets[5][1]=" quadrillions",r.triplets[6][1]=" qunintillions",r.lessTwentys[0]="",r.lessTwentys[1]="un",r.lessTwentys[2]="deux",r.lessTwentys[3]="trois",r.lessTwentys[4]="quatre",r.lessTwentys[5]="cinq",r.lessTwentys[6]="six",r.lessTwentys[7]="sept",r.lessTwentys[8]="huit",r.lessTwentys[9]="neuf",r.lessTwentys[10]="dix",r.lessTwentys[11]="onze",r.lessTwentys[12]="douze",r.lessTwentys[13]="treize",r.lessTwentys[14]="quatorze",r.lessTwentys[15]="quinze",r.lessTwentys[16]="seize",r.lessTwentys[17]="dix-sept",r.lessTwentys[18]="dix-huit",r.lessTwentys[19]="dix-neuf",r.tens[2]="vingt",r.tens[3]="trente",r.tens[4]="quarante",r.tens[5]="cinquante",r.tens[6]="soixante",r.tens[7]="soixante",r.tens[8]="quatre-vingt",r.tens[9]="quatre-vingt"}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Globalization.CultureInfo,r=t.Report.Func.Resource,n=function(){function t(){}return t.convertToWord=function(t,n,o){var a=new i("nl-NL");if(t>e.NumToWordHelper.maxValue)throw e.NumToWordException(r.resourceManager.getString("TooLongError",a),t);var s=Math.trunc(t),l=Math.abs((t-s)*Math.pow(10,o));if(l>e.NumToWordHelper.maxValue)throw e.NumToWordException(r.resourceManager.getString("TooLongError",a),l);var u=this.convertToWord2(s,r.resourceManager.getString(n+"Gender",a).toNumber(),0),c=this.convertToWord2(l,r.resourceManager.getString(n+"CentGender",a).toNumber(),0),p="",h="",g={ref:p},m={ref:h};return e.NumToWordHelper.determinateCurrencies(a,n,s,l,g,m),h=m.ref,p=g.ref,e.NumToWordHelper.addWords(u,c,p,h,"en").trim()},t.convertToWord2=function(t,e,i){t=Math.floor(t);var r="",n=t<0;return n&&(t=Math.abs(t)),0==t?r=this.zeroWord:t<20?r=this.lessTwenty[t]:t<100?r=t%10==0?this.tens[t/10|0]:this.convertToWord2(t%10,e,0)+" en "+this.tens[t/10|0]:t<1e3?(r=this.convertToWord2(t/100|0,e,0)+" Honderd",t%100>0&&(r=r+", "+this.convertToWord2(t%100,e,0))):r=this.calculateOver(t,e),n&&(r=this.lessWord+" "+r),r.trim()},t.calculateOver=function(t,e){var i="",r="",n=(t.toString().length-1)/3|0,o=Math.pow(10,3*n);t%o>0&&(r=this.convertToWord2(t%o,e,n));var a=Math.floor(t/o);switch(a){case 0:break;default:i=this.convertToWord2(a,e,n)+this.triplets[n][0]+" "+r;break}return i},t.zeroWord="nul",t.lessWord="minus",t}();e.Nl=n,n.triplets=Array.create(String,7,2),n.lessTwenty=[],n.tens=[],n.triplets[0][0]="",n.triplets[1][0]=" duizend",n.triplets[2][0]=" miljoen",n.triplets[3][0]=" miljard",n.triplets[4][0]=" biljoen",n.triplets[5][0]=" biljard",n.triplets[6][0]=" triljoen",n.triplets[0][1]="",n.triplets[1][1]=" duizend",n.triplets[2][1]=" miljoen",n.triplets[3][1]=" miljard",n.triplets[4][1]=" biljoen",n.triplets[5][1]=" biljard",n.triplets[6][1]=" triljoen",n.lessTwenty[0]="",n.lessTwenty[1]="een",n.lessTwenty[2]="twee",n.lessTwenty[3]="drie",n.lessTwenty[4]="vier",n.lessTwenty[5]="vijf",n.lessTwenty[6]="zes",n.lessTwenty[7]="zeven",n.lessTwenty[8]="acht",n.lessTwenty[9]="negen",n.lessTwenty[10]="tien",n.lessTwenty[11]="elf",n.lessTwenty[12]="twaalf",n.lessTwenty[13]="dertien",n.lessTwenty[14]="veertien",n.lessTwenty[15]="vijftien",n.lessTwenty[16]="zestien",n.lessTwenty[17]="zeventien",n.lessTwenty[18]="achtien",n.lessTwenty[19]="negentien",n.tens[2]="twintig",n.tens[3]="dertig",n.tens[4]="veertig",n.tens[5]="vijftig",n.tens[6]="zestig",n.tens[7]="zeventig",n.tens[8]="tachtig",n.tens[9]="negentig"}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=function(){function t(){}return t.numToStr=function(t,e){t=Math.floor(t);var r;if(0==t)r="zero ";else{var n=new i,o=!1;t<0&&(o=!0,t=Math.abs(t));var a=1e18,s={refRank:a,refValue:t};this.addRank(n,s,this.quintillion),this.addRank(n,s,this.quadrillion),this.addRank(n,s,this.trillion),this.addRank(n,s,this.billion),this.addRank(n,s,this.million),this.addRank(n,s,this.thousends),this.addRank(n,s,null),a=s.refRank,t=s.refValue,r=n.toString(),o&&(r="minus "+r)}return e&&(r=r.charAt(0).toUpperCase()+r.substr(1)),r.trim()},t.addUnits=function(t,e){0!=e&&t.append(this.units[e-1])},t.addTens=function(t,e){0!=e&&t.append(this.tens[e-1])},t.addHundreds=function(t,e){0!=e&&t.append(this.hundreds[e-1])},t.addRank=function(t,e,i){var r=e.refRank,n=e.refValue,o=Math.floor(n/r);if(o>0){var a=Math.floor(o/100),s=Math.floor(o/10)%10,l=o%10;if(1==s&&(s=0,l=o%100),t.length>0&&(a>0?t.append(" "):s+l>0&&t.append(" ")),a>0&&(this.addHundreds(t,a),s+l>0&&t.append(" ")),s>0&&(this.addTens(t,s),l>0&&t.append(" ")),l>0&&this.addUnits(t,l),t.append(" "),null!=i)switch(l){case 0:case 1:0==s&&0==a?t.append(i[0]):t.append(i[2]);break;case 2:case 3:case 4:t.append(i[1]);break;default:t.append(i[2]);break}n%=r}r=Math.floor(r/1e3),e.refRank=r,e.refValue=n},t.decline2=function(t,e){var i=t%10,r=Math.floor(t/10);switch(i){case 1:return 1==r?e[2]:e[0];case 2:case 3:case 4:return 1==r?e[2]:e[1];default:return e[2]}},t.decline=function(t,e,i,r){return e?this.decline2(t,r):this.decline2(t,i)},t.currToStr2=function(t,e,i,r,n){var o=Math.floor(t),a=0;StiOptions.Engine.useRoundForToCurrencyWordsFunctions?(a=Math.round(100*(t-o)))>99&&(a=0,o++):a=100*(t-o);var s=this.numToStr(o,e)+" "+this.decline(o,!1,r,n);return i&&(s+=" i "+this.numToStr(a,!1)+" "+this.decline(a,!0,r,n)),s},t.currToStr=function(t,e,i,r){switch(e){case"USD":return this.currToStr2(t,r,i,this.dollar,this.cent);case"EUR":return this.currToStr2(t,r,i,this.euro,this.cent);default:return this.currToStr2(t,r,i,this.zloty,this.grosz)}},t.dateToStr=function(t,e){var i=String.stiFormat("{0} {1} {2}",t.day,this.months[t.month-1],t.year);return e&&(i=i[0].toUpperCase()+i.substr(1)),i},t.units=["jeden","dwa","trzy","cztery","pięć","sześć","siedem","osiem","dziewięć","dziesięć","jedenaście","dwanaście","trzynaście","czternaście","piętnaście","szesnaście","siedemnaście","osiemnaście","dziewiętnaście"],t.tens=["dziesięć","dwadzieścia","trzydzieści","czterdzieści","pięćdziesiąt","sześćdziesiąt","siedemdziesiąt","osiemdziesiąt","dziewięćdziesiąt"],t.hundreds=["sto","dwieście","trzysta","czterysta","pięćset","sześćset","siedemset","osiemset","dziewięćset"],t.thousends=["tysiąc","tysiące","tysięcy"],t.million=["milion","miliony","milionów"],t.billion=["miliard","miliardy","miliardów"],t.trillion=["bilion","biliony","bilionów"],t.quadrillion=["biliard","biliardy","biliardów"],t.quintillion=["trylion","tryliony","trylionów"],t.zloty=["złoty","złote","złotych"],t.grosz=["grosz","grosze","groszy"],t.dollar=["dolar","dolary","dolarów"],t.cent=["cent","centy","centów"],t.euro=["euro","euro","euro"],t.months=["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],t}();e.Pl=r}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=function(){function t(){}return t.numToStr=function(t,e){t=Math.floor(t);var r=t>=1e3,n;if(0==t)n="zero";else{var o=new i,a=!1;t<0&&(a=!0,t=Math.abs(t));var s=1e18,l={ref:s},u={ref:t};this.addRank(o,l,u,u.ref.toString().startsWith("1")?"quintilião":"quintiliões",r),this.addRank(o,l,u,u.ref.toString().startsWith("1")?"quadrilião":"quadriliões",r),this.addRank(o,l,u,u.ref.toString().startsWith("1")?"trilião":"triliões",r),this.addRank(o,l,u,u.ref.toString().startsWith("1")?"bilião":"biliões",r),this.addRank(o,l,u,u.ref.toString().startsWith("1")?"milhão":"milhões",r),this.addRank(o,l,u,"mil",r),this.addRank(o,l,u,"",r),s=l.ref,t=u.ref,n=o.toString(),a&&(n="menos "+n)}return e&&(n=n.charAt(0).toUpper()+n.substr(1)),n},t.addRank=function(t,e,i,r,n){var o=e.ref,a=i.ref,s=a/o|0;if(s>0){var l=s/100|0,u=(s/10|0)%10,c=s%10;if(1==u&&(u=0,c=s%100),t.length>0&&(l>0?n&&u+c==0?t.append(" e "):t.append(" "):u+c>0&&t.append(" e ")),l>0){switch(l){case 1:u+c>0?t.append("cento"):t.append("cem");break;case 2:t.append("duzentos");break;case 3:t.append("trezentos");break;case 4:t.append("quatrocentos");break;case 5:t.append("quinhentos");break;case 6:t.append("seiscentos");break;case 7:t.append("setecentos");break;case 8:t.append("oitocentos");break;case 9:t.append("novecentos");break}u+c>0&&t.append(" e ")}u>0&&(this.addTens(t,u),r!=String.empty&&0==c&&t.append(" "),c>0&&t.append(" e ")),(n&&c>1||c>0&&r==String.empty)&&this.addUnits(t,c),0!=t.length&&" "!=t[t.length-1]&&t.append(" "),t.append(r),a%=o}o=Math.floor(o/1e3),e.ref=o,i.ref=a},t.addUnits=function(t,e){0!=e&&t.append(this.units[e-1])},t.addTens=function(t,e){0!=e&&t.append(this.tens[e-1])},t.decline=function(t,e,i,r){if(e){var n=r.split("/");return this.decline2(t,n[0],n[1])}var o=i.split("/");return this.decline2(t,o[0],o[1])},t.decline2=function(t,e,i){if(1==t%100)return e;return i},t.currToStr=function(t,e,i){var r="euro/euros",n="cêntimo/cêntimos",o=this.numToStr(t,e);if(0==t&&(o+=" "),o.endsWith(" ")||(o+=" "),o=String.stiFormat("{0}{1}",o,this.decline(t,!1,r,n)),i){o+=" e ";var a=0;a=StiOptions.Engine.useRoundForToCurrencyWordsFunctions?Math.round(100*(t-t)):100*(t-t),o+=String.stiFormat("{0}",this.numToStr(a,!1)),0==a&&(o+=" "),o+=String.stiFormat("{0}",this.decline(a,!0,r,n))}return o},t.dateToStr=function(t){return String.stiFormat("{0} de {1} de {2}",t.day,this.months[t.month-1],t.year)},t.units=["um","dois","três","quatro","cinco","seis","sete","oito","nove","dez","onze","doze","treze","catorze","quinze","dezasseis","dezassete","dezoito","dezanove"],t.tens=["dez","vinte","trinta","quarenta","cinquenta","sessenta","setenta","oitenta","noventa"],t.months=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],t}();e.Pt=r}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.numToStr=function(t){var e=[],i=["","","","",""],r=String.customFormat(t,"0000000000.00");e[1]=r.substr(1,3),e[2]=r.substr(4,3),e[3]=r.substr(7,3),e[4]="0"+r.substr(11,2);for(var n=1;n<=4;n++){var o=e[n],a=o.toNumber(),s=a<10?1:a<100?2:a<1e3?3:0;3==s&&(o.endsWith("00")?i[n]+=o.startsWith("1")?"CEM ":this.centena[o.substr(0,1).toNumber()]:(i[n]+=this.centena[o.substr(0,1).toNumber()]+"E ",s=2)),2==s&&(o.substr(1,2).toNumber()<20?i[n]+=this.unid[o.substr(1,2).toNumber()]:(i[n]+=this.dezena[o.substr(1,1).toNumber()],o.endsWith("0")||(i[n]+="E ",s=1))),1==s&&(i[n]+=this.unid[o.substr(2,1).toNumber()])}var l=String.empty;0==(e[1]+e[2]+e[3]).toNumber()&&0!=e[4].toNumber()?l=i[4]+(1==e[4].toNumber()?"CENTAVO":"CENTAVOS"):(l=0!=e[1].toNumber()?i[1]+(e[1].toNumber()>1?"MILHÕES ":"MILHÃO "):"",0==(e[2]+e[3]).toNumber()?l+="DE ":l+=0!=e[2].toNumber()?i[2]+"MIL ":"",l+=i[3]+(1==(e[1]+e[2]+e[3]).toNumber()?"REAL ":"REAIS "),l+=0!=e[4].toNumber()?"E "+i[4]+(1==e[4].toNumber()?"CENTAVO":"CENTAVOS"):"");var u=String.empty;return u=0==t?this.unid[0]:l.trim(),u.toLower()},t.unid=["ZERO ","UM ","DOIS ","TRÊS ","QUATRO ","CINCO ","SEIS ","SETE ","OITO ","NOVE ","DEZ ","ONZE ","DOZE ","TREZE ","CATORZE ","QUINZE ","DEZESSEIS ","DEZESSETE ","DEZOITO ","DEZENOVE "],t.dezena=["ZERO ","DEZ ","VINTE ","TRINTA ","QUARENTA ","CINQÜENTA ","SESSENTA ","SETENTA ","OITENTA ","NOVENTA "],t.centena=["ZERO ","CENTO ","DUZENTOS ","TREZENTOS ","QUATROCENTOS ","QUINHENTOS ","SEISCENTOS ","SETECENTOS ","OITOCENTOS ","NOVECENTOS "],t}();t.PtBr=e}(e=t.Func||(t.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=t.System.Collections.Hashtable,n=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["рубль","рубля","рублей"],e._cents=["копейка","копейки","копеек"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Feminine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),o=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["доллар","доллара","долларов"],e._cents=["цент","цента","центов"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),a=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["евро","евро","евро"],e._cents=["цент","цента","центов"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Neutral},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),s=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["гривна","гривны","гривен"],e._cents=["копейка","копейки","копеек"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Feminine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Feminine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),l=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["тенге","тенге","тенге"],e._cents=["тиын","тиына","тиынов"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Feminine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),u=function(){function t(){}return t.registerCurrency=function(t,e){this.currencies.set(e.toUpper(),t)},t.getCurrency=function(t){var e=this.currencies.get(t.toUpper());if(null==e)throw String.stiFormat("Currency '{0}' is not registered",t);return e},t.addUnits=function(t,e,i){0!=e&&(t.length>0&&t.append(" "),e<3?t.append(this.gendered[e-1][i]):t.append(this.units[e-1]))},t.addTens=function(t,e){0!=e&&(t.length>0&&t.append(" "),t.append(this.tens[e-1]))},t.addHundreds=function(t,e){0!=e&&(t.length>0&&t.append(" "),t.append(this.hundreds[e-1]))},t.addThousand=function(t,e,i){this.addHundreds(t,e/100|0),e%=100,e<20?this.addUnits(t,e,i):(this.addTens(t,e/10|0),this.addUnits(t,e%10,i))},t.addRank=function(t,e,i,r,n,o,a){var s=e.ref,l=i.ref,u=l/s|0;if(u>0){this.addThousand(t,u,a);var c=u%10,p=u%100,h=String.empty;h=p>=11&&p<20?o:1==c?r:c>1&&c<5?n:o,u>10&&u<20&&(h=o),t.length>0&&t.append(" "),t.append(h),l%=s}s=Math.floor(s/1e3),e.ref=s,i.ref=l},t.numToStr=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.Gender.Masculine),t=Math.floor(t);var o=new i;if(0==t)o.append("ноль");else{t<0&&(o.append("минус"),t=Math.abs(t));var a=1e18,s={ref:a},l={ref:t};this.addRank(o,s,l,"квинтильон","квинтильона","квинтильонов",e.Gender.Masculine),this.addRank(o,s,l,"квадрильон","квадрильона","квадрильонов",e.Gender.Masculine),this.addRank(o,s,l,"триллион","триллиона","триллионов",e.Gender.Masculine),this.addRank(o,s,l,"миллиард","миллиарда","миллиардов",e.Gender.Masculine),this.addRank(o,s,l,"миллион","миллиона","миллионов",e.Gender.Masculine),this.addRank(o,s,l,"тысяча","тысячи","тысяч",e.Gender.Feminine),a=s.ref,t=l.ref,this.addThousand(o,t,n)}var u=o.toString();return r&&(u=u.charAt(0).toUpper()+u.substr(1)),u},t.currToStr=function(t,e,i,r){void 0===e&&(e=!0),void 0===i&&(i="RUR"),void 0===r&&(r=!0);var n=Math.trunc(t),o=0;StiOptions.Engine.useRoundForToCurrencyWordsFunctions?(o=Math.round(100*(t-n)))>99&&(o=0,n++):o=100*(t-n);var a=String.stiFormat("{0} {1}",this.numToStr(n,e,this.getCurrency(i).gender),this.decline(n,i));return r&&(a+=String.stiFormat(" {0:d2}",o),a+=String.stiFormat(" {0}",this.decline(o,i,!0))),a},t.decline2=function(t,e,i,r){var n=t%100;if(n>=10&&n<20)return r;if(1==(n%=10))return e;if(n>1&&n<5)return i;return r},t.decline=function(t,e,i){void 0===i&&(i=!1);var r=this.getCurrency(e);return i?this.decline2(t,r.centOne,r.centTwo,r.centFive):this.decline2(t,r.dollarOne,r.dollarTwo,r.dollarFive)},t.dateToStr=function(t,e){void 0===e&&(e=!1);var i=String.stiFormat("{0} {1} {2}",t.day,this.months[t.month-1],t.year);return e&&(i=i[0].toUpper()+i.substr(1)),i},t.currencies=new r,t.months=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],t.units=["один","два","три","четыре","пять","шесть","семь","восемь","девять","десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],t.tens=["десять","двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],t.hundreds=["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],t.gendered=[["один","одна","одно"],["два","две","два"]],t}();e.Ru=u,u.registerCurrency(new a,"EUR"),u.registerCurrency(new o,"USD"),u.registerCurrency(new n,"RUR"),u.registerCurrency(new s,"UAH"),u.registerCurrency(new l,"KZT")}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Text.StringBuilder,r=t.System.Collections.Hashtable,n=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["рубль","рубля","рублів"],e._cents=["копійка","копійки","копійок"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Feminine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),o=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["долар","долара","доларів"],e._cents=["цент","цента","центів"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),a=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["євро","євро","євро"],e._cents=["цент","цента","центів"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Neutral},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Masculine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),s=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._dollars=["гривня","гривні","гривень"],e._cents=["копійка","копійки","копійок"],e}return __extends(i,t),Object.defineProperty(i.prototype,"gender",{get:function(){return e.Gender.Feminine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"centsGender",{get:function(){return e.Gender.Feminine},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dollars",{get:function(){return this._dollars},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cents",{get:function(){return this._cents},enumerable:!0,configurable:!0}),i}(e.Currency),l=function(){function t(){}return t.registerCurrency=function(t,e){this.currencies.set(e.toUpper(),t)},t.getCurrency=function(t){var e=this.currencies.get(t.toUpper());if(null==e)throw String.stiFormat("Currency '{0}' is not registered",t);return e},t.addUnits=function(t,e,i){0!=e&&(t.length>0&&t.append(" "),e<3?t.append(this.gendered[e-1][i]):t.append(this.units[e-1]))},t.addTens=function(t,e){0!=e&&(t.length>0&&t.append(" "),t.append(this.tens[e-1]))},t.addHundreds=function(t,e){0!=e&&(t.length>0&&t.append(" "),t.append(this.hundreds[e-1]))},t.addThousand=function(t,e,i){this.addHundreds(t,e/100|0),e%=100,e<20?this.addUnits(t,e,i):(this.addTens(t,e/10|0),this.addUnits(t,e%10,i))},t.addRank=function(t,e,i,r,n,o,a){var s=e.ref,l=i.ref,u=l/s|0;if(u>0){this.addThousand(t,u,a);var c=u%10,p=String.empty;p=1==c?r:c>1&&c<5?n:o,u>10&&u<20&&(p=o),t.length>0&&t.append(" "),t.append(p),l%=s}s=Math.floor(s/1e3),e.ref=s,i.ref=l},t.numToStr=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.Gender.Masculine),t=Math.floor(t);var o=new i;if(0==t)o.append("ноль");else{t<0&&(o.append("минус"),t=Math.abs(t));var a=1e18,s={ref:a},l={ref:t};this.addRank(o,s,l,"квінтильйон","квінтильйона","квінтильйонів",e.Gender.Masculine),this.addRank(o,s,l,"квадрильйон","квадрильйона","квадрильйонів",e.Gender.Masculine),this.addRank(o,s,l,"трильйон","трильйона","трильйонів",e.Gender.Masculine),this.addRank(o,s,l,"мільярд","мільярда","мільярдів",e.Gender.Masculine),this.addRank(o,s,l,"мільйон","мільйона","мільйонів",e.Gender.Masculine),this.addRank(o,s,l,"тисяча","тисячі","тисяч",e.Gender.Feminine),a=s.ref,t=l.ref,this.addThousand(o,t,n)}var u=o.toString();return r&&(u=u.charAt(0).toUpper()+u.substr(1)),u},t.currToStr=function(t,e,i,r){void 0===e&&(e=!0),void 0===i&&(i="UAH"),void 0===r&&(r=!0);var n=Math.trunc(t),o=0;StiOptions.Engine.useRoundForToCurrencyWordsFunctions?(o=Math.round(100*(t-n)))>99&&(o=0,n++):o=100*(t-n);var a=String.stiFormat("{0} {1}",this.numToStr(n,e,this.getCurrency(i).gender),this.decline(n,i));return r&&(a+=String.stiFormat(" {0:d2}",o),a+=String.stiFormat(" {0}",this.decline(o,i,!0))),a},t.decline2=function(t,e,i,r){var n=t%100;if(n>=10&&n<20)return r;if(1==(n%=10))return e;if(n>1&&n<5)return i;return r},t.decline=function(t,e,i){void 0===i&&(i=!1);var r=this.getCurrency(e);return i?this.decline2(t,r.centOne,r.centTwo,r.centFive):this.decline2(t,r.dollarOne,r.dollarTwo,r.dollarFive)},t.dateToStr=function(t,e){void 0===e&&(e=!1);var i=String.stiFormat("{0} {1} {2}",t.day,this.months[t.month-1],t.year);return e&&(i=i[0].toUpper()+i.substr(1)),i},t.currencies=new r,t.months=["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"],t.units=["один","два","три","чотири","п'ять","шість","сім","вісім","дев'ять","десять","одинадцять","дванадцять","тринадцять","чотирнадцять","п'ятнадцять","шістнадцять","сімнадцять","вісімнадцять","дев'ятнадцять"],t.tens=["десять","двадцять","тридцять","сорок","п'ятдесят","шістдесят","сімдесят","вісімдесят","дев'яносто"],t.hundreds=["сто","двісті","триста","чотириста","п'ятсот","шістсот","сімсот","вісімсот","дев'ятсот"],t.gendered=[["один","одна","одне"],["два","дві","два"]],t}();e.Ua=l,l.registerCurrency(new a,"EUR"),l.registerCurrency(new o,"USD"),l.registerCurrency(new n,"RUR"),l.registerCurrency(new s,"UAH")}(i=e.Func||(e.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.toWordsZh=function(t){if((t=Math.floor(t))<=0)return"你输入的数字格式不正确或不是数字!";var e=t.toString(),i=this.numberString(e);return i=i.replaceAll("零零","零")},t.toCurrencyWordsZh=function(t){if(t<=0)return"你输入的数字格式不正确或不是数字!";t=Math.round(t,2);var e,i=t.toString(),r=i.split(".");return 1==r.length?(e=this.numberString(r[0])+"元整",e=e.replaceAll("零零","零")):(e=this.numberString(r[0])+"元",e+=this.floatString(r[1]),e=e.replaceAll("零零","零")),e},t.floatString=function(t){var e;t.length>2&&(t=t.substr(0,2));var i=this.convertString(t);return 0!=i.indexOf("零")?(i=i.replaceAll("零",""),1==i.length?e=i.substr(0,1)+"角整":(e=i.substr(0,1)+"角",e+=i.substr(1,1)+"分")):e=i+"分",e},t.numberString=function(t){var e="";return t.length<=4?e=this.convert4(t):t.length>4&&t.length<=8?(e=this.convert4(t.substr(0,t.length-4))+"万",e+=this.convert4(t.substr(t.length-4,4))):t.length>8&&t.length<=12&&(e=this.convert4(t.substr(0,t.length-8))+"亿",""==this.convert4(t.substr(t.length-8,4))?""!=this.convert4(t.substr(t.length-4,4))?e+="零":e+="":e+=this.convert4(t.substr(t.length-8,4))+"万",e+=this.convert4(t.substr(t.length-4,4))),e},t.convert4=function(t){var e;if(1==t.length)e=this.convertString(t);else if(2==t.length)e=this.convertString(t),e=this.convert2(e);else if(3==t.length)e=this.convertString(t),e=this.convert3(e);else{e=this.convertString(t);var i=e.substr(0,4);if("零零零零"!=i)if("零零零"!=(i=e.substr(0,3)))if(e=e.replaceAll("零零零",""),1==e.length)e=e.substr(0,1)+"仟";else{var r=void 0;r="零"!=e.substr(0,1)&&"零"!=e.substr(0,2)?e.substr(0,1)+"仟":e.substr(0,1),e=r+this.convert3(e.substr(1,3))}else e=e.replaceAll("零零零","零");else e=e.replaceAll("零零零零","")}return e},t.convertString=function(t){for(var e=String.empty,i=0;i<t.length;i++)e+=this.numChineseCharacter[t.substr(i,1).toNumber()];return e},t.convert2=function(t){var e;if("零"!=t.substr(0,1)){var i=t.replaceAll("零","");1==i.length?e=i.substr(0,1)+"拾":(e=i.substr(0,1)+"拾",e+=i.substr(1,1))}else e=t;return e},t.convert3=function(t){var e;if("零零"!=t.substr(0,2))if(e=t.replaceAll("零零",""),1==e.length)e=e.substr(0,1)+"佰";else{var i=void 0;i="零"!=e.substr(0,1)?e.substr(0,1)+"佰":e.substr(0,1),e=i+this.convert2(e.substr(1,2))}else e=t.replaceAll("零零","零");return e},t.numChineseCharacter=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],t}();t.Zh=e}(e=t.Func||(t.Func={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){t.IStiGlobalizationManager="IStiGlobalizationManager"}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){t.IStiGlobalizationManagerList="IStiGlobalizationManagerList"}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){t.IStiGlobalizationProvider="IStiGlobalizationProvider"}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Dictionary.StiVariable,r=t.System.Collections.Hashtable,n=t.Base.StiJson,o=function(){function t(t){void 0===t&&(t="en"),this._cultureName="",this._items=new e.StiGlobalizationItemCollection,this._cultureName=t}return t.prototype.saveToJsonObject=function(t){var e=new n;if(e.addPropertyStringNullOfEmpty("CultureName",this.cultureName),this.items.count>0){for(var i=new n,r=0,o=0,a=this.items.list;o<a.length;o++){var s=a[o];i.addPropertyJObject(r.toString(),s.saveToJsonObject(t)),r++}e.addPropertyJObject("Items",i)}return e},t.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"CultureName":this._cultureName=n.value.toString();break;case"Items":for(var o=0,a=n.value.properties();o<a.length;o++){var s=a[o],l=new e.StiGlobalizationItem;l.loadFromJsonObject(s.value),this.items.add(l)}break}}},Object.defineProperty(t.prototype,"cultureName",{get:function(){return this._cultureName},set:function(t){this._cultureName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(t){this.items=t},enumerable:!0,configurable:!0}),t.prototype.getAllStringsForReport=function(t){for(var i=new r,n=t.getComponents(),o=0,a=n.list;o<a.length;o++){var s=a[o],l=s.sti_as(e.IStiGlobalizationProvider);if(null!=l)for(var u=l.getAllStrings(),c=0,p=u;c<p.length;c++){var h=p[c],g=String.stiFormat("{0}.{1}",s.name,h),m=l.getString(h);null!=m&&i.set(g,m)}}for(var d=0,S=t.dictionary.variables.list;d<S.length;d++){var f=S[d];i.set("Variable."+f.name,f.value)}return i.set("ReportAuthor",t.reportAuthor),i.set("ReportDescription",t.reportDescription),i.set("ReportAlias",t.reportAlias),i},t.prototype.localizeReport=function(t){for(var n=new r,o=0,a=t.dictionary.variables.list;o<a.length;o++){var s=a[o];n.set("Variable."+s.name,s)}for(var l=0,u=this.items.list;l<u.length;l++){var c=u[l],p=c.propertyName;if("ReportAuthor"==p)t.reportAuthor=c.text;else if("ReportDescription"==p)t.reportDescription=c.text;else if("ReportAlias"==p)t.reportAlias=c.text;else if(null!=n.get(p)&&n.get(p).sti_is(i)){var s=n.get(p);s.value=c.text}else{var h=p.indexOf(".");if(-1!=h){var g=p.substr(0,h),m=p.substr(h+1),d=t.getComponents().getByName(g).sti_as(e.IStiGlobalizationProvider);null!=d&&d.setString(m,c.text)}}}},t.prototype.fillItemsFromReport=function(t){for(var i=this.getAllStringsForReport(t),n=new r,o=0,a=this.items.list;o<a.length;o++){var s=a[o];n.set(s.propertyName,s)}for(var l=0,u=i.keys;l<u.length;l++){var c=u[l];if(null!=n.get(c))continue;this.items.add(new e.StiGlobalizationItem(c,i.get(c)))}},t.prototype.removeUnlocalizedItemsFromReport=function(t){for(var e=this.getAllStringsForReport(t),i=new r,n=0,o=this.items.list;n<o.length;n++){var a=o[n];i.set(a.propertyName,a)}for(var s=0,l=e.keys;s<l.length;s++){var u=l[s],c=e.get(u),a=i.get(u);c==a.text&&this.items.remove(a)}},t}();e.StiGlobalizationContainer=o}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Collections.CollectionBase,r=t.Base.StiJson,n=function(t){function i(e){var i=t.call(this)||this;return i.report=null,i.skipException=!1,i.report=e,i}return __extends(i,t),i.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new r,i=0,n=0,o=this.list;n<o.length;n++){var a=o[n];e.addPropertyJObject(i.toString(),a.saveToJsonObject(t)),i++}return e},i.prototype.loadFromJsonObject=function(t){for(var i=0,r=t.properties();i<r.length;i++){var n=r[i],o=new e.StiGlobalizationContainer;o.loadFromJsonObject(n.value),this.list.add(o)}},i.prototype.add=function(t){this.list.add(t)},i.prototype.addRange=function(t){this.list.addRange(t)},i.prototype.contains=function(t){return this.list.contains(t)},i.prototype.indexOf=function(t){return this.list.indexOf(t)},i.prototype.insert=function(t,e){this.list.insert(t,e)},i.prototype.remove=function(t){this.list.remove(t)},i.prototype.getByIndex=function(t){return this.list[t]},i.prototype.setByIndex=function(t,e){this.list[t]=e},i.prototype.getByName=function(t){t=t.toLower();for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.cultureName.toLower()==t)return r}return null},i.prototype.setByName=function(t,e){t=t.toLower();for(var i=0;i<this.list.count;i++){if(this.list[i].cultureName.toLower()==t)return void(this.list[i]=e)}this.add(e)},i.prototype.localizeReport=function(t){var e=this.getByName(t);if(null==e&&!this.skipException)throw String.stiFormat("Can't find globalized strings for culture {0}",t);null!=e&&e.localizeReport(this.report)},i.prototype.localizeReport2=function(t){var e=t.name,i=e.indexOf("-");i>-1&&(e=e.substr(0,i)),this.localizeReport(e)},i.prototype.fillItemsFromReport=function(){for(var t=0,e=this.list;t<e.length;t++){e[t].fillItemsFromReport(this.report)}},i.prototype.removeUnlocalizedItemsFromReport=function(){for(var t=0,e=this.list;t<e.length;t++){e[t].removeUnlocalizedItemsFromReport(this.report)}},i.prototype.removeComponent=function(t){var i=t.sti_as(e.IStiGlobalizationProvider);if(null!=i)for(var r=i.getAllStrings(),n=0,o=r;n<o.length;n++)for(var a=o[n],s=String.stiFormat("{0}.{1}",t.name,a),l=0,u=this.list;l<u.length;l++){var c=u[l],p=0;while(p<c.items.count){var h=c.items.getByIndex(p);h.propertyName==s?c.items.removeAt(p):p++}}},i.prototype.renameComponent=function(t,i,r){var n=t.sti_as(e.IStiGlobalizationProvider);if(null!=n)for(var o=n.getAllStrings(),a=0,s=o;a<s.length;a++)for(var l=s[a],u=String.stiFormat("{0}.{1}",i,l),c=String.stiFormat("{0}.{1}",r,l),p=0,h=this.list;p<h.length;p++)for(var g=h[p],m=0,d=g.items.list;m<d.length;m++){var S=d[m];S.propertyName==u&&(S.propertyName=c)}},i}(i);e.StiGlobalizationContainerCollection=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Base.StiJson,r=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=""),this._propertyName="",this._text="",this._propertyName=t,this._text=e}return t.prototype.saveToJsonObject=function(t){var e=new i;return e.addPropertyStringNullOfEmpty("PropertyName",this.propertyName),e.addPropertyStringNullOfEmpty("Text",this.text),e},t.prototype.loadFromJsonObject=function(t){for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"PropertyName":this._propertyName=r.value.toString();break;case"Text":this._text=r.value.toString();break}}},Object.defineProperty(t.prototype,"propertyName",{get:function(){return this._propertyName},set:function(t){this._propertyName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.propertyName},t}();e.StiGlobalizationItem=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Collections.CollectionBase,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.compare=function(t,e){return t.propertyName.compareTo(e.propertyName)},e.prototype.add=function(t){this.list.add(t)},e.prototype.addRange=function(t){this.list.addRange(t)},e.prototype.contains=function(t){return this.list.contains(t)},e.prototype.indexOf=function(t){return this.list.indexOf(t)},e.prototype.insert=function(t,e){this.list.insert(t,e)},e.prototype.remove=function(t){this.list.remove(t)},e.prototype.getByIndex=function(t){return this.list[t]},e.prototype.setByIndex=function(t,e){this.list[t]=e},e.prototype.sort=function(){this.list.sort2(this)},e}(i);e.StiGlobalizationItemCollection=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e=function(){function e(){}return e.getContent=function(t){var e=this.getNetContent(t),i=parseInt(e,16);return String.fromCharCode(i)},e.getNetContent=function(e){switch(e){case t.StiFontIcons.ArrowDown:return"e900";case t.StiFontIcons.ArrowRight:return"e901";case t.StiFontIcons.ArrowRightDown:return"e902";case t.StiFontIcons.ArrowRightUp:return"e903";case t.StiFontIcons.ArrowUp:return"e904";case t.StiFontIcons.Check:return"e905";case t.StiFontIcons.Circle:return"e906";case t.StiFontIcons.CircleCheck:return"e907";case t.StiFontIcons.CircleCross:return"e908";case t.StiFontIcons.CircleExclamation:return"e909";case t.StiFontIcons.Cross:return"e90a";case t.StiFontIcons.Exclamation:return"e90b";case t.StiFontIcons.Flag:return"e90c";case t.StiFontIcons.Latin1:return"e90d";case t.StiFontIcons.Latin2:return"e90e";case t.StiFontIcons.Latin3:return"e90f";case t.StiFontIcons.Latin4:return"e910";case t.StiFontIcons.Minus:return"e911";case t.StiFontIcons.QuarterFull:return"e912";case t.StiFontIcons.QuarterHalf:return"e913";case t.StiFontIcons.QuarterNone:return"e914";case t.StiFontIcons.QuarterQuarter:return"e915";case t.StiFontIcons.QuarterThreeFourth:return"e916";case t.StiFontIcons.Rating0:return"e917";case t.StiFontIcons.Rating1:return"e918";case t.StiFontIcons.Rating2:return"e919";case t.StiFontIcons.Rating3:return"e91a";case t.StiFontIcons.Rating4:return"e91b";case t.StiFontIcons.Rhomb:return"e91c";case t.StiFontIcons.Square0:return"e91d";case t.StiFontIcons.Square1:return"e91e";case t.StiFontIcons.Square2:return"e91f";case t.StiFontIcons.Square3:return"e920";case t.StiFontIcons.Square4:return"e921";case t.StiFontIcons.StarFull:return"e922";case t.StiFontIcons.StarHalf:return"e923";case t.StiFontIcons.StarNone:return"e924";case t.StiFontIcons.StarQuarter:return"e925";case t.StiFontIcons.StarThreeFourth:return"e926";case t.StiFontIcons.Triangle:return"e927";case t.StiFontIcons.TriangleDown:return"e928";case t.StiFontIcons.TriangleUp:return"e929";case t.StiFontIcons.Home:return"e92a";case t.StiFontIcons.Cart:return"e93a";case t.StiFontIcons.Phone:return"e942";case t.StiFontIcons.UserTie:return"e976";case t.StiFontIcons.Mobile:return"e958";case t.StiFontIcons.Mug:return"e9a2";case t.StiFontIcons.Airplane:return"e9af";case t.StiFontIcons.Truck:return"e9b0";case t.StiFontIcons.Earth:return"e9ca";case t.StiFontIcons.Man:return"e9dc";case t.StiFontIcons.Woman:return"e9dd";case t.StiFontIcons.ManWoman:return"e9de";case t.StiFontIcons.Appleinc:return"eabe";case t.StiFontIcons.Android:return"eac0";case t.StiFontIcons.Windows8:return"eac2"}return null},e}();t.StiFontIconsHelper=e}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.getTransparentedImage=function(t,e){return null},t}();t.StiImageTransparenceHelper=e}(e=t.Helpers||(t.Helpers={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Data.DataSet,r=t.Report.Dictionary.StiResourceType,n=t.System.Enum,o=t.Report.Dictionary.StiExcelDatabase,a=function(){function t(){}return t.get=function(t,e){switch(t){case r.Excel:var a=new i;if(null!=e)try{for(var s=new Uint8Array(e),l=new Array,u=0;u!=s.length;++u)l[u]=String.fromCharCode(s[u]);var c=l.join(""),p=XLSX.read(c,{type:"binary",cellDates:!0});a=(new o).getDataSetPrivate(p)}catch(t){}return a;case r.Xml:var a=new i;if(null!=e)try{a.readXml(e)}catch(t){}return a;case r.Json:var a=new i;if(null!=e)try{a.readJson(e)}catch(t){}return a;default:throw String.stiFormat("'{0}' resource type is not supported!",n.getName(r,t))}},t}();e.StiResourceArrayToDataSet=a}(i=e.Helpers||(e.Helpers={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiCustomValueBase="IStiCustomValueBase"}(e=t.Gauge||(t.Gauge={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiGauge="IStiGauge"}(e=t.Gauge||(t.Gauge={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiGaugeElement="IStiGaugeElement"}(e=t.Gauge||(t.Gauge={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiGaugeStyleXF="IStiGaugeStyleXF"}(e=t.Gauge||(t.Gauge={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiIndicatorRangeInfo="IStiIndicatorRangeInfo"}(e=t.Gauge||(t.Gauge={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiRangeBase="IStiRangeBase"}(e=t.Gauge||(t.Gauge={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t.IStiScaleBase="IStiScaleBase"}(e=t.Gauge||(t.Gauge={}))}(e=t.Components||(t.Components={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t){this._color=null,this.key=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this.invokeValueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"group",{get:function(){return this._group},set:function(t){this._group!=t&&(this._group=t,this.invokeValueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){this._color!=t&&(this._color=t,this.invokeValueChanged())},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return String.stiFormat("{0}, {1}",this.key,this.group)},t.prototype.invokeValueChanged=function(){},t}();t.StiMapData=e}(e=t.Maps||(t.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=t.Base.Maps.Geoms.StiMapGeomsContainer,n=t.Base.Maps.Geoms.StiMapGeomsObject,o=t.Base.Maps.Geoms.StiMoveToMapGeom,a=t.Base.Maps.Geoms.StiLineMapGeom,s=t.Base.Maps.Geoms.StiBezierMapGeom,l=t.Base.Maps.Geoms.StiBeziersMapGeom,u=t.Base.Maps.Geoms.StiCloseMapGeom,c=t.Base.StiGZipHelper,p;!function(t){t[t.None=1]="None",t[t.MoveTo=2]="MoveTo",t[t.Line_L=3]="Line_L",t[t.Line_l=4]="Line_l",t[t.Bezier_C=5]="Bezier_C",t[t.Bezier_c=6]="Bezier_c",t[t.Beziers_S=7]="Beziers_S",t[t.Beziers_s=8]="Beziers_s",t[t.VerticalLineto_V=9]="VerticalLineto_V",t[t.VerticalLineto_v=10]="VerticalLineto_v",t[t.HorizontalLineto_H=11]="HorizontalLineto_H",t[t.HorizontalLineto_h=12]="HorizontalLineto_h",t[t.Close=13]="Close"}(p||(p={}));var h=function(){function h(){}return h.loadResource=function(r){null==h.hashMaps&&(h.hashMaps=new i);var n=String.stiFormat("Stimulsoft.Report.Infographics.Maps.Resources.{0}.json",r);if(!h.hashMaps.containsKey(n)){var o=c.unpack(t.Report.Maps["StiMapResources"+r][r]),a=JSON.parse(o),s=new e.StiMapSvgContainer;s.name=a.Name,s.width=a.Width,s.height=a.Height;for(var l=0,u=a.Paths;l<u.length;l++){var p=u[l],g=new e.StiMapSvg;g.data=p.Data,g.key=p.Key,s.paths.push(g)}return s.prepare(),h.hashMaps.add(n,s),s}return h.hashMaps.get(n)},h.getGeomsObject=function(t){var e=h.loadResource(t),i=new r;i.width=e.width,i.height=e.height,i.name=e.name;for(var o=0,a=e.hashSvg.keys;o<a.length;o++){var s=a[o],l=e.hashSvg.get(s),u=new n;u.name=s,u.geoms=h.parsePath(l),i.geoms.add(u)}return i},h.createGeom=function(t,e,i,r,n){switch(t){case p.MoveTo:if(2!=e.count)throw"";var c=new o;c.x=Math.round(e[0],3),c.y=Math.round(e[1],3),n.add(c);break;case p.Line_L:if(2!=e.count)throw"";var c=new a;c.x=Math.round(e[0],3),c.y=Math.round(e[1],3),n.add(c);break;case p.Line_l:if(2!=e.count)throw"";var h=n[n.count-1].getLastPoint(),c=new a;c.x=Math.round(h.x+e[0],3),c.y=Math.round(h.y+e[1],3),n.add(c);break;case p.Bezier_C:if(6!=e.count)throw"";var c=new s;c.x1=Math.round(e[0],3),c.y1=Math.round(e[1],3),c.x2=Math.round(e[2],3),c.y2=Math.round(e[3],3),c.x3=Math.round(e[4],3),c.y3=Math.round(e[5],3),n.add(c);break;case p.Bezier_c:if(6!=e.count)throw"";var h=n[n.count-1].getLastPoint(),c=new s;c.x1=Math.round(h.x+e[0],3),c.y1=Math.round(h.y+e[1],3),c.x2=Math.round(h.x+e[2],3),c.y2=Math.round(h.y+e[3],3),c.x3=Math.round(h.x+e[4],3),c.y3=Math.round(h.y+e[5],3),n.add(c);break;case p.VerticalLineto_V:if(1!=e.count)throw"";var g=n[n.count-1].getLastPoint(),c=new a;c.x=Math.round(g.x,3),c.y=Math.round(e[0],3),n.add(c);break;case p.VerticalLineto_v:if(1!=e.count)throw"";var m=n[n.count-1].getLastPoint(),c=new a;c.x=Math.round(m.x,3),c.y=Math.round(m.y+e[0],3),n.add(c);break;case p.HorizontalLineto_H:if(1!=e.count)throw"";var d=n[n.count-1].getLastPoint(),c=new a;c.x=Math.round(e[0],3),c.y=Math.round(d.y,3),n.add(c);break;case p.HorizontalLineto_h:if(1!=e.count)throw"";var S=n[n.count-1].getLastPoint(),c=new a;c.x=Math.round(S.x+e[0],3),c.y=Math.round(S.y,3),n.add(c);break;case p.Beziers_S:if(e.count<6)throw"";for(var f=[],y=0,b=e;y<b.length;y++){var C=b[y];f.add(Math.round(C,3))}var c=new l;c.array=f.toArray(),n.add(c);break;case p.Beziers_s:if(e.count<6)throw"";var v=n[n.count-1].getLastPoint();v.x+=e[4],v.y+=e[5];for(var I=!0,f=[],A=0,w=e;A<w.length;A++){var C=w[A],T=I?C+v.x:C+v.y;f.add(Math.round(T,3)),I=!I}var c=new l;c.array=f.toArray(),n.add(c),f.clear(),f=null;break;case p.Close:if(0!=e.count)throw"";n.add(new u);break}e.clear()},h.parsePath=function(t){try{var e=[],i=0,r=0,n=p.None,o=0,a=[],s=0,l=0,u=t.length;while(l<u){switch(t[l]){case"M":case"m":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&(this.createGeom(n,a,i,l,e),r=0),n=p.MoveTo,i=l+1,o=i;break;case"C":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.Bezier_C,i=l+1,o=i;break;case"c":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.Bezier_c,i=l+1,o=i;break;case"S":a.add(t.substr(o,l-o).toNumber()),n=p.Beziers_S,i=l+1,o=i;break;case"s":a.add(t.substr(o,l-o).toNumber()),n=p.Beziers_s,i=l+1,o=i;break;case"L":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.Line_L,i=l+1,o=i;break;case"l":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.Line_l,i=l+1,o=i;break;case"Z":case"z":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.Close,i=l+1,o=i;break;case"V":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.VerticalLineto_V,i=l+1,o=i;break;case"v":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.VerticalLineto_v,i=l+1,o=i;break;case"H":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.HorizontalLineto_H,i=l+1,o=i;break;case"h":a.add(t.substr(o,l-o).toNumber()),n!=p.None&&this.createGeom(n,a,i,l,e),n=p.HorizontalLineto_h,i=l+1,o=i;break;case"-":r++,a.add(t.substr(o,l-o).toNumber()),o=l;break;case",":case" ":r++,a.add(t.substr(o,l-o).toNumber()),o=l+1;break;case"Q":case"q":case"T":case"t":case"A":case"a":throw""}l++}return a.add(t.substr(o,l-o).toNumber()),n!=p.None&&a.count>1&&this.createGeom(n,a,i,l,e),e}finally{}},h}();e.StiMapLoader=h}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t.prototype.toString=function(){return this.key},t}();t.StiMapSvg=e}(e=t.Maps||(t.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(){this.paths=[]}return t.prototype.prepare=function(){if(null==this.paths)return;this.hashSvg=new i;for(var t=0,e=this.paths;t<e.length;t++){var r=e[t];this.hashSvg.add(r.key,r.data)}this.paths.clear(),this.paths=null},t}();e.StiMapSvgContainer=r}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Styles.StiMapStyle,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"localizeName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleId",{get:function(){return null},enumerable:!0,configurable:!0}),e}(i);e.StiMapStyleFX=r}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Drawing.ColorTranslator,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"styleId",{get:function(){return e.StiMapStyleIdent.Style21},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"localizeName",{get:function(){return i.get("Chart","Style")+21},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colors",{get:function(){return[r.fromHtml("#239fd9"),r.fromHtml("#b2b2b2"),r.fromHtml("#55d1ff"),r.fromHtml("#e4e4e4"),r.fromHtml("#55d1ff"),r.fromHtml("#e4e4e4")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"heatmapColors",{get:function(){return[r.fromHtml("#239fd9"),r.fromHtml("#b2b2b2")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backColor",{get:function(){return r.fromHtml("#666666")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"foreColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),n}(e.StiMapStyleFX);e.StiMap21StyleFX=n}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Drawing.ColorTranslator,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"styleId",{get:function(){return e.StiMapStyleIdent.Style24},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"localizeName",{get:function(){return i.get("Chart","Style")+24},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colors",{get:function(){return[r.fromHtml("#ed7d31"),r.fromHtml("#ffc000"),r.fromHtml("#70ad47"),r.fromHtml("#9e480e"),r.fromHtml("#997300"),r.fromHtml("#43682b")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"heatmapColors",{get:function(){return[r.fromHtml("#ed7d31"),r.fromHtml("#70ad47")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultColor",{get:function(){return r.fromHtml("#ed7d31")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"foreColor",{get:function(){return r.fromHtml("#000000")},set:function(t){},enumerable:!0,configurable:!0}),n}(e.StiMapStyleFX);e.StiMap24StyleFX=n}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Drawing.ColorTranslator,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"styleId",{get:function(){return e.StiMapStyleIdent.Style25},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"localizeName",{get:function(){return i.get("Chart","Style")+25},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colors",{get:function(){return[r.fromHtml("#70ad47"),r.fromHtml("#4472c4"),r.fromHtml("#ffc000"),r.fromHtml("#43682b"),r.fromHtml("#fd6a37"),r.fromHtml("#997300")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"heatmapColors",{get:function(){return[r.fromHtml("#70ad47"),r.fromHtml("#ffc000")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultColor",{get:function(){return r.fromHtml("#70ad47")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"foreColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),n}(e.StiMapStyleFX);e.StiMap25StyleFX=n}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Drawing.ColorTranslator,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"styleId",{get:function(){return e.StiMapStyleIdent.Style26},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"localizeName",{get:function(){return i.get("Chart","Style")+26},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colors",{get:function(){return[r.fromHtml("#2ec6c8"),r.fromHtml("#b5a1dd"),r.fromHtml("#5ab0ee"),r.fromHtml("#f4984e"),r.fromHtml("#d77a80"),r.fromHtml("#d04456")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"heatmapColors",{get:function(){return[r.fromHtml("#2ec6c8"),r.fromHtml("#f4984e")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultColor",{get:function(){return r.fromHtml("#5ab0ee")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"foreColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),n}(e.StiMapStyleFX);e.StiMap26StyleFX=n}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Localization.StiLocalization,r=t.System.Drawing.ColorTranslator,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),Object.defineProperty(n.prototype,"styleId",{get:function(){return e.StiMapStyleIdent.Style27},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"localizeName",{get:function(){return i.get("Chart","Style")+27},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colors",{get:function(){return[r.fromHtml("#0bac45"),r.fromHtml("#585257"),r.fromHtml("#ec334d"),r.fromHtml("#a1ae94"),r.fromHtml("#ed7d31"),r.fromHtml("#5ab0ee")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"heatmapColors",{get:function(){return[r.fromHtml("#0bac45"),r.fromHtml("#ec334d")]},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backColor",{get:function(){return r.fromHtml("#33475B")},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"foreColor",{get:function(){return r.fromHtml("#ffffff")},set:function(t){},enumerable:!0,configurable:!0}),n}(e.StiMapStyleFX);e.StiMap27StyleFX=n}(i=e.Maps||(e.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.World=1]="World",t[t.Australia=2]="Australia",t[t.Austria=3]="Austria",t[t.Brazil=4]="Brazil",t[t.Canada=5]="Canada",t[t.China=6]="China",t[t.EU=7]="EU",t[t.Europe=8]="Europe",t[t.France=9]="France",t[t.Germany=10]="Germany",t[t.Italy=11]="Italy",t[t.Netherlands=12]="Netherlands",t[t.Russia=13]="Russia",t[t.UK=14]="UK",t[t.USA=15]="USA"}(e=t.StiMapID||(t.StiMapID={}));var i;!function(t){t[t.Style21=0]="Style21",t[t.Style24=1]="Style24",t[t.Style25=2]="Style25",t[t.Style26=3]="Style26",t[t.Style27=4]="Style27"}(i=t.StiMapStyleIdent||(t.StiMapStyleIdent={}));var r;!function(t){t[t.None=0]="None",t[t.Group=1]="Group",t[t.Heatmap=2]="Heatmap",t[t.HeatmapWithGroup=3]="HeatmapWithGroup"}(r=t.StiMapType||(t.StiMapType={}))}(e=t.Maps||(t.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(e){var i=function(){function i(){}return i.getMapSample=function(){return null==i.globalReport&&(i.globalReport=new t.StiReport),null==i.globalMap&&(i.globalMap=new e.StiMap,i.globalMap.mapData='[{"Key":"Alabama","Group":"3"},{"Key":"Alaska","Group":"1"},{"Key":"Arizona","Group":"1"},{"Key":"Arkansas","Group":"2"},{"Key":"California","Group":"1"},{"Key":"Colorado","Group":"1"},{"Key":"Connecticut","Group":"3"},{"Key":"Delaware","Group":"3"},{"Key":"Florida","Group":"3"},{"Key":"Georgia","Group":"3"},{"Key":"Hawaii","Group":"2"},{"Key":"Idaho","Group":"1"},{"Key":"Illinois","Group":"3"},{"Key":"Indiana","Group":"3"},{"Key":"Iowa","Group":"2"},{"Key":"Kansas","Group":"2"},{"Key":"Kentucky","Group":"3"},{"Key":"Louisiana","Group":"2"},{"Key":"Maine","Group":"3"},{"Key":"Maryland","Group":"3"},{"Key":"Massachusetts","Group":"3"},{"Key":"Michigan","Group":"3"},{"Key":"Minnesota","Group":"2"},{"Key":"Mississippi","Group":"3"},{"Key":"Missouri","Group":"2"},{"Key":"Montana","Group":"1"},{"Key":"Nebraska","Group":"2"},{"Key":"Nevada","Group":"1"},{"Key":"NewHampshire","Group":"3"},{"Key":"NewJersey","Group":"3"},{"Key":"NewMexico","Group":"1"},{"Key":"NewYork","Group":"3"},{"Key":"NorthCarolina","Group":"3"},{"Key":"NorthDakota","Group":"2"},{"Key":"Ohio","Group":"3"},{"Key":"Oklahoma","Group":"2"},{"Key":"Oregon","Group":"1"},{"Key":"Pennsylvania","Group":"3"},{"Key":"RhodeIsland","Group":"3"},{"Key":"SouthCarolina","Group":"3"},{"Key":"SouthDakota","Group":"2"},{"Key":"Tennessee","Group":"3"},{"Key":"Texas","Group":"2"},{"Key":"Utah","Group":"1"},{"Key":"Vermont","Group":"3"},{"Key":"Virginia","Group":"3"},{"Key":"Washington","Group":"1"},{"Key":"WestVirginia","Group":"3"},{"Key":"Wisconsin","Group":"3"},{"Key":"Wyoming","Group":"1"}]',i.globalReport.pages.getByIndex(0).components.add(i.globalMap)),i.globalMap.stretch=!0,i.globalMap.mapType=e.StiMapType.Group,i.globalMap.showLegend=!1,i.globalMap.mapID=e.StiMapID.USA,i.globalMap.showValue=!1,i.globalMap.stretch=!0,i.globalMap},i}();e.StiMapHelper=i}(e=t.Maps||(t.Maps={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Collections.Hashtable,r=function(){function r(){}return r.getPainter=function(i){var r=this.typePainter.get(i);return null==r&&(i===t.Report.Components.StiImage||i.prototype instanceof t.Report.Components.StiImage?r=new e.StiImagePainter:i===t.Report.Components.StiPage||i.prototype instanceof t.Report.Components.StiPage?r=new e.StiPagePainter:i===t.Report.Components.StiText||i.prototype instanceof t.Report.Components.StiText?r=new e.StiTextPainter:i===t.Report.Components.StiView||i.prototype instanceof t.Report.Components.StiView?r=new e.StiViewPainter:i===t.Report.Components.StiContainer||i.prototype instanceof t.Report.Components.StiContainer?r=new e.StiContainerPainter:(i===t.Report.Components.StiComponent||i.prototype instanceof t.Report.Components.StiComponent)&&(r=new e.StiComponentPainter),this.typePainter.set(i,r)),r},r.prototype.getImage=function(t,e,i){return null},r.prototype.paint=function(t,e){},r.typePainter=new i,r}();e.StiPainter=r}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.IStiBorder,r=t.System.Drawing.Color,n=t.Base.Drawing.StiPenStyle,o=t.Report.Components.IStiBrush,a=t.Base.Drawing.StiBrush,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.paintBorder=function(t,e,s,l,u,c){var p=t.sti_as(i);if(null!=p&&null!=p.border)if(p.border.style==n.Double){var h=r.white,g=t.sti_as(o);null!=g&&null!=g.brush&&(h=a.toColor(g.brush)),h.stiEquals(r.transparent)&&(h=r.white),p.border.draw(e,s,l,h,u,c)}else p.border.draw(e,s,l,r.white,u,c)},e}(e.StiPainter);e.StiComponentPainter=s}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiPrimitive,r=t.Report.Components.StiBand,n=t.Base.Drawing.StiDrawing,o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.paintComponents=function(t,e){for(var n=0,o=t.components.list;n<o.length;n++){var a=o[n];if(a.sti_is(i))continue;if(a.sti_is(r))continue;a.paint(e)}},e.prototype.paint=function(e,i){var r=e,o=e.getPaintRectangle();o.width>0&&o.height>0&&(n.fillRectangle(i,r.brush,o),t.prototype.paintBorder.call(this,r,i,o,r.page.zoom,!0,!0)),this.paintComponents(r,i)},e}(e.StiComponentPainter);e.StiContainerPainter=o}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Image,r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.getImage=function(e,r,n){var o=e.sti_as(t.Report.Components.StiView),a=null;return null!=o.imageToDraw?(a=new i,a.base64=o.imageToDraw.base64):o.sti_is(t.Report.Components.StiImage)&&!String.isNullOrEmpty(o.imageURLValue)&&(a=new i),null!=a&&(a.horAlignment=o.horAlignment,a.vertAlignment=o.vertAlignment,a.aspectRatio=o.aspectRatio,a.multipleFactor=o.multipleFactor,a.stretch=o.stretch,a.zoom=r.ref,o.sti_is(t.Report.Components.StiImage)&&(a.imageRotation=o.imageRotation,a.margins=o.margins,a.url=o.imageURLValue)),a},r}(e.StiComponentPainter);e.StiViewPainter=r}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Report.Components.StiImageRotation,r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.getImage=function(r,n,o){var a=r.sti_as(t.Report.Components.StiImage),s=null;null!=a.imageToDraw&&(a.imageRotation,i.None);try{return e.prototype.getImage.call(this,r,n,o)}finally{null!=a.imageToDraw&&a.imageRotation!=i.None&&(a.imageToDraw=s)}},r}(e.StiViewPainter);e.StiImagePainter=r}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiSolidBrush,r=t.System.Drawing.Color,n=t.System.Drawing.Brushes,o=t.Base.Drawing.StiDrawing,a=t.System.Drawing.Rectangle,s=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return __extends(s,t),s.prototype.implements=function(){return[e.IStiPagePainter]},s.prototype.paint=function(e,s){var l=e;if(null==l.report)return;var u=l.unit,c=l.zoom,p=u.convertToHInches(l.margins.left),h=u.convertToHInches(l.margins.top),g=u.convertToHInches(l.margins.right),m=u.convertToHInches(l.margins.bottom),d=u.convertToHInches(l.displayRectangle.width),S=u.convertToHInches(l.displayRectangle.height),f=u.convertToHInches(l.width),y=u.convertToHInches(l.height);l.brush.sti_is(i)&&l.brush.color.stiEquals(r.transparent)?o.fillRectangle(s,n.white,0,0,d*l.zoom,S*l.zoom):o.fillRectangle(s,l.brush,0,0,d*l.zoom,S*l.zoom),s.translateTransform(Math.trunc(p*l.zoom),Math.trunc(h*l.zoom)),t.prototype.paintComponents.call(this,l,s),this.paintBorder(l,s,new a(0,0,f*c,y*c),l.zoom,!0,!0)},s}(e.StiContainerPainter);e.StiPagePainter=s}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiDrawing,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.paintText=function(t,e,i){var r=t.getTextForPaint();if(!String.isNullOrEmpty(r)){var n=t.font.size*t.page.zoom;e.drawString(r,t.font,null,i.x,i.y)}},e.prototype.paintBackground=function(t,e,r){i.fillRectangle(e,t.brush,r)},e.prototype.paintBorder=function(e,i,r,n,o,a){var s=e;t.prototype.paintBorder.call(this,s,i,r,s.page.zoom,o,a)},e.prototype.paint=function(t,e){var i=t,r=t.getPaintRectangle();this.paintBackground(i,e,r),this.paintText(i,e,r);var n=r.clone();this.paintBorder(i,e,n,i.page.zoom,!0,!0)},e}(e.StiComponentPainter);e.StiTextPainter=r}(i=e.Painters||(e.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiBarCodePainter="IStiBarCodePainter"}(e=t.Painters||(t.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){t.IStiPagePainter="IStiPagePainter"}(e=t.Painters||(t.Painters={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(){}return t}();t.StiStyleConditionElement=e}(e=t.Elements||(t.Elements={}))}(e=t.Conditions||(t.Conditions={}))}(e=t.Styles||(t.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(e){var i;!function(e){var i=function(e){function i(i,r){void 0===r&&(r=t.StiStyleConditionOperation.EqualTo);var n=e.call(this)||this;return n._operationComponentName=t.StiStyleConditionOperation.EqualTo,n._componentName="",n._componentName=i,n._operationComponentName=r,n}return __extends(i,e),Object.defineProperty(i.prototype,"operationComponentName",{get:function(){return this._operationComponentName},set:function(t){this._operationComponentName=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"componentName",{get:function(){return this._componentName},set:function(t){this._componentName=t},enumerable:!0,configurable:!0}),i}(e.StiStyleConditionElement);e.StiStyleConditionComponentNameElement=i}(i=e.Elements||(e.Elements={}))}(e=t.Conditions||(t.Conditions={}))}(e=t.Styles||(t.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(e){var i;!function(e){var i=function(e){function i(i,r){void 0===r&&(r=t.StiStyleConditionOperation.EqualTo);var n=e.call(this)||this;return n._componentType=t.StiStyleComponentType.Text,n._operationComponentType=t.StiStyleConditionOperation.EqualTo,n._componentType=i,n._operationComponentType=r,n}return __extends(i,e),Object.defineProperty(i.prototype,"componentType",{get:function(){return this._componentType},set:function(t){this._componentType=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"operationComponentType",{get:function(){return this._operationComponentType},set:function(t){this._operationComponentType=t},enumerable:!0,configurable:!0}),i}(e.StiStyleConditionElement);e.StiStyleConditionComponentTypeElement=i}(i=e.Elements||(e.Elements={}))}(e=t.Conditions||(t.Conditions={}))}(e=t.Styles||(t.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(e){var i;!function(e){var i=function(e){function i(i,r){void 0===r&&(r=t.StiStyleConditionOperation.EqualTo);var n=e.call(this)||this;return n._operationLocation=t.StiStyleConditionOperation.EqualTo,n._location=t.StiStyleLocation.None,n._location=i,n._operationLocation=r,n}return __extends(i,e),Object.defineProperty(i.prototype,"operationLocation",{get:function(){return this._operationLocation},set:function(t){this._operationLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"location",{get:function(){return this._location},set:function(t){this._location=t},enumerable:!0,configurable:!0}),i}(e.StiStyleConditionElement);e.StiStyleConditionLocationElement=i}(i=e.Elements||(e.Elements={}))}(e=t.Conditions||(t.Conditions={}))}(e=t.Styles||(t.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(e){var i;!function(e){var i=function(e){function i(i,r){void 0===r&&(r=t.StiStyleConditionOperation.EqualTo);var n=e.call(this)||this;return n._placement=t.StiStyleComponentPlacement.None,n._operationPlacement=t.StiStyleConditionOperation.EqualTo,n._placement=i,n._operationPlacement=r,n}return __extends(i,e),Object.defineProperty(i.prototype,"placement",{get:function(){return this._placement},set:function(t){this._placement=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"operationPlacement",{get:function(){return this._operationPlacement},set:function(t){this._operationPlacement=t},enumerable:!0,configurable:!0}),i}(e.StiStyleConditionElement);e.StiStyleConditionPlacementElement=i}(i=e.Elements||(e.Elements={}))}(e=t.Conditions||(t.Conditions={}))}(e=t.Styles||(t.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e;!function(t){var e;!function(e){var i;!function(e){var i=function(e){function i(i,r){void 0===r&&(r=t.StiStyleConditionOperation.EqualTo);var n=e.call(this)||this;return n._placementNestedLevel=1,n._operationPlacementNestedLevel=t.StiStyleConditionOperation.EqualTo,n._placementNestedLevel=i,n._operationPlacementNestedLevel=r,n}return __extends(i,e),Object.defineProperty(i.prototype,"placementNestedLevel",{get:function(){return this._placementNestedLevel},set:function(t){this._placementNestedLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"operationPlacementNestedLevel",{get:function(){return this._operationPlacementNestedLevel},set:function(t){this._operationPlacementNestedLevel=t},enumerable:!0,configurable:!0}),i}(e.StiStyleConditionElement);e.StiStyleConditionPlacementNestedLevelElement=i}(i=e.Elements||(e.Elements={}))}(e=t.Conditions||(t.Conditions={}))}(e=t.Styles||(t.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i;!function(i){var r=t.System.Enum,n=t.System.ICloneable,o=t.Report.Styles.Conditions.Elements.StiStyleConditionComponentNameElement,a=t.Report.Styles.Conditions.Elements.StiStyleConditionComponentTypeElement,s=t.Report.Styles.Conditions.Elements.StiStyleConditionLocationElement,l=t.Report.Styles.Conditions.Elements.StiStyleConditionPlacementElement,u=t.Report.Styles.Conditions.Elements.StiStyleConditionPlacementNestedLevelElement,c=t.Base.JsonReportObject.IStiJsonReportObject,p=t.Base.StiJson,h=function(){function t(t,i,r,n,o,a,s,l,u,c,p){this._type=e.StiStyleConditionType.Placement,this._operationPlacement=e.StiStyleConditionOperation.EqualTo,this._operationPlacementNestedLevel=e.StiStyleConditionOperation.EqualTo,this._operationComponentType=e.StiStyleConditionOperation.EqualTo,this._operationLocation=e.StiStyleConditionOperation.EqualTo,this._operationComponentName=e.StiStyleConditionOperation.EqualTo,this._placement=e.StiStyleComponentPlacement.None,this._placementNestedLevel=1,this._componentType=e.StiStyleComponentType.Text,this._location=e.StiStyleLocation.None,this._componentName="",null==t||(t.sti_is(Array)?this.fromElements(t):(this._type=t,this._operationPlacement=i,this._operationPlacementNestedLevel=r,this._operationComponentType=n,this._operationLocation=o,this._operationComponentName=a,this._placement=s,this._placementNestedLevel=l,this._componentType=u,this._location=c,this._componentName=p))}return t.prototype.implements=function(){return[n,c]},t.prototype.saveToJsonObject=function(t){var i=new p;return i.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),i.addPropertyEnum("Type",e.StiStyleConditionType,this.type,e.StiStyleConditionType.Placement),i.addPropertyEnum("OperationPlacement",e.StiStyleConditionOperation,this.operationPlacement,e.StiStyleConditionOperation.EqualTo),i.addPropertyEnum("OperationPlacementNestedLevel",e.StiStyleConditionOperation,this.operationPlacementNestedLevel,e.StiStyleConditionOperation.EqualTo),i.addPropertyEnum("OperationComponentType",e.StiStyleConditionOperation,this.operationComponentType,e.StiStyleConditionOperation.EqualTo),i.addPropertyEnum("OperationLocation",e.StiStyleConditionOperation,this.operationLocation,e.StiStyleConditionOperation.EqualTo),i.addPropertyEnum("OperationComponentName",e.StiStyleConditionOperation,this.operationComponentName,e.StiStyleConditionOperation.EqualTo),i.addPropertyEnum("Placement",e.StiStyleComponentPlacement,this.placement,e.StiStyleComponentPlacement.None),i.addPropertyNumber("PlacementNestedLevel",this.placementNestedLevel,1),i.addPropertyEnum("ComponentType",e.StiStyleComponentType,this.componentType,e.StiStyleComponentType.Text),i.addPropertyEnum("Location",e.StiStyleLocation,this.location,e.StiStyleLocation.None),i.addPropertyStringNullOfEmpty("ComponentName",this.componentName),i},t.prototype.loadFromJsonObject=function(t){for(var i=0,n=t.properties();i<n.length;i++){var o=n[i];switch(o.name){case"Type":this._type=r.parse(e.StiStyleConditionType,o.value);break;case"OperationPlacement":this._operationPlacement=r.parse(e.StiStyleConditionOperation,o.value);break;case"OperationPlacementNestedLevel":this._operationPlacementNestedLevel=r.parse(e.StiStyleConditionOperation,o.value);break;case"OperationComponentType":this._operationComponentType=r.parse(e.StiStyleConditionOperation,o.value);break;case"OperationLocation":this._operationLocation=r.parse(e.StiStyleConditionOperation,o.value);break;case"OperationComponentName":this._operationComponentName=r.parse(e.StiStyleConditionOperation,o.value);break;case"Placement":this._placement=r.parse(e.StiStyleComponentPlacement,o.value);break;case"PlacementNestedLevel":this._placementNestedLevel=o.value.toNumber();break;case"ComponentType":this._componentType=r.parse(e.StiStyleComponentType,o.value);break;case"Location":this._location=r.parse(e.StiStyleLocation,o.value);break;case"ComponentName":this._componentName=o.value;break}}},t.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"Type":this._type=r.parse(e.StiStyleConditionType,n.textContent);break;case"OperationPlacement":this._operationPlacement=r.parse(e.StiStyleConditionOperation,n.textContent);break;case"OperationPlacementNestedLevel":this._operationPlacementNestedLevel=r.parse(e.StiStyleConditionOperation,n.textContent);break;case"OperationComponentType":this._operationComponentType=r.parse(e.StiStyleConditionOperation,n.textContent);break;case"OperationLocation":this._operationLocation=r.parse(e.StiStyleConditionOperation,n.textContent);break;case"OperationComponentName":this._operationComponentName=r.parse(e.StiStyleConditionOperation,n.textContent);break;case"Placement":this._placement=r.parse(e.StiStyleComponentPlacement,n.textContent);break;case"PlacementNestedLevel":this._placementNestedLevel=n.textContent.toNumber();break;case"ComponentType":this._componentType=r.parse(e.StiStyleComponentType,n.textContent);break;case"Location":this._location=r.parse(e.StiStyleLocation,n.textContent);break;case"ComponentName":this._componentName=n.textContent;break}}},t.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationPlacement",{get:function(){return this._operationPlacement},set:function(t){this._operationPlacement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationPlacementNestedLevel",{get:function(){return this._operationPlacementNestedLevel},set:function(t){this._operationPlacementNestedLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationComponentType",{get:function(){return this._operationComponentType},set:function(t){this._operationComponentType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationLocation",{get:function(){return this._operationLocation},set:function(t){this._operationLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"operationComponentName",{get:function(){return this._operationComponentName},set:function(t){this._operationComponentName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placement",{get:function(){return this._placement},set:function(t){this._placement=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placementNestedLevel",{get:function(){return this._placementNestedLevel},set:function(t){this._placementNestedLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._componentType},set:function(t){this._componentType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location},set:function(t){this._location=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentName",{get:function(){return this._componentName},set:function(t){this._componentName=t},enumerable:!0,configurable:!0}),t.prototype.fromElements=function(t){this.type=0;for(var i=0,r=t;i<r.length;i++){var n=r[i],c=n.sti_as(o);null!=c&&(this.type|=e.StiStyleConditionType.ComponentName,this.componentName=c.componentName,this.operationComponentName=c.operationComponentName);var p=n.sti_as(a);null!=p&&(this.type|=e.StiStyleConditionType.ComponentType,this.componentType=p.componentType,this.operationComponentType=p.operationComponentType);var h=n.sti_as(l);null!=h&&(this.type|=e.StiStyleConditionType.Placement,this.placement=h.placement,this.operationPlacement=h.operationPlacement);var g=n.sti_as(u);null!=g&&(this.type|=e.StiStyleConditionType.PlacementNestedLevel,this.placementNestedLevel=g.placementNestedLevel,this.operationPlacementNestedLevel=g.operationPlacementNestedLevel);var m=n.sti_as(s);null!=m&&(this.type|=e.StiStyleConditionType.Location,this.location=m.location,this.operationLocation=m.operationLocation)}},t}();i.StiStyleCondition=h}(i=e.Conditions||(e.Conditions={}))}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft
;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){t[t.ComponentType=1]="ComponentType",t[t.Placement=2]="Placement",t[t.PlacementNestedLevel=4]="PlacementNestedLevel",t[t.ComponentName=8]="ComponentName",t[t.Location=16]="Location"}(e=t.StiStyleConditionType||(t.StiStyleConditionType={}));var i;!function(t){t[t.None=0]="None",t[t.ReportTitle=1]="ReportTitle",t[t.ReportSummary=2]="ReportSummary",t[t.PageHeader=4]="PageHeader",t[t.PageFooter=8]="PageFooter",t[t.GroupHeader=16]="GroupHeader",t[t.GroupFooter=32]="GroupFooter",t[t.Header=64]="Header",t[t.Footer=128]="Footer",t[t.ColumnHeader=256]="ColumnHeader",t[t.ColumnFooter=512]="ColumnFooter",t[t.Data=1024]="Data",t[t.DataEvenStyle=2048]="DataEvenStyle",t[t.DataOddStyle=4096]="DataOddStyle",t[t.Table=8192]="Table",t[t.Hierarchical=16384]="Hierarchical",t[t.Child=32768]="Child",t[t.Empty=65536]="Empty",t[t.Overlay=131072]="Overlay",t[t.Panel=262144]="Panel",t[t.Page=524288]="Page",t[t.AllExeptStyles=1042431]="AllExeptStyles"}(i=t.StiStyleComponentPlacement||(t.StiStyleComponentPlacement={}));var r;!function(t){t[t.Text=1]="Text",t[t.Primitive=2]="Primitive",t[t.Image=4]="Image",t[t.CrossTab=8]="CrossTab",t[t.Chart=16]="Chart",t[t.CheckBox=32]="CheckBox"}(r=t.StiStyleComponentType||(t.StiStyleComponentType={}));var n;!function(t){t[t.None=0]="None",t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=4]="TopRight",t[t.MiddleLeft=8]="MiddleLeft",t[t.MiddleCenter=16]="MiddleCenter",t[t.MiddleRight=32]="MiddleRight",t[t.BottomLeft=64]="BottomLeft",t[t.BottomCenter=128]="BottomCenter",t[t.BottomRight=256]="BottomRight",t[t.Left=512]="Left",t[t.Right=1024]="Right",t[t.Top=2048]="Top",t[t.Bottom=4096]="Bottom",t[t.CenterHorizontal=8192]="CenterHorizontal",t[t.CenterVertical=16384]="CenterVertical"}(n=t.StiStyleLocation||(t.StiStyleLocation={}));var o;!function(t){t[t.EqualTo=0]="EqualTo",t[t.NotEqualTo=1]="NotEqualTo",t[t.GreaterThan=2]="GreaterThan",t[t.GreaterThanOrEqualTo=3]="GreaterThanOrEqualTo",t[t.LessThan=4]="LessThan",t[t.LessThanOrEqualTo=5]="LessThanOrEqualTo",t[t.Containing=6]="Containing",t[t.NotContaining=7]="NotContaining",t[t.BeginningWith=8]="BeginningWith",t[t.EndingWith=9]="EndingWith"}(o=t.StiStyleConditionOperation||(t.StiStyleConditionOperation={}))}(e=t.Styles||(t.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Components.Table.StiTable,r=t.Report.Components.StiReportTitleBand,n=t.Report.Components.StiReportSummaryBand,o=t.Report.Components.StiPageHeaderBand,a=t.Report.Components.StiPageFooterBand,s=t.Report.Components.StiGroupHeaderBand,l=t.Report.Components.StiGroupFooterBand,u=t.Report.Components.StiHeaderBand,c=t.Report.Components.StiFooterBand,p=t.Report.Components.StiColumnHeaderBand,h=t.Report.Components.StiColumnFooterBand,g=t.Report.Components.StiDataBand,m=t.Report.Components.StiHierarchicalBand,d=t.Report.Components.StiChildBand,S=t.Report.Components.StiEmptyBand,f=t.Report.Components.StiOverlayBand,y=t.Report.Components.StiPanel,b=t.Report.Components.StiPage,C=t.Report.Components.StiBand,v=t.Report.Styles.StiStyleLocation,I=t.Report.Components.StiSimpleText,A=t.Report.Components.StiCheckBox,w=t.Report.Components.StiImage,T=t.Report.Components.StiShape,B=t.Report.Components.StiPrimitive,R=t.Report.Styles.StiStyleComponentPlacement,P=t.Report.Styles.StiStyleConditionType,F=t.Report.Styles.StiStyleConditionOperation,x=t.Report.Styles.StiStyleComponentType,D=function(){function e(){}return e.isAllowStyle=function(e,D){for(var k=0,E=D.conditions.list;k<E.length;k++){var G=E[k],_=!0,L=!0,N=!0,O=!0;if((G.type&P.ComponentName)>0)switch(G.operationComponentName){case F.EqualTo:_=e.name==G.componentName;break;case F.NotEqualTo:_=e.name!=G.componentName;break;case F.BeginningWith:_=null!=e.name&&e.name.startsWith(G.componentName);break;case F.EndingWith:_=null!=e.name&&e.name.endsWith(G.componentName);break;case F.Containing:_=null!=e.name&&e.name.contains(G.componentName);break;case F.NotContaining:_=null!=e.name&&!e.name.contains(G.componentName);break}if((G.type&P.ComponentType)>0&&(L=!1,(G.componentType&x.Chart)>0&&e.sti_is(t.Report.Chart.IStiChart)&&(L=!0),(G.componentType&x.Image)>0&&e.sti_is(w)&&(L=!0),(G.componentType&x.Text)>0&&e.sti_is(I)&&(L=!0),(G.componentType&x.Primitive)>0&&(e.sti_is(T)||e.sti_is(B))&&(L=!0),(G.componentType&x.CheckBox)>0&&e.sti_is(A)&&(L=!0),G.operationComponentType==F.NotEqualTo&&(L=!L)),(G.type&P.Location)>0&&null!=e.page&&null!=e.parent){var Z=Math.round(e.page.unit.convertToHInches(e.left)/10,0),M=Math.round(e.page.unit.convertToHInches(e.top)/10,0),H=Math.round(e.page.unit.convertToHInches(e.width)/10,0),W=Math.round(e.page.unit.convertToHInches(e.height)/10,0),V=Math.round(e.page.unit.convertToHInches(e.parent.width)/10,0),Y=Math.round(e.page.unit.convertToHInches(e.parent.height)/10,0),j=Z+H,X=M+W;O=!1,(G.location&v.Left)>0&&M<=0&&Z<=0&&W==Y&&(O=!0),(G.location&v.Right)>0&&M<=0&&j>=V&&W==Y&&(O=!0),(G.location&v.Top)>0&&Z<=0&&M<=0&&H==V&&(O=!0),(G.location&v.Bottom)>0&&Z<=0&&X>=Y&&H==V&&(O=!0),(G.location&v.CenterHorizontal)>0&&M<=0&&Z>0&&j<V&&W==Y&&(O=!0),(G.location&v.CenterVertical)>0&&Z<=0&&M>0&&X<Y&&H==V&&(O=!0),O||((G.location&v.TopLeft)>0&&M<=0&&Z<=0&&(O=!0),(G.location&v.TopCenter)>0&&M<=0&&Z>0&&j<V&&(O=!0),(G.location&v.TopRight)>0&&M<=0&&j>=V&&(O=!0),(G.location&v.MiddleLeft)>0&&M>0&&X<Y&&Z<=0&&(O=!0),(G.location&v.MiddleCenter)>0&&M>0&&X<Y&&Z>0&&j<V&&(O=!0),(G.location&v.MiddleRight)>0&&M>0&&X<Y&&j>=V&&(O=!0),(G.location&v.BottomLeft)>0&&X>=Y&&Z<=0&&(O=!0),(G.location&v.BottomCenter)>0&&X>=Y&&Z>0&&j<V&&(O=!0),(G.location&v.BottomRight)>0&&X>=Y&&j>=V&&(O=!0)),G.operationPlacement==F.NotEqualTo&&(O=!O)}if((G.type&P.Placement)>0){if(N=!1,(G.placement&R.ReportTitle)>0&&e.parent.sti_is(r)&&(N=!0),(G.placement&R.ReportSummary)>0&&e.parent.sti_is(n)&&(N=!0),(G.placement&R.PageHeader)>0&&e.parent.sti_is(o)&&(N=!0),(G.placement&R.PageFooter)>0&&e.parent.sti_is(a)&&(N=!0),(G.placement&R.GroupHeader)>0&&e.parent.sti_is(s)&&(N=!0),(G.placement&R.GroupFooter)>0&&e.parent.sti_is(l)&&(N=!0),(G.placement&R.Header)>0&&e.parent.sti_is(u)&&(N=!0),(G.placement&R.Footer)>0&&e.parent.sti_is(c)&&(N=!0),(G.placement&R.ColumnHeader)>0&&e.parent.sti_is(p)&&(N=!0),(G.placement&R.ColumnFooter)>0&&e.parent.sti_is(h)&&(N=!0),(G.placement&R.Data)>0&&e.parent.sti_is(g)&&(N=!0),(G.placement&R.DataEvenStyle)>0&&e.sti_is(g)&&(N=!0),(G.placement&R.DataOddStyle)>0&&e.sti_is(g)&&(N=!0),(G.placement&R.Table)>0&&e.parent.sti_is(i)&&(N=!0),(G.placement&R.Hierarchical)>0&&e.parent.sti_is(m)&&(N=!0),(G.placement&R.Child)>0&&e.parent.sti_is(d)&&(N=!0),(G.placement&R.Empty)>0&&e.parent.sti_is(S)&&(N=!0),(G.placement&R.Overlay)>0&&e.parent.sti_is(f)&&(N=!0),(G.placement&R.Panel)>0&&e.parent.sti_is(y)&&(N=!0),(G.placement&R.Page)>0&&e.parent.sti_is(b)&&(N=!0),N&&(G.type&P.PlacementNestedLevel)>0){var J=1,K=e.parent;((G.placement&R.DataEvenStyle)>0||(G.placement&R.DataOddStyle)>0)&&(K=e);var U=K.sti_as(C);null!=U&&(J=U.nestedLevel),G.operationPlacementNestedLevel==F.EqualTo?N=J==G.placementNestedLevel:G.operationPlacementNestedLevel==F.NotEqualTo?N=J!=G.placementNestedLevel:G.operationPlacementNestedLevel==F.GreaterThan?N=J>G.placementNestedLevel:G.operationPlacementNestedLevel==F.GreaterThanOrEqualTo?N=J>=G.placementNestedLevel:G.operationPlacementNestedLevel==F.LessThan?N=J<G.placementNestedLevel:G.operationPlacementNestedLevel==F.LessThanOrEqualTo&&(N=J<=G.placementNestedLevel)}G.operationPlacement==F.NotEqualTo&&(N=!N)}if(!(_&&L&&N&&O))return!1}return!0},e}();e.StiStyleConditionHelper=D}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiSolidBrush,r=t.Base.Drawing.StiBrush,n=t.Base.Drawing.StiBorder,o=t.System.Drawing.Color,a=t.Base.StiJsonReportObjectHelper,s=t.System.Enum,l=t.Report.StiBrushType,u=function(e){function u(){var t=null!==e&&e.apply(this,arguments)||this;return t.border=new n,t.brush=new i(o.transparent),t.chartAreaBrush=new i(o.white),t.chartAreaBorderColor=o.fromArgb(171,172,173),t.chartAreaShowShadow=!1,t.seriesLighting=!1,t.seriesShowShadow=!1,t.trendLineColor=o.fromArgb(140,140,140),t.trendLineShowShadow=!1,t.seriesLabelsBrush=new i(o.white),t.seriesLabelsColor=o.fromArgb(90,90,90),t.seriesLabelsBorderColor=o.fromArgb(140,140,140),t.legendBrush=new i(o.white),t.legendLabelsColor=o.fromArgb(140,140,140),t.legendBorderColor=o.fromArgb(105,105,105),t.legendTitleColor=o.fromArgb(105,105,105),t.axisTitleColor=o.fromArgb(140,140,140),t.axisLineColor=o.fromArgb(140,140,140),t.axisLabelsColor=o.fromArgb(140,140,140),t.interlacingHorBrush=new i(o.fromArgb(10,155,155,155)),t.interlacingVertBrush=new i(o.fromArgb(10,155,155,155)),t.gridLinesHorColor=o.fromArgb(100,105,105,105),t.gridLinesVertColor=o.fromArgb(100,105,105,105),t.brushType=l.Solid,t.styleColors=[o.fromArgb(112,173,71),o.fromArgb(68,114,196),o.fromArgb(255,192,0),o.fromArgb(67,104,43),o.fromArgb(38,68,120),o.fromArgb(153,115,0)],t.basicStyleColor=o.whiteSmoke,t.allowUseBorderFormatting=!0,t.allowUseBorderSides=!0,t.allowUseBrush=!0,t}return __extends(u,e),u.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyStringNullOfEmpty("Border",a.Serialize.jBorder(this.border)),i.addPropertyStringNullOfEmpty("Brush",a.Serialize.jBrush(this.brush)),i.addPropertyEnum("BrushType",l,this.brushType,l.Glare),i.addPropertyJObject("StyleColors",a.Serialize.colorArray(this.styleColors)),i.addPropertyStringNullOfEmpty("BasicStyleColor",a.Serialize.jColor(this.basicStyleColor,o.whiteSmoke)),i.addPropertyBool("AllowUseBorderFormatting",this.allowUseBorderFormatting,!0),i.addPropertyBool("AllowUseBorderSides",this.allowUseBorderSides,!0),i.addPropertyBool("AllowUseBrush",this.allowUseBrush,!0),i.addPropertyStringNullOfEmpty("ChartAreaBrush",a.Serialize.jBrush(this.chartAreaBrush)),i.addPropertyStringNullOfEmpty("ChartAreaBorderColor",a.Serialize.jColor(this.chartAreaBorderColor,o.fromArgb(171,172,173))),i.addPropertyStringNullOfEmpty("SeriesLabelsBrush",a.Serialize.jBrush(this.seriesLabelsBrush)),i.addPropertyStringNullOfEmpty("SeriesLabelsColor",a.Serialize.jColor(this.seriesLabelsColor,o.fromArgb(90,90,90))),i.addPropertyStringNullOfEmpty("SeriesLabelsBorderColor",a.Serialize.jColor(this.seriesLabelsBorderColor,o.fromArgb(90,90,90))),i.addPropertyBool("SeriesShowShadow",this.seriesShowShadow,!1),i.addPropertyBool("SeriesLighting",this.seriesLighting,!1),i.addPropertyStringNullOfEmpty("LegendBrush",a.Serialize.jBrush(this.legendBrush)),i.addPropertyStringNullOfEmpty("LegendLabelsColor",a.Serialize.jColor(this.legendLabelsColor,o.fromArgb(140,140,140))),i.addPropertyStringNullOfEmpty("LegendBorderColor",a.Serialize.jColor(this.legendBorderColor,o.fromArgb(105,105,105))),i.addPropertyStringNullOfEmpty("LegendTitleColor",a.Serialize.jColor(this.legendTitleColor,o.fromArgb(105,105,105))),i.addPropertyStringNullOfEmpty("AxisTitleColor",a.Serialize.jColor(this.legendLabelsColor,o.fromArgb(140,140,140))),i.addPropertyStringNullOfEmpty("AxisLineColor",a.Serialize.jColor(this.legendLabelsColor,o.fromArgb(140,140,140))),i.addPropertyStringNullOfEmpty("AxisLabelsColor",a.Serialize.jColor(this.legendLabelsColor,o.fromArgb(140,140,140))),i.addPropertyStringNullOfEmpty("InterlacingHorBrush",a.Serialize.jBrush(this.interlacingHorBrush)),i.addPropertyStringNullOfEmpty("InterlacingVertBrush",a.Serialize.jBrush(this.interlacingVertBrush)),i.addPropertyStringNullOfEmpty("GridLinesHorColor",a.Serialize.jColor(this.gridLinesHorColor,o.fromArgb(105,105,105))),i.addPropertyStringNullOfEmpty("GridLinesVertColor",a.Serialize.jColor(this.gridLinesVertColor,o.fromArgb(105,105,105))),i},u.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var i=0,r=t.properties();i<r.length;i++){var n=r[i];switch(n.name){case"Border":this.border=a.Deserialize.border(n.value);break;case"Brush":this.brush=a.Deserialize.brush(n.value);break;case"BrushType":this.brushType=s.parse(l,n.value);break;case"StyleColors":this.styleColors=a.Deserialize.colorArray(n.value);break;case"BasicStyleColor":this.basicStyleColor=a.Deserialize.color(n.value);break;case"AllowUseBorderFormatting":this.allowUseBorderFormatting=n.value.toBoolean();break;case"AllowUseBorderSides":this.allowUseBorderSides=n.value.toBoolean();break;case"ChartAreaBrush":this.chartAreaBrush=a.Deserialize.brush(n.value);break;case"ChartAreaBorderColor":this.chartAreaBorderColor=a.Deserialize.color(n.value);break;case"SeriesLabelsBrush":this.seriesLabelsBrush=a.Deserialize.brush(n.value);break;case"SeriesLabelsColor":this.seriesLabelsColor=a.Deserialize.color(n.value);break;case"SeriesLabelsBorderColor":this.seriesLabelsBorderColor=a.Deserialize.color(n.value);break;case"SeriesShowShadow":this.seriesShowShadow=n.value.toBoolean();break;case"SeriesLighting":this.seriesLighting=n.value.toBoolean();break;case"LegendBrush":this.legendBrush=a.Deserialize.brush(n.value);break;case"LegendLabelsColor":this.legendLabelsColor=a.Deserialize.color(n.value);break;case"LegendBorderColor":this.legendBorderColor=a.Deserialize.color(n.value);break;case"LegendTitleColor":this.legendTitleColor=a.Deserialize.color(n.value);break;case"AxisTitleColor":this.axisTitleColor=a.Deserialize.color(n.value);break;case"AxisLineColor":this.axisLineColor=a.Deserialize.color(n.value);break;case"AxisLabelsColor":this.axisLabelsColor=a.Deserialize.color(n.value);break;case"InterlacingHorBrush":this.interlacingHorBrush=a.Deserialize.brush(n.value);break;case"InterlacingVertBrush":this.interlacingVertBrush=a.Deserialize.brush(n.value);break;case"GridLinesHorColor":this.gridLinesHorColor=a.Deserialize.color(n.value);break;case"GridLinesVertColor":this.gridLinesVertColor=a.Deserialize.color(n.value);break}}},u.prototype.loadFromXml=function(i){e.prototype.loadFromXml.call(this,i);for(var o=0;o<i.childNodes.length;o++){var a=i.childNodes[o];switch(a.nodeName){case"Border":case"br":this.border=n.loadFromXml(a.textContent);break;case"Brush":case"bh":this.brush=r.loadFromXml(a.textContent);break;case"BrushType":this.brushType=s.parse(l,a.textContent);break;case"StyleColors":this.styleColors=t.System.Text.StiReportObjectStringConverter.convertStringToColorArray(a.textContent);break;case"BasicStyleColor":this.basicStyleColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"AllowUseBorderFormatting":this.allowUseBorderFormatting=a.textContent.toBoolean();break;case"AllowUseBorderSides":this.allowUseBorderSides=a.textContent.toBoolean();break;case"ChartAreaBrush":this.chartAreaBrush=r.loadFromXml(a.textContent);break;case"ChartAreaBorderColor":this.chartAreaBorderColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"SeriesLabelsBrush":this.seriesLabelsBrush=r.loadFromXml(a.textContent);break;case"SeriesLabelsColor":this.seriesLabelsColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"SeriesLabelsBorderColor":this.seriesLabelsBorderColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"SeriesShowShadow":this.seriesShowShadow=a.textContent.toBoolean();break;case"SeriesLighting":this.seriesLighting=a.textContent.toBoolean();break;case"LegendBrush":this.legendBrush=r.loadFromXml(a.textContent);break;case"LegendLabelsColor":this.legendLabelsColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"LegendBorderColor":this.legendBorderColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"LegendTitleColor":this.legendTitleColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"AxisTitleColor":this.axisTitleColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"AxisLineColor":this.axisLineColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"AxisLabelsColor":this.axisLabelsColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"InterlacingHorBrush":this.interlacingHorBrush=r.loadFromXml(a.textContent);break;case"InterlacingVertBrush":this.interlacingVertBrush=r.loadFromXml(a.textContent);break;case"GridLinesHorColor":this.gridLinesHorColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break;case"GridLinesVertColor":this.gridLinesVertColor=t.System.Text.StiReportObjectStringConverter.convertStringToColor(a.textContent);break}}},u}(e.StiBaseStyle);e.StiChartStyle=u}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Color,r=t.Base.StiJsonReportObjectHelper,n=t.System.Drawing.Font,o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._foreColor=i.black,e._backColor=i.white,e._font=new n("Arial",8),e._allowUseFont=!0,e._allowUseBackColor=!0,e._allowUseForeColor=!0,e}return __extends(e,t),e.prototype.saveToJsonObject=function(e){var n=t.prototype.saveToJsonObject.call(this,e);return n.addPropertyStringNullOfEmpty("Font",r.Serialize.fontDefault(this.font)),n.addPropertyStringNullOfEmpty("ForeColor",r.Serialize.jColor(this.foreColor,i.black)),n.addPropertyStringNullOfEmpty("BackColor",r.Serialize.jColor(this.backColor,i.white)),n.addPropertyBool("AllowUseFont",this.allowUseFont,!0),n.addPropertyBool("AllowUseBackColor",this.allowUseBackColor,!0),n.addPropertyBool("AllowUseForeColor",this.allowUseForeColor,!0),n},e.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var i=0,n=e.properties();i<n.length;i++){var o=n[i];switch(o.name){case"Font":this._font=r.Deserialize.font(o.value,this.font);break;case"ForeColor":this._foreColor=r.Deserialize.color(o.value);break;case"BackColor":this._backColor=r.Deserialize.color(o.value);break;case"AllowUseFont":this._allowUseFont=o.value.toBoolean();break;case"AllowUseBackColor":this._allowUseBackColor=o.value.toBoolean();break;case"AllowUseForeColor":this._allowUseForeColor=o.value.toBoolean();break}}},Object.defineProperty(e.prototype,"foreColor",{get:function(){return this._foreColor},set:function(t){this._foreColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backColor",{get:function(){return this._backColor},set:function(t){this._backColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this._font},set:function(t){this._font=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowUseFont",{get:function(){return this._allowUseFont},set:function(t){this._allowUseFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowUseBackColor",{get:function(){return this._allowUseBackColor},set:function(t){this._allowUseBackColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowUseForeColor",{get:function(){return this._allowUseForeColor},set:function(t){this._allowUseForeColor=t},enumerable:!0,configurable:!0}),e}(e.StiBaseStyle);e.StiDialogStyle=o}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Drawing.Font,r=t.System.Drawing.ColorTranslator,n=t.Report.Styles.StiBaseStyle,o=t.Base.Drawing.StiEmptyBrush,a=t.Base.Drawing.StiSolidBrush,s=t.System.Drawing.Color,l=function(t){function n(e,n,l){void 0===e&&(e=""),void 0===n&&(n=""),void 0===l&&(l=null);var u=t.call(this,e,n,l)||this;return u._brush=new a(r.fromHtml("#ffffff")),u._borderColor=s.transparent,u._borderWidth=0,u._tickMarkMajorBrush=new a(r.fromHtml("#990000")),u._tickMarkMajorBorder=new a(r.fromHtml("#0bac45")),u._tickMarkMinorBrush=new a(r.fromHtml("#4472c4")),u._tickMarkMinorBorder=new a(r.fromHtml("#4472c4")),u._tickLabelMajorTextBrush=new a(r.fromHtml("#FF33475B")),u._tickLabelMajorFont=new i("Arial",10),u._tickLabelMinorTextBrush=new a(r.fromHtml("#FF33475B")),u._tickLabelMinorFont=new i("Arial",10),u._markerBrush=new a(r.fromHtml("#70ad47")),u._linearBarBrush=new a(r.fromHtml("#4472c4")),u._linearBarBorderBrush=new o,u._linearBarEmptyBrush=new o,u._linearBarEmptyBorderBrush=new o,u._radialBarBrush=new a(r.fromHtml("#ffc000")),u._radialBarBorderBrush=new o,u._radialBarEmptyBrush=new a(r.fromHtml("#43682b")),u._radialBarEmptyBorderBrush=new o,u._needleBrush=new a(r.fromHtml("#ffc000")),u._needleBorderBrush=new o,u._needleCapBrush=new a(r.fromHtml("#ffc000")),u._needleCapBorderBrush=new a(r.fromHtml("#ffc000")),u}return __extends(n,t),n.prototype.saveToJsonObject=function(e){return t.prototype.saveToJsonObject.call(this,e)},Object.defineProperty(n.prototype,"componentId",{get:function(){return e.StiComponentId.StiGaugeStyle},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"borderColor",{get:function(){return this._borderColor},set:function(t){this._borderColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"borderWidth",{get:function(){return this._borderWidth},set:function(t){this._borderWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickMarkMajorBrush",{get:function(){return this._tickMarkMajorBrush},set:function(t){this._tickMarkMajorBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickMarkMajorBorder",{get:function(){return this._tickMarkMajorBorder},set:function(t){this._tickMarkMajorBorder=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickMarkMinorBrush",{get:function(){return this._tickMarkMinorBrush},set:function(t){this._tickMarkMinorBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickMarkMinorBorder",{get:function(){return this._tickMarkMinorBorder},set:function(t){this._tickMarkMinorBorder=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickLabelMajorTextBrush",{get:function(){return this._tickLabelMajorTextBrush},set:function(t){this._tickLabelMajorTextBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickLabelMajorFont",{get:function(){return this._tickLabelMajorFont},set:function(t){this._tickLabelMajorFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickLabelMinorTextBrush",{get:function(){return this._tickLabelMinorTextBrush},set:function(t){this._tickLabelMinorTextBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tickLabelMinorFont",{get:function(){return this._tickLabelMinorFont},set:function(t){this._tickLabelMinorFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"markerBrush",{get:function(){return this._markerBrush},set:function(t){this._markerBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linearBarBrush",{get:function(){return this._linearBarBrush},set:function(t){this._linearBarBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linearBarBorderBrush",{get:function(){return this._linearBarBorderBrush},set:function(t){this._linearBarBorderBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linearBarEmptyBrush",{get:function(){return this._linearBarEmptyBrush},set:function(t){this._linearBarEmptyBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"linearBarEmptyBorderBrush",{get:function(){return this._linearBarEmptyBorderBrush},set:function(t){this._linearBarEmptyBorderBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"radialBarBrush",{get:function(){return this._radialBarBrush},set:function(t){this._radialBarBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"radialBarBorderBrush",{get:function(){return this._radialBarBorderBrush},set:function(t){this._radialBarBorderBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"radialBarEmptyBrush",{get:function(){return this._radialBarEmptyBrush},set:function(t){this._radialBarEmptyBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"radialBarEmptyBorderBrush",{get:function(){return this._radialBarEmptyBorderBrush},set:function(t){this._radialBarEmptyBorderBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"needleBrush",{get:function(){return this._needleBrush},set:function(t){this._needleBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"needleBorderBrush",{get:function(){return this._needleBorderBrush},set:function(t){this._needleBorderBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"needleCapBrush",{get:function(){return this._needleCapBrush},set:function(t){this._needleCapBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"needleCapBorderBrush",{get:function(){return this._needleCapBorderBrush},set:function(t){this._needleCapBorderBrush=t},enumerable:!0,configurable:!0}),n.prototype.drawStyle=function(t,e,i,r){},n.prototype.drawBox=function(t,e,i,r){},n.prototype.getStyleFromComponent=function(t,e){},n.prototype.setStyleToComponent=function(t){},n}(n);e.StiGaugeStyle=l}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.Report.Components.IStiTextOptions,n=t.Base.Drawing.StiImageConverter,o=t.Base.Drawing.StiBorder,a=t.Base.Drawing.StiBrush,s=t.Base.Drawing.StiSolidBrush,l=t.System.Drawing.Font,u=t.Base.Drawing.StiTextHorAlignment,c=t.Base.Drawing.StiVertAlignment,p=t.System.Drawing.Color,h=t.Report.Components.IStiFont,g=t.Report.Components.IStiBorder,m=t.Report.Components.IStiBrush,d=t.Report.Components.IStiTextBrush,S=t.Report.Components.IStiBackColor,f=t.Report.Components.IStiForeColor,y=t.Report.Components.IStiTextHorAlignment,b=t.Report.Components.IStiHorAlignment,C=t.Report.Components.IStiVertAlignment,v=t.Base.Drawing.StiHorAlignment,I=t.Report.Components.StiLinePrimitive,A=t.Report.Components.StiImage,w=t.Base.StiJsonReportObjectHelper,T=t.System.Enum,B=function(B){function R(){var t=null!==B&&B.apply(this,arguments)||this;return t._horAlignment=u.Left,t._vertAlignment=c.Top,t._font=new l("Arial",8),t._border=new o,t._brush=new s(p.transparent),t._textBrush=new s(p.black),t._allowUseHorAlignment=!1,t._allowUseVertAlignment=!1,t._allowUseImage=!1,t._allowUseFont=!0,t._allowUseBorderFormatting=!0,t._allowUseBorderSides=!0,t._allowUseBorderSidesFromLocation=!1,t._allowUseBrush=!0,t._allowUseTextBrush=!0,t._allowUseTextOptions=!0,t}return __extends(R,B),R.prototype.saveToJsonObject=function(t){var e=B.prototype.saveToJsonObject.call(this,t);return e.addPropertyEnum("HorAlignment",u,this.horAlignment,u.Left),e.addPropertyEnum("VertAlignment",c,this.vertAlignment,c.Top),e.addPropertyStringNullOfEmpty("Font",w.Serialize.fontDefault(this.font)),e.addPropertyStringNullOfEmpty("Border",w.Serialize.jBorder(this.border)),e.addPropertyStringNullOfEmpty("Brush",w.Serialize.jBrush(this.brush)),e.addPropertyStringNullOfEmpty("TextBrush",w.Serialize.jBrush(this.textBrush)),e.addPropertyBool("AllowUseHorAlignment",this.allowUseHorAlignment),e.addPropertyBool("AllowUseVertAlignment",this.allowUseVertAlignment),e.addPropertyBool("AllowUseImage",this.allowUseImage),e.addPropertyBool("AllowUseFont",this.allowUseFont,!0),e.addPropertyBool("AllowUseBorderFormatting",this.allowUseBorderFormatting,!0),e.addPropertyBool("AllowUseBorderSides",this.allowUseBorderSides,!0),e.addPropertyBool("AllowUseBorderSidesFromLocation",this.allowUseBorderSidesFromLocation),e.addPropertyBool("AllowUseBrush",this.allowUseBrush,!0),e.addPropertyBool("AllowUseTextBrush",this.allowUseTextBrush,!0),e.addPropertyBool("AllowUseTextOptions",this.allowUseTextOptions,!0),e.addPropertyStringNullOfEmpty("Image",n.imageToString(this.image)),e},R.prototype.loadFromJsonObject=function(t){B.prototype.loadFromJsonObject.call(this,t);for(var e=0,i=t.properties();e<i.length;e++){var r=i[e];switch(r.name){case"HorAlignment":this._horAlignment=T.parse(u,r.value);break;case"VertAlignment":this._vertAlignment=T.parse(c,r.value);break;case"Font":this._font=w.Deserialize.font(r.value,this.font);break;case"Border":this._border=w.Deserialize.border(r.value);break;case"Brush":this._brush=w.Deserialize.brush(r.value);break;case"TextBrush":this._textBrush=w.Deserialize.brush(r.value);break;case"TextOptions":break;case"AllowUseHorAlignment":this._allowUseHorAlignment=r.value.toBoolean();break;case"AllowUseVertAlignment":this._allowUseVertAlignment=r.value.toBoolean();break;case"AllowUseImage":this._allowUseImage=r.value.toBoolean();break;case"AllowUseFont":this._allowUseFont=r.value.toBoolean();break;case"AllowUseBorderFormatting":this._allowUseBorderFormatting=r.value.toBoolean();break;case"AllowUseBorderSides":this._allowUseBorderSides=r.value.toBoolean();break;case"AllowUseBorderSidesFromLocation":this._allowUseBorderSidesFromLocation=r.value.toBoolean();break;case"AllowUseBrush":this._allowUseBrush=r.value.toBoolean();break;case"AllowUseTextBrush":this._allowUseTextBrush=r.value.toBoolean();break;case"AllowUseTextOptions":this._allowUseTextOptions=r.value.toBoolean();break;case"Image":this._image=n.stringToImage(r.value);break}}},R.prototype.loadFromXml=function(e){B.prototype.loadFromXml.call(this,e);for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];switch(r.nodeName){case"HorAlignment":case"ha":this._horAlignment=T.parse(u,r.textContent);break;case"VertAlignment":case"va":this._vertAlignment=T.parse(c,r.textContent);break;case"Font":case"fn":this._font=t.System.Convert.toFont(r.textContent);break;case"Border":case"br":this._border=o.loadFromXml(r.textContent);break;case"Brush":case"bh":this._brush=a.loadFromXml(r.textContent);break;case"TextBrush":case"tb":this._textBrush=a.loadFromXml(r.textContent);break;case"TextOptions":break;case"AllowUseHorAlignment":this._allowUseHorAlignment=r.textContent.toBoolean();break;case"AllowUseVertAlignment":this._allowUseVertAlignment=r.textContent.toBoolean();break;case"AllowUseImage":this._allowUseImage=r.textContent.toBoolean();break;case"AllowUseFont":this._allowUseFont=r.textContent.toBoolean();break;case"AllowUseBorderFormatting":this._allowUseBorderFormatting=r.textContent.toBoolean();break;case"AllowUseBorderSides":this._allowUseBorderSides=r.textContent.toBoolean();break;case"AllowUseBorderSidesFromLocation":this._allowUseBorderSidesFromLocation=r.textContent.toBoolean();break;case"AllowUseBrush":this._allowUseBrush=r.textContent.toBoolean();break;case"AllowUseTextBrush":this._allowUseTextBrush=r.textContent.toBoolean();break;case"AllowUseTextOptions":this._allowUseTextOptions=r.textContent.toBoolean();break;case"Image":this._image=n.stringToImage(r.textContent);break}}},R.prototype.clone=function(){var t=B.prototype.clone.call(this).sti_as(R);return t._border=this._border.clone().sti_as(o),t._brush=this._brush.clone().sti_as(a),t._font=this._font.clone().sti_as(l),t._textBrush=this._textBrush.clone().sti_as(a),t},Object.defineProperty(R.prototype,"horAlignment",{get:function(){return this._horAlignment},set:function(t){this._horAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"vertAlignment",{get:function(){return this._vertAlignment},set:function(t){this._vertAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"font",{get:function(){return this._font},set:function(t){this._font=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"border",{get:function(){return this._border},set:function(t){this._border=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"textBrush",{get:function(){return this._textBrush},set:function(t){this._textBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseHorAlignment",{get:function(){return this._allowUseHorAlignment},set:function(t){this._allowUseHorAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseVertAlignment",{get:function(){return this._allowUseVertAlignment},set:function(t){this._allowUseVertAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseImage",{get:function(){return this._allowUseImage},set:function(t){this._allowUseImage=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseFont",{get:function(){return this._allowUseFont},set:function(t){this._allowUseFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseBorder",{get:function(){return this.allowUseBorderFormatting&&this.allowUseBorderSides},set:function(t){this.allowUseBorderFormatting=t,this.allowUseBorderSides=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseBorderFormatting",{get:function(){return this._allowUseBorderFormatting},set:function(t){this._allowUseBorderFormatting=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseBorderSides",{get:function(){return this._allowUseBorderSides},set:function(t){this._allowUseBorderSides=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseBorderSidesFromLocation",{get:function(){return this._allowUseBorderSidesFromLocation},set:function(t){this._allowUseBorderSidesFromLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseBrush",{get:function(){return this._allowUseBrush},set:function(t){this._allowUseBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseTextBrush",{get:function(){return this._allowUseTextBrush},set:function(t){this._allowUseTextBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"allowUseTextOptions",{get:function(){return this._allowUseTextOptions},set:function(t){this._allowUseTextOptions=t},enumerable:!0,configurable:!0}),R.prototype.getStyleFromComponent=function(t,i,r){void 0===r&&(r=null);var n=null==r?null:r.sti_as(R);this.allowUseBorderFormatting=!1,this.allowUseBorderSides=!1,this.allowUseBorderSidesFromLocation=!1,this.allowUseBrush=!1,this.allowUseTextBrush=!1,this.allowUseFont=!1,this.allowUseHorAlignment=!1,this.allowUseVertAlignment=!1;var c=!StiOptions.Engine.useParentStylesOldMode;if(null==n&&(c=!1),(i&e.StiStyleElements.Font)>0)if(t.sti_is(h)){var p=t.sti_as(h);this.font=p.font.clone().sti_as(l),this.allowUseFont=!0}else c&&(this.font=n.font.clone().sti_as(l),this.allowUseFont=!0);if((i&e.StiStyleElements.Border)>0)if(t.sti_is(g)){var p=t.sti_as(g);this.border=p.border.clone().sti_as(o),this.allowUseBorderFormatting=!0,this.allowUseBorderSides=!0}else c&&(this.border=n.border.clone().sti_as(o),this.allowUseFont=!0);if((i&e.StiStyleElements.Brush)>0)if(t.sti_is(m)){var p=t.sti_as(m);this.brush=p.brush.clone().sti_as(a),this.allowUseBrush=!0}else c&&(this.brush=n.brush.clone().sti_as(a),this.allowUseBorderFormatting=!0,this.allowUseBorderSides=!0);if((i&e.StiStyleElements.TextBrush)>0)if(t.sti_is(d)){var p=t.sti_as(d);this.textBrush=p.textBrush.clone().sti_as(a),this.allowUseTextBrush=!0}else c&&(this.textBrush=n.textBrush.clone().sti_as(a),this.allowUseTextBrush=!0);if(t.sti_is(S)&&(i&e.StiStyleElements.Brush)>0){var p=t.sti_as(S);this.brush=new s(p.backColor),this.allowUseBrush=!0}if(t.sti_is(f)&&(i&e.StiStyleElements.TextBrush)>0){var p=t.sti_as(f);this.textBrush=new s(p.foreColor),this.allowUseTextBrush=!0}if((i&e.StiStyleElements.HorAlignment)>0)if(t.sti_is(y)){var p=t.sti_as(y);this.horAlignment=p.horAlignment,this.allowUseHorAlignment=!0}else c&&(this.horAlignment=n.horAlignment,this.allowUseHorAlignment=!0);if(t.sti_is(b)&&(i&e.StiStyleElements.HorAlignment)>0){var p=t.sti_as(b);switch(p.horAlignment){case v.Center:this.horAlignment=u.Center;break;case v.Left:this.horAlignment=u.Left;break;case v.Right:this.horAlignment=u.Right;break}this.allowUseHorAlignment=!0}if((i&e.StiStyleElements.VertAlignment)>0)if(t.sti_is(C)){var p=t.sti_as(C);this.vertAlignment=p.vertAlignment,this.allowUseVertAlignment=!0}else c&&(this.vertAlignment=n.vertAlignment,this.allowUseVertAlignment=!0);var A=t.sti_as(I);null!=A&&(this.border=new o(this.border.side,A.color,A.size,A.style),this.allowUseBorderFormatting=!0,this.allowUseBorderSides=!0)},R.prototype.setStyleToComponent=function(e){if(e.sti_is(t.Report.Chart.IStiChart))return;var n=e.sti_as(I);if(e.sti_is(h)&&this.allowUseFont){var s=e.sti_as(h);s.font=this.font.clone().sti_as(l)}if(e.sti_is(g)&&(this.allowUseBorderFormatting||this.allowUseBorderSides)&&null==n){var s=e.sti_as(g),c=s.border.side;this.allowUseBorderFormatting&&(s.border=this.border.clone().sti_as(o),s.border.side=c),this.allowUseBorderSides&&(this.allowUseBorderSidesFromLocation&&null!=e.parent?s.border.side=i.StiStylesHelper.getBorderSidesFromLocation(e):s.border.side=this.border.side)}if(e.sti_is(m)&&this.allowUseBrush){var s=e.sti_as(m);s.brush=this.brush.clone().sti_as(a)}if(e.sti_is(d)&&this.allowUseTextBrush){var s=e.sti_as(d);s.textBrush=this.textBrush.clone().sti_as(a)}if(e.sti_is(S)&&this.allowUseBrush){var s=e.sti_as(S);s.backColor=a.toColor(this.brush)}if(e.sti_is(f)&&this.allowUseTextBrush){var s=e.sti_as(f);s.foreColor=a.toColor(this.textBrush)}if(e.sti_is(y)&&this.allowUseHorAlignment){var s=e.sti_as(y);s.horAlignment=this.horAlignment}if(e.sti_is(r)&&this.allowUseTextOptions)var s=e.sti_as(r);if(e.sti_is(b)&&this.allowUseHorAlignment){var s=e.sti_as(b);switch(this.horAlignment){case u.Center:s.horAlignment=v.Center;break;case u.Left:s.horAlignment=v.Left;break;case u.Right:s.horAlignment=v.Right;break}}if(e.sti_is(C)&&this.allowUseVertAlignment){var s=e.sti_as(C);s.vertAlignment=this.vertAlignment}if(e.sti_is(A)&&this.allowUseImage){var s=e.sti_as(A);s.image=this.image}null!=n&&this.allowUseBorderFormatting&&(n.color=this.border.color,n.size=this.border.size,n.style=this.border.style)},Object.defineProperty(R.prototype,"image",{get:function(){return this._image},set:function(t){this._image!=t&&(this._image=t)},enumerable:!0,configurable:!0}),R}(i.StiBaseStyle);i.StiStyle=B}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(i){var r=t.System.Collections.CollectionBase,n=t.System.Collections.Hashtable,o=t.Base.JsonReportObject.IStiJsonReportObject,a=t.Base.StiJson,s=function(r){function s(t){void 0===t&&(t=null);var e=r.call(this)||this;return e.report=null,e.hash=new n,e.needUpdateHash=!0,e.lastCount=-1,e.report=t,e.needUpdateHash=!0,e}return __extends(s,r),s.prototype.implements=function(){return[o]},s.prototype.saveToJsonObject=function(t){if(0==this.list.count)return null;for(var e=new a,i=0,r=0,n=this.list;r<n.length;r++){var o=n[r];e.addPropertyJObject(i.toString(),o.saveToJsonObject(t)),i++}return e},s.prototype.loadFromJsonObject=function(t){for(var r=0,n=t.properties();r<n.length;r++){var o=n[r],a=o.value,s=a.properties().firstOrDefault(function(t){return"Ident"==t.name}).value,l=null;switch(s){case"StiChartStyle":l=new i.StiChartStyle;break;case"StiGaugeStyle":l=new e.StiGaugeStyle;break;case"StiCrossTabStyle":l=new i.StiCrossTabStyle;break;case"StiDialogStyle":l=new i.StiDialogStyle;break;case"StiStyle":l=new i.StiStyle;break;case"StiMapStyle":l=new i.StiMapStyle;break}l.loadFromJsonObject(a),this.list.add(l)}},s.prototype.loadFromXml=function(e){for(var i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];if(null==r.attributes)continue;if(null!=r.attributes.getNamedItem("type"))switch(r.attributes.getNamedItem("type").value){case"Stimulsoft.Report.StiStyle":var n=new t.Report.Styles.StiStyle;n.loadFromXml(r),this.list.add(n);break;case"Stimulsoft.Report.StiChartStyle":var o=new t.Report.Styles.StiChartStyle;o.loadFromXml(r),this.list.add(o);break;case"Stimulsoft.Report.StiCrossTabStyle":var a=new t.Report.Styles.StiCrossTabStyle;a.loadFromXml(r),this.list.add(a);break;case"Stimulsoft.Report.StiDialogStyle":var s=new t.Report.Styles.StiDialogStyle;s.loadFromXml(r),this.list.add(s);break}}},s.prototype.add=function(t){this.list.add(t),this.hash.set(t.name.toLower(),t),t.report=this.report},s.prototype.clear=function(){r.prototype.clear.call(this),this.hash.clear(),this.needUpdateHash=!0},s.prototype.addRange=function(t){for(var e=t.sti_is(s)?t.list:t,i=0,r=e;i<r.length;i++){var n=r[i];this.add(n)}},s.prototype.contains=function(t){if(this.updateHash(),null==t)return!1;return this.hash.contains(t.sti_is(i.StiBaseStyle)?t.name.toLower():t.toLower())},s.prototype.indexOf=function(t){return this.list.indexOf(t)},s.prototype.insert=function(t,e){this.list.insert(t,e),this.hash.set(e.name.toLower(),e)},s.prototype.remove=function(t){this.list.remove(t),this.hash.remove(t.name.toLower())},s.prototype.getByIndex=function(t){return this.list[t]},s.prototype.setByIndex=function(t,e){this.list[t]=e,this.needUpdateHash=!0},s.prototype.getByName=function(t){if(this.updateHash(),this.hash.contains(t.toLower()))return this.hash.get(t.toLower());for(var e=0,i=this.list;e<i.length;e++){var r=i[e];if(r.name.toLower()==t.toLower())return r}return null},s.prototype.setByName=function(t,e){for(var i=0;i<this.list.count;i++)if(this.list[i].name.toLower()==t.toLower())return this.list[i]=e,void(this.needUpdateHash=!0);this.list.add(e)},s.prototype.updateHash=function(){if(this.lastCount!=this.count&&(this.lastCount=this.count,this.needUpdateHash=!0),this.needUpdateHash){this.hash.clear();for(var t=0,e=this.list;t<e.length;t++){var i=e[t];this.hash.set(i.name.toLower(),i)}this.needUpdateHash=!1}},s.prototype.toList=function(){for(var t=[],e=0,i=this.list;e<i.length;e++){var r=i[e];t.add(r)}return t},s}(r);i.StiStylesCollection=s}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Dictionary.StiFunctionsStrings,r=t.Report.Styles.StiStyle,n=t.Report.StiNestedFactor,o=t.Base.Drawing.StiSolidBrush,a=t.System.Drawing.FontStyle,s=t.Report.Styles.StiStyleConditionOperation,l=t.Base.Localization.StiLocalization,u=t.Report.Styles.StiStyleComponentPlacement,c=t.System.Drawing.Font,p=t.Report.Styles.StiStyleComponentType,h=t.Base.Drawing.StiPenStyle,g=t.Base.Drawing.StiBorderSides,m=t.Base.Drawing.StiBorder,d=t.Base.Drawing.StiColorUtils,S=t.System.Drawing.Color,f=t.Report.Styles.Conditions.Elements.StiStyleConditionPlacementNestedLevelElement,y=t.Report.Styles.Conditions.Elements.StiStyleConditionComponentTypeElement,b=t.Report.Styles.Conditions.Elements.StiStyleConditionPlacementElement,C=function(){function t(t){this._showReportTitles=!0,this._showReportSummaries=!0,this._showPageHeaders=!0,this._showPageFooters=!0,this._showGroupHeaders=!0,this._showGroupFooters=!0,this._showHeaders=!0,this._showDatas=!0,this._showFooters=!0,this._showBorders=!0,this._maxNestedLevel=3,this._nestedFactor=n.Normal,this.report=t}return Object.defineProperty(t.prototype,"showReportTitles",{get:function(){return this._showReportTitles},set:function(t){this._showReportTitles=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showReportSummaries",{get:function(){return this._showReportSummaries},set:function(t){this._showReportSummaries=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageHeaders",{get:function(){return this._showPageHeaders},set:function(t){this._showPageHeaders=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageFooters",{get:function(){return this._showPageFooters},set:function(t){this._showPageFooters=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showGroupHeaders",{get:function(){return this._showGroupHeaders},set:function(t){this._showGroupHeaders=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showGroupFooters",{get:function(){return this._showGroupFooters},set:function(t){this._showGroupFooters=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHeaders",{get:function(){return this._showHeaders},set:function(t){this._showHeaders=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showDatas",{get:function(){return this._showDatas},set:function(t){this._showDatas=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showFooters",{get:function(){return this._showFooters},set:function(t){this._showFooters=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showBorders",{get:function(){return this._showBorders},set:function(t){this._showBorders=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorFactor",{get:function(){if(this.nestedFactor==n.High)return 1.5;if(this.nestedFactor==n.Normal)return 1;return.5},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxNestedLevel",{get:function(){return this._maxNestedLevel},set:function(t){this._maxNestedLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nestedFactor",{get:function(){return this._nestedFactor},set:function(t){this._nestedFactor=t},enumerable:!0,configurable:!0}),t.prototype.createStyles=function(t,e){e==S.fromArgb(0,0,0,0)&&(e=S.white);var r=(e.r+e.g+e.b)/3,n=d.dark(e,100*this.colorFactor),f=new m(g.None,n,1,h.Solid),y=p.Text|p.Image|p.Primitive|p.CheckBox,b=[];if(this.showReportTitles){var C=new c("Arial",14,a.Bold),v=r>150?d.dark(e,200):e,I=new o(S.transparent),A=new o(v),w=i.toProperCase(l.get("Components","StiReportTitleBand")).replaceAll(" ","_"),T=String.stiFormat("{0}_{1}1",t,w);this.createStyles1(T,this.showBorders,C,I,A,f,y,u.ReportTitle,1,s.EqualTo,b),C=new c("Arial",10,a.Bold);var B=String.stiFormat("{0}_{1}2",t,w);this.createStyles1(B,this.showBorders,C,I,A,f,y,u.ReportTitle,2,s.GreaterThanOrEqualTo,b)}if(this.showReportSummaries){var R=new c("Arial",12,a.Bold),v=r>150?d.dark(e,200):e,P=new o(S.transparent),F=new o(v),x=i.toProperCase(l.get("Components","StiReportSummaryBand")).replaceAll(" ","_"),D=String.stiFormat("{0}_{1}1",t,x);this.createStyles1(D,this.showBorders,R,P,F,f,y,u.ReportSummary,1,s.EqualTo,b),R=new c("Arial",10,a.Bold);var k=String.stiFormat("{0}_{1}2",t,x);this.createStyles1(k,this.showBorders,R,P,F,f,y,u.ReportSummary,2,s.GreaterThanOrEqualTo,b)}if(this.showPageHeaders){var E=new c("Arial",10),v=r>150?d.dark(e,200):e,G=new o(S.transparent),_=new o(v),L=i.toProperCase(l.get("Components","StiPageHeaderBand")).replaceAll(" ","_");L=String.stiFormat("{0}_{1}",t,L),this.createStyles1(L,this.showBorders,E,G,_,f,y,u.PageHeader,null,null,b)}if(this.showPageFooters){var N=new c("Arial",10),v=r>150?d.dark(e,200):e,O=new o(S.transparent),Z=new o(v),M=i.toProperCase(l.get("Components","StiPageFooterBand")).replaceAll(" ","_");M=String.stiFormat("{0}_{1}",t,M),this.createStyles1(M,this.showBorders,N,O,Z,f,y,u.PageFooter,null,null,b)}if(this.showGroupHeaders)for(var H=4/this.maxNestedLevel,v=r>150?d.dark(e,150):e,W=new o(v),V=1;V<=this.maxNestedLevel;V++){var Y=Math.trunc(H*(V-1)),j=new c("Arial",13-Y,a.Bold),X=new o(S.transparent),J=V==this.maxNestedLevel?s.GreaterThanOrEqualTo:s.EqualTo,K=i.toProperCase(l.get("Components","StiGroupHeaderBand")).replaceAll(" ","_");K=String.stiFormat("{0}_{1}{2}",t,K,V),this.createStyles1(K,this.showBorders,j,X,W,f,y,u.GroupHeader,V,J,b)}if(this.showGroupFooters)for(var H=4/this.maxNestedLevel,v=r>150?d.dark(e,150):e,U=new o(v),V=1;V<=this.maxNestedLevel;V++){var Y=Math.trunc(H*(V-1)),z=new c("Arial",13-Y,a.Bold),Q=new o(S.transparent),J=0==V?s.GreaterThanOrEqualTo:s.EqualTo,q=i.toProperCase(l.get("Components","StiGroupFooterBand")).replaceAll(" ","_");q=String.stiFormat("{0}_{1}{2}",t,q,V),this.createStyles1(q,this.showBorders,z,Q,U,f,y,u.GroupFooter,V,J,b)}if(this.showHeaders){var $=100/this.maxNestedLevel,tt=new c("Arial",8,a.Bold),v=d.dark(e,200),et=new o(v);f.topmost=!0;for(var V=1;V<=this.maxNestedLevel;V++){var it=Math.trunc($*(V-1)*this.colorFactor);it>255&&(it=255);var rt=new o(d.light(e,it)),J=V==this.maxNestedLevel?s.GreaterThanOrEqualTo:s.EqualTo,nt=i.toProperCase(l.get("Components","StiHeaderBand")).replaceAll(" ","_");nt=String.stiFormat("{0}_{1}{2}",t,nt,V),this.createStyles1(nt,this.showBorders,tt,rt,et,f,y,u.Header,V,J,b)}}if(this.showDatas)for(var $=60/this.maxNestedLevel,ot=new c("Arial",8),v=d.dark(e,200),at=new o(v),V=1;V<=this.maxNestedLevel;V++){var it=Math.trunc((150+$*(V-1))*this.colorFactor);it>255&&(it=255);var st=new o(d.light(e,it)),lt=new o(d.light(e,.5*it)),J=V==this.maxNestedLevel?s.GreaterThanOrEqualTo:s.EqualTo,ut=i.toProperCase(l.get("Components","StiDataBand")).replaceAll(" ","_");ut=String.stiFormat("{0}_{1}{2}",t,ut,V),this.createStyles1(ut,this.showBorders,ot,new o(S.transparent),at,f,y,u.Data,V,J,b),ut=i.toProperCase(l.get("Components","StiDataBand")).replaceAll(" ","_");var ct=l.get("PropertyMain","OddStyle");ut=String.stiFormat("{0}_{1}{2}_{3}",t,ut,V,ct),this.createStyles1(ut,this.showBorders,ot,st,at,f,null,u.DataOddStyle,V,J,b),ut=i.toProperCase(l.get("Components","StiDataBand")).replaceAll(" ","_");var pt=l.get("PropertyMain","EvenStyle");ut=String.stiFormat("{0}_{1}{2}_{3}",t,ut,V,pt),this.createStyles1(ut,this.showBorders,ot,lt,at,f,null,u.DataEvenStyle,V,J,b)}if(this.showFooters)for(var $=100/this.maxNestedLevel,ht=new c("Arial",8),v=d.dark(e,200),gt=new o(v),V=1;V<=this.maxNestedLevel;V++){var it=Math.trunc(($*(V-1)+20)*this.colorFactor);it>255&&(it=255);var mt=new o(d.light(e,it)),J=0==V?s.GreaterThanOrEqualTo:s.EqualTo,dt=i.toProperCase(l.get("Components","StiFooterBand")).replaceAll(" ","_");dt=String.stiFormat("{0}_{1}{2}",t,dt,V),this.createStyles1(dt,this.showBorders,ht,mt,gt,f,y,u.Footer,V,J,b)}for(var St=0,ft=b;St<ft.length;St++){ft[St].collectionName=t}return b},t.prototype.createStyles1=function(t,e,i,r,n,o,a,s,l,u,c){for(var p=this.createStyles2(t,i,r,n,o,s,l,u,a,e),h=0,g=p;h<g.length;h++){var m=g[h];c.add(m)}return p},t.prototype.createStyles2=function(t,e,i,r,n,o,a,s,l,c){var p=[];n=new m(g.None,n.color,n.size,n.style,n.dropShadow,n.shadowSize,n.shadowBrush,n.topmost);var h=this.createStyle(t,e,i,r,n,o,a,s,l);return o==u.ReportTitle||o==u.ReportSummary||o==u.PageFooter||o==u.PageHeader?h.allowUseBorderSidesFromLocation=!1:h.allowUseBorderSidesFromLocation=c,p.add(h),p},t.prototype.createStyle=function(t,e,i,n,o,a,s,l,u){var c=new r(this.getStyleName(t));c.font=e,c.brush=i,c.textBrush=n,c.border=o;var p=[];return null!=l&&null!=s&&p.add(new f(s,l)),null!=u&&p.add(new y(u)),p.add(new b(a)),c.conditions.add(p.toArray()),c},t.prototype.getStyleName=function(t){var e=t,i=2;while(!0){for(var r=!1,n=0,o=this.report.styles.list;n<o.length;n++){if(o[n].name==e){r=!0;break}}if(!r)return e;e=String.stiFormat("{0}_{1}",t,i),i++}},t}();e.StiStylesCreator=C}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.Base.Drawing.StiBorderSides,r=function(){function t(){}return t.getBorderSidesFromLocation=function(t){var e=i.None,r=Math.round(t.page.unit.convertToHInches(t.left)/10,0),n=Math.round(t.page.unit.convertToHInches(t.top)/10,0),o=Math.round(t.page.unit.convertToHInches(t.width)/10,0),a=Math.round(t.page.unit.convertToHInches(t.height)/10,0),s=Math.round(t.page.unit.convertToHInches(t.parent.width)/10,0),l=Math.round(t.page.unit.convertToHInches(t.parent.height)/10,0),u=Math.round(t.page.unit.convertToHInches(t.left+t.width)/10,0),c=Math.round(t.page.unit.convertToHInches(t.top+t.height)/10,0);return r<=0&&(e|=i.Left),n<=0&&(e|=i.Top),u>=s&&(e|=i.Right),c>=l&&(e|=i.Bottom),e},t}();e.StiStylesHelper=r}(i=e.Styles||(e.Styles={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i;!function(e){var i=t.System.Drawing.Rectangle,r=t.System.Drawing.Size,n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"rulerStep",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"factor",{get:function(){return 100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shortName",{get:function(){return"in"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return"Inches"},enumerable:!0,configurable:!0}),e.prototype.convertToHInches=function(e){if(e.sti_is(i))return t.prototype.convertRectangleToHInches.call(this,e);if(e.sti_is(r))return t.prototype.convertSizeToHInches.call(this,e);return 100*e},e.prototype.convertFromHInches=function(e){if(e.sti_is(i))return t.prototype.convertRectangleFromHInches.call(this,e);if(e.sti_is(r))return t.prototype.convertSizeFromHInches.call(this,e);return e/100},e}(e.StiUnit);e.StiInchesUnit=n}(i=e.Units||(e.Units={}))}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){t.IStiIgnoryStyle="IStiIgnoryStyle"}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){t.IStiInherited="IStiInherited"}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){t.IStiName="IStiName"}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){t.IStiStateSaveRestore="IStiStateSaveRestore"}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(t){this.rows=new i,this.distX=0,this.distY=0,this.report=t}return t.prototype.clear=function(){this.rows.clear()},t.prototype.getRow=function(t){var e=this.rows.get(t);return null==e&&(e=new i,this.rows.set(t,e)),e},t.prototype.gett=function(t,e){var i=this.getRow(e+this.distY);return i.containsKey(t+this.distX)?i.get(t+this.distX):0},t.prototype.setCell=function(t,e,i){this.getRow(e).set(t,i)},t}();e.StiCells=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Components.StiConditionsCollection,r=t.System.Collections.Hashtable,n=function(){function e(){}return e.getConditions=function(e,n){void 0===n&&(n={ref:r});for(var o=n.ref,a=new i,s=0,l=e.list;s<l.length;s++){var u=l[s],c=u.conditions;if(c.count>0){for(var p=0,h=c.list;p<h.length;p++){var g=h[p],m=t.System.Guid.newGuid().toString().replaceAll("-","");g.tag=m,o.add(m,u)}a.addRange(c)}}return a},e.setConditions=function(t,e,i){for(var r=0,n=t.list;r<n.length;r++){n[r].conditions.clear()}for(var o=0,a=e.list;o<a.length;o++){var s=a[o];if(null!=s.tag&&i.contains(s.tag)){var l=s.clone();l.tag=null,i.get(s.tag).conditions.add(l)}else this.setConditionAllComponents(s,t)}},e.setConditionAllComponents=function(t,e){for(var i=0,r=e.list;i<r.length;i++){var n=r[i],o=t.clone();o.tag=null,n.conditions.add(o)}},e}();e.StiConditionsHelper=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e=function(){function t(){}return Object.defineProperty(t,"deviceCapsDpi",{get:function(){return 0==this._deviceCapsDpi&&(StiOptions.Engine.fullTrust?this.getDpi():(this._deviceCapsDpi=96,this._graphicsDpi=96,this._graphicsRichTextDpi=96)),this._deviceCapsDpi},enumerable:!0,configurable:!0}),Object.defineProperty(t,"graphicsDpi",{get:function(){return 0==this._graphicsDpi&&(StiOptions.Engine.fullTrust?this.getDpi():(this._deviceCapsDpi=96,this._graphicsDpi=96,this._graphicsRichTextDpi=96)),this._graphicsDpi},enumerable:!0,configurable:!0}),Object.defineProperty(t,"graphicsRichTextDpi",{get:function(){return 0==this._graphicsRichTextDpi&&(StiOptions.Engine.fullTrust?this.getDpi():(this._deviceCapsDpi=96,this._graphicsDpi=96,this._graphicsRichTextDpi=96)),this._graphicsRichTextDpi},enumerable:!0,configurable:!0}),t.getDpi=function(){if((this._deviceCapsDpi<70||this._deviceCapsDpi>600)&&(this._deviceCapsDpi=96),(this._graphicsDpi<70||this._graphicsDpi>600)&&(this._graphicsDpi=96),this._graphicsRichTextDpi=this._graphicsDpi,96==this._deviceCapsDpi&&96==this._graphicsDpi){var t=this.getRegistryValue();96!=t&&t>32&&t<300&&(this._graphicsRichTextDpi=t)}},t.getRegistryValue=function(){var t=null;return 0},Object.defineProperty(t,"deviceCapsScale",{get:function(){if(StiOptions.Engine.dpiAware){var t=this._deviceCapsDpi;if(96!=t)return 96/t}return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"graphicsScale",{get:function(){if(StiOptions.Engine.dpiAware){var t=this._graphicsDpi;if(96!=t)return 96/t}return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"graphicsRichTextScale",{get:function(){if(StiOptions.Engine.dpiAware){var t=this._graphicsRichTextDpi;if(96!=t)return 96/t}return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"needDeviceCapsScale",{get:function(){return 96!=this.deviceCapsDpi},enumerable:!0,configurable:!0}),Object.defineProperty(t,"needGraphicsScale",{get:function(){return 96!=this.graphicsDpi},enumerable:!0,configurable:!0}),Object.defineProperty(t,"needGraphicsRichTextScale",{get:function(){return 96!=this.graphicsRichTextDpi},enumerable:!0,configurable:!0}),t.LOGPIXELSX=88,t.LOGPIXELSY=90,t._deviceCapsDpi=0,t._graphicsDpi=0,t._graphicsRichTextDpi=0,t}();t.StiDpiHelper=e}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(t){var e=function(){function t(t,e,i,r){this._pageIndex=-1,this._position=-1,this._componentName=null,this._textValue=null,this.pageIndex=t,this.position=e,this.componentName=i,this.textValue=r}return Object.defineProperty(t.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){this._pageIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){this._position=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentName",{get:function(){return this._componentName},set:function(t){this._componentName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textValue",{get:function(){return this._textValue},set:function(t){this._textValue=t},enumerable:!0,configurable:!0}),t}();t.StiEditableItem=e;var i=function(){function t(){this._items=new Array}return Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),t}();t.StiEditableItemsContainer=i}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Collections.Hashtable,r=function(){function r(t,r,n,o,a){void 0===r&&(r=!1),void 0===n&&(n=e.ImageFormat.Bmp),void 0===o&&(o=1),void 0===a&&(a=!1),this.imageStore=null,this.imagePackedStore=null,this.imageMaskStore=null,this.imageIndex=null,this.imageFormatStore=null,this.imageHashTable=null,this._useImageComparer=!0,this._useImageCompression=!1,this._useImageTransparency=!1,this._imageSaveFormat=e.ImageFormat.Bmp,this._imageQuality=1,this.imageStore=new Array,this.imagePackedStore=new Array,this.imageMaskStore=new Array,this.imageIndex=new Array,this.imageFormatStore=new Array,this.imageHashTable=new i,this._useImageComparer=t,this._useImageCompression=r,this._useImageTransparency=a,this._imageSaveFormat=n,this._imageQuality=o}return r.prototype.clear=function(){this.imageStore.clear(),this.imageStore=null,this.imagePackedStore.clear(),this.imagePackedStore=null,this.imageMaskStore.clear(),this.imageMaskStore=null,this.imageIndex.clear(),this.imageIndex=null,this.imageFormatStore.clear(),this.imageFormatStore=null,this.imageHashTable.clear(),this.imageHashTable=null},r.prototype.addImageIntRaw=function(i,r){var n=e.ImageFormat.Jpeg;switch(r){case t.System.Drawing.Imaging.ImageFormat.Gif:n=e.ImageFormat.Gif;break;case t.System.Drawing.Imaging.ImageFormat.Png:n=e.ImageFormat.Png;break;case t.System.Drawing.Imaging.ImageFormat.Bmp:n=e.ImageFormat.Bmp;break}return this.addImageInt(i,n)},r.prototype.addImageInt=function(t,e){void 0===e&&(e=null),null==e&&(e=this._imageSaveFormat);var i=this.imageStore.count,n=null,o=null,a=t.width,s=t.height;if((this._useImageComparer||this._useImageCompression)&&(n=t.bytes),this._useImageComparer&&null!=n){i=r.crcSeed;var l=0,u=n.length;while(--u>=0)i=r.crcTable[255&(i^n[l++])]^i>>8;i^=r.crcSeed}this._useImageCompression?t=null:n=null;var c=-1;return this.imageHashTable.containsKey(i)?c=this.imageHashTable.get(i):(c=this.imageStore.count,this.imageStore.add(t),this.imagePackedStore.add(n),this.imageMaskStore.add(o),this.imageHashTable.add(i,c),this.imageFormatStore.add(e)),this.imageIndex.add(c),n=null,o=null,c},r.crcSeed=4294967295,r.crcTable=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],r}();e.StiImageCache=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Globalization.CultureInfo,r=function(){function t(){this._culture=i.currentCulture}return Object.defineProperty(t.prototype,"culture",{get:function(){return this._culture},set:function(t){this._culture=t},enumerable:!0,configurable:!0}),t.prototype.getString=function(t){return t},t.prototype.getObject=function(t){return null},t}();e.StiNullGlobalizationManager=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Data.DBNull,r=t.Report.Dictionary.StiDataColumn,n=function(){function t(){}return t.isNull=function(t,e){var n=r.getDataFromDataColumn(t.dictionary,e);return null==n||n==i.value},t}();e.StiNullValuesHelper=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var StiOptions;!function(t){Stimulsoft.StiOptions=t;var e=Stimulsoft.System.Drawing.ColorTranslator,i=Stimulsoft.Report.Dictionary.StiColumnsSynchronizationMode,r=Stimulsoft.Report.Export.StiWord2007RestrictEditing,n=Stimulsoft.System.Drawing.FontStyle,o=Stimulsoft.System.Drawing.Font,a=Stimulsoft.Base.Drawing.StiSolidBrush,s=Stimulsoft.System.Drawing.Color,l=Stimulsoft.Report.Styles.StiStyle,u=Stimulsoft.Report.Components.StiTextQuality,c=Stimulsoft.Report.StiNamingRule,p=Stimulsoft.Report.Dictionary.StiAutoSynchronizeMode,h=Stimulsoft.Report.Dictionary.StiPropertiesProcessingType,g=Stimulsoft.Report.Dictionary.StiFieldsProcessingType,m=Stimulsoft.Report.Export.StiExcel2007RestrictEditing,d=Stimulsoft.Base.Drawing.StiTextHorAlignment,S=Stimulsoft.Base.Drawing.StiVertAlignment,f=Stimulsoft.Report.Export.StiExportUtils,y=Stimulsoft.Report.StiArabicDigitsType,b=Stimulsoft.Report.Export.StiPdfAutoPrintMode,C=function(){function t(){this.styleColors=[s.white,s.darkGray,s.peachPuff,s.plum,s.lightCoral,s.skyBlue,s.lightSeaGreen,s.lightGreen,s.yellowGreen,s.wheat,s.khaki,e.fromHtml("#0bac45"),e.fromHtml("#b5a1dd"),e.fromHtml("#ffc000"),e.fromHtml("#ed7d31"),e.fromHtml("#239fd9")]}return t}();t.CrossTab2=C;var v=function(){function t(){}return Object.defineProperty(t,"styles",{get:function(){if(null==t._styles){t._styles=new Stimulsoft.Report.Styles.StiStylesCollection;var e=new l("Normal","Normal");e.brush=new a(s.transparent),e.textBrush=new a(s.black),t._styles.add(e),e=new l("Bad","Bad"),e.brush=new a(s.fromArgb(255,255,199,206)),e.textBrush=new a(s.fromArgb(255,208,55,5)),t._styles.add(e),e=new l("Good","Good"),e.brush=new a(s.fromArgb(255,198,239,206)),e.textBrush=new a(s.fromArgb(255,0,97,94)),t._styles.add(e),e=new l("Neutral","Neutral"),e.brush=new a(s.fromArgb(255,255,235,156)),e.textBrush=new a(s.fromArgb(255,174,127,43)),t._styles.add(e),e=new l("Warning","Warning"),e.brush=new a(s.transparent),e.textBrush=new a(s.red),e.font=new o("Arial",8,n.Bold),t._styles.add(e),e=new l("Note","Note"),e.brush=new a(s.fromArgb(255,255,255,204)),e.textBrush=new a(s.black),t._styles.add(e)}return t._styles},enumerable:!0,configurable:!0}),t.useComponentPlacementOptimization=!0,t.autoCorrectDataSourceName=!1,t.autoCorrectDataRelationName=!1,t.autoCorrectDataColumnName=!1,t.autoCorrectComponentName=!1,t.autoCorrectReportName=!1,t.autoLargeHeight=!0,t.sortDictionaryByAliases=!1,t.Editors={allowConnectToDataInGallery:!1},t.CrossTab=new C,t}();t.Designer=v;var I=function(){function t(){this.useImageCloning=!0}return t}();t.Image=I;var A=function(){function t(){this.allowExpression=!0}return t}();t.Watemark=A;var w=function(){function t(){this.defaultWidth=5,this.defaultHeight=5}return t}();t.CrossTab=w;var T=function(){function t(){this.allowUseText=!0,this.allowUseTag=!0,this.allowUseToolTip=!0,this.allowUseHyperlink=!0}return t}();t.Globalization=T;var B=function(){function t(){}return t.Image=new I,t.Watermark=new A,t.printIfDetailEmptyDefaultValue=!1,t.fullTrust=!0,t.allowUseResetMethodInBusinessObject=!0,t.allowResetValuesAtComponent=!0,t.useAdvancedPrint=!1,t.defaultTextQualityMode=u.Standard,t.forceGenerationLocalizedName=!1,t.useAdvancedPrintOnEngine=!1,t.forceGenerationNonLocalizedName=!1,t.forceNewPageForExtraColumns=!0,t.useRoundForToCurrencyWordsFunctions=!0,t.useTemplateForPagePrintEvents=!0,t.namingRule=c.Advanced,t.useCheckSizeForContinuedContainers=!0,t.emulateData=!1,t.allowCacheForGetActualSize=!0,t.allowBreakContainerOptimization=!0,t.removeBottomBorderOfSplitContainer=!1,t.usePrintOnAllPagesPropertyOfHeadersInSubreports=!0,t.useParentStylesOldMode=!1,t.useCollateOldMode=!1,t.dpiAware=!0,t.dockPageFooterToBottom=!0,t.defaultValueOfAllowApplyStyleProperty=!0,t.allowFixPieChartMarkerAlignment=!0,t.applyStylesInAutoSeries=!0,t.allowInvokeProcessChartEventForTemplateOfChart=!1,t.allowInteractionInChartWithComponents=!1,t.dontSaveDataSourceBeforeChartRendering=!1,t.measureTrailingSpaces=!1,t.renderExternalSubReportsWithHelpOfUnlimitedHeightPages=!0,t.escapeQueryParameters=!0,t.optimizeDetailDataFiltering=!0,t.CrossTab=new w,t.printIfDetailEmptyNesting=!1,t.allowForceCanBreakForCrossTabPrintOnAllPages=!0,t.Globalization=new T,t}();t.Engine=B;var R=function(){function t(){}return t.customPaperSizes=null,t.allowUsePaperSizesFromPrinterSettings=!0,t}();t.Print=R;var P=function(){function t(){this.columnsSynchronizationMode=i.KeepAbsentColumns}return t.allowUseDataColumn=!0,t.allowUseProperties=!0,t.propertiesProcessingType=h.Browsable,t.fieldsProcessingType=g.Browsable,t}();t.BusinessObjects=P;var F=function(){function t(){}return t.BusinessObjects=new P,t.showOnlyAliasForDatabase=!1,t.showOnlyAliasForData=!1,t.showOnlyAliasForDataColumn=!0,t.showOnlyAliasForDataRelation=!1,t.hideRelationExceptions=!1,t.autoSynchronize=p.Always,t.useAdvancedDataSearch=!0,t.showOnlyAliasForDataSource=!0,t.allowRestConnections=!0,t.allowConnectToFirstTableForEmptyDataSource=!0,t.useNullableDateTime=!1,t.useNullableTimeSpan=!1,t.columnsSynchronizationMode=i.KeepAbsentColumns,t.showOnlyAliasForResource=!1,t}();t.Dictionary=F;var x=function(){function e(){}return Object.defineProperty(e,"components",{get:function(){if(null!=this._components)return this._components;return this._components=[],this._components.add(Stimulsoft.Report.Components.StiReportTitleBand),this._components.add(Stimulsoft.Report.Components.StiReportSummaryBand),this._components.add(Stimulsoft.Report.Components.StiPageHeaderBand),this._components.add(Stimulsoft.Report.Components.StiPageFooterBand),this._components.add(Stimulsoft.Report.Components.StiGroupHeaderBand),this._components.add(Stimulsoft.Report.Components.StiGroupFooterBand),this._components.add(Stimulsoft.Report.Components.StiHeaderBand),this._components.add(Stimulsoft.Report.Components.StiFooterBand),this._components.add(Stimulsoft.Report.Components.StiColumnHeaderBand),this._components.add(Stimulsoft.Report.Components.StiColumnFooterBand),this._components.add(Stimulsoft.Report.Components.StiHierarchicalBand),this._components.add(Stimulsoft.Report.Components.StiEmptyBand),this._components.add(Stimulsoft.Report.Components.StiOverlayBand),this._components.add(Stimulsoft.Report.Components.StiDataBand),this._components.add(Stimulsoft.Report.Components.Table.StiTable),this._components.add(Stimulsoft.Report.Components.Table.StiTableCell),this._components.add(Stimulsoft.Report.Components.Table.StiTableCellCheckBox),this._components.add(Stimulsoft.Report.Components.Table.StiTableCellImage),this._components.add(Stimulsoft.Report.Components.Table.StiTableCellRichText),this._components.add(Stimulsoft.Report.Components.StiPage),this._components.add(Stimulsoft.Report.Components.StiPanel),this._components.add(Stimulsoft.Report.Components.StiContainer),this._components.add(Stimulsoft.Report.Components.StiCheckBox),this._components.add(Stimulsoft.Report.Components.StiChildBand),this._components.add(Stimulsoft.Report.Components.StiText),this._components.add(Stimulsoft.Report.Components.StiImage),this._components.add(Stimulsoft.Report.Components.StiRichText),this._components.add(Stimulsoft.Report.Components.StiShape),this._components.add(Stimulsoft.Report.Components.StiSubReport),this._components.add(Stimulsoft.Report.Components.StiHorizontalLinePrimitive),this._components.add(Stimulsoft.Report.Components.StiVerticalLinePrimitive),this._components.add(Stimulsoft.Report.Components.StiRectanglePrimitive),this._components.add(Stimulsoft.Report.Components.StiRoundedRectanglePrimitive),this._components.add(Stimulsoft.Report.Components.StiStartPointPrimitive),this._components.add(Stimulsoft.Report.Components.StiEndPointPrimitive),this._components.add(Stimulsoft.Report.Components.StiCrossDataBand),this._components.add(Stimulsoft.Report.Components.StiCrossFooterBand),this._components.add(Stimulsoft.Report.Components.StiCrossGroupFooterBand),this._components.add(Stimulsoft.Report.Components.StiCrossGroupHeaderBand),this._components.add(Stimulsoft.Report.Components.StiCrossHeaderBand),this._components.add(Stimulsoft.Report.BarCodes.StiBarCode),this._components.add(Stimulsoft.Report.CrossTab.StiCrossTab),this._components.add(Stimulsoft.Report.CrossTab.StiCrossColumn),this._components.add(Stimulsoft.Report.CrossTab.StiCrossTotal),this._components.add(Stimulsoft.Report.CrossTab.StiCrossRowTotal),this._components.add(Stimulsoft.Report.CrossTab.StiCrossColumnTotal),this._components.add(Stimulsoft.Report.CrossTab.StiCrossRow),this._components.add(Stimulsoft.Report.CrossTab.StiCrossSummary),this._components.add(Stimulsoft.Report.CrossTab.StiCrossTitle),this._components.add(Stimulsoft.Report.CrossTab.StiCrossSummaryHeader),Stimulsoft.Report.Components.StiChart&&this._components.add(Stimulsoft.Report.Components.StiChart),this._components.add(Stimulsoft.Report.Maps.StiMap),Stimulsoft.Report.Components.StiGauge&&this._components.add(Stimulsoft.Report.Components.StiGauge),this._components},enumerable:!0,configurable:!0}),Object.defineProperty(e,"databases",{get:function(){if(null!=this._databases)return this._databases;return this._databases=[],this._databases.add(new Stimulsoft.Report.Dictionary.StiFirebirdDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiMySqlDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiOracleDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiPostgreSQLDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiSqlDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiODataDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiCsvDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiExcelDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiJsonDatabase),this._databases.add(new Stimulsoft.Report.Dictionary.StiXmlDatabase),this._databases},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dataAdapters",{get:function(){if(null!=this._dataAdapters)return this._dataAdapters;return this._dataAdapters=[],this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiFirebirdAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiMySqlAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiOracleAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiPostgreSQLAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiSqlAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiODataAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiVirtualAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiCsvAdapterService),this._dataAdapters.add(new Stimulsoft.Report.Dictionary.StiDataTableAdapterService),this._dataAdapters},enumerable:!0,configurable:!0}),Object.defineProperty(e,"dataSource",{get:function(){if(null!=this._dataSource)return this._dataSource;return this._dataSource=[],this._dataSource.add(new Stimulsoft.Report.Dictionary.StiDataTableSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiCsvSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiVirtualSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiFirebirdSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiODataSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiMySqlSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiOracleSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiPostgreSQLSource),this._dataSource.add(new Stimulsoft.Report.Dictionary.StiSqlSource),this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e,"formats",{get:function(){if(null==this._formats)return this._formats;return this._formats=[],this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiBooleanFormatService),this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiNumberFormatService),this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiCurrencyFormatService),this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiCustomFormatService),this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiDateFormatService),this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService),this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiPercentageFormatService),this._formats.add(new Stimulsoft.Report.Components.TextFormats.StiTimeFormatService),this._formats},enumerable:!0,configurable:!0}),Object.defineProperty(e,"styles",{get:function(){if(null==this._styles)return this._styles;return this._styles=[],this._styles.add(new Stimulsoft.Report.Styles.StiStyle),this._styles.add(new Stimulsoft.Report.Styles.StiCrossTabStyle),this._styles.add(new Stimulsoft.Report.Styles.StiChartStyle),this._styles.add(new Stimulsoft.Report.Styles.StiDialogStyle),this._styles},enumerable:!0,configurable:!0}),Object.defineProperty(e,"chartAreas",{get:function(){return null==t.Services._chartAreas&&(t.Services._chartAreas=[new Stimulsoft.Report.Chart.StiClusteredColumnArea,new Stimulsoft.Report.Chart.StiLineArea,new Stimulsoft.Report.Chart.StiAreaArea,new Stimulsoft.Report.Chart.StiSplineArea,new Stimulsoft.Report.Chart.StiSplineAreaArea,new Stimulsoft.Report.Chart.StiStackedColumnArea,new Stimulsoft.Report.Chart.StiStackedLineArea,new Stimulsoft.Report.Chart.StiStackedAreaArea,new Stimulsoft.Report.Chart.StiStackedSplineArea,new Stimulsoft.Report.Chart.StiStackedSplineAreaArea,new Stimulsoft.Report.Chart.StiSteppedLineArea,new Stimulsoft.Report.Chart.StiSteppedAreaArea,new Stimulsoft.Report.Chart.StiFullStackedColumnArea,new Stimulsoft.Report.Chart.StiFullStackedLineArea,new Stimulsoft.Report.Chart.StiFullStackedAreaArea,new Stimulsoft.Report.Chart.StiFullStackedSplineArea,new Stimulsoft.Report.Chart.StiFullStackedSplineAreaArea,new Stimulsoft.Report.Chart.StiClusteredBarArea,new Stimulsoft.Report.Chart.StiStackedBarArea,new Stimulsoft.Report.Chart.StiFullStackedBarArea,new Stimulsoft.Report.Chart.StiPieArea,new Stimulsoft.Report.Chart.StiDoughnutArea,new Stimulsoft.Report.Chart.StiRadarPointArea,new Stimulsoft.Report.Chart.StiRadarLineArea,new Stimulsoft.Report.Chart.StiRadarAreaArea,new Stimulsoft.Report.Chart.StiGanttArea,new Stimulsoft.Report.Chart.StiScatterArea,new Stimulsoft.Report.Chart.StiBubbleArea,new Stimulsoft.Report.Chart.StiRangeArea,new Stimulsoft.Report.Chart.StiSplineRangeArea,new Stimulsoft.Report.Chart.StiSteppedRangeArea,new Stimulsoft.Report.Chart.StiRangeBarArea,new Stimulsoft.Report.Chart.StiCandlestickArea,new Stimulsoft.Report.Chart.StiStockArea,new Stimulsoft.Report.Chart.StiFunnelArea,new Stimulsoft.Report.Chart.StiTreemapArea,new Stimulsoft.Report.Chart.StiPictorialArea],t.Services._chartAreas.filter(function(t){return t})),t.Services._chartAreas},enumerable:!0,configurable:!0}),Object.defineProperty(e,"chartSeries",{get:function(){return null==t.Services._chartSeries&&(t.Services._chartSeries=[new Stimulsoft.Report.Chart.StiClusteredColumnSeries,new Stimulsoft.Report.Chart.StiLineSeries,new Stimulsoft.Report.Chart.StiAreaSeries,new Stimulsoft.Report.Chart.StiSplineSeries,new Stimulsoft.Report.Chart.StiSplineAreaSeries,new Stimulsoft.Report.Chart.StiStackedColumnSeries,new Stimulsoft.Report.Chart.StiStackedLineSeries,new Stimulsoft.Report.Chart.StiStackedAreaSeries,new Stimulsoft.Report.Chart.StiStackedSplineSeries,new Stimulsoft.Report.Chart.StiStackedSplineAreaSeries,new Stimulsoft.Report.Chart.StiSteppedLineSeries,new Stimulsoft.Report.Chart.StiSteppedAreaSeries,new Stimulsoft.Report.Chart.StiFullStackedColumnSeries,new Stimulsoft.Report.Chart.StiFullStackedLineSeries,new Stimulsoft.Report.Chart.StiFullStackedAreaSeries,new Stimulsoft.Report.Chart.StiFullStackedSplineSeries,new Stimulsoft.Report.Chart.StiFullStackedSplineAreaSeries,new Stimulsoft.Report.Chart.StiClusteredBarSeries,new Stimulsoft.Report.Chart.StiStackedBarSeries,new Stimulsoft.Report.Chart.StiFullStackedBarSeries,new Stimulsoft.Report.Chart.StiDoughnutSeries,new Stimulsoft.Report.Chart.StiGanttSeries,new Stimulsoft.Report.Chart.StiPieSeries,new Stimulsoft.Report.Chart.StiBubbleSeries,new Stimulsoft.Report.Chart.StiScatterSeries,new Stimulsoft.Report.Chart.StiScatterLineSeries,new Stimulsoft.Report.Chart.StiScatterSplineSeries,new Stimulsoft.Report.Chart.StiRadarPointSeries,new Stimulsoft.Report.Chart.StiRadarLineSeries,new Stimulsoft.Report.Chart.StiRadarAreaSeries,new Stimulsoft.Report.Chart.StiFunnelSeries,new Stimulsoft.Report.Chart.StiStockSeries,new Stimulsoft.Report.Chart.StiCandlestickSeries,new Stimulsoft.Report.Chart.StiFunnelWeightedSlicesSeries,new Stimulsoft.Report.Chart.StiSteppedRangeSeries,new Stimulsoft.Report.Chart.StiSplineRangeSeries,new Stimulsoft.Report.Chart.StiRangeSeries,new Stimulsoft.Report.Chart.StiRangeBarSeries,new Stimulsoft.Report.Chart.StiTreemapSeries,new Stimulsoft.Report.Chart.StiPictorialSeries],t.Services._chartSeries.filter(function(t){return t})),t.Services._chartSeries},enumerable:!0,configurable:!0}),Object.defineProperty(e,"chartTrendLines",{get:function(){return null==t.Services._chartTrendLines&&(t.Services._chartTrendLines=[new Stimulsoft.Report.Chart.StiTrendLineNone,new Stimulsoft.Report.Chart.StiTrendLineLinear,new Stimulsoft.Report.Chart.StiTrendLineExponential,new Stimulsoft.Report.Chart.StiTrendLineLogarithmic],t.Services._chartTrendLines.filter(function(t){return t})),t.Services._chartTrendLines},enumerable:!0,configurable:!0}),Object.defineProperty(e,"chartSerieLabels",{get:function(){return null==t.Services._chartSerieLabels&&(t.Services._chartSerieLabels=[new Stimulsoft.Report.Chart.StiNoneLabels,new Stimulsoft.Report.Chart.StiCenterAxisLabels,new Stimulsoft.Report.Chart.StiOutsideAxisLabels,new Stimulsoft.Report.Chart.StiInsideBaseAxisLabels,new Stimulsoft.Report.Chart.StiInsideEndAxisLabels,new Stimulsoft.Report.Chart.StiOutsideBaseAxisLabels,new Stimulsoft.Report.Chart.StiOutsideEndAxisLabels,new Stimulsoft.Report.Chart.StiLeftAxisLabels,new Stimulsoft.Report.Chart.StiValueAxisLabels,new Stimulsoft.Report.Chart.StiRightAxisLabels,new Stimulsoft.Report.Chart.StiInsideEndPieLabels,new Stimulsoft.Report.Chart.StiCenterPieLabels,new Stimulsoft.Report.Chart.StiOutsidePieLabels,new Stimulsoft.Report.Chart.StiTwoColumnsPieLabels,new Stimulsoft.Report.Chart.StiCenterFunnelLabels,new Stimulsoft.Report.Chart.StiOutsideRightFunnelLabels,new Stimulsoft.Report.Chart.StiOutsideLeftFunnelLabels,new Stimulsoft.Report.Chart.StiCenterTreemapLabels],t.Services._chartSerieLabels.filter(function(t){return t})),t.Services._chartSerieLabels},enumerable:!0,configurable:!0}),Object.defineProperty(e,"chartStyles",{get:function(){return null==t.Services._chartStyles&&(t.Services._chartStyles=[new Stimulsoft.Report.Chart.StiStyle01,new Stimulsoft.Report.Chart.StiStyle02,new Stimulsoft.Report.Chart.StiStyle03,new Stimulsoft.Report.Chart.StiStyle04,new Stimulsoft.Report.Chart.StiStyle05,new Stimulsoft.Report.Chart.StiStyle06,new Stimulsoft.Report.Chart.StiStyle07,new Stimulsoft.Report.Chart.StiStyle08,new Stimulsoft.Report.Chart.StiStyle09,new Stimulsoft.Report.Chart.StiStyle10,new Stimulsoft.Report.Chart.StiStyle11,new Stimulsoft.Report.Chart.StiStyle12,new Stimulsoft.Report.Chart.StiStyle13,new Stimulsoft.Report.Chart.StiStyle14,new Stimulsoft.Report.Chart.StiStyle15,new Stimulsoft.Report.Chart.StiStyle16,new Stimulsoft.Report.Chart.StiStyle17,new Stimulsoft.Report.Chart.StiStyle18,new Stimulsoft.Report.Chart.StiStyle19,new Stimulsoft.Report.Chart.StiStyle20,new Stimulsoft.Report.Chart.StiStyle21,new Stimulsoft.Report.Chart.StiStyle22,new Stimulsoft.Report.Chart.StiStyle23,new Stimulsoft.Report.Chart.StiStyle24,new Stimulsoft.Report.Chart.StiStyle25,new Stimulsoft.Report.Chart.StiStyle26,new Stimulsoft.Report.Chart.StiStyle27,new Stimulsoft.Report.Chart.StiStyle28],t.Services._chartStyles.filter(function(t){return t})),t.Services._chartStyles},enumerable:!0,configurable:!0}),Object.defineProperty(e,"shapes",{get:function(){return null==t.Services._shapes&&(t.Services._shapes=[new Stimulsoft.Report.Components.StiArrowShapeType,new Stimulsoft.Report.Components.StiDiagonalDownLineShapeType,new Stimulsoft.Report.Components.StiDiagonalUpLineShapeType,new Stimulsoft.Report.Components.StiHorizontalLineShapeType,new Stimulsoft.Report.Components.StiLeftAndRightLineShapeType,new Stimulsoft.Report.Components.StiOvalShapeType,new Stimulsoft.Report.Components.StiRectangleShapeType,new Stimulsoft.Report.Components.StiRoundedRectangleShapeType,new Stimulsoft.Report.Components.StiOctagonShapeType,new Stimulsoft.Report.Components.StiTopAndBottomLineShapeType,new Stimulsoft.Report.Components.StiTriangleShapeType,new Stimulsoft.Report.Components.StiVerticalLineShapeType,new Stimulsoft.Report.Components.StiComplexArrowShapeType,new Stimulsoft.Report.Components.StiBentArrowShapeType,new Stimulsoft.Report.Components.StiChevronShapeType,new Stimulsoft.Report.Components.StiDivisionShapeType,new Stimulsoft.Report.Components.StiEqualShapeType,new Stimulsoft.Report.Components.StiFlowchartCardShapeType,new Stimulsoft.Report.Components.StiFlowchartCollateShapeType,new Stimulsoft.Report.Components.StiFlowchartDecisionShapeType,new Stimulsoft.Report.Components.StiFlowchartManualInputShapeType,new Stimulsoft.Report.Components.StiFlowchartOffPageConnectorShapeType,new Stimulsoft.Report.Components.StiFlowchartPreparationShapeType,new Stimulsoft.Report.Components.StiFlowchartSortShapeType,new Stimulsoft.Report.Components.StiFrameShapeType,new Stimulsoft.Report.Components.StiMinusShapeType,new Stimulsoft.Report.Components.StiMultiplyShapeType,new Stimulsoft.Report.Components.StiParallelogramShapeType,new Stimulsoft.Report.Components.StiPlusShapeType,new Stimulsoft.Report.Components.StiRegularPentagonShapeType,new Stimulsoft.Report.Components.StiTrapezoidShapeType,new Stimulsoft.Report.Components.StiSnipSameSideCornerRectangleShapeType,new Stimulsoft.Report.Components.StiSnipDiagonalSideCornerRectangleShapeType]),t.Services._shapes},enumerable:!0,configurable:!0}),Object.defineProperty(e,"barCodes",{get:function(){return null==t.Services._barCodes&&(t.Services._barCodes=[new Stimulsoft.Report.BarCodes.StiAustraliaPost4StateBarCodeType,new Stimulsoft.Report.BarCodes.StiCode11BarCodeType,new Stimulsoft.Report.BarCodes.StiCode128aBarCodeType,new Stimulsoft.Report.BarCodes.StiCode128bBarCodeType,new Stimulsoft.Report.BarCodes.StiCode128cBarCodeType,new Stimulsoft.Report.BarCodes.StiCode128AutoBarCodeType,new Stimulsoft.Report.BarCodes.StiCode39BarCodeType,new Stimulsoft.Report.BarCodes.StiCode39ExtBarCodeType,new Stimulsoft.Report.BarCodes.StiCode93BarCodeType,new Stimulsoft.Report.BarCodes.StiCode93ExtBarCodeType,new Stimulsoft.Report.BarCodes.StiCodabarBarCodeType,new Stimulsoft.Report.BarCodes.StiDataMatrixBarCodeType,new Stimulsoft.Report.BarCodes.StiEAN128aBarCodeType,new Stimulsoft.Report.BarCodes.StiEAN128bBarCodeType,new Stimulsoft.Report.BarCodes.StiEAN128cBarCodeType,new Stimulsoft.Report.BarCodes.StiEAN128AutoBarCodeType,new Stimulsoft.Report.BarCodes.StiEAN13BarCodeType,new Stimulsoft.Report.BarCodes.StiEAN8BarCodeType,new Stimulsoft.Report.BarCodes.StiFIMBarCodeType,new Stimulsoft.Report.BarCodes.StiIsbn10BarCodeType,new Stimulsoft.Report.BarCodes.StiIsbn13BarCodeType,new Stimulsoft.Report.BarCodes.StiITF14BarCodeType,new Stimulsoft.Report.BarCodes.StiJan13BarCodeType,new Stimulsoft.Report.BarCodes.StiJan8BarCodeType,new Stimulsoft.Report.BarCodes.StiMaxicodeBarCodeType,new Stimulsoft.Report.BarCodes.StiMsiBarCodeType,new Stimulsoft.Report.BarCodes.StiPdf417BarCodeType,new Stimulsoft.Report.BarCodes.StiPharmacodeBarCodeType,new Stimulsoft.Report.BarCodes.StiPlesseyBarCodeType,new Stimulsoft.Report.BarCodes.StiPostnetBarCodeType,new Stimulsoft.Report.BarCodes.StiQRCodeBarCodeType,new Stimulsoft.Report.BarCodes.StiDutchKIXBarCodeType,new Stimulsoft.Report.BarCodes.StiRoyalMail4StateBarCodeType,new Stimulsoft.Report.BarCodes.StiSSCC18BarCodeType,new Stimulsoft.Report.BarCodes.StiUpcABarCodeType,new Stimulsoft.Report.BarCodes.StiUpcEBarCodeType,new Stimulsoft.Report.BarCodes.StiUpcSup2BarCodeType,new Stimulsoft.Report.BarCodes.StiUpcSup5BarCodeType,new Stimulsoft.Report.BarCodes.StiInterleaved2of5BarCodeType,new Stimulsoft.Report.BarCodes.StiStandard2of5BarCodeType]),t.Services._barCodes},enumerable:!0,configurable:!0}),Object.defineProperty(e,"indicatorRanges",{get:function(){return null==t.Services._indicatorRanges&&(t.Services._indicatorRanges=[new Stimulsoft.Report.Components.Gauge.StiLinearIndicatorRangeInfo,new Stimulsoft.Report.Components.Gauge.StiRadialIndicatorRangeInfo]),t.Services._indicatorRanges},enumerable:!0,configurable:!0}),Object.defineProperty(e,"customValues",{get:function(){return null==t.Services._customValues&&(t.Services._customValues=[new Stimulsoft.Report.Components.Gauge.StiLinearTickLabelCustomValue,new Stimulsoft.Report.Components.Gauge.StiLinearTickMarkCustomValue,new Stimulsoft.Report.Components.Gauge.StiRadialTickLabelCustomValue,new Stimulsoft.Report.Components.Gauge.StiRadialTickMarkCustomValue]),t.Services._customValues},enumerable:!0,configurable:!0}),Object.defineProperty(e,"gaugeElements",{get:function(){return null==t.Services._gaugeElements&&(t.Services._gaugeElements=[new Stimulsoft.Report.Components.Gauge.StiLinearTickLabelCustomValue,new Stimulsoft.Report.Components.Gauge.StiLinearBar,new Stimulsoft.Report.Components.Gauge.StiLinearMarker,new Stimulsoft.Report.Components.Gauge.StiNeedle,new Stimulsoft.Report.Components.Gauge.StiRadialBar,new Stimulsoft.Report.Components.Gauge.StiRadialMarker,new Stimulsoft.Report.Components.Gauge.StiStateIndicator,new Stimulsoft.Report.Components.Gauge.StiLinearRangeList,new Stimulsoft.Report.Components.Gauge.StiRadialRangeList,new Stimulsoft.Report.Components.Gauge.StiLinearTickLabelCustom,new Stimulsoft.Report.Components.Gauge.StiLinearTickLabelMajor,new Stimulsoft.Report.Components.Gauge.StiLinearTickLabelMinor,new Stimulsoft.Report.Components.Gauge.StiLinearTickMarkCustom,new Stimulsoft.Report.Components.Gauge.StiLinearTickMarkMajor,new Stimulsoft.Report.Components.Gauge.StiLinearTickMarkMinor,new Stimulsoft.Report.Components.Gauge.StiRadialTickLabelCustom,new Stimulsoft.Report.Components.Gauge.StiRadialTickLabelMajor,new Stimulsoft.Report.Components.Gauge.StiRadialTickLabelMinor,new Stimulsoft.Report.Components.Gauge.StiRadialTickMarkCustom,new Stimulsoft.Report.Components.Gauge.StiRadialTickMarkMajor,new Stimulsoft.Report.Components.Gauge.StiRadialTickMarkMinor]),t.Services._gaugeElements},enumerable:!0,configurable:!0}),Object.defineProperty(e,"ranges",{get:function(){return null==t.Services._ranges&&(t.Services._ranges=[new Stimulsoft.Report.Components.Gauge.StiLinearRange,new Stimulsoft.Report.Components.Gauge.StiRadialRange]),t.Services._ranges},enumerable:!0,configurable:!0}),Object.defineProperty(e,"gaugeScales",{get:function(){return null==t.Services._gaugeScales&&(t.Services._gaugeScales=[new Stimulsoft.Report.Components.Gauge.StiLinearScale,new Stimulsoft.Report.Components.Gauge.StiRadialScale]),t.Services._gaugeScales},enumerable:!0,configurable:!0}),Object.defineProperty(e,"gaugeStyles",{get:function(){return null==t.Services._gaugeStyles&&(t.Services._gaugeStyles=[new Stimulsoft.Report.Components.Gauge.StiGaugeStyleXF24,new Stimulsoft.Report.Components.Gauge.StiGaugeStyleXF25,new Stimulsoft.Report.Components.Gauge.StiGaugeStyleXF26,new Stimulsoft.Report.Components.Gauge.StiGaugeStyleXF27,new Stimulsoft.Report.Components.Gauge.StiGaugeStyleXF28]),t.Services._gaugeStyles},enumerable:!0,configurable:!0}),e._formats=[],e._styles=[],e}();t.Services=x;var D=function(){function t(){this.divideSegmentPages=!0,this.allowImageComparer=!0,this.removeEmptySpaceAtBottom=!0,this.spaceBetweenCharacters=-2,this.lineHeightExactly=!0,this.forceLineHeight=!0,this.rightMarginCorrection=0,this.bottomMarginCorrection=50,this.allowCorrectFontSize11Problem=!0,this.normalStyleDefaultFontSize=1,this.lineSpacing=.965,this.divideBigCells=!0,this.restrictEditing=r.No}return t}();t.ExportWord=D;var k=function(){function t(){this.convertDigitsToArabic=!1,this.arabicDigitsType=Stimulsoft.Report.StiArabicDigitsType.Standard,this.allowImageComparer=!0,this.forceWysiwygWordwrap=!1,this.replaceSpecialCharacters=!0,this.useImageResolution=!1,this.useWordWrapBreakWordMode=!0,this.useStrictTableCellSize=!1,this.forceIE6Compatibility=!1,this.allowStrippedImages=!0,this.removeEmptySpaceAtBottom=!0,this.useExtendedStyle=!1,this.printLayoutOptimization=!0,this.useComponentStyleName=!0}return t}();t.ExportHtml=k;var E=function(){function t(){this.AllowExportDateTime=!1,this.ColumnsRightToLeft=!1,this.ShowGridLines=!0,this.MaximumSheetHeight=65534,this.RemoveEmptySpaceAtBottom=!0,this.DivideBigCells=!0,this.UseImageResolution=!1,this.TrimTrailingSpaces=!0,this.AllowImageComparer=!0,this.AllowFreezePanes=!1,this.RenderHtmlTagsAsImage=!1,this.RestrictEditing=m.No,this.FitToOnePageWide=!0}return t}();t.ExportExcel=E;var G=function(){function t(){this.divideSegmentPages=!0,this.arabicDigitsType=y.Standard,this.reduceFontFileSize=!0,this.allowImageComparer=!0,this.allowImageTransparency=!0,this.allowExtGState=!0,this._creatorString="",this.keywordsString="",this.defaultCoordinatesPrecision=2,this.defaultAutoPrintMode=b.None}return Object.defineProperty(t.prototype,"creatorString",{get:function(){return String.isNullOrEmpty(this._creatorString)&&(this._creatorString=f.getReportVersion()),this._creatorString},set:function(t){this._creatorString=t},enumerable:!0,configurable:!0}),t}();t.ExportPdf=G;var _=function(){function t(){this.Font=new o("Arial",10),this.HorAlignment=d.Center,this.VertAlignment=S.Center}return t}();t.CheckBoxReplacementForExcelValue_=_;var L=function(){function t(){}return t.Word=new D,t.Html=new k,t.Excel=new E,t.Pdf=new G,t.CheckBoxReplacementForExcelValue=new _,t.optimizeDataOnlyMode=!0,t.checkBoxTextForTrue="false",t.checkBoxTextForFalse="true",t}();t.Export=L;var N=function(){function t(){}return t.url=String.empty,t.timeout=30,t}();t.WebServer=N}(StiOptions||(StiOptions={}));var Stimulsoft;!function(t){var e;!function(t){var e=function(){function t(t){this._index=t}return Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),t}();t.StiOptionsFontHelperAttribute=e}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Export.StiHtml5ExportSettings,r=t.Report.Export.StiHtml5ExportService,n=t.Report.Export.StiWord2007ExportSettings,o=t.Report.Export.StiWord2007ExportService,a=t.Report.Export.StiExcelExportSettings,s=t.Report.Export.StiExcelType,l=t.Report.Export.StiExcel2007ExportSettings,u=t.Report.Export.StiExcel2007ExportService,c=t.Report.Export.StiDataType,p=t.Report.Export.StiDataExportSettings,h=t.Report.Export.StiCsvExportService,g=t.Report.Export.StiCsvExportSettings,m=t.System.Globalization.CultureInfo,d=t.Base.StiLicense,S=t.Base.Licenses.StiCryptHelper,f=t.Report.Events.StiExportEventArgs,y=t.Report.Events.StiPrintedEvent,b=t.Report.Events.StiPrintingEvent,C=t.Report.Events.StiExportedEvent,v=t.Report.Events.StiEndRenderEvent,I=t.Report.Events.StiRenderingEvent,A=t.Report.Events.StiBeginRenderEvent,w=t.Report.Events.StiExportingEvent,T=t.Report.Events.StiReportCacheProcessingEvent,B=t.System.EventArgs,R=t.System.IO.MemoryStream,P=t.Report.Export.StiPdfExportService,F=t.Report.Export.StiPdfExportSettings,x=t.Report.Export.StiHtmlExportMode,D=t.Base.StiEncryption,k=t.Report.Dictionary.StiSqlSource,E=t.Base.StiConvert,G=t.Report.Export.StiHtmlChartType,_=t.Report.Engine.StiRenderProvider,L=t.System.Xml.XmlConverter,N=t.System.Xml.XmlNode,O=t.System.Data.DBNull,Z=t.Report.Chart.IStiChart,M=t.Report.Chart.IStiCustomStyle,H=t.Base.StiJsonSaveMode,W=t.Report.Styles.StiStyleComponentPlacement,V=t.Report.Dictionary.StiDictionary,Y=t.Report.Units.StiUnit,j=t.Report.Components.StiPagesCollection,X=t.Report.Components.IStiUnitConvert,J=t.Base.Localization.StiLocalization,K=t.System.Collections.Hashtable,U=t.Report.Components.StiBookmark,z=t.Report.Components.StiText,Q=t.Report.Styles.StiStylesCollection,q=t.Report.Engine.StiRenderState,$=t.Report.Engine.StiParser.StiParser,tt=t.Report.Engine.StiReportBuilder,et=t.Base.StiJson,it=t.System.DateTime,rt=t.System.Guid,nt=t.Report.Engine.StiBookmarksHelper,ot=t.Report.Dictionary.StiBusinessObjectData,at=t.Report.Components.StiPage,st=t.Report.Components.StiComponentsCollection,lt=t.System.Enum,ut=t.Report.Design.StiDesignerInfo,ct=t.Report.Components.StiDataBand,pt=t.Base.StiGZipHelper,ht=t.Report.Export.StiHtmlExportService,gt=t.Report.Export.StiHtmlTextWriter,mt=t.Report.Export.StiHtmlExportSettings,dt=t.System.IO.TextWriter,St=t.Report.Dictionary.StiVariable,ft=function(){function t(){this.masterComponents=[],this.dialogInfo=[],this.refNames=[]}return t.prototype.clean=function(){this.masterComponents.clear(),this.masterComponents=null,this.dialogInfo.clear(),this.dialogInfo=null,this.refNames.clear(),this.refNames=null},t}();e.StiJsonLoaderHelper=ft;var yt=function(){function yt(){this._pageNumber=0,this._totalPageCountValue=0,this._pageNofMLocalizationString=null,this._line=1,this._groupLine=1,this._column=1,this._lineThrough=1,this._cacheAllData=!1,this._retrieveOnlyUsedData=!1,this._reportCacheMode=e.StiReportCacheMode.Off,this._currentPage=0,this._currentPrintPage=0,this._pageCopyNumber=1,this._variables=new K,this._script="",this.onBeginProcessData=null,this.onEndProcessData=null,this.beginRenderEvent=new A,this.renderingEvent=new I,this.endRenderEvent=new v,this.exportingEvent=new w,this.exportedEvent=new C,this.printingEvent=new b,this.printedEvent=new y,this.reportCacheProcessingEvent=new T,this.anchors=new K,this.subReportsMasterReport=null,this.subReportsResetPageNumber=!1,this.subReportsPrintOnPreviousPage=!1,this.indexName=1,this.containsTables=!1,this.cachedTotals=null,this.cachedTotalsLocked=!1,this.modifiedVariables=new K,this._reportVersion="",this._engine=null,this._reportRenderingMessages=null,this._interactionCollapsingStates=null,this._reportGuid=null,this._imageCachePath="",this._parentReport=null,this._globalizationManager=new e.StiNullGlobalizationManager,this._manualBookmark=new U,this._totals=new K,this._cells=null,this._password=null,this._listOfUsedData=null,this._reportPass=e.StiReportPass.None,this._isRendered=!1,this._isRendering=!1,this._isModified=!1,this._isStopped=!1,this._isExporting=!1,this._isSerializing=!1,this._isPageDesigner=!1,this.isPrintingValue=!1,this._isDocument=!1,this._isInteractionRendering=!1,this._reportName=String.empty,this._reportAlias=String.empty,this._reportAuthor=String.empty,this._reportDescription=String.empty,this._reportCreated=it.now,this._reportChanged=it.now,this._numberOfPass=e.StiNumberOfPass.SinglePass,this._calculationMode=e.StiCalculationMode.Interpretation,this._reportUnit=e.StiReportUnitType.Centimeters,this._stopBeforePage=0,this._collate=1,this._globalizationStrings=null,this._autoLocalizeReportOnRun=!1,this._cacheTotals=!1,this._culture=String.empty,this.isAsyncMode=!1,this._reportFile=String.empty;try{t.Report.Dictionary.StiFunctionsMath.create(),t.Report.Dictionary.StiFunctionsDate.create(),t.Report.Dictionary.StiFunctionsPrintState.create(),t.Report.Dictionary.StiFunctionsProgrammingShortcut.create(),t.Report.Dictionary.StiFunctionsStrings.create(),t.Report.Dictionary.StiFunctionsTotals.create(),this._subReports=new e.StiReportsCollection(this),this._reportGuid=this.generateReportGuid(),this._info=new ut(this),this._dictionary=new V(this),this._styles=new Q(this),this._globalizationStrings=new e.StiGlobalizationContainerCollection(this);try{this._pages=new j(this),this._renderedPages=new j(this)}catch(e){t.System.StiError.showError(e,!1)}var i=new at(this);this.pages.add(i),i.name=e.StiNameCreation.generateName(i)+"1",this.renderedPages.add(i);try{var r=void 0;"en"==J.cultureName?r=!1:StiOptions.Engine.forceGenerationNonLocalizedName&&(r=!1),StiOptions.Engine.forceGenerationLocalizedName&&(r=!0),r?(this._reportName=J.get("Components","StiReport"),this._reportAlias=J.get("Components","StiReport")):(this._reportName="Report",this._reportAlias="Report")}catch(e){t.System.StiError.showError(e,!1),this._reportName="Report",this._reportAlias="Report"}this.bookmarkValue=nt.createBookmark(this.reportAlias),this._manualBookmark=nt.createBookmark(this.reportAlias)}catch(e){t.System.StiError.showError(e,!1)}}return yt.prototype.implements=function(){return[X]},yt.assignSignature=function(t,e){String.isNullOrWhiteSpace(t.reportGuid)&&t.generateReportGuid(),t.licenseKey=S.encrypt(d.key,t.reportGuid)},yt.prototype.saveToJsonInternal=function(t){try{this.updateReportVersion();var i=new et("");return i.addPropertyStringNullOfEmpty("ReportVersion",this.reportVersion),i.addPropertyStringNullOfEmpty("ReportGuid",this._reportGuid),i.addPropertyStringNullOfEmpty("ReportName",this._reportName),i.addPropertyStringNullOfEmpty("ReportAlias",this._reportAlias),i.addPropertyStringNullOfEmpty("ReportFile",this._reportFile),i.addPropertyStringNullOfEmpty("ReportAuthor",this._reportAuthor),i.addPropertyStringNullOfEmpty("ReportDescription",this._reportDescription),i.addPropertyDateTime("ReportCreated",this.reportCreated),i.addPropertyDateTime("ReportChanged",this.reportChanged),i.addPropertyString("EngineVersion","EngineV2"),i.addPropertyEnum("NumberOfPass",e.StiNumberOfPass,this.numberOfPass,e.StiNumberOfPass.SinglePass),i.addPropertyEnum("CalculationMode",e.StiCalculationMode,this.calculationMode,e.StiCalculationMode.Compilation),i.addPropertyEnum("ReportUnit",e.StiReportUnitType,this.reportUnit,null),i.addPropertyBool("CacheAllData",this.cacheAllData),i.addPropertyBool("RetrieveOnlyUsedData",this.retrieveOnlyUsedData),i.addPropertyEnum("ReportCacheMode",e.StiReportCacheMode,this.reportCacheMode,e.StiReportCacheMode.Off),i.addPropertyNumber("StopBeforePage",this.stopBeforePage),i.addPropertyNumber("Collate",this.collate,1),i.addPropertyBool("AutoLocalizeReportOnRun",this.autoLocalizeReportOnRun),i.addPropertyBool("CacheTotals",this.cacheTotals),i.addPropertyStringNullOfEmpty("Culture",this.culture),t==H.Document?i.addPropertyJObject("RenderedPages",this.renderedPages.saveToJsonObject(t)):(i.addPropertyJObject("Styles",this.styles.saveToJsonObject(t)),i.addPropertyJObject("BeginRenderEvent",this.beginRenderEvent.saveToJsonObject(t)),i.addPropertyJObject("RenderingEvent",this.renderingEvent.saveToJsonObject(t)),i.addPropertyJObject("EndRenderEvent",this.endRenderEvent.saveToJsonObject(t)),i.addPropertyJObject("ExportingEvent",this.exportingEvent.saveToJsonObject(t)),i.addPropertyJObject("ExportedEvent",this.exportedEvent.saveToJsonObject(t)),i.addPropertyJObject("PrintingEvent",this.printingEvent.saveToJsonObject(t)),i.addPropertyJObject("PrintedEvent",this.printedEvent.saveToJsonObject(t)),i.addPropertyJObject("ReportCacheProcessingEvent",this.reportCacheProcessingEvent.saveToJsonObject(t)),i.addPropertyJObject("GlobalizationStrings",this.globalizationStrings.saveToJsonObject(t)),i.addPropertyJObject("Dictionary",this.dictionary.saveToJsonObject(t)),i.addPropertyJObject("Pages",this.pages.saveToJsonObject(t))),i.serialize()}finally{}},yt.prototype.loadFromJsonInternal=function(i){this.isSerializing=!0;try{this.jsonLoaderHelper=new ft,this.isDocument=!1,this.isRendered=!1,this.pages.clear(),this.dictionary.clear(),this.renderedPages.clear(),this.reportUnit=e.StiReportUnitType.Centimeters;var r=new et;r.deserialize(i);for(var n=0,o=r.properties();n<o.length;n++){var a=o[n];switch(a.name){case"ReportVersion":this._reportVersion=a.value;break;case"ReportGuid":this._reportGuid=a.value;break;case"ReportName":this._reportName=a.value;break;case"ReportAlias":this._reportAlias=a.value;break;case"ReportFile":this._reportFile=a.value;break;case"ReportAuthor":this._reportAuthor=a.value;break;case"ReportDescription":this._reportDescription=a.value;break;case"ReportCreated":this.reportCreated=et.jsonDateFormatToDate(a.value);break;case"ReportChanged":this.reportChanged=et.jsonDateFormatToDate(a.value);break;case"EngineVersion":break;case"NumberOfPass":this.numberOfPass=lt.parse(e.StiNumberOfPass,a.value);break;case"CalculationMode":this.calculationMode=lt.parse(e.StiCalculationMode,a.value);break;case"ReportUnit":this.reportUnit=lt.parse(e.StiReportUnitType,a.value);break;case"CacheAllData":this.cacheAllData=a.value;break;case"RetrieveOnlyUsedData":this.retrieveOnlyUsedData=a.value;break;case"ReportCacheMode":this.reportCacheMode=lt.parse(e.StiReportCacheMode,a.value);break;case"ConvertNulls":break;case"PreviewMode":break;case"StopBeforePage":this.stopBeforePage=a.value;break;case"PreviewSettings":break;case"Collate":this.collate=a.value;break;case"ReferencedAssemblies":break;case"ScriptLanguage":break;case"AutoLocalizeReportOnRun":this.autoLocalizeReportOnRun=a.value.toBoolean();break;case"ParametersOrientation":break;case"RequestParameters":break;case"CacheTotals":this.cacheTotals=a.value;break;case"Culture":this.culture=a.value;break;case"Script":break;case"BeginRenderEvent":this.beginRenderEvent.loadFromJsonObject(a.value);break;case"RenderingEvent":this.renderingEvent.loadFromJsonObject(a.value);break;case"EndRenderEvent":this.endRenderEvent.loadFromJsonObject(a.value);break;case"ExportingEvent":this.exportingEvent.loadFromJsonObject(a.value);break;case"ExportedEvent":this.exportedEvent.loadFromJsonObject(a.value);break;case"PrintingEvent":this.printingEvent.loadFromJsonObject(a.value);break;case"PrintedEvent":this.printedEvent.loadFromJsonObject(a.value);break;case"ReportCacheProcessingEvent":this.reportCacheProcessingEvent.loadFromJsonObject(a.value);break;case"MetaTags":break;case"ReportResources":break;case"GlobalizationStrings":this.globalizationStrings.loadFromJsonObject(a.value);break;case"PrinterSettings":break;case"Styles":this.styles.loadFromJsonObject(a.value);break;case"Dictionary":this.dictionary.loadFromJsonObject(a.value);break;case"Pages":this.isRendered=!1,this.isDocument=!1,this.pages.loadFromJsonObject(a.value);break;case"RenderedPages":this.isRendered=!0,this.isDocument=!0,this.renderedPages.loadFromJsonObject(a.value);break;default:throw"Property is not supported!"}}var s=null;if(this.jsonLoaderHelper.masterComponents.count>0){s=this.getComponents();for(var l=0,u=this.jsonLoaderHelper.masterComponents;l<u.length;l++){var c=u[l],p=c.sti_as(t.Report.Chart.IStiChart);if(null!=p){p.masterComponent=s.getByName(p.jsonMasterComponentTemp),p.jsonMasterComponentTemp=null;continue}var h=c.sti_as(ct);if(null!=h){h.masterComponent=s.getByName(h.jsonMasterComponentTemp),h.jsonMasterComponentTemp=null;continue}}}if(this.jsonLoaderHelper.dialogInfo.count>0)for(var g=0,m=this.jsonLoaderHelper.dialogInfo;g<m.length;g++){var d=m[g];d.bindingVariable=this.dictionary.variables.getByName(d.jsonLoadedBindingVariableName),d.jsonLoadedBindingVariableName=null}this.jsonLoaderHelper.clean(),this.jsonLoaderHelper=null}catch(e){e.sti_is(String),t.System.StiError.showError(e,!1)}finally{this.isSerializing=!1}},yt.prototype.loadFromXmlInternal=function(i){if("StiSerializer"!=i.firstChild.nodeName)return;var r="StiDocument"==i.firstChild.attributes.getNamedItem("application").value;this.jsonLoaderHelper=new ft,this.isSerializing=!0;try{this.pages.clear(),this.dictionary.clear(),this.renderedPages.clear(),this.reportUnit=e.StiReportUnitType.Centimeters;for(var n=void 0,o=0;o<i.firstChild.childNodes.length;o++){var a=i.firstChild.childNodes[o];if("#text"==a.nodeName)continue;switch(a.nodeName){case"Dictionary":this.dictionary.loadFromXml(a);break;case"Styles":this.styles.loadFromXml(a);break;case"Pages":n=a;break;case"ReportVersion":this._reportVersion=a.textContent;break;case"ReportGuid":this._reportGuid=a.textContent;break;case"ReportName":this._reportName=a.textContent;break;case"ReportAlias":this._reportAlias=a.textContent;break;case"ReportFile":this._reportFile=a.textContent;break;case"ReportAuthor":this._reportAuthor=a.textContent;break;case"ReportDescription":this._reportDescription=a.textContent;break;case"ReportCreated":this.reportCreated=et.jsonDateFormatToDate(a.textContent);break;case"ReportChanged":this.reportChanged=et.jsonDateFormatToDate(a.textContent);break;case"EngineVersion":break;case"NumberOfPass":this.numberOfPass=lt.parse(e.StiNumberOfPass,a.textContent);break;case"CalculationMode":this.calculationMode=lt.parse(e.StiCalculationMode,a.textContent);break;case"Unit":if(r)switch(a.getAttribute("type")){case"mm":this.reportUnit=e.StiReportUnitType.Millimeters;break;case"cm":this.reportUnit=e.StiReportUnitType.Centimeters;break;case"hi":this.reportUnit=e.StiReportUnitType.HundredthsOfInch;break;case"in":this.reportUnit=e.StiReportUnitType.Inches;break}break;case"ReportUnit":this.reportUnit=lt.parse(e.StiReportUnitType,a.textContent);break;case"CacheAllData":this.cacheAllData=a.textContent.toBoolean();break;case"RetrieveOnlyUsedData":this.retrieveOnlyUsedData=a.textContent.toBoolean();break;case"ReportCacheMode":this.reportCacheMode=lt.parse(e.StiReportCacheMode,a.textContent);break;case"ConvertNulls":break;case"PreviewMode":break;case"StopBeforePage":this.stopBeforePage=a.textContent.toNumber();break;case"PreviewSettings":break;case"Collate":this.collate=a.textContent.toNumber();break;case"ReferencedAssemblies":break;case"ScriptLanguage":break;case"AutoLocalizeReportOnRun":this.autoLocalizeReportOnRun=a.textContent.toBoolean();break;case"ParametersOrientation":break;case"RequestParameters":break;case"CacheTotals":this.cacheTotals=a.textContent.toBoolean();break;case"Culture":this.culture=a.textContent;break;case"Script":this.script=a.textContent;break;case"BeginRenderEvent":break;case"RenderingEvent":break;case"EndRenderEvent":break;case"ExportingEvent":break;case"ExportedEvent":break;case"PrintingEvent":break;case"PrintedEvent":break;case"ReportCacheProcessingEvent":break;case"MetaTags":break;case"ReportResources":break;case"GlobalizationStrings":break;case"PrinterSettings":break}}n&&(r?this.renderedPages.loadFromXml(n,r):this.pages.loadFromXml(n,r));var s=null;if(this.jsonLoaderHelper.masterComponents.count>0){s=this.getComponents();for(var l=0,u=this.jsonLoaderHelper.masterComponents;l<u.length;l++){var c=u[l],p=c.sti_as(t.Report.Chart.IStiChart);if(null!=p){p.masterComponent=s.getByName(this.jsonLoaderHelper.refNames[p.jsonMasterComponentTemp]),p.jsonMasterComponentTemp=null;continue}var h=c.sti_as(ct);if(null!=h){h.masterComponent=s.getByName(this.jsonLoaderHelper.refNames[h.jsonMasterComponentTemp]),h.jsonMasterComponentTemp=null;continue}}}if(this.jsonLoaderHelper.dialogInfo.count>0)for(var g=0,m=this.jsonLoaderHelper.dialogInfo;g<m.length;g++){var d=m[g];d.xmlLoadedBindingVariable&&(d.bindingVariable=St.loadFromXml(d.xmlLoadedBindingVariable,this)),d.xmlLoadedBindingVariable=null}this.jsonLoaderHelper.clean(),this.jsonLoaderHelper=null}catch(e){t.System.StiError.showError(e,!1)}this.isSerializing=!1,r&&(this.isDocument=!0,this.isRendered=!0)},yt.prototype.load=function(e){try{if(void 0===e||null==e)return;e.sti_is(Array)&&(e=t.System.Text.Encoding.UTF8.getString(e)),e.sti_is(String)&&e.trim().startsWith("<?xml")&&(e=L.toXml(e)),e.sti_is(N)?this.loadFromXmlInternal(e):this.loadFromJsonInternal(e)}catch(e){t.System.StiError.showError(e.message,!1)}},yt.prototype.loadFile=function(e){var i=t.System.IO.File.getFile(e);i&&(this.load(i),this.reportFile=e)},yt.prototype.loadPacked=function(e){try{if(void 0===e||null==e)return;var i=pt.unpack(e);this.load(i)}catch(e){t.System.StiError.showError(e.message,!1)}},yt.prototype.loadPackedFile=function(e){var i=t.System.IO.File.getFile(e);i&&(this.loadPacked(i),this.reportFile=e)},yt.prototype.loadEncryptedReport=function(e,i){try{if(void 0===e||null==e)return;e.sti_is(String)&&(e=t.System.Convert.fromBase64String(e));var r=e;if("m"!=String.fromCharCode(r[0])||"r"!=String.fromCharCode(r[1])||"x"!=String.fromCharCode(r[2]))throw"This file is a not '.mrx' format.";for(var n=Array.create(Number,r.length-3),o=3;o<r.length;o++)n[o-3]=r[o];n=D.decrypt2(n,i);try{n=pt.unpack(n)}catch(e){throw t.Base.Localization.StiLocalization.get("DesignerFx","DecryptionError")}var a=t.System.Text.Encoding.UTF8.getString(n);this.password=i,this.load(a)}catch(e){t.System.StiError.showError(e,!0)}},yt.prototype.loadEncryptedReportFile=function(e,i){var r=t.System.IO.File.getFile(e,!0);r&&(this.loadEncryptedReport(r,i),this.reportFile=e)},yt.prototype.loadDocument=function(e){try{if(void 0===e||null==e)return;e.sti_is(Array)&&(e=t.System.Text.Encoding.UTF8.getString(e)),e.sti_is(String)&&e.trim().startsWith("<?xml")&&(e=L.toXml(e)),e.sti_is(N)?this.loadFromXmlInternal(e):this.loadFromJsonInternal(e)}catch(e){t.System.StiError.showError(e.message,!1)}this.isDocument=!0,this.isRendered=!0},yt.prototype.loadDocumentFile=function(e){var i=t.System.IO.File.getFile(e);i&&(this.loadDocument(i),this.reportFile=e)},yt.prototype.loadPackedDocument=function(e){try{if(void 0===e||null==e)return;e.sti_is(Array)&&(e=t.System.Text.Encoding.UTF8.getString(e));var i=pt.unpack(e);this.loadDocument(i)}catch(e){t.System.StiError.showError(e.message,!1)}},yt.prototype.loadPackedDocumentFile=function(e){var i=t.System.IO.File.getFile(e);i&&(this.loadPackedDocument(i),this.reportFile=e)},yt.prototype.loadEncryptedDocument=function(e,i){try{if(void 0===e||null==e)return;e.sti_is(String)&&(e=t.System.Convert.fromBase64String(e));for(var r=new Uint8Array(e),n=new Array,o=0;o!=r.length;++o)n[o]=r[o];if("m"!=String.fromCharCode(n[0])||"d"!=String.fromCharCode(n[1])||"x"!=String.fromCharCode(n[2]))throw"This file is a not '.mdx' format.";for(var a=Array.create(Number,n.length-3),o=3;o<n.length;o++)a[o-3]=n[o];a=D.decrypt2(a,i);try{a=pt.unpack(a)}catch(e){t.System.StiError.showError(e,!1)}var s=t.System.Text.Encoding.UTF8.getString(a);this.password=i,this.loadDocument(s)}catch(e){t.System.StiError.showError(e,!1)}},yt.prototype.loadEncryptedDocumentFile=function(e,i){var r=t.System.IO.File.getFile(e,!0);r&&(this.loadEncryptedDocument(r,i),this.reportFile=e)},yt.prototype.saveEncryptedReportToByteArray=function(e){var i=this.saveToJsonString(),r=t.System.Text.Encoding.UTF8.getBytes(i);r=pt.pack(r),r=D.encrypt2(r,e);var n=Array.create(Number,r.length+3);return n[0]="m".charCodeAt(0),n[1]="r".charCodeAt(0),n[2]="x".charCodeAt(0),r.copyTo(n,3),n},yt.prototype.saveEncryptedReportToString=function(e){var i=this.saveEncryptedReportToByteArray(e);return t.System.Convert.toBase64String(i)},yt.prototype.saveEncryptedReportFile=function(e,i){var r=this.saveEncryptedReportToString(i);t.System.IO.File.saveFile(e,r)},yt.prototype.saveToJsonString=function(){try{return this.saveToJsonInternal(H.Report)}catch(e){t.System.StiError.showError(e,!1)}},yt.prototype.saveFile=function(e){var i=this.saveToJsonString();t.System.IO.File.saveFile(e,i)},yt.prototype.saveDocumentToJsonString=function(){try{return this.saveToJsonInternal(H.Document)}catch(e){t.System.StiError.showError(e,!1)}},yt.prototype.saveDocumentFile=function(e){var i=this.saveDocumentToJsonString();t.System.IO.File.saveFile(e,i)},yt.prototype.saveEncryptedDocumentToByteArray=function(e){var i=this.saveDocumentToJsonString(),r=t.System.Text.Encoding.UTF8.getBytes(i);r=pt.pack(r),r=D.encrypt2(r,e);var n=Array.create(Number,r.length+3);return n[0]="m".charCodeAt(0),n[1]="d".charCodeAt(0),n[2]="x".charCodeAt(0),r.copyTo(n,3),n},Object.defineProperty(yt.prototype,"pageNumber",{get:function(){return null!=this.engine&&null!=this.engine.pageNumbers?this.engine.pageNumbers.getPageNumber(this.currentPrintPage-1):this._pageNumber},set:function(t){this._pageNumber=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"pageNumberThrough",{get:function(){return null!=this.engine&&null!=this.engine.pageNumbers?this.engine.pageNumbers.getPageNumberThrough(this.currentPrintPage-1):0},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"totalPageCount",{get:function(){return null!=this.engine&&null!=this.engine.pageNumbers?this.engine.pageNumbers.getTotalPageCount(this.currentPrintPage-1):0},set:function(t){this._totalPageCountValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"totalPageCountThrough",{get:function(){return null!=this.engine&&null!=this.engine.pageNumbers?this.engine.pageNumbers.getTotalPageCountThrough(this.currentPrintPage-1):0},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"pageNofM",{get:function(){return e.StiSystemVariableLocHelper.getPageNofM(this)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"pageNofMThrough",{get:function(){return e.StiSystemVariableLocHelper.getPageNofMThrough(this)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"pageNofMLocalizationString",{get:function(){return this._pageNofMLocalizationString},set:function(t){this._pageNofMLocalizationString=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"groupLine",{get:function(){return this._groupLine},set:function(t){this._groupLine=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"lineRoman",{get:function(){return e.Func.Convert.toRoman(this.line)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"lineABC",{get:function(){return e.Func.Convert.toABC(this.line)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"column",{get:function(){return this._column},set:function(t){this._column=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"lineThrough",{get:function(){return this._lineThrough},set:function(t){this._lineThrough=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"date",{get:function(){return it.today},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"today",{get:function(){return it.today},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"time",{get:function(){return it.now},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"cacheAllData",{get:function(){return this._cacheAllData},set:function(t){this._cacheAllData=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"retrieveOnlyUsedData",{get:function(){return this._retrieveOnlyUsedData},set:function(t){this._retrieveOnlyUsedData=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportCacheMode",{get:function(){return this._reportCacheMode},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isFirstPage",{get:function(){return 1==this.pageNumber},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isLastPage",{get:function(){return this.pageNumber==this.totalPageCount},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isFirstPageThrough",{get:function(){return 1==this.pageNumberThrough},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isLastPageThrough",{get:function(){return this.pageNumberThrough==this.totalPageCountThrough},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isFirstPass",{get:function(){return this.reportPass==e.StiReportPass.First||this.reportPass==e.StiReportPass.None},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isSecondPass",{get:function(){return this.reportPass==e.StiReportPass.Second},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"currentPage",{get:function(){return this._currentPage},set:function(t){this._currentPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"currentPrintPage",{get:function(){return this._currentPrintPage},set:function(t){this._currentPrintPage=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"pageCopyNumber",{get:function(){return this._pageCopyNumber},set:function(t){this._pageCopyNumber=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"businessObjectsStore",{get:function(){return null==this._businessObjectsStore&&(this._businessObjectsStore=[]),this._businessObjectsStore},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"variables",{get:function(){return this._variables},enumerable:!0,configurable:!0}),yt.prototype.getVariable=function(t,e){void 0===e&&(e=!1);var i=null==this.compiledReport?this:this.compiledReport,r=t.substr(0,1).toLowerCase()+t.substr(1);if(!e){if(null!=this[t])return this[t];if(null!=this[r])return this[r]}return null==this.variables?null:this.variables.get(t)},yt.prototype.setVariable=function(t,e,i){void 0===i&&(i=!1);var r=null==this.compiledReport?this:this.compiledReport;null!=this.dictionary&&this.dictionary.variables.contains(t)&&this.modifiedVariables.set(t,null);var n=t.substr(0,1).toLowerCase()+t.substr(1);i||void 0===this[n]?(null==r.variables&&(r._variables=new K),r.variables.set(t,e)):this[n]=e},Object.defineProperty(yt.prototype,"aggregateFunctions",{get:function(){return this._aggregateFunctions},set:function(t){this._aggregateFunctions=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"dictionary",{get:function(){return this._dictionary},set:function(t){this._dictionary=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"dataSources",{get:function(){return this._dictionary.dataSources},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"dataStore",{get:function(){return this.dictionary.dataStore},enumerable:!0,configurable:!0}),yt.prototype.regData=function(t,e,i){this.dictionary.dataStore.regData(t,e,i),null!=this.compiledReport&&this.compiledReport.dictionary.dataStore.regData(t,e,i)},yt.prototype.regBusinessObject2=function(t,e,i,r){var n=new ot(t,e,i,r);this.storeBusinessObjectWithCheckExistingData(n),null!=this.compiledReport&&this.compiledReport.storeBusinessObjectWithCheckExistingData(n)},yt.prototype.regBusinessObject=function(t){for(var e=0,i=t;e<i.length;e++){var r=i[e];this.storeBusinessObjectWithCheckExistingData(r)}},yt.prototype.storeBusinessObjectWithCheckExistingData=function(t){this.businessObjectsStore.add(t)},Object.defineProperty(yt.prototype,"script",{get:function(){return null==this._script&&this.scriptNew(),this._script},set:function(t){this._script=t},enumerable:!0,configurable:!0}),yt.prototype.scriptNew=function(){},yt.prototype.invokeBeginProcessData=function(t,e){return null!=this.onBeginProcessData&&this.onBeginProcessData.sti_is(Function)&&(t.event="BeginProcessData",t.preventDefault=!1,this.onBeginProcessData(t,e)),null},yt.prototype.invokeEndProcessData=function(t){return null!=this.onEndProcessData&&this.onEndProcessData.sti_is(Function)&&(t.event="EndProcessData",this.onEndProcessData(t)),null},yt.prototype.invokeRefreshPreview=function(){this.invokeRefreshViewer()},yt.prototype.invokeRefreshViewer=function(){null!=this.compiledReport&&this.compiledReport.invokeRefreshViewer()},yt.prototype.invokeClick=function(t,e){},yt.prototype.invokeDoubleClick=function(t,e){},yt.prototype.invokeGotoComp=function(t){},yt.prototype.invokePaint=function(t,e){},yt.prototype.invokeBeginRender=function(){},yt.prototype.invokeRendering=function(){},yt.prototype.invokeEndRender=function(){try{if(this.calculationMode==e.StiCalculationMode.Interpretation&&this.calculationMode==e.StiCalculationMode.Interpretation&&null!=this.totals)for(var t=0,i=this.totals.keys;t<i.length;t++){var r=i[t],n=r;null!=n&&n.startsWith("#%#")&&this.getComponentByName(n.substr(3)).clone().setText(null,null)}}catch(t){}},yt.prototype.invokeStatusChanged=function(){},yt.prototype.onExporting=function(t){},yt.prototype.invokeExporting=function(t){this.isExporting=!0;var e=new f(t);this.onExporting(e)},yt.prototype.onExported=function(t){},yt.prototype.invokeExported=function(t){this.isExporting=!1;var e=new f(t);this.onExported(e)},yt.prototype.onPrinting=function(t){},yt.prototype.invokePrinting=function(){this.onPrinting(B.empty)},yt.prototype.onPrinted=function(t){},yt.prototype.invokePrinted=function(){this.onPrinted(B.empty)},yt.prototype.onGetSubReport=function(t){},yt.prototype.invokeGetSubReport=function(t){this.onGetSubReport(t),null!=this.compiledReport&&this.compiledReport.invokeGetSubReport(t),null!=this.parentReport&&this.parentReport.onGetSubReport(t)},yt.prototype.invokeReportCacheProcessing=function(){},Object.defineProperty(yt.prototype,"unit",{get:function(){return Y.getUnitFromReportUnit(this.reportUnit)},set:function(i){i.sti_is(t.Report.Units.StiCentimetersUnit)?this.reportUnit=e.StiReportUnitType.Centimeters:i.sti_is(t.Report.Units.StiMillimetersUnit)?this.reportUnit=e.StiReportUnitType.Millimeters:i.sti_is(t.Report.Units.StiInchesUnit)?this.reportUnit=e.StiReportUnitType.Inches:i.sti_is(t.Report.Units.StiHundredthsOfInchUnit)&&(this.reportUnit=e.StiReportUnitType.HundredthsOfInch)},enumerable:!0,configurable:!0}),yt.prototype.convert=function(t,e,i){if(void 0===i&&(i=!1),t.name!=e.name&&null!=this._pages)for(var r=0,n=this.pages.list;r<n.length;r++){var o=n[r];o.convert(t,e,i)}},yt.changeType=function(t,e,i){return void 0===i&&(i=!0),E.changeType(t,e,i)},yt.prototype.applyStyleCollection=function(t){if(String.isNullOrEmpty(t))return;t=t.toLower().trim();for(var i=[],r=0,n=this.styles.list;r<n.length;r++){var o=n[r];o.collectionName.toLower().trim()==t&&i.add(o)}for(var a=this.getComponents(),s=0,l=a.list;s<l.length;s++){var u=l[s];if(u.sti_is(at))continue;for(var c=0,p=i;c<p.length;c++){var o=p[c];if(!e.StiStyleConditionHelper.isAllowStyle(u,o))continue;if(u.sti_is(Z));else if(u.sti_is(ct)){for(var h=!1,g=!1,m=0,d=o.conditions.list;m<d.length;m++){var S=d[m];if((S.placement&W.DataOddStyle)>0){h=!0;break}if((S.placement&W.DataEvenStyle)>0){g=!0;break}}h?u.oddStyle=o.name:g?u.evenStyle=o.name:u.componentStyle=o.name}else u.componentStyle=o.name}}this.applyStyles()},yt.prototype.applyStyles=function(){for(var t=this.getComponents(),e=0,i=t.list;e<i.length;e++){var r=i[e];if(r.sti_is(Z)&&r.allowApplyStyle&&null!=r.style){var n=r.style;r.core.applyStyle(n);var o=n.sti_as(M);if(null!=o){var a=o.core.reportStyle;null!=a&&a.setStyleToComponent(r)}}else if(!String.isNullOrEmpty(r.componentStyle)){var a=this.styles.getByName(r.componentStyle);null!=a&&a.setStyleToComponent(r)}}},yt.prototype.getCurrentPage=function(){return this._currentPage<0&&(this._currentPage=0),this.pages.getByIndex(this.currentPage)},yt.getReportVersion=function(){return t.StiVersion.version},yt.prototype.updateReportVersion=function(){this.reportVersion=yt.getReportVersion()},yt.prototype.writeToReportRenderingMessages=function(t){null==this.reportRenderingMessages&&(this.reportRenderingMessages=[]),this.reportRenderingMessages.add(t)},yt.prototype.getComponentByName=function(t){for(var e=0,i=this.pages.list;e<i.length;e++){var r=i[e];if(r.name==t)return r}return this.pages.getComponentByName(t)},yt.prototype.toString2=function(t){return null==t||t==O.value?String.empty:t.toString()},yt.prototype.checkExcelValue=function(t,e){var i=t.sti_as(z);return null!=i&&null!=i.format&&"G"!=i.format&&0!=i.format.length&&(i.excelDataValue=this.toString2(e)),e},yt.prototype.toString=function(t,e,i){return void 0===i&&(i=!1),i?this.toString2(this.checkExcelValue(t,e)):this.toString2(e)},yt.prototype.generateReportGuid=function(){return rt.newGuid().toString().replace(/-/gi,"")},yt.prototype.addAnchor=function(t,i){if(void 0===i&&(i=null),null==i)this.anchors.set(t,new e.StiRuntimeVariables(this));else if(!this.anchors.containsKey(t)){var r={ref1:new e.StiRuntimeVariables(this),ref2:i};this.anchors.set(t,r);var n=i;null!=n&&null==n.guid&&(n.guid=t)}},yt.prototype.getAnchorPageNumber=function(t){var e=null!=t?this.anchors.get(t):null;if(null!=e&&null!=e.ref2){var i=e.ref1,r=e.ref2,n=0;null!=i&&(n=this.engine.pageNumbers.getPageNumber(i.page));var o=n-1;while(o<this.renderedPages.count){var a=this.renderedPages.getByIndex(o);this.renderedPages.getPage(a);var s=a.getComponents();for(var l in s.list)if(l==r){if(a==i.page)return n;return this.engine.pageNumbers.getPageNumber(a)}o++}return n}var u=this.getAnchor(t);if(null==u)return 0;return this.engine.pageNumbers.getPageNumber(u.page)},yt.prototype.getAnchorPageNumberThrough=function(t){var e=null!=t?this.anchors.get(t):null;if(null!=e&&null!=e.ref2){var i=e.ref1,r=e.ref2,n=0;null!=i&&(n=this.engine.pageNumbers.getPageNumberThrough(i.page));var o=n-1;while(o<this.renderedPages.count){var a=this.renderedPages.getByIndex(o);this.renderedPages.getPage(a);var s=a.getComponents();for(var l in s.list)if(l==r){if(a==i.page)return n;return this.engine.pageNumbers.getPageNumberThrough(a)}o++}return n}var u=this.getAnchor(t);if(null==u)return 0;return this.engine.pageNumbers.getPageNumberThrough(u.page)},yt.prototype.getAnchor=function(t){if(null==t)return new e.StiRuntimeVariables(this);return this.anchors.get(t)},yt.prototype.getComponents=function(){for(var t=new st,e=0,i=this.pages.list;e<i.length;e++){var r=i[e];t.add(r);var n={ref:t};r.getComponents2(n),t=n.ref}return t},yt.prototype.getComponentsCount=function(){for(var t=0,e=0,i=this.pages.list;e<i.length;e++){var r=i[e];t+=1,t+=r.getComponentsCount()}return t},yt.prototype.renameStyle=function(t,e){for(var i=this.getComponents(),r=0,n=i.list;r<n.length;r++)var o=n[r]},yt.prototype.localizeReport=function(t){this.globalizationStrings.localizeReport(t)},Object.defineProperty(yt.prototype,"reportVersion",{get:function(){return t.StiVersion.version},set:function(t){this._reportVersion=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"engine",{get:function(){return this._engine},set:function(t){this._engine=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportRenderingMessages",{get:function(){return this._reportRenderingMessages},set:function(t){this._reportRenderingMessages=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"interactionCollapsingStates",{get:function(){return this._interactionCollapsingStates},set:function(t){this._interactionCollapsingStates=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"subReports",{get:function(){return this._subReports},set:function(t){this._subReports=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportGuid",{get:function(){return this._reportGuid},set:function(t){this._reportGuid=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"imageCachePath",{get:function(){return this._imageCachePath},set:function(t){this._imageCachePath=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"parentReport",{get:function(){return this._parentReport},set:function(t){this._parentReport=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"globalizationManager",{get:function(){return this._globalizationManager},set:function(t){this._globalizationManager=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"pages",{get:function(){return this._pages},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"renderedPages",{get:function(){if(null!=this.compiledReport)return this.compiledReport.renderedPages;return this._renderedPages},set:function(t){null!=this.compiledReport?this.compiledReport.renderedPages=t:this._renderedPages=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"info",{get:function(){return this._info},set:function(t){this._info=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"bookmark",{get:function(){if(null!=this.compiledReport)return this.compiledReport.bookmark;return this.bookmarkValue},set:function(t){this.bookmarkValue=t,null!=this.compiledReport&&(this.compiledReport.bookmark=t)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"manualBookmark",{get:function(){return this.bookmark},set:function(t){this.bookmark=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"totals",{get:function(){if(null!=this.parentReport)return this.parentReport.totals;return this._totals},set:function(t){null!=this.parentReport?this.parentReport.totals=t:this._totals=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"cells",{get:function(){return null==this._cells&&(this._cells=new e.StiCells(this)),this._cells},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"password",{get:function(){return this._password},set:function(t){this._password=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"dataBandsUsedInPageTotals",{get:function(){return this._dataBandsUsedInPageTotals},set:function(t){this._dataBandsUsedInPageTotals=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"listOfUsedData",{get:function(){return this._listOfUsedData},set:function(t){this._listOfUsedData=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportPass",{get:function(){return this._reportPass},set:function(t){this._reportPass=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isRendered",{get:function(){return this._isRendered},set:function(t){this._isRendered=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isRendering",{get:function(){return this._isRendering},set:function(t){this._isRendering=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isModified",{get:function(){return this._isModified},set:function(t){this._isModified!=t&&(this._isModified=t,this._reportGuid=this.generateReportGuid())},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isStopped",{get:function(){return this._isStopped},set:function(t){this._isStopped=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isExporting",{get:function(){return this._isExporting},set:function(t){this._isExporting=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isSerializing",{get:function(){return this._isSerializing},set:function(t){this._isSerializing=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isPageDesigner",{get:function(){return this._isPageDesigner},set:function(t){this._isPageDesigner=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isPrinting",{get:function(){return this.isPrintingValue},set:function(t){this.isPrintingValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isDesigning",{get:function(){return this.info.forceDesigningMode},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isDocument",{get:function(){return this._isDocument},set:function(t){this._isDocument=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"isInteractionRendering",{get:function(){return this._isInteractionRendering},set:function(t){this._isInteractionRendering=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportName",{get:function(){return this._reportName},set:function(t){this._reportName==this._reportAlias&&(this._reportAlias=t),this._reportName=e.StiNameValidator.correctName(t)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportAlias",{get:function(){return this._reportAlias},set:function(t){this._reportAlias=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportAuthor",{get:function(){return this._reportAuthor},set:function(t){this._reportAuthor=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportDescription",{get:function(){return this._reportDescription},set:function(t){this._reportDescription=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportCreated",{get:function(){return this._reportCreated},set:function(t){this._reportCreated=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportChanged",{get:function(){return this._reportChanged},set:function(t){this._reportChanged=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"styles",{get:function(){return this._styles},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"numberOfPass",{get:function(){return this._numberOfPass},set:function(t){this._numberOfPass!=t&&(this._numberOfPass=t)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"calculationMode",{get:function(){return this._calculationMode},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"reportUnit",{get:function(){return this._reportUnit},set:function(t){this.isSerializing||this._reportUnit!=t&&this.convert(Y.getUnitFromReportUnit(this._reportUnit),Y.getUnitFromReportUnit(t)),this._reportUnit=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"stopBeforePage",{get:function(){return this._stopBeforePage},set:function(t){t>=0&&(this._stopBeforePage=t)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"collate",{get:function(){return this._collate},set:function(t){this._collate!=t&&(this._collate=Math.max(1,t))},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"globalizationStrings",{get:function(){return this._globalizationStrings},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"autoLocalizeReportOnRun",{get:function(){return this._autoLocalizeReportOnRun},set:function(t){this._autoLocalizeReportOnRun=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"cacheTotals",{get:function(){return this._cacheTotals},set:function(t){this._cacheTotals=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"culture",{get:function(){return this._culture},set:function(t){this._culture=t},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"compiledReport",{get:function(){return this._compiledReport},set:function(t){this._compiledReport=t},enumerable:!0,configurable:!0}),yt.prototype.resetAggregateFunctions=function(){if(null==this.aggregateFunctions)return;for(var t=0,e=this.aggregateFunctions;t<e.length;t++){var i=e[t],r=i.isFirstInit;i.isFirstInit=!0,i.init(),i.isFirstInit=r}},yt.prototype.renderAsync=function(e,i,r,n){void 0===i&&(i=!1),void 0===r&&(r=-1),void 0===n&&(n=-1),this.isAsyncMode=!0;var o=new q(r,n,i),a=this;a.renderReport(o,!0,!1),_.connectToDataAsync(a).try(function(){try{a.render(i,r,n)}catch(e){throw t.System.StiError.showError(e,!1),e}}).catch(function(e){t.System.StiError.showError(e)}).finally(function(){a.isAsyncMode=!1,e(null)})},yt.prototype.render=function(t,i,r){void 0===t&&(t=!1),void 0===i&&(i=-1),void 0===r&&(r=-1);var n=new q(i,r,t);n.showProgress&&this.reportPass!=e.StiReportPass.First&&!n.isSubReportMode||this.renderReport(n,!this.isAsyncMode,!0),this.reportPass,e.StiReportPass.First},yt.prototype.renderReport=function(i,r,n){void 0===r&&(r=!0),void 0===n&&(n=!0);var o=this.calculationMode,a=!1;try{if(r){if(this.storedCulture=m.currentCulture,!String.isNullOrEmpty(this.culture))try{m.currentCulture=m.cultures[this.culture]}catch(t){}if(null!=this.cachedTotals?this.cachedTotals.clear():this.cachedTotals=new K,null!=this.engine&&null!=this.engine.pageNumbers&&this.engine.pageNumbers.clearNotFixed(),this.calculationMode==e.StiCalculationMode.Interpretation&&this.reportPass!=e.StiReportPass.First&&!i.isSubReportMode){null==this._variables&&(this._variables=new K);for(var s=0,l=this.dictionary.dataSources.list;s<l.length;s++){var u=l[s],c=u.sti_as(k);null!=c&&this.variables.set("**StoredDataSourceSqlCommandForInterpretationMode**"+u.name,c.sqlCommand)}}if(this.dictionary.variables.count>0){var p=null==this.variables;if(!p)for(var h=0,g=this.dictionary.variables.list;h<g.length;h++){var d=g[h];this.variables.contains(d.name)||(p=!0)}if(p){var S=new z;S.name="**ReportVariables**",S.page=this.pages.getByIndex(0);for(var f=0,y=this.dictionary.variables.list;f<y.length;f++){var d=y[f];try{$.prepareVariableValue(d,this,S)}catch(e){t.System.StiError.showError(e,!1)}}this.modifiedVariables.clear()}}}if(n){var b=new K;if(this.calculationMode==e.StiCalculationMode.Interpretation)for(var C=this.getComponents(),v=0,I=C.list;v<I.length;v++){var A=I[v];null!=A.interaction&&A.interaction.isDefault()&&(b.set(A,A.interaction),A.interaction=null)}if(null!=this.subReports&&this.subReports.count>0?tt.renderSubReports(this,i):tt.renderSingleReport(this,i),this.calculationMode==e.StiCalculationMode.Interpretation){for(var w=0,T=b.keys;w<T.length;w++){var B=T[w],A=B;A.interaction=b.get(B)}b.clear()}if(this.calculationMode==e.StiCalculationMode.Interpretation&&this.reportPass!=e.StiReportPass.First&&!i.isSubReportMode)for(var R=0,P=this.dictionary.dataSources.list;R<P.length;R++){var u=P[R],c=u.sti_as(k);if(null!=c){var F=this.variables.get("**StoredDataSourceSqlCommandForInterpretationMode**"+u.name);null!=F&&F.sti_is(String)&&(c.sqlCommand=F)}}a=!0}}catch(t){r&&!n&&(a=!0)}finally{if(a){this.calculationMode=o,String.isNullOrEmpty(this.culture)||(m.currentCulture=this.storedCulture),null!=this.cachedTotals&&(this.cachedTotals.clear(),this.cachedTotals=null);for(var x=0,D=this.dictionary.businessObjects.list;x<D.length;x++)var E=D[x]}}this.isDocument=!1},yt.prototype.print=function(t,e){void 0===e&&(e=x.Table);var i=new mt;i.chartType=G.Vector,i.useWatermarkMargins=!1,i.removeEmptySpaceAtBottom=!1,i.exportMode=e,t&&(i.pageRange=t);var r=new ht,n=new dt,o=new gt(n);r.exportToAsync(function(){var t=n.getStringBuilder().toString(),e=function(t){var e=document.getElementById("stiPrintReportFrame");null==e&&(e=document.createElement("iframe"),e.id="stiPrintReportFrame",e.name="stiPrintReportFrame",e.width="0",e.height="0",e.style.position="absolute",e.style.border="none",document.body.appendChild(e)),e.contentWindow.document.open(),e.contentWindow.document.write(t),e.contentWindow.document.close(),setTimeout(function(){e.contentWindow.focus(),e.contentWindow.print()})};document.body?e(t):Object.addEvent(window,"load",function(){e(t)})},this,o,i)},yt.prototype.printToPdf=function(e){void 0===e&&(e=null);var i=new F;i.autoPrintMode=t.Report.Export.StiPdfAutoPrintMode.Dialog,e&&(i.pageRange=e);var r=new P,n=new R,o=this;r.exportToAsync(function(){var t=n.toArray(),e=new Blob([new Uint8Array(t)],{type:"application/pdf"});if(window.navigator&&window.navigator.msSaveOrOpenBlob){var i=null==o.reportAlias||0==o.reportAlias.trim().length?o.reportName:o.reportAlias;window.navigator.msSaveOrOpenBlob(e,i+".pdf")}else{var r=URL.createObjectURL(e),a=document.getElementById("pdfPrintFrame");null==a&&(a=document.createElement("iframe"),a.id="pdfPrintFrame",a.name="pdfPrintFrame",a.width="0px",a.height="0px",a.style.position="absolute",a.style.border="none",document.body.appendChild(a)),a.src=r}},o,n,i)},Object.defineProperty(yt.prototype,"reportFile",{get:function(){return this._reportFile},set:function(t){this._reportFile=t},enumerable:!0,configurable:!0}),yt.prototype.exportDocumentAsync=function(t,e,i,r){void 0===i&&(i=null),void 0===r&&(r=null);var n=this;setTimeout(function(){n.exportDocument(e,i,r,t)})},yt.prototype.exportDocument=function(m,d,S,f){void 0===d&&(d=null),void 0===S&&(S=null),void 0===f&&(f=null);var y=[];this.invokeExporting(m);try{var b=new R(y);if(!new t.Report.Events.StiProcessExportEventArgs(m,d,b,S).processed)switch(m){case e.StiExportFormat.Csv:if(null!=d&&!d.sti_is(h))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var C=null==d?null:d.sti_as(h);null==C&&(C=new h),null==S&&(S=new g);if(!(S.sti_is(g)||S.sti_is(p)&&S.dataType==c.Csv))throw"The incorrect type of the 'settings' argument is used. The StiCsvExportSettings is need to be used.";null!=f?C.exportToAsync(function(){f(b.toArray())},this,b,S):(C.exportTo(this,b,S),y=b.toArray());break;case e.StiExportFormat.Data:break;case e.StiExportFormat.Dif:break;case e.StiExportFormat.Sylk:break;case e.StiExportFormat.Excel:break;case e.StiExportFormat.ExcelXml:break;case e.StiExportFormat.Excel2007:if(null!=d&&!d.sti_is(u))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var v=null==d?null:d.sti_as(u);if(null==v&&(v=new u),null==S&&(S=new l),!(S.sti_is(l)||S.sti_is(a)&&S.sti_as(a).ExcelType==s.Excel2007))throw"The incorrect type of the 'settings' argument is used. The StiExcel2007ExportSettings is need to be used.";null!=f?v.exportToAsync(function(){f(b.toArray())},this,b,S):(v.exportTo(this,b,S),y=b.toArray());break;case e.StiExportFormat.Word2007:if(null!=d&&!d.sti_is(o))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var I=null==d?null:d.sti_as(o);if(null==I&&(I=new o),null==S&&(S=new n),!S.sti_is(n))throw"The incorrect type of the 'settings' argument is used. The StiWord2007ExportSettings is need to be used.";null!=f?I.exportToAsync(function(){f(b.toArray())},this,b,S):(I.exportTo(this,b,S),y=b.toArray());break;case e.StiExportFormat.Dbf:break;case e.StiExportFormat.Mht:break;case e.StiExportFormat.HtmlSpan:if(null!=d&&!d.sti_is(ht))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var A=null==d?null:d.sti_as(ht);if(null==A&&(A=new ht),null==S&&(S=new mt),!S.sti_is(mt))throw"The incorrect type of the 'settings' argument is used. The StiHtmlExportSettings is need to be used.";S.exportMode=x.Span;var w=new dt,T=new gt(w);null!=f?A.exportToAsync(function(){f(w.getStringBuilder().toString())},this,T,S):(A.exportHtml(this,T,S),y=w.getStringBuilder().toString());break;case e.StiExportFormat.HtmlDiv:if(null!=d&&!d.sti_is(ht))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var B=null==d?null:d.sti_as(ht);if(null==B&&(B=new ht),null==S&&(S=new mt),!S.sti_is(mt))throw"The incorrect type of the 'settings' argument is used. The StiHtmlExportSettings is need to be used.";S.exportMode=x.Div;var D=new dt,T=new gt(D);null!=f?B.exportToAsync(function(){f(D.getStringBuilder().toString())},this,T,S):(B.exportTo(this,T,S),y=D.getStringBuilder().toString());break;case e.StiExportFormat.Html:case e.StiExportFormat.HtmlTable:if(null!=d&&!d.sti_is(ht))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var k=null==d?null:d.sti_as(ht);if(null==k&&(k=new ht),null==S&&(S=new mt),!S.sti_is(mt))throw"The incorrect type of the 'settings' argument is used. The StiHtmlExportSettings is need to be used.";m!=e.StiExportFormat.Html&&(S.exportMode=x.Table);var E=new dt,T=new gt(E);null!=f?k.exportToAsync(function(){f(E.getStringBuilder().toString())},this,T,S):(k.exportTo(this,T,S),y=E.getStringBuilder().toString());break;case e.StiExportFormat.Html5:if(null!=d&&!d.sti_is(r))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var G=null==d?null:d.sti_as(r);if(null==G&&(G=new r),null==S&&(S=new i),!S.sti_is(i))throw"The incorrect type of the 'settings' argument is used. The StiHtml5ExportSettings is need to be used.";var _=new dt,T=new gt(_);null!=f?G.exportToAsync(function(){f(_.getStringBuilder().toString())},this,T,S):(G.exportTo(this,T,S),y=_.getStringBuilder().toString());break;case e.StiExportFormat.Image:break;case e.StiExportFormat.ImageBmp:break;case e.StiExportFormat.ImageEmf:break;case e.StiExportFormat.ImageSvg:break;case e.StiExportFormat.ImageSvgz:break;case e.StiExportFormat.ImageGif:break;case e.StiExportFormat.ImageJpeg:break;case e.StiExportFormat.ImagePng:break;case e.StiExportFormat.ImageTiff:break;case e.StiExportFormat.ImagePcx:break;case e.StiExportFormat.Pdf:if(null!=d&&!d.sti_is(P))throw"The incorrect type of the 'exportService' argument is used. The StiExportService must have same type of export as declared in exportFormat argument.";var L=null==d?null:d.sti_as(P);if(null==L&&(L=new P),null==S&&(S=new F),!S.sti_is(F))throw"The incorrect type of the 'settings' argument is used. The StiPdfExportSettings is need to be used.";null!=f?L.exportToAsync(function(){f(b.toArray())},this,b,S):(L.exportTo(this,b,S),y=b.toArray());break;case e.StiExportFormat.Xps:break;case e.StiExportFormat.Rtf:case e.StiExportFormat.RtfTable:break;case e.StiExportFormat.RtfFrame:break;case e.StiExportFormat.RtfWinWord:break;case e.StiExportFormat.RtfTabbedText:break;case e.StiExportFormat.Text:break;case e.StiExportFormat.Xml:break;case e.StiExportFormat.Ods:break;case e.StiExportFormat.Odt:break;case e.StiExportFormat.Ppt2007:break}}catch(t){}return this.invokeExported(m),y},yt}();e.StiReport=yt}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Collections.CollectionBase,r=function(t){function e(e){var i=t.call(this)||this;return i.owner=e,i}return __extends(e,t),e.prototype.add=function(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=!1),t==this.owner)return;t.subReportsPrintOnPreviousPage=i,t.subReportsResetPageNumber=e,t.unit=this.owner.unit,this.list.add(t)},e.prototype.getByIndex=function(t){return this.list[t]},e.prototype.setByIndex=function(t,e){this.list[t]=e},e}(i);e.StiReportsCollection=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Components.StiMargins,r=t.Report.StiResizeReportOptions,n=t.Report.Components.StiSubReport,o=t.System.Collections.Hashtable,a=t.Report.Components.StiPage,s=function(){function t(){}return t.setPageParameters=function(t,e,n,o,a,s,l){var u=(l&r.PageOrientationChanged)>0,c=(l&r.RescaleContent)>0,p=(l&r.AllowPageMarginsRescaling)>0,h=t.width,g=t.height;if(u&&(t.orientation=e),t.paperSize=n,e==t.orientation?(t.pageWidth=a,t.pageHeight=s,t.margins=o.clone()):(t.pageWidth=s,t.pageHeight=a,t.margins=new i(o.top,o.bottom,o.left,o.right)),t.width<=0&&(t.width=.1),t.height<=0&&(t.height=.1),c){var m=t.width/h,d=t.height/g;t.resizePage(m,d,p)}for(var S=0,f=t.components.list;S<f.length;S++){f[S].dockToContainer()}},t.resizeReport=function(t,e,i,s,l,u,c,p){void 0===p&&(p=-1);var h=(c&r.RebuildReport)>0,g=(c&r.ProcessAllPages)>0,m=(c&r.ShowProgressOnRebuildReport)>0,d=null;p<t.renderedPages.count&&p>=0&&(d=t.renderedPages[p]);var S=null!=d?d.name:String.empty;if(h){for(var f=new o,y=t.getComponents(),b=0,C=t.pages.list;b<C.length;b++){var v=C[b];f.set(v.guid,v)}for(var I=new o,A=0,w=y.list;A<w.length;A++){var T=w[A],B=T.sti_as(n);if(null!=B&&null!=B.subReportPageGuid){var R=f.get(B.subReportPageGuid).sti_as(a);null!=R&&I.set(R,T.width)}}for(var P=0,F=t.pages.list;P<F.length;P++){var v=F[P];if(v.name==S||g){var x=I.get(v);if(null==x&&this.setPageParameters(v,e,i,s,l,u,c),!g)break}}for(var D=0,k=t.pages.list;D<k.length;D++){var v=k[D],x=I.get(v);if(null!=x){var E=+x;if(v.width!=E){var G=v.width+v.margins.left+v.margins.right;v.width=E,this.setPageParameters(v,e,i,s,G,u,c)}}}if(null!=t.subReports&&t.subReports.count>0)for(var _=0,L=t.subReports.list;_<L.length;_++){var B=L[_],N=B;null!=B.compiledReport&&(N=B.compiledReport),this.resizeReport(N,e,i,s,l,u,c)}t.isRendered=!1,t.render(m),t.invokeRefreshViewer()}else for(var O=0,Z=0,M=t.renderedPages.list;Z<M.length;Z++){var v=M[Z];if((O==p||g)&&(this.setPageParameters(v,e,i,s,l,u,c),!g))return;O++}},t}();e.StiResizeReportHelper=s}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(t){this.page=null,this.textBox=null,this.dataSourcesPosition=new i,this._pageIndex=0,this._currentPrintPage=0,this.page=t.engine.page,this.line=t.line,this.lineThrough=t.lineThrough,this.column=t.column,this.currentPrintPage=t.currentPrintPage;for(var e=0,r=t.dictionary.dataSources.list;e<r.length;e++){var n=r[e];this.dataSourcesPosition.set(n.name,n.position)}}return t.prototype.clone=function(){var e=new t(this.page.report);return e.page=this.page,e.textBox=this.textBox,e.line=this.line,e.column=this.column,e.lineThrough=this.lineThrough,e.dataSourcesPosition=this.dataSourcesPosition,e},Object.defineProperty(t.prototype,"pageIndex",{get:function(){if(null!=this.textBox&&null!=this.textBox.report){var t=this.textBox.report.renderedPages.indexOf(this.textBox.page);if(-1!=t)return t+1}return this._pageIndex},set:function(t){this._pageIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPrintPage",{get:function(){if(null!=this.textBox&&null!=this.textBox.report){var t=this.textBox.report.renderedPages.indexOf(this.textBox.page);if(-1!=t)return t+1}return this._currentPrintPage},set:function(t){this._currentPrintPage=t},enumerable:!0,configurable:!0}),t.prototype.setVariables=function(t){t.line=this.line,t.lineThrough=this.lineThrough,t.column=this.column,t.currentPrintPage=this.currentPrintPage;for(var e=0,i=t.dictionary.dataSources.list;e<i.length;e++){var r=i[e];r.position=this.dataSourcesPosition.get(r.name)}},t}();e.StiRuntimeVariables=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Activator,r=t.System.Collections.Hashtable,n=function(){function t(t){this.value=t}return t}(),o=function(){function t(t){this.rangeType=t.getStiType(),this.from=t.fromObject,this.to=t.toObject}return t}(),a=function(){function t(){this.states=new r}return t.prototype.push=function(t,e,i,n){var o=this.states.get(t);null==o&&(o=new r,this.states.add(t,o));var a=o.get(e);null==a&&(a=new r,o.add(e,a)),a.set(i,n)},t.prototype.pushBool=function(e,i,r,n){n?this.push(e,i,r,t.ValueBoolTrue):this.push(e,i,r,t.ValueBoolFalse)},t.prototype.pushInt=function(t,e,i,r){this.push(t,e,i,new n(r))},t.prototype.pushInt64=function(t,e,i,r){this.push(t,e,i,new n(r))},t.prototype.pushFloat=function(t,e,i,r){this.push(t,e,i,new n(r))},t.prototype.pushDouble=function(t,e,i,r){this.push(t,e,i,new n(r))},t.prototype.pushDecimal=function(t,e,i,r){this.push(t,e,i,new n(r))},t.prototype.pushRange=function(t,e,i,r){this.push(t,e,i,new o(r))},t.prototype.pop=function(t,e,i){var r=this.states.get(t);if(null==r)return null;var n=r.get(e);if(null==n)return null;return n.get(i)},t.prototype.popBool=function(e,i,r){if(this.pop(e,i,r)==t.ValueBoolFalse)return!1;return!0},t.prototype.popInt=function(t,e,i){var r=this.pop(t,e,i);if(null==r)return 0;return r.value},t.prototype.popInt64=function(t,e,i){return this.popInt(t,e,i)},t.prototype.popDouble=function(t,e,i){return this.popInt(t,e,i)},t.prototype.popFloat=function(t,e,i){return this.popInt(t,e,i)},t.prototype.popDecimal=function(t,e,i){return this.popInt(t,e,i)},t.prototype.popRange=function(t,e,r){var n=this.pop(t,e,r);if(null==n)return null;var o=i.createInstance(n.rangeType);return o.fromObject=n.from,o.toObject=n.to,o},t.prototype.isExist=function(t,e){if(null==this.states.get(t))return!1;if(null==this.states.get(t).get(e))return!1;return!0},t.prototype.clear=function(){this.states.clear()},t.ValueBoolFalse={},t.ValueBoolTrue={},t}();e.StiStatesManager=a}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Base.Localization.StiLocalization,r=function(){function t(){}return t.getPageNofM=function(t){return String.stiFormat(this.getPageNofMIdent(t),t.pageNumber,t.totalPageCount)},t.getPageNofMThrough=function(t){return String.stiFormat(this.getPageNofMIdent(t),t.pageNumberThrough,t.totalPageCountThrough)},t.getPageNofMIdent=function(t){if(null!=t.pageNofMLocalizationString)return t.pageNofMLocalizationString;var e=null;if(String.isNullOrWhiteSpace(t.culture)||(e=this.getIdent(t.culture)),null!=e)return e;if(null!=(e=this.getIdent(i.cultureName)))return e;return i.get("Report","PageNofM")},t.getIdent=function(t){t=t.toLower();for(var e=0,i=this.locs;e<i.length;e++){var r=i[e];if(r.name==t)return r.value}if(t.contains("-"))return t=t.substr(0,t.indexOf("-")),this.locs.where(function(e){return t.startsWith(e.name)}).select(function(t){return t.value})[0];return null},t.locs=[{name:"ar",value:"صفحة {0} من {1}"},{name:"en",value:"Page {0} of {1}"},{name:"be",value:"Старонка {0} з {1}"},{name:"bg",value:"Страница {0} от {1}"},{name:"cz",value:"{0} z {1}"},{name:"de",value:"Seite {0} von {1}"},{name:"el-gr",value:"Σελίδα {0} από {1}"},{name:"es",value:"Pág.{0} de {1}"},{name:"ca-es",value:"P.{0} de {1}"},{name:"eu-es",value:"{0}. or. {1}-tik"},{name:"gl-es",value:"Páx.{0} de {1}"},{name:"fa",value:"صفحه {0} از {1}"},{name:"fr",value:"{0} sur {1}"},{name:"hr",value:"Strana {0} od {1}"},{name:"hu",value:"Oldal {0} a {1}-ból"},{name:"id",value:"Halaman {0} dari {1}"},{name:"it",value:"{0} di {1}"},{name:"ka",value:"{0}, {1}-დან"},{name:"lt",value:"{0} iš {1}"},{name:"lt-sr-sp",value:"Strana {0} od {1}"},{name:"nb-no",value:"Side {0} av {1}"},{name:"nl",value:"{0} op {1}"},{name:"pl",value:"Strona {0} z {1}"},{name:"pt",value:"{0} de {1}"},{name:"pt-br",value:"{0} de {1}"},{name:"ro",value:"{0} din {1}"},{name:"ru",value:"Страница {0} из {1}"},{name:"sk",value:"{0} z {1}"},{name:"sv",value:"{0} av {1}"},{name:"tr",value:"Sayfa {0}/{1}"},{name:"ua",value:"Сторінка {0} із {1}"}],t}();e.StiSystemVariableLocHelper=r}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.System.Collections.Hashtable,r=function(){function t(){this.hashText=new i,this.hashComponent=new i,this.hashFontString=new i}return t.prototype.getFontString=function(t){var e=this.hashFontString.get(t);if(null!=e)return e;var i=t.name+"*"+t.style.toString()+"*";return this.hashFontString.set(t,i),i},t.prototype.getFontSizeObject=function(t,e,i,r,n){void 0===r&&(r={ref:Number}),void 0===n&&(n={ref:String});var o=r.ref,a=n.ref,s=this.hashComponent.get(t);return null==s&&(a=i+"*"+e.width.toString()+"*"+e.height.toString()+"*"+this.getFontString(t.font)+"*"+o.toString(),null!=(s=this.hashText.get(a))&&this.hashComponent.set(t,s)),s.sti_is(Number)&&(o=+s),s},t.prototype.clear=function(){this.hashText.clear(),this.hashComponent.clear(),this.hashFontString.clear()},t}();e.StiFitTextInfo=r;var n=function(){function t(){}return Object.defineProperty(t,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t},enumerable:!0,configurable:!0}),t.addReport=function(t){this.enabled&&null!=t&&(null==t.compiledReport?this.hashes.set(t,new r):this.hashes.set(t.compiledReport,new r))},t.removeReport=function(t){if(null!=t){var e=this.hashes.get(t).sti_as(r);null!=e&&e.clear(),this.hashes.remove(t)}},t.clearReportInfo=function(t){if(null!=t){var e=this.hashes.get(t).sti_as(r);null!=e&&e.clear()}},t.getReportInfo=function(t){if(this.enabled&&null!=t){var e=this.hashes.get(t);if(null!=e)return e}return null},t.clear=function(){this.hashes.clear()},t.hashes=new i,t._enabled=!1,t}();e.StiViewerFitTextHelper=n}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(t){var e;!function(e){var i=t.Report.Components.StiFilterCondition,r=t.Base.StiObjectConverter,n=t.Report.Components.StiDataBand,o=t.Report.Dictionary.StiSumFunctionService,a=t.Report.Dictionary.StiSumTimeFunctionService,s=t.Report.Dictionary.StiAvgFunctionService,l=t.Report.Dictionary.StiAvgDateFunctionService,u=t.Report.Dictionary.StiAvgTimeFunctionService,c=t.Report.Dictionary.StiMaxFunctionService,p=t.Report.Dictionary.StiMinFunctionService,h=t.Report.Dictionary.StiMedianFunctionService,g=t.Report.Dictionary.StiModeFunctionService,m=t.Report.Dictionary.StiFirstFunctionService,d=t.Report.Dictionary.StiLastFunctionService,S=t.Report.Dictionary.StiCountFunctionService,f=t.Report.Dictionary.StiCountDistinctFunctionService,y=t.Report.Dictionary.StiMinDateFunctionService,b=t.Report.Dictionary.StiMinTimeFunctionService,C=t.Report.Dictionary.StiMinStrFunctionService,v=t.Report.Dictionary.StiMaxDateFunctionService,I=t.Report.Dictionary.StiMaxTimeFunctionService,A=t.Report.Dictionary.StiMaxStrFunctionService,w=t.Report.Dictionary.StiSumDistinctFunctionService,T=t.Report.Dictionary.StiSumNullableFunctionService,B=t.Report.Engine.StiParser,R=t.System.Collections.Hashtable,P=t.Report.Dictionary.StiDataSource,F=t.Report.Components.StiBand,x=t.Report.Components.StiHierarchicalBand,D=t.Report.Dictionary.StiBusinessObject,k=t.Report.Engine.StiDataBandBuilder,E=t.Report.Components.StiDataHelper,G=t.Report.Components.StiGroupHeaderBand,_=t.Report.Components.StiContainer,L=t.System.Data.DBNull,N=t.Report.Dictionary.StiRankFunctionService,O=t.System.Text.StringBuilder,Z=function(){function t(){this.isCompilationMode=!0,this.asmList=null,this.asmList2=null,this.conditionAsmList=null,this.parser=null,this.method=null,this.method2=null,this.functionn=null,this.sumDistinctFunction=null,this.report=null}return t}(),M=function(){function M(){}return M.getMethod=function(t,e){return null},M.calculate=function(t,e,i,r,n,o,a){void 0===n&&(n=!1),void 0===o&&(o=!1),void 0===a&&(a=!0);var s=i;if(null==s){var l=e,u=e.sti_as(B.StiParserData);if(null!=u&&(l=u.data),l.sti_is(P)){var c=l.dictionary;null!=c&&(s=c.report)}l.sti_is(F)&&(s=l.report)}var p=null!=s&&s.cacheTotals,h=null,g=null;if(p){var m={ref:h},d={ref:g},S=this.getCachedValue(t,e,s,r,n,o,a,m,d);if(g=d.ref,S)return m.ref}return null!=s&&(s.cachedTotalsLocked=!0),h=M.calculate1(t,e,i,r,n,o,a),null!=s&&(s.cachedTotalsLocked=!1),p&&M.storeCachedValue(e,s,g,h),h},M.calculate1=function(i,r,o,a,s,l,u){var c=!0;null!=o&&(c=o.calculationMode==e.StiCalculationMode.Compilation);var p=new Z;if(!c){var h=r.sti_as(B.StiParserData);null!=h?(p.asmList=h.asmList,p.asmList2=h.asmList2,p.conditionAsmList=h.conditionAsmList,p.parser=h.parser,r=h.data):c=!0}p.isCompilationMode=c,p.report=o,p.functionn=i;var g=null,m=i.getStiType()==w?i:null;if(null!=m)if(c){var d=a.split("~");d.length>1&&(a=d[0],g=d[1],p.sumDistinctFunction=m)}else null!=p.asmList2&&(p.sumDistinctFunction=m);if(c){if(null!=a&&(p.method=this.getMethod(o,a),null==p.method))return 0;if(null!=g&&(p.method2=this.getMethod(o,g),null==p.method2))return 0}var S=null==r?null:r.sti_as(n);if(null!=S&&u){if(null==o&&(o=S.report),i.init(),M.saveState(S),S.isBusinessObjectEmpty||(S.businessObject.createEnumerator(),S.businessObject.specTotalsCalculation=!0),null!=o.engine&&-1!=o.engine.indexPageForPageTotal){var f=o.engine.indexPageForPageTotal;-1!=o.engine.startIndexPageForPageTotal&&(f=o.engine.startIndexPageForPageTotal);for(var y="Breaked_"+S.name,b="Continued_"+S.name,C=f;C<=o.engine.indexPageForPageTotal;C++)for(var v=o.renderedPages.getByIndex(C),I=v.getComponents(),A=0,T=I.list;A<T.length;A++){var F=T[A],L=F.sti_as(_);if(null!=L&&(S.name==L.name||y==L.name||b==L.name)&&-1!=L.containerInfo.dataBandPosition){var N=null,O=null;S.isDataSourceEmpty||(S.position=L.containerInfo.dataBandPosition,null!=L.containerInfo.dataSourceRow&&(S.position=0,N=S.dataSource.detailRows,S.dataSource.detailRows=Array.create(t.System.Data.DataRow,1),S.dataSource.detailRows[0]=L.containerInfo.dataSourceRow)),S.isBusinessObjectEmpty||null!=L.containerInfo.businessObjectCurrent&&(O=S.businessObject.currentObject,S.businessObject.currentObject=L.containerInfo.businessObjectCurrent),this.calcItem(p),S.isDataSourceEmpty||null!=L.containerInfo.dataSourceRow&&(S.dataSource.detailRows=N),S.isBusinessObjectEmpty||null!=L.containerInfo.businessObjectCurrent&&(S.businessObject.currentObject=O)}}}return S.isBusinessObjectEmpty||(S.businessObject.specTotalsCalculation=!1),M.restoreState(S),i.getValue()}var H=null==r?null:r.sti_as(P);if(null!=H){i.init(),H.saveState("Totals"),H.first(),H.resetData(),H.resetDetailsRows();while(!H.isEof)this.calcItem(p),H.next();return H.restoreState("Totals"),i.getValue()}var W=null==r?null:r.sti_as(D);if(null!=W){i.init(),W.saveState("Totals"),W.createEnumerator(),W.specTotalsCalculation=!0;while(!W.isEof)this.calcItem(p),W.next();return W.specTotalsCalculation=!1,W.restoreState("Totals"),i.getValue()}var V=null==r?null:r.sti_as(x);if(null!=V){var Y=!1;!s&&l&&(Y=!0,s=!0),null==o&&(o=V.report),i.init();var j=null;if(j=k.getBuilder(n),!V.isDataSourceEmpty){V.saveState("Totals"),V.hierarchicalBandInfo.finalFooterCalculation&&(V.position=0);var X=V.dataSource.getLevel();-1!=V.hierarchicalBandInfo.specifiedLevel&&(X=V.hierarchicalBandInfo.specifiedLevel),V.dataSource.count>0&&(-1==V.hierarchicalBandInfo.specifiedLevel||s)&&!l&&this.calcItem(p);var J=V.position;while(V.position>0&&!l){V.position--;var K=V.dataSource.getLevel();if(K<X)break;if(!s&&K!=X)continue;this.calcItem(p)}V.position=J;while(V.position<V.count-1){V.position++;var K=V.dataSource.getLevel();if(K<X)break;if(l){if(Y&&K-X>1)continue;if(K==X)break}if(!s&&K!=X)continue;this.calcItem(p)}V.position=J,V.restoreState("Totals")}if(!V.isBusinessObjectEmpty){var U=V.position;V.saveState("Totals");var z=[];V.saveState("Totals2"),V.businessObject.createEnumerator();while(!V.businessObject.isEof)z.add(V.businessObject.enumerator.current),V.businessObject.next();V.restoreState("Totals2"),V.hierarchicalBandInfo.finalFooterCalculation&&(V.position=0),V.businessObject.currentObject=z[V.position];var X=V.businessObject.getLevel();-1!=V.hierarchicalBandInfo.specifiedLevel&&(X=V.hierarchicalBandInfo.specifiedLevel),V.businessObject.count>0&&(-1==V.hierarchicalBandInfo.specifiedLevel||s)&&!l&&this.calcItem(p);var J=V.position;while(V.position>0&&!l){V.position--,V.businessObject.currentObject=z[V.position];var K=V.businessObject.getLevel();if(K<X)break;if(!s&&K!=X)continue;this.calcItem(p)}V.position=J;while(V.position<V.count-1){V.position++,V.businessObject.currentObject=z[V.position];var K=V.businessObject.getLevel();if(K<X)break;if(l){if(Y&&K-X>1)continue;if(K==X)break}if(!s&&K!=X)continue;this.calcItem(p)}V.position=J,V.restoreState("Totals")}return i.getValue()}var Q=null==r?null:r.sti_as(n);if(null!=Q){if(null==o&&(o=Q.report),i.init(),null!=Q.businessObject){var q=Q.businessObject;q.saveState("Totals"),q.createEnumerator(),q.specTotalsCalculation=!0;while(!q.isEof)this.calcItem(p),q.next();q.specTotalsCalculation=!1,q.restoreState("Totals")}else{M.saveState(Q),E.setData(Q,!1),Q.first();while(!Q.isEof)this.calcItem(p),Q.next();M.restoreState(Q)}return i.getValue()}var $=null==r?null:r.sti_as(G);if(null!=$){if(null==o&&(o=$.report),i.init(),null==(Q=$.getDataBand()))return 0;M.saveState(Q);var j=null;j=k.getBuilder(n);var tt=Q.businessObject,et=!1,it=!1;if(et=j.getGroupHeaderResult(Q,$),it=j.getGroupFooterResult(Q,$),et&&it)try{k.setDetails(Q),this.calcItem(p)}catch(e){t.System.StiError.showError(e,!1)}else{if(null!=tt){var rt=tt.position;tt.saveState("Totals"),tt.createEnumerator(),tt.specTotalsCalculation=!0;var nt=[],ot=0;while(ot!=rt)0==ot&&k.prepareGroupResults(Q),nt.add(j.getGroupHeaderResult(Q,$)),Q.next(),ot++;if(ot--,!et){var at=new R;if(rt>0)try{while(!0){if(nt[ot]){at.set(ot,ot);break}if(at.set(ot,ot),--ot<0)break}}catch(e){t.System.StiError.showError(e,!1),rt=0}tt.first(),ot=0;while(ot!=rt)null!=at.get(ot)&&this.calcItem(p),ot++,tt.next()}}else while(1==1){if(j.getGroupHeaderResult(Q,$))break;Q.prior()}while(1==1){if(j.getGroupFooterResult(Q,$))break;if(this.calcItem(p),null!=tt){if(tt.isEof)break;tt.next(),k.prepareGroupResults(Q)}else Q.next()}et=j.getGroupHeaderResult(Q,$),it=j.getGroupFooterResult(Q,$),!et&&it&&this.calcItem(p)}return null!=tt&&(tt.specTotalsCalculation=!1,tt.restoreState("Totals")),M.restoreState(Q),i.getValue()}return 0},M.calcItem=function(e){try{var i=null;if(e.isCompilationMode)e.method,null!=e.sumDistinctFunction||e.functionn.calcItem(i);else if(null==e.conditionAsmList||t.System.Convert.toBoolean(e.parser.executeAsm(e.conditionAsmList)))if(i=e.parser.executeAsm(e.asmList),null!=e.sumDistinctFunction){var r=e.parser.executeAsm(e.asmList2);e.sumDistinctFunction.calcItem(i,r)}else e.functionn.calcItem(i)}catch(e){t.System.StiError.showError(e,!1)}},M.calculateByCondition=function(i,r,o,a,s,l,u,c,p){var h=!0;null!=o&&(h=o.calculationMode==e.StiCalculationMode.Compilation);var g=null,m=null;if(!h){var d=null==r?null:r.sti_as(B.StiParserData);null!=d?(g=d.asmList,m=d.parser,r=d.data):h=!0}var S=null==r?null:r.sti_as(x);if(null!=S){var f=!1;!c&&p&&(f=!0,c=!0),null==o&&(o=S.report),i.init(),S.saveState("Totals");var y=null;y=k.getBuilder(n);var b=[];if(null!=S.businessObject){S.saveState("Totals2"),S.businessObject.createEnumerator();while(!S.businessObject.isEof)b.add(S.businessObject.enumerator.current),S.businessObject.next();S.restoreState("Totals2")}S.hierarchicalBandInfo.finalFooterCalculation&&(S.position=0),null!=S.businessObject&&(S.businessObject.currentObject=b[S.position]);var C=null!=S.dataSource?S.dataSource.getLevel():S.businessObject.getLevel();if(-1!=S.hierarchicalBandInfo.specifiedLevel&&(C=S.hierarchicalBandInfo.specifiedLevel),(b.count>0||S.dataSource.count>0)&&(-1==S.hierarchicalBandInfo.specifiedLevel||c)&&!p)try{var v=null;h||(v=this.compareValue(m.executeAsm(g),s,l,u)),i.calcItem(v)}catch(t){}var I=S.position;while(S.position>0&&!p){S.position--,null!=S.businessObject&&(S.businessObject.currentObject=b[S.position]);var A=null!=S.dataSource?S.dataSource.getLevel():S.businessObject.getLevel();if(A<C)break;if(!c&&A!=C)continue;try{var v=null;h||(v=this.compareValue(m.executeAsm(g),s,l,u)),i.calcItem(v)}catch(e){t.System.StiError.showError(e,!1)}}S.position=I;while(S.position<S.count-1){S.position++,null!=S.businessObject&&(S.businessObject.currentObject=b[S.position]);var A=null!=S.dataSource?S.dataSource.getLevel():S.businessObject.getLevel();if(A<C)break;if(p){if(f&&A-C>1)continue;if(A==C)break}if(!c&&A!=C)continue;try{var v=null;h||(v=this.compareValue(m.executeAsm(g),s,l,u)),i.calcItem(v)}catch(e){t.System.StiError.showError(e,!1)}}return S.position=I,S.restoreState("Totals"),i.getValue()}return 0},M.compareValue=function(t,e,r,n){var o=r;switch(e){case i.Between:return o>=r&&o<=n?o:0;case i.EqualTo:return o==r?o:0;case i.GreaterThan:return o>r?o:0;case i.GreaterThanOrEqualTo:return o>=r?o:0;case i.LessThan:return o<r?o:0;case i.LessThanOrEqualTo:return o<=r?o:0;case i.NotBetween:return o<r||o>n?o:0;case i.NotEqualTo:return o!=r?o:0;case i.NotContaining:case i.EndingWith:case i.Containing:case i.BeginningWith:return 0}return 0},M.calculateNullable=function(t,e,i,n,o,a){var s=M.calculate(t,e,i,n,o,a,!1);if(null==s)return null;return r.convertToNumber(s)},M.calculateRunning=function(t,e,i,r){try{if(null==i)if(e.sti_is(n))i=e.report;else if(e.sti_is(B.StiParserData)){var o=null==e.data?null:e.data.sti_as(n);null!=o&&(i=o.sti_as(n).report)}return i.engine.startIndexPageForPageTotal=0,M.calculate(t,e,i,r,!1,!1,!0)}finally{i.engine.startIndexPageForPageTotal=-1}},M.sum=function(t,e,i){return M.calculate(new o,t,e,i,!1,!1,!1)},M.sumNullable=function(t,e,i){return M.calculateNullable(new T,t,e,i,!1,!1)},M.sumDistinct=function(t,e,i,r){return void 0===r&&(r=null),null==r?M.calculate(new w,t,e,i,!1,!1,!1):M.calculate(new w,t,e,i+"~"+r,!1,!1)},M.cSum=function(t,e,i){return M.calculate(new o,t,e,i,!1,!1,!0)},M.cSumRunning=function(t,e,i){return M.calculateRunning(new o,t,e,i)},M.sumAllLevels=function(t,e,i){return M.calculate(new o,t,e,i,!0,!1,!1)},M.sumAllLevelsByCondition=function(t,e,i,r,n,a){return M.calculateByCondition(new o,t,e,i,r,n,a,!0,!1)},M.sumAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new o,t,e,i,!0,!0,!1)},M.sumOnlyChilds=function(t,e,i){return M.calculate(new o,t,e,i,!1,!0,!1)},M.sumTime=function(t,e,i){return M.calculate(new a,t,e,i,!1,!1,!1)},M.cSumTime=function(t,e,i){return M.calculate(new a,t,e,i)},M.sumTimeAllLevels=function(t,e,i){return M.calculate(new a,t,e,i,!0,!1,!1)},M.sumTimeAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new a,t,e,i,!0,!0,!1)},M.sumTimeOnlyChilds=function(t,e,i){return M.calculate(new a,t,e,i,!1,!0,!1)},M.avg=function(t,e,i){return M.calculate(new s,t,e,i,!1,!1,!1)},M.cAvg=function(t,e,i){return M.calculate(new s,t,e,i)},M.cAvgRunning=function(t,e,i){return M.calculateRunning(new s,t,e,i)},M.avgAllLevels=function(t,e,i){return M.calculate(new s,t,e,i,!0,!1,!1)},M.avgAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new s,t,e,i,!0,!0,!1)},M.avgOnlyChilds=function(t,e,i){return M.calculate(new s,t,e,i,!1,!0,!1)},M.avgDate=function(t,e,i){return M.calculate(new l,t,e,i,!1,!1,!1)},M.cAvgDate=function(t,e,i){return M.calculate(new l,t,e,i)},M.avgDateAllLevels=function(t,e,i){return M.calculate(new l,t,e,i,!0,!1,!1)},M.avgDateAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new l,t,e,i,!0,!0,!1)},M.avgDateOnlyChilds=function(t,e,i){return M.calculate(new l,t,e,i,!1,!0,!1)},M.avgTime=function(t,e,i){return M.calculate(new u,t,e,i,!1,!1,!1)},M.cAvgTime=function(t,e,i){return M.calculate(new u,t,e,i)},M.avgTimeAllLevels=function(t,e,i){return M.calculate(new u,t,e,i,!0,!1,!1)},M.avgTimeAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new u,t,e,i,!0,!0,!1)},M.avgTimeOnlyChilds=function(t,e,i){return M.calculate(new u,t,e,i,!1,!0,!1)},M.max=function(t,e,i){return M.calculate(new c,t,e,i,!1,!1,!1)},M.cMax=function(t,e,i){return M.calculate(new c,t,e,i)},M.cMaxRunning=function(t,e,i){return M.calculateRunning(new c,t,e,i)},M.maxAllLevels=function(t,e,i){return M.calculate(new c,t,e,i,!0,!1,!1)},M.maxAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new c,t,e,i,!0,!0,!1)},M.maxOnlyChilds=function(t,e,i){return M.calculate(new c,t,e,i,!1,!0,!1)},M.min=function(t,e,i){return M.calculate(new p,t,e,i,!1,!1,!1)},M.cMin=function(t,e,i){return M.calculate(new p,t,e,i)},M.cMinRunning=function(t,e,i){return M.calculateRunning(new p,t,e,i)},M.minAllLevels=function(t,e,i){return M.calculate(new p,t,e,i,!0,!1,!1)},M.minAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new p,t,e,i,!0,!0,!1)},M.minOnlyChilds=function(t,e,i){return M.calculate(new p,t,e,i,!1,!0,!1)},M.median=function(t,e,i){return M.calculate(new h,t,e,i,!1,!1,!1)},M.cMedian=function(t,e,i){return M.calculate(new h,t,e,i)},M.cMedianRunning=function(t,e,i){return M.calculateRunning(new h,t,e,i)},M.medianAllLevels=function(t,e,i){return M.calculate(new h,t,e,i,!0,!1,!1)},M.medianAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new h,t,e,i,!0,!0,!1)},M.medianOnlyChilds=function(t,e,i){return M.calculate(new h,t,e,i,!1,!0,!1)},M.mode=function(t,e,i){return M.calculate(new g,t,e,i,!1,!1,!1)},M.cMode=function(t,e,i){return M.calculate(new g,t,e,i)},M.cModeRunning=function(t,e,i){return M.calculateRunning(new g,t,e,i)},M.modeAllLevels=function(t,e,i){return M.calculate(new g,t,e,i,!0,!1,!1)},M.modeAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new g,t,e,i,!0,!0,!1)},M.modeOnlyChilds=function(t,e,i){return M.calculate(new g,t,e,i,!1,!0,!1)},M.first=function(t,e,i){return M.calculate(new m,t,e,i,!1,!1,!1)},M.cFirst=function(t,e,i){return M.calculate(new m,t,e,i)},M.cFirstRunning=function(t,e,i){return M.calculateRunning(new m,t,e,i)},M.firstAllLevels=function(t,e,i){return M.calculate(new m,t,e,i,!0,!1,!1)},M.firstAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new m,t,e,i,!0,!0,!1)},M.firstOnlyChilds=function(t,e,i){return M.calculate(new m,t,e,i,!1,!0,!1)},M.last=function(t,e,i){return M.calculate(new d,t,e,i,!1,!1,!1)},M.cLast=function(t,e,i){return M.calculate(new d,t,e,i)},M.cLastRunning=function(t,e,i){return M.calculateRunning(new d,t,e,i)},M.lastAllLevels=function(t,e,i){return M.calculate(new d,t,e,i,!0,!1,!1)},M.lastAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new d,t,e,i,!0,!0,!1)},M.lastOnlyChilds=function(t,e,i){return M.calculate(new d,t,e,i,!1,!0,!1)},M.count=function(t,e,i){return void 0===e&&(e=null),void 0===i&&(i=null),M.calculate(new S,t,e,i,!1,!1,!1)},M.cCount=function(t,e,i){return void 0===e&&(e=null),void 0===i&&(i=null),M.calculate(new S,t,e,i)},M.cCountRunning=function(t,e,i){return void 0===e&&(e=null),void 0===i&&(i=null),M.calculateRunning(new S,t,e,i)},M.countAllLevels=function(t){return M.calculate(new S,t,null,null,!0,!1,!1)},M.countAllLevelsOnlyChilds=function(t){return M.calculate(new S,t,null,null,!0,!0,!1)},M.countOnlyChilds=function(t){return M.calculate(new S,t,null,null,!1,!0,!1)},M.countDistinct=function(t,e,i){return M.calculate(new f,t,e,i,!1,!1,!1)},M.cCountDistinct=function(t,e,i){return M.calculate(new f,t,e,i)},M.cCountDistinctRunning=function(t,e,i){return M.calculateRunning(new f,t,e,i)},M.countDistinctAllLevels=function(t,e,i){return M.calculate(new f,t,e,i,!0,!1,!1)},M.countDistinctAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new f,t,e,i,!0,!0,!1)},M.countDistinctOnlyChilds=function(t,e,i){return M.calculate(new f,t,e,i,!1,!0,!1)},M.minDate=function(t,e,i){return M.calculate(new y,t,e,i,!1,!1,!1)},M.cMinDate=function(t,e,i){return M.calculate(new y,t,e,i)},M.minDateAllLevels=function(t,e,i){return M.calculate(new y,t,e,i,!0,!1,!1)},M.minDateAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new y,t,e,i,!0,!0,!1)},M.minDateOnlyChilds=function(t,e,i){return M.calculate(new y,t,e,i,!1,!0,!1)},M.minTime=function(t,e,i){return M.calculate(new b,t,e,i,!1,!1,!1)},M.cMinTime=function(t,e,i){return M.calculate(new b,t,e,i)},M.minTimeAllLevels=function(t,e,i){return M.calculate(new b,t,e,i,!0,!1,!1)},M.minTimeAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new b,t,e,i,!0,!0,!1)},M.minTimeOnlyChilds=function(t,e,i){return M.calculate(new b,t,e,i,!1,!0,!1)},M.minStr=function(t,e,i){return M.calculate(new C,t,e,i,!1,!1,!1)},M.cMinStr=function(t,e,i){return M.calculate(new C,t,e,i)},M.minStrAllLevels=function(t,e,i){return M.calculate(new C,t,e,i,!0,!1,!1)},M.minStrAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new C,t,e,i,!0,!0,!1)},M.minStrOnlyChilds=function(t,e,i){return M.calculate(new C,t,e,i,!1,!0,!1)},M.maxDate=function(t,e,i){return M.calculate(new v,t,e,i,!1,!1,!1)},M.cMaxDate=function(t,e,i){return M.calculate(new v,t,e,i)},M.maxDateAllLevels=function(t,e,i){return M.calculate(new v,t,e,i,!0,!1,!1)},M.maxDateAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new v,t,e,i,!0,!0,!1)},M.maxDateOnlyChilds=function(t,e,i){return M.calculate(new v,t,e,i,!1,!0,!1)},M.maxTime=function(t,e,i){return M.calculate(new I,t,e,i,!1,!1,!1)},M.cMaxTime=function(t,e,i){return M.calculate(new I,t,e,i)},M.maxTimeAllLevels=function(t,e,i){return M.calculate(new I,t,e,i,!0,!1,!1)},M.maxTimeAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new I,t,e,i,!0,!0,!1)},M.maxTimeOnlyChilds=function(t,e,i){return M.calculate(new I,t,e,i,!1,!0,!1)},M.maxStr=function(t,e,i){return M.calculate(new A,t,e,i,!1,!1,!1)},M.cMaxStr=function(t,e,i){return M.calculate(new A,t,e,i)},M.maxStrAllLevels=function(t,e,i){return M.calculate(new A,t,e,i,!0,!1,!1)},M.maxStrAllLevelsOnlyChilds=function(t,e,i){return M.calculate(new A,t,e,i,!0,!0,!1)},M.maxStrOnlyChilds=function(t,e,i){return M.calculate(new A,t,e,i,!1,!0,!1)},M.rank=function(t,i,r,n,o){void 0===n&&(n=!0),void 0===o&&(o=e.StiRankOrder.Asc);var a=this.calculate(new N(!1,n,o),t,i,r,!1,!1,!1),s=a.sti_as(R);if(null!=s&&null!=t){var l=null,u=null==t?null:t.sti_as(B.StiParserData);if(null!=u){var c=u.asmList;l=u.parser.executeAsm(c)}if(null!=l&&l!=L.value)return+s.get(l);return 0}return 0},M.saveState=function(t){if(t.saveState("Totals"),null!=t.dataBandInfo&&null!=t.dataBandInfo.detailDataBands)for(var e=0,i=t.dataBandInfo.detailDataBands.list;e<i.length;e++){var r=i[e];M.saveState(r)}},M.restoreState=function(t){if(t.restoreState("Totals"),null!=t.dataBandInfo&&null!=t.dataBandInfo.detailDataBands)for(var e=0,i=t.dataBandInfo.detailDataBands.list;e<i.length;e++){var r=i[e];M.restoreState(r)}},M.storeCachedValue=function(t,e,i,r){var n=null==t?null:t.sti_as(B.StiParserData);null!=n&&(t=n.data);var o=e.cachedTotals.get(t);null==o&&(o=new R,e.cachedTotals.set(t,o)),o.set(i,r)},M.getCachedValue=function(t,e,i,r,n,o,a,s,l){var u=new O,c=e.sti_as(B.StiParserData);if(null!=c&&(e=c.data,null!=c.asmList))for(var p=0,h=c.asmList;p<h.length;p++){var g=h[p];u.append(g.toString()),u.append("*")}var m=String.stiFormat("{0}_*_{1}_*_{2}_*_{3}_*_{4}_*_{5}",t.serviceName,r,u.toString(),n,o,a?"PageTotal"+i.currentPrintPage.toString():"False"),d=null,S=!1;null==i.cachedTotals&&(i.cachedTotals=new R);var f=i.cachedTotals.get(e);return null!=f&&f.containsKey(m)&&(d=f.get(m),S=!0),s.ref=d,l.ref=m,S},M}();e.Totals=M}(e=t.Report||(t.Report={}))}(Stimulsoft||(Stimulsoft={}));;
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.Report.Components.StiFilterItem,o=e.Report.Components.StiFilterDataType,a=e.System.ICloneable,s=e.Base.Localization.StiLocalization,l=e.System.Enum,u=e.Report.Components.StiFilterCondition,c=function(){function e(e,t,r,i){void 0===e&&(e=n.Argument),void 0===t&&(t=o.String),void 0===r&&(r=u.EqualTo),void 0===i&&(i=String.empty),this._condition=u.EqualTo,this._dataType=o.String,this._item=n.Argument,this._valueObj=String.empty,this.filters=null,this._item=e,this._dataType=t,this._condition=r,this._valueObj=i}return e.prototype.implements=function(){return e.implementsStiChartFilter||(e.implementsStiChartFilter=[i,t.IStiChartFilter,a]),e.implementsStiChartFilter},e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyEnum("Condition",u,this.condition,u.EqualTo),t.addPropertyEnum("DataType",o,this.dataType,o.String),t.addPropertyEnum("Item",n,this.item,n.Argument),t.addPropertyStringNullOfEmpty("Value",this.value),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var i=r[t];switch(i.name){case"Condition":this._condition=l.parse(u,i.value.toString());break;case"DataType":this._dataType=l.parse(o,i.value.toString());break;case"Item":this._item=l.parse(n,i.value.toString());break;case"Value":this._valueObj=i.value.toString();break}}},e.prototype.loadFromXml=function(e,t){for(var r=0;r<e.childNodes.length;r++){var i=e.childNodes[r];switch(i.nodeName){case"Condition":this._condition=l.parse(u,i.textContent.toString());break;case"DataType":this._dataType=l.parse(o,i.textContent.toString());break;case"Item":this._item=l.parse(n,i.textContent.toString());break;case"Value":this._valueObj=i.textContent.toString();break}}},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"index",{get:function(){if(null==this.filters)return-1;return this.filters.indexOf(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"condition",{get:function(){return this._condition},set:function(e){this._condition=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataType",{get:function(){return this._dataType},set:function(e){this._dataType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this._item},set:function(e){this._item=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._valueObj},set:function(e){this._valueObj=e},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var e="";switch(this.condition){case u.EqualTo:e="=";break;case u.NotEqualTo:e="<>";break;case u.GreaterThan:e=">";break;case u.GreaterThanOrEqualTo:e=">=";break;case u.LessThan:e="<";break;case u.LessThanOrEqualTo:e="=<";break}var t=s.get("PropertyMain","Argument");switch(l.parse(n,t)){case n.Value:t=s.get("PropertyMain","Value");break;case n.ValueEnd:t=s.get("PropertyMain","Value");break}return String.stiFormat("{0} {1} {2}",t,e,this.value)},e}();t.StiChartFilter=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Report.Components.StiFilterCondition,n=e.Report.Components.StiFilterDataType,o=e.Report.Components.StiFilterItem,a=e.System.Drawing.Color,s=function(s){function l(e,t,r,l,u){void 0===e&&(e=a.white),void 0===t&&(t=o.Argument),void 0===r&&(r=n.String),void 0===l&&(l=i.EqualTo),void 0===u&&(u=String.empty);var c=s.call(this,t,r,l,u)||this;return c._color=a.white,c.conditions=null,c._color=e,c}return __extends(l,s),l.prototype.implements=function(){return l.implementsStiChartCondition||(l.implementsStiChartCondition=s.prototype.implements.call(this).concat([t.IStiChartCondition,t.IStiChartFilter])),l.implementsStiChartCondition},l.prototype.saveToJsonObject=function(e){var t=s.prototype.saveToJsonObject.call(this,e);return t.addPropertyStringNullOfEmpty("Color",r.Serialize.jColor(this.color,a.white)),t},l.prototype.loadFromJsonObject=function(e){s.prototype.loadFromJsonObject.call(this,e);for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"Color":this._color=r.Deserialize.color(n.value.toString());break}}},l.prototype.loadFromXml=function(t,r){s.prototype.loadFromXml.call(this,t,r);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"Color":this._color=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break}}},l.prototype.clone=function(){return s.prototype.clone.call(this)},Object.defineProperty(l.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),l}(t.StiChartFilter);t.StiChartCondition=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.System.Collections.CollectionBase,a=e.System.Enum,s=e.System.Text.XMLConvert,l=e.Report.Components.StiFilterCondition,u=e.Report.Components.StiFilterItem,c=e.Report.Components.StiFilterDataType,h=function(o){function h(){return null!==o&&o.apply(this,arguments)||this}return __extends(h,o),h.prototype.implements=function(){return h.implementsStiChartConditionsCollection||(h.implementsStiChartConditionsCollection=[i,n,t.IStiChartConditionsCollection]),h.implementsStiChartConditionsCollection},h.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new r,i=0,n=0,o=this.list;n<o.length;n++){var a=o[n];t.addPropertyJObject(i.toString(),a.saveToJsonObject(e)),i++}return t},h.prototype.loadFromJsonObject=function(e){for(var r=0,i=e.properties();r<i.length;r++){var n=i[r],o=new t.StiChartCondition;o.loadFromJsonObject(n.value),this.list.add(o)}},h.prototype.loadFromXml=function(r){for(var i=0;i<r.childNodes.length;i++){var n=r.childNodes[i];if("value"==n.nodeName){var o=n.textContent.split(","),h=o[3];"GreaterThen"==h?h="GreaterThan":"GreaterThenOrEqualTo"==h?h="GreaterThanOrEqualTo":"LessThen"==h?h="LessThan":"LessThenOrEqualTo"==h?h="LessThanOrEqualTo":"GreaterThen"==h&&(h="GreaterThan");var p=new t.StiChartCondition(e.System.Text.StiReportObjectStringConverter.convertStringToColor(o[0]),a.parse(u,o[1]),a.parse(c,o[2]),a.parse(l,h),s.decodeName(o[4]));this.add(p)}}},h.prototype.clone=function(){for(var e=new h,t=0,r=this.list;t<r.length;t++){var i=r[t];e.add(i.clone())}return e},h.prototype.add=function(e){this.list.add(e),null==e.conditions&&(e.conditions=this)},h.prototype.addRange=function(e){for(var t=0,r=e.list;t<r.length;t++){var i=r[t];this.add(i)}},h.prototype.addRange2=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.add(i)}},h.prototype.contains=function(e){return this.list.contains(e)},h.prototype.indexOf=function(e){return this.list.indexOf(e)},h.prototype.insert=function(e,t){this.list.insert(e,t)},h.prototype.remove=function(e){this.list.remove(e)},h.prototype.getByIndex=function(e){return this.list[e]},h.prototype.setByIndex=function(e,t){this.list[e]=t},h}(o);t.StiChartConditionsCollection=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.System.DateTime,n=e.Report.Expressions.StiExpression,o=e.System.Text.XMLConvert,a=e.Base.StiJson,s=e.Base.StiJsonSaveMode,l=e.Base.JsonReportObject.IStiJsonReportObject,u=e.System.ICloneable,c=e.System.Text.StringBuilder,h=e.Report.Components.StiText,p=e.Report.Components.StiFilterMode,f=e.Base.StiGuidUtils,m=e.Base.Drawing.StiSolidBrush,S=e.Base.Drawing.StiGradientBrush,g=e.Base.Drawing.StiGlareBrush,d=e.System.Enum,y=e.Base.Services.StiService,b=function(y){function b(){var e=y.call(this)||this;return e._allowApplyStyle=!0,e._format="",e._sortBy=r.StiSeriesSortType.None,e._sortDirection=r.StiSeriesSortDirection.Ascending,e._showInLegend=!0,e._showSeriesLabels=r.StiShowSeriesLabels.FromChart,e._showShadow=!0,e._filterMode=p.And,e._filters=new r.StiChartFiltersCollection,e._conditions=new r.StiChartConditionsCollection,e._topN=new r.StiSeriesTopN,e._yAxis=r.StiSeriesYAxis.LeftYAxis,e._values=[1,3,2],e._valueDataColumn=String.empty,e._arguments=[],e._argumentDataColumn=String.empty,e._autoSeriesTitleDataColumn=String.empty,e._autoSeriesKeyDataColumn=String.empty,e._autoSeriesColorDataColumn=String.empty,e._toolTips=[],e._toolTipDataColumn=String.empty,e._tags=[],e._tagDataColumn=String.empty,e._hyperlinks=[],e._hyperlinkDataColumn=String.empty,e._drillDownEnabled=!1,e._drillDownReport=String.empty,e._drillDownPageGuid=null,e._allowSeries=!0,e._allowSeriesElements=!0,e.valueObj="",e._listOfValues="",e._argument="",e._listOfArguments="",e._titleValue=null,e._title="",e._toolTip="",e._listOfToolTips="",e._tag="",e._listOfTags="",e._hyperlink="",e._listOfHyperlinks="",e.seriesLabels=new r.StiCenterAxisLabels,e.trendLine=new r.StiTrendLineNone,e.interaction=new r.StiSeriesInteraction,e}return __extends(b,y),b.prototype.implements=function(){return b.implementsStiSeries||(b.implementsStiSeries=y.prototype.implements.call(this).concat([l,u,r.IStiSeries,l])),b.implementsStiSeries},b.prototype.saveToJsonObject=function(e){var t=new a;return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyBool("AllowApplyStyle",this.allowApplyStyle,!0),t.addPropertyStringNullOfEmpty("Format",this._format),t.addPropertyEnum("SortBy",r.StiSeriesSortType,this._sortBy,r.StiSeriesSortType.None),t.addPropertyEnum("SortDirection",r.StiSeriesSortDirection,this._sortDirection,r.StiSeriesSortDirection.Ascending),t.addPropertyBool("ShowInLegend",this._showInLegend,!0),t.addPropertyEnum("ShowSeriesLabels",r.StiShowSeriesLabels,this._showSeriesLabels,r.StiShowSeriesLabels.FromChart),t.addPropertyBool("ShowShadow",this._showShadow,!0),t.addPropertyEnum("FilterMode",p,this._filterMode,p.And),t.addPropertyJObject("Filters",this._filters.saveToJsonObject(e)),t.addPropertyJObject("Conditions",this._conditions.saveToJsonObject(e)),t.addPropertyJObject("TopN",this.topN.saveToJsonObject(e)),t.addPropertyEnum("YAxis",r.StiSeriesYAxis,this._yAxis,r.StiSeriesYAxis.LeftYAxis),t.addPropertyJObject("SeriesLabels",this._seriesLabels.saveToJsonObject(e)),t.addPropertyJObject("TrendLine",this.trendLine.saveToJsonObject(e)),t.addPropertyStringNullOfEmpty("ValueDataColumn",this.valueDataColumn),t.addPropertyStringNullOfEmpty("ArgumentDataColumn",this._argumentDataColumn),t.addPropertyStringNullOfEmpty("AutoSeriesTitleDataColumn",this._autoSeriesTitleDataColumn),t.addPropertyStringNullOfEmpty("AutoSeriesKeyDataColumn",this._autoSeriesKeyDataColumn),t.addPropertyStringNullOfEmpty("AutoSeriesColorDataColumn",this._autoSeriesColorDataColumn),t.addPropertyStringNullOfEmpty("ToolTipDataColumn",this._toolTipDataColumn),t.addPropertyStringNullOfEmpty("TagDataColumn",this._tagDataColumn),t.addPropertyStringNullOfEmpty("HyperlinkDataColumn",this._hyperlinkDataColumn),t.addPropertyBool("DrillDownEnabled",this.drillDownEnabled),t.addPropertyStringNullOfEmpty("DrillDownReport",this.drillDownReport),t.addPropertyStringNullOfEmpty("DrillDownPageGuid",this._drillDownPageGuid),t.addPropertyBool("AllowSeries",this._allowSeries,!0),t.addPropertyBool("AllowSeriesElements",this._allowSeriesElements,!0),t.addPropertyJObject("Interaction",this.interaction.saveToJsonObject(e)),t.addPropertyJObject("Value",new n(this.value).saveToJsonObject(e)),t.addPropertyJObject("ListOfValues",new n(this.listOfValues).saveToJsonObject(e)),t.addPropertyJObject("Argument",new n(this.argument).saveToJsonObject(e)),t.addPropertyJObject("ListOfArguments",new n(this.listOfArguments).saveToJsonObject(e)),t.addPropertyJObject("Title",new n(this.title).saveToJsonObject(e)),t.addPropertyJObject("ToolTip",new n(this.toolTip).saveToJsonObject(e)),t.addPropertyJObject("ListOfToolTips",new n(this.listOfToolTips).saveToJsonObject(e)),t.addPropertyJObject("Tag",new n(this.tag).saveToJsonObject(e)),t.addPropertyJObject("ListOfTags",new n(this.listOfTags).saveToJsonObject(e)),t.addPropertyJObject("Hyperlink",new n(this.hyperlink).saveToJsonObject(e)),t.addPropertyJObject("ListOfHyperlinks",new n(this.listOfHyperlinks).saveToJsonObject(e)),e==s.Document&&(t.addPropertyStringNullOfEmpty("ValuesString",this.valuesString),t.addPropertyStringNullOfEmpty("ArgumentsString",this.argumentsString),t.addPropertyStringNullOfEmpty("ToolTipsString",this.toolTipsString),t.addPropertyStringNullOfEmpty("TagString",this.tagString),t.addPropertyStringNullOfEmpty("HyperlinkString",this.hyperlinkString),t.addPropertyStringNullOfEmpty("TitleValue",this.titleValue)),t},b.prototype.loadFromJsonObject=function(e){for(var t=0,i=e.properties();t<i.length;t++){var o=i[t];switch(o.name){case"AllowApplyStyle":this.allowApplyStyle=o.value.toBoolean();break;case"Format":this._format=o.value.toString();break;case"SortBy":this._sortBy=d.parse(r.StiSeriesSortType,o.value.toString());break;case"SortDirection":this._sortDirection=d.parse(r.StiSeriesSortDirection,o.value.toString());break;case"ShowInLegend":this._showInLegend=o.value.toBoolean();break;case"ShowSeriesLabels":this._showSeriesLabels=d.parse(r.StiShowSeriesLabels,o.value.toString());break;case"ShowShadow":this._showShadow=o.value.toBoolean();break;case"FilterMode":this._filterMode=d.parse(p,o.value.toString());break;case"Filters":this._filters.loadFromJsonObject(o.value);break;case"Conditions":this._conditions.loadFromJsonObject(o.value);break;case"TopN":this.topN.loadFromJsonObject(o.value);break;case"YAxis":this._yAxis=d.parse(r.StiSeriesYAxis,o.value.toString());break;case"SeriesLabels":this._seriesLabels=r.StiSeriesLabels.loadFromJsonObjectInternal(o.value,this.chart);break;case"TrendLine":this.trendLine=r.StiTrendLine.loadFromJsonObjectInternal(o.value);break;case"ValueDataColumn":this.valueDataColumn=o.value.toString();break;case"ArgumentDataColumn":this._argumentDataColumn=o.value.toString();break;case"AutoSeriesTitleDataColumn":this._autoSeriesTitleDataColumn=o.value.toString();break;case"AutoSeriesKeyDataColumn":this._autoSeriesKeyDataColumn=o.value.toString();break;case"AutoSeriesColorDataColumn":this._autoSeriesColorDataColumn=o.value.toString();break;case"ToolTipDataColumn":this._toolTipDataColumn=o.value.toString();break;case"TagDataColumn":this._tagDataColumn=o.value.toString();break;case"HyperlinkDataColumn":this._hyperlinkDataColumn=o.value.toString();break;case"DrillDownEnabled":this.drillDownEnabled=o.value.toBoolean();break;case"DrillDownReport":this.drillDownReport=o.value.toString();break;case"DrillDownPageGuid":this._drillDownPageGuid=o.value.toString();break;case"AllowSeries":this._allowSeries=o.value.toBoolean();break;case"AllowSeriesElements":this._allowSeriesElements=o.value.toBoolean();break;case"Interaction":this.interaction.loadFromJsonObject(o.value);break;case"NewAutoSeriesEvent":break;case"GetValueEvent":break;case"GetListOfValuesEvent":break;case"GetArgumentEvent":break;case"GetListOfArgumentsEvent":break;case"GetTitleEvent":break;case"GetToolTipEvent":break;case"GetListOfToolTipsEvent":break;case"GetTagEvent":break;case"GetListOfTagsEvent":break;case"GetHyperlinkEvent":break;case"GetListOfHyperlinksEvent":break;case"Value":var a=new n;a.loadFromJsonObject(o.value),this.value=a.value;break;case"ListOfValues":var s=new n;s.loadFromJsonObject(o.value),this.listOfValues=s.value;break;case"Argument":var l=new n;l.loadFromJsonObject(o.value),this.argument=l.value;break;case"ListOfArguments":var u=new n;u.loadFromJsonObject(o.value),this.listOfArguments=u.value;break;case"Title":var c=new n;c.loadFromJsonObject(o.value),this.title=c.value;break;case"ToolTip":var h=new n;h.loadFromJsonObject(o.value),this.toolTip=h.value;break;case"ListOfToolTips":var f=new n;f.loadFromJsonObject(o.value),this.listOfToolTips=f.value;break;case"Tag":var m=new n;m.loadFromJsonObject(o.value),this.tag=m.value;break;case"ListOfTags":var S=new n;S.loadFromJsonObject(o.value),this.listOfTags=S.value;break;case"Hyperlink":var g=new n;g.loadFromJsonObject(o.value),this.hyperlink=g.value;break;case"ListOfHyperlinks":var s=new n;s.loadFromJsonObject(o.value),this.listOfHyperlinks=s.value;break;case"ValuesString":this.valuesString=o.value.toString();break;case"ArgumentsString":this.argumentsString=o.value.toString();break;case"ToolTipsString":this.toolTipsString=o.value.toString();break;case"TagString":this.tagString=o.value.toString();break;case"HyperlinkString":this.hyperlinkString=o.value.toString();break;case"TitleValue":this.titleValue=o.value.toString();break}}},b.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var i=e.childNodes[t];switch(i.nodeName){case"AllowApplyStyle":this.allowApplyStyle=i.textContent.toBoolean();break;case"Format":this._format=i.textContent.toString();break;case"SortBy":this._sortBy=d.parse(r.StiSeriesSortType,i.textContent);break;case"SortDirection":this._sortDirection=d.parse(r.StiSeriesSortDirection,i.textContent);break;case"ValuesString":this.valuesString=i.textContent;break;case"ArgumentsString":this.argumentsString=i.textContent;break;case"ShowInLegend":this._showInLegend=i.textContent.toBoolean();break;case"ShowSeriesLabels":this._showSeriesLabels=d.parse(r.StiShowSeriesLabels,i.textContent);break;case"ShowShadow":this._showShadow=i.textContent.toBoolean();break;case"FilterMode":this._filterMode=d.parse(p,i.textContent);break;case"Filters":this._filters.loadFromXml(i);break;case"Conditions":this._conditions.loadFromXml(i);break;case"TopN":this.topN.loadFromXml(i);break;case"YAxis":this._yAxis=d.parse(r.StiSeriesYAxis,i.textContent);break;case"SeriesLabels":this._seriesLabels=r.StiSeriesLabels.loadLabelsFromXml(i,this._chart);break;case"TrendLine":this.trendLine=r.StiTrendLine.loadTrendLineFromXml(i);break;case"ValueDataColumn":this.valueDataColumn=i.textContent;break;case"ArgumentDataColumn":this._argumentDataColumn=i.textContent;break;case"AutoSeriesTitleDataColumn":this._autoSeriesTitleDataColumn=i.textContent;break;case"AutoSeriesKeyDataColumn":this._autoSeriesKeyDataColumn=i.textContent;break;case"AutoSeriesColorDataColumn":this._autoSeriesColorDataColumn=i.textContent;break;case"ToolTipDataColumn":this._toolTipDataColumn=i.textContent;break;case"TagDataColumn":this._tagDataColumn=i.textContent;break;case"HyperlinkDataColumn":this._hyperlinkDataColumn=i.textContent;break;case"DrillDownEnabled":this.drillDownEnabled=i.textContent.toBoolean();break;case"DrillDownReport":this.drillDownReport=i.textContent;break;case"DrillDownPageGuid":this._drillDownPageGuid=i.textContent;break;case"AllowSeries":this._allowSeries=i.textContent.toBoolean();break;case"AllowSeriesElements":this._allowSeriesElements=i.textContent.toBoolean();break;case"Interaction":this.interaction.loadFromXml(i);break;case"NewAutoSeriesEvent":break;case"GetValueEvent":break;case"GetListOfValuesEvent":break;case"GetArgumentEvent":break;case"GetListOfArgumentsEvent":break;case"GetTitleEvent":break;case"GetToolTipEvent":break;case"GetListOfToolTipsEvent":break;case"GetTagEvent":break;case"GetListOfTagsEvent":break;case"GetHyperlinkEvent":break;case"GetListOfHyperlinksEvent":break;case"Value":var o=new n;o.loadFromXml(i),this.value=o.value;break;case"ListOfValues":var a=new n;a.loadFromXml(i),this.listOfValues=a.value;break;case"Argument":var s=new n;s.loadFromXml(i),this.argument=s.value;break;case"ListOfArguments":var l=new n;l.loadFromXml(i),this.listOfArguments=l.value;break;case"Title":var u=new n;u.loadFromXml(i),this.title=u.value;break;case"ToolTip":var c=new n;c.loadFromXml(i),this.toolTip=c.value;break;case"ListOfToolTips":var h=new n;h.loadFromXml(i),this.listOfToolTips=h.value;break;case"Tag":var f=new n;f.loadFromXml(i),this.tag=f.value;break;case"ListOfTags":var m=new n;m.loadFromXml(i),this.listOfTags=m.value;break;case"Hyperlink":var S=new n;S.loadFromXml(i),this.hyperlink=S.value;break;case"ListOfHyperlinks":var a=new n;a.loadFromXml(i),this.listOfHyperlinks=a.value;break;case"TitleValue":var g=new n;g.loadFromXml(i),this.titleValue=g.value;break}}},Object.defineProperty(b.prototype,"componentId",{get:function(){return t.StiComponentId.StiSeries},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),b.prototype.clone=function(){var e=y.prototype.clone.call(this);return e.title=this.title,e.values=this.values.clone(),e.arguments=this.arguments.clone(),e.tags=this.tags.clone(),e.toolTips=this.toolTips.clone(),e.hyperlinks=this.hyperlinks.clone(),e.topN=this.topN.clone(),e.interaction=this.interaction.clone(),e.seriesLabels=this.seriesLabels.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.series=e),e},b.prototype.baseTransform=function(e,t,r,i,n,o){},Object.defineProperty(b.prototype,"parent",{get:function(){return this.chart},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"serviceName",{get:function(){return this.core.localizedName},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"serviceCategory",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"serviceType",{get:function(){return b},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"sortBy",{get:function(){return this._sortBy},set:function(e){this._sortBy=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"sortDirection",{get:function(){return this._sortDirection},set:function(e){this._sortDirection=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"showInLegend",{get:function(){return this._showInLegend},set:function(e){this._showInLegend=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"showLabels",{get:function(){return!0},set:function(e){e&&(this.showSeriesLabels=r.StiShowSeriesLabels.FromChart)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"showSeriesLabels",{get:function(){return this._showSeriesLabels},set:function(e){this._showSeriesLabels=e==r.StiShowSeriesLabels.None?r.StiShowSeriesLabels.FromChart:e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"showShadow",{get:function(){return this._showShadow},set:function(e){this._showShadow=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filterMode",{get:function(){return this._filterMode},set:function(e){this._filterMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"filters",{get:function(){return this._filters},set:function(e){this._filters=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"conditions",{get:function(){return this._conditions},set:function(e){this._conditions=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"topN",{get:function(){return this._topN},set:function(e){this._topN=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"yAxis",{get:function(){return this._yAxis},set:function(e){this._yAxis=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"seriesLabels",{get:function(){return this._seriesLabels},set:function(e){this._seriesLabels=e,this._seriesLabels.chart=this.chart},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"trendLine",{get:function(){return this._trendLine},set:function(e){this._trendLine=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!=e&&(this._chart=e,null!=e&&(this.seriesLabels.chart=e))},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"values",{get:function(){if(null!=this.chart&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValues)&&!this.listOfValues.contains("{"))return b.getNullableValuesFromString(this,this.listOfValues);var e=this.chart.series.indexOf(this);if(this.sti_is(r.IStiFunnelSeries))return[3,2,1];if(this.sti_is(r.IStiGanttSeries))return[1+3*e,3+4*e,7+3*e];if(this.sti_is(r.IStiScatterSeries))return[1+e,6+e,2+e];if(this.sti_is(r.IStiPieSeries)){if(0==e)return[1,3,2];return[1+e,3+e,4+e]}if(this.sti_is(r.StiRadarSeries))return[1+e,2+e,3+e,4+e,5+e];if(0==e)return this._values;return[1+e,3+e,2.5+e]}return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"valueDataColumn",{get:function(){return this._valueDataColumn},set:function(e){this._valueDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"valuesString",{get:function(){for(var e=new c,t=!0,r=0,i=this._values;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",null==n?0:n):e.appendFormat(";{0}",null==n?0:n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._values=[];else{var t=e.split(";");this._values=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this._values[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"arguments",{get:function(){return this.getArguments()},set:function(e){this.setArguments(e)},enumerable:!0,configurable:!0}),b.prototype.getArguments=function(){if(null!=this.chart&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfArguments))return b.getArgumentsFromString(this.listOfArguments);if((this.sti_is(r.IStiGanttSeries)||this.sti_is(r.IStiRangeBarSeries)||this.sti_is(r.IStiCandlestickSeries))&&(null==this._arguments||0==this._arguments.length))return["A","B","C"];if((this.sti_is(r.IStiScatterSeries)||this.sti_is(r.IStiScatterLineSeries)||this.sti_is(r.IStiScatterSplineSeries))&&(null==this._arguments||0==this._arguments.length))return["1","5","4"]}return this._arguments},b.prototype.setArguments=function(e){this._arguments=e},Object.defineProperty(b.prototype,"argumentDataColumn",{get:function(){return this._argumentDataColumn},set:function(e){this._argumentDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"argumentsString",{get:function(){for(var e=new c,t=!0,r=0,i=this._arguments;r<i.length;r++){var n=i[r];null!=n&&(t?e.appendFormat("{0}",o.encodeName(n.toString())):e.appendFormat(";{0}",o.encodeName(n.toString())),t=!1)}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._arguments=[];else{var t=e.split(";");this._arguments=Array.create(Object,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var a=n[i];this._arguments[r++]=o.decodeName(a)}}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"autoSeriesTitleDataColumn",{get:function(){return this._autoSeriesTitleDataColumn},set:function(e){this._autoSeriesTitleDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"autoSeriesKeyDataColumn",{get:function(){return this._autoSeriesKeyDataColumn},set:function(e){this._autoSeriesKeyDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"autoSeriesColorDataColumn",{get:function(){return this._autoSeriesColorDataColumn},set:function(e){this._autoSeriesColorDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toolTips",{get:function(){if(null!=this.chart&&this.chart.isDesigning&&!String.isNullOrEmpty(this.listOfToolTips))return b.getStringsFromString(this.listOfToolTips);return this._toolTips},set:function(e){this._toolTips=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toolTipDataColumn",{get:function(){return this._toolTipDataColumn},set:function(e){this._toolTipDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toolTipsString",{get:function(){for(var e=new c,t=!0,r=0,i=this._toolTips;r<i.length;r++){var n=i[r];null!=n&&(t?e.appendFormat("{0}",o.encodeName(n.toString())):e.appendFormat(";{0}",o.encodeName(n.toString())),t=!1)}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._toolTips=[];else{var t=e.split(";");this._toolTips=Array.create(String,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var a=n[i];this._toolTips[r++]=o.decodeName(a)}}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tags",{get:function(){if(null!=this.chart&&this.chart.isDesigning&&!String.isNullOrEmpty(this.listOfTags))return b.getArgumentsFromString(this.listOfTags);return this._tags},set:function(e){this._tags=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tagDataColumn",{get:function(){return this._tagDataColumn},set:function(e){this._tagDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tagString",{get:function(){for(var e=new c,t=!0,r=0,i=this.tags;r<i.length;r++){var n=i[r];null!=n&&(t?e.appendFormat("{0}",o.encodeName(n.toString())):e.appendFormat(";{0}",o.encodeName(n.toString())),t=!1)}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._tags=[];else{var t=e.split(";");this._tags=Array.create(Object,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var a=n[i];this._tags[r++]=o.decodeName(a)}}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hyperlinks",{get:function(){if(null!=this.chart&&this.chart.isDesigning&&null!=this.listOfHyperlinks&&this.listOfHyperlinks.length>0)return b.getStringsFromString(this.listOfHyperlinks);return this._hyperlinks},set:function(e){this._hyperlinks=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hyperlinkDataColumn",{get:function(){return this._hyperlinkDataColumn},set:function(e){this._hyperlinkDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hyperlinkString",{get:function(){for(var e=new c,t=!0,r=0,i=this._hyperlinks;r<i.length;r++){var n=i[r];null!=n&&(t?e.appendFormat("{0}",o.encodeName(n.toString())):e.appendFormat(";{0}",o.encodeName(n.toString())),t=!1)}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._hyperlinks=[];else{var t=e.split(";");this._hyperlinks=Array.create(String,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var a=n[i];this._hyperlinks[r++]=o.decodeName(a)}}},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"drillDownEnabled",{get:function(){return this._drillDownEnabled},set:function(e){this._drillDownEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"drillDownReport",{get:function(){return this._drillDownReport},set:function(e){this._drillDownReport=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"drillDownPage",{get:function(){if(null==this.chart||null==this.chart.report)return null;for(var e=0,t=this.chart.report.pages.list;e<t.length;e++){var r=t[e];if(r.guid==this.drillDownPageGuid)return r}return null},set:function(e){null==e?this.drillDownPageGuid=null:(null==e.guid&&(e.guid=f.newGuid()),this._drillDownPageGuid=e.guid)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"drillDownPageGuid",{get:function(){return this._drillDownPageGuid},set:function(e){this._drillDownPageGuid=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"allowSeries",{get:function(){return this._allowSeries},set:function(e){this._allowSeries=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"allowSeriesElements",{get:function(){return this._allowSeriesElements},set:function(e){this._allowSeriesElements=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"coreTitle",{get:function(){var e=null;return e=null!=this.chart&&this.chart.isDesigning?this.title:this.titleValue,null==e&&(e=String.empty),e},set:function(e){this.title=e,this.titleValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"interaction",{get:function(){return this._interaction},set:function(e){this._interaction!=e&&(this._interaction=e,null!=e&&(this._interaction.parentSeries=this))},enumerable:!0,configurable:!0}),b.prototype.processSeriesColors=function(e,t){for(var r=0,i=this.conditions.list;r<i.length;r++){var n=i[r];if(this.getConditionResult(e,n))return n.color}return t},b.prototype.processSeriesBrushes=function(e,t){for(var i=0,n=this.conditions.list;i<n.length;i++){var o=n[i];if(this.getConditionResult(e,o))return t=this.allowApplyStyle&&null!=this.chart.style?this.chart.style.core.getColumnBrush(o.color):new m(o.color),this.chart.area.sti_is(r.IStiClusteredBarArea)&&(t.sti_is(S)&&(t.angle+=90),t.sti_is(g)&&(t.angle+=90)),t}return t},b.prototype.getConditionResult=function(e,t){if((null==this.values||this.values.length<=e)&&!this.sti_is(r.IStiFinancialSeries))return!1;var i=null,n=null,o=null,a=null,s=null,l=null,u=null;this.chart.area.sti_is(r.IStiAxisArea)&&this.chart.area.reverseHor&&!this.chart.area.sti_is(r.IStiClusteredBarArea)||this.chart.area.sti_is(r.IStiClusteredBarArea)&&this.chart.area.reverseVert?(null!=this.values&&e<this.values.length&&(i=this.values[this.values.length-e-1]),this.sti_is(r.IStiRangeSeries)&&e<this.sti_as(r.IStiRangeSeries).valuesEnd.length&&(n=this.sti_as(r.IStiRangeSeries).valuesEnd[this.sti_as(r.IStiRangeSeries).valuesEnd.length-e-1]),this.sti_is(r.IStiFinancialSeries)&&(e<this.sti_as(r.IStiFinancialSeries).valuesOpen.length&&(o=this.sti_as(r.IStiFinancialSeries).valuesOpen[this.sti_as(r.IStiFinancialSeries).valuesOpen.length-e-1]),e<this.sti_as(r.IStiFinancialSeries).valuesClose.length&&(a=this.sti_as(r.IStiFinancialSeries).valuesClose[this.sti_as(r.IStiFinancialSeries).valuesClose.length-e-1]),e<this.sti_as(r.IStiFinancialSeries).valuesLow.length&&(s=this.sti_as(r.IStiFinancialSeries).valuesLow[this.sti_as(r.IStiFinancialSeries).valuesLow.length-e-1]),e<this.sti_as(r.IStiFinancialSeries).valuesHigh.length&&(l=this.sti_as(r.IStiFinancialSeries).valuesHigh[this.sti_as(r.IStiFinancialSeries).valuesHigh.length-e-1])),null!=this.arguments&&e<this.arguments.length&&(u=this.arguments[this.arguments.length-e-1])):(null!=this.values&&e<this.values.length&&(i=this.values[e]),this.sti_is(r.IStiRangeSeries)&&e<this.sti_as(r.IStiRangeSeries).valuesEnd.length&&(n=this.sti_as(r.IStiRangeSeries).valuesEnd[e]),this.sti_is(r.IStiFinancialSeries)&&(e<this.sti_as(r.IStiFinancialSeries).valuesOpen.length&&(o=this.sti_as(r.IStiFinancialSeries).valuesOpen[e]),e<this.sti_as(r.IStiFinancialSeries).valuesClose.length&&(a=this.sti_as(r.IStiFinancialSeries).valuesClose[e]),e<this.sti_as(r.IStiFinancialSeries).valuesLow.length&&(s=this.sti_as(r.IStiFinancialSeries).valuesLow[e]),e<this.sti_as(r.IStiFinancialSeries).valuesHigh.length&&(l=this.sti_as(r.IStiFinancialSeries).valuesHigh[e])),null!=this.arguments&&e<this.arguments.length&&(u=this.arguments[e]));var c=r.StiChartHelper.getFilterData(null,t,null);return r.StiChartHelper.getFilterResult(t,u,i,n,o,a,s,l,c)},b.prototype.toString=function(){return this.serviceName},b.getNullableValuesFromString=function(t,r){for(var n=[],o=r.split(";"),a=0,s=o;a<s.length;a++){var l=s[a];if(null!=l&&l.trim().length>0){var u=0;try{u=l.replaceAll(",",".").toNumber()}catch(t){e.System.StiError.showError(t,!1)}var c=l.toNumber();if(l.length>0&&!isNaN(c))u=c;else{var h=i.fromString(l);null!=h&&(t.core.isDateTimeValues=!0,u=h.toOADate())}n.add(u)}}return n.toArray()},b.getValuesFromString=function(t){for(var r=[],i=t.split(";"),n=0,o=i;n<o.length;n++){var a=o[n];if(null!=a&&a.trim().length>0){var s=0;try{s=a.replaceAll(",",".").toNumber()}catch(t){e.System.StiError.showError(t,!1)}r.add(s)}}return r.toArray()},b.getStringsFromString=function(e){for(var t=[],r=e.split(";"),i=0,n=r;i<n.length;i++){var o=n[i];null!=o&&o.trim().length>0&&t.add(o)}return t.toArray()},b.getArgumentsFromString=function(e){return e.split(";")},b.prototype.createNew=function(){return null},b.prototype.getDefaultAreaType=function(){return null},b.prototype.invokeNewAutoSeries=function(e){null!=this.newAutoSeries&&this.newAutoSeries(e.series,e)},b.prototype.onGetValue=function(e){},b.prototype.invokeGetValue=function(r,i){try{if(this.onGetValue(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new h;n.name="**ChartSeriesValue**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.value,n);i.value=r.report.toString2(o)}null!=this.getValue&&this.getValue(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetListOfValues=function(e){},b.prototype.invokeGetListOfValues=function(r,i,n){try{if(this.onGetListOfValues(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var o=new h;o.name="**ChartSeriesListOfValues**",o.page=r.report.pages.getByIndex(0);var a=t.Engine.StiParser.StiParser.parseTextValue(n._listOfValues,o);i.value=r.report.toString2(a)}null!=n.getListOfValues&&n.getListOfValues(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetArgument=function(e){},b.prototype.invokeGetArgument=function(r,i){try{if(this.onGetArgument(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new h;n.name="**ChartSeriesArgument**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.argument,n);i.value=r.report.toString2(o)}null!=this.getArgument&&this.getArgument(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetListOfArguments=function(e){},b.prototype.invokeGetListOfArguments=function(r,i){try{if(this.onGetListOfArguments(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new h;n.name="**ChartSeriesListOfArguments**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this._listOfArguments,n);i.value=r.report.toString2(o)}null!=this.getListOfArguments&&this.getListOfArguments(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetTitle=function(e){},b.prototype.invokeGetTitle=function(r,i){try{if(this.onGetTitle(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new h;n.name="**ChartSeriesTitle**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.title,n);i.value=r.report.toString2(o)}null!=this.getTitle&&this.getTitle(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetToolTip=function(e){},b.prototype.invokeGetToolTip=function(t,r){try{this.onGetToolTip(r),null!=this.getToolTip&&this.getToolTip(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetListOfToolTips=function(e){},b.prototype.invokeGetListOfToolTips=function(t,r){try{this.onGetListOfToolTips(r),null!=this.getListOfToolTips&&this.getListOfToolTips(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetTag=function(e){},b.prototype.invokeGetTag=function(t,r){try{this.onGetTag(r),null!=this.getTag&&this.getTag(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetListOfTags=function(e){},b.prototype.invokeGetListOfTags=function(t,r){try{this.onGetListOfTags(r),null!=this.getListOfTags&&this.getListOfTags(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetHyperlink=function(e){},b.prototype.invokeGetHyperlink=function(t,r){try{this.onGetHyperlink(r),null!=this.getHyperlink&&this.getHyperlink(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},b.prototype.onGetListOfHyperlinks=function(e){},b.prototype.invokeGetListOfHyperlinks=function(t,r){try{this.onGetListOfHyperlinks(r),null!=this.getListOfHyperlinks&&this.getListOfHyperlinks(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(b.prototype,"value",{get:function(){return this.valueObj},set:function(e){this.valueObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"listOfValues",{get:function(){return this._listOfValues},set:function(e){this._listOfValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"argument",{get:function(){return this._argument},set:function(e){this._argument=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"listOfArguments",{get:function(){return this._listOfArguments},set:function(e){this._listOfArguments=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"titleValue",{get:function(){return this._titleValue},set:function(e){this._titleValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toolTip",{get:function(){return this._toolTip},set:function(e){this._toolTip=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"listOfToolTips",{get:function(){return this._listOfToolTips},set:function(e){this._listOfToolTips=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"tag",{get:function(){return this._tag},set:function(e){this._tag=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"listOfTags",{get:function(){return this._listOfTags},set:function(e){this._listOfTags=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"hyperlink",{get:function(){return this._hyperlink},set:function(e){this._hyperlink=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"listOfHyperlinks",{get:function(){return this._listOfHyperlinks},set:function(e){this._listOfHyperlinks=e},enumerable:!0,configurable:!0}),b}(y);r.StiSeries=b}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiColorUtils,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiPenStyle,l=e.Base.Drawing.StiBrush,u=e.System.Enum,c=e.System.Drawing.Color,h=function(h){function p(){var e=h.call(this)||this;return e._showNulls=!0,e._marker=new t.StiMarker,e._lineMarker=new t.StiLineMarker,e._lineColor=c.black,e._lineStyle=s.Solid,e._lighting=!0,e._lineWidth=2,e._labelsOffset=0,e._lineColorNegative=c.firebrick,e._allowApplyColorNegative=!1,e.seriesLabels=new t.StiOutsideEndAxisLabels,e}return __extends(p,h),p.prototype.implements=function(){return p.implementsStiBaseLineSeries||(p.implementsStiBaseLineSeries=h.prototype.implements.call(this).concat([i,t.IStiBaseLineSeries,n,t.IStiSeries,t.IStiAllowApplyColorNegative])),p.implementsStiBaseLineSeries},p.prototype.saveToJsonObject=function(e){var t=h.prototype.saveToJsonObject.call(this,e);return t.removeProperty("Conditions"),t.addPropertyBool("ShowNulls",this.showNulls,!0),t.addPropertyJObject("Marker",this.marker.saveToJsonObject(e)),t.addPropertyJObject("LineMarker",this.lineMarker.saveToJsonObject(e)),t.addPropertyStringNullOfEmpty("LineColor",r.Serialize.jColor(this.lineColor,c.black)),t.addPropertyEnum("LineStyle",s,this.lineStyle,s.Solid),t.addPropertyBool("Lighting",this.lighting,!0),t.addPropertyNumber("LineWidth",this.lineWidth,2),t.addPropertyNumber("LabelsOffset",this._labelsOffset),t.addPropertyStringNullOfEmpty("LineColorNegative",r.Serialize.jColor(this.lineColorNegative,c.firebrick)),t.addPropertyBool("AllowApplyColorNegative",this.allowApplyColorNegative),t},p.prototype.loadFromJsonObject=function(e){h.prototype.loadFromJsonObject.call(this,e);for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"ShowNulls":this.showNulls=n.value.toBoolean();break;case"Marker":this._marker.loadFromJsonObject(n.value);break;case"LineMarker":this.lineMarker.loadFromJsonObject(n.value);break;case"LineColor":this.lineColor=r.Deserialize.color(n.value.toString());break;case"LineStyle":this.lineStyle=u.parse(s,n.value.toString());break;case"Lighting":this.lighting=n.value.toBoolean();break;case"LineWidth":this.lineWidth=n.value.toNumber();break;case"LabelsOffset":this._labelsOffset=n.value.toNumber();break;case"LineColorNegative":this.lineColorNegative=r.Deserialize.color(n.value.toString());break;case"AllowApplyColorNegative":this.allowApplyColorNegative=n.value.toBoolean();break}}},p.prototype.loadFromXml=function(t){h.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowNulls":this.showNulls=i.textContent.toBoolean();break;case"Marker":this._marker.loadFromXml(i);break;case"LineMarker":this.lineMarker.loadFromXml(i);break;case"LineColor":this.lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"LineStyle":this.lineStyle=u.parse(s,i.textContent);break;case"Lighting":this.lighting=i.textContent.toBoolean();break;case"LineWidth":this.lineWidth=i.textContent.toNumber();break;case"LabelsOffset":this._labelsOffset=i.textContent.toNumber();break;case"LineColorNegative":this.lineColorNegative=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"AllowApplyColorNegative":this.allowApplyColorNegative=i.textContent.toBoolean();break}}},p.prototype.clone=function(){var e=h.prototype.clone.call(this);return e.marker=this.marker.clone(),e.lineStyle=this.lineStyle,e},Object.defineProperty(p.prototype,"showNulls",{get:function(){return this._showNulls},set:function(e){this._showNulls=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"showMarker",{get:function(){return this.marker.visible},set:function(e){this.marker.visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"markerColor",{get:function(){return l.toColor(this.marker.brush)},set:function(e){this.marker.brush=new a(e),this.marker.borderColor=o.dark(e,50)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"markerSize",{get:function(){return this.marker.size},set:function(e){this.marker.size=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"markerType",{get:function(){return this.marker.type},set:function(e){this.marker.type=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineMarker",{get:function(){return this._lineMarker},set:function(e){this._lineMarker=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineColor",{get:function(){return this.getLineColor()},set:function(e){this.setLineColor(e)},enumerable:!0,configurable:!0}),p.prototype.getLineColor=function(){return this._lineColor},p.prototype.setLineColor=function(e){this._lineColor=e},Object.defineProperty(p.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lighting",{get:function(){return this._lighting},set:function(e){this._lighting=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){e>0&&(this._lineWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"labelsOffset",{get:function(){return this._labelsOffset},set:function(e){this._labelsOffset=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineColorNegative",{get:function(){return this._lineColorNegative},set:function(e){this._lineColorNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"allowApplyColorNegative",{get:function(){return this._allowApplyColorNegative},set:function(e){this._allowApplyColorNegative=e},enumerable:!0,configurable:!0}),p}(t.StiSeries);t.StiBaseLineSeries=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiGradientBrush,a=e.Base.Drawing.StiSolidBrush,s=function(e){function s(){var t=e.call(this)||this;return t.core=new r.StiScatterSeriesCoreXF(t),t}return __extends(s,e),s.prototype.implements=function(){return s.implementsStiScatterSeries||(s.implementsStiScatterSeries=e.prototype.implements.call(this).concat([i,r.IStiBaseLineSeries,r.IStiSeries,n,r.IStiScatterSeries,r.IStiAllowApplyColorNegative])),s.implementsStiScatterSeries},s.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("LineColorNegative"),r.removeProperty("TopN"),r},Object.defineProperty(s.prototype,"componentId",{get:function(){return t.StiComponentId.StiScatterSeries},enumerable:!0,configurable:!0}),s.prototype.clone=function(){return e.prototype.clone.call(this)},s.prototype.getDefaultAreaType=function(){return r.StiScatterArea},s.prototype.getLineColor=function(){if(this.getStiType()==s){if(this.marker.brush.sti_is(a))return this.marker.brush.color;if(this.marker.brush.sti_is(o))return this.marker.brush.startColor}return e.prototype.getLineColor.call(this)},s.prototype.setLineColor=function(t){e.prototype.setLineColor.call(this,t)},s.prototype.createNew=function(){return new s},s}(r.StiBaseLineSeries);r.StiScatterSeries=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiScatterLineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiScatterLineSeries||(o.implementsStiScatterLineSeries=e.prototype.implements.call(this).concat([r.IStiScatterLineSeries,r.IStiBaseLineSeries,r.IStiScatterSeries,i,r.IStiSeries,n,r.IStiAllowApplyColorNegative])),o.implementsStiScatterLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiScatterLineSeries},enumerable:!0,configurable:!0}),o.prototype.clone=function(){return e.prototype.clone.call(this)},o.prototype.getDefaultAreaType=function(){return r.StiScatterArea},o.prototype.createNew=function(){return new o},o}(r.StiScatterSeries);r.StiScatterLineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.Hashtable,i=e.System.ICloneable,n=function(){function e(e){this._area=e}return e.prototype.implements=function(){return e.implementsStiAreaCoreXF||(e.implementsStiAreaCoreXF=[i,t.IStiApplyStyle,t.IStiAreaCoreXF]),e.implementsStiAreaCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.area.allowApplyStyle&&(this.area.brush=e.core.chartAreaBrush,this.area.borderColor=e.core.chartAreaBorderColor)},e.prototype.render=function(e,t){return null},e.prototype.prepareInfo=function(e){},e.prototype.checkInLabelsTypes=function(e){for(var t=this._area.getSeriesLabelsTypes(),r=0,i=t;r<i.length;r++){if(i[r].getStiType().getStiTypeName()==e.getStiType().getStiTypeName())return!0}return!1},e.prototype.getSeries=function(){for(var e=new r,t=this.area.getSeriesTypes(),i=0,n=t;i<n.length;i++){var o=n[i];e.set(o,o)}for(var a=[],s=0,l=this.area.chart.series.list;s<l.length;s++){var u=l[s];if(null==e.get(u.getStiType()))continue;a.add(u)}return a},e.prototype.isAcceptableSeries=function(e){for(var t=this.area.getSeriesTypes(),r=0,i=t;r<i.length;r++){if(i[r]==e)return!0}return!1},e.prototype.isAcceptableSeriesLabels=function(e){for(var t=this.area.getSeriesLabelsTypes(),r=0,i=t;r<i.length;r++){if(i[r]==e)return!0}return!1},Object.defineProperty(e.prototype,"area",{get:function(){return this._area},set:function(e){this._area=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localizedName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesOrientation",{get:function(){return t.StiChartSeriesOrientation.Vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return null},enumerable:!0,configurable:!0}),e}();t.StiAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.Hashtable,i=e.System.Drawing.Rectangle,n=function(e){function n(t){var r=e.call(this,t)||this;return r.valuesCount=0,r._scrollRangeX=0,r._scrollRangeY=0,r._scrollViewX=0,r._scrollViewY=0,r._blockScrollValueX=!1,r._blockScrollValueY=!1,r._scrollValueX=0,r._scrollValueY=0,r._scrollDpiX=1,r._scrollDpiY=1,r._scrollDragStartValue=0,r}return __extends(n,e),n.prototype.implements=function(){return n.implementsStiAxisAreaCoreXF||(n.implementsStiAxisAreaCoreXF=[t.IStiAxisAreaCoreXF]),n.implementsStiAxisAreaCoreXF},n.prototype.applyStyle=function(t){e.prototype.applyStyle.call(this,t);var r=this.area;r.allowApplyStyle&&(null!=r.interlacingHor&&r.interlacingHor.core.applyStyle(t),null!=r.interlacingVert&&r.interlacingVert.core.applyStyle(t),null!=r.gridLinesHor&&r.gridLinesHor.core.applyStyle(t),null!=r.gridLinesVert&&r.gridLinesVert.core.applyStyle(t),null!=r.xAxis&&r.xAxis.core.applyStyle(t),null!=r.xTopAxis&&r.xTopAxis.core.applyStyle(t),null!=r.yAxis&&r.yAxis.core.applyStyle(t),null!=r.yRightAxis&&r.yRightAxis.core.applyStyle(t))},n.prototype.render=function(e,r){var n=this.area;n.yAxis.info.minimum=0,n.yAxis.info.maximum=0,n.yRightAxis.info.minimum=0,n.yRightAxis.info.maximum=0,n.xAxis.info.minimum=0,n.xAxis.info.maximum=0,n.xTopAxis.info.minimum=0,n.xTopAxis.info.maximum=0,this.prepareInfo(r.clone());var o=null,a=null,s=null,l=null,u=null,c=null,h=null,p=null,f=null,m=null,S=null,g=null,d=i.empty,y=i.empty,b=i.empty,v=i.empty,C=i.empty,w=i.empty,x=i.empty,_=n.core.getSeries();if(_.count>0){if(d=n.yAxis.core.getAxisRect(e,r.clone(),!0,!0,!1,!0).clone(),y=n.yAxis.core.getCenterAxisRect(e,r.clone(),!0,!0,!1).clone(),b=n.yRightAxis.core.getAxisRect(e,r.clone(),!0,!0,!1,!0).clone(),v=n.xTopAxis.core.getAxisRect(e,r.clone(),!0,!0,!1,!0).clone(),C=n.xAxis.core.getCenterAxisRect(e,r.clone(),!0,!0,!1).clone(),w=n.xAxis.core.getAxisRect(e,r.clone(),!0,!0,!1,!0).clone(),this.area.chart.table.core.showTable()){var A=this.area.chart.table.core.getWidthCellLegend(e);A>d.width&&(d.width=A,d.x=-A,0==d.height&&(d.height=1))}d.isEmpty||(d.x+=r.x,d.y+=r.y),y.isEmpty||(y.x+=r.x,y.y+=r.y),b.isEmpty||(b.x+=r.x,b.y+=r.y),v.isEmpty||(v.x+=r.x,v.y+=r.y),C.isEmpty||(C.x+=r.x,C.y+=r.y),w.isEmpty||this.area.chart.table.core.showTable()||(w.x+=r.x,w.y+=r.y);var L=0,O=0,P=0,B=0;if(d.isEmpty||(P=d.width,d.top<r.top&&(L=Math.abs(r.top-d.top)),r.bottom<d.bottom&&(O=Math.abs(d.bottom-r.bottom))),b.isEmpty||(B=b.width,b.top<r.top&&(L=Math.max(L,Math.abs(r.top-b.top))),r.bottom<b.bottom&&(O=Math.max(O,Math.abs(b.bottom-r.bottom)))),v.isEmpty||(L=Math.max(v.height,L),v.x<r.x&&(P=Math.max(P,Math.abs(r.left-v.left))),r.right<v.right&&(B=Math.max(B,Math.abs(v.right-r.right)))),w.isEmpty||this.area.chart.table.core.showTable()&&!this.area.chart.table.chart.area.sti_is(t.IStiClusteredBarArea)||(O=Math.max(w.height,O),w.x<r.x&&(P=Math.max(P,Math.abs(r.left-w.left))),r.right<w.right&&(B=Math.max(B,Math.abs(w.right-r.right)))),n.reverseHor){var R={ref:P},k={ref:B};this.swap(R,k),P=R.ref,B=k.ref}if(n.reverseVert){var j={ref:L},T={ref:O};this.swap(j,T),L=j.ref,O=T.ref}r.x+=P,r.width-=P+B,r.y+=L,r.height-=L+O,this.prepareInfo(r.clone()),o=n.yAxis.core.renderView(e,r.clone()),a=n.yAxis.core.renderCenterView(e,r.clone()),s=n.yRightAxis.core.renderView(e,r.clone()),l=n.xTopAxis.core.renderView(e,r.clone()),u=n.xAxis.core.renderCenterView(e,r.clone()),c=n.xAxis.core.renderView(e,r.clone())}x=r.clone();var F=this.calculateScrollValuesX(r.clone(),n),D=this.calculateScrollValuesY(r.clone(),n);r.x=-this.scrollDistanceX,r.y=-this.scrollDistanceY,r.width*=F,r.height*=D,this.prepareInfo(r.clone()),_.count>0&&(h=n.yAxis.core.render(e,r.clone()),p=n.yAxis.core.renderCenter(e,r.clone()),f=n.yRightAxis.core.render(e,r.clone()),m=n.xTopAxis.core.render(e,r.clone()),S=n.xAxis.core.renderCenter(e,r.clone()),g=n.xAxis.core.render(e,r.clone()),null!=h&&(h.view=o),null!=p&&(p.view=a),null!=f&&(f.view=s),null!=m&&(m.view=l),null!=S&&(S.view=u),null!=g&&(g.view=c)),null!=c&&n.xAxis.core.renderScrollBar(e,c.clientRectangle,c),null!=l&&n.xTopAxis.core.renderScrollBar(e,l.clientRectangle,l),null!=o&&n.yAxis.core.renderScrollBar(e,o.clientRectangle,o),null!=s&&n.yRightAxis.core.renderScrollBar(e,s.clientRectangle,s);var I=new t.StiAxisAreaViewGeom(n,x),N=new t.StiAxisAreaGeom(I,n,r.clone());I.createChildGeoms(),I.childGeoms.add(N);for(var M=0,E=this.area.chart.strips.list;M<E.length;M++){var V=E[M];V.showBehind&&V.core.render(e,N,r.clone())}for(var X=0,G=this.area.chart.constantLines.list;X<G.length;X++){var z=G[X];z.showBehind&&z.core.render(e,N,r.clone())}this.renderSeries(e,r.clone(),N,_);for(var J=0,H=this.area.chart.strips.list;J<H.length;J++){var V=H[J];V.showBehind||V.core.render(e,N,r.clone())}for(var Y=0,W=this.area.chart.constantLines.list;Y<W.length;Y++){var z=W[Y];z.showBehind||z.core.render(e,N,r.clone())}return null!=h&&(I.createChildGeoms(),o.createChildGeoms(),I.childGeoms.add(o),o.childGeoms.add(h)),null!=p&&(I.createChildGeoms(),a.createChildGeoms(),I.childGeoms.add(a),a.childGeoms.add(p)),null!=f&&(I.createChildGeoms(),s.createChildGeoms(),I.childGeoms.add(s),s.childGeoms.add(f)),null!=m&&(I.createChildGeoms(),l.createChildGeoms(),I.childGeoms.add(l),l.childGeoms.add(m)),null!=S&&(I.createChildGeoms(),u.createChildGeoms(),I.childGeoms.add(u),u.childGeoms.add(S)),null==g||this.area.chart.table.core.showTable()&&!this.area.chart.table.chart.area.sti_is(t.IStiClusteredBarArea)||(I.createChildGeoms(),c.createChildGeoms(),I.childGeoms.add(c),c.childGeoms.add(g)),I},n.prototype.calculateScrollValuesX=function(e,t){var r,i,n=1;if(this.isAutoRangeXAxis(t.xAxis)?(r=t.xAxis.info.minimum,i=t.xAxis.info.maximum):(r=t.xAxis.range.minimum,i=t.xAxis.range.maximum,r>i&&(r=t.xAxis.info.minimum,i=t.xAxis.info.maximum)),this._scrollRangeX=t.xAxis.info.maximum-t.xAxis.info.minimum,this._scrollViewX=i-r,!t.xAxis.core.getStartFromZero()||t.xAxis.logarithmicScale?this.blockScrollValueX=!0:this.blockScrollValueX=!1,!this.blockScrollValueX&&!t.xAxis.interaction.showScrollBar){var o=r+Math.abs(t.xAxis.info.minimum);t.xAxis.info.minimum>0&&r>0&&(o=Math.abs(r-t.xAxis.info.minimum)),t.reverseHor?this.scrollValueX=this._scrollRangeX-o-this._scrollViewX:this.scrollValueX=o}return n=this.scrollRangeX/this.scrollViewX,this._scrollDpiX=e.width*n/this.scrollRangeX,n},n.prototype.calculateScrollValuesY=function(e,t){var r,i,n=1;if(this.isAutoRangeYAxis(t.yAxis)?(r=t.yAxis.info.minimum,i=t.yAxis.info.maximum):(r=t.yAxis.range.minimum,i=t.yAxis.range.maximum,r>i&&(r=t.yAxis.info.minimum,i=t.yAxis.info.maximum)),this._scrollRangeY=t.yAxis.info.maximum-t.yAxis.info.minimum,this._scrollViewY=i-r,!t.yAxis.core.getStartFromZero()||t.yAxis.logarithmicScale?this.blockScrollValueY=!0:this.blockScrollValueY=!1,this.blockScrollValueY)this.scrollValueY=0;else{var o=r+Math.abs(t.yAxis.info.minimum);t.reverseVert?this.scrollValueY=o:this.scrollValueY=this._scrollRangeY-o-this._scrollViewY}return n=this.scrollRangeY/this.scrollViewY,this._scrollDpiY=e.height*n/this.scrollRangeY,n},n.prototype.prepareInfo=function(e){var r=this.getSeries();if(r.count>0){var i=this.area;this.valuesCount=0;var o=this.sti_is(t.StiClusteredBarAreaCoreXF)?i.yAxis:i.xAxis,a=this.sti_is(t.StiClusteredBarAreaCoreXF)?i.yRightAxis:i.xTopAxis,s=this.sti_is(t.StiClusteredBarAreaCoreXF)?i.xAxis:i.yAxis,l=this.sti_is(t.StiClusteredBarAreaCoreXF)?i.xTopAxis:i.yRightAxis;o.info.stripLines=new t.StiStripLinesXF,s.info.stripLines=new t.StiStripLinesXF,l.info.stripLines=new t.StiStripLinesXF;for(var u=!1,c=0;c<r.count;c++){var h=r[c].values;r[c].sti_is(t.StiCandlestickSeries)&&(h=r[c].valuesOpen),null!=h&&(this.valuesCount=Math.max(h.length,this.valuesCount)),r[c].core.isDateTimeValues&&(u=!0)}this.prepareRange(o,a,s,l),!s.range.auto&&s.range.maximum>s.info.maximum&&(s.info.maximum=s.range.maximum),!s.range.auto&&s.range.minimum<s.info.minimum&&(s.info.minimum=s.range.minimum),!l.range.auto&&l.range.maximum>l.info.maximum&&(l.info.maximum=l.range.maximum),!l.range.auto&&l.range.minimum<l.info.minimum&&(l.info.minimum=l.range.minimum);var p=this.area.chart.series.count>0&&this.area.chart.series.getByIndex(0).sti_is(t.StiScatterLineSeries);s.logarithmicScale&&p||(this.checkStartFromZeroYAxis(s),this.checkStartFromZeroYAxis(l),this.calculateMinimumAndMaximumYAxis(s),l.range.auto&&this.calculateMinimumAndMaximumYAxis(l)),this.calculateMinimumAndMaximumXAxis(o),this.createStripLinesXAxis(o),this.createStripLinesYAxis(s,u),this.createStripLinesYAxis(l,u),this.checkStripLinesAndMaximumMinimumXAxis(o),this.checkStripLinesAndMaximumMinimumYAxis(s),this.checkStripLinesAndMaximumMinimumYAxis(l),i.sti_is(t.IStiClusteredBarArea)&&(n.rotateStripLines(o),n.rotateStripLines(s),n.rotateStripLines(l)),a.info=o.info.clone(),i.reverseHor&&(n.rotateStripLines(i.xAxis),n.rotateStripLines(i.xTopAxis)),i.reverseVert&&(n.rotateStripLines(i.yAxis),n.rotateStripLines(i.yRightAxis)),i.xAxis.info.dpi=e.width/i.xAxis.info.range,i.xTopAxis.info.dpi=e.width/i.xTopAxis.info.range,i.yAxis.info.dpi=e.height/i.yAxis.info.range,i.yRightAxis.info.dpi=e.height/i.yRightAxis.info.range,this.calculateStepX(i.xAxis,e.left,e.right),this.calculateStepX(i.xTopAxis,e.left,e.right),this.calculateStepY(i.yAxis,e.top,e.bottom),this.calculateStepY(i.yRightAxis,e.top,e.bottom);var f={ref:i.xAxis.info.labelsCollection};this.calculatePositions(i.xAxis,f,i.xAxis.labels.step>0?Math.trunc(i.xAxis.labels.step):1),i.xAxis.info.labelsCollection=f.ref,f={ref:i.xTopAxis.info.labelsCollection},this.calculatePositions(i.xTopAxis,f,i.xTopAxis.labels.step>0?Math.trunc(i.xTopAxis.labels.step):1),i.xTopAxis.info.labelsCollection=f.ref,f={ref:i.yAxis.info.labelsCollection},this.calculatePositions(i.yAxis,f,i.yAxis.labels.step>0?Math.trunc(i.yAxis.labels.step):1),i.yAxis.info.labelsCollection=f.ref,f={ref:i.yRightAxis.info.labelsCollection},this.calculatePositions(i.yRightAxis,f,i.yRightAxis.labels.step>0?Math.trunc(i.yRightAxis.labels.step):1),i.yRightAxis.info.labelsCollection=f.ref;var m={ref:i.xAxis.info.ticksCollection};this.calculatePositions(i.xAxis,m,i.xAxis.ticks.step>0?Math.trunc(i.xAxis.ticks.step):1),i.xAxis.info.ticksCollection=m.ref,m={ref:i.xTopAxis.info.ticksCollection},this.calculatePositions(i.xTopAxis,m,i.xTopAxis.ticks.step>0?Math.trunc(i.xTopAxis.ticks.step):1),i.xTopAxis.info.ticksCollection=m.ref,m={ref:i.yAxis.info.ticksCollection},this.calculatePositions(i.yAxis,m,i.yAxis.ticks.step>0?Math.trunc(i.yAxis.ticks.step):1),i.yAxis.info.ticksCollection=m.ref,m={ref:i.yRightAxis.info.ticksCollection},this.calculatePositions(i.yRightAxis,m,i.yRightAxis.ticks.step>0?Math.trunc(i.yRightAxis.ticks.step):1),i.yRightAxis.info.ticksCollection=m.ref}},n.prototype.renderSeries=function(e,t,i,n){for(var o=[],a=new r,s=0,l=n;s<l.length;s++){var u=l[s];if(this.isAcceptableSeries(u.getStiType())){var c=a.get(u.getStiType());null==c&&(c=[],o.add(c),a.add(u.getStiType(),c)),c.add(u)}}for(var h=0,p=o;h<p.length;h++){var f=p[h],m=f.toArray();m[0].core.renderSeries(e,t,i,m)}},n.prototype.isAutoRangeXAxis=function(e){return e.range.auto||e.range.minimum>=e.range.maximum||e.logarithmicScale},n.prototype.isAutoRangeYAxis=function(e){return e.range.auto||e.range.maximum==e.range.minimum||this.area.isDefaultSeriesTypeFullStackedColumnSeries||e.logarithmicScale},n.prototype.calculateMinimumAndMaximumXAxis=function(e){e.range.auto||(e.info.maximum=e.range.maximum,e.info.minimum=e.range.minimum)},n.prototype.calculateMinimumAndMaximumYAxis=function(e){if(this.getSeries().count>0&&this.getSeries()[0].sti_is(t.StiGanttSeries))return void(e.range.auto||(e.info.maximum=e.range.maximum,e.info.minimum=e.range.minimum));if(!e.startFromZero&&e.range.auto&&e.sti_is(t.IStiYAxis)){var r=e.info.maximum-e.info.minimum;e.info.minimum=e.info.minimum-.05*r,e.info.maximum=e.info.maximum+.05*r}else{var i=.1;this.getSeries().count>0&&this.getSeries()[0].seriesLabels.sti_is(t.StiOutsideEndAxisLabels)&&(i=.15);var n=Math.min(i,Math.abs(4/((e.info.maximum+e.info.minimum)/2)));e.info.maximum*=1+n*Math.sign(e.info.maximum),e.info.minimum*=1-n*Math.sign(e.info.minimum)}e.info.minimum==e.info.maximum&&(0==e.info.maximum?e.info.maximum=100:(e.info.minimum-=.1*e.info.minimum,e.info.maximum+=.1*e.info.maximum))},n.prototype.getArgumentLabel=function(e,r){if(null==e)return String.empty;var i=this.area;return i.core.seriesOrientation==t.StiChartSeriesOrientation.Vertical?i.xAxis.core.getLabelText(e,r):i.yAxis.core.getLabelText(e,r)},n.prototype.switchOff=function(){var e=this.area;e.gridLinesHor.visible=!1,e.gridLinesVert.visible=!1,e.interlacingHor.visible=!1,e.interlacingVert.visible=!1,e.xAxis.visible=!1,e.yAxis.visible=!1,e.xTopAxis.visible=!1,e.yRightAxis.visible=!1},n.prototype.swap=function(e,t){var r=e.ref;e.ref=t.ref,t.ref=r},n.prototype.prepareRange=function(e,t,r,i){},n.prototype.createStripLinesXAxis=function(e){for(var t=e.core.getStartFromZero(),r=t?0:1,i=t?this.valuesCount+1:this.valuesCount,n=r;n<=i;n++)e.info.stripLines.add(n,n);for(var o=this.getSeries(),a=0,s=o;a<s.length;a++)for(var l=s[a],n=0;n<this.valuesCount;n++){var u=null;if(null!=l.arguments&&n<l.arguments.length&&null==(u=l.arguments[n]))continue;if(null!=u){var c=t?1+n:n;c<e.info.stripLines.count&&(e.info.stripLines.getByindex(c).valueObject=u)}}if(e.info.stripLines.count>0){var h=e.area;e.area.xAxis.showEdgeValues&&null==h||(e.info.stripLines.getByindex(0).valueObject=null,e.info.stripLines.getByindex(e.info.stripLines.count-1).valueObject=null)}},n.prototype.createStripLinesYAxis=function(e,r){if(this.area.isDefaultSeriesTypeFullStackedColumnSeries||this.area.isDefaultSeriesTypeFullStackedBarSeries){for(var i=!1,n=!1,o=this.getSeries(),a=0,s=o;a<s.length;a++)for(var l=s[a],u=0,c=l.values;u<c.length;u++){var h=c[u];h>0&&(i=!0),h<0&&(n=!0)}var p=n?-100:0,f=i?100:0;0==p&&0==f&&(f=100);var m=e.labels.step;0==m&&(m=t.StiStripLineCalculatorXF.getInterval(p,f,6)),e.info.stripLines=t.StiStripLineCalculatorXF.getStripLines(p,f,m,!1);for(var S=0,g=e.info.stripLines.list;S<g.length;S++){var d=g[S];d.valueObject=String.stiFormat("{0}%",d.valueObject)}}else{var m=e.labels.step;m>0&&e.info.range>0&&e.info.range/m>500&&(m=0),0==m&&(m=t.StiStripLineCalculatorXF.getInterval(e.info.minimum,e.info.maximum,6)),e.info.stripLines=t.StiStripLineCalculatorXF.getStripLines(e.info.minimum,e.info.maximum,m,r)}},n.prototype.checkStripLinesAndMaximumMinimumXAxis=function(e){e.info.stripLines.count>0?(e.info.minimum=e.info.stripLines.getByindex(0).value,e.info.maximum=e.info.stripLines.getByindex(e.info.stripLines.count-1).value):(e.info.minimum=0,e.info.maximum=1)},n.prototype.checkStripLinesAndMaximumMinimumYAxis=function(e){e.info.stripLines.count>0?(e.info.maximum=e.info.stripLines.getByindex(0).value,e.info.minimum=e.info.stripLines.getByindex(e.info.stripLines.count-1).value):(e.info.maximum=100,e.info.minimum=0)},n.prototype.calculateStepX=function(e,t,r){e.info.stripLines.count>=2?(e.info.step=Math.abs((e.info.stripLines.getByindex(0).value-e.info.stripLines.getByindex(1).value)*e.info.dpi),e.core.calculateStripPositions(t,r)):(e.info.step=1,e.info.stripPositions=[])},n.prototype.calculateStepY=function(e,t,r){e.info.stripLines.count>=2?(e.info.step=Math.abs((e.info.stripLines.getByindex(1).value-e.info.stripLines.getByindex(0).value)*e.info.dpi),e.core.calculateStripPositions(t,r)):(e.info.step=1,e.info.stripPositions=[])},n.prototype.checkStartFromZeroYAxis=function(e){e.core.getStartFromZero()&&(e.info.maximum<0&&(e.info.maximum=0),e.info.minimum>0&&(e.info.minimum=0))},n.prototype.calculatePositions=function(e,r,i){var n=[],o=this.area,a=!1;this.area.sti_is(t.IStiAxisArea)&&(a=e.sti_is(t.IStiYAxis)&&o.reverseVert||e.sti_is(t.IStiXAxis)&&o.reverseHor);for(var s=0,l=e.info.stripPositions.length,u=0;u<l;u++){if(0==s){var c=new t.StiStripPositionXF,h=a?l-u-1:u;c.stripLine=e.info.stripLines.getByindex(h),c.position=e.info.stripPositions[h],a?n.insert(0,c):n.add(c)}if(this.area.core.sti_is(t.StiScatterAreaCoreXF)&&e.sti_is(t.IStiXAxis)&&!e.logarithmicScale)continue;if(this.area.core.sti_is(t.StiClusteredBarAreaCoreXF)&&e.sti_is(t.IStiXAxis))continue;if(!this.area.core.sti_is(t.StiClusteredBarAreaCoreXF)&&e.sti_is(t.IStiYAxis))continue;if(u==l-1&&0!=s){var p=e;if(null!=p&&p.showEdgeValues){var c=new t.StiStripPositionXF,h=a?0:l-1;c.stripLine=e.info.stripLines.getByindex(h),c.position=e.info.stripPositions[h],a?n.insert(0,c):n.add(c)}}s++,s==i&&(s=0)}r.ref=n},n.prototype.calculateDivider=function(e){var r=this.area,i=0;if(null!=e.info.stripLines)for(var n=0,o=e.info.stripLines.list;n<o.length;n++){var a=o[n];if(0==a.value)return e.info.stripPositions[i];i++}return e.sti_is(t.IStiYAxis)?r.reverseVert?-e.info.minimum*e.info.dpi:null==e.info.stripPositions||0==e.info.stripPositions.length?e.info.minimum*e.info.dpi:e.info.stripPositions[e.info.stripPositions.length-1]+e.info.minimum*e.info.dpi:e.sti_is(t.IStiXAxis)?r.reverseHor?null==e.info.stripPositions||0==e.info.stripPositions.length?e.info.minimum*e.info.dpi:e.info.stripPositions[e.info.stripPositions.length-1]+e.info.minimum*e.info.dpi:-e.info.minimum*e.info.dpi:0},n.rotateStripLines=function(e){for(var r=new t.StiStripLinesXF,i=0,n=e.info.stripLines.list;i<n.length;i++){var o=n[i];r.insert(0,o)}e.info.stripLines=r},n.prototype.getDividerX=function(){var e=this.area;if(this.sti_is(t.StiClusteredBarAreaCoreXF)||this.sti_is(t.StiScatterAreaCoreXF))return this.calculateDivider(e.xAxis);return 0},n.prototype.getDividerY=function(){var e=this.area;return this.sti_is(t.StiClusteredBarAreaCoreXF)&&!this.sti_is(t.StiGanttAreaCoreXF)?0:this.calculateDivider(e.yAxis)},n.prototype.getDividerRightY=function(){var e=this.area;return this.sti_is(t.StiClusteredBarAreaCoreXF)&&!this.sti_is(t.StiGanttAreaCoreXF)?0:this.calculateDivider(e.yRightAxis)},Object.defineProperty(n.prototype,"scrollDistanceX",{get:function(){return this.scrollDpiX*this.scrollValueX},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollDistanceY",{get:function(){return this.scrollDpiY*this.scrollValueY},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollRangeX",{get:function(){return this._scrollRangeX},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollRangeY",{get:function(){return this._scrollRangeY},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollViewX",{get:function(){return this._scrollViewX},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollViewY",{get:function(){return this._scrollViewY},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"blockScrollValueX",{get:function(){return this._blockScrollValueX},set:function(e){this._blockScrollValueX=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"blockScrollValueY",{get:function(){return this._blockScrollValueY},set:function(e){this._blockScrollValueY=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollValueX",{get:function(){return this._scrollValueX},set:function(e){this._scrollValueX=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollValueY",{get:function(){return this._scrollValueY},set:function(e){this._scrollValueY=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollDpiX",{get:function(){return this._scrollDpiX},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollDpiY",{get:function(){return this._scrollDpiY},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollDragStartValue",{get:function(){return this._scrollDragStartValue},set:function(e){this._scrollDragStartValue=e},enumerable:!0,configurable:!0}),n}(t.StiAreaCoreXF);t.StiAxisAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.prepareRange=function(e,r,i,n){var o=!0,a=!0,s=!1,l=!1;i.info.maximum=0,i.info.minimum=0,n.info.maximum=0,n.info.minimum=0;for(var u=this.getSeries(),c=0;c<u.count;c++)for(var h=u[c],p=h.values,f=0,m=p;f<m.length;f++){var S=m[f];h.yAxis==t.StiSeriesYAxis.LeftYAxis?null!=S&&(o?(s=!0,i.info.maximum=S,i.info.minimum=S,o=!1):(s=!0,i.info.maximum=Math.max(S,i.info.maximum),i.info.minimum=Math.min(S,i.info.minimum))):null!=S&&(a?(l=!0,n.info.maximum=S,n.info.minimum=S,a=!1):(l=!0,n.info.maximum=Math.max(S,n.info.maximum),n.info.minimum=Math.min(S,n.info.minimum)))}s||(i.info.maximum=n.info.maximum,i.info.minimum=n.info.minimum),l||(n.info.maximum=i.info.maximum,n.info.minimum=i.info.minimum)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","ClusteredColumn")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.ClusteredColumn},enumerable:!0,configurable:!0}),i}(t.StiAxisAreaCoreXF);t.StiClusteredColumnAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.DateTime,n=function(n){function o(e){var t=n.call(this,e)||this;return t.isArgumentDateTime=!1,t}return __extends(o,n),o.prototype.isXAxisAutoRange=function(e){var t=this.area;return e.range.auto||t.xAxis.range.maximum==t.xAxis.range.minimum||e.logarithmicScale},o.prototype.prepareRange=function(t,r,o,a){n.prototype.prepareRange.call(this,t,r,o,a);var s=!0;t.info.maximum=0,t.info.minimum=0,this.isArgumentDateTime=!1;for(var l=this.getSeries(),u=0,c=l;u<c.length;u++){var h=c[u];if(h.arguments.length>0&&h.arguments[0].sti_is(String)){var p=h.arguments[0].toString();if(p.endsWith("AM")||p.endsWith("PM"))for(var f=0;f<h.arguments.length;f++){var m=i.fromString(h.arguments[f].toString());null!=m&&(h.arguments[f]=m)}}for(var S=0,g=h.arguments;S<g.length;S++){var d=g[S],y=0;if(d.sti_is(i))this.isArgumentDateTime=!0,y=d.toOADate();else try{y=d.toNumber()}catch(t){e.System.StiError.showError(t,!1),y=0}s?(s=!1,t.info.maximum=y,t.info.minimum=y):(t.info.maximum=Math.max(t.info.maximum,y),t.info.minimum=Math.min(t.info.minimum,y))}}},o.prototype.checkStripLinesAndMaximumMinimumXAxis=function(e){e.info.stripLines.count>0?(e.info.minimum=e.info.stripLines.getByindex(0).value,e.info.maximum=e.info.stripLines.getByindex(e.info.stripLines.count-1).value):(e.info.minimum=0,e.info.maximum=1)},o.prototype.createStripLinesXAxis=function(e){if(!this.isArgumentDateTime&&!e.logarithmicScale&&this.isXAxisAutoRange(e)){var r=Math.abs(e.info.maximum-e.info.minimum);0!=r?(e.info.maximum+=.05*r,e.info.minimum-=.05*r):(e.info.maximum*=1.05,e.info.minimum<0?e.info.minimum*=1.05:e.info.minimum*=.95),e.core.getStartFromZero()&&(e.info.minimum=0),e.info.minimum==e.info.maximum&&(0==e.info.maximum?e.info.maximum=100:(e.info.minimum-=.1*e.info.minimum,e.info.maximum-=.1*e.info.maximum))}for(var n=!1,o=this.getSeries(),a=0;a<o.count;a++)if(o[a].core.isDateTimeValues){n=!0;break}var s=e.labels.step;0==s&&(s=t.StiStripLineCalculatorXF.getInterval(e.info.minimum,e.info.maximum,6));var l;l=e.logarithmicScale?t.StiStripLineCalculatorXF.getStripLinesLogScale(e.info.minimum,e.info.maximum):t.StiStripLineCalculatorXF.getStripLines(e.info.minimum,e.info.maximum,s,n),e.info.stripLines.clear();for(var u=l.count-1;u>=0;u--){var c=l.list[u].value,h=l.list[u].valueObject;this.isArgumentDateTime&&(h=i.fromOADate(c)),e.info.stripLines.add(h,c)}},o.prototype.createStripLinesYAxis=function(e,r){if(this.area.isDefaultSeriesTypeFullStackedColumnSeries||this.area.isDefaultSeriesTypeFullStackedBarSeries){for(var i=!1,n=!1,o=this.getSeries(),a=0,s=o;a<s.length;a++)for(var l=s[a],u=0,c=l.values;u<c.length;u++){var h=c[u];h>0&&(i=!0),h<0&&(n=!0)}var p=n?-100:0,f=i?100:0,m=e.labels.step;0==m&&(m=t.StiStripLineCalculatorXF.getInterval(p,f,6)),e.info.stripLines=t.StiStripLineCalculatorXF.getStripLines(p,f,m,!1);for(var S=0,g=e.info.stripLines.list;S<g.length;S++){var d=g[S];d.valueObject=String.stiFormat("{0}%",d.valueObject)}}else{var m=e.labels.step;m>0&&e.info.range>0&&e.info.range/m>500&&(m=0),0==m&&(m=t.StiStripLineCalculatorXF.getInterval(e.info.minimum,e.info.maximum,6)),e.logarithmicScale?e.info.stripLines=t.StiStripLineCalculatorXF.getStripLinesLogScale(e.info.minimum,e.info.maximum):e.info.stripLines=t.StiStripLineCalculatorXF.getStripLines(e.info.minimum,e.info.maximum,m,r)}},Object.defineProperty(o.prototype,"localizedName",{get:function(){return r.get("Chart","Scatter")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"position",{get:function(){return t.StiChartAreaPosition.Scatter},enumerable:!0,configurable:!0}),o}(t.StiClusteredColumnAreaCoreXF);t.StiScatterAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Bubble")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Bubble},enumerable:!0,configurable:!0}),i}(t.StiScatterAreaCoreXF);t.StiBubbleAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Candlestick")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Candlestick},enumerable:!0,configurable:!0}),i.prototype.createStripLinesXAxis=function(e){e.info.stripLines.clear(),e.info.stripLines.add(0,0);for(var t=this.getSeries(),r=0,i=t;r<i.length;r++)for(var n=i[r],o=0,a=n.arguments;o<a.length;o++){for(var s=a[o],l=!0,u=0,c=e.info.stripLines.list;u<c.length;u++){var h=c[u];h.valueObject.toString()==s.toString()&&(l=!1)}l&&e.info.stripLines.add(s,e.info.stripLines.count)}e.info.stripLines.add(String.empty,e.info.stripLines.count)},i.prototype.prepareRange=function(e,t,r,i){e.info.maximum=0,e.info.minimum=0,r.info.maximum=0,r.info.minimum=0;for(var n=this.getSeries(),o=!0,a=0,s=n;a<s.length;a++){for(var l=s[a],u=0,c=l.valuesOpen;u<c.length;u++){var h=c[u];null!=h&&(o?(o=!1,r.info.maximum=h,r.info.minimum=h):(r.info.maximum=Math.max(r.info.maximum,h),r.info.minimum=Math.min(r.info.minimum,h)))}for(var p=0,f=l.valuesClose;p<f.length;p++){var h=f[p];null!=h&&(r.info.maximum=Math.max(r.info.maximum,h),r.info.minimum=Math.min(r.info.minimum,h))}for(var m=0,S=l.valuesHigh;m<S.length;m++){var h=S[m];null!=h&&(r.info.maximum=Math.max(r.info.maximum,h))}for(var g=0,d=l.valuesLow;g<d.length;g++){var h=d[g];null!=h&&(r.info.minimum=Math.min(r.info.minimum,h))}}i.info.maximum=r.info.maximum,i.info.minimum=r.info.minimum},i}(t.StiClusteredColumnAreaCoreXF);t.StiCandlestickAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","ClusteredBar")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"seriesOrientation",{get:function(){return t.StiChartSeriesOrientation.Horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.ClusteredBar},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiClusteredBarAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Area")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Area},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Line")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Line},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiLineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SplineArea")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.SplineArea},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiSplineAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Spline")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Spline},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiSplineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SteppedArea")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.SteppedArea},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiSteppedAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SteppedLine")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.SteppedLine},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiSteppedLineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.Hashtable,i=e.Base.Localization.StiLocalization,n=function(e){function n(t){var r=e.call(this,t)||this;return r.valuesCount=0,r}return __extends(n,e),n.prototype.render=function(e,r){this.prepareInfo(r);var i=new t.StiPieAreaGeom(this.area,r),n=this.getSeries();return this.renderSeries(e,r,i,n),i},n.prototype.renderSeries=function(e,t,i,n){for(var o=[],a=new r,s=0,l=n;s<l.length;s++){var u=l[s],c=a.get(u.getStiType());null==c&&(c=[],o.add(c),a.set(u.getStiType(),c)),c.add(u)}for(var h=0,p=o;h<p.length;h++){var f=p[h],m=f.toArray();m[0].core.renderSeries(e,t,i,m)}},n.prototype.prepareInfo=function(e){this.valuesCount=0;var t=this.getSeries();if(t.count>0)for(var r=0;r<t.count;r++){var i=t[r].values;null!=i&&(this.valuesCount=Math.max(i.length,this.valuesCount))}},Object.defineProperty(n.prototype,"localizedName",{get:function(){return i.get("Chart","Pie")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return t.StiChartAreaPosition.Pie},enumerable:!0,configurable:!0}),n}(t.StiAreaCoreXF);t.StiPieAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.render=function(e,r){this.prepareInfo(r);var i=new t.StiDoughnutAreaGeom(this.area,r),n=this.getSeries();return this.renderSeries(e,r,i,n),i},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Doughnut")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Doughnut},enumerable:!0,configurable:!0}),i}(t.StiPieAreaCoreXF);t.StiDoughnutAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.Hashtable,i=e.Base.Localization.StiLocalization,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype.prepareSeriesRange=function(e){for(var r=[],i=[],n=[],o=[],a=this.getSeries(),s=0;s<this.valuesCount;s++)for(var l=0,u=a;l<u.length;l++){var c=u[l];if(c.getStiType()==e)if(c.yAxis==t.StiSeriesYAxis.LeftYAxis){if(r.add(0),i.add(0),s<c.values.length){var h=c.values[s];h>0?i[s]=i[s]+h:r[s]=r[s]+h}}else if(n.add(0),o.add(0),s<c.values.length){var h=c.values[s];h>0?o[s]=o[s]+h:n[s]=n[s]+h}}return[r,i,n,o]},n.prototype.prepareRange=function(e,t,i,n){for(var o=this.getSeries(),a=new r,s=0,l=o;s<l.length;s++){var u=l[s];a.set(u.getStiType(),u.getStiType())}for(var c=[],h=[],p=[],f=[],m=0,S=a.values;m<S.length;m++){for(var g=S[m],d=this.prepareSeriesRange(g),y=0,b=0,v=d[0];b<v.length;b++){var C=v[b];c.count<=y?c.add(C):c[y]=Math.min(c[y],C),y++}y=0;for(var w=0,x=d[1];w<x.length;w++){var C=x[w];h.count<=y?h.add(C):h[y]=Math.max(h[y],C),y++}y=0;for(var _=0,A=d[2];_<A.length;_++){var C=A[_];p.count<=y?p.add(C):p[y]=Math.min(p[y],C),y++}y=0;for(var L=0,O=d[3];L<O.length;L++){var C=O[L];f.count<=y?f.add(C):f[y]=Math.max(f[y],C),y++}}0==c.count&&(c=p),0==h.count&&(h=f),0==p.count&&(p=c),0==f.count&&(f=h);for(var P=!0,B=0,R=c;B<R.length;B++){var C=R[B];P?(i.info.minimum=C,P=!1):i.info.minimum=Math.min(C,i.info.minimum)}P=!0;for(var k=0,j=h;k<j.length;k++){var C=j[k];P?(i.info.maximum=C,P=!1):i.info.maximum=Math.max(C,i.info.maximum)}P=!0;for(var T=0,F=p;T<F.length;T++){var C=F[T];P?(n.info.minimum=C,P=!1):n.info.minimum=Math.min(C,n.info.minimum)}P=!0;for(var D=0,I=f;D<I.length;D++){var C=I[D];P?(n.info.maximum=C,P=!1):n.info.maximum=Math.max(C,n.info.maximum)}},Object.defineProperty(n.prototype,"localizedName",{get:function(){return i.get("Chart","StackedBar")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"seriesOrientation",{get:function(){return t.StiChartSeriesOrientation.Horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return t.StiChartAreaPosition.StackedBar},enumerable:!0,configurable:!0}),n}(t.StiClusteredBarAreaCoreXF);t.StiStackedBarAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedBar")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.FullStackedBar},enumerable:!0,configurable:!0}),i}(t.StiStackedBarAreaCoreXF);t.StiFullStackedBarAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.Hashtable,i=e.Base.Localization.StiLocalization,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype.prepareSeriesRange=function(e){for(var r=[],i=[],n=[],o=[],a=this.getSeries(),s=0;s<this.valuesCount;s++)for(var l=0,u=a;l<u.length;l++){var c=u[l];if(c.getStiType()==e)if(c.yAxis==t.StiSeriesYAxis.LeftYAxis){if(r.add(0),i.add(0),s<c.values.length){var h=c.values[s];h>0?i[s]=i[s]+h:r[s]=r[s]+h}}else if(n.add(0),o.add(0),s<c.values.length){var h=c.values[s];h>0?o[s]=o[s]+h:n[s]=n[s]+h}}return[r,i,n,o]},n.prototype.prepareRange=function(e,t,i,n){for(var o=this.getSeries(),a=new r,s=0,l=o;s<l.length;s++){var u=l[s];a.set(u.getStiType(),u.getStiType())}for(var c=[],h=[],p=[],f=[],m=0,S=a.values;m<S.length;m++){for(var g=S[m],d=this.prepareSeriesRange(g),y=0,b=0,v=d[0];b<v.length;b++){var C=v[b];c.count<=y?c.add(C):c[y]=Math.min(c[y],C),y++}y=0;for(var w=0,x=d[1];w<x.length;w++){var C=x[w];h.count<=y?h.add(C):h[y]=Math.max(h[y],C),y++}y=0;for(var _=0,A=d[2];_<A.length;_++){var C=A[_];p.count<=y?p.add(C):p[y]=Math.min(p[y],C),y++}y=0;for(var L=0,O=d[3];L<O.length;L++){var C=O[L];f.count<=y?f.add(C):f[y]=Math.max(f[y],C),y++}}0==c.count&&(c=p),0==h.count&&(h=f),0==p.count&&(p=c),0==f.count&&(f=h);for(var P=!0,B=0,R=c;B<R.length;B++){var C=R[B];P?(i.info.minimum=C,P=!1):i.info.minimum=Math.min(C,i.info.minimum)}P=!0;for(var k=0,j=h;k<j.length;k++){var C=j[k];P?(i.info.maximum=C,P=!1):i.info.maximum=Math.max(C,i.info.maximum)}P=!0;for(var T=0,F=p;T<F.length;T++){var C=F[T];P?(n.info.minimum=C,P=!1):n.info.minimum=Math.min(C,n.info.minimum)}P=!0;for(var D=0,I=f;D<I.length;D++){var C=I[D];P?(n.info.maximum=C,P=!1):n.info.maximum=Math.max(C,n.info.maximum)}},Object.defineProperty(n.prototype,"localizedName",{get:function(){return i.get("Chart","StackedColumn")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return t.StiChartAreaPosition.StackedColumn},enumerable:!0,configurable:!0}),n}(t.StiAxisAreaCoreXF);t.StiStackedColumnAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedColumn")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.FullStackedColumn},enumerable:!0,configurable:!0}),i}(t.StiStackedColumnAreaCoreXF);t.StiFullStackedColumnAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedArea")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.FullStackedArea},enumerable:!0,configurable:!0}),i}(t.StiFullStackedColumnAreaCoreXF);t.StiFullStackedAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedLine")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.FullStackedLine},enumerable:!0,configurable:!0}),i}(t.StiFullStackedColumnAreaCoreXF);t.StiFullStackedLineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedSplineArea")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.FullStackedSplineArea},enumerable:!0,configurable:!0}),i}(t.StiFullStackedColumnAreaCoreXF);t.StiFullStackedSplineAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedSpline")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.FullStackedSpline},enumerable:!0,configurable:!0}),i}(t.StiFullStackedColumnAreaCoreXF);t.StiFullStackedSplineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Collections.Hashtable,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Funnel")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return t.StiChartAreaPosition.Funnel},enumerable:!0,configurable:!0}),n.prototype.render=function(e,r){var i=new t.StiPieAreaGeom(this.area,r),n=this.getSeries();return this.renderSeries(e,r,i,n),i},n.prototype.renderSeries=function(e,t,r,n){for(var o=[],a=new i,s=0,l=n;s<l.length;s++){var u=l[s],c=a.get(u.getStiType());null==c&&(c=[],o.add(c),a.set(u.getStiType(),c)),c.add(u)}for(var h=0,p=o;h<p.length;h++){var f=p[h],m=f.toArray();m[0].core.renderSeries(e,t,r,m)}},n.prototype.prepareInfo=function(e){},n}(t.StiAreaCoreXF);t.StiFunnelAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.createStripLinesXAxis=function(e){e.info.stripLines.clear(),e.info.stripLines.add(0,0);for(var t=this.getSeries(),r=0,i=t;r<i.length;r++)for(var n=i[r],o=0,a=n.arguments;o<a.length;o++){for(var s=a[o],l=!0,u=0,c=e.info.stripLines.list;u<c.length;u++){var h=c[u];null!=h.valueObject&&h.valueObject.toString()==s.toString()&&(l=!1)}l&&e.info.stripLines.add(s,e.info.stripLines.count)}e.info.stripLines.add(String.empty,e.info.stripLines.count)},i.prototype.prepareRange=function(e,t,r,i){e.info.maximum=0,e.info.minimum=0,r.info.maximum=0,r.info.minimum=0;for(var n=this.getSeries(),o=!0,a=0,s=n;a<s.length;a++){for(var l=s[a],u=0,c=l.values;u<c.length;u++){var h=c[u];null!=h&&(o?(o=!1,r.info.maximum=h,r.info.minimum=h):(r.info.maximum=Math.max(r.info.maximum,h),r.info.minimum=Math.min(r.info.minimum,h)))}for(var p=0,f=l.valuesEnd;p<f.length;p++){var h=f[p];null!=h&&(r.info.maximum=Math.max(r.info.maximum,h),r.info.minimum=Math.min(r.info.minimum,h))}}i.info.maximum=r.info.maximum,i.info.minimum=r.info.minimum},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Gantt")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"seriesOrientation",{get:function(){return t.StiChartSeriesOrientation.Horizontal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Gantt},enumerable:!0,configurable:!0}),i}(t.StiClusteredBarAreaCoreXF);t.StiGanttAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Rectangle,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype.render=function(e,r){var n=new t.StiPictorialAreaGeom(this.area,r),o=this.getSeries();return e.pushTranslateTransform(r.x,r.y),o.count>0&&o[0].core.renderSeries(e,new i(0,0,r.width,r.height),n,o.toArray()),e.popTransform(),n},Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Pictorial")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return t.StiChartAreaPosition.Pictorial},enumerable:!0,configurable:!0}),n}(t.StiAreaCoreXF);t.StiPictorialAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiEmptyBrush,i=e.System.Collections.Hashtable,n=e.System.Drawing.Rectangle,o=e.System.Drawing.Point,a=function(a){function s(e){var t=a.call(this,e)||this;return t.valuesCount=0,t.points=[],t.arguments=[],t.centerPoint=o.empty,t}return __extends(s,a),s.prototype.applyStyle=function(e){a.prototype.applyStyle.call(this,e);var t=this.area;t.allowApplyStyle&&(null!=t.interlacingHor&&t.interlacingHor.core.applyStyle(e),null!=t.interlacingVert&&t.interlacingVert.core.applyStyle(e),null!=t.gridLinesHor&&t.gridLinesHor.core.applyStyle(e),null!=t.gridLinesVert&&t.gridLinesVert.core.applyStyle(e),null!=t.xAxis&&t.xAxis.core.applyStyle(e),null!=t.yAxis&&t.yAxis.core.applyStyle(e),t.brush=new r)},s.prototype.render=function(e,r){var i=this.area,o=r.clone();o=s.centerArea(o),this.prepareInfo(o),o=this.measureLabels(e,o).clone(),o=s.centerArea(o).clone(),o=new n(r.x+(r.width-o.width)/2,r.y+(r.height-o.height)/2,o.width,o.height),this.prepareInfo(o);var a=new t.StiRadarAreaGeom(this.area,o,this.valuesCount),l=i.yAxis.yCore.render(e,o);null!=l&&(a.createChildGeoms(),a.childGeoms.add(l)),this.area.chart.series.count>0&&this.renderArguments(e,a,this.area.chart.series.getByIndex(0));var u=this.getSeries();return this.renderSeries(e,o,a,u),a},s.centerArea=function(e){return e.width>e.height?e.width=e.height:e.height=e.width,e},s.prototype.measureLabels=function(e,t){if(0==this.valuesCount)return t;var r=this.area;if(null!=r.xAxis&&r.xAxis.visible){for(var i=r.yAxis.info.stripPositions[r.yAxis.info.stripPositions.length-1]+4*e.options.zoom,a=0,s=360/this.valuesCount,l=0,u=t.clone(),c=0,h=this.points;c<h.length;c++){var p=h[c],f=a<this.arguments.count?this.arguments[a]:null,m=new o(this.centerPoint.x+i*p.x,this.centerPoint.y+i*p.y),S=r.xAxis.core.getLabelText(f),g=r.xAxis.xCore.getLabelRect(e,m,S,l).clone();g.isEmpty||(u=n.union(u,g)),l+=s,a++}var d=t.left-u.left,y=u.right-t.right,b=t.top-u.top,v=u.bottom-t.bottom;d>0&&(t.width-=d),y>0&&(t.width-=y),b>0&&(t.height-=b),v>0&&(t.height-=v)}return t},s.prototype.renderArguments=function(e,t,r){if(0==this.valuesCount)return;var i=this.area;if(null!=i.xAxis&&i.xAxis.visible&&null!=i.yAxis.info.stripPositions)for(var n=i.yAxis.info.stripPositions[i.yAxis.info.stripPositions.length-1]+4*e.options.zoom,a=0,s=360/this.valuesCount,l=0,u=0,c=this.points;u<c.length;u++){var h=c[u],p=a<this.arguments.count?this.arguments[a]:null,f=new o(this.centerPoint.x+n*h.x,this.centerPoint.y+n*h.y);f.x-=t.clientRectangle.x,f.y-=t.clientRectangle.y;var m=i.xAxis.xCore.renderLabel(e,r,f,p,l,a,this.valuesCount);null!=m&&(t.createChildGeoms(),t.childGeoms.add(m)),l+=s,a++}},s.prototype.renderSeries=function(e,t,r,n){for(var o=[],a=new i,s=0,l=n;s<l.length;s++){var u=l[s],c=a.get(u.getStiType());null==c&&(c=[],o.add(c),a.set(u.getStiType(),c)),c.add(u)}for(var h=0,p=o;h<p.length;h++){var f=p[h],m=f.toArray();m[0].core.renderSeries(e,t,r,m)}},s.prototype.prepareInfo=function(t){var r=this.area;this.valuesCount=0;var i=this.getSeries();if(i.count>0)for(var n=0;n<i.count;n++){var a=i[n].values;null!=a&&(this.valuesCount=Math.max(a.length,this.valuesCount))}if(this.arguments=[],i.count>0){for(var s=i[0],l=0,u=i;l<u.length;l++){var c=u[l];if(c.arguments.length==this.valuesCount){s=c;break}}for(var n=0;n<this.valuesCount;n++)n<s.arguments.length&&this.arguments.add(s.arguments[n].toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator))}else this.arguments.add("1"),this.arguments.add("2"),this.arguments.add("3"),this.arguments.add("4"),this.arguments.add("5");this.centerPoint=new o(t.x+t.width/2,t.y+t.height/2);var h;h=this.valuesCount>0?360/this.valuesCount:360/5,this.points=[];var p=0;while(p<360){var f=(p-90)*Math.PI/180,m=new o(Math.cos(f),Math.sin(f));if(this.points.add(m),p+=h,this.points.count==this.valuesCount)break}for(var S=0,g=0,d=!0,n=0;n<i.count;n++){var a=i[n].values;if(null!=a)for(var y=0,b=a;y<b.length;y++){var v=b[y];if(null==v)continue;d?(S=v,g=v,d=!1):(S=Math.min(S,v),g=Math.max(g,v))}}0==i.count&&(g=1),Math.abs(S)>g&&(g=Math.abs(S)),0==g&&0==S&&(g=1),S=0,this.createStripLinesAxis(r.yAxis,S,g),null!=r.yAxis.info.stripLines&&r.yAxis.info.stripLines.count>0&&(r.yAxis.info.minimum=r.yAxis.info.stripLines.getByindex(r.yAxis.info.stripLines.count-1).value,r.yAxis.info.maximum=r.yAxis.info.stripLines.getByindex(0).value),r.yAxis.info.dpi=.5*t.height/r.yAxis.info.range,this.calculateStep(r.yAxis,0,t.height/2);var C={ref:r.yAxis.info.labelsCollection};this.calculatePositions(r.yAxis,C,r.yAxis.labels.step>0?Math.trunc(r.yAxis.labels.step):1),r.yAxis.info.labelsCollection=C.ref;var w={ref:r.yAxis.info.ticksCollection};this.calculatePositions(r.yAxis,w,r.yAxis.ticks.step>0?Math.trunc(r.yAxis.ticks.step):1),r.yAxis.info.ticksCollection=w.ref},s.prototype.createStripLinesAxis=function(e,r,i){var n=this.area,o=n.yAxis.labels.step;0==o&&(o=t.StiStripLineCalculatorXF.getInterval(r,i,6)),n.yAxis.info.stripLines=t.StiStripLineCalculatorXF.getStripLines(r,i,o,!1);for(var a=0,s=n.yAxis.info.stripLines.list;a<s.length;a++){var l=s[a];l.valueObject=String.stiFormat("{0}",l.valueObject)}},s.prototype.calculateStep=function(e,t,r){e.info.stripLines.count>=2?(e.info.step=Math.abs((e.info.stripLines.getByindex(1).value-e.info.stripLines.getByindex(0).value)*e.info.dpi),e.yCore.calculateStripPositions(t,r)):e.info.step=1},s.prototype.calculatePositions=function(e,r,i){var n=[],o=this.area,a=0;if(null!=e.info.stripPositions)for(var s=e.info.stripPositions.length,l=0;l<s;l++){if(0==a){var u=new t.StiStripPositionXF,c=l;u.stripLine=e.info.stripLines.list[c],u.position=e.info.stripPositions[c],n.add(u)}a++,a==i&&(a=0)}r.ref=n},s}(t.StiAreaCoreXF);t.StiRadarAreaCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","RadarArea")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.RadarArea},enumerable:!0,configurable:!0}),i}(t.StiRadarAreaCoreXF);t.StiRadarAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","RadarLine")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.RadarLine},enumerable:!0,configurable:!0}),i}(t.StiRadarAreaCoreXF);t.StiRadarLineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","RadarPoint")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.RadarPoint},enumerable:!0,configurable:!0}),i}(t.StiRadarAreaCoreXF);t.StiRadarPointAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("PropertyMain","Range")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Range},enumerable:!0,configurable:!0}),i.prototype.prepareRange=function(e,r,i,n){var o=!0,a=!0,s=!1,l=!1;i.info.maximum=0,i.info.minimum=0,n.info.maximum=0,n.info.minimum=0;for(var u=this.getSeries(),c=0;c<u.count;c++)for(var h=u[c],p=h.values,f=h.valuesEnd,m=Math.min(p.length,f.length),S=0;S<m;S++){var g=null!=p[S]?p[S].toNumber():0,d=null!=f[S]?f[S].toNumber():0,y=Math.max(g,d),b=Math.min(g,d);h.yAxis==t.StiSeriesYAxis.LeftYAxis?o?(s=!0,i.info.maximum=y,i.info.minimum=b,o=!1):(s=!0,i.info.maximum=Math.max(y,i.info.maximum),i.info.minimum=Math.min(b,i.info.minimum)):a?(l=!0,n.info.maximum=y,n.info.minimum=b,a=!1):(l=!0,n.info.maximum=Math.max(y,n.info.maximum),n.info.minimum=Math.min(b,n.info.minimum))}s||(i.info.maximum=n.info.maximum,i.info.minimum=n.info.minimum),l||(n.info.maximum=i.info.maximum,n.info.minimum=i.info.minimum)},i}(t.StiClusteredColumnAreaCoreXF);t.StiRangeAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.createStripLinesXAxis=function(e){e.info.stripLines.clear(),e.info.stripLines.add(0,0);for(var t=this.getSeries(),r=0,i=t;r<i.length;r++)for(var n=i[r],o=0,a=n.arguments;o<a.length;o++){for(var s=a[o],l=!0,u=0,c=e.info.stripLines.list;u<c.length;u++){var h=c[u];h.valueObject.toString()==s.toString()&&(l=!1)}l&&e.info.stripLines.add(s,e.info.stripLines.count)}e.info.stripLines.add(String.empty,e.info.stripLines.count),e.info.stripLines.count>0&&(e.area.xAxis.showEdgeValues||(e.info.stripLines.getByindex(0).valueObject="",e.info.stripLines.getByindex(e.info.stripLines.count-1).valueObject=""))},i.prototype.prepareRange=function(e,t,r,i){e.info.maximum=0,e.info.minimum=0,r.info.maximum=0,r.info.minimum=0;for(var n=this.getSeries(),o=!0,a=0,s=n;a<s.length;a++){for(var l=s[a],u=0,c=l.values;u<c.length;u++){var h=c[u];null!=h&&(o?(o=!1,r.info.maximum=h,r.info.minimum=h):(r.info.maximum=Math.max(r.info.maximum,h),r.info.minimum=Math.min(r.info.minimum,h)))}for(var p=0,f=l.valuesEnd;p<f.length;p++){var h=f[p];null!=h&&(r.info.maximum=Math.max(r.info.maximum,h),r.info.minimum=Math.min(r.info.minimum,h))}}i.info.maximum=r.info.maximum,i.info.minimum=r.info.minimum},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","RangeBar")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.RangeBar},enumerable:!0,configurable:!0}),i}(t.StiClusteredColumnAreaCoreXF);t.StiRangeBarAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SplineRange")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.SplineRange},enumerable:!0,configurable:!0}),i.prototype.prepareRange=function(e,r,i,n){var o=!0,a=!0,s=!1,l=!1;i.info.maximum=0,i.info.minimum=0,n.info.maximum=0,n.info.minimum=0;for(var u=this.getSeries(),c=0;c<u.count;c++)for(var h=u[c],p=h.values,f=h.valuesEnd,m=Math.min(p.length,f.length),S=0;S<m;S++){var g=null!=p[S]?p[S].toNumber():0,d=null!=f[S]?f[S].toNumber():0,y=Math.max(g,d),b=Math.min(g,d);h.yAxis==t.StiSeriesYAxis.LeftYAxis?o?(s=!0,i.info.maximum=y,i.info.minimum=b,o=!1):(s=!0,i.info.maximum=Math.max(y,i.info.maximum),i.info.minimum=Math.min(b,i.info.minimum)):a?(l=!0,n.info.maximum=y,n.info.minimum=b,a=!1):(l=!0,n.info.maximum=Math.max(y,n.info.maximum),n.info.minimum=Math.min(b,n.info.minimum))}s||(i.info.maximum=n.info.maximum,i.info.minimum=n.info.minimum),l||(n.info.maximum=i.info.maximum,n.info.minimum=i.info.minimum)},i}(t.StiClusteredColumnAreaCoreXF);t.StiSplineRangeAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SteppedRange")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.SteppedRange},enumerable:!0,configurable:!0}),i.prototype.prepareRange=function(e,r,i,n){var o=!0,a=!0,s=!1,l=!1;i.info.maximum=0,i.info.minimum=0,n.info.maximum=0,n.info.minimum=0;for(var u=this.getSeries(),c=0;c<u.count;c++)for(var h=u[c],p=h.values,f=h.valuesEnd,m=Math.min(p.length,f.length),S=0;S<m;S++){var g=null!=p[S]?p[S].toNumber():0,d=null!=f[S]?f[S].toNumber():0,y=Math.max(g,d),b=Math.min(g,d);h.yAxis==t.StiSeriesYAxis.LeftYAxis?o?(s=!0,i.info.maximum=y,i.info.minimum=b,o=!1):(s=!0,i.info.maximum=Math.max(y,i.info.maximum),i.info.minimum=Math.min(b,i.info.minimum)):a?(l=!0,n.info.maximum=y,n.info.minimum=b,a=!1):(l=!0,n.info.maximum=Math.max(y,n.info.maximum),n.info.minimum=Math.min(b,n.info.minimum))}s||(i.info.maximum=n.info.maximum,i.info.minimum=n.info.minimum),l||(n.info.maximum=i.info.maximum,n.info.minimum=i.info.minimum)},i}(t.StiClusteredColumnAreaCoreXF);t.StiSteppedRangeAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedArea")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.StackedArea},enumerable:!0,configurable:!0}),i}(t.StiStackedColumnAreaCoreXF);t.StiStackedAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedLine")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.StackedLine},enumerable:!0,configurable:!0}),i}(t.StiStackedColumnAreaCoreXF);t.StiStackedLineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedSplineArea")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.StackedSplineArea},enumerable:!0,configurable:!0}),i}(t.StiStackedColumnAreaCoreXF);t.StiStackedSplineAreaAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedSpline")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.StackedSpline},enumerable:!0,configurable:!0}),i}(t.StiStackedColumnAreaCoreXF);t.StiStackedSplineAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Stock")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiChartAreaPosition.Stock},enumerable:!0,configurable:!0}),i}(t.StiCandlestickAreaCoreXF);t.StiStockAreaCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Rectangle,i=e.Base.Localization.StiLocalization,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype.render=function(e,i){for(var n=new t.StiTreemapAreaGeom(this.area,i),o=this.getSeries(),a=[],s=0,l=o;s<l.length;s++){var u=l[s];a.add(u.values.sum())}var c=new r(0,0,i.width,i.height),h=this.area.core.normalizeDataForArea(a,c.width*c.height),p=this.area.core.squarify(h,[],c,[]);return this.renderSeries(e,p,c,n,o),n},n.prototype.renderSeries=function(e,t,r,i,n){for(var o=0;o<n.count;o++)n[o].core.renderSeries(e,t[o],i,n.toArray())},n.prototype.cutArea=function(e,t){var i;if(e.width>=e.height){var n=t/e.height,o=e.width-n;i=new r(e.x+n,e.y,o,e.height)}else{var a=t/e.width,s=e.height-a;i=new r(e.x,e.y+a,e.width,s)}return i},n.prototype.squarify=function(e,t,r,i){if(0==e.length)return i.addRange(this.getCoordinates(r,t)),i;var n=Math.min(r.width,r.height),o=e[0];if(this.improvesRatio(t,o,n))t.add(o),this.squarify(e.skip(1),t,r,i);else{var a=this.cutArea(r,t.sum());i.addRange(this.getCoordinates(r,t));var s=[];this.squarify(e,s,a,i)}return i},n.prototype.improvesRatio=function(e,t,r){if(0==e.length)return!0;var i=e.clone();return i.add(t),this.calculateRatio(e,r)>=this.calculateRatio(i,r)},n.prototype.calculateRatio=function(e,t){var r=e.sum(),i=Math.pow(t,2)*e.max()/Math.pow(r,2),n=Math.pow(r,2)/(Math.pow(t,2)*e.min());return Math.max(i,n)},n.prototype.normalizeDataForArea=function(e,t){for(var r=[],i=e.sum(),n=t/i,o=0;o<e.length;o++)r.add(e[o]*n);return r},n.prototype.getCoordinates=function(e,t){var i=[],n=e.x,o=e.y,a=t.sum()/e.height,s=t.sum()/e.width;if(e.width>=e.height)for(var l=0;l<t.length;l++)i.add(new r(n,o,a,t[l]/a)),o+=t[l]/a;else for(var l=0;l<t.length;l++)i.add(new r(n,o,t[l]/s,s)),n+=t[l]/s;return i},n.prototype.prepareInfo=function(e){},Object.defineProperty(n.prototype,"localizedName",{get:function(){return i.get("Chart","Treemap")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"position",{get:function(){return t.StiChartAreaPosition.Treemap},enumerable:!0,configurable:!0}),n}(t.StiAreaCoreXF);t.StiTreemapAreaCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.DateTime,i=function(){function i(){}return i.getInterval1=function(e){var t=Math.abs(e),r=0;if(e>1){while(t>1)t/=10,r++;t=t<.15?.1:t<.3?.2:t<.75?.5:1;while(r>0)t*=10,r--}else if(e>0){while(10*t<1)t*=10,r++;t=t<.15?.1:t<.3?.2:t<.75?.5:1;while(r>0)t/=10,r--}return t},i.getInterval=function(e,t,r){if(t==e)return 0;return i.getInterval1((t-e)/r)},i.getStripLines=function(i,n,o,a){var s=new t.StiStripLinesXF;if(i==n)return s;var l=i,u=n,c=o,h=0;h=Math.trunc(l/c)*c;while(l<h+c)h-=c;var p=this.getCountAfterComma(c),f=this.getCountAfterComma(h),m=Math.max(p,f);while(h<u)h+=c,m>0&&(h=Math.round(h,m)),a?s.insert(0,new t.StiStripLineXF(r.fromOADate(h),h)):s.insert(0,new t.StiStripLineXF(h.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),h));return s},i.getCountAfterComma=function(e){var t=e.toString().replaceAll(",","."),r=t.indexOf("."),i=0;return r>0&&(i=t.substring(r).length-1),i},i.getStripLinesLogScale=function(r,i){var n=new t.StiStripLinesXF;if(r==i)return n;var o=r,a=i,s=1,l=1;if(0<r&&r<1)while(o<s)s/=10;if(r>1){while(o>s)s*=10;s/=10}if(0<a&&a<1){while(l>a)l/=10;l*=10}if(a>1)while(a>l)l*=10;var u=s,c=u,h=1;while(u<=l)n.insert(0,new t.StiStripLineXF(u.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),u)),u+=c,10==++h&&(h=1,c=u);return n},i}();t.StiStripLineCalculatorXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(e,t){this._valueObject=null,this.valueObj=0,this.valueObject=e,this.valueObj=t}return t.prototype.implements=function(){return t.implementsStiStripLineXF||(t.implementsStiStripLineXF=[e.IStiStripLinesXF]),t.implementsStiStripLineXF},Object.defineProperty(t.prototype,"valueObject",{get:function(){return this._valueObject},set:function(e){this._valueObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.valueObj},set:function(e){this.valueObj=e},enumerable:!0,configurable:!0}),t}();e.StiStripLineXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.implements=function(){return r.implementsStiStripLinesXF||(r.implementsStiStripLinesXF=[t.IStiStripLinesXF]),r.implementsStiStripLinesXF},r.prototype.add=function(e,r){this.add2(new t.StiStripLineXF(e,r))},r.prototype.add2=function(e){this.list.add(e)},r.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.add2(i)}},r.prototype.contains=function(e){return this.list.contains(e)},r.prototype.indexOf=function(e){return this.list.indexOf(e)},r.prototype.insert=function(e,t){this.list.insert(e,t)},r.prototype.remove=function(e){this.list.remove(e)},r.prototype.getByindex=function(e){return this.list[e]},r.prototype.setByIndex=function(e,t){this.list[e]=t},r}(r);t.StiStripLinesXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return t.prototype.implements=function(){return t.implementsStiStripPositionXF||(t.implementsStiStripPositionXF=[e.IStiStripPositionXF]),t.implementsStiStripPositionXF},t}();e.StiStripPositionXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringTrimming,i=e.System.Drawing.StringFormatFlags,n=e.System.Drawing.StringAlignment,o=e.Base.Context.StiFontGeom,a=e.Base.Drawing.StiHorAlignment,s=e.System.Drawing.Size,l=e.System.ICloneable,u=function(){function e(e){this._isMouseOverDecreaseButton=!1,this._isMouseOverIncreaseButton=!1,this._isMouseOverTrackBar=!1,this._axis=e}return e.prototype.implements=function(){return e.implementsStiAxisCoreXF||(e.implementsStiAxisCoreXF=[l,t.IStiApplyStyle,t.IStiAxisCoreXF]),e.implementsStiAxisCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"isMouseOverDecreaseButton",{get:function(){return this._isMouseOverDecreaseButton},set:function(e){this._isMouseOverDecreaseButton=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMouseOverIncreaseButton",{get:function(){return this._isMouseOverIncreaseButton},set:function(e){this._isMouseOverIncreaseButton=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMouseOverTrackBar",{get:function(){return this._isMouseOverTrackBar},set:function(e){this._isMouseOverTrackBar=e},enumerable:!0,configurable:!0}),e.prototype.applyStyle=function(e){this.axis.allowApplyStyle&&(this.axis.lineColor=e.core.axisLineColor,this.axis.labels.core.applyStyle(e),this.axis.title.core.applyStyle(e))},e.prototype.getStartFromZero=function(){if(1==this.axis.area.axisCore.valuesCount)return!0;if(null!=this.axis&&null!=this.axis.range&&!this.axis.range.auto)return!0;return null==this.axis||this.axis.startFromZero},e.prototype.render=function(e,t){return null},e.prototype.renderView=function(e,t){return null},e.prototype.calculateStripPositions=function(e,r){if(r-=e,e=0,null==this.axis.info.stripLines||this.axis.info.stripLines.count<2)this.axis.info.stripPositions=[];else{var i=!1;if(this.axis.area.chart.series.count>0&&this.axis.area.chart.series.getByIndex(0).sti_is(t.StiScatterSeries)&&(i=!0),this.axis.logarithmicScale&&i){var n=this.axis.info.stripLines.count;this.axis.info.stripPositions=Array.create(Number,this.axis.info.stripLines.count),this.axis.info.stripPositions[0]=e,this.axis.info.stripPositions[this.axis.info.stripPositions.length-1]=r;for(var o=this.axis.info.stripLines.getByindex(0).value,a=this.axis.info.stripLines.getByindex(n-1).value,s=r/(Math.log10(a)-Math.log10(o)),l=1;l<this.axis.info.stripPositions.length-1;l++){var u=this.axis.info.stripLines.getByindex(l).value,c=Math.abs(Math.log10(Math.abs(this.axis.info.stripLines.getByindex(l).value))*s-Math.log10(Math.abs(this.axis.info.stripLines.getByindex(l-1).value))*s);this.axis.info.stripPositions[l]=e+c,e=this.axis.info.stripPositions[l]}}else{this.axis.info.stripPositions=Array.create(Number,this.axis.info.stripLines.count),this.axis.info.stripPositions[0]=e,this.axis.info.stripPositions[this.axis.info.stripPositions.length-1]=r;for(var l=1;l<this.axis.info.stripPositions.length-1;l++)this.axis.info.stripPositions[l]=e+l*this.axis.info.step}}},e.prototype.getTicksMaxLength=function(e){return this.axis.core.ticksMaxLength*e.options.zoom},e.prototype.getArrowHeight=function(e){return 4*this.axis.core.arrowHeight*e.options.zoom},e.prototype.getLabelsSpaceAxis=function(e){return 5*e.options.zoom},e.prototype.getLabelsTwoLinesDestination=function(e){return 2*this.axis.labels.font.sizeInPoints*e.options.zoom},e.prototype.getFontGeom=function(e){return o.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*e.options.zoom)},e.prototype.getTextAlignment=function(){if(this.axis.sti_is(t.IStiYAxis)){var e=this.axis;if(this.axis.labels.placement==t.StiLabelsPlacement.TwoLines){if(e.core.isLeftSide)return a.Right;if(e.core.isRightSide)return a.Left}}return this.axis.labels.textAlignment},e.prototype.getStringFormatGeom=function(e){var t=e.getGenericStringFormat();if(t.trimming=r.None,this.axis.labels.wordWrap||(t.formatFlags=i.MeasureTrailingSpaces|i.NoWrap),this.axis.labels.width>0){var o=this.getTextAlignment();o==a.Left?t.alignment=n.Near:o==a.Right?t.alignment=n.Far:o==a.Center&&(t.alignment=n.Center)}return t},e.prototype.getAxisTitleSize=function(e){if(String.isNullOrEmpty(this.axis.title.text))return s.empty;var r=o.changeFontSize(this.axis.title.font,this.axis.title.font.size*e.options.zoom),i=e.measureString(this.axis.title.text,r);switch(this.axis.title.direction){case t.StiDirection.LeftToRight:case t.StiDirection.RightToLeft:return i;case t.StiDirection.BottomToTop:case t.StiDirection.TopToBottom:return new s(i.height,i.width)}return s.empty},Object.defineProperty(e.prototype,"ticksMaxLength",{get:function(){return this.axis.visible?Math.max(this.axis.ticks.visible?this.axis.ticks.length:0,this.axis.ticks.minorVisible?this.axis.ticks.minorLength:0):0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowWidth",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowHeight",{get:function(){if(this.sti_is(t.StiXAxisCoreXF))return this.axis.area.reverseHor?-5:5;if(this.sti_is(t.StiYAxisCoreXF))return this.axis.area.reverseVert?-5:5;return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis},set:function(e){this._axis=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"info",{get:function(){return this.axis.info},set:function(e){this.axis.info=e},enumerable:!0,configurable:!0}),e.defaultScrollBarSize=12,e.defaultScrollBarSmallFactor=.01,e.defaultScrollBarFirstRecallTime=.3,e.defaultScrollBarOtherRecallTime=.05,e}();t.StiAxisCoreXF=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(){this.dpi=0,this.step=0,this.stripPositions=null,this.ticksCollection=null,this.labelsCollection=null,this.minimum=0,this._maximum=0}return e.prototype.implements=function(){return e.implementsStiAxisInfoXF||(e.implementsStiAxisInfoXF=[r,t.IStiAxisInfoXF]),e.implementsStiAxisInfoXF},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"range",{get:function(){return this.maximum-this.minimum},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximum",{get:function(){return this._maximum},set:function(e){this._maximum=e},enumerable:!0,configurable:!0}),e}();t.StiAxisInfoXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Rectangle,i=e.System.Drawing.Point,n=function(){function e(){this.clientRectangle=r.empty,this.textPoint=i.empty}return e}();t.StiAxisLabelInfoXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(e){this._labels=e}return e.prototype.implements=function(){return e.implementsStiAxisLabelsCoreXF||(e.implementsStiAxisLabelsCoreXF=[t.IStiApplyStyle,r,t.IStiAxisLabelsCoreXF]),e.implementsStiAxisLabelsCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.labels.allowApplyStyle&&(this.labels.color=e.core.axisLabelsColor)},Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!0,configurable:!0}),e}();t.StiAxisLabelsCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(e){this._title=e}return e.prototype.implements=function(){return e.implementsStiAxisTitleCoreXF||(e.implementsStiAxisTitleCoreXF=[t.IStiApplyStyle,r,t.IStiAxisTitleCoreXF]),e.implementsStiAxisTitleCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.title.allowApplyStyle&&(this.title.color=e.core.axisTitleColor)},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!0,configurable:!0}),e}();t.StiAxisTitleCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringAlignment,i=e.Base.Drawing.StiRotationMode,n=e.System.DateTime,o=e.System.Drawing.Point,a=e.Base.Localization.StiLocalization,s=e.System.Drawing.Rectangle,l=function(l){function u(e){return l.call(this,e)||this}return __extends(u,l),u.prototype.getStartFromZero=function(){if(null!=this.axis.info.labelsCollection&&this.isArgumentDateTime1(this.axis.info.labelsCollection)&&(this.axis.area.sti_is(t.StiScatterArea)||this.axis.area.sti_is(t.StiGanttArea)))return!1;return l.prototype.getStartFromZero.call(this)},u.prototype.render=function(e,r){if(!this.axis.visible)return null;var i=this.getAxisRect(e,r,!1,!1,!0,!1).clone();i.x=0,i.y=0,this.axis.interaction.showScrollBar&&(this.axis.sti_is(t.IStiXBottomAxis)&&!this.axis.area.reverseVert||this.axis.sti_is(t.IStiXTopAxis)&&this.axis.area.reverseVert)&&(i.y+=t.StiAxisCoreXF.defaultScrollBarSize*e.options.zoom);var n=new t.StiXAxisGeom(this.axis,i,!1);return this.renderLabels(e,i,n),this.renderTitle(e,i,n),n},u.prototype.renderView=function(e,r){if(!this.axis.visible)return null;var i=this.getAxisRect(e,r,!1,!1,!0,!0).clone();return new t.StiXAxisViewGeom(this.axis,i,!1)},u.prototype.renderScrollBar=function(e,r,i){if(this.axis.interaction.showScrollBar){var n=r.clone();n.x=0,n.height=t.StiAxisCoreXF.defaultScrollBarSize*e.options.zoom,this.axis.sti_is(t.IStiXTopAxis)&&!this.axis.area.reverseVert||this.axis.sti_is(t.IStiXBottomAxis)&&this.axis.area.reverseVert?n.y=r.height-n.height:n.y=0;var o=new t.StiHorzScrollBarGeom(this.axis,n);if(i.createChildGeoms(),i.childGeoms.add(o),n.x=0,n.y=0,n.inflate(-2,-2),this.axis.interaction.rangeScrollEnabled){var a=n.clone();a.width=n.height;var l=new t.StiLeftButtonGeom(this.axis,a);o.createChildGeoms(),o.childGeoms.add(l);var u=n.clone();u.width=n.height,u.x=n.right-u.width;var c=new t.StiRightButtonGeom(this.axis,u);o.createChildGeoms(),o.childGeoms.add(c),n.inflate(-n.height-2,0)}var h=n.clone(),p=this.axis.area.xAxis,f=this.axis.area.core;if(!p.range.auto){var m=n.width/f.scrollRangeX,S=f.scrollValueX*m,g=f.scrollViewX<f.scrollRangeX?f.scrollViewX*m:f.scrollRangeX*m;h=new s(S+n.x,n.y,g,n.height)}var d=new t.StiHorzTrackBarGeom(this.axis,h,o);o.createChildGeoms(),o.childGeoms.add(d)}},u.prototype.renderCenter=function(e,r){if(!this.axis.visible)return null;if(this.axis.area.yAxis.info.minimum>=0)return null;var i=this.getCenterAxisRect(e,r,!1,!1,!0).clone();return i.x=0,i.y=0,new t.StiXAxisGeom(this.axis,i,!0)},u.prototype.renderCenterView=function(e,r){if(!this.axis.visible)return null;if(this.axis.area.yAxis.info.minimum>=0)return null;var i=this.getCenterAxisRect(e,r,!1,!1,!0).clone();return new t.StiXAxisViewGeom(this.axis,i,!0)},u.prototype.getLabelText=function(r,i){var o=r.valueObject;null==o&&(o="");try{var a=String.empty;if(null!=i&&(a=i.format),null!=a&&0!=a.trim().length||(a=this.axis.labels.format),null!=a&&0!=a.trim().length){if(o.sti_is(String)){var s=o.toString(),l=s.toNumber();if(s.length>0&&!isNaN(l))o=l;else{var u=n.fromString(o.toString());null!=u&&(o=u)}}else if(null==o)return String.empty;if(!t.StiChartOptions.oldChartPercentMode&&a.startsWith("P")){var c=0;return a.length>1&&(c=a.remove(0,1).toNumber()),String.stiFormat("{0}{1:N"+c.toString()+"}{2}{3}",this.axis.labels.textBefore,o,"%",this.axis.labels.textAfter)}return String.stiFormat("{0}{1:"+a+"}{2}",this.axis.labels.textBefore,o,this.axis.labels.textAfter)}return String.stiFormat("{0}{1}{2}",this.axis.labels.textBefore,o,this.axis.labels.textAfter)}catch(t){e.System.StiError.showError(t,!1)}return o.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},Object.defineProperty(u.prototype,"isLabelsAngleByWidth",{get:function(){return this.axis.labels.angle<30||this.axis.labels.angle>150},enumerable:!0,configurable:!0}),u.prototype.measureStripLines=function(e,r){var n=[];if(null!=this.axis.info.labelsCollection&&this.axis.labels.placement!=t.StiLabelsPlacement.None){for(var a=0,s=0,l=0,u=this.axis.info.labelsCollection;l<u.length;l++){var c=u[l],h=this.axis.area.reverseVert?this.isBottomSide:this.isTopSide;if(h&&this.axis.area.yRightAxis.arrowStyle!=t.StiArrowStyle.None&&0==s){n.add(new t.StiAxisLabelInfoXF),s++;continue}if(h&&this.axis.area.yAxis.arrowStyle!=t.StiArrowStyle.None&&s==this.axis.info.stripLines.count-1){n.add(new t.StiAxisLabelInfoXF),s++;continue}var p=c.stripLine.value,f=this.getLabelText(c.stripLine,null),m=c.position;if(this.axis.labels.placement!=t.StiLabelsPlacement.None){var S=this.getStringFormatGeom(e),g=this.getFontGeom(e),d=this.getTextAlignment(),y=i.CenterCenter,b=-this.axis.labels.angle,v=o.empty;this.isTopSide?(v=new o(m,r.height-(this.getTicksMaxLength(e)+this.getLabelsSpaceAxis(e))),y=0==this.axis.labels.angle?i.CenterBottom:i.LeftCenter):(v=new o(m,this.getTicksMaxLength(e)+this.getLabelsSpaceAxis(e)),y=0==this.axis.labels.angle?i.CenterTop:i.RightCenter),this.axis.labels.placement==t.StiLabelsPlacement.TwoLines&&0!=(1&s)&&(this.isTopSide&&(v.y-=this.getLabelsTwoLinesDestination(e)),this.isBottomSide&&(v.y+=this.getLabelsTwoLinesDestination(e)));var C=e.measureRotatedString3(f,g,v,S,y,b,Math.trunc(this.axis.labels.width*e.options.zoom)),w=new t.StiAxisLabelInfoXF;w.angle=b,w.clientRectangle=C,w.rotationMode=y,w.textPoint=v,w.text=f,w.stripLine=c.stripLine,n.add(w),this.isLabelsAngleByWidth&&(a=Math.max(a,C.width))}else n.add(new t.StiAxisLabelInfoXF);s++}var x=1;if(this.axis.range.auto){this.isLabelsAngleByWidth||(a=1.5*this.axis.labels.font.sizeInPoints*e.options.zoom);a/(r.width/this.axis.info.stripLines.count)>1&&(x=Math.trunc(t.StiStripLineCalculatorXF.getInterval(0,this.axis.info.labelsCollection.count,6)),this.axis.logarithmicScale&&(x=1))}else x=Math.trunc(Math.max(1,this.axis.step));var _=!1,A=0,L=0;if(this.axis.labels.placement==t.StiLabelsPlacement.TwoLines&&n.count>1&&(L=n[0].textPoint.y,A=n[1].textPoint.y),1==x||0!=this.axis.labels.step)return n;for(var O=0,P=[],B=0,R=n;B<R.length;B++){var w=R[B];0==O&&(this.axis.labels.placement==t.StiLabelsPlacement.TwoLines&&n.count>1&&(_?(w.textPoint.y=A,_=!1):(w.textPoint.y=L,_=!0)),P.add(w)),O++,O==x&&(O=0)}return P}return n},u.prototype.getCenterAxisRect=function(e,t,r,i,n){if(this.axis.area.yAxis.info.minimum>=0)return s.empty;var o=-this.getTicksMaxLength(e);return new s(0,o,t.width,this.getTicksMaxLength(e))},u.prototype.getAxisRect=function(e,r,i,n,o,a){var l=s.empty;if(!this.axis.visible)return l;var u=this.measureStripLines(e,r);if(0==u.count)l=this.isTopSide?new s(0,-this.getTicksMaxLength(e),r.width,this.getTicksMaxLength(e)):new s(0,r.height,r.width,this.getTicksMaxLength(e));else{for(var c=0,h=u;c<h.length;c++){var p=h[c];if(p.clientRectangle.isEmpty)continue;l=l.isEmpty?p.clientRectangle:s.union(l,p.clientRectangle)}this.axis.interaction.showScrollBar&&a&&(l.height+=t.StiAxisCoreXF.defaultScrollBarSize*e.options.zoom),l.height+=this.getTicksMaxLength(e)+this.getLabelsSpaceAxis(e);var f=l.clone();this.isTopSide&&(l=new s(0,-l.height,r.width,l.height)),this.isBottomSide&&(l=new s(0,r.height,r.width,l.height)),n&&(l.x=f.x,l.width=f.width)}if(this.axis.arrowStyle!=t.StiArrowStyle.None&&i){var m=this.getArrowHeight(e);this.axis.area.reverseHor&&(m=-m),l=s.union(l,new s(r.width,l.y+l.height/2,m,1))}var S=this.getAxisTitleSize(e);return S.isEmpty||this.axis.title.position!=t.StiTitlePosition.Outside||(l.height+=S.height,0==l.width&&(l.width=S.width),this.isTopSide&&(l.y-=S.height)),l},u.prototype.renderLabels=function(e,r,n){if(null!=this.axis.info.stripLines&&this.axis.labels.placement!=t.StiLabelsPlacement.None){var s=this.measureStripLines(e,r);n.createChildGeoms();var l=this.axis.area.xAxis;if(this.isArgumentDateTime2(s)&&null!=l&&l.dateTimeStep.step!=t.StiTimeDateStep.None){for(var u=void 0,c=void 0,h=l.info.labelsCollection,p=[],f=String.empty,m=!0,S=0,g=0;g<h.count;g++){if(null==h[g].stripLine.valueObject)continue;switch(u=h[g].stripLine.valueObject,c=g<h.count-2&&!l.area.sti_is(t.StiScatterArea)?h[g+1].stripLine.valueObject:u,m&&(S=h[g].position,m=!1),this.axis.area.xAxis.dateTimeStep.step){case t.StiTimeDateStep.Day:u.toString("yyyyMMMMdd")==c.toString("yyyyMMMMdd")&&g!=h.count-2||(f=u.toString("dd"));break;case t.StiTimeDateStep.Hour:u.toString("yyyyMMMMddHH")==c.toString("yyyyMMMMddHH")&&g!=h.count-2||(f=u.toString("HH"));break;case t.StiTimeDateStep.Minute:u.toString("yyyyMMMMddHHmm")==c.toString("yyyyMMMMddHHmm")&&g!=h.count-2||(f=u.toString("mm"));break;case t.StiTimeDateStep.Month:u.toString("yyyyMMMM")==c.toString("yyyyMMMM")&&g!=h.count-2||(f=a.get("A_WebViewer","Month"+u.toString("MMMM")));break;case t.StiTimeDateStep.Second:u.toString("yyyyMMMMddHHmmss")==c.toString("yyyyMMMMddHHmmss")&&g!=h.count-2||(f=u.toString("ss"));break;case t.StiTimeDateStep.Year:u.toString("yyyy")==c.toString("yyyy")&&g!=h.count-2||(f=u.toString("yyyy"));break}if(f!=String.empty){var d=new o((h[g].position+S)/2,this.getTicksMaxLength(e)+this.getLabelsSpaceAxis(e)),y=0,b=new t.StiAxisLabelInfoXF;b.angle=y,b.clientRectangle=e.measureRotatedString3(f,this.getFontGeom(e),d,this.getStringFormatGeom(e),i.CenterCenter,y,Math.trunc(this.axis.labels.width*e.options.zoom)),b.rotationMode=i.CenterCenter,b.stripLine=h[g].stripLine,b.text=f,b.textPoint=d,p.add(b),m=!0,f=String.empty}}m=!0;for(var v=[],g=0;g<p.count-1;g++){switch(u=p[g].stripLine.valueObject,c=p[g+1].stripLine.valueObject,m&&(S=p[g].textPoint.x,m=!1),this.axis.area.xAxis.dateTimeStep.step){case t.StiTimeDateStep.Day:u.toString("yyyyMMMM")==c.toString("yyyyMMMM")&&g!=p.count-2||(f=a.get("A_WebViewer","Month"+u.toString("MMMM")));break;case t.StiTimeDateStep.Hour:u.toString("yyyyMMMMdd")==c.toString("yyyyMMMMdd")&&g!=p.count-2||(f=u.toString("dd"));break;case t.StiTimeDateStep.Minute:u.toString("yyyyMMMMddhh")==c.toString("yyyyMMMMddhh")&&g!=p.count-2||(f=u.toString("hh"));break;case t.StiTimeDateStep.Month:u.toString("yyyy")==c.toString("yyyy")&&g!=p.count-2||(f=u.toString("yyyy"));break;case t.StiTimeDateStep.Second:u.toString("yyyyMMMMddhhmm")==c.toString("yyyyMMMMddhhmm")&&g!=p.count-2||(f=u.toString("mm"));break;case t.StiTimeDateStep.Year:if(u.toString("yyyy")!=c.toString("yyyy")||g==p.count-2)continue;break}if(f!=String.empty){var d=new o((p[g+1].textPoint.x+S)/2,this.getTicksMaxLength(e)+2*this.getLabelsSpaceAxis(e)),y=0,b=new t.StiAxisLabelInfoXF;b.angle=y,b.clientRectangle=e.measureRotatedString3(f,this.getFontGeom(e),d,this.getStringFormatGeom(e),i.CenterCenter,y,Math.trunc(this.axis.labels.width*e.options.zoom)),b.rotationMode=i.CenterTop,b.stripLine=p[g].stripLine,b.text=f,b.textPoint=d,v.add(b),m=!0,f=String.empty}}p.addRange(v);for(var C=0,w=p;C<w.length;C++){var b=w[C];if(!b.clientRectangle.isEmpty){var x=new t.StiAxisLabelGeom(this.axis,b.clientRectangle,b.textPoint,b.text,b.stripLine,b.angle,b.rotationMode);n.childGeoms.add(x)}}}else for(var _=0,A=s;_<A.length;_++){var b=A[_];if(!b.clientRectangle.isEmpty){var x=new t.StiAxisLabelGeom(this.axis,b.clientRectangle,b.textPoint,b.text,b.stripLine,b.angle,b.rotationMode);n.childGeoms.add(x)}}}},u.prototype.renderTitle=function(e,i,n){if(String.isNullOrEmpty(this.axis.title.text))return;var o=this.getAxisTitleSize(e),a=s.empty;if(this.isTopSide){switch(this.axis.title.alignment){case r.Near:a=new s(0,0,o.width,o.height);break;case r.Center:a=new s((i.width-o.width)/2,0,o.width,o.height);break;case r.Far:a=new s(i.width-o.width,0,o.width,o.height);break}this.axis.title.position==t.StiTitlePosition.Inside&&(a.y+=i.height)}if(this.isBottomSide){switch(this.axis.title.alignment){case r.Near:a=new s(0,i.height-o.height,o.width,o.height);break;case r.Center:a=new s((i.width-o.width)/2,i.height-o.height,o.width,o.height);break;case r.Far:a=new s(i.width-o.width,i.height-o.height,o.width,o.height);break}this.axis.title.position==t.StiTitlePosition.Inside&&(a.y-=i.height)}var l=0;switch(this.axis.title.direction){case t.StiDirection.LeftToRight:l=0;break;case t.StiDirection.RightToLeft:l=180;break;case t.StiDirection.BottomToTop:l=-90;break;case t.StiDirection.TopToBottom:l=90;break}var u=new t.StiAxisTitleGeom(this.axis,a,l,this.axis.title.alignment);n.createChildGeoms(),n.childGeoms.add(u)},u.prototype.isArgumentDateTime1=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(null!=i.stripLine.valueObject&&i.stripLine.valueObject.sti_is(n))return!0}return!1},u.prototype.isArgumentDateTime2=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(null!=i.stripLine.valueObject&&i.stripLine.valueObject.sti_is(n))return!0}return!1},Object.defineProperty(u.prototype,"dock",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isTopSide",{get:function(){return this.dock==t.StiXAxisDock.Top&&!this.axis.area.reverseVert||this.dock==t.StiXAxisDock.Bottom&&this.axis.area.reverseVert},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isBottomSide",{get:function(){return this.dock==t.StiXAxisDock.Bottom&&!this.axis.area.reverseVert||this.dock==t.StiXAxisDock.Top&&this.axis.area.reverseVert},enumerable:!0,configurable:!0}),u}(t.StiAxisCoreXF);t.StiXAxisCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e){return t.call(this,e)||this}return __extends(r,t),Object.defineProperty(r.prototype,"dock",{get:function(){return e.StiXAxisDock.Bottom},enumerable:!0,configurable:!0}),r}(e.StiXAxisCoreXF);e.StiXBottomAxisCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e){return t.call(this,e)||this}return __extends(r,t),Object.defineProperty(r.prototype,"dock",{get:function(){return e.StiXAxisDock.Top},enumerable:!0,configurable:!0}),r}(e.StiXAxisCoreXF);e.StiXTopAxisCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Brushes,i=e.Base.Context.StiPenGeom,n=e.System.Drawing.StringAlignment,o=e.Base.Drawing.StiRotationMode,a=e.Base.Context.StiFontGeom,s=e.System.Drawing.Point,l=e.System.Drawing.Rectangle,u=e.Base.Drawing.StiHorAlignment,c=function(c){function h(e){return c.call(this,e)||this}return __extends(h,c),h.prototype.render=function(e,r){if(!this.axis.visible)return null;var i=this.getAxisRect(e,r,!1,!1,!0,!1).clone();i.x=0,i.y=0,this.axis.interaction.showScrollBar&&(this.axis.sti_is(t.IStiYRightAxis)&&!this.axis.area.reverseHor||this.axis.sti_is(t.IStiYLeftAxis)&&this.axis.area.reverseHor)&&(i.x+=t.StiAxisCoreXF.defaultScrollBarSize*e.options.zoom);var n=new t.StiYAxisGeom(this.axis,i.clone(),!1);return this.renderLabels(e,i.clone(),n),this.axis.range.auto||(i.y=(this.axis.info.maximum-this.axis.range.maximum)*this.axis.info.dpi,i.height=(this.axis.range.maximum-this.axis.range.minimum)*this.axis.info.dpi),this.renderTitle(e,i,n),n},h.prototype.renderView=function(e,r){if(!this.axis.visible)return null;var i=this.getAxisRect(e,r,!1,!1,!0,!0).clone();return new t.StiYAxisViewGeom(this.axis.sti_as(t.IStiYAxis),i,!1)},h.prototype.renderScrollBar=function(e,t,r){},h.prototype.renderCenter=function(e,r){if(!this.axis.visible)return null;if(this.axis.area.xAxis.info.minimum>=0)return null;var i=this.getCenterAxisRect(e,r,!1,!1,!0).clone();return i.x=0,i.y=0,new t.StiYAxisGeom(this.axis,i,!0)},h.prototype.renderCenterView=function(e,r){if(!this.axis.visible)return null;if(this.axis.area.xAxis.info.minimum>=0)return null;var i=this.getCenterAxisRect(e,r,!1,!1,!0).clone();return new t.StiYAxisViewGeom(this.axis,i,!0)},h.prototype.getLabelText=function(r,i){var n=r.valueObject;null==n&&(n="");try{if(null!=this.axis.labels.format&&0!=this.axis.labels.format.trim().length)try{if(n.sti_is(String)&&(n=parseFloat(n.toString())),!t.StiChartOptions.oldChartPercentMode&&this.axis.labels.format.startsWith("P")){var o=0;return this.axis.labels.format.length>1&&(o=parseInt(this.axis.labels.format.remove(0,1))),String.stiFormat("{0}{1:N"+o.toString()+"}{2}{3}",this.axis.labels.textBefore,n,"%",this.axis.labels.textAfter)}return String.stiFormat("{0}{1:"+this.axis.labels.format+"}{2}",this.axis.labels.textBefore,n,this.axis.labels.textAfter)}catch(t){e.System.StiError.showError(t,!1)}return String.stiFormat("{0}{1}{2}",this.axis.labels.textBefore,n,this.axis.labels.textAfter)}catch(t){e.System.StiError.showError(t,!1)}return n.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},h.prototype.measureStripLines=function(e,r){var i=[];if(null!=this.axis.info.labelsCollection&&this.axis.labels.placement!=t.StiLabelsPlacement.None)for(var n=this.getAxisTitleSize(e),l=0,c=0,h=this.axis.info.labelsCollection;c<h.length;c++){var p=h[c],f=this.axis.area.reverseHor?this.isLeftSide:this.isRightSide;if(f&&this.axis.area.xTopAxis.arrowStyle!=t.StiArrowStyle.None&&0==l){i.add(new t.StiAxisLabelInfoXF),l++;continue}if(f&&this.axis.area.xAxis.arrowStyle!=t.StiArrowStyle.None&&l==this.axis.info.stripLines.count-1){i.add(new t.StiAxisLabelInfoXF),l++;continue}var m=this.getLabelText(p.stripLine,null),S=p.position,g=e.getGenericStringFormat(),d=a.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*e.options.zoom),y=this.getTextAlignment(),b=o.LeftCenter,v=-this.axis.labels.angle,C=s.empty;this.isLeftSide?y==u.Left?(b=o.LeftCenter,C=new s(n.width,S),v=0):(b=o.RightCenter,C=new s(r.width-this.getTicksMaxLength(e)-this.getLabelsSpaceAxis(e),S)):y==u.Left?(b=o.LeftCenter,C=new s(this.getTicksMaxLength(e)+this.getLabelsSpaceAxis(e),S)):(b=o.RightCenter,C=new s(r.width-n.width,S),v=0),this.axis.labels.placement==t.StiLabelsPlacement.TwoLines&&0!=(1&l)&&(this.isLeftSide&&(C.x-=this.getLabelsTwoLinesDestination(e)),this.isRightSide&&(C.x+=this.getLabelsTwoLinesDestination(e)));var w=e.measureRotatedString3(m,d,C,g,b,v,this.axis.labels.width*e.options.zoom),x=this.axis.labels.width*e.options.zoom;if(0!=x){switch(b.toString()){case"3":w.x+=(x-w.width)/2;break;case"4":w.x+=(x-w.width)/2;break;case"5":w.x+=(x-w.width)/2;break;case"6":w.x+=x-w.width;break;case"7":w.x+=x-w.width;break;case"8":w.x+=x-w.width;break}w.width=x}else switch(b.toString()){case"6":w.x-=w.width;break;case"7":w.x-=w.width;break;case"8":w.x-=w.width;break}var _=new t.StiAxisLabelInfoXF;_.angle=v,_.clientRectangle=w,_.rotationMode=b,_.textPoint=C,_.text=m,_.stripLine=p.stripLine,i.add(_),l++}return i},h.prototype.getCenterAxisRect=function(e,t,r,i,n){if(this.axis.area.xAxis.info.minimum>=0)return l.empty;var o=-this.getTicksMaxLength(e);return new l(o,0,this.getTicksMaxLength(e),t.height)},h.prototype.getAxisRect=function(e,r,i,n,o,a){var s=l.empty;if(!this.axis.visible)return s;var u=this.measureStripLines(e,r);if(0==u.count)s=this.isLeftSide?new l(-this.getTicksMaxLength(e),0,this.getTicksMaxLength(e),r.height):new l(r.width,0,this.getTicksMaxLength(e),r.height);else{for(var c=0,h=u;c<h.length;c++){var p=h[c];if(p.clientRectangle.isEmpty)continue;s=s.isEmpty?p.clientRectangle.clone():l.union(s,p.clientRectangle)}this.axis.interaction.showScrollBar&&a&&(s.width+=t.StiAxisCoreXF.defaultScrollBarSize*e.options.zoom),s.width+=this.getTicksMaxLength(e)+this.getLabelsSpaceAxis(e);var f=s.clone();this.isLeftSide&&(s=new l(-s.width,0,s.width,r.height)),this.isRightSide&&(s=new l(r.width,0,s.width,r.height)),n&&(s.y=f.y,s.height=f.height)}if(this.axis.arrowStyle!=t.StiArrowStyle.None&&i){var m=this.getArrowHeight(e);this.axis.area.reverseVert&&(m=-m),s=l.union(s,new l(s.x,-m,1,m))}var S=this.getAxisTitleSize(e);return S.isEmpty||this.axis.title.position!=t.StiTitlePosition.Outside||(s.width+=S.width,this.isLeftSide&&(s.x-=S.width)),s},h.prototype.renderLabels=function(e,r,i){if(this.axis.labels.placement!=t.StiLabelsPlacement.None){var n=this.measureStripLines(e,r);i.createChildGeoms();for(var o=0,a=n;o<a.length;o++){var s=a[o];if(!s.clientRectangle.isEmpty){var l=new t.StiAxisLabelGeom(this.axis,s.clientRectangle,s.textPoint,s.text,s.stripLine,s.angle,s.rotationMode);i.childGeoms.add(l)}}}},h.prototype.renderTitle=function(e,o,a){if(String.isNullOrEmpty(this.axis.title.text))return;var s=this.getAxisTitleSize(e),u=l.empty;if(this.isLeftSide){switch(this.axis.title.alignment){case n.Near:u=new l(0,o.height-s.height+o.y,s.width,s.height);break;case n.Center:u=new l(0,(o.height-s.height)/2+o.y,s.width,s.height);break;case n.Far:u=new l(0,o.y,s.width,s.height);break}this.axis.title.position==t.StiTitlePosition.Inside&&(u.x+=o.width)}if(this.isRightSide){switch(this.axis.title.alignment){case n.Near:u=new l(o.width-s.width,o.height-s.height+o.y,s.width,s.height);break;case n.Center:u=new l(o.width-s.width,(o.height-s.height)/2+o.y,s.width,s.height);break;case n.Far:u=new l(o.width-s.width,o.y,s.width,s.height);break}this.axis.title.position==t.StiTitlePosition.Inside&&(u.x-=o.width)}var c=new i(r.red);e.drawRectangle2(c,u.x,u.y,u.width,u.height);var h=0;switch(this.axis.title.direction){case t.StiDirection.LeftToRight:h=0;break;case t.StiDirection.RightToLeft:h=180;break;case t.StiDirection.BottomToTop:h=-90;break;case t.StiDirection.TopToBottom:h=90;break}var p=new t.StiAxisTitleGeom(this.axis,u,h,this.axis.title.alignment);a.createChildGeoms(),a.childGeoms.add(p)},Object.defineProperty(h.prototype,"dock",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"isLeftSide",{get:function(){return this.dock==t.StiYAxisDock.Left&&!this.axis.area.reverseHor||this.dock==t.StiYAxisDock.Right&&this.axis.area.reverseHor},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"isRightSide",{get:function(){return this.dock==t.StiYAxisDock.Right&&!this.axis.area.reverseHor||this.dock==t.StiYAxisDock.Left&&this.axis.area.reverseHor},enumerable:!0,configurable:!0}),h}(t.StiAxisCoreXF);t.StiYAxisCoreXF=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e){return t.call(this,e)||this}return __extends(r,t),Object.defineProperty(r.prototype,"dock",{get:function(){return e.StiYAxisDock.Left},enumerable:!0,configurable:!0}),r}(e.StiYAxisCoreXF);e.StiYLeftAxisCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e){return t.call(this,e)||this}return __extends(r,t),Object.defineProperty(r.prototype,"dock",{get:function(){return e.StiYAxisDock.Right},enumerable:!0,configurable:!0}),r.prototype.getStartFromZero=function(){if(1==this.axis.area.axisCore.valuesCount)return!0;if(null!=this.axis&&null!=this.axis.range&&!this.axis.range.auto)return!1;return null==this.axis||this.axis.startFromZero},r}(e.StiYAxisCoreXF);e.StiYRightAxisCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringAlignment,i=e.Base.Drawing.StiRotationMode,n=e.Base.Context.StiFontGeom,o=e.Base.Drawing.StiSolidBrush,a=e.System.ICloneable,s=function(){function e(e){this._chartTitle=e}return e.prototype.implements=function(){return e.implementsStiChartTitleCoreXF||(e.implementsStiChartTitleCoreXF=[a,t.IStiApplyStyle,t.IStiChartTitleCoreXF]),e.implementsStiChartTitleCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.chartTitle.allowApplyStyle&&(this.chartTitle.brush=new o(e.core.axisTitleColor))},e.prototype.render=function(e,o,a){if(!o.visible)return null;var s=new n(o.font.fontFamily.name,o.font.size,o.font.style,o.font.unit),l=e.getDefaultStringFormat();l.alignment=o.alignment;var u=e.measureRotatedString2(o.text,s,a,l,i.CenterCenter,o.dock);switch(o.dock){case t.StiChartTitleDock.Top:u.height+=o.spacing,u.height*=e.options.zoom,u.y=a.y,o.alignment!=r.Center&&(u.width*=e.options.zoom),o.alignment==r.Near&&(u.x=a.x),o.alignment==r.Center&&(u.x=a.x+a.width/2-u.width/2),o.alignment==r.Far&&(u.x=a.x+a.width-u.width);break;case t.StiChartTitleDock.Right:u.width+=o.spacing,u.width*=e.options.zoom,u.x=a.x+a.width-u.width,o.alignment!=r.Center&&(u.height*=e.options.zoom),o.alignment==r.Near&&(u.y=a.y),o.alignment==r.Center&&(u.y=a.y+a.height/2-u.height/2),o.alignment==r.Far&&(u.y=a.y+a.height-u.height);break;case t.StiChartTitleDock.Bottom:u.height+=o.spacing,u.height*=e.options.zoom,u.y=a.y+a.height-u.height,o.alignment!=r.Center&&(u.width*=e.options.zoom),o.alignment==r.Near&&(u.x=a.x+a.width-u.width),o.alignment==r.Center&&(u.x=a.x+a.width/2-u.width/2),o.alignment==r.Far&&(u.x=a.x);break;case t.StiChartTitleDock.Left:u.width+=o.spacing,u.width*=e.options.zoom,u.x=a.x,o.alignment!=r.Center&&(u.height*=e.options.zoom),o.alignment==r.Near&&(u.y=a.y+a.height-u.height),o.alignment==r.Center&&(u.y=a.y+a.height/2-u.height/2),o.alignment==r.Far&&(u.y=a.y);break}return new t.StiChartTitleGeom(o,u)},Object.defineProperty(e.prototype,"chartTitle",{get:function(){return this._chartTitle},set:function(e){this._chartTitle=e},enumerable:!0,configurable:!0}),e}();t.StiChartTitleCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.System.Drawing.Point,n=e.System.Drawing.Rectangle,o=e.System.ICloneable,a=function(){function a(e){this._constantLines=e}return a.prototype.implements=function(){return a.implementsStiConstantLinesCoreXF||(a.implementsStiConstantLinesCoreXF=[t.IStiApplyStyle,o,t.IStiConstantLinesCoreXF]),a.implementsStiConstantLinesCoreXF},a.prototype.clone=function(){return this.memberwiseClone()},a.prototype.applyStyle=function(e){this.constantLines.allowApplyStyle&&(this.constantLines.lineColor=e.core.chartAreaBorderColor)},a.prototype.renderXConstantLines=function(o,a,s){var l=a.area;if(null==l)return;var u;try{u=this.constantLines.axisValue.toNumber()}catch(t){e.System.StiError.showError(t,!1),u=0}l.reverseVert&&(u=-u);for(var c=l.axisCore.getDividerX()+u*l.xAxis.info.dpi,h=0,p=l.xAxis.info.stripLines.list;h<p.length;h++){var f=p[h];null!=f.valueObject&&f.valueObject.toString()==this.constantLines.axisValue&&(u=f.value,l.reverseHor&&(u=-u),c=u*l.xAxis.info.dpi+l.axisCore.getDividerX())}var m=new i(0,0),S=r.LeftTop;switch(this.constantLines.position){case t.StiConstantLines_StiTextPosition.LeftTop:S=r.LeftBottom,m=new i(c,0);break;case t.StiConstantLines_StiTextPosition.LeftBottom:S=r.LeftTop,m=new i(c,0);break;case t.StiConstantLines_StiTextPosition.CenterTop:S=r.CenterBottom,m=new i(c,s.height/2);break;case t.StiConstantLines_StiTextPosition.CenterBottom:S=r.CenterTop,m=new i(c,s.height/2);break;case t.StiConstantLines_StiTextPosition.RightTop:S=r.RightBottom,m=new i(c,s.height);break;case t.StiConstantLines_StiTextPosition.RightBottom:S=r.RightTop,m=new i(c,s.height);break}var g=new t.StiConstantLinesVerticalGeom(this.constantLines,new n(c,0,c,s.height),m,S);a.createChildGeoms(),a.childGeoms.add(g)},a.prototype.renderYConstantLines=function(o,a,s){var l=a.area;if(null==l)return;var u;try{u=this.constantLines.axisValue.toNumber()}catch(t){e.System.StiError.showError(t,!1),u=0}l.reverseVert&&(u=-u);var c;c=this.constantLines.orientation==t.StiConstantLines_StiOrientation.Horizontal?l.axisCore.getDividerY()-u*l.yAxis.info.dpi:l.axisCore.getDividerRightY()-u*l.yRightAxis.info.dpi;var h=new i(0,0),p=r.LeftTop;switch(this.constantLines.position){case t.StiConstantLines_StiTextPosition.LeftTop:p=r.LeftBottom,h=new i(-s.x,c);break;case t.StiConstantLines_StiTextPosition.LeftBottom:p=r.LeftTop,h=new i(-s.x,c);break;case t.StiConstantLines_StiTextPosition.CenterTop:p=r.CenterBottom,h=new i(s.width/2,c);break;case t.StiConstantLines_StiTextPosition.CenterBottom:p=r.CenterTop,h=new i(s.width/2,c);break;case t.StiConstantLines_StiTextPosition.RightTop:p=r.RightBottom,h=new i(s.width,c);break;case t.StiConstantLines_StiTextPosition.RightBottom:p=r.RightTop,h=new i(s.width,c);break}var f=new t.StiConstantLinesYGeom(this.constantLines,new n(0,c,s.width,c),h,p);a.createChildGeoms(),a.childGeoms.add(f)},a.prototype.render=function(e,r,i){if(!this.constantLines.visible)return;this.constantLines.orientation==t.StiConstantLines_StiOrientation.Vertical&&this.renderXConstantLines(e,r,i),this.constantLines.orientation!=t.StiConstantLines_StiOrientation.Horizontal&&this.constantLines.orientation!=t.StiConstantLines_StiOrientation.HorizontalRight||this.renderYConstantLines(e,r,i)},Object.defineProperty(a.prototype,"constantLines",{get:function(){return this._constantLines},set:function(e){this._constantLines=e},enumerable:!0,configurable:!0}),a}();t.StiConstantLinesCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(e){this._gridLines=e}return e.prototype.implements=function(){return e.implementsStiGridLinesCoreXF||(e.implementsStiGridLinesCoreXF=[t.IStiApplyStyle,r,t.IStiGridLinesCoreXF]),e.implementsStiGridLinesCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.gridLines.allowApplyStyle&&(this.gridLines.sti_is(t.IStiGridLinesVert)?(this.gridLines.color=e.core.gridLinesVertColor,this.gridLines.minorColor=e.core.gridLinesVertColor):(this.gridLines.color=e.core.gridLinesHorColor,this.gridLines.minorColor=e.core.gridLinesHorColor))},Object.defineProperty(e.prototype,"gridLines",{get:function(){return this._gridLines},set:function(e){this._gridLines=e},enumerable:!0,configurable:!0}),e}();t.StiGridLinesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(e){this._gridLines=e}return e.prototype.implements=function(){return e.implementsStiRadarGridLinesCoreXF||(e.implementsStiRadarGridLinesCoreXF=[t.IStiApplyStyle,r,t.IStiRadarGridLinesCoreXF]),e.implementsStiRadarGridLinesCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.gridLines.allowApplyStyle&&(this.gridLines.sti_is(t.IStiRadarGridLinesVert)?this.gridLines.color=e.core.gridLinesVertColor:this.gridLines.color=e.core.gridLinesHorColor)},Object.defineProperty(e.prototype,"gridLines",{get:function(){return this._gridLines},set:function(e){this._gridLines=e},enumerable:!0,configurable:!0}),e}();t.StiRadarGridLinesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(e){this._interlacing=e}return e.prototype.implements=function(){return e.implementsStiInterlacingCoreXF||(e.implementsStiInterlacingCoreXF=[t.IStiApplyStyle,r,t.IStiInterlacingCoreXF]),e.implementsStiInterlacingCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.interlacing.allowApplyStyle&&(this.interlacing.sti_is(t.IStiInterlacingVert)?this.interlacing.interlacedBrush=e.core.interlacingVertBrush:this.interlacing.interlacedBrush=e.core.interlacingHorBrush)},Object.defineProperty(e.prototype,"interlacing",{get:function(){return this._interlacing},set:function(e){this._interlacing=e},enumerable:!0,configurable:!0}),e}();t.StiInterlacingCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiFontGeom,i=e.System.Drawing.Point,n=e.System.Drawing.Size,o=e.System.Drawing.Rectangle,a=e.System.ICloneable,s=function(){function s(e){this._legend=e}return s.prototype.implements=function(){return s.implementsStiLegendCoreXF||(s.implementsStiLegendCoreXF=[a,t.IStiApplyStyle,t.IStiLegendCoreXF]),s.implementsStiLegendCoreXF},s.prototype.applyStyle=function(e){this.legend.allowApplyStyle&&(this.legend.brush=e.core.legendBrush.clone(),this.legend.labelsColor=e.core.legendLabelsColor,this.legend.titleColor=e.core.legendTitleColor,this.legend.borderColor=e.core.legendBorderColor,this.legend.showShadow=e.core.legendShowShadow,this.legend.font=e.core.legendFont)},s.prototype.clone=function(){return this.memberwiseClone()},s.prototype.render=function(e,r){var n,a={ref:n},s=this.getLegendItems(a);if(n=a.ref,!this.legend.visible||0==s.count)return null;var l=this.getLegendSize(e),u=new o(r.x,r.y,l.width,l.height),c=u.clone();c.location=new i(0,0);var h=null;if(!String.isNullOrEmpty(this.legend.title)){var p=this.getTitleSize(e),f=u.clone();f.location=new i(0,0),f.height=p.height,h=new t.StiLegendTitleGeom(this.legend,f),c.y+=f.height,c.height-=f.height}var m=new t.StiLegendGeom(this.legend,u,s);null!=h&&(m.createChildGeoms(),m.childGeoms.add(h),m.legendTitleGeom=h);var S=this.legend.horSpacing*e.options.zoom,g=this.legend.vertSpacing*e.options.zoom;if(u.width>0&&u.height>0){var d=0,y=0,b=this.getItemSize1(e,s,0);this.legend.direction==t.StiLegendDirection.LeftToRight||this.legend.direction==t.StiLegendDirection.TopToBottom?(d=S+c.x,y=g+c.y):this.legend.direction==t.StiLegendDirection.RightToLeft?(d=c.right-S-b.width,y=g+c.y):this.legend.direction==t.StiLegendDirection.BottomToTop&&(d=S+c.x,y=c.bottom-g-b.height);for(var v=d,C=y,w=0,x=0,_=0,A=s;_<A.length;_++){var L=A[_];b=this.getItemSize2(e,s,L);var O=new o(v,C,b.width,b.height),P=new t.StiLegendItemGeom(this.legend,L,O,L.colorIndex,n);m.createChildGeoms(),m.childGeoms.add(P),w++,this.legend.direction==t.StiLegendDirection.TopToBottom?(C+=g+O.height,w==this.legend.columns&&(C=y,v+=b.width+S,w=0)):this.legend.direction==t.StiLegendDirection.LeftToRight?(v+=S+O.width,w==this.legend.columns&&(v=d,C+=b.height+g,w=0)):this.legend.direction==t.StiLegendDirection.RightToLeft?(b=this.getItemSize1(e,s,x+1),v-=S+b.width,w==this.legend.columns&&(v=d,C+=b.height+g,w=0)):this.legend.direction==t.StiLegendDirection.BottomToTop&&(C-=g+O.height,w==this.legend.columns&&(C=y,v+=b.width+S,w=0)),x++}}return m},s.prototype.getArgumentText=function(t,r){if(t.arguments.length>r&&null!=t.arguments[r])return t.arguments[r].toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return String.empty},s.prototype.getLegendItemColumn=function(e,r){for(var i=0,n=0,o=0,a=e;o<a.length;o++){if(a[o]==r)break;i++,i>=this.legend.columns&&(i=0,n++)}if(this.legend.direction==t.StiLegendDirection.TopToBottom||this.legend.direction==t.StiLegendDirection.BottomToTop)return n;return i},s.prototype.getTitleSize=function(e){if(String.isNullOrEmpty(this.legend.title))return new n(0,0);var t=r.changeFontSize(this.legend.titleFont,this.legend.titleFont.size*e.options.zoom);e.getDefaultStringFormat().formatFlags=0;var i=e.measureString(this.legend.title,t);return i.width++,i},s.prototype.getItemSize1=function(e,t,r){if(r>=0&&r<t.count){var i=t[r];return this.getItemSize2(e,t,i)}return new n(0,0)},s.prototype.getItemSize2=function(e,t,i){for(var o=0,a=0,s=this.getLegendItemColumn(t,i),l=r.changeFontSize(this.legend.font,this.legend.font.size*e.options.zoom),u=0,c=t;u<c.length;u++){var h=c[u];if(this.getLegendItemColumn(t,h)==s){var p=e.measureString(h.text,l);o=Math.max(p.width,o),a=Math.max(p.height,a)}}return this.legend.markerVisible&&(o=Math.max(this.legend.markerSize.width*e.options.zoom,o)+this.legend.markerSize.width*e.options.zoom,a=Math.max(this.legend.markerSize.height*e.options.zoom,a)),new n(o,a)},s.prototype.getItemsSize=function(e,r){var i=this.legend.horSpacing*e.options.zoom,o=0,a=0,s=this.legend.columns;this.legend.direction!=t.StiLegendDirection.TopToBottom&&this.legend.direction!=t.StiLegendDirection.BottomToTop||(s=Math.trunc((r.count-1)/this.legend.columns)+1);for(var l=0;l<s;l++)for(var u=0,c=r;u<c.length;u++){var h=c[u];if(this.getLegendItemColumn(r,h)==l){var p=this.getItemSize2(e,r,h);o+=p.width+i,a=Math.max(p.height,a);break}}return new n(o,a)},s.prototype.getSeriesSize=function(e){var r=this.legend.horSpacing*e.options.zoom,i=this.legend.vertSpacing*e.options.zoom,o=this.legend.chart.area.core.getSeries(),a={ref:0},s=this.getLegendItems(a),l=a.ref,u=this.getItemsSize(e,s),c=0,h=0;switch(this.legend.direction){case t.StiLegendDirection.TopToBottom:case t.StiLegendDirection.BottomToTop:c=u.width+r;var p=this.legend.columns;p>l&&(p=l),h=(u.height+i)*p+i;break;case t.StiLegendDirection.LeftToRight:case t.StiLegendDirection.RightToLeft:var f=Math.ceil(l/this.legend.columns);f*this.legend.columns<l&&f++,c=u.width+r,h=(u.height+i)*f+i;break}return new n(c,h)},s.prototype.getLegendSize=function(e){var t=this.getTitleSize(e),r=this.getSeriesSize(e),i=new n(Math.max(t.width,r.width),t.height+r.height),o=0,a=0;return null!=this.legend.chart?(o=this.legend.chart.convertToHInches(this.legend.size.width*e.options.zoom),a=this.legend.chart.convertToHInches(this.legend.size.height*e.options.zoom)):(o=this.legend.size.width*e.options.zoom,a=this.legend.size.height*e.options.zoom),0!=o&&(i.width=o),0!=a&&(i.height=a),i.width=Math.round(i.width),i.height=Math.round(i.height),i},s.prototype.getLegendItems=function(r){var i=0,n=this.legend.chart.area.core.getSeries(),o=this.legend.chart.area,a=[];if(this.legend.chart.area.colorEach){for(var s=0,l=0,u=n;l<u.length;l++){var c=u[l];s=Math.max(c.values.length,s)}for(var h=0,p=0,f=n;p<f.length;p++){var c=f[p];if(this.legend.chart.area.core.isAcceptableSeries(c.getStiType()))for(var m=0;m<s;m++){if(c.showInLegend&&null!=c.values){var S=null!=o&&o.reverseHor;if(m>=c.values.length)continue;var g=S?c.values[c.values.length-m-1]:c.values[m];c.sti_is(t.IStiPieSeries)&&0==g||a.add(new t.StiLegendItemCoreXF(this.legend.chart.seriesLabels.core.getLabelText(c,g,this.getArgumentText(c,m),c.core.getTag(m),c.coreTitle,!0),c,m,h))}i++,h++}}}else if(this.legend.chart.area.sti_is(t.IStiDoughnutArea))for(var d=0,y=n;d<y.length;d++){var c=y[d];if(this.legend.chart.area.core.isAcceptableSeries(c.getStiType())&&c.values.length==this.legend.chart.area.core.valuesCount){for(var b=0,v=0,C=c.arguments;v<C.length;v++){var w=C[v];null!=w&&a.add(new t.StiLegendItemCoreXF(w.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),c,b,b)),b++,i++}break}}else for(var x=0,_=n;x<_.length;x++){var c=_[x];this.legend.chart.area.core.isAcceptableSeries(c.getStiType())&&(!c.showInLegend||this.legend.hideSeriesWithEmptyTitle&&String.isNullOrEmpty(c.coreTitle)&&!this.legend.chart.isDesigning||(a.add(new t.StiLegendItemCoreXF(c.coreTitle,c,-1,0)),i++))}return r.ref=i,a},Object.defineProperty(s.prototype,"legend",{get:function(){return this._legend},set:function(e){this._legend=e},enumerable:!0,configurable:!0}),s}();t.StiLegendCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t,r,i){this._index=-1,this._colorIndex=0,this._text=e,this._series=t,this._index=r,this._colorIndex=i}return Object.defineProperty(e.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorIndex",{get:function(){return this._colorIndex},enumerable:!0,configurable:!0}),e}();e.StiLegendItemCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiPenGeom,n=e.Base.Context.StiLinesSegmentGeom,o=e.Base.Context.StiCloseFigureSegmentGeom,a=e.Base.StiAnimationType,s=e.System.TimeSpan,l=e.Base.Drawing.StiSolidBrush,u=e.System.Drawing.Color,c=e.System.Drawing.Rectangle,h=e.System.Drawing.Point,p=e.System.ICloneable,f=function(){function e(e){this._marker=e}return e.prototype.implements=function(){return e.implementsStiMarkerCoreXF||(e.implementsStiMarkerCoreXF=[p,t.IStiMarkerCoreXF]),e.implementsStiMarkerCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.drawMarkers=function(e,t,r){if(0==t.length)return;if(null!=this.marker&&this.marker.visible){e.pushSmoothingModeToAntiAlias();for(var i=e.options.zoom,n=0,o=t;n<o.length;n++){var a=o[n];this.marker.core.draw(e,this.marker,a,i,r,!1,!1,null)}e.popSmoothingMode()}},e.getMarkerRect=function(e,t,r){var i=t*r/2;return new c(e.x-i,e.y-i,2*i,2*i)},e.prototype.draw=function(t,r,n,o,a,s,c,h){var p=new i(r.borderColor),f=new l(u.fromArgb(55,u.black)),m=e.getMarkerRect(n,r.size,o).clone();a&&(m.x+=2*o,m.y+=2*o,this.drawPoint(t,m.x+m.width/2,m.y+m.height/2,o,f,null,r.type,r.size,r.angle,!1,c,null),m.x-=2*o,m.y-=2*o),this.drawPoint(t,m.x+m.width/2,m.y+m.height/2,o,r.brush,p,r.type,r.size,r.angle,s,c,h)},e.prototype.drawLine=function(e,t,r,i,n,o,a,s,l,u,c,p){this.drawLines(e,[new h(t,r),new h(i,n)],o,a,s,l,u,c,p)},e.prototype.drawLines=function(e,t,r,i,n,o,a,s,l){if(e.pushSmoothingModeToAntiAlias(),t.length<2)return;for(var u=0,c=0;c<t.length-1;c++){var h=t[c],p=t[c+1];if(null==h||null==p)continue;var f=h.x,m=h.y,S=p.x,g=p.y,d=S-f,y=g-m,b=Math.sqrt(d*d+y*y),v=a;while(u<b){var C=f+d*u/b,w=m+y*u/b;this.drawPoint(e,C,w,r,i,n,o,s,l,!1,!1,null),u+=v*r}u-=b}e.popSmoothingMode()},e.prototype.drawPoint=function(e,r,i,n,o,l,u,c,h,p,f,m){var S=c*n/2,g=r-S,d=r+S,y=i-S,b=i+S;switch(u){case t.StiMarkerType.Star5:this.drawPolygon(e,o,l,r,i,S,10,h,!0,p);break;case t.StiMarkerType.Star6:this.drawPolygon(e,o,l,r,i,S,12,h,!0,p);break;case t.StiMarkerType.Star7:this.drawPolygon(e,o,l,r,i,S,14,h,!0,p);break;case t.StiMarkerType.Star8:this.drawPolygon(e,o,l,r,i,S,16,h,!0,p);break;case t.StiMarkerType.Hexagon:this.drawPolygon(e,o,l,r,i,S,6,30+h,!1,p);break;case t.StiMarkerType.Rectangle:this.drawPolygon(e,o,l,r,i,S,4,45+h,!1,p);break;case t.StiMarkerType.Circle:f?e.fillDrawAnimationEllipse(o,l,g,y,d-g,b-y,t.StiChartHelper.globalDurationElement,s.zero,a.Scale,m):(null!=o&&e.fillEllipse(o,g,y,d-g,b-y),p&&e.fillEllipse(t.StiMouseOverHelper.getMouseOverColor(),g,y,d-g,b-y),null!=l&&e.drawEllipse(l,g,y,d-g,b-y));break;case t.StiMarkerType.Triangle:this.drawPolygon(e,o,l,r,i,S,3,h,!1,p);break}},e.prototype.drawPolygon=function(e,i,a,s,l,u,c,p,f,m){p=-p;var S=[],g=-90+p,d=Array.create(h,c,!0);if(f)for(var y=0;y<c;y+=2)d[y].x=s+u*Math.cos(g*Math.PI/180),d[y].y=l+u*Math.sin(g*Math.PI/180),g+=360/c,d[y+1].x=s+u/2*Math.cos(g*Math.PI/180),d[y+1].y=l+u/2*Math.sin(g*Math.PI/180),g+=360/c;else for(var y=0;y<c;y++)d[y].x=s+u*Math.cos(g*Math.PI/180),d[y].y=l+u*Math.sin(g*Math.PI/180),g+=360/c;S.add(new n(d)),S.add(new o),null!=i&&e.fillPath(i,S,r.getBoundsState),m&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),S,r.getBoundsState),null!=a&&e.drawPath(a,S,null)},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker=e},enumerable:!0,configurable:!0}),e}();t.StiMarkerCoreXF=f}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(e){this._axis=e}return e.prototype.implements=function(){return e.implementsStiRadarAxisCoreXF||(e.implementsStiRadarAxisCoreXF=[r,t.IStiApplyStyle,t.IStiRadarAxisCoreXF]),e.implementsStiRadarAxisCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){},Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis},set:function(e){this._axis=e},enumerable:!0,configurable:!0}),e}();t.StiRadarAxisCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiEmptyBrush,i=e.System.ICloneable,n=function(){function e(e){this._labels=e}return e.prototype.implements=function(){return e.implementsStiRadarAxisLabelsCoreXF||(e.implementsStiRadarAxisLabelsCoreXF=[t.IStiApplyStyle,i,t.IStiRadarAxisLabelsCoreXF]),e.implementsStiRadarAxisLabelsCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.labels.allowApplyStyle&&(this.labels.color=e.core.seriesLabelsColor,this.labels.brush=new r)},Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!0,configurable:!0}),e}();t.StiRadarAxisLabelsCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringTrimming,i=e.System.Drawing.StringFormatFlags,n=e.Base.Drawing.StiRotationMode,o=e.Base.Context.StiFontGeom,a=e.Base.Drawing.StiSolidBrush,s=function(s){function l(e){return s.call(this,e)||this}return __extends(l,s),l.prototype.implements=function(){return l.implementsStiXRadarAxisCoreXF||(l.implementsStiXRadarAxisCoreXF=[t.IStiXRadarAxisCoreXF]),l.implementsStiXRadarAxisCoreXF},l.prototype.applyStyle=function(e){this.axis.allowApplyStyle&&this.axis.labels.core.applyStyle(e)},l.prototype.renderLabel=function(e,r,i,n,o,s,l){var u=this.getLabelText(n),c=this.getLabelRect(e,i,u,0).clone();c.x=-c.width/2,c.y=-c.height/2;var h=this.getLabelRect(e,i,u,o).clone(),p=this.axis.labels.borderColor,f=new a(this.axis.labels.color);return new t.StiXRadarAxisLabelGeom(this.axis,u,f,p,o,c,h,i)},l.prototype.getLabelText=function(r){try{var i=this.axis;if(null!=i.labels.format&&0!=i.labels.format.trim().length)try{if(r.sti_is(String))var n=void 0;if(!t.StiChartOptions.oldChartPercentMode&&i.labels.format.startsWith("P")){return i.labels.format.length,String.stiFormat("{0}{1:N"+(0).toString()+"}{2}{3}",i.labels.textBefore,r,"%",i.labels.textAfter)}return String.stiFormat("{0}{1:"+i.labels.format+"}{2}",i.labels.textBefore,r,i.labels.textAfter)}catch(t){e.System.StiError.showError(t,!1)}return String.stiFormat("{0}{1}{2}",i.labels.textBefore,r,i.labels.textAfter)}catch(t){e.System.StiError.showError(t,!1)}return r.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},l.prototype.getLabelRect=function(e,t,a,s){var l=o.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*e.options.zoom),u=e.getGenericStringFormat();return u.trimming=r.None,this.axis.labels.wordWrap||(u.formatFlags=i.MeasureTrailingSpaces|i.NoWrap),e.measureRotatedString3(a,l,t,u,n.CenterBottom,s,Math.trunc(this.axis.labels.width*e.options.zoom))},Object.defineProperty(l.prototype,"xAxis",{get:function(){return this.axis},enumerable:!0,configurable:!0}),l}(t.StiRadarAxisCoreXF);t.StiXRadarAxisCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringTrimming,i=e.System.Drawing.StringFormatFlags,n=e.System.Drawing.StringAlignment,o=e.Base.Drawing.StiRotationMode,a=e.Base.Context.StiFontGeom,s=e.System.Drawing.Point,l=e.Base.Drawing.StiHorAlignment,u=e.System.Drawing.Rectangle,c=function(c){function h(e){return c.call(this,e)||this}return __extends(h,c),h.prototype.implements=function(){return h.implementsStiYRadarAxisCoreXF||(h.implementsStiYRadarAxisCoreXF=[t.IStiYRadarAxisCoreXF]),h.implementsStiYRadarAxisCoreXF},h.prototype.applyStyle=function(e){this.axis.allowApplyStyle&&(this.yAxis.lineColor=e.core.axisLineColor,this.yAxis.labels.core.applyStyle(e))},h.prototype.render=function(e,r){if(!this.axis.visible)return null;var i=this.getAxisRect(e,r,!1,!1,!0).clone(),n=new t.StiRadarAxisGeom(this.axis,i);return this.renderLabels(e,i,n),n},h.prototype.measureStripLines=function(e,r){var i=[];if(null!=this.yAxis.info.labelsCollection&&this.yAxis.labels.placement!=t.StiLabelsPlacement.None)for(var n=0,u=0,c=this.yAxis.info.labelsCollection;u<c.length;u++){var h=c[u],p=h.stripLine.value,f=this.getLabelText(h.stripLine,null),m=h.position,S=e.getGenericStringFormat(),g=a.changeFontSize(this.yAxis.labels.font,this.yAxis.labels.font.size*e.options.zoom),d=this.getTextAlignment(),y=void 0,b=-this.yAxis.labels.angle,v=s.empty;d==l.Left?(y=o.LeftCenter,v=new s(0,m),b=0):(y=o.RightCenter,v=new s(r.width-this.getTicksMaxLength(e)-this.getLabelsSpaceAxis(e),m)),this.yAxis.labels.placement==t.StiLabelsPlacement.TwoLines&&0!=(1&n)&&(v.x-=this.getLabelsTwoLinesDestination(e));var C=e.measureRotatedString3(f,g,v,S,y,b,Math.trunc(this.yAxis.labels.width*e.options.zoom)),w=new t.StiAxisLabelInfoXF;w.angle=b,w.clientRectangle=C.clone(),w.rotationMode=y,w.textPoint=v,w.text=f,w.stripLine=h.stripLine,i.add(w),n++}return i},h.prototype.renderLabels=function(e,r,i){if(this.yAxis.labels.placement!=t.StiLabelsPlacement.None){var n=[],o=this.measureStripLines(e,r);i.createChildGeoms();for(var a=0,s=o;a<s.length;a++){var l=s[a];if(!l.clientRectangle.isEmpty){var u=new t.StiYRadarAxisLabelGeom(this.yAxis,l.clientRectangle,l.textPoint,l.text,l.stripLine,l.angle,l.rotationMode);i.childGeoms.add(u)}}}},h.prototype.calculateStripPositions=function(e,t){if(t-=e,e=0,null==this.yAxis.info.stripLines||this.yAxis.info.stripLines.count<2)this.yAxis.info.stripPositions=[];else{this.yAxis.info.stripPositions=Array.create(Number,this.yAxis.info.stripLines.count),this.yAxis.info.stripPositions[0]=e,this.yAxis.info.stripPositions[this.yAxis.info.stripPositions.length-1]=t;for(var r=1;r<this.yAxis.info.stripPositions.length-1;r++)this.yAxis.info.stripPositions[r]=e+r*this.yAxis.info.step}},h.prototype.getAxisRect=function(e,t,r,i,n){return new u(t.width/2-this.getTicksMaxLength(e),0,this.getTicksMaxLength(e),t.height/2)},h.prototype.getTicksMaxLength=function(e){return this.yAxis.yCore.ticksMaxLength*e.options.zoom},h.prototype.getLabelsSpaceAxis=function(e){return 5*e.options.zoom},h.prototype.getLabelsTwoLinesDestination=function(e){return 2*this.yAxis.labels.font.sizeInPoints*e.options.zoom},h.prototype.getTextAlignment=function(){if(this.yAxis.labels.placement==t.StiLabelsPlacement.TwoLines)return l.Right;return this.yAxis.labels.textAlignment},h.prototype.getLabelText=function(r,i){var n=r.valueObject;try{if(null!=this.yAxis.labels.format&&0!=this.yAxis.labels.format.trim().length)try{if(n.sti_is(String),!t.StiChartOptions.oldChartPercentMode&&this.yAxis.labels.format.startsWith("P")){return this.yAxis.labels.format.length,String.stiFormat("{0}{1:N"+(0).toString()+"}{2}{3}",this.yAxis.labels.textBefore,n,"%",this.yAxis.labels.textAfter)}return String.stiFormat("{0}{1:"+this.yAxis.labels.format+"}{2}",this.yAxis.labels.textBefore,n,this.yAxis.labels.textAfter)}catch(t){e.System.StiError.showError(t,!1)}return String.stiFormat("{0}{1}{2}",this.yAxis.labels.textBefore,n,this.yAxis.labels.textAfter)}catch(t){e.System.StiError.showError(t,!1)}return n.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},h.prototype.getStringFormatGeom=function(e){var t=e.getGenericStringFormat();if(t.trimming=r.None,t.formatFlags=i.MeasureTrailingSpaces|i.NoWrap,this.yAxis.labels.width>0){var o=this.getTextAlignment();o==l.Left?t.alignment=n.Near:o==l.Right?t.alignment=n.Far:o==l.Center&&(t.alignment=n.Center)}return t},h.prototype.getFontGeom=function(e){return a.changeFontSize(this.yAxis.labels.font,this.yAxis.labels.font.size*e.options.zoom)},Object.defineProperty(h.prototype,"yAxis",{get:function(){return this.axis},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"info",{get:function(){return this.yAxis.info},set:function(e){this.yAxis.info=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"ticksMaxLength",{get:function(){return this.axis.visible?Math.max(this.yAxis.ticks.visible?this.yAxis.ticks.length:0,this.yAxis.ticks.minorVisible?this.yAxis.ticks.minorLength:0):0},enumerable:!0,configurable:!0}),h}(t.StiRadarAxisCoreXF);t.StiYRadarAxisCoreXF=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Globalization.CultureInfo,i=e.System.Drawing.StringTrimming,n=e.System.Drawing.StringFormatFlags,o=e.Base.Drawing.StiColorUtils,a=e.System.DateTime,s=e.Base.Drawing.StiGradientBrush,l=e.Base.Drawing.StiGlareBrush,u=e.System.ICloneable,c=function(){function c(e){this._seriesLabels=e}return c.prototype.implements=function(){return c.implementsStiSeriesLabelsCoreXF||(c.implementsStiSeriesLabelsCoreXF=[u,t.IStiApplyStyle,t.IStiSeriesLabelsCoreXF]),c.implementsStiSeriesLabelsCoreXF},c.prototype.clone=function(){return this.memberwiseClone()},c.prototype.applyStyle=function(e){this.seriesLabels.allowApplyStyle&&(this.seriesLabels.labelColor=e.core.seriesLabelsColor,this.seriesLabels.borderColor=e.core.seriesLabelsBorderColor,this.seriesLabels.brush=e.core.seriesLabelsBrush,this.seriesLabels.font=e.core.seriesLabelsFont)},Object.defineProperty(c.prototype,"position",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"seriesLabelsType",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"seriesLabels",{get:function(){return this._seriesLabels},set:function(e){this._seriesLabels=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"localizedName",{get:function(){return null},enumerable:!0,configurable:!0}),c.prototype.processSeriesColors=function(e,r,i){var n=r;if(null==this.seriesLabels)return n;for(var o=0,a=this.seriesLabels.chart.seriesLabelsConditions.list;o<a.length;o++){var u=a[o];if(null==i.values||i.values.length<=e)continue;var c=i.values[e],h=null;i.sti_is(t.IStiRangeSeries)&&e<i.valuesEnd.length&&(h=i.valuesEnd[e]);var p=null;null!=i.arguments&&e<i.arguments.length&&(p=i.arguments[e]);var f=null,m=null,S=null,g=null;i.sti_is(t.IStiFinancialSeries)&&(e<i.valuesOpen.length&&(f=i.valuesOpen[e]),e<i.valuesClose.length&&(m=i.valuesClose[e]),e<i.valuesLow.length&&(S=i.valuesLow[e]),e<i.valuesHigh.length&&(g=i.valuesHigh[e]));var d=t.StiChartHelper.getFilterData(null,u,null);if(t.StiChartHelper.getFilterResult(u,p,c,h,f,m,S,g,d))return n=this.seriesLabels.chart.style.core.getColumnBrush(u.color),this.seriesLabels.chart.area.sti_is(t.IStiClusteredBarArea)&&(n.sti_is(s)&&(n.angle+=90),n.sti_is(l)&&(n.angle+=90)),n}return n},c.prototype.getSeriesLabelColor=function(e,t,r){return o.light(e.core.getSeriesBorderColor(t,r),100)},c.prototype.getBorderColor=function(e,t,r){if(this.seriesLabels.useSeriesColor)return this.getSeriesLabelColor(e,t,r);return this.seriesLabels.borderColor},c.prototype.getLabelColor=function(e,t,r){if(this.seriesLabels.useSeriesColor)return this.getSeriesLabelColor(e,t,r);return this.seriesLabels.labelColor},c.prototype.recalcValue=function(e,t){return e},c.prototype.getLabelText=function(e,t,r,i,n,o){return void 0===o&&(o=!1),this.getLabelText2(e,t,r,i,n,0,o)},c.prototype.getLabelText2=function(r,i,n,o,a,s,l){var u=String.empty,c=this.seriesLabels.valueType;switch(l&&(c=this.seriesLabels.legendValueType),c){case t.StiSeriesLabelsValueType.Argument:u=this.getArgument(r,n);break;case t.StiSeriesLabelsValueType.Value:u=this.getFormattedValue(r,i);break;case t.StiSeriesLabelsValueType.SeriesTitle:u=a;break;case t.StiSeriesLabelsValueType.Tag:u=o;break;case t.StiSeriesLabelsValueType.Weight:u=s.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);break;case t.StiSeriesLabelsValueType.ValueArgument:u=String.stiFormat("{0} {1} {2}",this.getFormattedValue(r,i),this.seriesLabels.valueTypeSeparator,this.getArgument(r,n));break;case t.StiSeriesLabelsValueType.ArgumentValue:u=String.stiFormat("{0} {1} {2}",this.getArgument(r,n),this.seriesLabels.valueTypeSeparator,this.getFormattedValue(r,i));break;case t.StiSeriesLabelsValueType.SeriesTitleArgument:u=String.stiFormat("{0} {1} {2}",a,this.seriesLabels.valueTypeSeparator,this.getArgument(r,n));break;case t.StiSeriesLabelsValueType.SeriesTitleValue:u=String.stiFormat("{0} {1} {2}",a,this.seriesLabels.valueTypeSeparator,this.getFormattedValue(r,i));break}if(l)return u;return String.stiFormat("{0}{1}{2}",this.seriesLabels.textBefore,u,this.seriesLabels.textAfter)},c.prototype.getArgument=function(e,t){var r=t;if(e.core.isDateTimeArguments){var i=a.fromString(t);null!=i&&(r=this.getFormatted(e,i.toOADate(),!0))}return r},c.prototype.getFormatted=function(i,n,o){try{var s=r.currentCulture,l=this.seriesLabels.chart.report.culture;String.isNullOrEmpty(this.seriesLabels.chart.report.culture)||(r.currentCulture=new r(l));var u=n;o&&(u=a.fromOADate(n));var c=null;if(null!=i&&(c=i.format),null!=c&&0!=c.trim().length||(c=this.seriesLabels.format),null!=c&&0!=c.trim().length){if(c.startsWith("P")&&null!=this.seriesLabels.chart&&!t.StiChartOptions.oldChartPercentMode){var h=0,p=void 0;try{c.length>1&&(h=c.remove(0,1).toNumber()),p=this.recalcValue(n,h)}catch(t){e.System.StiError.showError(t,!1),p=this.recalcValue(n,2)}return String.stiFormat("{0:N"+h.toString()+"}{1}",p,"%")}var f=String.stiFormat("{0:"+c+"}",u);if(!o&&f==c)return u.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return f}String.isNullOrEmpty(l)||(r.currentCulture=s)}catch(t){e.System.StiError.showError(t,!1)}return this.recalcValue(n,2).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)},c.prototype.getFormattedValue=function(e,t){if(null==t)return String.empty;return this.getFormatted(e,t,e.core.isDateTimeValues)},c.prototype.getStringFormatGeom=function(e){var t=e.getGenericStringFormat();return t.trimming=i.None,this.seriesLabels.wordWrap||(t.formatFlags=n.MeasureTrailingSpaces|n.NoWrap),t},c}();t.StiSeriesLabelsCoreXF=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e){var r=t.call(this,e)||this;return r.currentIndex=null,r}return __extends(r,t),r.prototype.renderLabel=function(e,t,r,i,n,o,a,s,l,u,c,h){return null},r.prototype.renderLabel2=function(e,t,r,i,n,o,a,s,l,u,c,h,p){return null},r.prototype.recalcValue=function(t,r){if(this.seriesLabels.showInPercent&&this.seriesLabels.chart.area.sti_is(e.StiFullStackedColumnArea)&&null!=this.currentIndex){for(var i=this.seriesLabels.chart.area.core.getSeries(),n=0,o=0,a=i;o<a.length;o++){var s=a[o];this.currentIndex<s.values.length&&(n+=s.values[this.currentIndex])}if(0!=n)return Math.round(100*t/n,r)}return t},Object.defineProperty(r.prototype,"seriesLabelsType",{get:function(){return e.StiSeriesLabelsType.Axis},enumerable:!0,configurable:!0}),r}(e.StiSeriesLabelsCoreXF);e.StiAxisSeriesLabelsCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.Base.Localization.StiLocalization,o=e.System.Drawing.Point,a=function(e){function a(t){return e.call(this,t)||this}return __extends(a,e),a.prototype.renderLabel=function(e,t,r,i,n,o,a,s,l,u,c,h){return this.currentIndex=n,this.renderLabel2(e,t,r,i,n,o,a,s,l,0,u,c,h)},a.prototype.renderLabel2=function(e,r,n,o,a,s,l,u,c,h,p,f,m){if(null==s&&!this.seriesLabels.showNulls)return null;if(0==s&&!this.seriesLabels.showZeros)return null;null==s&&(s=0),null==l&&(l=0);var S=this.getLabelText2(e,l,u,c,e.coreTitle,h,!1),g=this.getLabelColor(e,p,f),d=this.getBorderColor(e,p,f),y=this.getStringFormatGeom(r),b=i.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*r.options.zoom),v=e.core.getSeriesBorderColor(p,f),C=e.core.getSeriesBrush(p,f),w=this.processSeriesColors(a,this.seriesLabels.brush,e),x=this.getLabelRect(r,n,o,s,S,!0,b,y);return new t.StiCenterAxisLabelsGeom(this.seriesLabels,e,a,s,x,S,g,d,C,w,v,b)},a.prototype.getLabelRect=function(e,i,n,a,s,l,u,c){return this.seriesLabels.chart.area.core.seriesOrientation==t.StiChartSeriesOrientation.Vertical?e.measureRotatedString3(s,u,new o(i.x,(i.y+n.y)/2),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new o((i.x+n.x)/2,i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},Object.defineProperty(a.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.CenterAxis},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"localizedName",{get:function(){return n.get("Chart","LabelsCenter")},enumerable:!0,configurable:!0}),a}(t.StiAxisSeriesLabelsCoreXF);t.StiCenterAxisLabelsCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return i.get("Chart","LabelsInsideBase")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.InsideBaseAxis},enumerable:!0,configurable:!0}),o.prototype.getLabelRect=function(e,i,o,a,s,l,u,c){var h=e.measureString(s,u),p=2;return this.seriesLabels.chart.area.core.seriesOrientation==t.StiChartSeriesOrientation.Vertical?a>0?e.measureRotatedString3(s,u,new n(i.x,o.y-(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(i.x,o.y+(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):a>0?e.measureRotatedString3(s,u,new n(o.x-(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(o.x+(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},o}(t.StiCenterAxisLabelsCoreXF);t.StiInsideBaseAxisLabelsCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),Object.defineProperty(o.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.InsideEndAxis},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"localizedName",{get:function(){return i.get("Chart","LabelsInsideEnd")},enumerable:!0,configurable:!0}),o.prototype.getLabelRect=function(e,i,o,a,s,l,u,c){var h=e.measureString(s,u),p=2;return this.seriesLabels.chart.area.core.seriesOrientation==t.StiChartSeriesOrientation.Vertical?a>0?e.measureRotatedString3(s,u,new n(i.x,i.y+(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(i.x,i.y-(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):a>0?e.measureRotatedString3(s,u,new n(i.x+(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(i.x-(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},o}(t.StiCenterAxisLabelsCoreXF);t.StiInsideEndAxisLabelsCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return i.get("PropertyMain","Left")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.Left},enumerable:!0,configurable:!0}),o.prototype.getLabelRect=function(e,t,i,o,a,s,l,u){var c=e.measureString(a,l);return this.seriesLabels.width>0?c.width=this.seriesLabels.width*e.options.zoom:c.width+=2*e.options.zoom,this.seriesLabels.chart.area.reverseHor?e.measureRotatedString3(a,l,new n(t.x+c.width,t.y),u,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(a,l,new n(t.x-c.width,t.y),u,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},o}(t.StiCenterAxisLabelsCoreXF);t.StiLeftAxisLabelsCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiFontGeom,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Rectangle,o=e.System.Drawing.Point,a=function(e){function a(t){return e.call(this,t)||this}return __extends(a,e),a.prototype.renderLabel=function(e,i,a,s,l,u,c,h,p,f,m,S){var g=this.seriesLabels;if(null==u&&!g.showNulls)return null;if(0==u&&!g.showZeros)return null;null==u&&(u=0),null==c&&(c=0);var d=this.getLabelText(e,c,h,p,e.coreTitle),y=90;this.seriesLabels.chart.area.sti_is(t.IStiStackedBarArea)?(u<=0&&(y=-y),y+=90):u<0&&(y=-y),y*=Math.PI/180;var b=new o(a.x+g.lineLength*Math.cos(y)*i.options.zoom,a.y-g.lineLength*Math.sin(y)*i.options.zoom),v=r.changeFontSize(g.font,g.font.size*i.options.zoom),C=this.getStringFormatGeom(i),w=i.measureString2(d,v,this.seriesLabels.width*i.options.zoom,C),x=new n(b.x-w.width/2,b.y-w.height/2,w.width+1,w.height+1),_=this.getLabelColor(e,f,m),A=this.getBorderColor(e,f,m),L=e.core.getSeriesBorderColor(f,m),O=e.core.getSeriesBrush(f,m);return O=this.processSeriesColors(l,O,e),new t.StiOutsideAxisLabelsGeom(this.seriesLabels,e,l,u,x,d,_,A,O,L,v,b,a)},Object.defineProperty(a.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.OutsideAxis},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("Chart","LabelsOutside")},enumerable:!0,configurable:!0}),a}(t.StiAxisSeriesLabelsCoreXF);t.StiOutsideAxisLabelsCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return i.get("Chart","LabelsOutsideBase")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.OutsideBaseAxis},enumerable:!0,configurable:!0}),o.prototype.getLabelRect=function(e,i,o,a,s,l,u,c){var h=e.measureString(s,u),p=2;return this.seriesLabels.chart.area.core.seriesOrientation==t.StiChartSeriesOrientation.Vertical?a>0?e.measureRotatedString3(s,u,new n(i.x,o.y+(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(i.x,o.y-(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):a>0?e.measureRotatedString3(s,u,new n(o.x+(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(o.x-(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},o}(t.StiCenterAxisLabelsCoreXF);t.StiOutsideBaseAxisLabelsCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return i.get("Chart","LabelsOutsideEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.OutsideEndAxis},enumerable:!0,configurable:!0}),o.prototype.getLabelRect=function(e,i,o,a,s,l,u,c){var h=e.measureString(s,u),p=2;return this.seriesLabels.chart.area.core.seriesOrientation==t.StiChartSeriesOrientation.Vertical?a>=0?e.measureRotatedString3(s,u,new n(i.x,i.y-(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(i.x,i.y+(Math.abs(h.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):a>0?e.measureRotatedString3(s,u,new n(i.x-(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,u,new n(i.x+(Math.abs(h.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((h.width/2+p)*Math.cos(this.seriesLabels.angle*Math.PI/180))),i.y),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},o}(t.StiCenterAxisLabelsCoreXF);t.StiOutsideEndAxisLabelsCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return i.get("PropertyMain","Right")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.Right},enumerable:!0,configurable:!0}),o.prototype.getLabelRect=function(e,t,i,o,a,s,l,u){var c=e.measureString(a,l);return this.seriesLabels.width>0?c.width=this.seriesLabels.width*e.options.zoom:c.width+=2*e.options.zoom,this.seriesLabels.chart.area.reverseHor?e.measureRotatedString3(a,l,new n(t.x-c.width,t.y),u,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(a,l,new n(t.x+c.width,t.y),u,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},o}(t.StiCenterAxisLabelsCoreXF);t.StiRightAxisLabelsCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Rectangle,o=e.System.Drawing.Point,a=function(e){function a(t){return e.call(this,t)||this}return __extends(a,e),Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("PropertyMain","Value")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.Value},enumerable:!0,configurable:!0}),a.prototype.getLabelRect=function(e,t,i,a,s,l,u,c){var h=e.measureRotatedString3(s,u,new o(0,0),c,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom));return new n(t.x-h.width/2,t.y-h.height/2,h.width,h.height)},a}(t.StiCenterAxisLabelsCoreXF);t.StiValueAxisLabelsCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e){return t.call(this,e)||this}return __extends(r,t),r.prototype.renderLabel=function(e,t,r,i,n,o,a,s,l,u,c,h,p,f){return null},Object.defineProperty(r.prototype,"seriesLabelsType",{get:function(){return e.StiSeriesLabelsType.Funnel},enumerable:!0,configurable:!0}),r}(e.StiSeriesLabelsCoreXF);e.StiFunnelSeriesLabelsCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.Point,a=e.Base.Localization.StiLocalization,s=function(e){function s(t){return e.call(this,t)||this}return __extends(s,e),s.prototype.renderLabel=function(e,a,s,l,u,c,h,p,f,m,S,g,d,y){var b=m.clone(),v=this.getLabelText(e,l,c,h,e.coreTitle),C=new n(this.getLabelColor(e,p,f)),w=this.getBorderColor(e,p,f),x=this.getStringFormatGeom(a),_=i.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*a.options.zoom),A=e.core.getSeriesBorderColor(p,f),L=e.core.getSeriesBrush(p,f),O;O=e.sti_is(t.StiFunnelWeightedSlicesSeries)?new o(m.width/2,.05*m.height+S*this.getSumLastValues(e,s)+S*l/2):new o(m.width/2,S*s+S/2+.05*m.height);var P=a.measureRotatedString3(v,_,O,x,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*a.options.zoom));return y.ref=b,new t.StiCenterFunnelLabelsGeom(this.seriesLabels,e,s,l,P,v,L,C,w,A,P)},s.prototype.getSumLastValues=function(e,t){for(var r=0,i=0;i<t;i++){if(i>=e.values.length)break;r+=Math.abs(e.values[i])}return r},Object.defineProperty(s.prototype,"seriesLabelsType",{get:function(){return t.StiSeriesLabelsType.Funnel},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.CenterFunnel},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("Chart","LabelsCenter")},enumerable:!0,configurable:!0}),s}(t.StiFunnelSeriesLabelsCoreXF);t.StiCenterFunnelLabelsCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.Point,a=e.Base.Localization.StiLocalization,s=function(e){function s(t){return e.call(this,t)||this}return __extends(s,e),s.prototype.renderLabel=function(e,a,s,l,u,c,h,p,f,m,S,g,d,y){var b=m.clone(),v=this.getLabelText(e,l,c,h,e.coreTitle),C=new n(this.getLabelColor(e,p,f)),w=this.getBorderColor(e,p,f),x=this.getStringFormatGeom(a),_=i.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*a.options.zoom),A=e.core.getSeriesBorderColor(p,f),L=e.core.getSeriesBrush(p,f),O=a.measureRotatedString3(v,_,new o(0,0),x,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*a.options.zoom));b.width-=O.width,b.x+=O.width;var P=new o(d-(l+u)*g/4,S*s+S/2+.05*m.height),B=new o(.05*m.width+O.width,S*s+S/2+.05*m.height),R=a.measureRotatedString3(v,_,B,x,r.RightCenter,0,Math.trunc(this.seriesLabels.width*a.options.zoom));return y.ref=b,new t.StiOutsideFunnelLabelsGeom(this.seriesLabels,e,s,l,R,v,L,C,w,A,R,P,B)},Object.defineProperty(s.prototype,"seriesLabelsType",{get:function(){return t.StiSeriesLabelsType.Funnel},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.OutsideLeftFunnel},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("PropertyMain","Left")},enumerable:!0,configurable:!0}),s}(t.StiFunnelSeriesLabelsCoreXF);t.StiOutsideLeftFunnelLabelsCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.System.Drawing.Point,o=e.Base.Drawing.StiSolidBrush,a=e.Base.Localization.StiLocalization,s=function(e){function s(t){return e.call(this,t)||this}return __extends(s,e),s.prototype.renderLabel=function(e,a,s,l,u,c,h,p,f,m,S,g,d,y){var b=m.clone(),v=this.getLabelText(e,l,c,h,e.coreTitle),C=new o(this.getLabelColor(e,p,f)),w=this.getBorderColor(e,p,f),x=this.getStringFormatGeom(a),_=i.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*a.options.zoom),A=e.core.getSeriesBorderColor(p,f),L=e.core.getSeriesBrush(p,f),O=a.measureRotatedString3(v,_,new n(0,0),x,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*a.options.zoom));b.width-=O.width+5;var P=new n(d+l+u*g/4,S*s+S/2+.05*m.height),B=new n(.95*m.width-O.width,S*s+S/2+.05*m.height),R=a.measureRotatedString3(v,_,B,x,r.LeftCenter,0,Math.trunc(this.seriesLabels.width*a.options.zoom));return y.ref=b,new t.StiOutsideFunnelLabelsGeom(this.seriesLabels,e,s,l,R,v,L,C,w,A,R,P,B)},Object.defineProperty(s.prototype,"seriesLabelsType",{get:function(){return t.StiSeriesLabelsType.Funnel},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.OutsideRightFunnel},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localizedName",{get:function(){return a.get("PropertyMain","Right")},enumerable:!0,configurable:!0}),s}(t.StiFunnelSeriesLabelsCoreXF);t.StiOutsideRightFunnelLabelsCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e){var r=t.call(this,e)||this;return r.percentPerValue=0,r}return __extends(r,t),r.prototype.renderLabel=function(e,t,r,i,n,o,a,s,l,u,c,h,p,f,m,S,g,d){return null},r.prototype.recalcValue=function(t,r){if(this.seriesLabels.showInPercent){var i=this.seriesLabels.chart.area.core.getSeries();if(i.count>0){var n=[];i.copyTo(n),n.length>0&&n[0].sti_is(e.StiPieSeries)&&(this.percentPerValue=n[0].core.getPercentPerValue(n))}return Math.round(t*this.percentPerValue,r)}return t},Object.defineProperty(r.prototype,"seriesLabelsType",{get:function(){return e.StiSeriesLabelsType.Pie},enumerable:!0,configurable:!0}),r}(e.StiSeriesLabelsCoreXF);e.StiPieSeriesLabelsCoreXF=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=e.Base.Localization.StiLocalization,a=e.System.Drawing.Rectangle,s=e.System.Drawing.Point,l=function(e){function l(t){return e.call(this,t)||this}return __extends(l,e),l.prototype.renderLabel=function(e,o,s,l,u,c,h,p,f,m,S,g,d,y,b,v,C,w){var x=a.empty;if(v.ref=x,this.percentPerValue=b,null==f&&!this.seriesLabels.showNulls)return null;if(0==f&&!this.seriesLabels.showZeros)return null;if(null==p&&(p=0),null==f&&(f=0),isNaN(l)||isNaN(u))return null;var _=String.empty;_=C?this.getFormattedValue(e,f):this.getLabelText(e,f,m,S,e.coreTitle);var A=Math.PI*c/180,L=this.getLabelPoint(s,(l-u)/1.75+u,A);C||(this.sti_is(t.StiOutsidePieLabelsCoreXF)&&(L=this.getLabelPoint(s,l+this.seriesLabels.lineLength*o.options.zoom,A)),this.sti_is(t.StiInsideEndPieLabelsCoreXF)&&(L=this.getLabelPoint(s,(l-u)/1.2+u,A)));var O=i.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*o.options.zoom),P=this.getStringFormatGeom(o),B=this.getLabelRect(o,L,_,O,P),R=this.seriesLabels.angle,k=r.CenterCenter,j=B.clone();if(j.x=-j.width/2,j.y=-j.height/2,this.seriesLabels.autoRotate&&(R=c,R>0&&R<90||R>270?(this.seriesLabels.sti_is(t.IStiOutsidePieLabels)&&(k=r.LeftCenter),j.x=0):(this.seriesLabels.sti_is(t.IStiOutsidePieLabels)&&(k=r.RightCenter),R+=180,j.x=-j.width)),this.sti_is(t.StiOutsidePieLabelsCoreXF)?this.seriesLabels.autoRotate||(c>337.5||c<22.5?(j.x=0,j.y=-j.height/2,k=r.LeftCenter):c>=22.5&&c<67.5?(j.x=0,j.y=0,k=r.LeftTop):c>=67.5&&c<112.5?(j.x=-j.width/2,j.y=0,k=r.CenterTop):c>=112.5&&c<157.5?(j.x=-j.width,j.y=0,k=r.RightTop):c>=157.5&&c<202.5?(j.x=-j.width,j.y=-j.height/2,k=r.RightCenter):c>=202.5&&c<247.5?(j.x=-j.width,j.y=-j.height,k=r.RightBottom):c>=247.5&&c<292.5?(j.x=-j.width/2,j.y=-j.height,k=r.CenterBottom):c>=292.5&&(j.x=0,j.y=-j.height,k=r.LeftBottom)):(j.x=-j.width/2,j.y=-j.height/2),g)return x=o.measureRotatedString2(_,O,B,P,k,R),v.ref=x,null;var T=this.getBorderColor(e,d,y),F=e.core.getSeriesBorderColor(d,y),D=e.core.getSeriesBrush(d,y),I=new n(this.getLabelColor(e,d,y));D=this.processSeriesColors(h,D,e);var N=this.processSeriesColors(h,this.seriesLabels.brush,e);if(x=a.empty,this.seriesLabels.sti_is(t.IStiOutsidePieLabels)){var M=this.sti_as(t.StiOutsidePieLabelsCoreXF),E=M.getLineColor(e,d,y);L=this.getLabelPoint(s,l+M.seriesLabels.lineLength*o.options.zoom,A);var V=this.getLabelPoint(s,l,A);return v.ref=x,new t.StiOutsidePieLabelsGeom(this.seriesLabels,e,h,p,j,_,D,I,N,T,F,k,B,R,E,L,V)}return v.ref=x,new t.StiCenterPieLabelsGeom(this.seriesLabels,e,h,p,j,_,D,I,N,T,F,k,B,R)},l.prototype.getLabelPoint=function(e,t,r){return new s(e.x+Math.cos(r)*t,e.y+Math.sin(r)*t)},l.prototype.getLabelRect=function(e,t,i,n,o){return e.measureRotatedString3(i,n,t,o,r.CenterCenter,0,Math.trunc(this.seriesLabels.width*e.options.zoom))},Object.defineProperty(l.prototype,"seriesLabelsType",{get:function(){return t.StiSeriesLabelsType.Pie},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.CenterPie},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"localizedName",{get:function(){return o.get("Chart","LabelsCenter")},enumerable:!0,configurable:!0}),l}(t.StiPieSeriesLabelsCoreXF);t.StiCenterPieLabelsCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","LabelsInsideEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.InsideEndPie},enumerable:!0,configurable:!0}),i}(t.StiCenterPieLabelsCoreXF);t.StiInsideEndPieLabelsCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(t){e.prototype.applyStyle.call(this,t),this.seriesLabels.allowApplyStyle&&(this.seriesLabels.lineColor=t.core.seriesLabelsBorderColor)},Object.defineProperty(i.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.OutsidePie},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","LabelsOutside")},enumerable:!0,configurable:!0}),i.prototype.getLineColor=function(e,t,r){if(this.seriesLabels.useSeriesColor)return this.getSeriesLabelColor(e,t,r);return this.seriesLabels.lineColor},i}(t.StiCenterPieLabelsCoreXF);t.StiOutsidePieLabelsCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringAlignment,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.Point,a=e.Base.Localization.StiLocalization,s=e.System.Drawing.Rectangle,l=function(e){function l(t){return e.call(this,t)||this}return __extends(l,e),l.prototype.renderLabel=function(a,l,u,c,h,p,f,m,S,g,d,y,b,v,C,w,x,_){this.percentPerValue=C;var A=s.empty;if(null==S&&!this.seriesLabels.showNulls)return null;if(0==S&&!this.seriesLabels.showZeros)return null;if(null==m&&(m=0),null==S&&(S=0),isNaN(c)||isNaN(h))return null;if(x)return w.ref=A,e.prototype.renderLabel.call(this,a,l,u,c,h,p,f,m,S,this.getFormattedValue(a,S),d,y,b,v,C,w,x,_);var L=this.getLabelText(a,S,g,d,a.coreTitle),O=Math.PI*p/180,P=this.getLabelPoint(u,c,O),B=this.getLabelPoint(u,c+this.seriesLabels.lineLength*l.options.zoom,O),R=0;R=P.x>B.x?-1:1;var k=new o(u.x+c*R+this.seriesLabels.lineLength*R+10*R,B.y);this.seriesLabels.preventIntersection&&(k.y=P.y),k.y+=_*Math.min(l.options.zoom,1);var j=i.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*l.options.zoom),T=this.seriesLabels.core.getStringFormatGeom(l);T.alignment=r.Center,T.lineAlignment=r.Center;var F=this.getLabelRect(l,k,L,j,T),D=s.empty;if(D=R<0?new s(k.x-F.width,k.y-F.height/2,F.width,F.height):new s(k.x,k.y-F.height/2,F.width,F.height),y)return A=D,w.ref=A,null;A=s.empty;var I=this.getBorderColor(a,b,v),N=a.core.getSeriesBorderColor(b,v),M=a.core.getSeriesBrush(b,v);M=this.processSeriesColors(f,M,a);var E=new n(this.getLabelColor(a,b,v)),V=this.getLineColor(a,b,v),X=this.processSeriesColors(f,this.seriesLabels.brush,a);return w.ref=A,new t.StiTwoColumnsPieLabelsGeom(this.seriesLabels,a,f,m,D,L,M,E,X,I,N,D,V,B,k,P,u)},Object.defineProperty(l.prototype,"seriesLabelsType",{get:function(){return t.StiSeriesLabelsType.Pie|t.StiSeriesLabelsType.Doughnut},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.TwoColumnsPie},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"localizedName",{get:function(){return a.get("Chart","LabelsTwoColumns")},enumerable:!0,configurable:!0}),l}(t.StiOutsidePieLabelsCoreXF);t.StiTwoColumnsPieLabelsCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiFontGeom,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=e.Base.Drawing.StiRotationMode,a=function(e){function a(t){return e.call(this,t)||this}return __extends(a,e),a.prototype.renderLabel=function(e,i,n,o,a,s,l,u,c,h){void 0===h&&(h=null);var p=this.getLabelText(e,o,a,s,e.coreTitle),f=this.getLabelColor(e,l,u),m=this.getBorderColor(e,l,u),S=this.getStringFormatGeom(i),g=r.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*i.options.zoom),d=e.core.getSeriesBorderColor(l,u),y=e.core.getSeriesBrush(l,u),b=this.processSeriesColors(n,this.seriesLabels.brush,e),v=this.getLabelRect(i,c,o,p,!0,g,S);return new t.StiCenterTreemapLabelsGeom(this.seriesLabels,e,n,o,v,p,f,m,y,b,d,g,h)},a.prototype.getLabelRect=function(e,t,r,i,a,s,l){return e.measureRotatedString3(i,s,new n(t.x+t.width/2,t.y+t.height/2),l,o.CenterCenter,0,this.seriesLabels.width*e.options.zoom)},Object.defineProperty(a.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.CenterTreemap},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("Chart","LabelsCenter")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsType",{get:function(){return t.StiSeriesLabelsType.Treemap},enumerable:!0,configurable:!0}),a}(t.StiSeriesLabelsCoreXF);t.StiCenterTreemapLabelsCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"seriesLabelsType",{get:function(){return t.StiSeriesLabelsType.All},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return t.StiSeriesLabelsPosition.None},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","LabelsNone")},enumerable:!0,configurable:!0}),i}(t.StiSeriesLabelsCoreXF);t.StiNoneLabelsCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiGradientBrush,i=e.Base.Drawing.StiGlareBrush,n=e.System.Drawing.Rectangle,o=e.System.Drawing.Point,a=e.System.Collections.Hashtable,s=e.System.ICloneable,l=function(){function l(e){this.isMouseOverSeriesElementHashtable=null,this._isMouseOver=!1,this._isDateTimeValues=!1,this._isDateTimeArguments=!1,this._series=e}return l.prototype.implements=function(){return l.implementsStiSeriesCoreXF||(l.implementsStiSeriesCoreXF=[s,t.IStiApplyStyleSeries,t.IStiSeriesCoreXF]),l.implementsStiSeriesCoreXF},l.prototype.clone=function(){return this.memberwiseClone()},l.prototype.applyStyle=function(e,t){this.series.allowApplyStyle&&(this.series.showShadow=e.core.seriesShowShadow,null!=this.series.seriesLabels&&this.series.seriesLabels.core.applyStyle(e))},l.prototype.checkLabelsRect=function(e,t,r){return null!=e&&e.preventIntersection&&(r.x<0&&(r.x=0),r.y<0&&(r.y=0),r.right>t.clientRectangle.width&&(r.x=t.clientRectangle.width-r.width),r.bottom>t.clientRectangle.height&&(r.y=t.clientRectangle.height-r.height)),r},l.prototype.getRectangle=function(e,t){var r=new o(e.left,e.top),i=new o(e.right,e.top),a=new o(e.right,e.bottom),s=new o(e.left,e.bottom),l=new o((e.left+e.right)/2,(e.top+e.bottom)/2),u=this.rotatePoint(r,l,t),c=this.rotatePoint(i,l,t),h=this.rotatePoint(a,l,t),p=this.rotatePoint(s,l,t),f=Math.min(Math.min(u.y,c.y),Math.min(h.y,p.y)),m=Math.max(Math.max(u.y,c.y),Math.max(h.y,p.y)),S=Math.min(Math.min(u.x,c.x),Math.min(h.x,p.x)),g=Math.max(Math.max(u.x,c.x),Math.max(h.x,p.x));return new n(S,f,g-S,m-f)},l.prototype.rotatePoint=function(e,t,r){var i=r*(Math.PI/180),n=Math.cos(i),a=Math.sin(i);return new o(Math.trunc(n*(e.x-t.x)-a*(e.y-t.y)+t.x),Math.trunc(a*(e.x-t.x)+n*(e.y-t.y)+t.y))},l.prototype.checkIntersectionLabels=function(e){for(var r=e.childGeoms,i=[],n=0,o=r;n<o.length;n++){var a=o[n];a.sti_is(t.StiSeriesLabelsGeom)&&i.add(a)}var s=i.count,l=!0,u=0;while(l&&u<29){u++;for(var c=0;c<s;c++)for(var h=0;h<s;h++){if(h==c)continue;if(i[c].clientRectangle.intersectsWith(i[h].clientRectangle)){var p=i[c].clientRectangle.clone(),f=i[h].clientRectangle.clone(),m=p.height-Math.abs(i[h].clientRectangle.y-i[c].clientRectangle.y)+2;p.y>f.y?(p.y+=m/2,f.y-=m/2):(p.y-=m/2,f.y+=m/2),p.y<0&&(p.y=0),f.y<0&&(f.y=0),p.y+p.height>e.clientRectangle.height&&(p.y=e.clientRectangle.height-p.height),f.y+m/2+f.height>e.clientRectangle.height&&(f.y=e.clientRectangle.height-f.height),i[c].clientRectangle=p,i[h].clientRectangle=f}}}},l.prototype.getLabelRectangle=function(e,t){var r=Math.pow(Math.pow(t.width,2)+Math.pow(t.height,2),.5);return e+=Math.atan(t.height/t.width)/Math.PI*180,new n(t.x,t.y,r*Math.cos(e*Math.PI/180),r*Math.sin(e*Math.PI/180))},l.prototype.renderSeries=function(e,t,r,i){},l.prototype.getSeriesBrush=function(e,n){if(null==this.series.chart||null==this.series.chart.area)return null;if((this.series.chart.area.colorEach||this.sti_is(t.StiDoughnutSeriesCoreXF))&&String.isNullOrEmpty(this.series.autoSeriesColorDataColumn)){var o=null!=this.series.chart.style?this.series.chart.style.core:new t.StiStyleCoreXF25,a=o.getColorByIndex(e,n),s=o.getColumnBrush(a);return this.series.chart.area.sti_is(t.IStiClusteredBarArea)&&(s.sti_is(r)&&(s.angle+=90),s.sti_is(i)&&(s.angle+=90)),s}return null},l.prototype.getSeriesBorderColor=function(e,r){if(null==this.series.chart||null==this.series.chart.area)return null;if(this.series.chart.area.colorEach||this.sti_is(t.StiDoughnutSeriesCoreXF)){var i=null!=this.series.chart.style?this.series.chart.style.core:new t.StiStyleCoreXF25,n=i.getColorByIndex(e,r);return i.getColumnBorder(n)}return null},l.prototype.getSeriesLabels=function(){if(this.series.showSeriesLabels==t.StiShowSeriesLabels.FromChart)return this.series.chart.seriesLabels.sti_as(t.IStiAxisSeriesLabels);if(this.series.showSeriesLabels==t.StiShowSeriesLabels.FromSeries)return this.series.seriesLabels.sti_as(t.IStiAxisSeriesLabels);return null},l.prototype.getTag=function(t){return null!=this.series.tags&&t<this.series.tags.length&&null!=this.series.tags[t]?this.series.tags[t].toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator):String.empty},l.prototype.getIsMouseOverSeriesElement=function(e){if(null==this.isMouseOverSeriesElementHashtable)return!1;return this.isMouseOverSeriesElementHashtable.get(e)==l.trueObject},l.prototype.setIsMouseOverSeriesElement=function(e,t){null==this.isMouseOverSeriesElementHashtable&&(this.isMouseOverSeriesElementHashtable=new a),this.isMouseOverSeriesElementHashtable.set(e,t?l.trueObject:l.falseObject)},Object.defineProperty(l.prototype,"isMouseOver",{get:function(){return this._isMouseOver},set:function(e){this._isMouseOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"localizedName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"isDateTimeValues",{get:function(){return this._isDateTimeValues},set:function(e){this._isDateTimeValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"isDateTimeArguments",{get:function(){return this._isDateTimeArguments},set:function(e){this._isDateTimeArguments=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"series",{get:function(){return this._series},set:function(e){this._series=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"interaction",{get:function(){return this.series.interaction},set:function(e){this.series.interaction=e},enumerable:!0,configurable:!0}),l.falseObject={},l.trueObject={},l}();t.StiSeriesCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiColorUtils,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Point,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiBaseLineSeriesCoreXF||(o.implementsStiBaseLineSeriesCoreXF=e.prototype.implements.call(this).concat([t.IStiApplyStyleSeries])),o.implementsStiBaseLineSeriesCoreXF},o.prototype.applyStyle=function(t,n){e.prototype.applyStyle.call(this,t,n);var o=this.series;o.allowApplyStyle&&(o.lineColor=n,o.lighting=t.core.seriesLighting,o.marker.visible=t.core.markerVisible,null!=o.marker&&(o.marker.brush=new i(r.light(n,100)),o.marker.borderColor=r.dark(n,100)),null!=o.lineMarker&&(o.lineMarker.brush=new i(r.light(n,50)),o.lineMarker.borderColor=r.dark(n,150)))},o.prototype.clipLinePoints=function(e,t,r,i,o){var a=i.ref,s=o.ref;if(this.series.chart.area.xAxis.range.auto)return a=0,s=r.length,i.ref=a,o.ref=s,r;a=-1,s=-1;var l=t.view.clientRectangle.clone();l.x=0,l.y=0;for(var u=0,c=0,h=r;c<h.length;c++){var p=h[c];if(null!=p){var f=p;if(f.x+=t.clientRectangle.x,f.y+=t.clientRectangle.y,l.x<=f.x&&f.x<l.right&&-1==a&&(a=u),!(l.x<=f.x&&f.x<l.right)&&-1!=a){s=u;break}}u++}-1==s&&(s=r.length-1),a--,s++,a<0&&(a=0),s>=r.length&&(s=r.length-1);var m=s-a+1;if(m==r.length)return i.ref=a,o.ref=s,r;var S=Array.create(n,m,!0);return Array.copy(r,a,S,m),i.ref=a,o.ref=s,S},o.prototype.renderMarkers=function(e,r,i){var o=r.area,a=this.series;if(0==i.length)return;if(null!=a.marker&&a.marker.visible)for(var s=0,l=0,u=i;l<u.length;l++){var c=u[l];if(null!=c){var h=o.reverseHor?a.values[a.values.length-s-1]:a.values[s];null==h&&a.showNulls&&(h=0);var p=r.view.clientRectangle.clone();p.x=0,p.y=0,p.inflate(10,10);var f=new n(c.x,c.y);if(f.x+=r.clientRectangle.x,f.y+=r.clientRectangle.y,p.contains(f.x,f.y)){var m=new t.StiMarkerGeom(this.series,s,h,c,a.marker,a.showShadow,e.options.zoom);if(null!=m){if(null!=a.core.interaction){var S=new t.StiSeriesInteractionData;S.fill(o,a,s),m.interaction=S}r.createChildGeoms(),r.childGeoms.add(m)}}}s++}},o.prototype.getInteractions=function(e,r,i){for(var n=[],o=0;o<i.length;o++){var a=new t.StiSeriesInteractionData;a.fill(r.area,this.series,o),a.point=i[o],n.add(a)}return n},o.prototype.renderLines=function(e,t,r){},o.prototype.renderAreas=function(e,t,r){},o.prototype.renderSeries=function(e,r,i,o){var a=i.area;if(null==o||0==o.length||null==this.series.chart)return;var s=a,l=s.xAxis.core.getStartFromZero();r.width+=.001;for(var u=0,c=[],h=0;h<o.length;h++){for(var p=o[h],f=p.values.length,m=Array.create(n,f,!0),S=0;S<f;S++){var g=l?s.xAxis.info.stripPositions[S+1]:s.xAxis.info.stripPositions[S],d=s.reverseHor?p.values[p.values.length-S-1]:p.values[S];if(null!=d||p.showNulls){null==d&&p.showNulls&&(d=0),s.reverseVert&&null!=d&&(d=-d);var y=0;y=p.yAxis==t.StiSeriesYAxis.LeftYAxis?-d*s.yAxis.info.dpi+s.axisCore.getDividerY():-d*s.yRightAxis.info.dpi+s.axisCore.getDividerRightY(),m[S]=new n(g,y)}else m[S]=null}if(m.length>0){m=this.optimizePoints(m);var b=void 0,v=void 0,C={ref:b},w={ref:v},x=this.clipLinePoints(e,i,m,C,w);b=C.ref,v=w,p.core.renderAreas(e,i,x),this.isTopmostLine(p)||p.core.renderLines(e,i,x)}c.add(m)}for(var _=0,A=0,L=c;A<L.length;A++){var O=L[A],b=void 0,v=void 0,C={ref:b},w={ref:v},x=this.clipLinePoints(e,i,O,C,w);b=C.ref,v=w.ref;var p=o[_];this.isTopmostLine(o[_])&&p.core.renderLines(e,i,x);var P=p.sti_as(t.StiSeries).trendLine;null!=P&&P.core.renderTrendLine(i,x,s.axisCore.getDividerY());var B=p.core.getSeriesLabels();if(null!=B&&B.visible)for(var S=b;S<=v;S++)if(p.values.length>S){var d=p.values[S];null==d&&p.showNulls&&(d=0);var R=d;s.reverseVert&&null!=d&&(R=-R),u=p.yAxis==t.StiSeriesYAxis.LeftYAxis?s.axisCore.getDividerY():s.axisCore.getDividerRightY();var k=O[S];if(null!=k){var j=new n(k.x,u);if(0==B.step||S%B.step==0){var T=s.xAxis.startFromZero?S+1:S,F=B.core.renderLabel(p,e,this.correctPoint(k,r,p.labelsOffset*e.options.zoom),this.correctPoint(j,r,p.labelsOffset*e.options.zoom),S,R,d,s.axisCore.getArgumentLabel(s.xAxis.info.stripLines.getByindex(T),p),p.core.getTag(S),0,1,r);null!=F&&(i.createChildGeoms(),i.childGeoms.add(F),F.clientRectangle=this.checkLabelsRect(B,i,F.clientRectangle))}}}_++}i.area.chart.seriesLabels.preventIntersection&&this.checkIntersectionLabels(i)},o.prototype.optimizePoints=function(e){if(e.length<800)return e;var t=1,r=0,i=0,o=0,a=0,s=[];while(r<e.length){if(null==e[r]){while(r<e.length&&null==e[r])r++;s.add(null);continue}var l=e[r];if(++r<e.length&&null!=e[r]&&null!=e[r]&&e[r].x-l.x<t){i=l.x,o=l.y,a=l.y;var u=l.y,c=l.y;while(r<e.length&&null!=e[r]&&null!=e[r]&&e[r].x-i<t)o=Math.min(o,e[r].y),a=Math.max(a,e[r].y),c=e[r].y,r++;c>u?(s.add(new n(i,o)),s.add(new n(i+t/2,a))):(s.add(new n(i,a)),s.add(new n(i+t/2,o)))}else s.add(l)}return s.toArray()},o.prototype.isTopmostLine=function(e){if(e.sti_is(t.IStiSplineAreaSeries))return e.topmostLine;if(e.sti_is(t.IStiSteppedAreaSeries))return e.topmostLine;if(e.sti_is(t.IStiAreaSeries))return e.topmostLine;return!0},o.prototype.correctPoint=function(e,t,r){if(e.y+r<0)return new n(e.x,0);if(e.y+r>t.height)return new n(e.x,t.height);return new n(e.x,e.y+r)},o.prototype.getSeriesBrush=function(t,n){var o=this.series,a=e.prototype.getSeriesBrush.call(this,t,n);if(null==a)return new i(r.dark(o.lineColor,20));return a},o.prototype.getSeriesBorderColor=function(t,r){var i=this.series,n=e.prototype.getSeriesBorderColor.call(this,t,r);if(null==n)return i.lineColor;return n},o}(t.StiSeriesCoreXF);t.StiBaseLineSeriesCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.DateTime,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Point,o=function(o){function a(e){return o.call(this,e)||this}return __extends(a,o),a.prototype.applyStyle=function(e,r){o.prototype.applyStyle.call(this,e,r);var i=this.series.sti_as(t.IStiBaseLineSeries);i.allowApplyStyle&&(e.core.markerVisible||(i.marker.visible=!0))},a.prototype.renderLines=function(e,t,r){this.renderMarkers(e,t,r)},a.prototype.renderSeries=function(i,o,a,s){if(null==s||0==s.length||null==this.series.chart)return;for(var l=a.area,u=0,c=[],h=0;h<s.length;h++){for(var p=s[h],f=Math.min(p.values.length,p.arguments.length),m=Array.create(n,f,!0),S=p.arguments.getKeys(),g=0;g<f;g++){var d=p.values[g];if(null==d&&this.series.showNulls&&(d=0),null!=d){l.reverseVert&&null!=d&&!l.yAxis.logarithmicScale&&(d=-d);var y=0;if(l.yAxis.logarithmicScale){var b=l.yAxis.info.stripLines.count,v=0,C=b-1,w=l.yAxis.info.stripLines.getByindex(v).value,x=l.yAxis.info.stripLines.getByindex(C).value,_=Math.abs(o.height/(Math.log10(x)-Math.log10(w)));y=Math.abs(Math.log10(l.yAxis.info.stripLines.getByindex(v).value)*_-Math.log10(d)*_)}else y=p.yAxis==t.StiSeriesYAxis.LeftYAxis?-d*l.yAxis.info.dpi+l.axisCore.getDividerY():-d*l.yRightAxis.info.dpi+l.axisCore.getDividerRightY();var A=null;if(p.arguments.getByIndex(g,S).sti_is(r)){var L=p.arguments.getByIndex(g,S);A=L.toOADate().toNumber()}else try{A=null==p.arguments.getByIndex(g,S)?null:p.arguments.getByIndex(g,S).toNumber()}catch(t){e.System.StiError.showError(t,!1),A=null}if(null==A)m[g]=null;else{var O=0;if(l.xAxis.logarithmicScale&&l.xAxis.info.stripLines.count>0){var b=l.xAxis.info.stripLines.count,v=l.reverseHor?b-1:0,C=l.reverseHor?0:b-1,w=l.xAxis.info.stripLines.getByindex(v).value,x=l.xAxis.info.stripLines.getByindex(C).value,P=Math.abs(o.width/(Math.log10(x)-Math.log10(w)));O=Math.log10(A)*P-Math.log10(l.xAxis.info.stripLines.getByindex(v).value)*P}else O=(A-l.xAxis.info.minimum)*l.xAxis.info.dpi;l.reverseHor&&(O=o.width-O),m[g]=new n(O,y)}}else m[g]=null}c.add(m)}for(var B=0,R=0,k=c;R<k.length;R++){var j=k[R],p=s[B],S=p.arguments.getKeys();p.core.renderLines(i,a,j);var T=p.sti_as(t.StiSeries).trendLine;null!=T&&T.core.renderTrendLine(a,j,l.axisCore.getDividerY());var F=p.core.getSeriesLabels();if(null!=F&&F.visible)for(var g=0;g<j.length;g++){var d=p.values[g],D=d;l.reverseVert&&null!=d&&(D=-D),u=p.yAxis==t.StiSeriesYAxis.LeftYAxis?l.axisCore.getDividerY():l.axisCore.getDividerRightY();var C=j[g];if(null!=C){var v=new n(C.x,u);if((o.contains(v.x,v.y)||v.y==o.bottom||o.contains(C.x,C.y))&&(0==F.step||g%F.step==0)){var I=F.core.renderLabel(p,i,this.correctPoint(C,o,p.labelsOffset*i.options.zoom),this.correctPoint(v,o,p.labelsOffset*i.options.zoom),g,D,d,p.arguments.getByIndex(g,S).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),p.core.getTag(g),0,1,o);null!=I&&(a.createChildGeoms(),a.childGeoms.add(I),I.clientRectangle=this.checkLabelsRect(F,a,I.clientRectangle.clone()))}}}B++}a.area.chart.seriesLabels.preventIntersection&&this.checkIntersectionLabels(a)},Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("Chart","Scatter")},enumerable:!0,configurable:!0}),a}(t.StiBaseLineSeriesCoreXF);t.StiScatterSeriesCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Data.DBNull,i=e.System.TimeSpan,n=e.System.DateTime,o=e.Base.Localization.StiLocalization,a=e.System.Drawing.Rectangle,s=e.System.Drawing.Point,l=function(l){function u(e){return l.call(this,e)||this}return __extends(u,l),u.prototype.applyStyle=function(e,t){l.prototype.applyStyle.call(this,e,t),this.series.allowApplyStyle&&(this.series.brush=e.core.getColumnBrush(t),this.series.borderColor=e.core.getColumnBorder(t))},u.prototype.renderLines=function(e,t,r){},u.prototype.renderBubbles=function(e,r,n,o,s){for(var l=0,u=0,c=0,h=n.chart.series.list;c<h.length;c++){var p=h[c],f=p;if(null==f)continue;for(var m=0,S=f.weights;m<S.length;m++){var g=S[m];l=0==u?g:Math.max(g,l),u++}}var d=r.area,y=.9*Math.min(d.xAxis.info.step,d.yAxis.info.step),b=y/l,v=t.StiChartHelper.globalBeginTimeElement;u=0;for(var C=0,w=s;C<w.length;C++){var g=w[C],x=o[u];if(null!=x&&g>0){var _=g*b,A=new a(x.x-_/2,x.y-_/2,_,_),L=new t.StiBubbleSeriesElementGeom(r,g,u,n.brush,n.borderColor,n,A,new i(v.ticks/d.core.valuesCount*u));r.createChildGeoms(),r.childGeoms.add(L)}u++}},u.prototype.renderSeries=function(i,o,a,l){if(null==l||0==l.length||null==this.series.chart)return;for(var u=a.area,c=0,h=[],p=[],f=0;f<l.length;f++){for(var m=l[f],S=Math.min(m.values.length,m.arguments.length),g=[],d=[],y=0;y<S;y++){var b=m.values[y];null==b&&m.showNulls&&(b=0),u.reverseVert&&null!=b&&(b=-b);var v=0;v=m.yAxis==t.StiSeriesYAxis.LeftYAxis?-b*u.yAxis.info.dpi+u.axisCore.getDividerY():-b*u.yRightAxis.info.dpi+u.axisCore.getDividerRightY();var C=null;if(m.arguments[y].sti_is(n)){var w=m.arguments[y];C=w.toOADate().toNumber()}else try{null!=m.arguments[y]&&m.arguments[y]!=r.value&&(C=m.arguments[y].toNumber())}catch(t){e.System.StiError.showError(t,!1),C=null}if(null==C&&m.showNulls&&(C=0),null!=b&&null!=C){var x=(C-u.xAxis.info.minimum)*u.xAxis.info.dpi;u.reverseHor&&(x=o.width-x),g.add(new s(x,v))}else g.add(null);d.add(y<m.weights.length?m.weights[y]:0)}h.add(g),p.add(d)}for(var _=0;_<h.count;_++){var A=p[_],L=h[_],m=l[_];m.core.renderBubbles(i,a,m,L,A);var O=m.sti_as(t.StiSeries).trendLine,g=Array.create(s,L.count,!0);L.copyTo(g),null!=O&&O.core.renderTrendLine(a,g,u.axisCore.getDividerY());var P=m.core.getSeriesLabels();if(null!=P&&P.visible)for(var y=0;y<L.count;y++){var b=m.values[y],B=b;u.reverseVert&&null!=B&&(B=-B),c=m.yAxis==t.StiSeriesYAxis.LeftYAxis?u.axisCore.getDividerY():u.axisCore.getDividerRightY();var R=L[y];if(null!=R){var k=new s(R.x,c);if((o.contains(k.x,k.y)||k.y==o.bottom||o.contains(R.x,R.y))&&(0==P.step||y%P.step==0)){var j=P.core.renderLabel2(m,i,this.correctPoint(R,o,m.labelsOffset*i.options.zoom),this.correctPoint(k,o,m.labelsOffset*i.options.zoom),y,B,b,m.arguments[y].toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),m.core.getTag(y),m.weights[y],0,1,o);null!=j&&(a.createChildGeoms(),a.childGeoms.add(j),j.clientRectangle=this.checkLabelsRect(P,a,j.clientRectangle))}}}}},Object.defineProperty(u.prototype,"localizedName",{get:function(){return o.get("Chart","Bubble")},enumerable:!0,configurable:!0}),u}(t.StiScatterSeriesCoreXF);t.StiBubbleSeriesCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Rectangle,o=e.System.Drawing.Point,a=function(e){function a(t){return e.call(this,t)||this}return __extends(a,e),a.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r),this.series.allowApplyStyle&&(this.series.brush=t.core.getColumnBrush(r),this.series.borderColor=t.core.getColumnBorder(r))},a.prototype.renderSeries=function(e,i,a,s){var l=[],u=a.area;if(null==s||0==s.length||null==this.series.chart)return;for(var c=u,h=c.xAxis.core.getStartFromZero(),p=c.axisCore.getDividerY(),f=c.axisCore.getDividerRightY(),m=0,S=c.axisCore.valuesCount*s.length,g=[],d=0;d<s.length;d++)g.add([]);for(var y=0;y<c.axisCore.valuesCount;y++){var b=h?c.xAxis.info.stripPositions[y+1]:c.xAxis.info.stripPositions[y];b-=c.xAxis.info.step/2;for(var v=0,C=0,w=s;C<w.length;C++){var x=w[C];v+=c.xAxis.info.step/s.length*x.width}var _=b+(c.xAxis.info.step-v)/2,A=0;c.reverseHor&&(A=s.length-1);while(A<s.length&&!c.reverseHor||A>=0&&c.reverseHor){var L=s[A],O=c.xAxis.info.step/s.length*L.width;if(y<L.values.length){var P=c.reverseHor?L.values[L.values.length-y-1]:L.values[y];c.reverseVert&&null!=P&&(P=-P);var B=0,R=0;L.yAxis==t.StiSeriesYAxis.LeftYAxis?(B=P*c.yAxis.info.dpi,R=-B+p):(B=P*c.yRightAxis.info.dpi,R=-B+f),!L.showZeros||0!=P&&null!=P||(B=Math.max(e.options.zoom,2),c.reverseVert||(R-=B)),P<0&&(R=L.yAxis==t.StiSeriesYAxis.LeftYAxis?p:f,B=-B);var k=new n(_,R,O,B),j=L.sti_as(t.StiSeries);null==j.trendLine||j.trendLine.sti_is(t.IStiTrendLineNone)||g[A].add(new o(_+O/2,R));var T=a.view.clientRectangle.clone();T.x=0,T.y=0;var F=k.clone();if(F.x+=a.clientRectangle.x,F.y+=a.clientRectangle.y,F.right>T.x&&F.x<T.right||this.series.chart.area.xAxis.range.auto){var D=L.core.getSeriesBrush(m,S);L.allowApplyBrushNegative&&P<0&&(D=L.brushNegative),D=L.processSeriesBrushes(y,D);var I=L.core.getSeriesBorderColor(m,S),N=t.StiChartHelper.globalBeginTimeElement;if(null!=this.series.chart&&null!=this.series.chart.style&&k.height>0){var M=new t.StiClusteredColumnSeriesElementGeom(a,P,y,D,I,L,k,new r(N.ticks/c.core.valuesCount*y));if(null!=L.core.interaction){var E=new t.StiSeriesInteractionData;E.fill(c,L,y),M.interaction=E}a.createChildGeoms(),a.childGeoms.add(M)}var V=L.core.getSeriesLabels();if(null!=V&&V.visible){var X=void 0;X=L.yAxis==t.StiSeriesYAxis.LeftYAxis?new o(_+O/2,-P*c.yAxis.info.dpi+p):new o(_+O/2,-P*c.yRightAxis.info.dpi+f);var G=0;if(null!=P&&(G=c.reverseVert?-P:P),0==V.step||y%V.step==0){var z=c.xAxis.startFromZero?y+1:y,J=V.core.renderLabel(L,e,this.correctPoint(X,i),this.correctPoint(new o(X.x,p),i),y,P,G,c.axisCore.getArgumentLabel(c.xAxis.info.stripLines.getByindex(z),L),L.core.getTag(y),m,S,i);null!=J&&(l.add(J),J.clientRectangle=this.checkLabelsRect(V,a,J.clientRectangle))}}}}_+=O,m++,c.reverseHor?A--:A++}}for(var H=0;H<s.length;H++){var Y=s[H].trendLine;if(Y.sti_is(t.IStiTrendLineNone))continue;var W=g[H];null!=Y&&Y.core.renderTrendLine(a,W.toArray(),c.axisCore.getDividerY())}for(var Z=0,U=l;Z<U.length;Z++){var J=U[Z];a.createChildGeoms(),a.childGeoms.add(J)}a.area.chart.seriesLabels.preventIntersection&&this.checkIntersectionLabels(a)},a.prototype.correctPoint=function(e,t){if(e.y<0)return new o(e.x,0);if(e.y>t.height)return new o(e.x,t.height);return e},a.prototype.getSeriesBrush=function(t,r){var i=e.prototype.getSeriesBrush.call(this,t,r);if(null==i)return this.series.brush;return i},a.prototype.getSeriesBorderColor=function(t,r){var i=e.prototype.getSeriesBorderColor.call(this,t,r);if(null==i)return this.series.borderColor;return i},Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("Chart","ClusteredColumn")},enumerable:!0,configurable:!0}),a}(t.StiSeriesCoreXF);t.StiClusteredColumnSeriesCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.Base.Localization.StiLocalization,n=e.Base.Drawing.StiGlareBrush,o=e.Base.Drawing.StiGradientBrush,a=e.System.Drawing.Rectangle,s=e.System.Drawing.Point,l=function(e){function l(t){return e.call(this,t)||this}return __extends(l,e),l.prototype.implements=function(){return l.implementsStiClusteredBarSeriesCoreXF||(l.implementsStiClusteredBarSeriesCoreXF=e.prototype.implements.call(this).concat([t.IStiApplyStyleSeries])),l.implementsStiClusteredBarSeriesCoreXF},l.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getColumnBrush(r),i.brush.sti_is(o)&&(i.brush.angle+=90),i.brush.sti_is(n)&&(i.brush.angle+=90),i.borderColor=t.core.getColumnBorder(r))},l.prototype.renderSeries=function(e,i,n,o){var l=[],u=n.area;if(null==o||0==o.length||null==this.series.chart)return;for(var c=u,h=c.yAxis.core.getStartFromZero(),p=c.axisCore.getDividerX(),f=0,m=c.axisCore.valuesCount*o.length,S=c.axisCore.valuesCount,g=[],d=0;d<o.length;d++)g.add([]);for(var y=o.getKeys(),b=0;b<S;b++){for(var v=h?c.yAxis.info.stripPositions[b+1]-c.yAxis.info.step/2:c.yAxis.info.stripPositions[b]-c.yAxis.info.step/2,C=0,w=0,x=o;w<x.length;w++){var _=x[w];C+=c.yAxis.info.step/o.length*_.width}var A=v+(c.yAxis.info.step-C)/2,L=0;c.reverseVert&&(L=o.length-1);var O=t.StiChartHelper.globalBeginTimeElement;while(L<o.length&&!c.reverseVert||L>=0&&c.reverseVert){var P=o.getByIndex(L,y),B=c.yAxis.info.step/o.length*P.width;if(b<P.values.length){var R=-(c.reverseVert?P.values[b]:P.values[P.values.length-b-1]);c.reverseHor&&null!=R&&(R=-R);var k=R*c.xAxis.info.dpi,j=-k+p;!this.series.showZeros||0!=R&&null!=R||(k=Math.max(e.options.zoom,2),c.reverseHor&&(j-=k)),R<0&&(j=p,k=-k);var T=new a(j,A,k,B);P.sti_as(t.StiSeries).trendLine.sti_is(t.IStiTrendLineNone)||g[L].add(new s(k,A+B/2));var F=n.view.clientRectangle.clone();F.x=0,F.y=0;var D=T.clone();if(D.x+=n.clientRectangle.x,D.y+=n.clientRectangle.y,D.bottom>F.y&&D.y<F.bottom||this.series.chart.area.yAxis.range.auto){if(null!=this.series.chart&&null!=this.series.chart.style&&T.width>0){var I=P.core.getSeriesBrush(f,m);P.allowApplyBrushNegative&&R>0&&(I=P.brushNegative),I=P.processSeriesBrushes(S-1-b,I);var N=P.core.getSeriesBorderColor(f,m),M=new t.StiClusteredBarSeriesElementGeom(n,R,b,I,N,P,T,new r(O.ticks/c.core.valuesCount*b));if(null!=P.core.interaction){var E=new t.StiSeriesInteractionData;E.fill(c,P,b),M.interaction=E}n.createChildGeoms(),n.childGeoms.add(M)}var V=P.core.getSeriesLabels();if(null!=V&&V.visible){var X=new s(-R*c.xAxis.info.dpi+p,A+B/2),G=R;if(null!=R&&(G=c.reverseHor?R:-R),0==V.step||b%V.step==0){var z=V.core.renderLabel(P,e,this.correctPoint(X,i),this.correctPoint(new s(p,X.y),i),b,R,G,c.axisCore.getArgumentLabel(c.yAxis.info.stripLines.getByindex(b),P),P.core.getTag(b),f,m,i);null!=z&&(l.add(z),z.clientRectangle=this.checkLabelsRect(V,n,z.clientRectangle))}}}}A+=B,f++,c.reverseVert?L--:L++}}for(var J=0;J<o.length;J++){var H=o.getByIndex(J,y).trendLine;if(H.sti_is(t.IStiTrendLineNone))continue;var Y=g[J];null!=H&&H.core.renderTrendLine(n,Y.toArray(),c.axisCore.getDividerY())}for(var W=0,Z=l;W<Z.length;W++){var z=Z[W];n.createChildGeoms(),n.childGeoms.add(z)}},l.prototype.correctPoint=function(e,t){if(e.x<0)return new s(0,e.y);if(e.x>t.width)return new s(t.width,e.y);return e},Object.defineProperty(l.prototype,"localizedName",{get:function(){return i.get("Chart","ClusteredBar")},enumerable:!0,configurable:!0}),l}(t.StiClusteredColumnSeriesCoreXF);t.StiClusteredBarSeriesCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.renderLines=function(e,r,i){if(null!=i&&i.length>1){var n=new t.StiLineSeriesGeom(r,i,this.series);r.createChildGeoms(),r.childGeoms.add(n),null!=this.interaction&&(n.interactions=this.getInteractions(e,r,i))}this.renderMarkers(e,r,i)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Line")},enumerable:!0,configurable:!0}),i}(t.StiBaseLineSeriesCoreXF);t.StiLineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},i.prototype.renderAreas=function(e,r,i){if(null==i||i.length<=1)return;var n=new t.StiAreaSeriesGeom(r,i,this.series);null!=n&&(r.createChildGeoms(),r.childGeoms.add(n))},i.prototype.getSeriesBrush=function(t,r){var i=this.series,n=e.prototype.getSeriesBrush.call(this,t,r);if(null==n)return i.brush;return n},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Area")},enumerable:!0,configurable:!0}),i}(t.StiLineSeriesCoreXF);t.StiAreaSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.renderLines=function(e,r,i){if(null==i||i.length<=1)return;var n=new t.StiSplineSeriesGeom(r,i,this.series);null!=n&&(r.createChildGeoms(),r.childGeoms.add(n)),null!=this.interaction&&(n.interactions=this.getInteractions(e,r,i)),this.renderMarkers(e,r,i)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","Spline")},enumerable:!0,configurable:!0}),i}(t.StiBaseLineSeriesCoreXF);t.StiSplineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},i.prototype.renderAreas=function(e,r,i){if(null==i||i.length<=1)return;var n=new t.StiSplineAreaSeriesGeom(r,i,this.series);null!=n&&(r.createChildGeoms(),r.childGeoms.add(n))},i.prototype.getSeriesBrush=function(t,r){var i=this.series,n=e.prototype.getSeriesBrush.call(this,t,r);if(null==n)return i.brush;return n},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SplineArea")},enumerable:!0,configurable:!0}),i}(t.StiSplineSeriesCoreXF);t.StiSplineAreaSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.renderLines=function(e,r,i){var n=this.series;if(i.length>1||n.pointAtCenter&&i.length>0){var o=new t.StiSteppedLineSeriesGeom(r,i,this.series);null!=o&&(r.createChildGeoms(),r.childGeoms.add(o)),null!=this.interaction&&(o.interactions=this.getInteractions(e,r,i))}this.renderMarkers(e,r,i)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SteppedLine")},enumerable:!0,configurable:!0}),i}(t.StiBaseLineSeriesCoreXF);t.StiSteppedLineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},i.prototype.renderAreas=function(e,r,i){var n=this.series;if(null==i||0==i.length||1==i.length&&!n.pointAtCenter)return;var o=new t.StiSteppedAreaSeriesGeom(r,i,this.series);null!=o&&(r.createChildGeoms(),r.childGeoms.add(o))},i.prototype.getSeriesBrush=function(t,r){var i=this.series,n=e.prototype.getSeriesBrush.call(this,t,r);if(null==n)return i.brush;return n},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","SteppedArea")},enumerable:!0,configurable:!0}),i}(t.StiSteppedLineSeriesCoreXF);t.StiSteppedAreaSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiArcSegmentGeom,i=e.Base.Context.StiPieSegmentGeom,n=e.Base.Drawing.StiGlareBrush,o=e.Base.Drawing.StiGradientBrush,a=e.Base.Context.StiLineSegmentGeom,s=e.System.TimeSpan,l=e.Base.Drawing.StiSolidBrush,u=e.Base.Localization.StiLocalization,c=e.System.Drawing.Color,h=e.System.Drawing.Point,p=e.System.Drawing.Rectangle,f=function(f){function m(e){return f.call(this,e)||this}return __extends(m,f),m.prototype.applyStyle=function(e,t){f.prototype.applyStyle.call(this,e,t);var r=this.series;r.allowApplyStyle&&(r.lighting=e.core.seriesLighting,r.allowApplyBrush&&(r.brush=e.core.getColumnBrush(t)),r.allowApplyBorderColor&&(r.borderColor=e.core.getColumnBorder(t)))},m.prototype.correctBrush=function(e){return e.sti_is(o)&&(e=e.clone(),e.angle=-45),e.sti_is(n)&&(e=e.clone(),e.angle=-45),e},m.prototype.renderPieElement=function(e,r,i,n,o,a,s,l,u,c,h,f,m){var S,g,d=p.empty;o=this.correctBrush(o);var y={ref:S},b={ref:g},v={ref:d},C=this.measurePieElementCore(e,r,i,a,s,c,h,y,b,v);if(S=y.ref,g=b.ref,d=v.ref,C.isEmpty)return null;return new t.StiPieSeriesElementGeom(f,l,u,c,d,S,g,n,o,a,a+s,i,m)},m.prototype.renderPieElementShadow=function(e,t,r,i,n,a,s,l){if(this.series.chart.isAnimation)return;var u,h,f=p.empty;i=this.correctBrush(i);var m={ref:u},S={ref:h},g={ref:f},d=this.measurePieElementCore(e,t,r,n,a,s,l,m,S,g);if(u=m.ref,h=S.ref,f=g.ref,d.isEmpty)return;if(e.pushSmoothingModeToAntiAlias(),e.fillPath(i,u,f),null!=h){var y=new o(c.fromArgb(100,c.white),c.fromArgb(50,c.black),45);e.fillPath(y,h,f)}e.popSmoothingMode()},m.prototype.measurePieElement=function(e,t,r,i,n,o,a){var s,l,u=p.empty,c={ref:s},h={ref:l},f={ref:u},m=this.measurePieElementCore(e,t,r,i,n,o,a,c,h,f);return s=c.ref,l=h.ref,u=f.ref,m},m.prototype.measurePieElementCore=function(e,t,n,o,s,l,u,h,f,m){var S=[],g=null,d=p.empty;if(0==s||isNaN(s))return p.empty;if(u>0&&(t=this.getPoint(t,u*e.options.zoom,o+s/2)),d=new p(t.x-n,t.y-n,2*n,2*n),d.width<=0&&d.height<=0)return p.empty;if(S.add(new i(new p(d.x,d.y,d.width,d.height),o,s)),l.lighting&&!c.transparent.stiEquals(l.borderColor)){var y=0;g=[],y=.02*n,g.add(new r(d,o,s)),g.add(new a(this.getPoint(t,n-y,o+s),this.getPoint(t,n-y,o+s))),g.add(new r(new p(d.x+y,d.y+y,d.width-2*y,d.height-2*y),o+s,-s)),g.add(new a(this.getPoint(t,n-y,o),this.getPoint(t,n-y,o)))}return h.ref=S,f.ref=g,m.ref=d,e.getPathBounds(S)},m.prototype.renderSeries=function(e,r,i,n){if(null==n||0==n.length||null==this.series.chart)return;for(var o=t.StiChartHelper.globalDurationElement,a=t.StiChartHelper.globalBeginTimeElement,u=this.series.chart,h=0,f=0,m=n;f<m.length;f++){var S=m[f];null!=S.values&&(h+=S.values.length)}if(0==h)return;for(var g=0,d=-1,y=0,b=0,v=n;b<v.length;b++)for(var S=v[b],C=0,w=S.values;C<w.length;C++){var x=w[C];0==x||null==x||isNaN(x)||1==++g&&(d=y),y++}for(var _=this.getGradPerValue(n),A=this.getPercentPerValue(n),L=this.getRadius(e,r),O=this.getPointCenter(r),P=n[0],B=P.startAngle,R=new p(0,0,r.width,r.height),k=0,j=n;k<j.length;k++){var S=j[k];if(g>1)for(var T=S,F=0,D=0,I=S.values;D<I.length;D++){var x=I[D],N=_*Math.abs(x),M=this.measurePieElement(e,O,L,B,N,T,this.getPieDistance(F));0!=x&&(R=p.union(R,M)),B+=N,F++}}var E=Math.max(-R.left,R.right-r.width),V=Math.max(-R.top,R.bottom-r.height);L-=1.2*Math.max(E,V);var X=Array.create(p,h),G=Array.create(Number,h),z=Array.create(Number,4);Array.clear(z,0,z.length),B=P.startAngle,R=new p(10*e.options.zoom,10*e.options.zoom,r.width-20*e.options.zoom,r.height-20*e.options.zoom);for(var J=R.clone(),H=0,Y=0,W=n;Y<W.length;Y++)for(var S=W[Y],Z=S,F=0,U=0,q=S.values;U<q.length;U++){var x=q[U],N=_*Math.abs(x);if(null!=this.series.chart&&null!=this.series.chart.seriesLabels&&this.series.chart.seriesLabels.visible){var K=this.series.chart.seriesLabels.sti_as(t.IStiPieSeriesLabels);if(null!=K&&K.visible){var Q=L;this.getPieDistance(F)>0&&(Q+=Z.distance*e.options.zoom);var $=B+N/2,M=void 0,ee={ref:M};K.core.renderLabel(Z,e,O,Q,0,$,F,Math.abs(x),x,this.getArgumentText(S,F),Z.core.getTag(F),!0,F,h,A,ee,!1,0),M=ee.ref,M.isEmpty||(R=p.union(R,M)),(0!=x||K.showZeros)&&(X[H]=M,G[H]=M.y,$>=0&&$<=90&&z[0]++,$>90&&$<=180&&z[1]++,$>180&&$<=270&&z[2]++,$>270&&$<=360&&z[3]++)}}B+=N,F++,(0!=x||this.series.chart.seriesLabels.showZeros)&&H++}if(0==P.diameter){var te=0;te=Math.min(te,R.left-J.left),te=Math.min(te,J.right-R.right),te=Math.min(te,R.top-J.top),te=Math.min(te,J.bottom-R.bottom),L+=te}H=0;for(var re=0,ie=n;re<ie.length;re++)for(var S=ie[re],Z=S,F=0,ne=0,oe=S.values;ne<oe.length;ne++){var x=oe[ne],N=_*x;if(null!=this.series.chart&&null!=this.series.chart.seriesLabels&&this.series.chart.seriesLabels.visible){var K=this.series.chart.seriesLabels.sti_as(t.IStiPieSeriesLabels);if(null!=K&&K.visible){var Q=L;this.getPieDistance(F)>0&&(Q+=Z.distance*e.options.zoom);var $=B+N/2,M=void 0,ee={ref:M};K.core.renderLabel(this.series,e,O,Q,0,$,F,x,x,this.getArgumentText(S,F),Z.core.getTag(F),!0,F,h,A,ee,!1,0),M=ee.ref,(0!=x||K.showZeros)&&(X[H]=M,G[H]=M.y)}}B+=N,F++,(0!=x||this.series.chart.seriesLabels.showZeros)&&H++}if(null!=this.series.chart&&null!=this.series.chart.seriesLabels){var ae=this.series.chart.seriesLabels;if(null!=ae&&ae.preventIntersection){var se=0;if(z[0]>0){se=R.height/2/z[0],X[0].y=R.y+R.height/2+se/2-X[0].height/2;for(var le=1;le<z[0];le++)X[le].y=X[le-1].y+se}var ue=z[0];if(z[1]>0){se=R.height/2/z[1],X[ue].y=R.y+R.height-se/2-X[ue].height/2;for(var le=ue+1;le<ue+z[1];le++)X[le].y=X[le-1].y-se}if(ue+=z[1],z[2]>0){se=R.height/2/z[2],X[ue].y=R.y+R.height/2-se/2-X[ue].height/2;for(var le=ue+1;le<ue+z[2];le++)X[le].y=X[le-1].y-se}if(ue+=z[2],z[3]>0){se=R.height/2/z[3],X[ue].y=R.y+se/2-X[ue].height/2;for(var le=ue+1;le<ue+z[3];le++)X[le].y=X[le-1].y+se}for(var le=0;le<H;le++)G[le]=X[le].y-G[le]}}if(L<=5)return;if(P.showShadow){B=P.startAngle;for(var ce=0,he=n;ce<he.length;ce++){var S=he[ce];if(1==g){var pe=new p(O.x-L,O.y-L,2*L,2*L),fe=new p(0,0,2*L,2*L),me=e.createShadowGraphics();null!=me&&me.fillEllipse2(c.fromArgb(100,c.black),fe);var Se=new t.StiPieSeriesShadowElementGeom(P,pe,.01*L+2*e.options.zoom,me,o,a);i.createChildGeoms(),i.childGeoms.add(Se);break}for(var T=S,F=0,ge=0,de=S.values;ge<de.length;ge++){var x=de[ge],N=_*Math.abs(x),ye=O,be=new l(c.fromArgb(100,c.black)),me=e.createShadowGraphics(),fe=r.clone();fe.x=0,fe.y=0,u.isAnimation&&(fe.x=O.x-L,fe.y=O.y-L,fe.height=2*L,fe.width=2*L),this.renderPieElementShadow(me,ye,L,be,B,N,T,this.getPieDistance(F));var Se=new t.StiPieSeriesShadowElementGeom(P,fe,.01*L+2*e.options.zoom,me,o,a);i.createChildGeoms(),i.childGeoms.add(Se),B+=N,F++}}}B=P.startAngle;for(var ve=0,Ce=0,we=n;Ce<we.length;Ce++){var S=we[Ce];if(0==g)break;if(1==g){var xe=S.brush;S.allowApplyBrush&&(xe=S.core.getSeriesBrush(d,h),xe=S.processSeriesBrushes(d,xe));var _e=new p(O.x-L,O.y-L,2*L,2*L),Ae=S.borderColor;S.allowApplyBorderColor&&(Ae=S.core.getSeriesBorderColor(d,h));var Le=new t.StiPieSeriesFullElementGeom(this.series,_e,xe,Ae);i.createChildGeoms(),i.childGeoms.add(Le);break}for(var F=0,Oe=0,Pe=S.values;Oe<Pe.length;Oe++){var x=Pe[Oe];if(0!=x){var N=_*Math.abs(x),xe=S.brush;S.allowApplyBrush&&(xe=S.core.getSeriesBrush(ve,h),xe=S.processSeriesBrushes(ve,xe));var Ae=S.borderColor;S.allowApplyBorderColor&&(Ae=S.core.getSeriesBorderColor(ve,h));var Be=this.renderPieElement(e,O,L,Ae,xe,B,N,Math.abs(x),F,S,this.getPieDistance(F),i,new s(a.ticks/S.values.length*F));if(null!=Be){if(null!=S.core.interaction){var Re=new t.StiSeriesInteractionData;Re.fill(i.area,S,F),Be.interaction=Re}i.createChildGeoms(),i.childGeoms.add(Be)}B+=N}ve++,F++}}B=P.startAngle,ve=0,H=0;for(var ke=0,je=n;ke<je.length;ke++)for(var S=je[ke],T=S,F=0,Te=0,Fe=S.values;Te<Fe.length;Te++){var x=Fe[Te],N=_*Math.abs(x),De=null;if(T.showSeriesLabels==t.StiShowSeriesLabels.FromChart&&(De=this.series.chart.seriesLabels),T.showSeriesLabels==t.StiShowSeriesLabels.FromSeries&&(De=P.seriesLabels),null!=this.series.chart&&null!=De&&De.visible){var K=De.sti_as(t.IStiPieSeriesLabels),ae=De.sti_as(t.IStiTwoColumnsPieLabels);if(null!=K){var Q=L;this.getPieDistance(F)>0&&(Q+=T.distance*e.options.zoom);var $=B+N/2,Ie=0;if(null!=ae&&ae.preventIntersection&&(Ie+=G[H]),0==K.step||F%K.step==0){var M=void 0,ee={ref:M},Ne=K.core.renderLabel(T,e,O,Q,0,$,F,Math.abs(x),x,this.getArgumentText(S,F),T.core.getTag(F),!1,ve,h,A,ee,!1,Ie);if(M=ee.ref,null!=Ne&&(i.createChildGeoms(),i.childGeoms.add(Ne)),K.sti_is(t.IStiOutsidePieLabels)&&K.showValue){var Me={ref:M};Ne=K.core.renderLabel(T,e,O,Q,0,$,F,Math.abs(x),x,this.getArgumentText(S,F),T.core.getTag(F),!1,ve,h,A,Me,!0,0),M=Me.ref,null!=Ne&&(i.createChildGeoms(),i.childGeoms.add(Ne))}}}}ve++,B+=N,F++,(0!=x||this.series.chart.seriesLabels.sti_is(t.StiPieSeriesLabels)&&this.series.chart.seriesLabels.showZeros)&&H++}i.area.chart.seriesLabels.preventIntersection&&i.area.chart.seriesLabels.sti_is(t.IStiTwoColumnsPieLabels)&&this.checkIntersectionTwoColumnsLabels(i,J)},m.prototype.checkIntersectionTwoColumnsLabels=function(e,r){for(var i=e.childGeoms,n=this.getPointCenter(r),o=[],a=[],s=0,l=i;s<l.length;s++){var u=l[s];u.sti_is(t.StiSeriesLabelsGeom)&&(u.clientRectangle.x<n.x?o.add(u):a.add(u))}this.checkLabelPosition(o,r),this.checkLabelPosition(a,r)},m.prototype.checkLabelPosition=function(e,t){var r=t.height;e=e.orderBy(function(e){return e.clientRectangle.y});for(var i=0,n=e;i<n.length;i++){var o=n[i];r-=o.clientRectangle.height}for(var a=r/(e.count+1),s=t.y,l=0,u=e;l<u.length;l++){var o=u[l];o.clientRectangle=new p(o.clientRectangle.x,s+a,o.clientRectangle.width,o.clientRectangle.height),o.endPoint=new h(o.endPoint.x,o.clientRectangle.y+o.clientRectangle.height/2),s=o.clientRectangle.y+o.clientRectangle.height}},m.prototype.getGradPerValue=function(e){for(var t=0,r=0,i=0,n=e;i<n.length;i++)for(var o=n[i],a=0,s=o.values;a<s.length;a++){var l=s[a];t+=Math.abs(l),r++}return 0==r&&(r=1),t>0?360/t:360/r},m.prototype.getPercentPerValue=function(e){for(var t=0,r=0,i=e;r<i.length;r++)for(var n=i[r],o=0,a=n.values;o<a.length;o++){var s=a[o];t+=Math.abs(s)}return 1/t*100},m.prototype.getPointCenter=function(e){return new h(e.width/2,e.height/2)},m.prototype.getRadius=function(e,t){var r=this.series;if(r.diameter>0)return r.diameter/2*e.options.zoom;return.95*Math.min(t.width/2,t.height/2)},m.prototype.getPoint=function(e,t,r){var i=Math.PI*r/180;return new h(e.x+Math.cos(i)*t,e.y+Math.sin(i)*t)},m.prototype.getArgumentText=function(t,r){var i=t.arguments.getKeys();if(t.arguments.length>r&&null!=t.arguments.getByIndex(r,i))return t.arguments.getByIndex(r,i).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return String.empty},m.prototype.getPieDistance=function(e){return this.getPieDistance2(this.series,e)},m.prototype.getPieDistance2=function(e,t){if(0==e.distance)return 0;if(0==e.cutPieListValues.length)return e.distance;for(var r=0,i=e.cutPieListValues;r<i.length;r++){if(i[r]==t+1)return e.distance}return 0},m.prototype.getSeriesBrush=function(e,t){var r=f.prototype.getSeriesBrush.call(this,e,t);if(null==r)return this.series.brush;return r},m.prototype.getSeriesBorderColor=function(e,t){var r=f.prototype.getSeriesBorderColor.call(this,e,t);if(null==r)return this.series.borderColor;return r},Object.defineProperty(m.prototype,"localizedName",{get:function(){return u.get("Chart","Pie")},enumerable:!0,configurable:!0}),m}(t.StiSeriesCoreXF);t.StiPieSeriesCoreXF=f}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiArcSegmentGeom,i=e.Base.Drawing.StiGradientBrush,n=e.Base.Drawing.StiGlareBrush,o=e.Base.Context.StiLineSegmentGeom,a=e.System.TimeSpan,s=e.Base.Drawing.StiSolidBrush,l=e.Base.Localization.StiLocalization,u=e.System.Drawing.Rectangle,c=e.System.Drawing.Point,h=e.System.Drawing.Color,p=function(p){function f(e){return p.call(this,e)||this}return __extends(f,p),f.prototype.renderDoughnutElement=function(e,s,l,c,p,f,m,S,g,d,y,b,v,C){if(0==S||isNaN(S))return null;var w=new u(s.x-l,s.y-l,2*l,2*l),x=new u(s.x-c,s.y-c,2*c,2*c);if(w.width<=0&&w.height<=0)return null;b||(f.sti_is(i)&&(f=f.clone(),f.angle=-45),f.sti_is(n)&&(f=f.clone(),f.angle=-45));var _=[],A=null,L=null,O=null,P=null,B=0;y.lighting&&!b&&(O=[],P=[],B=.02*l,A=new i(h.fromArgb(100,h.white),h.fromArgb(50,h.black),45),L=new i(h.fromArgb(50,h.black),h.fromArgb(100,h.white),45));var R=this.series.chart;if(_.add(new r(w,m,S)),S-m!=360&&_.add(new o(this.getPoint(s,l,m+S),this.getPoint(s,c,m+S))),_.add(new r(x,m+S,-S)),S-m!=360&&_.add(new o(this.getPoint(s,c,m),this.getPoint(s,l,m))),b&&(R.isAnimation?e.fillDrawAnimationPath(f,null,_,w,a.fromSeconds(1),C,null):e.fillPath(f,_,w)),null==A||b||(O.add(new o(this.getPoint(s,l-B,m),this.getPoint(s,l,m))),O.add(new r(w,m,S)),O.add(new o(this.getPoint(s,l,m+S),this.getPoint(s,l-B,m+S))),O.add(new r(new u(w.x+B,w.y+B,w.width-2*B,w.height-2*B),m+S,-S)),P.add(new o(this.getPoint(s,c+B,m),this.getPoint(s,c,m))),P.add(new r(x,m,S)),P.add(new o(this.getPoint(s,c,m+S),this.getPoint(s,c+B,m+S))),P.add(new r(new u(x.x-B,x.y-B,x.width+2*B,x.height+2*B),m+S,-S))),!b){return new t.StiDoughnutSeriesElementGeom(v,g,d,y,w,_,O,P,p,f,A,L,m,m+S,l,c,C)}return null},f.prototype.renderSeries=function(e,r,i,n){if(null==n||0==n.length||null==this.series.chart)return;for(var o=t.StiChartHelper.globalDurationElement,l=t.StiChartHelper.globalBeginTimeElement,p=0,f=0,m=n;f<m.length;f++){var S=m[f];null!=S.values&&(p+=S.values.length)}if(0==p)return;for(var g=this.getRadius(e,r),d=this.getPointCenter(r),y=n[0],b=0,v=g/(n.length+1),C=new u(10*e.options.zoom,10*e.options.zoom,r.width-20*e.options.zoom,r.height-20*e.options.zoom),w=C.clone(),x=0,_=g,A=0,L=n;A<L.length;A++){var S=L[A],O=0;x=S.startAngle;for(var P=this.getGradPerValue([S]),B=0,R=S.values;B<R.length;B++){var k=R[B],j=this.getPercentPerValue([S]),T=P*Math.abs(k),F=null;if(S.showSeriesLabels==t.StiShowSeriesLabels.FromChart&&(F=this.series.chart.seriesLabels),S.showSeriesLabels==t.StiShowSeriesLabels.FromSeries&&(F=y.seriesLabels),null!=this.series.chart&&null!=F&&F.visible){var D=F.sti_as(t.IStiPieSeriesLabels);if(null!=D&&D.visible){var I=_-v,N=void 0,M={ref:N};D.core.renderLabel(S,e,d,_,I,x+T/2,O,Math.abs(k),k,this.getArgumentText(S,O),y.core.getTag(O),!0,b,p,j,M,!1,0),N=M.ref,N.isEmpty||(C=u.union(C,N))}}b++,x+=T,O++}_-=1.2*v}var E=0;E=Math.min(E,C.left-w.left),E=Math.min(E,w.right-C.right),E=Math.min(E,C.top-w.top),E=Math.min(E,w.bottom-C.bottom),g+=E;var V=this.series.chart;if(y.showShadow&&!V.isAnimation){var X=new u(d.x-g,d.y-g,2*g,2*g),G=e.createShadowGraphics(),z=new s(h.fromArgb(100,h.black));v=g/(n.length+1),_=g;for(var J=0,H=n;J<H.length;J++){var S=H[J];x=S.startAngle;for(var P=this.getGradPerValue([S]),O=0,Y=0,W=S.values;Y<W.length;Y++){var k=W[Y],T=P*Math.abs(k);this.renderDoughnutElement(G,new c(X.width/2,X.height/2),_,_-v,h.black,z,x,T,Math.abs(k),O,S,!0,i,new a(l.ticks)),x+=T,O++}_-=1.2*v}var Z=new t.StiPieSeriesShadowElementGeom(y,X,.01*g+2*e.options.zoom,G,o,l);i.createChildGeoms(),i.childGeoms.add(Z)}v=g/(n.length+1),b=0,_=g;for(var U=0,q=n;U<q.length;U++){var S=q[U];x=S.startAngle;for(var P=this.getGradPerValue([S]),K=0,Q=-1,$=0,ee=0,te=S.values;ee<te.length;ee++){var k=te[ee];0==k||null==k||isNaN(k)||1==++K&&(Q=$),$++}if(0==K);else{if(1==K){b=-1!=Q?Q:0;var re=S.brush;S.allowApplyStyle&&(re=S.core.getSeriesBrush(b,p),re=S.processSeriesBrushes(b,re));var ie=y.core.getSeriesBorderColor(b,p);if(Q>=S.values.length)continue;var ne=this.renderDoughnutElement(e,d,_,_-v,ie,re,0,360,S.values[Q],Q,S,!1,i,new a(l.ticks));null!=ne&&(i.createChildGeoms(),i.childGeoms.add(ne)),_-=1.2*v;continue}for(var O=0,oe=0,ae=S.values;oe<ae.length;oe++){var k=ae[oe],T=P*Math.abs(k);if(0!=k){var re=S.brush;S.allowApplyStyle&&(re=S.core.getSeriesBrush(b,p),re=S.processSeriesBrushes(b,re));var ie=S.borderColor;S.allowApplyBorderColor&&(ie=S.core.getSeriesBorderColor(b,p));var ne=this.renderDoughnutElement(e,d,_,_-v,ie,re,x,T,Math.abs(k),O,S,!1,i,new a(l.ticks/S.values.length*b));if(null!=ne){if(null!=S.core.interaction){var se=new t.StiSeriesInteractionData;se.fill(i.area,S,O),ne.interaction=se}i.createChildGeoms(),i.childGeoms.add(ne)}x+=T}b++,O++}}_-=1.2*v}b=0,_=g;for(var le=0,ue=n;le<ue.length;le++){var S=ue[le],O=0;x=S.startAngle;for(var P=this.getGradPerValue([S]),ce=0,he=S.values;ce<he.length;ce++){var k=he[ce],j=this.getPercentPerValue([S]),T=P*Math.abs(k),F=null;if(S.showSeriesLabels==t.StiShowSeriesLabels.FromChart&&(F=this.series.chart.seriesLabels),S.showSeriesLabels==t.StiShowSeriesLabels.FromSeries&&(F=y.seriesLabels),null!=this.series.chart&&null!=F&&F.visible){var D=F.sti_as(t.IStiPieSeriesLabels);if(null!=D&&D.visible&&(0==D.step||O%D.step==0)){var N=void 0,I=_-v,M={ref:N},pe=D.core.renderLabel(S,e,d,_,I,x+T/2,O,Math.abs(k),k,this.getArgumentText(S,O),this.getTag(O),!1,b,p,j,M,!1,0);N=M.ref,null!=pe&&(pe.duration=o,pe.beginTime=new a(l.ticks/S.values.length*b),i.createChildGeoms(),i.childGeoms.add(pe))}}b++,x+=T,O++}_-=1.2*v}},f.prototype.getGradPerValue=function(e){for(var t=0,r=0,i=e[0].values;r<i.length;r++){var n=i[r];t+=Math.abs(n)}return 360/t},f.prototype.getPercentPerValue=function(e){for(var t=0,r=0,i=e[0].values;r<i.length;r++){var n=i[r];t+=Math.abs(n)}return 1/t*100},f.prototype.getArgumentText=function(t,r){if(t.arguments.length>r)return t.arguments[r].toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return String.empty},Object.defineProperty(f.prototype,"localizedName",{get:function(){return l.get("Chart","Doughnut")},enumerable:!0,configurable:!0}),f}(t.StiPieSeriesCoreXF);t.StiDoughnutSeriesCoreXF=p}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.Base.Drawing.StiSolidBrush,n=e.Base.Drawing.StiBrush,o=e.Base.Localization.StiLocalization,a=e.System.Drawing.Rectangle,s=e.System.Drawing.Color,l=function(e){function l(t){return e.call(this,t)||this}return __extends(l,e),l.prototype.applyStyle=function(t,r){if(e.prototype.applyStyle.call(this,t,r),this.series.allowApplyStyle){var i=t.core.getColumnBrush(r);this.series.brush=i;var o=t.core.getColumnBorder(r);o==s.transparent&&(o=n.toColor(i)),this.series.borderColor=o}},l.prototype.renderSeries=function(e,n,o,s){if(null==s||0==s.length||null==this.series.chart)return;for(var l=o.area,u=l.axisCore.getDividerY(),c=t.StiChartHelper.globalBeginTimeElement,h=0,p=s;h<p.length;h++)for(var f=p[h],m=f.valuesOpen,S=f.valuesClose,g=f.valuesHigh,d=f.valuesLow,y=Math.min(Math.min(m.length,S.length),Math.min(g.length,d.length)),b=f.arguments.length,v=Math.min(y,b),C=f.arguments.getKeys(),w=0;w<v;w++){var x=m[w],_=S[w],A=g[w],L=d[w];if(null==x||null==_||null==A||null==L)continue;for(var O=0,P=0,B=l.xAxis.info.stripLines.list;P<B.length;P++){var R=B[P];if(f.arguments.getByIndex(w,C).toString()==R.valueObject.toString())break;O++}var k=l.xAxis.info.dpi,j=new i,T=void 0;if(x>_?(j=f.brush,T=f.borderColor,A<x&&(A=x),_<L&&(L=_)):(j=f.brushNegative,T=f.borderColorNegative,L>x&&(L=x),_>A&&(A=_),x=S[w],_=m[w]),l.reverseVert&&x>_){var F=x;x=_,_=F,F=L,L=A,A=F}var D=l.yAxis.info.dpi,I=Math.abs(u-x*D),N=Math.abs(u-_*D),M=Math.abs(u-A*D),E=Math.abs(u-L*D),V=O*k,X=new a(V-k/4,I,k/2,N-I);j=f.processSeriesBrushes(w,j);var G=new t.StiCandlestickSeriesElementGeom(o,f,X,I,N,M,E,V,O-1,j,T,new r(c.ticks/y*w));if(null!=G&&null!=f.core.interaction){var z=new t.StiSeriesInteractionData;z.fill(o.area,f,w),G.interaction=z}o.createChildGeoms(),o.childGeoms.add(G)}},Object.defineProperty(l.prototype,"localizedName",{get:function(){return o.get("Chart","Candlestick")},enumerable:!0,configurable:!0}),l}(t.StiSeriesCoreXF);t.StiCandlestickSeriesCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Rectangle,o=function(e){function o(t){return e.call(this,t)||this}return __extends(o,e),o.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r),this.series.allowApplyStyle&&(this.series.lineColor=r)},o.prototype.renderSeries=function(e,i,o,a){if(null==a||0==a.length||null==this.series.chart)return;for(var s=o.area,l=s.axisCore.getDividerY(),u=t.StiChartHelper.globalBeginTimeElement,c=0,h=a;c<h.length;c++)for(var p=h[c],f=p.valuesOpen,m=p.valuesClose,S=p.valuesHigh,g=p.valuesLow,d=Math.min(Math.min(f.length,m.length),Math.min(S.length,g.length)),y=p.arguments.length,b=Math.min(d,y),v=0;v<b;v++){for(var C=f[v],w=m[v],x=S[v],_=g[v],A=0,L=p.arguments.getKeys(),O=0,P=s.xAxis.info.stripLines.list;O<P.length;O++){var B=P[O];if(p.arguments.getByIndex(v,L).toString()==B.valueObject.toString())break;A++}var R=s.xAxis.info.dpi,k=p.lineColor;if(!p.allowApplyColorNegative&&C<w&&(k=p.lineColorNegative),null==C||null==w||null==x||null==_)continue;var j=s.yAxis.info.dpi,T=Math.abs(l-C*j),F=Math.abs(l-w*j),D=Math.abs(l-x*j),I=Math.abs(l-_*j),N=A*R;if(s.reverseHor){var M=T;T=F,F=M}var E=new n(N-R/3,Math.min(D,I),2*R/3,Math.abs(I-D));k=p.processSeriesColors(v,k);var V=new t.StiStockSeriesElementGeom(o,p,E,T,F,D,I,N,A-1,k,new r(u.ticks/d*v));if(null!=V&&null!=p.core.interaction){var X=new t.StiSeriesInteractionData;X.fill(o.area,p,v),V.interaction=X}o.createChildGeoms(),o.childGeoms.add(V)}},Object.defineProperty(o.prototype,"localizedName",{get:function(){return i.get("Chart","Stock")},enumerable:!0,configurable:!0}),o}(t.StiSeriesCoreXF);t.StiStockSeriesCoreXF=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiGlareBrush,i=e.Base.Drawing.StiGradientBrush,n=e.System.TimeSpan,o=e.System.Drawing.Point,a=e.Base.Localization.StiLocalization,s=e.System.Drawing.Rectangle,l=function(e){function l(t){return e.call(this,t)||this}return __extends(l,e),l.prototype.applyStyle=function(t,n){e.prototype.applyStyle.call(this,t,n);var o=this.series;o.allowApplyStyle&&(o.brush=t.core.getColumnBrush(n),o.brush.sti_is(i)&&(o.brush.angle+=90),o.brush.sti_is(r)&&(o.brush.angle+=90),o.borderColor=t.core.getColumnBorder(n))},l.prototype.renderSeries=function(e,r,i,a){if(null==a||0==a.length||null==this.series.chart)return;for(var l=[],u=[],c=i.area,h=c,p=this.series,f=h.axisCore.getDividerX(),m=0,S=h.axisCore.valuesCount*a.length,g=h.xAxis.info.dpi,d=h.axisCore.valuesCount,y=h.yAxis.info.stripPositions.getKeys(),b=0;b<d;b++){var v=0,C=0,w={ref:v},x={ref:C};this.calculateTotalWidth(a,b,w,x),v=w.ref,C=x.ref;var _=h.yAxis.info.stripPositions.getByIndex(b+1,y)-h.yAxis.info.step/2,A=h.yAxis.info.step-h.yAxis.info.step*(1-p.width),L=_+(h.yAxis.info.step-A)/2,O=0,P=0;if(0==a.length)return;if(a[0].showShadow){for(var B=0;B<a.length;B++)if(b<a[B].values.length){var R=a[B],k=h.reverseVert?R.values[b]:R.values[R.values.length-b-1];h.reverseHor&&null!=k&&(k=-k),k>0?O+=k:P+=k}if(this.series.sti_is(t.IStiFullStackedBarSeries)){var j=h.reverseHor?C:v,T=h.reverseHor?v:C;if(j>0&&T>0){var F=new s(-8,L,r.width+8,A),D=new t.StiStackedBarSeriesShadowElementGeom(a[0],F,!1,!1);i.createChildGeoms(),i.childGeoms.add(D)}else if(j>0){var F=new s(h.axisCore.getDividerX()-8,L,r.width-h.axisCore.getDividerX()+8,A),D=new t.StiStackedBarSeriesShadowElementGeom(a[0],F.clone(),!1,!1);i.createChildGeoms(),i.childGeoms.add(D)}else if(T>0){var F=new s(-8,L,h.axisCore.getDividerX()+8,A),D=new t.StiStackedBarSeriesShadowElementGeom(a[0],F.clone(),!1,!1);i.createChildGeoms(),i.childGeoms.add(D)}}else{if(O>0){var F=new s(f,L,O*g,A);F.x-=7,F.width+=7;var D=new t.StiStackedBarSeriesShadowElementGeom(a[0],F,!1,!0);i.createChildGeoms(),i.childGeoms.add(D)}if(P<0){var F=new s(f+P*g,L,-P*g,A),D=new t.StiStackedBarSeriesShadowElementGeom(a[0],F,!0,!1);i.createChildGeoms(),i.childGeoms.add(D)}}}O=0,P=0;for(var B=0;B<a.length;B++){var R=a[B];if(b<R.values.length){var I=h.reverseVert?R.values[b]:R.values[R.values.length-b-1],k=null!=I?-I:I;this.series.sti_is(t.IStiFullStackedBarSeries)&&(0==v&&0==C||null==k||(g=k>0?h.axisCore.getDividerX()/C:(r.width-h.axisCore.getDividerX())/v)),h.reverseHor&&null!=k&&(k=-k);var N=k*g,M=-N+f;k>0?M-=O:(M=P+f,N=-N),!R.showZeros||0!=k&&null!=k||(N=Math.max(e.options.zoom,1),h.reverseHor||(M-=N));var E=new s(M,L,N,A);E=this.correctRect(E,r.clone());var V=i.view.clientRectangle.clone();V.x=0,V.y=0;var X=E.clone();if(X.x+=i.clientRectangle.x,X.y+=i.clientRectangle.y,X.bottom>V.y&&X.y<V.bottom||this.series.chart.area.yAxis.range.auto){var G=R.core.getSeriesBrush(m,S);R.allowApplyBrushNegative&&k>0&&(G=R.brushNegative),G=R.processSeriesBrushes(d-1-b,G);var z=t.StiChartHelper.globalBeginTimeElement;if(0!=E.height&&Math.round(E.width,2)>0&&null!=G){var J=R.core.getSeriesBorderColor(m,S),H=new t.StiStackedBarSeriesElementGeom(i,k,b,G,J,R,E,new n(z.ticks/h.core.valuesCount*b));if(null!=R.core.interaction){var Y=new t.StiSeriesInteractionData;Y.fill(h,R,b),H.interaction=Y}u.add(H)}var W=R.core.getSeriesLabels();if(null!=W&&W.visible&&Math.round(E.width,2)>0){var Z=new o(E.x,E.y+E.height/2),U=new o(E.right,E.y+E.height/2);if(k<0&&(U.x=E.x,Z.x=E.right),k<0&&(U.x=E.x,Z.x=E.right),0==W.step||b%W.step==0){var q=h.xAxis.info.stripLines.count>b?h.xAxis.info.stripLines.getByindex(b):null,K=W.core.renderLabel(R,e,Z,U,b,k,I,h.axisCore.getArgumentLabel(q,R),R.core.getTag(b),m,S,r);null!=K&&l.add(K)}}}k>0?O+=N:P+=N,m++}}}for(var Q=u.count-1;Q>=0;Q--){var $=u[Q];i.createChildGeoms(),i.childGeoms.add($)}for(var ee=0,te=l;ee<te.length;ee++){var K=te[ee];i.createChildGeoms(),i.childGeoms.add(K),K.clientRectangle=this.checkLabelsRect(K.seriesLabels,i,K.clientRectangle.clone())}},l.prototype.calculateTotalWidth=function(e,r,i,n){var o=0,a=0;if(this.series.sti_is(t.IStiFullStackedBarSeries))for(var s=0,l=e;s<l.length;s++){var u=l[s];if(r<u.values.length){var c=this.series.chart.area.reverseVert?u.values[r]:u.values[u.values.length-r-1];c>0?o+=c:a+=Math.abs(c)}}i.ref=o,n.ref=a},l.prototype.correctRect=function(e,t){if(e.x>t.width||e.right<0)return e.width=0,e;if(e.x<0){var r=-e.x;e.x+=r,e.width-=r}if(e.right>t.width){var r=e.right-t.width;e.width-=r}return e},l.prototype.getSeriesBrush=function(t,r){var i=this.series,n=e.prototype.getSeriesBrush.call(this,t,r);if(null==n)return i.brush;return n},l.prototype.getSeriesBorderColor=function(t,r){var i=this.series,n=e.prototype.getSeriesBorderColor.call(this,t,r);if(null==n)return i.borderColor;return n},Object.defineProperty(l.prototype,"localizedName",{get:function(){return a.get("Chart","StackedBar")},enumerable:!0,configurable:!0}),l}(t.StiSeriesCoreXF);t.StiStackedBarSeriesCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedBar")},enumerable:!0,configurable:!0}),t}(t.StiStackedBarSeriesCoreXF);t.StiFullStackedBarSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Collections.Hashtable,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.Base.Drawing.StiSolidBrush,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=function(e){function l(t){return e.call(this,t)||this}return __extends(l,e),l.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.lineColor=r,i.lighting=t.core.seriesLighting,i.marker.visible=t.core.markerVisible,null!=i.marker&&(i.marker.brush=new o(n.light(r,100)),i.marker.borderColor=n.dark(r,100)),null!=i.lineMarker&&(i.lineMarker.brush=new o(n.light(r,50)),i.lineMarker.borderColor=n.dark(r,150)))},l.prototype.clipLinePoints=function(e,t,r,i,n,o,a,l){var u=n.ref,c=o.ref,h=a.ref,p=l.ref;if(this.series.chart.area.xAxis.range.auto)return h=0,p=r.length,u=r,c=i,n.ref=u,o.ref=c,a.ref=h,void(l.ref=p);h=-1,p=-1;var f=t.view.clientRectangle.clone();f.x=0,f.y=0;for(var m=0,S=0,g=r;S<g.length;S++){var d=g[S],y=new s(d.x,d.y);if(y.x+=t.clientRectangle.x,y.y+=t.clientRectangle.y,f.x<=y.x&&y.x<f.right&&-1==h&&(h=m),!(f.x<=y.x&&y.x<f.right)&&-1!=h){p=m;break}m++}-1==p&&(p=r.length-1),h--,p++,h<0&&(h=0),p>=r.length&&(p=r.length-1);var b=p-h+1;if(b==r.length)return u=r,c=i,n.ref=u,o.ref=c,a.ref=h,void(l.ref=p);u=Array.create(s,b,!0),Array.copy(r,h,u,b),null!=i?(c=Array.create(s,b,!0),Array.copy(i,h,c,b)):c=null,n.ref=u,o.ref=c,a.ref=h,l.ref=p},l.prototype.renderMarkers=function(e,r,n){var l=r.area,u=this.series;if(0==n.length)return;if(null!=u.marker&&u.marker.visible)for(var c=new o(a.fromArgb(55,a.black)),h=new i(u.marker.borderColor),p=0,f=0,m=n;f<m.length;f++){var S=m[f];if(null!=S){var g=l.reverseHor?this.series.values[this.series.values.length-p-1]:this.series.values[p];null==g&&u.showNulls&&(g=0);var d=r.view.clientRectangle.clone();d.x=0,d.y=0,d.inflate(10,10);var y=new s(S.x,S.y);if(y.x+=r.clientRectangle.x,y.y+=r.clientRectangle.y,d.contains(y.x,y.y)){var b=new t.StiMarkerGeom(this.series,p,g,S,u.marker,this.series.showShadow,e.options.zoom);if(null!=b){if(null!=u.core.interaction){var v=new t.StiSeriesInteractionData;v.fill(l,u,p),b.interaction=v}r.createChildGeoms(),r.childGeoms.add(b)}}}p++}},l.prototype.renderLines=function(e,t,r){},l.prototype.renderAreas=function(e,t,r,i){},l.prototype.renderSeries=function(e,i,n,o){var a=this.series,l=[],u=n.area;if(null==o||0==o.length||null==this.series.chart)return;var c=u,h=c.axisCore.getDividerY(),p=c.xAxis.core.getStartFromZero(),f=new r,m=new r,S=[],g=c.yAxis.info.dpi;this.series.yAxis==t.StiSeriesYAxis.RightYAxis&&(g=c.yRightAxis.info.dpi);for(var d=0;d<o.length;d++){for(var y=o[d],b=y.values.length,v=Array.create(s,b,!0),C=Array.create(s,b,!0),w=0;w<b;w++){var x=p?c.xAxis.info.stripPositions[w+1]:c.xAxis.info.stripPositions[w],_=c.reverseHor?y.values[y.values.length-w-1]:y.values[w];if(null!=_||y.showNulls){null==_&&y.showNulls&&(_=0);var A=0,L=0,O={ref:A},P={ref:L};this.calculateTotalHeight(o,w,O,P),A=O.ref,L=P.ref,a.core.isFullStacked&&(0==A&&0==L||null==_||(g=_>=0?c.axisCore.getDividerY()/A:(i.height-c.axisCore.getDividerY())/L)),c.reverseVert&&null!=_&&(_=-_);var B=-_*g,R=0;_>=0?null!=f.get(w)&&(R=f.get(w)):null!=m[w]&&(R=m[w]),B+=R,_>=0?f.set(w,B):m[w]=B,C[w]=new s(x,R+c.axisCore.getDividerY()),v[w]=new s(x,B+c.axisCore.getDividerY())}else C[w]=null,v[w]=null}if(v.length>0&&C.length>0){var k=void 0,j=void 0,T=null,F=null,D={ref:T},I={ref:F},N={ref:k},M={ref:j};this.clipLinePoints(e,n,C,v,D,I,N,M),T=D.ref,F=I.ref,k=N.ref,j=M.ref,y.core.renderAreas(e,n,T,F)}S.add(v)}for(var E=0,V=Array.create(Number,c.axisCore.valuesCount),X=Array.create(Number,c.axisCore.valuesCount),w=0;w<c.axisCore.valuesCount;w++)V[w]=h,X[w]=h;for(var G=0,z=S;G<z.length;G++){var J=z[G],k=void 0,j=void 0,H=null,F=null,Y={ref:H},I={ref:F},N={ref:k},M={ref:j};this.clipLinePoints(e,n,J,null,Y,I,N,M),H=Y.ref,F=I.ref,k=N.ref,j=M.ref;var y=o[E];y.core.renderLines(e,n,H);var W=y.core.getSeriesLabels();if(null!=W&&W.visible)for(var w=k;w<=j;w++)if(w<y.values.length){var _=y.values[w];null==_&&a.showNulls&&(_=0);var Z=h;_>0?(Z=V[w],null!=J[w]&&(V[w]=J[w].y)):(Z=X[w],null!=J[w]&&(X[w]=J[w].y));var U=_;c.reverseVert&&null!=_&&(U=-U);var q=J[w];if(null!=q){var K=new s(q.x,Z);if(0==W.step||w%W.step==0){var Q=W.core.renderLabel(y,e,q,K,w,U,_,c.axisCore.getArgumentLabel(c.xAxis.info.stripLines.getByindex(w),y),y.core.getTag(w),0,1,i);null!=Q&&l.add(Q)}}}E++}for(var $=0,ee=l;$<ee.length;$++){var Q=ee[$];n.createChildGeoms(),n.childGeoms.add(Q),Q.clientRectangle=this.checkLabelsRect(Q.seriesLabels,n,Q.clientRectangle.clone())}},l.prototype.calculateTotalHeight=function(e,t,r,i){var n=this.series,o=0,a=0;if(n.core.isFullStacked)for(var s=0,l=e;s<l.length;s++){var u=l[s];if(t<u.values.length){var c=this.series.chart.area.reverseHor?u.values[u.values.length-t-1]:u.values[t];null==c&&n.showNulls&&(c=0),c>0?o+=c:a+=Math.abs(c)}}r.ref=o,i.ref=a},l.prototype.correctPoint=function(e,t){if(e.y<0)return new s(e.x,0);if(e.y>t.height)return new s(e.x,t.height);return e},l.prototype.getSeriesBrush=function(t,r){var i=this.series,a=e.prototype.getSeriesBrush.call(this,t,r);if(null==a)return new o(n.dark(i.lineColor,20));return a},l.prototype.getSeriesBorderColor=function(t,r){var i=this.series,n=e.prototype.getSeriesBorderColor.call(this,t,r);if(null==n)return i.lineColor;return n},Object.defineProperty(l.prototype,"isFullStacked",{get:function(){return this.sti_is(t.StiFullStackedAreaSeriesCoreXF)||this.sti_is(t.StiFullStackedLineSeriesCoreXF)||this.sti_is(t.StiFullStackedSplineSeriesCoreXF)||this.sti_is(t.StiFullStackedSplineAreaSeriesCoreXF)},enumerable:!0,configurable:!0}),l}(t.StiSeriesCoreXF);t.StiStackedBaseLineSeriesCoreXF=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.renderLines=function(e,r,i){if(null==i||i.length<=1)return;var n=new t.StiStackedLineSeriesGeom(r,i,this.series);null!=n&&(r.createChildGeoms(),r.childGeoms.add(n)),this.renderMarkers(e,r,i)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedLine")},enumerable:!0,configurable:!0}),i}(t.StiStackedBaseLineSeriesCoreXF);t.StiStackedLineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},i.prototype.renderAreas=function(e,r,i,n){if(null==i||i.length<=1)return;if(null==n||n.length<=1)return;var o=new t.StiStackedAreaSeriesGeom(r,i,n,this.series);null!=o&&(r.createChildGeoms(),r.childGeoms.add(o))},i.prototype.getSeriesBrush=function(t,r){var i=this.series,n=e.prototype.getSeriesBrush.call(this,t,r);if(null==n)return i.brush;return n},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedArea")},enumerable:!0,configurable:!0}),i}(t.StiStackedLineSeriesCoreXF);t.StiStackedAreaSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedArea")},enumerable:!0,configurable:!0}),t}(t.StiStackedAreaSeriesCoreXF);t.StiFullStackedAreaSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.System.Drawing.Point,n=e.Base.Localization.StiLocalization,o=e.System.Drawing.Rectangle,a=function(e){function a(t){return e.call(this,t)||this}return __extends(a,e),a.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getColumnBrush(r),i.borderColor=t.core.getColumnBorder(r))},a.prototype.renderSeries=function(e,n,a,s){if(null==s||0==s.length||null==this.series.chart)return;var l=[],u=[],c=a.area,h=c,p=this.series,f=h.xAxis.core.getStartFromZero(),m=h.axisCore.getDividerY(),S=0,g=h.axisCore.valuesCount*s.length,d=h.yAxis.info.dpi;this.series.yAxis==t.StiSeriesYAxis.RightYAxis&&(d=h.yRightAxis.info.dpi);for(var y=0;y<h.axisCore.valuesCount;y++){var b=0,v=0,C={ref:b},w={ref:v};this.calculateTotalHeight(s,y,C,w),b=C.ref,v=w.ref;var x=f?h.xAxis.info.stripPositions[y+1]:h.xAxis.info.stripPositions[y];x-=h.xAxis.info.step/2;var _=h.xAxis.info.step-h.xAxis.info.step*(1-p.width),A=x+(h.xAxis.info.step-_)/2,L=0,O=0;if(0==s.length)return;if(s[0].showShadow){for(var P=0;P<s.length;P++)if(y<s[P].values.length){var B=s[P],R=h.reverseHor?B.values[B.values.length-y-1]:B.values[y];null!=R&&(h.reverseVert&&(R=-R),R>0?L+=R:O+=R)}if(this.sti_is(t.StiFullStackedColumnSeriesCoreXF)){var k=h.reverseVert?v:b,j=h.reverseVert?b:v;if(k>0&&j>0){var T=new o(A,-8,_,n.height+8),F=new t.StiStackedColumnSeriesShadowElementGeom(s[0],T,!1,!1);a.createChildGeoms(),a.childGeoms.add(F)}else if(k>0){var T=new o(A,-8,_,h.axisCore.getDividerY()+8),F=new t.StiStackedColumnSeriesShadowElementGeom(s[0],T,!1,!1);a.createChildGeoms(),a.childGeoms.add(F)}else if(j>0){var T=new o(A,h.axisCore.getDividerY()-8,_,n.height-h.axisCore.getDividerY()+8),F=new t.StiStackedColumnSeriesShadowElementGeom(s[0],T,!1,!1);a.createChildGeoms(),a.childGeoms.add(F)}}else{if(L>0){var T=new o(A,-L*d+m,_,L*d),F=new t.StiStackedColumnSeriesShadowElementGeom(s[0],T,!0,!1);a.createChildGeoms(),a.childGeoms.add(F)}if(O<0){var T=new o(A,m,_,-O*d);T.y-=7,T.height+=7;var F=new t.StiStackedColumnSeriesShadowElementGeom(s[0],T,!1,!0);a.createChildGeoms(),a.childGeoms.add(F)}}}L=0,O=0;for(var D=t.StiChartHelper.globalBeginTimeElement,P=0;P<s.length;P++){var B=s[P];if(y<B.values.length){var R=h.reverseHor?B.values[B.values.length-y-1]:B.values[y];this.series.sti_is(t.IStiFullStackedColumnSeries)&&(0==b&&0==v||null==R||(d=R>=0?h.axisCore.getDividerY()/b:(n.height-h.axisCore.getDividerY())/v)),h.reverseVert&&null!=R&&(R=-R);var I=R*d,N=-I+m;R>0?N-=L:(N=O+m,I=-I),!p.showZeros||0!=R&&null!=R||(I=Math.max(e.options.zoom,1),h.reverseVert||(N-=I));var M=new o(A,N,_,I);M=this.correctRect(M,n);var E=a.view.clientRectangle.clone();E.x=0,E.y=0;var V=M.clone();if(V.x+=a.clientRectangle.x,V.y+=a.clientRectangle.y,V.right>E.x&&V.x<E.right||this.series.chart.area.xAxis.range.auto){var X=B.core.getSeriesBrush(S,g);if(B.allowApplyBrushNegative&&R<0&&(X=B.brushNegative),X=B.processSeriesBrushes(y,X),0!=M.width&&Math.round(M.height,2)>0&&null!=X){var G=B.core.getSeriesBorderColor(S,g),z=new t.StiStackedColumnSeriesElementGeom(a,R,y,X,G,B,M,new r(D.ticks/h.core.valuesCount*y));if(null!=B.core.interaction){var J=new t.StiSeriesInteractionData;J.fill(h,B,y),z.interaction=J}u.add(z)}var H=B.core.getSeriesLabels();if(null!=H&&H.visible&&Math.round(M.height,2)>0){var Y=new i(M.x+M.width/2,M.y),W=new i(M.x+M.width/2,M.bottom),Z=B.values[y];if(h.reverseVert&&null!=Z&&(Z=-R),R<0&&(W.y=M.y,Y.y=M.bottom),0==H.step||y%H.step==0){var U=H.core.renderLabel(B,e,Y,W,y,R,Z,h.axisCore.getArgumentLabel(h.xAxis.info.stripLines.getByindex(y),B),B.core.getTag(y),S,g,n);null!=U&&l.add(U)}}}R>0?L+=I:O+=I,S++}}}for(var q=u.count-1;q>=0;q--){var K=u[q];a.createChildGeoms(),a.childGeoms.add(K)}for(var Q=0,$=l;Q<$.length;Q++){var U=$[Q];a.createChildGeoms(),a.childGeoms.add(U),U.clientRectangle=this.checkLabelsRect(U.seriesLabels,a,U.clientRectangle.clone())}},a.prototype.calculateTotalHeight=function(e,r,i,n){var o=0,a=0;if(this.series.sti_is(t.IStiFullStackedColumnSeries))for(var s=0,l=e;s<l.length;s++){var u=l[s];if(r<u.values.length){var c=this.series.chart.area.reverseHor?u.values[u.values.length-r-1]:u.values[r];c>0?o+=c:a+=Math.abs(c)}}i.ref=o,n.ref=a},a.prototype.correctRect=function(e,t){if(e.y>t.height||e.bottom<0)return e.height=0,e;if(e.top<0){var r=-e.top;e.y+=r,e.height-=r}if(e.bottom>t.height){var r=e.bottom-t.height;e.height-=r}return e},a.prototype.getSeriesBrush=function(t,r){var i=this.series,n=e.prototype.getSeriesBrush.call(this,t,r);if(null==n)return i.brush;return n},a.prototype.getSeriesBorderColor=function(t,r){var i=this.series,n=e.prototype.getSeriesBorderColor.call(this,t,r);if(null==n)return i.borderColor;return n},Object.defineProperty(a.prototype,"localizedName",{get:function(){return n.get("Chart","StackedColumn")},enumerable:!0,configurable:!0}),a}(t.StiSeriesCoreXF);t.StiStackedColumnSeriesCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedColumn")},enumerable:!0,configurable:!0}),t}(t.StiStackedColumnSeriesCoreXF);t.StiFullStackedColumnSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedLine")},enumerable:!0,configurable:!0}),t}(t.StiStackedLineSeriesCoreXF);t.StiFullStackedLineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.renderLines=function(e,r,i){if(null==i||i.length<=1)return;var n=new t.StiStackedSplineSeriesGeom(r,i,this.series);r.createChildGeoms(),r.childGeoms.add(n),this.renderMarkers(e,r,i)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedSpline")},enumerable:!0,configurable:!0}),i}(t.StiStackedBaseLineSeriesCoreXF);t.StiStackedSplineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},i.prototype.renderAreas=function(e,r,i,n){if(null==i||i.length<=1)return;if(null==n||n.length<=1)return;var o=new t.StiStackedSplineAreaSeriesGeom(r,i,n,this.series);null!=o&&(r.createChildGeoms(),r.childGeoms.add(o))},i.prototype.getSeriesBrush=function(t,r){var i=this.series,n=e.prototype.getSeriesBrush.call(this,t,r);if(null==n)return i.brush;return n},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","StackedSplineArea")},enumerable:!0,configurable:!0}),i}(t.StiStackedSplineSeriesCoreXF);t.StiStackedSplineAreaSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedSplineArea")},enumerable:!0,configurable:!0}),t}(t.StiStackedSplineAreaSeriesCoreXF);t.StiFullStackedSplineAreaSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return r.get("Chart","FullStackedSpline")},enumerable:!0,configurable:!0}),t}(t.StiStackedSplineSeriesCoreXF);t.StiFullStackedSplineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiCloseFigureSegmentGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.System.TimeSpan,o=e.System.Drawing.Point,a=e.Base.Localization.StiLocalization,s=function(s){function l(e){return s.call(this,e)||this}return __extends(l,s),l.prototype.applyStyle=function(e,t){s.prototype.applyStyle.call(this,e,t);var r=this.series;r.allowApplyStyle&&(r.brush=e.core.getColumnBrush(t),r.borderColor=e.core.getColumnBorder(t))},l.prototype.renderSeries=function(e,r,i,o){if(null==o||0==o.length||null==this.series.chart)return;for(var a=0,s=0,l=o;s<l.length;s++){var u=l[s];null!=u.values&&(a+=u.values.length)}if(0==a)return;for(var c=0,h=0,p=o;h<p.length;h++){var u=p[h],f=u,m=this.getValues(f);this.labels=this.series.chart.seriesLabels.sti_as(t.IStiFunnelSeriesLabels);var S=this.getSingleValueHeight(m,r),g=this.getSingleValueWidth(f,r),d=r.clone(),y=r.clone();if(null!=this.labels&&this.labels.visible){c=0;for(var b=0;b<m.length;b++){if(u.values.length>b){var v=m[b],C=b==m.length-1?v:m[b+1];if(0==this.labels.step||b%this.labels.step==0){var w={ref:d},x=this.labels.core.renderLabel(u,e,b,v,C,this.getArgumentText(u,b),u.core.getTag(b),c,a,r,S,g,1,w);d=w.ref,y=d.width<y.width?d:y}}c++}d=y}c=0,S=this.getSingleValueHeight(m,d),g=this.getSingleValueWidth(f,d);var _=void 0;_=null!=this.labels&&this.labels.sti_is(t.StiOutsideLeftFunnelLabels)?d.width/2+d.x:d.width/2;for(var A=t.StiChartHelper.globalBeginTimeElement,L=0;L<m.length;L++){var v=m[L],C=L==m.length-1?v:m[L+1],O=f.brush;f.allowApplyBrush&&(O=f.core.getSeriesBrush(c,a),O=f.processSeriesBrushes(c,O));var P=f.borderColor;f.allowApplyBorderColor&&(P=f.core.getSeriesBorderColor(c,a));var B=this.renderFunnelElement(P,O,v,C,L,u,i,d,S,g,new n(A.ticks/u.values.length*L));if(null!=B){if(null!=u.core.interaction){var R=new t.StiSeriesInteractionData;R.fill(i.area,u,L),B.interaction=R}i.createChildGeoms(),i.childGeoms.add(B)}c++}if(null!=this.labels&&this.labels.visible){c=0;for(var b=0;b<m.length;b++){if(u.values.length>b){var v=m[b],C=b==m.length-1?v:m[b+1];if(0==this.labels.step||b%this.labels.step==0){var w={ref:d},x=this.labels.core.renderLabel(u,e,b,v,C,this.getArgumentText(u,b),u.core.getTag(b),c,a,r,S,g,_,w);d=w.ref,null!=x&&(i.createChildGeoms(),i.childGeoms.add(x),x.clientRectangle=this.checkLabelsRect(this.labels,i,x.clientRectangle))}}c++}}}},l.prototype.getValues=function(e){for(var t=[],r=0,i=e.values;r<i.length;r++){var n=i[r];if(!e.showZeros&&0==n)continue;t.add(n)}return t.toArray()},l.prototype.getArgumentText=function(t,r){var i=t.arguments.getKeys();if(t.arguments.length>r&&null!=t.arguments.getByIndex(r,i))return t.arguments.getByIndex(r,i).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return String.empty},l.prototype.renderFunnelElement=function(e,r,i,n,o,a,s,l,u,c,h){var p,f={ref:p};return this.measureFunnelElementCore(f,i,n,o,l,u,c),p=f.ref,new t.StiFunnelSeriesElementGeom(s,i,o,a,l,r,e,p,h)},l.prototype.getSingleValueHeight=function(e,t){return.9*t.height/e.length},l.prototype.getSingleValueWidth=function(e,t){for(var r=0,i=0,n=e.values;i<n.length;i++){var o=n[i];r=r>o?r:o}return.9*t.width/r},l.prototype.measureFunnelElementCore=function(e,n,a,s,l,u,c){var h=[],p=.05*l.height,f;f=null!=this.labels&&this.labels.sti_is(t.StiOutsideLeftFunnelLabels)?l.width/2+l.x:l.width/2;var m=new o(f-n/2*c,u*s+p),S=new o(f+n/2*c,u*s+p),g=new o(f+a/2*c,u*(s+1)+p),d=new o(f-a/2*c,u*(s+1)+p),y=[m,S,g,d];h.add(new i(y)),h.add(new r),e.ref=h},Object.defineProperty(l.prototype,"localizedName",{get:function(){return a.get("Chart","Funnel")},enumerable:!0,configurable:!0}),l}(t.StiSeriesCoreXF);t.StiFunnelSeriesCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiCloseFigureSegmentGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.System.TimeSpan,o=e.System.Drawing.Point,a=e.Base.Localization.StiLocalization,s=function(s){function l(e){return s.call(this,e)||this}return __extends(l,s),l.prototype.applyStyle=function(e,t){s.prototype.applyStyle.call(this,e,t);var r=this.series;r.allowApplyStyle&&(r.brush=e.core.getColumnBrush(t),r.borderColor=e.core.getColumnBorder(t))},l.prototype.renderSeries=function(e,r,i,o){if(null==o||0==o.length||null==this.series.chart)return;for(var a=0,s=0,l=o;s<l.length;s++){var u=l[s];null!=u.values&&(a+=u.values.length)}if(0==a)return;for(var c=0,h=0,p=o;h<p.length;h++){var u=p[h],f=u,m=this.getValues(f);this.labels=this.series.chart.seriesLabels.sti_as(t.StiFunnelSeriesLabels);var S=.9*r.height/this.getSumValues();c=0;var g=void 0;g=null!=this.labels&&this.labels.sti_is(t.StiOutsideLeftFunnelLabels)?r.width/2+r.x:r.width/2;for(var d=t.StiChartHelper.globalBeginTimeElement,y=0;y<m.length;y++){var b=m[y],v=f.brush;f.allowApplyBrush&&(v=f.core.getSeriesBrush(c,a),v=f.processSeriesBrushes(c,v));var C=f.borderColor;f.allowApplyBorderColor&&(C=f.core.getSeriesBorderColor(c,a));var w=this.renderFunnelElement(C,v,b,y,u,i,r,S,new n(d.ticks/u.values.length*y));if(null!=w){if(null!=u.core.interaction){var x=new t.StiSeriesInteractionData;x.fill(i.area,u,y),w.interaction=x}i.createChildGeoms(),i.childGeoms.add(w)}c++}if(null!=this.labels&&this.labels.visible){c=0;for(var _=0;_<m.length;_++){if(u.values.length>_){var b=m[_],A=_==m.length-1?b:m[_+1];if(0==this.labels.step||_%this.labels.step==0){var L={ref:r},O=this.labels.core.renderLabel(u,e,_,b,A,this.getArgumentText(u,_),u.core.getTag(_),c,a,r,S,0,g,L);r=L.ref,null!=O&&(i.createChildGeoms(),i.childGeoms.add(O),O.clientRectangle=this.checkLabelsRect(this.labels,i,O.clientRectangle))}}c++}}}},l.prototype.getValues=function(e){for(var t=[],r=0,i=e.values;r<i.length;r++){var n=i[r];if(!e.showZeros&&0==n)continue;t.add(n)}return t.toArray()},l.prototype.getArgumentText=function(t,r){var i=t.arguments.getKeys();if(t.arguments.length>r&&null!=t.arguments.getByIndex(r,i))return t.arguments.getByIndex(r,i).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)
;return String.empty},l.prototype.renderFunnelElement=function(e,r,i,n,o,a,s,l,u){var c=this.measureFunnelElementCore(n,s,l);return new t.StiFunnelSeriesElementGeom(a,i,n,o,s,r,e,c,u)},l.prototype.getSumValues=function(){for(var e=0,t=0,r=this.series.values;t<r.length;t++){var i=r[t];e+=Math.abs(i)}return e},l.prototype.getSumLastValues=function(e){for(var t=0,r=0;r<e;r++){if(r>=this.series.values.length)break;t+=Math.abs(this.series.values[r])}return t},l.prototype.measureFunnelElementCore=function(e,n,a){var s=[],l=.05*n.height,u;u=null!=this.labels&&this.labels.sti_is(t.StiOutsideLeftFunnelLabels)?n.width/2+n.x:n.width/2;var c,h,p=new o,f=new o,m,S,g=!1,d=this.getSumLastValues(e),y=!1,b=n.height-a*d;b<n.height/5&&(b=n.height/5,y=!0);var v=.9*n.width*b/n.height;c=new o(u-v/2,a*d+l),h=new o(u+v/2,a*d+l),d=this.getSumLastValues(e+1),b=n.height-a*d,b<n.height/5&&(b=n.height/5,y||(v=.9*n.width*b/n.height,p=new o(u-v/2,n.height+l-b),f=new o(u+v/2,n.height+l-b),g=!0)),v=.9*n.width*b/n.height,m=new o(u+v/2,a*d+l),S=new o(u-v/2,a*d+l);var C;return C=g?[c,h,f,m,S,p]:[c,h,m,S],s.add(new i(C)),s.add(new r),s},Object.defineProperty(l.prototype,"localizedName",{get:function(){return a.get("Chart","FunnelWeightedSlices")},enumerable:!0,configurable:!0}),l}(t.StiSeriesCoreXF);t.StiFunnelWeightedSlicesSeriesCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.System.Drawing.Point,n=e.Base.Localization.StiLocalization,o=e.System.Drawing.Rectangle,a=function(a){function s(e){return a.call(this,e)||this}return __extends(s,a),s.prototype.renderSeries=function(n,a,s,l){var u=[];if(null==l||0==l.length||null==this.series.chart)return;for(var c=s.area,h=c.axisCore.getDividerX(),p=c.axisCore.getDividerY(),f=0,m=l;f<m.length;f++){var S=m[f],g=S.values.length;S.valuesEnd.length<g&&(g=S.valuesEnd.length);var d=S.arguments.length,y=Math.min(g,d),b=t.StiChartHelper.globalBeginTimeElement,v=this.series.chart,C=0,w=S.arguments.getKeys();while(C<y){var x=S.values[C],_=S.valuesEnd[C];null==x&&(x=0),null==_&&(_=0);var A=Math.abs(x-_)*c.xAxis.info.dpi,L=h,O=Math.min(x,_);c.reverseHor?L-=O*c.xAxis.info.dpi+A:L+=O*c.xAxis.info.dpi;for(var P=c.yAxis.info.stripLines.count-1,B=0,R=c.yAxis.info.stripLines.list;B<R.length;B++){var k=R[B];if(S.arguments.getByIndex(C,w).toString()==k.valueObject.toString())break;P--}c.reverseVert&&(P=c.yAxis.info.stripLines.count-1-P);var j=c.yAxis.info.step/2,T=p-j/2;c.reverseVert?T+=c.yAxis.info.step*P:T-=c.yAxis.info.step*P;var F=new o(L,T,A,j),D=new t.StiGanttSeriesElementGeom(s,O,C,S,F,new r(b.ticks/c.core.valuesCount*C));if(null!=S.core.interaction){var I=new t.StiSeriesInteractionData;I.fill(c,S,C),D.interaction=I}s.createChildGeoms(),s.childGeoms.add(D);var N=S.core.getSeriesLabels();if(null!=N&&N.visible)if(N.sti_is(t.StiValueAxisLabels)){var M=new i(L,T+j/2),E=new i(L+A,T+j/2);if(0==N.step||C%N.step==0){if(_<x){var V=x;x=_,_=V}var X=N.core.renderLabel(S,n,E,E,C,_,_,S.arguments.getByIndex(C,w).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),S.core.getTag(C),0,1,a),G=N.core.renderLabel(S,n,M,M,C,x,x,S.arguments.getByIndex(C,w).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),S.core.getTag(C),0,1,a);null!=G&&(u.add(G),G.clientRectangle=this.checkLabelsRect(N,s,G.clientRectangle.clone())),null!=X&&(u.add(X),X.clientRectangle=this.checkLabelsRect(N,s,X.clientRectangle.clone()))}}else if(!N.sti_is(t.StiNoneLabels)){var M=void 0,E=void 0;N.sti_is(t.StiCenterAxisLabels)?(M=new i(L,T+j/2),E=new i(L+A,T+j/2)):(M=new i(L+A/2,T),E=new i(L+A/2,T));var z=O;if(0==N.step||C%N.step==0){var J=N.core.renderLabel(S,n,E,M,C,O,z,S.arguments.getByIndex(C,w).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),S.core.getTag(C),0,1,a);null!=J&&(u.add(J),J.clientRectangle=this.checkLabelsRect(N,s,J.clientRectangle.clone()))}}C++}}for(var H=0,Y=u;H<Y.length;H++){var J=Y[H];s.createChildGeoms(),s.childGeoms.add(J)}},Object.defineProperty(s.prototype,"localizedName",{get:function(){return n.get("Chart","Gantt")},enumerable:!0,configurable:!0}),s}(t.StiClusteredBarSeriesCoreXF);t.StiGanttSeriesCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Rectangle,n=e.System.Drawing.Point,o=e.System.Drawing.Size,a=function(){function e(e,t){this.value=e,this.icon=t}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e},enumerable:!0,configurable:!0}),e}();t.DataPictorial=a;var s=function(e){function s(t){var r=e.call(this,t)||this;return r.singleSizeConst=new o(25,25),r}return __extends(s,e),s.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r),this.series.allowApplyStyle&&(this.series.brush=t.core.getColumnBrush(r))},Object.defineProperty(s.prototype,"localizedName",{get:function(){return r.get("Chart","Pictorial")},enumerable:!0,configurable:!0}),s.prototype.getSingleSize=function(e){return new o(this.singleSizeConst.width*e.options.zoom,this.singleSizeConst.height*e.options.zoom)},s.prototype.renderSeries=function(e,r,o,s){for(var l=this.getSingleSize(e),u=Math.floor(r.width/l.width),c=Math.floor(r.height/l.height),h=u*l.width,p=c*l.height,f=r.x+(r.width-h)/2,m=r.y+(r.height-p)/2,S=new i(f,m,h,p),g=u*c,d=this.series.chart.area,y=[],b=0,v=s;b<v.length;b++)for(var C=v[b],w=C.sti_as(t.StiPictorialSeries),x=0,_=C.values;x<_.length;x++){var A=_[x],L=d.roundValues?Math.round(A):A;y.add(new a(L,w.icon))}for(var O=0,P=0,B=y;P<B.length;P++){O+=B[P].value}var R=g/O;R>1&&d.actual&&(R=1);for(var k=new n(S.x,S.y),j=0;j<y.count;j++){var A=Math.abs(y[j].value);if(0==A)continue;var T=d.roundValues?Math.round(R*A):R*A,F=T*l.width*l.height,D=F/l.height,I=D,N=[],M=[];do{var E=0,V=k,X=S.right-k.x;X>I?(E=I,k=new n(k.x+I,k.y)):(E=X,k=new n(S.x,k.y+l.height)),I-=E;var G=(V.x-S.x)/l.width,z=(G-Math.floor(G))*l.width,J=new i(V.x-z,V.y,E+z,l.height),H=new i(V.x,V.y,E,l.height);N.add(J),M.add(H)}while(I>0&&k.y<S.bottom);var Y=new t.StiPictorialSeriesElementGeom(o,A,j,this.getSeriesBrush(j,y.count),this.series,y[j].icon,N,M,r,null);o.createChildGeoms(),o.childGeoms.add(Y)}},s.prototype.getSeriesBrush=function(t,r){var i=e.prototype.getSeriesBrush.call(this,t,r);if(null==i)return this.series.brush;return i},s}(t.StiSeriesCoreXF);t.StiPictorialSeriesCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiColorUtils,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=e.System.Drawing.Point,a=function(a){function s(e){return a.call(this,e)||this}return __extends(s,a),s.prototype.applyStyle=function(e,t){a.prototype.applyStyle.call(this,e,t);var n=this.series;n.allowApplyStyle&&null!=n.marker&&(n.marker.brush=new i(r.light(t,100)),n.marker.borderColor=r.dark(t,100))},s.prototype.renderSeries=function(e,t,r,i){if(null==i||0==i.length||null==this.series.chart)return;for(var n=r.area,a=n.core,s=[],l=0,u=i;l<u.length;l++){var c=u[l],h=[];s.add(h);for(var p=0,f=0,m=a.points;f<m.length;f++){var S=m[f],g=p<c.values.length?c.values[p]:null;if(null==g&&c.showNulls&&(g=0),null==g)h.add(null);else{null!=g&&(g*=n.yAxis.info.dpi);var d=new o(a.centerPoint.x+g*S.x,a.centerPoint.y+g*S.y);d.x-=r.clientRectangle.x,d.y-=r.clientRectangle.y,h.add(d)}p++}}for(var y=0,b=0,v=i;b<v.length;b++){var c=v[b],h=s[y];h.add(h[0]),this.renderAreas(e,c,h,r),h.removeAt(h.count-1),y++}y=0;for(var C=0,w=i;C<w.length;C++){var c=w[C],h=s[y];h.add(h[0]),this.renderLines(e,c,h,r),h.removeAt(h.count-1),y++}y=0;for(var x=0,_=i;x<_.length;x++){var c=_[x],h=s[y];this.renderPoints(e,c,h,r),y++}},s.prototype.renderAreas=function(e,t,r,i){},s.prototype.renderLines=function(e,t,r,i){},s.prototype.renderPoints=function(e,r,i,n){for(var o=0,a=0,s=i;a<s.length;a++){var l=s[a];if(null!=l){var u=o<r.values.length?r.values[o]:null,c=new t.StiRadarPointSeriesElementGeom(n,u,o,r,l,e.options.zoom);null!=n&&(n.createChildGeoms(),n.childGeoms.add(c));var h=r.core.getSeriesLabels();if(null!=h&&h.visible&&null!=u){var p=l;if(0==h.step||o%h.step==0){var f=h.core.renderLabel(r,e,p,p,o,u,u,this.getArgument(r,o),r.core.getTag(o),0,1,n.clientRectangle);null!=f&&(n.createChildGeoms(),n.childGeoms.add(f),f.clientRectangle=this.checkLabelsRect(h,n,f.clientRectangle.clone()))}}}o++}},s.prototype.getArgument=function(t,r){var i=t.arguments.getKeys();return t.arguments.length>r?t.arguments.getByIndex(r,i).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator):String.empty},s.prototype.getSeriesBrush=function(e,t){var o=a.prototype.getSeriesBrush.call(this,e,t);if(null==o)return new i(r.dark(n.white,20));return o},s.prototype.getSeriesBorderColor=function(e,t){var r=a.prototype.getSeriesBorderColor.call(this,e,t);if(null==r)return n.black;return r},s}(t.StiSeriesCoreXF);t.StiRadarSeriesCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Point,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r),i.lineColor=r)},Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","RadarArea")},enumerable:!0,configurable:!0}),n.prototype.renderLines=function(e,r,i,n){var o=n.area,a=o.core,s=new t.StiLineSeriesGeom(n,i.toArray(),r);null!=n&&(n.createChildGeoms(),n.childGeoms.add(s))},n.prototype.renderAreas=function(e,r,n,o){var a=o.area,s=a.core,l=new t.StiRadarAreaSeriesGeom(r,n.toArray(),new i(o.clientRectangle.width/2,o.clientRectangle.height/2));null!=o&&(o.createChildGeoms(),o.childGeoms.add(l))},n}(t.StiRadarSeriesCoreXF);t.StiRadarAreaSeriesCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.lineColor=r)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","RadarLine")},enumerable:!0,configurable:!0}),i.prototype.renderLines=function(e,r,i,n){var o=new t.StiLineSeriesGeom(n,i.toArray(),r);null!=n&&(n.createChildGeoms(),n.childGeoms.add(o))},i}(t.StiRadarSeriesCoreXF);t.StiRadarLineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.applyStyle=function(r,i){e.prototype.applyStyle.call(this,r,i);var n=this.series.sti_as(t.StiRadarPointSeries);n.allowApplyStyle&&(r.core.markerVisible||(n.marker.visible=!0))},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","RadarPoint")},enumerable:!0,configurable:!0}),i}(t.StiRadarSeriesCoreXF);t.StiRadarPointSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.System.Drawing.Point,n=e.Base.Localization.StiLocalization,o=e.System.Drawing.Rectangle,a=function(a){function s(e){return a.call(this,e)||this}return __extends(s,a),s.prototype.renderSeries=function(n,a,s,l){var u=[];if(null==l||0==l.length||null==this.series.chart)return;for(var c=s.area,h=c.axisCore.getDividerX(),p=c.axisCore.getDividerY(),f=t.StiChartHelper.globalBeginTimeElement,m=0,S=l;m<S.length;m++){var g=S[m],d=g.values.length;g.valuesEnd.length<d&&(d=g.valuesEnd.length);var y=g.arguments.length,b=Math.min(d,y),v=0,C=g.arguments.getKeys();while(v<b){var w=g.values[v],x=g.valuesEnd[v];null==w&&(w=0),null==x&&(x=0);var _=Math.abs(w-x)*c.yAxis.info.dpi,A=p,L=Math.max(w,x);c.reverseVert?A+=Math.min(w,x)*c.yAxis.info.dpi:A-=L*c.yAxis.info.dpi;for(var O=c.xAxis.info.stripLines.count-1,P=0,B=c.xAxis.info.stripLines.list;P<B.length;P++){var R=B[P];if(g.arguments.getByIndex(v,C).toString()==R.valueObject.toString())break;O--}O=c.xAxis.info.stripLines.count-1-O;var k=(c.xAxis.info.step-c.xAxis.info.step*(1-g.width))/l.length,j=h-k/2;j+=c.xAxis.info.step*O;var T=new o(j,A,k,_),F=new t.StiRangeBarElementGeom(s,L,v,g,T,new r(f.ticks/b*v));if(null!=g.core.interaction){var D=new t.StiSeriesInteractionData;D.fill(c,g,v),F.interaction=D}s.createChildGeoms(),s.childGeoms.add(F);var I=g.core.getSeriesLabels();if(null!=I&&I.visible){var N=new i(j+k/2,A),M=new i(j+k/2,A+_);if(0==I.step||v%I.step==0){if(x<w){var E=w;w=x,x=E}var V=I.core.renderLabel(g,n,M,M,v,w,w,g.arguments.getByIndex(v,C).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),g.core.getTag(v),0,1,a),X=I.core.renderLabel(g,n,N,N,v,x,x,g.arguments.getByIndex(v,C).toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),g.core.getTag(v),0,1,a);null!=X&&(u.add(X),X.clientRectangle=this.checkLabelsRect(I,s,X.clientRectangle.clone())),null!=V&&(u.add(V),V.clientRectangle=this.checkLabelsRect(I,s,V.clientRectangle.clone()))}}v++}}for(var G=0,z=u;G<z.length;G++){var J=z[G];s.createChildGeoms(),s.childGeoms.add(J)}},Object.defineProperty(s.prototype,"localizedName",{get:function(){return n.get("Chart","RangeBar")},enumerable:!0,configurable:!0}),s}(t.StiClusteredColumnSeriesCoreXF);t.StiRangeBarSeriesCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Point,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},n.prototype.renderSeries=function(e,r,n,o){if(null==o||0==o.length||null==this.series.chart)return;for(var a=n.area,s=0,l=0,u=o;l<u.length;l++){var c=u[l],h=c.values.length,p=Array.create(i,h,!0),f=Array.create(i,h,!0);c.valuesEnd.length<h&&(h=c.valuesEnd.length);for(var m=0;m<h;m++){var S=a.reverseHor?c.values[c.values.length-m-1]:c.values[m],g=a.reverseHor?c.valuesEnd[c.values.length-m-1]:c.valuesEnd[m];S==g?p[m]=f[m]=this.getYPoint(S,c,a,m):(p[m]=this.getYPoint(S,c,a,m),f[m]=this.getYPoint(g,c,a,m))}this.renderAreas2(n,p,f,c),this.renderLines2(e,n,p,c.values,c),this.renderLines2(e,n,f,c.valuesEnd,c);var d=0,y=c.core.getSeriesLabels();if(null!=y&&y.visible)for(var m=0;m<h;m++){var S=c.values[m],g=c.valuesEnd[m];null==S&&c.showNulls&&(S=0),null==g&&c.showNulls&&(S=0);var b=S;a.reverseVert&&null!=S&&(b=-b);var v=g;a.reverseVert&&null!=g&&(v=-v),d=c.yAxis==t.StiSeriesYAxis.LeftYAxis?a.axisCore.getDividerY():a.axisCore.getDividerRightY();var C=p[m],w=f[m];if(null!=C){var x=new i(C.x,d);if(0==y.step||m%y.step==0){var _=y.core.renderLabel(c,e,this.correctPoint(C,r,c.labelsOffset*e.options.zoom),this.correctPoint(x,r,c.labelsOffset*e.options.zoom),m,b,S,a.axisCore.getArgumentLabel(a.xAxis.info.stripLines.getByindex(m),c),c.core.getTag(m),0,1,r);null!=_&&(n.createChildGeoms(),n.childGeoms.add(_),_.clientRectangle=this.checkLabelsRect(y,n,_.clientRectangle.clone()))}}if(null!=w){var x=new i(w.x,d);if(0==y.step||m%y.step==0){var _=y.core.renderLabel(c,e,this.correctPoint(w,r,c.labelsOffset*e.options.zoom),this.correctPoint(x,r,c.labelsOffset*e.options.zoom),m,v,g,a.axisCore.getArgumentLabel(a.xAxis.info.stripLines.getByindex(m),c),c.core.getTag(m),0,1,r);null!=_&&(n.createChildGeoms(),n.childGeoms.add(_),_.clientRectangle=this.checkLabelsRect(y,n,_.clientRectangle.clone()))}}}s++}},n.prototype.renderLines2=function(e,r,i,n,o){if(null!=i&&i.length>1){var a=new t.StiLineSeriesGeom(r,i,o);r.createChildGeoms(),r.childGeoms.add(a),null!=this.interaction&&(a.interactions=this.getInteractions(e,r,i))}this.renderMarkers2(e,r,i,n,o)},n.prototype.renderMarkers2=function(e,r,i,n,o){var a=r.area,s=o;if(0==i.length)return;if(null!=s.marker&&s.marker.visible)for(var l=0,u=0,c=i;u<c.length;u++){var h=c[u];if(null!=h){var p=a.reverseHor?n[s.values.length-l-1]:n[l];null==p&&s.showNulls&&(p=0);var f=r.view.clientRectangle.clone();f.x=0,f.y=0,f.inflate(10,10);var m=h;if(m.x+=r.clientRectangle.x,m.y+=r.clientRectangle.y,f.contains(m.x,m.y)){var S=new t.StiMarkerGeom(o,l,p,h,s.marker,s.showShadow,e.options.zoom);if(null!=S){if(null!=s.core.interaction){var g=new t.StiSeriesInteractionData;g.fill(a,s,l),S.interaction=g}r.createChildGeoms(),r.childGeoms.add(S)}}}l++}},n.prototype.getYPoint=function(e,r,n,o){var a,s=n.xAxis.core.getStartFromZero()?n.xAxis.info.stripPositions[o+1]:n.xAxis.info.stripPositions[o];if(null!=e||r.showNulls){null==e&&r.showNulls&&(e=0),n.reverseVert&&null!=e&&(e=-e);var l=0;l=r.yAxis==t.StiSeriesYAxis.LeftYAxis?-e*n.yAxis.info.dpi+n.axisCore.getDividerY():-e*n.yRightAxis.info.dpi+n.axisCore.getDividerRightY(),a=new i(s,l)}else a=null;return a},n.prototype.renderAreas2=function(e,r,i,n){if(null==r||r.length<=1)return;var o=new t.StiRangeSeriesGeom(e,r,i,n);null!=o&&(e.createChildGeoms(),e.childGeoms.add(o))},Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Range")},enumerable:!0,configurable:!0}),n}(t.StiLineSeriesCoreXF);t.StiRangeSeriesCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiSolidBrush,n=e.Base.Localization.StiLocalization,o=e.System.Drawing.Point,a=e.System.Drawing.Color,s=function(e){function s(t){return e.call(this,t)||this}return __extends(s,e),s.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},s.prototype.renderSeries=function(e,r,i,n){if(null==n||0==n.length||null==this.series.chart)return;for(var a=i.area,s=0,l=0,u=n;l<u.length;l++){var c=u[l],h=c.values.length;c.valuesEnd.length<h&&(h=c.valuesEnd.length);for(var p=Array.create(o,h,!0),f=Array.create(o,h,!0),m=Array.create(o,2*h,!0),S=0;S<h;S++){var g=a.reverseHor?c.values[c.values.length-S-1]:c.values[S],d=a.reverseHor?c.valuesEnd[c.values.length-S-1]:c.valuesEnd[S];p[S]=this.getYPoint(g,c,a,S),f[S]=this.getYPoint(d,c,a,S)}this.renderAreas2(e,i,p,f,c),this.renderLines(e,i,p),this.renderLines(e,i,f);var y=0,b=c.core.getSeriesLabels();if(null!=b&&b.visible)for(var S=0;S<h;S++){var g=c.values[S],d=c.valuesEnd[S];null==g&&c.showNulls&&(g=0),null==d&&c.showNulls&&(g=0);var v=g;a.reverseVert&&null!=g&&(v=-v);var C=d;a.reverseVert&&null!=d&&(C=-C),y=c.yAxis==t.StiSeriesYAxis.LeftYAxis?a.axisCore.getDividerY():a.axisCore.getDividerRightY();var w=p[S],x=f[S];if(null!=w){var _=new o(w.x,y);if(0==b.step||S%b.step==0){var A=b.core.renderLabel(c,e,this.correctPoint(w,r,c.labelsOffset*e.options.zoom),this.correctPoint(_,r,c.labelsOffset*e.options.zoom),S,v,g,a.axisCore.getArgumentLabel(a.xAxis.info.stripLines.getByindex(S),c),c.core.getTag(S),0,1,r);null!=A&&(i.createChildGeoms(),i.childGeoms.add(A),A.clientRectangle=this.checkLabelsRect(b,i,A.clientRectangle.clone()))}}if(null!=x){var _=new o(x.x,y);if(0==b.step||S%b.step==0){var A=b.core.renderLabel(c,e,this.correctPoint(x,r,c.labelsOffset*e.options.zoom),this.correctPoint(_,r,c.labelsOffset*e.options.zoom),S,C,d,a.axisCore.getArgumentLabel(a.xAxis.info.stripLines.getByindex(S),c),c.core.getTag(S),0,1,r);null!=A&&(i.createChildGeoms(),i.childGeoms.add(A),A.clientRectangle=this.checkLabelsRect(b,i,A.clientRectangle.clone()))}}}s++}},s.prototype.renderLines2=function(e,r,i,n,o){if(null!=i||i.length>1){var a=new t.StiLineSeriesGeom(r,i,o);null!=a&&(r.createChildGeoms(),r.childGeoms.add(a)),null!=this.interaction&&(a.interactions=this.getInteractions(e,r,i))}this.renderMarkers2(e,r,i,n,o)},s.prototype.renderMarkers2=function(e,n,o,s,l){var u=n.area,c=l;if(0==o.length)return;if(null!=c.marker&&c.marker.visible)for(var h=new i(a.fromArgb(55,a.black)),p=new r(c.marker.borderColor),f=0,m=0,S=o;m<S.length;m++){var g=S[m];if(null!=g){var d=u.reverseHor?s[c.values.length-f-1]:s[f];null==d&&c.showNulls&&(d=0);var y=n.view.clientRectangle.clone();y.x=0,y.y=0,y.inflate(10,10);var b=g;if(b.x+=n.clientRectangle.x,b.y+=n.clientRectangle.y,y.contains(b.x,b.y)){var v=new t.StiMarkerGeom(l,f,d,g,c.marker,c.showShadow,e.options.zoom);if(null!=v){if(null!=c.core.interaction){var C=new t.StiSeriesInteractionData;C.fill(u,c,f),v.interaction=C}n.createChildGeoms(),n.childGeoms.add(v)}}}f++}},s.prototype.getYPoint=function(e,r,i,n){var a,s=i.xAxis.core.getStartFromZero()?i.xAxis.info.stripPositions[n+1]:i.xAxis.info.stripPositions[n];if(null!=e||r.showNulls){null==e&&r.showNulls&&(e=0),i.reverseVert&&null!=e&&(e=-e);var l=0;l=r.yAxis==t.StiSeriesYAxis.LeftYAxis?-e*i.yAxis.info.dpi+i.axisCore.getDividerY():-e*i.yRightAxis.info.dpi+i.axisCore.getDividerRightY(),a=new o(s,l)}else a=null;return a},s.prototype.renderAreas2=function(e,r,i,n,o){if(null==i||i.length<=1)return;var a=new t.StiSplineRangeSeriesGeom(r,i,n,o);null!=a&&(r.createChildGeoms(),r.childGeoms.add(a))},Object.defineProperty(s.prototype,"localizedName",{get:function(){return n.get("Chart","SplineRange")},enumerable:!0,configurable:!0}),s}(t.StiSplineSeriesCoreXF);t.StiSplineRangeSeriesCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiSolidBrush,n=e.Base.Localization.StiLocalization,o=e.System.Drawing.Point,a=e.System.Drawing.Color,s=function(e){function s(t){return e.call(this,t)||this}return __extends(s,e),s.prototype.applyStyle=function(t,r){e.prototype.applyStyle.call(this,t,r);var i=this.series;i.allowApplyStyle&&(i.brush=t.core.getAreaBrush(r))},s.prototype.renderSeries=function(e,r,i,n){if(null==n||0==n.length||null==this.series.chart)return;for(var a=i.area,s=0,l=n;s<l.length;s++){var u=l[s],c=u.values.length,h=Array.create(o,c,!0),p=Array.create(o,c,!0);u.valuesEnd.length<c&&(c=u.valuesEnd.length);for(var f=0;f<c;f++){var m=a.reverseHor?u.values[u.values.length-f-1]:u.values[f],S=a.reverseHor?u.valuesEnd[u.values.length-f-1]:u.valuesEnd[f];h[f]=this.getYPoint(m,u,a,f),p[f]=this.getYPoint(S,u,a,f)}this.renderAreas2(e,i,h,p,u),this.renderLines2(e,i,h,u.values,u),this.renderLines2(e,i,p,u.valuesEnd,u);var g=0,d=u.core.getSeriesLabels();if(null!=d&&d.visible)for(var f=0;f<c;f++){var m=u.values[f],S=u.valuesEnd[f];null==m&&u.showNulls&&(m=0),null==S&&u.showNulls&&(m=0);var y=m;a.reverseVert&&null!=m&&(y=-y);var b=S;a.reverseVert&&null!=S&&(b=-b),g=u.yAxis==t.StiSeriesYAxis.LeftYAxis?a.axisCore.getDividerY():a.axisCore.getDividerRightY();var v=h[f],C=p[f];if(null!=v){var w=new o(v.x,g);if(0==d.step||f%d.step==0){var x=d.core.renderLabel(u,e,this.correctPoint(v,r,u.labelsOffset*e.options.zoom),this.correctPoint(w,r,u.labelsOffset*e.options.zoom),f,y,m,a.axisCore.getArgumentLabel(a.xAxis.info.stripLines.getByindex(f),u),this.getTag(f),0,1,r);null!=x&&(i.createChildGeoms(),i.childGeoms.add(x),x.clientRectangle=this.checkLabelsRect(d,i,x.clientRectangle.clone()))}}if(null!=C){var w=new o(C.x,g);if(0==d.step||f%d.step==0){var x=d.core.renderLabel(u,e,this.correctPoint(C,r,u.labelsOffset*e.options.zoom),this.correctPoint(w,r,u.labelsOffset*e.options.zoom),f,b,S,a.axisCore.getArgumentLabel(a.xAxis.info.stripLines.getByindex(f),u),this.getTag(f),0,1,r);null!=x&&(i.createChildGeoms(),i.childGeoms.add(x),x.clientRectangle=this.checkLabelsRect(d,i,x.clientRectangle.clone()))}}}}},s.prototype.renderAreas2=function(e,r,i,n,o){if(null==i||i.length<=1)return;if(null==n||n.length<=1)return;var a=new t.StiSteppedRangeSeriesGeom(r,i,n,o);null!=a&&(r.createChildGeoms(),r.childGeoms.add(a))},s.prototype.renderLines2=function(e,r,i,n,o){var a=o;if(i.length>1||a.pointAtCenter&&i.length>0){var s=new t.StiSteppedLineSeriesGeom(r,i,o);null!=s&&(r.createChildGeoms(),r.childGeoms.add(s)),null!=this.interaction&&(s.interactions=this.getInteractions(e,r,i))}this.renderMarkers2(e,r,i,n,o)},s.prototype.renderMarkers2=function(e,n,s,l,u){var c=n.area,h=u;if(0==s.length)return;if(null!=h.marker&&h.marker.visible)for(var p=new i(a.fromArgb(55,a.black)),f=new r(h.marker.borderColor),m=0,S=0,g=s;S<g.length;S++){var d=g[S];if(null!=d){var y=c.reverseHor?l[h.values.length-m-1]:l[m];null==y&&h.showNulls&&(y=0);var b=n.view.clientRectangle.clone();b.x=0,b.y=0,b.inflate(10,10);var v=new o(d.x,d.y);if(v.x+=n.clientRectangle.x,v.y+=n.clientRectangle.y,b.contains(v.x,v.y)){var C=new t.StiMarkerGeom(u,m,y,d,h.marker,h.showShadow,e.options.zoom);if(null!=C){if(null!=h.core.interaction){var w=new t.StiSeriesInteractionData;w.fill(c,h,m),C.interaction=w}n.createChildGeoms(),n.childGeoms.add(C)}}}m++}},s.prototype.getYPoint=function(e,r,i,n){var a,s=i.xAxis.info.stripPositions.getKeys(),l=i.xAxis.core.getStartFromZero()?i.xAxis.info.stripPositions.getByIndex(n+1,s):i.xAxis.info.stripPositions.getByIndex(n,s);if(null!=e||r.showNulls){null==e&&r.showNulls&&(e=0),i.reverseVert&&null!=e&&(e=-e);var u=0;u=r.yAxis==t.StiSeriesYAxis.LeftYAxis?-e*i.yAxis.info.dpi+i.axisCore.getDividerY():-e*i.yRightAxis.info.dpi+i.axisCore.getDividerRightY(),a=new o(l,u)}else a=null;return a},Object.defineProperty(s.prototype,"localizedName",{get:function(){return n.get("Chart","SteppedRange")},enumerable:!0,configurable:!0}),s}(t.StiSteppedLineSeriesCoreXF);t.StiSteppedRangeSeriesCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.renderLines=function(e,r,i){if(null==i||i.length<=1)return;var n=new t.StiLineSeriesGeom(r,i,this.series);null!=n&&(r.createChildGeoms(),r.childGeoms.add(n)),this.renderMarkers(e,r,i)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","ScatterLine")},enumerable:!0,configurable:!0}),i}(t.StiScatterSeriesCoreXF);t.StiScatterLineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),i.prototype.renderLines=function(e,r,i){if(null==i||i.length<=1)return;var n=new t.StiScatterSplineSeriesGeom(r,i,this.series);null!=n&&(r.createChildGeoms(),r.childGeoms.add(n)),this.renderMarkers(e,r,i)},Object.defineProperty(i.prototype,"localizedName",{get:function(){return r.get("Chart","ScatterSpline")},enumerable:!0,configurable:!0}),i}(t.StiScatterSeriesCoreXF);t.StiScatterSplineSeriesCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Color,o=e.Base.Context.Animation.StiOpacityAnimation,a=function(a){function s(e){return a.call(this,e)||this}return __extends(s,a),s.prototype.applyStyle=function(e,t){a.prototype.applyStyle.call(this,e,t);var r=this.series;r.allowApplyStyle&&(r.brush=e.core.getColumnBrush(t),r.borderColor=e.core.getColumnBorder(t))},s.prototype.renderSeries=function(e,i,a,s){for(var l=t.StiChartHelper.globalDurationElement,u=t.StiChartHelper.globalBeginTimeElement,c=this.series.chart.area.core.normalizeDataForArea(this.series.values,i.width*i.height),h=this.series.chart.area.core.squarify(c,[],i,[]),p=0,f=0,m=s;f<m.length;f++){var S=m[f];if(S==this.series)break;p+=S.values.length}for(var g=0,d=0,y=s;d<y.length;d++){var S=y[d];g+=S.values.length}for(var b=0;b<h.length;b++){var v=this.series.core.getSeriesBrush(p,g),C=this.series.core.getSeriesBorderColor(p,g);0!=C.a||this.series.chart.area.colorEach||(C=n.white);var w=new r(u.ticks/h.count*(b+2)),x=new o(l,w),_=new t.StiTreemapSeriesElementGeom(a,this.series.values[b],b,v,C,this.series,h[b],x);if(null!=this.series.core.interaction){var A=new t.StiSeriesInteractionData;A.fill(a.area,this.series,b),_.interaction=A}a.createChildGeoms(),a.childGeoms.add(_);var L=this.series.chart.seriesLabels.sti_as(t.StiCenterTreemapLabels);if(null!=L&&L.visible){var O=L.core.renderLabel(this.series,e,b,this.series.values[b],this.getArgumentText(this.series,b),this.series.core.getTag(b),p,g,h[b],null);null!=O&&(a.createChildGeoms(),a.childGeoms.add(O))}p++}},s.prototype.getArgumentText=function(t,r){if(t.arguments.length>r&&null!=t.arguments[r])return t.arguments[r].toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return String.empty},s.prototype.getSeriesBrush=function(e,t){var r=a.prototype.getSeriesBrush.call(this,e,t);if(null==r)return this.series.brush;return r},s.prototype.getSeriesBorderColor=function(e,t){var r=a.prototype.getSeriesBorderColor.call(this,e,t);if(null==r)return this.series.borderColor;return r},Object.defineProperty(s.prototype,"localizedName",{get:function(){return i.get("Chart","Treemap")},enumerable:!0,configurable:!0}),s}(t.StiSeriesCoreXF);t.StiTreemapSeriesCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiSolidBrush,i=e.System.Drawing.Color,n=e.System.Drawing.Rectangle,o=e.System.ICloneable,a=function(){function a(e){this._strips=e}return a.prototype.implements=function(){return a.implementsStiStripsCoreXF||(a.implementsStiStripsCoreXF=[t.IStiApplyStyle,o,t.IStiStripsCoreXF]),a.implementsStiStripsCoreXF},a.prototype.clone=function(){return this.memberwiseClone()},a.prototype.applyStyle=function(e){this.strips.allowApplyStyle&&(this.strips.titleColor=e.core.chartAreaBorderColor,this.strips.stripBrush=new r(i.fromArgb(150,e.core.basicStyleColor)))},a.prototype.renderXStrips=function(r,i,o){var a=this.strips.chart.area;if(null==a)return;var s;try{s=this.strips.minValue.toNumber()}catch(t){e.System.StiError.showError(t,!1),s=0}var l=a.axisCore.getDividerX()+s*a.xAxis.info.dpi;try{s=this.strips.maxValue.toNumber()}catch(t){e.System.StiError.showError(t,!1),s=0}var u=a.axisCore.getDividerX()+s*a.xAxis.info.dpi;if(a.reverseHor&&(l=o.width-l,u=o.width-u),l>u){var c=l;l=u,u=c}var h=new n(l,0,u-l,o.height),p=new t.StiStripsXGeom(this.strips,h);i.createChildGeoms(),i.childGeoms.add(p)},a.prototype.renderYStrips=function(r,i,o){var a=this.strips.chart.area;if(null==a)return;var s;try{s=this.strips.minValue.toNumber()}catch(t){e.System.StiError.showError(t,!1),s=0}a.reverseVert&&(s=-s);var l;l=this.strips.orientation==t.StiStrips_StiOrientation.Horizontal?a.axisCore.getDividerY()-s*a.yAxis.info.dpi:a.axisCore.getDividerRightY()-s*a.yRightAxis.info.dpi;try{s=this.strips.maxValue.toNumber()}catch(t){e.System.StiError.showError(t,!1),s=0}a.reverseVert&&(s=-s);var u;if(u=this.strips.orientation==t.StiStrips_StiOrientation.Horizontal?a.axisCore.getDividerY()-s*a.yAxis.info.dpi:a.axisCore.getDividerRightY()-s*a.yRightAxis.info.dpi,l>u){var c=l;l=u,u=c}var h=new n(0,l,o.width,u-l),p=new t.StiStripsYGeom(this.strips,h);i.createChildGeoms(),i.childGeoms.add(p)},a.prototype.render=function(e,r,i){if(!this.strips.visible)return;this.strips.orientation==t.StiStrips_StiOrientation.Vertical&&this.renderXStrips(e,r,i),this.strips.orientation!=t.StiStrips_StiOrientation.Horizontal&&this.strips.orientation!=t.StiStrips_StiOrientation.HorizontalRight||this.renderYStrips(e,r,i)},Object.defineProperty(a.prototype,"strips",{get:function(){return this._strips},set:function(e){this._strips=e},enumerable:!0,configurable:!0}),a}();t.StiStripsCoreXF=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Font,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=e.Base.Drawing.StiGradientBrush,a=e.Base.Drawing.StiColorUtils,s=function(){function e(){this._chart=null}return e.prototype.implements=function(){return e.implementsStiStyleCoreXF||(e.implementsStiStyleCoreXF=[t.IStiStyleCoreXF]),e.implementsStiStyleCoreXF},Object.defineProperty(e.prototype,"localizedName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle01},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chartBrush",{get:function(){return new i(a.light(this.basicStyleColor,100))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chartAreaBrush",{get:function(){return new o(a.light(this.basicStyleColor,80),a.light(this.basicStyleColor,40),90)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chartAreaBorderColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesLabelsBrush",{get:function(){return new i(this.basicStyleColor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesLabelsColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesLabelsBorderColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesLabelsFont",{get:function(){return new r("Arial",7)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendBrush",{get:function(){return new o(a.light(this.basicStyleColor,80),a.light(this.basicStyleColor,20),90)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendLabelsColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendBorderColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendTitleColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendShowShadow",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendFont",{get:function(){return new r("Arial",8)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisTitleColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisLineColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisLabelsColor",{get:function(){return a.dark(this.basicStyleColor,150)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interlacingHorBrush",{get:function(){return new i(n.fromArgb(10,a.dark(this.basicStyleColor,100)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interlacingVertBrush",{get:function(){return new i(n.fromArgb(10,a.dark(this.basicStyleColor,100)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLinesHorColor",{get:function(){return n.fromArgb(100,a.dark(this.basicStyleColor,150))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLinesVertColor",{get:function(){return n.fromArgb(100,a.dark(this.basicStyleColor,150))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesLighting",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesShowShadow",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerVisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstStyleColor",{get:function(){return this.styleColors[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastStyleColor",{get:function(){return this.styleColors[this.styleColors.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleColors",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"basicStyleColor",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.fillColumn=function(e,t,r){e.fillRectangle2(r,t.x,t.y,t.width,t.height)},e.prototype.getAreaBrush=function(e){return new i(n.fromArgb(200,e))},e.prototype.getColumnBrush=function(e){return new o(e,a.dark(e,50),0)},e.prototype.getColumnBorder=function(e){return a.dark(e,100)},e.prototype.getColors=function(e){for(var t=Array.create(n,e),r=this.styleColors,i=0,o=0,a=0;a<e;a++){if(0!=o){var s=r[i],l=Math.min(s.a+o,255),u=Math.min(s.r+o,255),c=Math.min(s.g+o,255),h=Math.min(s.b+o,255);t[a]=n.fromArgb(l,u,c,h)}else t[a]=r[i];i++,i==r.length&&(i=0,o=50)}return t},e.prototype.getColorByIndex=function(e,t){return this.getColors(t)[e]},e.prototype.getColorBySeries=function(e){return this.getColors(e.chart.series.count)[e.chart.series.indexOf(e)]},e}();t.StiStyleCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiGlareBrush,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Color,o=e.Base.Drawing.StiColorUtils,a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,194,117,53),n.fromArgb(255,231,140,65),n.fromArgb(255,248,170,121),n.fromArgb(255,250,203,180),n.fromArgb(255,253,230,220)],t}return __extends(a,e),Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("Chart","Style")+"01"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"basicStyleColor",{get:function(){return n.wheat},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle01},enumerable:!0,configurable:!0}),a.prototype.getColumnBrush=function(e){return new r(o.dark(e,50),e,0)},a}(t.StiStyleCoreXF);t.StiStyleCoreXF01=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.Drawing.StiGradientBrush,n=e.Base.Drawing.StiGlareBrush,o=e.Base.Drawing.StiSolidBrush,a=e.Base.Drawing.StiColorUtils,s=function(e){function s(t){var i=e.call(this)||this;return i._base=new r.StiStyleCoreXF01,i.reportChartStyle=null,i._reportStyleName=null,i._customStyle=t,i}return __extends(s,e),Object.defineProperty(s.prototype,"localizedName",{get:function(){return"CustomStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"chartAreaBrush",{get:function(){if(null!=this.reportStyle)return this.reportStyle.chartAreaBrush;return this._base.chartAreaBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"chartAreaBorderColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.chartAreaBorderColor;return this._base.chartAreaBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesShowShadow",{get:function(){if(null!=this.reportStyle)return this.reportStyle.seriesShowShadow;return this._base.seriesShowShadow},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesLabelsBrush",{get:function(){if(null!=this.reportStyle)return this.reportStyle.seriesLabelsBrush;return this._base.seriesLabelsBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesLabelsColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.seriesLabelsColor;return this._base.seriesLabelsColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesLabelsBorderColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.seriesLabelsBorderColor;return this._base.seriesLabelsBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legendBrush",{get:function(){if(null!=this.reportStyle)return this.reportStyle.legendBrush;return this._base.legendBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legendLabelsColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.legendLabelsColor;return this._base.legendLabelsColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legendBorderColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.legendBorderColor;return this._base.legendBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legendTitleColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.legendTitleColor;return this._base.legendTitleColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"axisTitleColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.axisTitleColor;return this._base.axisTitleColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"axisLineColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.axisLineColor;return this._base.axisLineColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"axisLabelsColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.axisLabelsColor;return this._base.axisLabelsColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"interlacingHorBrush",{get:function(){if(null!=this.reportStyle)return this.reportStyle.interlacingHorBrush;return this._base.interlacingHorBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"interlacingVertBrush",{get:function(){if(null!=this.reportStyle)return this.reportStyle.interlacingVertBrush;return this._base.interlacingVertBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"gridLinesHorColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.gridLinesHorColor;return this._base.gridLinesHorColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"gridLinesVertColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.gridLinesVertColor;return this._base.gridLinesVertColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"styleColors",{get:function(){if(null!=this.reportStyle)return this.reportStyle.styleColors;return this._base.styleColors},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"basicStyleColor",{get:function(){if(null!=this.reportStyle)return this.reportStyle.basicStyleColor;return this._base.basicStyleColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"reportStyleName",{get:function(){return this._reportStyleName},set:function(e){this._reportStyleName=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"reportStyle",{get:function(){var e=null==this.reportStyleName?this.chart.customStyleName:this.reportStyleName;if(null==this.chart||null==this.chart.report||null==e||0==e.length)return null;return this.chart.report.styles.getByName(e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"customStyle",{get:function(){return this._customStyle},enumerable:!0,configurable:!0}),s.prototype.getColumnBrush=function(e){if(null!=this.reportStyle)switch(this.reportStyle.brushType){case t.StiBrushType.Glare:return new n(a.dark(e,50),e,0);case t.StiBrushType.Gradient0:return new i(a.dark(e,50),e,0);case t.StiBrushType.Gradient90:return new i(a.dark(e,50),e,90);case t.StiBrushType.Gradient180:return new i(a.dark(e,50),e,180);case t.StiBrushType.Gradient270:return new i(a.dark(e,50),e,270);case t.StiBrushType.Gradient45:return new i(a.dark(e,50),e,45);case t.StiBrushType.Solid:return new o(e)}return new o(e)},s}(r.StiStyleCoreXF01);r.StiCustomStyleCoreXF=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiGlareBrush,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Color,o=e.Base.Drawing.StiColorUtils,a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,128,145,165),n.fromArgb(255,171,123,122),n.fromArgb(255,155,167,129),n.fromArgb(255,144,133,157),n.fromArgb(255,121,161,173),n.fromArgb(255,189,152,122),n.fromArgb(255,139,164,194),n.fromArgb(255,202,132,130),n.fromArgb(255,179,198,141),n.fromArgb(255,162,146,182)],t}return __extends(a,e),Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("Chart","Style")+"02"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"basicStyleColor",{get:function(){return n.whiteSmoke},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle02},enumerable:!0,configurable:!0}),a.prototype.getColumnBrush=function(e){return new r(e,o.light(e,50),0)},a}(t.StiStyleCoreXF);t.StiStyleCoreXF02=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,150,61,59),n.fromArgb(255,179,74,71),n.fromArgb(255,201,126,125),n.fromArgb(255,221,182,181),n.fromArgb(255,238,221,221)],t}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"03"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"basicStyleColor",{get:function(){return n.whiteSmoke},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle03},enumerable:!0,configurable:!0}),o.prototype.getColumnBrush=function(e){return new i(e)},o}(t.StiStyleCoreXF);t.StiStyleCoreXF03=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,72,57,90),i.fromArgb(255,109,87,137),i.fromArgb(255,146,123,173),i.fromArgb(255,181,166,200)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"04"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.fromArgb(255,181,166,200)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle04},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF04=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,224,169,61),i.fromArgb(255,180,181,0),i.fromArgb(255,14,152,13),i.fromArgb(255,170,72,36),i.fromArgb(255,133,221,77),i.fromArgb(255,230,199,69),i.fromArgb(255,219,100,52),i.fromArgb(255,131,190,47)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"05"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.lemonChiffon},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle05},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF05=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,206,185,102),n.fromArgb(255,156,176,132),n.fromArgb(255,107,177,201),n.fromArgb(255,101,133,207),n.fromArgb(255,126,107,201),n.fromArgb(255,163,121,187)],t}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"06"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"basicStyleColor",{get:function(){return n.fromArgb(255,202,198,206)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle06},enumerable:!0,configurable:!0}),o.prototype.getColumnBrush=function(e){return new i(e)},o}(t.StiStyleCoreXF);t.StiStyleCoreXF06=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiGradientBrush,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Color,o=e.Base.Drawing.StiColorUtils,a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,217,251,168),n.fromArgb(255,200,181,231),n.fromArgb(255,158,232,255),n.fromArgb(255,255,189,134),n.fromArgb(255,163,195,254)],t}return __extends(a,e),Object.defineProperty(a.prototype,"localizedName",{get:function(){return i.get("Chart","Style")+"07"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"basicStyleColor",{get:function(){return n.white},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle07},enumerable:!0,configurable:!0}),a.prototype.getColumnBrush=function(e){return new r(o.dark(e,50),o.light(e,50),-90)},a}(t.StiStyleCoreXF);t.StiStyleCoreXF07=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,60,100,148),n.fromArgb(255,73,120,177),n.fromArgb(255,126,155,200),n.fromArgb(255,182,195,220),n.fromArgb(255,221,227,238)],t}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"08"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"basicStyleColor",{get:function(){return n.fromArgb(238,182,195,220)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle08},enumerable:!0,configurable:!0}),o.prototype.getColumnBrush=function(e){return new i(e)},o}(t.StiStyleCoreXF03);t.StiStyleCoreXF08=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,79,129,189),i.fromArgb(255,192,80,77),i.fromArgb(255,155,187,89),i.fromArgb(255,128,100,162),i.fromArgb(255,75,172,198),i.fromArgb(255,247,150,70)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"09"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.fromArgb(238,238,236,225)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle09},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF09=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,121,181,176),i.fromArgb(255,180,188,76),i.fromArgb(255,183,120,81),i.fromArgb(255,119,106,91),i.fromArgb(255,182,173,118),i.fromArgb(255,149,174,177)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"10"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.fromArgb(255,209,225,227)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle10},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF10=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=e.Base.Drawing.StiColorUtils,o=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,204,77,92),i.fromArgb(255,255,111,97),i.fromArgb(255,255,149,62),i.fromArgb(255,248,189,82)],t}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"11"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"basicStyleColor",{get:function(){return n.dark(i.navajoWhite,30)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle11},enumerable:!0,configurable:!0}),o}(t.StiStyleCoreXF);t.StiStyleCoreXF11=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.goldenrod,i.khaki],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"12"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.moccasin},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle12},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF12=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,151,158,168),i.fromArgb(255,189,174,137),i.fromArgb(255,205,176,5),i.fromArgb(255,170,166,194),i.fromArgb(255,132,191,210),i.fromArgb(255,139,159,115)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"13"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.fromArgb(255,212,210,208)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle13},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF13=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,240,162,46),i.fromArgb(255,165,100,78),i.fromArgb(255,181,139,128),i.fromArgb(255,195,152,109),i.fromArgb(255,161,149,116),i.fromArgb(255,193,117,41)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"14"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.fromArgb(255,251,238,201)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle14},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF14=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,15,111,198),i.fromArgb(255,0,157,217),i.fromArgb(255,11,208,217),i.fromArgb(255,16,207,155),i.fromArgb(255,124,202,98),i.fromArgb(255,165,194,73)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"15"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.fromArgb(255,219,245,249)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle15},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF15=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(255,255,128,0),i.black,i.silver,i.red],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"16"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.white},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle16},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF16=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.white,i.black],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"17"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"basicStyleColor",{get:function(){return i.white},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle17},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF);t.StiStyleCoreXF17=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiHatchBrush,i=e.Base.Localization.StiLocalization,n=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.Color,a=e.System.Drawing.Drawing2D.HatchStyle,s=function(e){function s(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[o.white,o.black,o.silver,o.red,o.green,o.blue],t}return __extends(s,e),Object.defineProperty(s.prototype,"localizedName",{get:function(){return i.get("Chart","Style")+"18"},enumerable:!0,configurable:!0}),s.prototype.fillColumn=function(e,t,i){var n=a.Cross,s=i;s.color==o.white?n=a.BackwardDiagonal:s.color==o.black?n=a.DottedGrid:s.color==o.silver?n=a.Horizontal:s.color==o.red?n=a.Percent25:s.color==o.green?n=a.OutlinedDiamond:s.color==o.blue&&(n=a.ForwardDiagonal);var l=new r(n,o.black,o.white);e.fillRectangle2(l,t.x,t.y,t.width,t.height)},s.prototype.getColumnBrush=function(e){return new n(e)},Object.defineProperty(s.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"basicStyleColor",{get:function(){return o.white},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle18},enumerable:!0,configurable:!0}),s}(t.StiStyleCoreXF);t.StiStyleCoreXF18=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,242,234,221),n.fromArgb(255,240,237,232),n.fromArgb(255,232,221,203),n.fromArgb(255,225,201,173),n.fromArgb(255,216,180,140)],t}return __extends(o,e),Object.defineProperty(o.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"19"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"basicStyleColor",{get:function(){return n.fromArgb(255,242,234,221)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"interlacingHorBrush",{get:function(){return new i(n.fromArgb(128,240,237,232))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"interlacingVertBrush",{get:function(){return new i(n.fromArgb(128,240,237,232))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"chartAreaBrush",{get:function(){return new i(n.fromArgb(128,240,237,232))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"chartBrush",{get:function(){return new i(n.white)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle19},enumerable:!0,configurable:!0}),o.prototype.getColumnBrush=function(e){return new i(e)},o}(t.StiStyleCoreXF);t.StiStyleCoreXF19=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=e.Base.Drawing.StiColorUtils,a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(255,217,187,148),n.fromArgb(255,245,190,119),n.fromArgb(255,230,189,127),n.fromArgb(255,220,217,212),n.fromArgb(255,237,229,216),n.fromArgb(255,246,233,212)],t}return __extends(a,e),Object.defineProperty(a.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"20"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"basicStyleColor",{get:function(){return n.bisque},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisLineColor",{get:function(){return o.dark(this.basicStyleColor,50)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartAreaBorderColor",{get:function(){return o.dark(this.basicStyleColor,50)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle20},enumerable:!0,configurable:!0}),a.prototype.getColumnBrush=function(e){return new i(e)},a}(t.StiStyleCoreXF);t.StiStyleCoreXF20=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=e.Base.Drawing.StiColorUtils,a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(35,159,217),n.fromArgb(178,178,178)],t}return __extends(a,e),Object.defineProperty(a.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"21"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartBrush",{get:function(){return new i(o.light(this.basicStyleColor,100))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartAreaBrush",{get:function(){return new i(this.basicStyleColor)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartAreaBorderColor",{get:function(){return n.fromArgb(106,106,106)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsBrush",{get:function(){return new i(o.light(this.basicStyleColor,100))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsColor",{get:function(){return n.fromArgb(106,106,106)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsBorderColor",{get:function(){return n.fromArgb(255,255,255)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"legendBrush",{get:function(){return new i(o.light(this.basicStyleColor,100))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"legendLabelsColor",{get:function(){return n.fromArgb(106,106,106)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisTitleColor",{get:function(){return n.fromArgb(106,106,106)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisLineColor",{get:function(){return n.fromArgb(106,106,106)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisLabelsColor",{get:function(){return n.fromArgb(106,106,106)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"basicStyleColor",{get:function(){return n.fromArgb(102,102,102)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle21},enumerable:!0,configurable:!0}),a.prototype.getColumnBrush=function(e){return new i(e)},a.prototype.getColumnBorder=function(e){return o.light(e,255)},a}(t.StiStyleCoreXF);t.StiStyleCoreXF21=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,o=e.Base.Drawing.StiColorUtils,a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromArgb(91,155,213),n.fromArgb(237,125,49),n.fromArgb(159,159,159),n.fromArgb(255,192,0),n.fromArgb(68,114,196),n.fromArgb(112,173,71)],t}return __extends(a,e),Object.defineProperty(a.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"22"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartBrush",{get:function(){return new i(o.light(this.basicStyleColor,100))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartAreaBrush",{get:function(){return new i(this.basicStyleColor)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartAreaBorderColor",{get:function(){return n.fromArgb(171,172,173)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsBrush",{get:function(){return new i(o.light(this.basicStyleColor,100))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsColor",{get:function(){return n.fromArgb(90,90,90)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsBorderColor",{get:function(){return n.fromArgb(140,140,140)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"legendBrush",{get:function(){return new i(o.light(this.basicStyleColor,100))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"legendLabelsColor",{get:function(){return n.fromArgb(140,140,140)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisTitleColor",{get:function(){return n.fromArgb(140,140,140)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisLineColor",{get:function(){return n.fromArgb(140,140,140)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisLabelsColor",{get:function(){return n.fromArgb(140,140,140)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"basicStyleColor",{get:function(){return n.fromArgb(255,255,255)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle22},enumerable:!0,configurable:!0}),a.prototype.getColumnBrush=function(e){return new i(e)},a.prototype.getColumnBorder=function(e){return o.light(e,255)},a}(t.StiStyleCoreXF);t.StiStyleCoreXF22=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(91,155,213),i.fromArgb(159,159,159),i.fromArgb(68,114,196),i.fromArgb(37,94,145),i.fromArgb(99,99,99),i.fromArgb(38,68,120)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"23"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle23},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF22);t.StiStyleCoreXF23=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[i.fromArgb(237,125,49),i.fromArgb(255,192,0),i.fromArgb(112,173,71),i.fromArgb(158,72,14),i.fromArgb(153,115,0),i.fromArgb(67,104,43)],t}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"24"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle24},enumerable:!0,configurable:!0}),n}(t.StiStyleCoreXF22);t.StiStyleCoreXF24=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Color,n=e.System.Drawing.ColorTranslator,o=e.System.Drawing.Font,a=e.Base.Drawing.StiColorUtils,s=e.Base.Drawing.StiSolidBrush,l=function(e){function l(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[n.fromHtml("#70ad47"),n.fromHtml("#4472c4"),n.fromHtml("#ffc000"),n.fromHtml("#43682b"),n.fromHtml("#fd6a37"),n.fromHtml("#997300")],t}return __extends(l,e),Object.defineProperty(l.prototype,"localizedName",{get:function(){return r.get("Chart","Style")+"25"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle25},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendShowShadow",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendBorderColor",{get:function(){return a.dark(this.basicStyleColor,30)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsBrush",{get:function(){return new s(i.transparent)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsColor",{get:function(){return n.fromHtml("#33475b")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsBorderColor",{get:function(){return i.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsFont",{get:function(){return new o("Arial",10)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLighting",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesShowShadow",{get:function(){return!1},enumerable:!0,configurable:!0}),l}(t.StiStyleCoreXF22);t.StiStyleCoreXF25=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Font,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Color,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiColorUtils,l=function(e){function l(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[o.fromHtml("#2ec6c8"),o.fromHtml("#b5a1dd"),o.fromHtml("#5ab0ee"),o.fromHtml("#f4984e"),o.fromHtml("#d77a80"),o.fromHtml("#d04456")],t}return __extends(l,e),Object.defineProperty(l.prototype,"localizedName",{get:function(){return i.get("Chart","Style")+"26"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"chartAreaBrush",{get:function(){return new a(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendShowShadow",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendBorderColor",{get:function(){return s.dark(this.basicStyleColor,30)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsBrush",{get:function(){return new a(n.transparent)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsColor",{get:function(){return o.fromHtml("#33475B")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsBorderColor",{get:function(){return n.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsFont",{get:function(){return new r("Arial",10)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLighting",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesShowShadow",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"markerVisible",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle26},enumerable:!0,configurable:!0}),l.prototype.getColumnBorder=function(e){return n.transparent},l}(t.StiStyleCoreXF22);t.StiStyleCoreXF26=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Font,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Color,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiColorUtils,l=function(e){function l(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[o.fromHtml("#0bac45"),o.fromHtml("#585257"),o.fromHtml("#ec334d"),o.fromHtml("#a1ae94"),o.fromHtml("#ed7d31"),o.fromHtml("#5ab0ee")],t}return __extends(l,e),Object.defineProperty(l.prototype,"localizedName",{get:function(){return i.get("Chart","Style")+"27"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"styleColors",{get:function(){return this._styleColor},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"chartBrush",{get:function(){return new a(s.dark(o.fromHtml("#33475b"),50))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"chartAreaBrush",{get:function(){return new a(o.fromHtml("#33475b"))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsBrush",{get:function(){return new a(n.transparent)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsColor",{get:function(){return n.white},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsBorderColor",{get:function(){return n.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsFont",{get:function(){return new r("Arial",10)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendBrush",{get:function(){return new a(n.transparent)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendLabelsColor",{get:function(){return n.white},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendBorderColor",{get:function(){return n.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendTitleColor",{get:function(){return n.white},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendShowShadow",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendFont",{get:function(){return new r("Arial",9)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLighting",{get:function(){return!1},enumerable:!0,configurable:!0}),l.prototype.getColumnBorder=function(e){return n.transparent},Object.defineProperty(l.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle27},enumerable:!0,configurable:!0}),l}(t.StiStyleCoreXF22);t.StiStyleCoreXF27=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Font,i=e.Base.Localization.StiLocalization,n=e.System.Drawing.Color,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiColorUtils,l=function(e){function l(){var t=null!==e&&e.apply(this,arguments)||this;return t._styleColor=[o.fromHtml("#165d9e"),o.fromHtml("#577eb6"),o.fromHtml("#569436"),o.fromHtml("#225056"),o.fromHtml("#d4dae0")],t}return __extends(l,e),Object.defineProperty(l.prototype,"localizedName",{get:function(){return i.get("Chart","Style")+"28"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"chartBrush",{get:function(){return new a(s.light(o.fromHtml("#0a325a"),30))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"chartAreaBrush",{get:function(){return new a(o.fromHtml("#0a325a"))},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"axisTitleColor",{get:function(){return s.dark(this.basicStyleColor,50)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"axisLineColor",{get:function(){return s.dark(this.basicStyleColor,50)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"axisLabelsColor",{get:function(){return s.dark(this.basicStyleColor,50)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"seriesLabelsColor",{get:function(){return n.white},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendBrush",{get:function(){return new a(n.transparent)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendLabelsColor",{get:function(){return n.white},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendBorderColor",{get:function(){return n.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendTitleColor",{get:function(){return n.white},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendShowShadow",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"legendFont",{get:function(){return new r("Arial",9)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"styleId",{get:function(){return t.StiChartStyleId.StiStyle28},enumerable:!0,configurable:!0}),l}(t.StiStyleCoreXF22);t.StiStyleCoreXF28=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringTrimming,i=e.System.Drawing.StringFormatFlags,n=e.System.Drawing.StringAlignment,o=e.Base.Drawing.StiRotationMode,a=e.Base.Context.StiFontGeom,s=e.System.DateTime,l=e.System.Drawing.Point,u=e.System.Drawing.Rectangle,c=e.System.ICloneable,h=function(){function h(e){this._chartTable=e}return h.prototype.implements=function(){return h.implementsStiChartTableCoreXF||(h.implementsStiChartTableCoreXF=[c,t.IStiApplyStyle,t.IStiChartTableCoreXF]),h.implementsStiChartTableCoreXF},h.prototype.applyStyle=function(e){this.chartTable.allowApplyStyle&&(this.chartTable.gridLineColor=e.core.legendBorderColor,this.chartTable.textColor=e.core.legendLabelsColor)},h.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(h.prototype,"chartTable",{get:function(){return this._chartTable},set:function(e){this._chartTable=e},enumerable:!0,configurable:!0}),h.prototype.showTable=function(){if((this._chartTable.chart.area.sti_is(t.IStiClusteredColumnArea)||this._chartTable.chart.area.sti_is(t.IStiStackedColumnArea))&&!this._chartTable.chart.area.sti_is(t.IStiCandlestickArea)&&!this._chartTable.chart.area.sti_is(t.IStiRangeArea)&&!this._chartTable.chart.area.sti_is(t.IStiScatterArea)&&!this._chartTable.chart.area.sti_is(t.IStiStockArea)&&this._chartTable.visible)return!0;return!1},h.prototype.getHeightTable=function(e,t){var r=a.changeFontSize(this._chartTable.dataCells.font,this._chartTable.dataCells.font.size*e.options.zoom);return e.measureString("HeightText",r).height*this._chartTable.chart.series.count+this.getHeightHeaderTable(e,t)},h.prototype.getHeightHeaderTable=function(e,t){var s=0,u=this._chartTable.chart.area,c=u.xAxis.startFromZero,h=this.getArguments(),p=a.changeFontSize(this._chartTable.header.font,this._chartTable.header.font.size*e.options.zoom),f=e.getGenericStringFormat();f.trimming=r.None,this.chartTable.header.wordWrap||(f.formatFlags=i.MeasureTrailingSpaces|i.NoWrap),f.alignment=n.Center,f.lineAlignment=n.Center;for(var m=u.xAxis.startFromZero?h.count+1:h.count-1,S=t/m,g=0;g<h.count;g++){var d=0;0!=g&&g!=h.count-1||(d=c?S/2:-S/2);var y=e.measureRotatedString3(h[g],p,new l(0,0),f,o.CenterCenter,0,Math.trunc(S+d-16*e.options.zoom)).height;s=Math.max(s,y)}return s},h.prototype.getWidthCellLegend=function(e){var t=a.changeFontSize(this._chartTable.dataCells.font,this._chartTable.dataCells.font.size*e.options.zoom),r=e.getGenericStringFormat();r.formatFlags=i.MeasureTrailingSpaces|i.NoWrap,r.alignment=n.Center,r.lineAlignment=n.Center;for(var s=0,c=new u,h=0,p=this._chartTable.chart.series.list;h<p.length;h++){var f=p[h];c=e.measureRotatedString4(f.coreTitle,t,new l(0,0),r,o.CenterCenter,0),s=Math.max(c.width,s)}return this._chartTable.markerVisible&&(s+=c.height),Math.ceil(s)},h.prototype.render=function(e,r){return new t.StiChartTableGeom(r,this.getTableValues(),this.getWidthCellLegend(e),this.getHeightHeaderTable(e,r.width),this._chartTable)},h.prototype.getMaxCountValues=function(e){for(var t=0,r=0,i=e.list;r<i.length;r++){var n=i[r];t=Math.max(t,n.values.length)}return t},h.prototype.getArguments=function(){for(var t=this.chartTable.chart.series,r=[],i=this.getMaxCountValues(t),n=0;n<i;n++)t.getByIndex(0).arguments.length>n?r.add(t.getByIndex(0).arguments[n].toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)):r.add((n+1).toString());return r},h.prototype.getTableValues=function(){for(var r=this.chartTable.chart.series,i=this.getArguments(),n=Array.create(String,r.count+1,i.count+1),o=0;o<i.count;o++)n[0][o+1]=i[o];for(var a=this.chartTable.chart.area,l=1,u=0,c=r.list;u<c.length;u++){var h=c[u];n[l][0]=h.coreTitle;for(var p=1,o=0;o<h.values.length;o++){var f=a.reverseHor?h.values[h.values.length-o-1]:h.values[o],m=this.chartTable.chart.table.format;if(null==m&&0==m.trim().length||null==f)n[l][p]=f.toString().replaceAll(".",e.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);else if(m.startsWith("P")&&!t.StiChartOptions.oldChartPercentMode){var S=0,g=void 0;try{m.length>1&&(S=m.remove(0,1).toNumber()),g=h.seriesLabels.core.recalcValue(f,S)}catch(t){e.System.StiError.showError(t,!1),g=h.seriesLabels.core.recalcValue(f,2)}n[l][p]=String.stiFormat("{0:N"+S.toString()+"}{1}",g,"%")}else{var d=f;h.core.isDateTimeValues&&(d=s.fromOADate(f)),n[l][p]=String.stiFormat("{0:"+m+"}",d)}p++}l++}return n},h}();t.StiChartTableCoreXF=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.ICloneable,i=function(){function e(e){this._trendLine=e}return e.prototype.implements=function(){return e.implementsStiTrendLineCoreXF||(e.implementsStiTrendLineCoreXF=[r,t.IStiTrendLineCoreXF]),e.implementsStiTrendLineCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"localizedName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trendLine",{get:function(){return this._trendLine},set:function(e){this._trendLine=e},enumerable:!0,configurable:!0}),e.prototype.renderTrendLine=function(e,t,r){},e.prototype.sum=function(e){for(var t=0,r=0,i=e;r<i.length;r++){t+=i[r]}return t},e.prototype.sumSqr=function(e){for(var t=0,r=0,i=e;r<i.length;r++){var n=i[r];t+=n*n}return t},e.prototype.sumProductions=function(e,t){for(var r=0,i=0;i<e.length;i++)r+=e[i]*t[i];return r},e.prototype.sumProductionsXLogY=function(e,t){for(var r=0,i=0;i<e.length;i++)r+=e[i]*Math.log(t[i]);return r},e.prototype.sumLn=function(e){for(var t=0,r=0,i=e;r<i.length;r++){var n=i[r];t+=Math.log(n)}return t},e}();t.StiTrendLineCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Point,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("PropertyMain","Exponential")},enumerable:!0,configurable:!0}),n.prototype.renderTrendLine=function(e,r,n){if(r.length>0){for(var o=Array.create(Number,r.length),a=Array.create(Number,r.length),s=r[0].x,l=r[0].x,u=0;u<r.length;u++)o[u]=r[u].x,a[u]=n-r[u].y,s<r[u].x&&(s=r[u].x),l>r[u].x&&(l=r[u].x);for(var c=r.length,h=this.sum(o),p=this.sumSqr(o),f=this.sumProductionsXLogY(o,a),m=this.sumLn(a),S=(c*f-h*m)/(c*p-h*h),g=(p*m-h*f)/(c*p-h*h),d=Math.exp(g),y=Array.create(i,31,!0),b=0;b<31;b++){var v=l+(s-l)/30*b,C=d*Math.exp(S*v);y[b]=new i(v,n-C)}var w=new t.StiTrendCurveGeom(y,this.trendLine);e.createChildGeoms(),e.childGeoms.add(w)}},n}(t.StiTrendLineCoreXF);t.StiTrendLineExponentialCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Point,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("PropertyMain","Linear")},enumerable:!0,configurable:!0}),n.prototype.renderTrendLine=function(e,r,n){if(r.length>0){for(var o=Array.create(Number,r.length),a=Array.create(Number,r.length),s=r[0].x,l=r[0].x,u=0;u<r.length;u++)o[u]=r[u].x,a[u]=r[u].y,s<o[u]&&(s=o[u]),l>o[u]&&(l=o[u]);var c=r.length,h=this.sum(o),p=this.sum(a),f=this.sumSqr(o),m=this.sumProductions(o,a),S=h*h-f*c,g=(p*h-m*c)/S,d=(h*m-f*p)/S,y=new t.StiTrendLineGeom(new i(l,g*l+d),new i(s,g*s+d),this.trendLine);e.createChildGeoms(),e.childGeoms.add(y)}},n}(t.StiTrendLineCoreXF);t.StiTrendLineLinearCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=e.System.Drawing.Point,n=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"localizedName",{get:function(){return r.get("PropertyMain","Logarithmic")},enumerable:!0,configurable:!0}),n.prototype.renderTrendLine=function(e,r,n){if(r.length>0){for(var o=Array.create(Number,r.length),a=Array.create(Number,r.length),s=r[0].x,l=r[0].x,u=0;u<r.length;u++)o[u]=Math.log(r[u].x),a[u]=r[u].y,s<r[u].x&&(s=r[u].x),l>r[u].x&&(l=r[u].x);for(var c=r.length,h=this.sum(o),p=this.sum(a),f=this.sumSqr(o),m=this.sumProductions(o,a),S=h*h-f*c,g=(p*h-m*c)/S,d=(h*m-f*p)/S,y=Array.create(i,31,!0),b=0;b<31;b++){var v=l+(s-l)/30*b,C=g*Math.log(v)+d;y[b]=new i(v,C)}var w=new t.StiTrendCurveGeom(y,this.trendLine);e.createChildGeoms(),e.childGeoms.add(w)}},n}(t.StiTrendLineCoreXF);t.StiTrendLineLogarithmicCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Localization.StiLocalization,i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return r.get("Chart","LabelsNone")},enumerable:!0,configurable:!0}),t}(t.StiTrendLineCoreXF);t.StiTrendLineNoneCoreXF=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Rectangle,i=e.System.ICloneable,n=function(){function e(e){this._chart=e}return e.prototype.implements=function(){return e.implementsStiChartCoreXF||(e.implementsStiChartCoreXF=[i,t.IStiApplyStyle,t.IStiChartCoreXF]),e.implementsStiChartCoreXF},e.prototype.clone=function(){return this.memberwiseClone()},e.prototype.applyStyle=function(e){this.chart.style=e,this.chart.brush=e.core.chartBrush,null!=this.chart.title&&this.chart.title.core.applyStyle(e),null!=this.chart.area&&this.chart.area.core.applyStyle(e),null!=this.chart.legend&&this.chart.legend.core.applyStyle(e),null!=this.chart.seriesLabels&&this.chart.seriesLabels.core.applyStyle(e),null!=this.chart.series&&this.chart.series.applyStyle(e),null!=this.chart.constantLines&&this.chart.constantLines.applyStyle(e),null!=this.chart.strips&&this.chart.strips.applyStyle(e),null!=this.chart.table&&this.chart.table.core.applyStyle(e)},e.prototype.render=function(e,i,n){var o=new t.StiChartGeom(i);o.createChildGeoms();var a;if(n){var s=e.options.zoom;a=new r(i.x+this._chart.horSpacing*s,i.y+this._chart.vertSpacing*s,i.width-2*this._chart.horSpacing*s,i.height-2*this._chart.vertSpacing*s)}else a=i.clone();var l=this._chart.title.core.render(e,this._chart.title,a);if(null!=l){switch(this._chart.title.dock){case t.StiChartTitleDock.Top:a.y+=l.clientRectangle.height,a.height-=l.clientRectangle.height;break;case t.StiChartTitleDock.Right:a.width-=l.clientRectangle.width;break;case t.StiChartTitleDock.Bottom:a.height-=l.clientRectangle.height;break;case t.StiChartTitleDock.Left:a.x+=l.clientRectangle.width,a.width-=l.clientRectangle.width;break}o.childGeoms.add(l)}var u=null,c=a.clone();if(null!=this._chart.legend&&null!=(u=this._chart.legend.core.render(e,a))){var h=u.clientRectangle.clone(),p={ref:a},f={ref:c},m={ref:h};this.setLegendRect(e,this._chart,p,f,m),a=p.ref,h=m.ref,c=f.ref}var S=null,g=0,d=0;if(this._chart.table.core.showTable()&&(S=this._chart.area.core.render(e,c),g=this._chart.table.core.getWidthCellLegend(e)+S.clientRectangle.width,d=this._chart.table.core.getHeightTable(e,g),c.height-=d),null!=this._chart.area&&null!=(S=this._chart.area.core.render(e,c))&&o.childGeoms.add(S),this._chart.table.core.showTable()){var y=this._chart.series,b=this.chart.area;if(null!=y&&y.count>0){var v=c.x;this._chart.table.core.getWidthCellLegend(e)<S.clientRectangle.x-c.x&&(v=S.clientRectangle.x-this._chart.table.core.getWidthCellLegend(e)),b.reverseHor&&b.yRightAxis.visible&&(v=S.clientRectangle.left);var C=S.clientRectangle.bottom;this._chart.table.chart.area.sti_is(t.IStiClusteredBarArea)&&(C=c.bottom);var w=new r(v,C,g,d),x=this._chart.table.core.render(e,w);o.childGeoms.add(x)}}if(o.createChildGeoms(),null!=u){c=S.clientRectangle.clone();var h=u.clientRectangle.clone(),p={ref:a},f={ref:c},m={ref:h};this.setLegendRect(e,this._chart,p,f,m),a=p.ref,h=m.ref,c=f.ref,u.clientRectangle=h.clone(),o.childGeoms.add(u)}return o},e.prototype.setLegendRect=function(e,r,i,n,o){var a=i.ref,s=n.ref,l=o.ref,u=r.horSpacing*e.options.zoom,c=r.vertSpacing*e.options.zoom;switch(r.legend.horAlignment){case t.StiLegendHorAlignment.LeftOutside:l.x=a.x,s.width-=l.width+u,s.x+=l.width+u;break;case t.StiLegendHorAlignment.Left:l.x=s.x+u;break;case t.StiLegendHorAlignment.Center:l.x=s.x+(s.width-l.width)/2;break;case t.StiLegendHorAlignment.Right:l.x=s.right-u-l.width,r.legend.showShadow&&r.legend.vertAlignment==t.StiLegendVertAlignment.BottomOutside&&(l.x-=5,s.width-=5);break;case t.StiLegendHorAlignment.RightOutside:l.x=a.right-l.width,s.width-=l.width+u,r.legend.showShadow&&(l.x-=5,s.width-=5);break}switch(r.legend.vertAlignment){case t.StiLegendVertAlignment.TopOutside:l.y=a.y,s.height-=l.height+c,s.y+=l.height+c;break;case t.StiLegendVertAlignment.Top:l.y=s.y+c;break;case t.StiLegendVertAlignment.Center:l.y=s.y+(s.height-l.height)/2;break;case t.StiLegendVertAlignment.Bottom:l.y=s.bottom-c-l.height,!r.legend.showShadow||r.legend.horAlignment!=t.StiLegendHorAlignment.LeftOutside&&r.legend.horAlignment!=t.StiLegendHorAlignment.RightOutside||(l.y-=5,s.height-=5);break;case t.StiLegendVertAlignment.BottomOutside:l.y=a.bottom-l.height,s.height-=l.height+c,r.legend.showShadow&&(l.y-=5,s.height-=5);break}r.legend.vertAlignment==t.StiLegendVertAlignment.BottomOutside||r.legend.vertAlignment==t.StiLegendVertAlignment.TopOutside?(r.legend.horAlignment==t.StiLegendHorAlignment.Left&&(l.x-=u),r.legend.horAlignment==t.StiLegendHorAlignment.Right&&(l.x+=u)):r.legend.horAlignment!=t.StiLegendHorAlignment.RightOutside&&r.legend.horAlignment!=t.StiLegendHorAlignment.LeftOutside||(r.legend.vertAlignment==t.StiLegendVertAlignment.Top&&(l.y-=c),r.legend.vertAlignment==t.StiLegendVertAlignment.Bottom&&(l.y+=c)),i.ref=a,n.ref=s,o.ref=l},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),e}();t.StiChartCoreXF=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Rectangle,i=e.Base.Context.StiGeom,n=e.Base.Context.StiGeomType,o=function(e){function i(t){var i=e.call(this)||this;return i._childGeoms=null,i._clientRectangle=r.empty,i._clientRectangle=t,i}return __extends(i,e),i.prototype.implements=function(){return i.implementsStiCellGeom||(i.implementsStiCellGeom=e.prototype.implements.call(this).concat([t.IStiGeomInteraction,t.IStiCellGeom])),i.implementsStiCellGeom},i.prototype.invokeClick=function(e){},i.prototype.invokeMouseEnter=function(e){},i.prototype.invokeMouseLeave=function(e){},i.prototype.invokeMouseDown=function(e){},i.prototype.invokeMouseUp=function(e){},i.prototype.invokeDrag=function(e){},Object.defineProperty(i.prototype,"invisible",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return n.None},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"childGeoms",{get:function(){return this._childGeoms},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"clientRectangle",{get:function(){return this._clientRectangle},set:function(e){this._clientRectangle=e},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){if(null!=this._childGeoms){for(var e=0,t=this._childGeoms;e<t.length;e++)var r=t[e];this._childGeoms.clear(),this._childGeoms=null}},i.prototype.contains=function(e,t){if(this.invisible)return!1;return this.clientRectangle.contains(e,t)},i.prototype.getGeomAt=function(e,r,i){var n=r-e.clientRectangle.x,o=i-e.clientRectangle.y;if(null!=e.childGeoms){for(var a=e,s=null,l=0,u=e.childGeoms;l<u.length;l++){var c=u[l];if(null!=a&&a.isChildVisibleInView(c)||null==a)if(c.sti_is(t.StiAxisAreaGeom)){if(!c.view.contains(r,i))continue;var h=this.getGeomAt(c,n,o);null!=h&&(s=h)}else{var h=this.getGeomAt(c,n,o);if(null!=h&&(s=h,s.sti_is(t.StiMarkerGeom)))return s}}if(null!=s)return s}if(e.contains(r,i))return e;return null},i.prototype.getSeriesGeoms=function(){var e=[];if(null==this._childGeoms)return e;for(var r=0,i=this.childGeoms;r<i.length;r++){var n=i[r];(n.sti_is(t.StiSeriesGeom)||n.sti_is(t.StiSeriesElementGeom))&&e.add(n);for(var o=n.getSeriesGeoms(),a=0,s=o;a<s.length;a++){var l=s[a];e.add(l)}}return e},i.prototype.getRect=function(e){var t=r.empty;if(null==this._childGeoms)return t;for(var i=0,n=this.childGeoms;i<n.length;i++){var o=n[i];if(o==e)return t.x+=o.clientRectangle.x,t.y+=o.clientRectangle.y,t.size=o.clientRectangle.size,t;var a=o.getRect(e);if(!a.isEmpty)return t.x+=o.clientRectangle.x,t.y+=o.clientRectangle.y,t.x+=a.x,t.y+=a.y,t.size=a.size,t}return t},i.prototype.createChildGeoms=function(){null==this._childGeoms&&(this._childGeoms=[])},i.prototype.draw=function(e){},i.prototype.drawGeom=function(e){this.draw(e),this.drawChildGeoms(e)},i.prototype.drawChildGeoms=function(e){if(null!=this.childGeoms){e.pushTranslateTransform(this.clientRectangle.x,this.clientRectangle.y);for(var t=0,r=this.childGeoms;t<r.length;t++){var i=r[t];this.allowChildDrawing(i)&&i.drawGeom(e)}e.popTransform()}},i.prototype.allowChildDrawing=function(e){return null!=e},i}(i);t.StiCellGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiShadowSides,i=function(e){function t(t,r){var i=e.call(this,r)||this;return i._area=t,i}return __extends(t,e),Object.defineProperty(t.prototype,"area",{get:function(){return this._area},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone();if(t.isEmpty)return;t.width>0&&t.height>0&&(this._area.showShadow&&e.drawCachedShadow(t,r.All,e.options.isPrinting),e.fillRectangle(this._area.brush,t))},t}(t.StiCellGeom);t.StiAreaGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiPenStyle,n=e.System.Drawing.Rectangle,o=function(e){function t(t,r,i){var n=e.call(this,r,i)||this;return n.minWidth=6,n._view=t,n}return __extends(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),t.prototype.drawInterlacingHor=function(e,t){t.x=0,t.width=this.view.clientRectangle.width;var r=this.area;if(!r.interlacingHor.visible)return;for(var i=[],o=r.yAxis.info.stripPositions.length,a=Array.create(Number,o),s=0;s<o;s++)a[o-1-s]=r.yAxis.info.stripPositions[s];for(var l=0,u=!0,c=0,h=0,p=a;h<p.length;h++){var f=p[h];if(c++,u){l=f,i.add(f),u=!1;continue}if(l-f<this.minWidth&&c!=a.length)continue;l=f,i.add(f)}var m=Array.create(Number,i.count);i.copyTo(m);for(var S=0,g=!0,d=0,y=m;d<y.length;d++){var b=y[d],v=m[S+1];if(g){var C=new n(t.x,t.y+v,t.width,b-v);C.bottom>=0&&C.y<this.view.clientRectangle.height&&e.fillRectangle(r.interlacingHor.interlacedBrush,C)}if(g=!g,++S==m.length-1)break}},t.prototype.drawInterlacingVer=function(e,t){t.y=0,t.height=this.view.clientRectangle.height;var r=this.area;if(!r.interlacingVert.visible)return;var i=0,o=0;r.reverseHor&&(o=1);for(var a=[],s=r.xAxis.info.stripPositions,l=0,u=!0,c=0,h=0,p=s;h<p.length;h++){var f=p[h];if(c++,u){l=f,a.add(f),u=!1;continue}if(f-l<this.minWidth&&c!=s.length)continue;l=f,a.add(f)}var m=Array.create(Number,a.count);a.copyTo(m);for(var S=0,g=m;S<g.length;S++){var d=g[S],y=m[i+1];if((1&o)>0){var b=new n(d+t.x,t.y,y-d,t.height);b.right>=0&&b.x<this.view.clientRectangle.width&&e.fillRectangle(r.interlacingVert.interlacedBrush,b)}if(o++,++i==m.length-1)break}},t.prototype.drawGridLinesHor=function(e,t,n,o){t.x=0,t.width=this.view.clientRectangle.width;for(var a=this.area,s=o?a.yAxis.info.stripPositions:a.yRightAxis.info.stripPositions,l=s.length,u=Array.create(Number,l),c=0;c<l;c++)u[l-c-1]=s[c];s=u;for(var h=s[0],p=0,f=0,m=s;f<m.length;f++){var S=m[f],g=h-S;if(g<this.minWidth&&g>0)continue;h=S;var d=1;if(n.visible&&n.style!=i.None){var y=new r(n.color,d);y.penStyle=n.style;var b=S+t.y;b>=0&&b<=this.clientRectangle.height&&e.drawLine(y,t.x,b,t.right,b)}if(n.minorVisible&&n.minorStyle!=i.None&&p!=s.length-1){var v=s[p+1];if(S-v<this.minWidth)continue;var C=new r(n.minorColor,d);C.penStyle=n.minorStyle;for(var w=0==n.minorCount?a.yAxis.ticks.minorCount:n.minorCount,x=S,_=(v-S)/(w+1),A=1;A<=w;A++){x=S+_*A;var L=x+t.y;L>=0&&L<=this.clientRectangle.height&&e.drawLine(C,t.x,L,t.right,L)}}p++}},t.prototype.drawGridLinesVer=function(e,t,n,o){t.y=0,t.height=this.view.clientRectangle.height;for(var a=this.area,s=o?a.xAxis.info.stripPositions:a.xTopAxis.info.stripPositions,l=0,u=0,c=0,h=s;c<h.length;c++){var p=h[c],f=p-l;if(f<this.minWidth&&f>0)continue;l=p;var m=1;if(n.visible&&n.style!=i.None){var S=new r(n.color,m);S.penStyle=n.style;var g=p+t.x;g>=0&&g<=this.clientRectangle.width&&e.drawLine(S,g,t.y,g,t.bottom)}if(n.minorVisible&&n.minorStyle!=i.None&&u!=s.length-1){var d=s[u+1];if(d-p<this.minWidth)continue;var y=new r(n.minorColor,m);y.penStyle=n.minorStyle;for(var b=0==n.minorCount?a.yAxis.ticks.minorCount:n.minorCount,v=p,C=(d-p)/(b+1),w=1;w<=b;w++){v=p+C*w;var x=v+t.x;x>=0&&x<=this.clientRectangle.width&&e.drawLine(y,x,t.y,x,t.bottom)}}u++}},t.prototype.allowChildDrawing=function(e){return null!=e&&this.isChildVisibleInView(e)},t.prototype.isChildVisibleInView=function(e){var t=this.view.clientRectangle.clone();t.x=0,t.y=0;var r=e.clientRectangle.clone();return r.x-=this.area.core.scrollDistanceX,r.y-=this.area.core.scrollDistanceY,null!=e&&t.intersectsWith(r)},t.prototype.draw=function(t){e.prototype.draw.call(this,t);var r=this.area,i=this.clientRectangle.clone();if(i.isEmpty)return;var n=r.axisCore.getSeries();n.count>0&&(this.drawInterlacingHor(t,i),this.drawInterlacingVer(t,i)),n.count>0&&(this.drawGridLinesHor(t,i,r.gridLinesHor,!0),this.drawGridLinesHor(t,i,r.gridLinesHorRight,!1),this.drawGridLinesVer(t,i,r.gridLinesVert,!0))},t}(t.StiAreaGeom);t.StiAxisAreaGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(e){function i(t,r){return e.call(this,t,r)||this}return __extends(i,e),i.prototype.drawGeom=function(t){e.prototype.drawGeom.call(this,t),this.drawBorder(t)},i.prototype.drawChildGeoms=function(e){if(null!=this.childGeoms){var r=this.clientRectangle.clone();r.x=0,r.y=0,e.pushTranslateTransform(this.clientRectangle.x,this.clientRectangle.y);for(var i=0,n=this.childGeoms;i<n.length;i++){var o=n[i],a=o.sti_is(t.StiAxisAreaGeom)||o.sti_is(t.StiXAxisGeom)&&o.isCenterAxis||o.sti_is(t.StiYAxisGeom)&&o.isCenterAxis;a&&e.pushClip(r),this.allowChildDrawing(o)&&o.drawGeom(e),a&&e.popClip()}e.popTransform()}},i.prototype.drawBorder=function(e){var t=this.clientRectangle.clone();if(t.isEmpty)return;var i=new r(this.area.borderColor);e.drawRectangle2(i,t.x,t.y,t.width,t.height)},i}(t.StiAreaGeom);t.StiAxisAreaViewGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiShadowSides,n=function(e){function t(t,r){return e.call(this,t,r)||this}return __extends(t,e),t.prototype.draw=function(e){var t=this.clientRectangle.clone();if(t.width>0&&t.height>0){this.area.showShadow&&e.drawCachedShadow(t,i.All,e.options.isPrinting),e.fillRectangle2(this.area.brush,t.x,t.y,t.width,t.height);var n=new r(this.area.borderColor);e.drawRectangle2(n,t.x,t.y,t.width,t.height)}},t}(t.StiAreaGeom);t.StiPieAreaGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,r){return e.call(this,t,r)||this}return __extends(t,e),t}(e.StiPieAreaGeom);e.StiDoughnutAreaGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,r){return e.call(this,t,r)||this}return __extends(t,e),t.prototype.draw=function(e){},t}(e.StiAreaGeom);e.StiPictorialAreaGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.System.Drawing.Point,o=e.System.Drawing.Rectangle,a=e.Base.Context.StiArcSegmentGeom,s=function(e){function s(t,r,i){var n=e.call(this,t,r)||this;return n._valuesCount=i,n}return __extends(s,e),Object.defineProperty(s.prototype,"valuesCount",{get:function(){return this._valuesCount},enumerable:!0,configurable:!0}),s.prototype.drawHor=function(e,s,l){var u=this.clientRectangle.clone(),c=this.area;if(null==c.yAxis.info.stripPositions)return;for(var h=c.core,p=0,f=0,m=c.yAxis.info.stripPositions;f<m.length;f++){var S=m[f];if(0!=S){var g=new o(h.centerPoint.x-S,h.centerPoint.y-S,2*S,2*S);if(c.radarStyle==t.StiRadarStyle.Circle){if(s&&c.interlacingHor.visible&&p!=c.yAxis.info.stripPositions.length-1&&0==(1&p)){var d=[],y=c.yAxis.info.stripPositions[p+1],b=new o(h.centerPoint.x-y,h.centerPoint.y-y,2*y,2*y);d.add(new a(g,0,360)),d.add(new a(b,0,360)),e.fillPath(c.interlacingHor.interlacedBrush,d,u)}if(l&&c.gridLinesHor.visible){var v=void 0;p==c.yAxis.info.stripPositions.length-1?v=new r(c.borderColor):(v=new r(c.gridLinesHor.color),v.penStyle=c.gridLinesHor.style),e.drawEllipse2(v,g)}}else{if(s&&c.interlacingHor.visible&&p!=c.yAxis.info.stripPositions.length-1&&1==(1&p)){for(var d=[],C=0,w=0,x=h.points;w<x.length;w++){var _=x[w],A=void 0;A=C==h.points.count-1?h.points[0]:h.points[C+1];var L=new n(h.centerPoint.x+S*_.x,h.centerPoint.y+S*_.y),O=new n(h.centerPoint.x+S*A.x,h.centerPoint.y+S*A.y);d.add(new i(L.x,L.y,O.x,O.y)),C++}var y=c.yAxis.info.stripPositions[p+1];C=0;for(var P=0,B=h.points;P<B.length;P++){var _=B[P],A=void 0;A=C==h.points.count-1?h.points[0]:h.points[C+1];var L=new n(h.centerPoint.x+y*_.x,h.centerPoint.y+y*_.y),O=new n(h.centerPoint.x+y*A.x,h.centerPoint.y+y*A.y);d.add(new i(L.x,L.y,O.x,O.y)),C++}e.fillPath(c.interlacingHor.interlacedBrush,d,u)}if(l&&c.gridLinesHor.visible)for(var R=0,k=0,j=h.points;k<j.length;k++){var _=j[k],A=void 0;A=R==h.points.count-1?h.points[0]:h.points[R+1];var v=void 0;p==c.yAxis.info.stripPositions.length-1?v=new r(c.borderColor):(v=new r(c.gridLinesHor.color),v.penStyle=c.gridLinesHor.style),e.drawLine(v,h.centerPoint.x+S*_.x,h.centerPoint.y+S*_.y,h.centerPoint.x+S*A.x,h.centerPoint.y+S*A.y),R++}}}p++}},s.prototype.drawVert=function(e,o,s){for(var l=this.clientRectangle.clone(),u=this.area,c=u.core,h=0,p=360/c.points.count,f=0,m=0,S=c.points;m<S.length;m++){var g=S[m],d=c.centerPoint,y=new n(d.x+l.width/2*g.x,d.y+l.width/2*g.y);if(o&&u.interlacingVert.visible){var b=h<c.points.count-1?new n(d.x+l.width/2*c.points[h+1].x,d.y+l.height/2*c.points[h+1].y):new n(d.x+l.width/2*c.points[0].x,d.y+l.height/2*c.points[0].y);if(1==(1&h)){var v=[];u.radarStyle==t.StiRadarStyle.Circle?(v.add(new i(d.x,d.y,y.x,y.y)),v.add(new a(l,f-90,p)),v.add(new i(b.x,b.y,d.x,d.y))):(v.add(new i(d.x,d.y,y.x,y.y)),v.add(new i(y.x,y.y,b.x,b.y)),v.add(new i(b.x,b.y,d.x,d.y))),e.fillPath(u.interlacingVert.interlacedBrush,v,l)}}if(s&&u.gridLinesVert.visible){var C=new r(u.gridLinesVert.color);C.penStyle=u.gridLinesVert.style,e.drawLine(C,d.x,d.y,y.x,y.y)}f+=p,h++}},s.prototype.drawBackground=function(e){var r=this.clientRectangle.clone(),n=this.area;if(null==n.yAxis.info.stripPositions)return;var o=n.core;if(n.radarStyle==t.StiRadarStyle.Circle)e.fillEllipse2(n.brush,r);else{for(var a=n.yAxis.info.stripPositions[n.yAxis.info.stripPositions.length-1],s=[],l=0,u=0,c=o.points;u<c.length;u++){var h=c[u],p=l==o.points.count-1?o.points[0]:o.points[l+1];s.add(new i(o.centerPoint.x+a*h.x,o.centerPoint.y+a*h.y,o.centerPoint.x+a*p.x,o.centerPoint.y+a*p.y)),l++}e.fillPath(n.brush,s,r)}},s.prototype.draw=function(e){var t=this.clientRectangle.clone(),r=this.area,i=r.core;t.width>0&&t.height>0&&(e.pushSmoothingModeToAntiAlias(),this.drawBackground(e),this.drawVert(e,!0,!1),this.drawHor(e,!0,!1),this.drawVert(e,!1,!0),this.drawHor(e,!1,!0),e.popSmoothingMode())},s}(t.StiAreaGeom);t.StiRadarAreaGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiShadowSides,n=function(e){function t(t,r){return e.call(this,t,r)||this}return __extends(t,e),t.prototype.draw=function(e){var t=this.clientRectangle.clone();if(t.width>0&&t.height>0){this.area.showShadow&&e.drawCachedShadow(t,i.All,e.options.isPrinting),e.fillRectangle2(this.area.brush,t.x,t.y,t.width,t.height);var n=new r(this.area.borderColor);e.drawRectangle2(n,t.x,t.y,t.width,t.height)}},t}(t.StiAreaGeom);t.StiTreemapAreaGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.TimeSpan,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=function(e){function l(t,r){var i=e.call(this,r)||this;return i._axis=t,i}return __extends(l,e),l.prototype.invokeMouseEnter=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverIncreaseButton||(this.axis.core.isMouseOverIncreaseButton=!0,e.updateContext=!0)},l.prototype.invokeMouseLeave=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverIncreaseButton&&(this.axis.core.isMouseOverIncreaseButton=!1,e.updateContext=!0)},l.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;e.updateContext=this.moveDown(),e.updateContext&&(e.isRecalled?e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarOtherRecallTime):e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarFirstRecallTime),e.recallEvent=!0)},l.prototype.moveDown=function(){var e=this.axis.area.core;return!(e.scrollValueY>=e.scrollRangeY-e.scrollViewY)&&(e.scrollValueY+=e.scrollViewY*t.StiAxisCoreXF.defaultScrollBarSmallFactor,e.scrollValueY>=e.scrollRangeY-e.scrollViewY&&(e.scrollValueY=e.scrollRangeY-e.scrollViewY),e.blockScrollValueY=!0,!0)},Object.defineProperty(l.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),l.prototype.draw=function(e){var t=e.options.zoom,o=this.clientRectangle.clone(),l=o.x+o.width/2,u=a.white;this.axis.core.isMouseOverIncreaseButton?(e.fillRectangle2(n.light(this.axis.lineColor,50),o.x,o.y,o.width,o.height),e.drawRectangle2(new r(this.axis.lineColor),o.x,o.y,o.width,o.height)):u=this.axis.lineColor;var c=o.width/3,h=o.height/4,p=new s(o.x+o.width/2,o.y+o.height/2);e.pushSmoothingModeToAntiAlias();var f=[];f.add(new i(p.x-c,p.y-h,p.x,p.y+h)),f.add(new i(p.x,p.y+h,p.x+c,p.y-h)),e.fillPath(u,f,o),e.popSmoothingMode()},l}(t.StiCellGeom);t.StiDownButtonGeom=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(e){function t(t,r){var i=e.call(this,r)||this;return i._axis=t,i}return __extends(t,e),t.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;var t=this.axis.area.core;t.blockScrollValueX=!0;var r=this.clientRectangle.height,i=e.mousePoint.x-r,n=this.clientRectangle.width-2*r;t.scrollValueX=i/n*t.scrollRangeX,t.scrollValueX<0&&(t.scrollValueX=0),t.scrollValueX>=t.scrollRangeX-t.scrollViewX&&(t.scrollValueX=t.scrollRangeX-t.scrollViewX),e.updateContext=!0},t.prototype.draw=function(e){var t=this.clientRectangle.clone(),i=new r(this.axis.lineColor);e.drawRectangle2(i,t.x,t.y,t.width,t.height)},Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),t}(t.StiCellGeom);t.StiHorzScrollBarGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiColorUtils,n=e.System.Drawing.Color,o=function(e){function t(t,r,i){var n=e.call(this,r)||this;return n._axis=t,n._scrollBar=i,n}return __extends(t,e),t.prototype.invokeMouseEnter=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverTrackBar||(this.axis.core.isMouseOverTrackBar=!0,e.updateContext=!0)},t.prototype.invokeMouseLeave=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverTrackBar&&(this.axis.core.isMouseOverTrackBar=!1,e.updateContext=!0)},t.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;var t=this.axis.area.core;e.dragEnabled=!0,t.scrollDragStartValue=t.scrollValueX},t.prototype.invokeDrag=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;var t=this.axis.area.core;t.blockScrollValueX=!0;var r=this.scrollBar.clientRectangle.height,i=this.scrollBar.clientRectangle.width-2*r;t.scrollValueX=e.dragDelta.width/i*t.scrollRangeX+t.scrollDragStartValue,t.scrollValueX<0&&(t.scrollValueX=0),t.scrollValueX>=t.scrollRangeX-t.scrollViewX&&(t.scrollValueX=t.scrollRangeX-t.scrollViewX),e.updateContext=!0},t.prototype.draw=function(e){var t=this.clientRectangle.clone(),o=new r(this.axis.lineColor),a=new r(n.white),s=this.axis.area.core,l=this.axis.area.xAxis;if(this.axis.core.isMouseOverTrackBar?e.fillRectangle2(i.light(this.axis.lineColor,50),t.x,t.y,t.width,t.height):e.fillRectangle2(this.axis.lineColor,t.x,t.y,t.width,t.height),e.drawRectangle2(o,t.x,t.y,t.width,t.height),t.width>10&&t.height>4){var u=t.x+t.width/2;e.drawLine(a,u-2,t.y+2,u-2,t.bottom-2),e.drawLine(a,u,t.y+2,u,t.bottom-2),e.drawLine(a,u+2,t.y+2,u+2,t.bottom-2)}},Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!0,configurable:!0}),t}(t.StiCellGeom);t.StiHorzTrackBarGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.TimeSpan,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=function(e){function l(t,r){var i=e.call(this,r)||this;return i._axis=t,i}return __extends(l,e),l.prototype.invokeMouseEnter=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverDecreaseButton||(this.axis.core.isMouseOverDecreaseButton=!0,e.updateContext=!0)},l.prototype.invokeMouseLeave=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverDecreaseButton&&(this.axis.core.isMouseOverDecreaseButton=!1,e.updateContext=!0)},l.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;e.updateContext=this.moveLeft(),e.updateContext&&(e.isRecalled?e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarOtherRecallTime):e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarFirstRecallTime),e.recallEvent=!0)},l.prototype.moveLeft=function(){var e=this.axis.area.core;return 0!=e.scrollValueX&&(e.scrollValueX-=e.scrollViewX*t.StiAxisCoreXF.defaultScrollBarSmallFactor,e.scrollValueX<0&&(e.scrollValueX=0),e.blockScrollValueX=!0,!0)},Object.defineProperty(l.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),l.prototype.draw=function(e){var t=e.options.zoom,o=this.clientRectangle.clone(),l=o.y+o.height/2,u=a.white;this.axis.core.isMouseOverDecreaseButton?(e.fillRectangle2(n.light(this.axis.lineColor,50),o.x,o.y,o.width,o.height),e.drawRectangle2(new r(this.axis.lineColor),o.x,o.y,o.width,o.height)):u=this.axis.lineColor;var c=o.width/4,h=o.height/3,p=new s(o.x+o.width/2,o.y+o.height/2);e.pushSmoothingModeToAntiAlias();var f=[];f.add(new i(p.x+c,p.y-h,p.x-c,p.y)),f.add(new i(p.x-c,p.y,p.x+c,p.y+h)),e.fillPath(u,f,o),e.popSmoothingMode()},l}(t.StiCellGeom);t.StiLeftButtonGeom=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.TimeSpan,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=function(e){function l(t,r){var i=e.call(this,r)||this;return i._axis=t,i}return __extends(l,e),l.prototype.invokeMouseEnter=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverIncreaseButton||(this.axis.core.isMouseOverIncreaseButton=!0,e.updateContext=!0)},l.prototype.invokeMouseLeave=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverIncreaseButton&&(this.axis.core.isMouseOverIncreaseButton=!1,e.updateContext=!0)},l.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;e.updateContext=this.moveRight(),e.updateContext&&(e.isRecalled?e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarOtherRecallTime):e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarFirstRecallTime),e.recallEvent=!0)},l.prototype.moveRight=function(){var e=this.axis.area.core;return!(e.scrollValueX>=e.scrollRangeX-e.scrollViewX)&&(e.scrollValueX+=e.scrollViewX*t.StiAxisCoreXF.defaultScrollBarSmallFactor,e.scrollValueX>=e.scrollRangeX-e.scrollViewX&&(e.scrollValueX=e.scrollRangeX-e.scrollViewX),e.blockScrollValueX=!0,!0)},Object.defineProperty(l.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),l.prototype.draw=function(e){var t=e.options.zoom,o=this.clientRectangle.clone(),l=o.y+o.height/2,u=a.white;this.axis.core.isMouseOverIncreaseButton?(e.fillRectangle2(n.light(this.axis.lineColor,50),o.x,o.y,o.width,o.height),e.drawRectangle2(new r(this.axis.lineColor),o.x,o.y,o.width,o.height)):u=this.axis.lineColor;var c=o.width/4,h=o.height/3,p=new s(o.x+o.width/2,o.y+o.height/2);e.pushSmoothingModeToAntiAlias();var f=[];f.add(new i(p.x-c,p.y-h,p.x+c,p.y)),f.add(new i(p.x+c,p.y,p.x-c,p.y+h)),e.fillPath(u,f,o),e.popSmoothingMode()},l}(t.StiCellGeom);t.StiRightButtonGeom=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.TimeSpan,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=function(e){function l(t,r){var i=e.call(this,r)||this;return i._axis=t,i}return __extends(l,e),l.prototype.invokeMouseEnter=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverDecreaseButton||(this.axis.core.isMouseOverDecreaseButton=!0,e.updateContext=!0)},l.prototype.invokeMouseLeave=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverDecreaseButton&&(this.axis.core.isMouseOverDecreaseButton=!1,e.updateContext=!0)},l.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;e.updateContext=this.moveUp(),e.updateContext&&(e.isRecalled?e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarOtherRecallTime):e.recallTime=o.fromSeconds(t.StiAxisCoreXF.defaultScrollBarFirstRecallTime),e.recallEvent=!0)},l.prototype.moveUp=function(){var e=this.axis.area.core;return 0!=e.scrollValueY&&(e.scrollValueY-=e.scrollViewY*t.StiAxisCoreXF.defaultScrollBarSmallFactor,e.scrollValueY<0&&(e.scrollValueY=0),e.blockScrollValueY=!0,!0)},Object.defineProperty(l.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),l.prototype.draw=function(e){var t=e.options.zoom,o=this.clientRectangle.clone(),l=o.x+o.width/2,u=a.white;this.axis.core.isMouseOverDecreaseButton?(e.fillRectangle2(n.light(this.axis.lineColor,50),o.x,o.y,o.width,o.height),e.drawRectangle2(new r(this.axis.lineColor),o.x,o.y,o.width,o.height)):u=this.axis.lineColor;var c=o.width/3,h=o.height/4,p=new s(o.x+o.width/2,o.y+o.height/2);e.pushSmoothingModeToAntiAlias();var f=[];f.add(new i(p.x-c,p.y+h,p.x,p.y-h)),f.add(new i(p.x,p.y-h,p.x+c,p.y+h)),e.fillPath(u,f,o),e.popSmoothingMode()},l}(t.StiCellGeom);t.StiUpButtonGeom=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(e){function t(t,r){var i=e.call(this,r)||this;return i._axis=t,i}return __extends(t,e),t.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;var t=this.axis.area.core;t.blockScrollValueY=!0;var r=this.clientRectangle.width,i=e.mousePoint.y-r,n=this.clientRectangle.height-2*r;t.scrollValueY=i/n*t.scrollRangeY,t.scrollValueY<0&&(t.scrollValueY=0),t.scrollValueY>=t.scrollRangeY-t.scrollViewY&&(t.scrollValueY=t.scrollRangeY-t.scrollViewY),e.updateContext=!0},t.prototype.draw=function(e){var t=this.clientRectangle.clone(),i=new r(this.axis.lineColor);e.drawRectangle2(i,t.x,t.y,t.width,t.height)},Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),t}(t.StiCellGeom);t.StiVertScrollBarGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiColorUtils,n=e.System.Drawing.Color,o=function(e){function t(t,r,i){var n=e.call(this,r)||this;return n._axis=t,n._scrollBar=i,n}return __extends(t,e),t.prototype.invokeMouseEnter=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverTrackBar||(this.axis.core.isMouseOverTrackBar=!0,e.updateContext=!0)},t.prototype.invokeMouseLeave=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;this.axis.core.isMouseOverTrackBar&&(this.axis.core.isMouseOverTrackBar=!1,e.updateContext=!0)},t.prototype.invokeMouseDown=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;var t=this.axis.area.core;e.dragEnabled=!0,t.scrollDragStartValue=t.scrollValueY},t.prototype.invokeDrag=function(e){if(!this.axis.interaction.rangeScrollEnabled)return;var t=this.axis.area.core;t.blockScrollValueY=!0;var r=this.scrollBar.clientRectangle.height,i=this.scrollBar.clientRectangle.height-2*r;t.scrollValueY=-e.dragDelta.height/i*t.scrollRangeY+t.scrollDragStartValue,t.scrollValueY<0&&(t.scrollValueY=0),t.scrollValueY>=t.scrollRangeY-t.scrollViewY&&(t.scrollValueY=t.scrollRangeY-t.scrollViewY),e.updateContext=!0},t.prototype.draw=function(e){var t=e.options.zoom,o=this.clientRectangle.clone(),a=new r(this.axis.lineColor),s=new r(n.white),l=this.axis.area.core,u=this.axis.area.xAxis;if(this.axis.core.isMouseOverTrackBar?e.fillRectangle2(i.light(this.axis.lineColor,50),o.x,o.y,o.width,o.height):e.fillRectangle2(this.axis.lineColor,o.x,o.y,o.width,o.height),e.drawRectangle2(a,o.x,o.y,o.width,o.height),o.height>10&&o.width>4){var c=o.y+o.height/2;e.drawLine(s,o.x+2,c-2,o.right-2,c-2),e.drawLine(s,o.x+2,c,o.right-2,c),e.drawLine(s,o.x+2,c+2,o.right-2,c+2)}},Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!0,configurable:!0}),t}(t.StiCellGeom);t.StiVertTrackBarGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiSolidBrush,i=function(e){function t(t,r,i,n,o,a,s){var l=e.call(this,r)||this;return l._axis=t,l._text=n,l._stripLine=o,l._textPoint=i,l._angle=a,l._rotationMode=s,l}return __extends(t,e),Object.defineProperty(t.prototype,"rotationMode",{get:function(){return this._rotationMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textPoint",{get:function(){return this._textPoint},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stripLine",{get:function(){return this._stripLine},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.axis.core.getStringFormatGeom(e),i=this.axis.core.getFontGeom(e),n=new r(this.axis.labels.color);e.drawRotatedString9(this.text,i,n,this.textPoint,t,this.rotationMode,this.angle,this.axis.labels.antialiasing,Math.trunc(this.axis.labels.width*e.options.zoom))},t}(t.StiCellGeom);t.StiAxisLabelGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=function(e){function t(t,r,i,n){var o=e.call(this,r)||this;return o._angle=0,o._axis=t,o._angle=i,o}return __extends(t,e),Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=new n(this.axis.title.color),o=i.changeFontSize(this.axis.title.font,this.axis.title.font.size*e.options.zoom),a=e.getDefaultStringFormat();e.drawRotatedString5(this.axis.title.text,o,t,this.clientRectangle,a,r.CenterCenter,this.angle,this.axis.title.antialiasing)},t}(t.StiCellGeom);t.StiAxisTitleGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiPenGeom,n=e.Base.Context.StiLineSegmentGeom,o=e.Base.Context.StiArcSegmentGeom,a=e.System.DateTime,s=e.Base.Drawing.StiSolidBrush,l=e.System.Drawing.Point,u=e.System.Drawing.Rectangle,c=function(e){function c(t,r,i){var n=e.call(this,r)||this;return n._axis=t,n._isCenterAxis=i,n}return __extends(c,e),Object.defineProperty(c.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isCenterAxis",{get:function(){return this._isCenterAxis},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"view",{get:function(){return this._view},set:function(e){this._view=e},enumerable:!0,configurable:!0}),c.prototype.drawArrow=function(e,a){var c=e.options.zoom,h=new i(this.axis.lineColor,this.axis.lineWidth),p=new i(this.axis.lineColor),f=new s(this.axis.lineColor),m=0;this.axis.core.isBottomSide&&(m=a.y),this.axis.core.isTopSide&&(m=a.bottom);var S=l.empty;switch(S=this.axis.area.reverseHor?new l(a.x,m):new l(a.right,m),this.axis.arrowStyle){case t.StiArrowStyle.Triangle:e.drawLine(h,S.x,S.y,S.x+this.axis.core.arrowHeight*c,S.y),e.pushSmoothingModeToAntiAlias();var g=[];g.add(new n(S.x+this.axis.core.arrowHeight*c,S.y-this.axis.core.arrowWidth*c,S.x+4*this.axis.core.arrowHeight*c,S.y)),g.add(new n(S.x+4*this.axis.core.arrowHeight*c,S.y,S.x+this.axis.core.arrowHeight*c,S.y+this.axis.core.arrowWidth*c)),e.fillPath(f,g,a),e.popSmoothingMode();break;case t.StiArrowStyle.Lines:e.drawLine(h,S.x,S.y,S.x+4*this.axis.core.arrowHeight*c,S.y),e.pushSmoothingModeToAntiAlias(),e.drawLine(p,S.x+this.axis.core.arrowHeight*c,S.y-this.axis.core.arrowWidth*c,S.x+4*this.axis.core.arrowHeight*c,S.y),e.drawLine(p,S.x+4*this.axis.core.arrowHeight*c,S.y,S.x+this.axis.core.arrowHeight*c,S.y+this.axis.core.arrowWidth*c),e.popSmoothingMode();break;case t.StiArrowStyle.Circle:var d=this.axis.core.arrowHeight*c;e.drawLine(h,S.x,S.y,S.x+2*d,S.y);var y=new l(S.x+2*d,S.y-d/2);e.pushSmoothingModeToAntiAlias();var b=new u(y.x,y.y,d,d);e.drawEllipse2(h,b),e.popSmoothingMode();break;case t.StiArrowStyle.Arc:case t.StiArrowStyle.ArcAndCircle:var v=this.axis.core.arrowHeight*c;e.drawLine(h,S.x,S.y,S.x+2*v,S.y),e.pushSmoothingModeToAntiAlias();var C=[];if(this.axis.area.reverseHor){var w=new l(S.x+3*v,S.y+v/2),x=new u(w.x,w.y,Math.abs(v),Math.abs(v));this.axis.arrowStyle==t.StiArrowStyle.ArcAndCircle&&(x.x-=c,x.inflate(1,1)),C.add(new o(x,270,180))}else{var w=new l(S.x+2*v,S.y-v/2),x=new u(w.x,w.y,Math.abs(v),Math.abs(v));this.axis.arrowStyle==t.StiArrowStyle.ArcAndCircle&&(x.x+=c,x.inflate(1,1)),C.add(new o(x,90,180))}if(e.drawPath(h,C,r.getBoundsState),this.axis.arrowStyle==t.StiArrowStyle.ArcAndCircle){var _=this.axis.core.arrowHeight*c,A=new l(S.x+2*_+c,S.y-_/2),L=new u(A.x,A.y,_,_);this.axis.area.reverseHor?(L.inflate(.5*c,.5*c),L.x-=3*c):(L.inflate(-.5*c,-.5*c),L.x+=c),e.fillEllipse2(f,L)}e.popSmoothingMode();break}},c.prototype.drawAxisLine=function(e,r){var n=0;this.axis.core.isTopSide&&(n=r.bottom),this.axis.core.isBottomSide&&(n=r.top);var o=new i(this.axis.lineColor,this.axis.lineWidth);!this.isCenterAxis||this.axis.showXAxis!=t.StiShowXAxis.Both&&this.axis.showXAxis!=t.StiShowXAxis.Center?this.isCenterAxis||this.axis.showXAxis!=t.StiShowXAxis.Both&&this.axis.showXAxis!=t.StiShowXAxis.Bottom||e.drawLine(o,r.x,n,r.right,n):this.axis.area.reverseVert?e.drawLine(o,r.x,n,r.right,n):e.drawLine(o,r.x,n+r.height,r.right,n+r.height)},c.prototype.drawMinorTicks=function(e,t,r,i,n,o){for(var a=i-r,s=a/(o.minorCount+1),l=o.minorLength*e.options.zoom,u=1;u<=o.minorCount;u++){var c=r+s*u,h=this.axis.core.isTopSide||this.isCenterAxis?n-l:n+l;this.axis.area.reverseVert&&this.isCenterAxis&&(h=n+l),e.drawLine(t,c,n,c,h)}},c.prototype.drawTicks=function(e,r,i,n){if(!i.visible)return;var o=i.length*e.options.zoom,s=this.axis.core.isTopSide||this.isCenterAxis?r.bottom:r.top,l=this.axis.core.isTopSide||this.isCenterAxis?s-o:s+o;this.isCenterAxis&&this.axis.area.reverseVert&&(l=s+o);var u=this.axis.info.ticksCollection;if(this.isArgumentDateTime(u)&&this.axis.area.xAxis.dateTimeStep.step!=t.StiTimeDateStep.None)for(var c=void 0,h=void 0,p=!0,f=String.empty,m=0,S=0;S<u.count;S++){if(p&&(m=u[S].position,p=!1),!u[S].stripLine.valueObject.sti_is(a))continue;switch(c=u[S].stripLine.valueObject,h=S<u.count-2?u[S+1].stripLine.valueObject:c,this.axis.area.xAxis.dateTimeStep.step){case t.StiTimeDateStep.Day:c.toString("yyyyMMMMdd")==h.toString("yyyyMMMMdd")&&S!=u.count-2||(f=c.toString("dd"));break;case t.StiTimeDateStep.Hour:c.toString("yyyyMMMMddHH")==h.toString("yyyyMMMMddHH")&&S!=u.count-2||(f=c.toString("HH"));break;case t.StiTimeDateStep.Minute:c.toString("yyyyMMMMddhhmm")==h.toString("yyyyMMMMddhhmm")&&S!=u.count-2||(f=c.toString("mm"));break;case t.StiTimeDateStep.Month:c.toString("yyyyMMMM")==h.toString("yyyyMMMM")&&S!=u.count-2||(f=c.toString("MMMM"));break;case t.StiTimeDateStep.Second:c.toString("yyyyMMMMddHHmmss")==h.toString("yyyyMMMMddHHmmss")&&S!=u.count-2||(f=c.toString("ss"));break;case t.StiTimeDateStep.Year:c.toString("yyyy")==h.toString("yyyy")&&S!=u.count-2||(f=c.toString("yyyy"));break}if(f!=String.empty){var g=0;g=S==u.count-2?u[S+1].position:u[S].position+(u[S+1].position-u[S].position)/2,e.drawRectangle2(n,m,s,g-m,l),f=String.empty,m=g}}else for(var S=0,d=0,y=this.axis.info.ticksCollection;d<y.length;d++){var b=y[d],v=b.position;if(e.drawLine(n,v,s,v,l),i.minorVisible&&S!=this.axis.info.ticksCollection.count-1){var C=this.axis.info.ticksCollection[S+1].position;this.drawMinorTicks(e,n,v,C,s,i)}S++}},c.prototype.isArgumentDateTime=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];if(null!=i.stripLine.valueObject&&i.stripLine.valueObject.sti_is(a))return!0}return!1},c.prototype.drawAxis=function(e,r){var n=new i(this.axis.lineColor,this.axis.lineWidth);n.penStyle=this.axis.lineStyle,!this.isCenterAxis||this.axis.showXAxis!=t.StiShowXAxis.Both&&this.axis.showXAxis!=t.StiShowXAxis.Center?this.isCenterAxis||(this.axis.core.isTopSide&&this.drawTicks(e,r,this.axis.ticks,n),!this.axis.core.isBottomSide||this.axis.showXAxis!=t.StiShowXAxis.Both&&this.axis.showXAxis!=t.StiShowXAxis.Bottom||this.drawTicks(e,r,this.axis.ticks,n)):this.drawTicks(e,r,this.axis.ticks,n),this.drawAxisLine(e,r)},c.prototype.getViewclipRect=function(){var e=this.view.clientRectangle;return e.x=this.axis.area.core.scrollDistanceX,e.y=0,e.inflate(1,1),this.isCenterAxis&&e.inflate(0,2),e},c.prototype.allowChildDrawing=function(e){var t=e;if(null==t)return!0;if(null==this.view)return!0;var r=this.getViewclipRect(),i=t.clientRectangle;return!(i.right<r.x||i.x>r.right)},c.prototype.draw=function(e){var t=this.clientRectangle.clone();if(t.width<=0||t.height<=0)return;if(null!=this.view){var r=this.getViewclipRect();e.pushClip(r)}this.drawAxis(e,t),null!=this.view&&e.popClip()},c}(t.StiCellGeom);t.StiXAxisGeom=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e,r,i){return t.call(this,e,r,i)||this}return __extends(r,t),r.prototype.drawChildGeoms=function(t){var r=this.clientRectangle.clone();if(this.isCenterAxis&&(r.y+=this.axis.area.core.getDividerY()-this.axis.area.core.scrollDistanceY),null!=this.childGeoms)for(var i=0,n=this.childGeoms;i<n.length;i++){var o=n[i];this.allowChildDrawing(o)&&(o.sti_is(e.StiHorzScrollBarGeom)||t.pushTranslateTransform(-this.axis.area.core.scrollDistanceX,0),t.pushTranslateTransform(r.x,r.y),o.drawGeom(t),t.popTransform(),o.sti_is(e.StiHorzScrollBarGeom)||t.popTransform())}this.draw(t)},r.prototype.draw=function(t){var r=this.clientRectangle.clone();if(this.isCenterAxis&&(r.y+=this.axis.area.core.getDividerY()-this.axis.area.core.scrollDistanceY),r.width<=0||r.height<=0)return;this.axis.arrowStyle==e.StiArrowStyle.None||this.isCenterAxis||this.drawArrow(t,r)},r}(e.StiXAxisGeom);e.StiXAxisViewGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiPenGeom,n=e.Base.Context.StiLineSegmentGeom,o=e.Base.Context.StiArcSegmentGeom,a=e.Base.Drawing.StiSolidBrush,s=e.System.Drawing.Point,l=e.System.Drawing.Rectangle,u=function(e){function u(t,r,i){var n=e.call(this,r)||this;return n._axis=t,n._isCenterAxis=i,n}return __extends(u,e),Object.defineProperty(u.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isCenterAxis",{get:function(){return this._isCenterAxis},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"view",{get:function(){return this._view},set:function(e){this._view=e},enumerable:!0,configurable:!0}),u.prototype.drawArrow=function(e,u){var c=e.options.zoom,h=new i(this.axis.lineColor),p=new a(this.axis.lineColor),f=new i(this.axis.lineColor);this.axis.visible||this.drawAxisLine(e,u);var m=s.empty;switch(m=this.axis.area.reverseVert?new s(u.right,u.bottom):new s(u.right,u.y),this.axis.core.isRightSide&&(m.x=u.x),this.axis.arrowStyle){case t.StiArrowStyle.Triangle:e.drawLine(h,m.x,m.y,m.x,m.y-this.axis.core.arrowHeight*c),e.pushSmoothingModeToAntiAlias();var S=[];S.add(new n(m.x-this.axis.core.arrowWidth*c,m.y-this.axis.core.arrowHeight*c,m.x+this.axis.core.arrowWidth*c,m.y-this.axis.core.arrowHeight*c)),S.add(new n(m.x+this.axis.core.arrowWidth*c,m.y-this.axis.core.arrowHeight*c,m.x,m.y-4*this.axis.core.arrowHeight*c)),e.fillPath(p,S,r.getBoundsState),e.popSmoothingMode();break;case t.StiArrowStyle.Lines:e.drawLine(h,m.x,m.y,m.x,m.y-4*this.axis.core.arrowHeight*c),e.pushSmoothingModeToAntiAlias(),e.drawLine(f,m.x-this.axis.core.arrowWidth*c,m.y-this.axis.core.arrowHeight*c,m.x,m.y-4*this.axis.core.arrowHeight*c),e.drawLine(f,m.x+this.axis.core.arrowWidth*c,m.y-this.axis.core.arrowHeight*c,m.x,m.y-4*this.axis.core.arrowHeight*c),e.popSmoothingMode();break;case t.StiArrowStyle.Circle:e.drawLine(h,m.x,m.y,m.x,m.y-this.axis.core.arrowHeight*c*2);var g=this.axis.core.arrowHeight*c,d=new s(m.x-g/2,m.y-3*g);e.pushSmoothingModeToAntiAlias();var y=new l(d.x,d.y,this.axis.core.arrowHeight*c,this.axis.core.arrowHeight*c);e.drawEllipse2(h,y),e.popSmoothingMode();break;case t.StiArrowStyle.Arc:case t.StiArrowStyle.ArcAndCircle:var b=this.axis.core.arrowHeight*c;e.drawLine(h,m.x,m.y,m.x,m.y-2*b),e.pushSmoothingModeToAntiAlias();var v=[];if(this.axis.area.reverseVert){var C=new s(m.x+b/2,m.y-2*b),w=new l(C.x,C.y,Math.abs(b),Math.abs(b));this.axis.arrowStyle==t.StiArrowStyle.ArcAndCircle&&(w.y+=c,w.inflate(1,1)),v.add(new o(w,180,180))}else{var C=new s(m.x-b/2,m.y-3*b),w=new l(C.x,C.y,b,b);this.axis.arrowStyle==t.StiArrowStyle.ArcAndCircle&&(w.y-=c,w.inflate(1,1)),v.add(new o(w,0,180))}if(e.drawPath(h,v,r.getBoundsState),this.axis.arrowStyle==t.StiArrowStyle.ArcAndCircle){var x=this.axis.core.arrowHeight*c,_=new s(m.x-x/2,m.y-3*x-c),A=new l(_.x,_.y,x,x);this.axis.area.reverseVert?(A.inflate(.5*c,.5*c),A.y+=3*c):(A.inflate(-.5*c,-.5*c),A.y-=c),e.fillEllipse2(p,A)}e.popSmoothingMode();break}},u.prototype.drawAxisLine=function(e,r){var n=r.right;this.axis.core.isRightSide&&(n=r.left),this.isCenterAxis&&this.axis.area.reverseHor&&(n=r.right);var o=new i(this.axis.lineColor,this.axis.lineWidth);(!this.isCenterAxis||this.axis.showYAxis!=t.StiShowYAxis.Both&&this.axis.showYAxis!=t.StiShowYAxis.Center)&&(this.isCenterAxis||this.axis.showYAxis!=t.StiShowYAxis.Both&&this.axis.showYAxis!=t.StiShowYAxis.Left)||e.drawLine(o,n,r.y,n,r.bottom)},u.prototype.drawMinorTicks=function(e,t,r,i,n,o){for(var a=n-i,s=a/(o.minorCount+1),l=o.minorLength*e.options.zoom,u=1;u<=o.minorCount;u++){var c=i+s*u,h=this.axis.core.isLeftSide||this.isCenterAxis?r-l:r+l;this.axis.area.reverseHor&&this.isCenterAxis&&(h=r+l),e.drawLine(t,r,c,h,c)}},u.prototype.drawTicks=function(e,t,r,i){if(!r.visible)return;var n=r.length*e.options.zoom,o=this.axis.core.isLeftSide?t.right:t.left,a=this.axis.core.isLeftSide?o-n:o+n;this.isCenterAxis&&this.axis.area.reverseHor&&(o=t.right,a=t.right+n);for(var s=0,l=0,u=this.axis.info.ticksCollection;l<u.length;l++){var c=u[l],h=c.position;if(e.drawLine(i,o,h,a,h),r.minorVisible&&s!=this.axis.info.ticksCollection.count-1){var p=this.axis.info.ticksCollection[s+1].position;this.drawMinorTicks(e,i,o,h,p,r)}s++}},u.prototype.drawAxis=function(e,r){var n=new i(this.axis.lineColor,this.axis.lineWidth);n.penStyle=this.axis.lineStyle,!this.isCenterAxis||this.axis.showYAxis!=t.StiShowYAxis.Both&&this.axis.showYAxis!=t.StiShowYAxis.Center?this.isCenterAxis||(!this.axis.core.isLeftSide||this.axis.showYAxis!=t.StiShowYAxis.Both&&this.axis.showYAxis!=t.StiShowYAxis.Left||this.drawTicks(e,r,this.axis.area.yAxis.ticks,n),this.axis.core.isRightSide&&this.drawTicks(e,r,this.axis.area.yRightAxis.ticks,n)):this.drawTicks(e,r,this.axis.ticks,n),this.drawAxisLine(e,r)},u.prototype.getViewclipRect=function(){var e=this.view.clientRectangle;return e.x=0,e.y=this.axis.area.core.scrollDistanceY,e.inflate(1,1),this.isCenterAxis&&e.inflate(2,0),e},u.prototype.allowChildDrawing=function(e){var t=e;if(null==t)return!0;if(null==this.view)return!0;var r=this.getViewclipRect(),i=t.clientRectangle;return!(i.bottom<r.y||i.y>r.bottom)},u.prototype.draw=function(e){var t=this.clientRectangle.clone();if(t.width<=0||t.height<=0)return;if(null!=this.view){var r=this.getViewclipRect();e.pushClip(r)}this.drawAxis(e,t),null!=this.view&&e.popClip()},u}(t.StiCellGeom);t.StiYAxisGeom=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e,r,i){return t.call(this,e,r,i)||this}return __extends(r,t),r.prototype.drawChildGeoms=function(t){var r=this.clientRectangle.clone();if(this.isCenterAxis&&(r.x+=this.axis.area.core.getDividerX()-this.axis.area.core.scrollDistanceX),null!=this.childGeoms)for(var i=0,n=this.childGeoms;i<n.length;i++){var o=n[i];this.allowChildDrawing(o)&&(o.sti_is(e.StiVertScrollBarGeom)||t.pushTranslateTransform(0,-this.axis.area.core.scrollDistanceY),t.pushTranslateTransform(r.x,r.y),o.drawGeom(t),t.popTransform(),o.sti_is(e.StiVertScrollBarGeom)||t.popTransform())}},r.prototype.draw=function(t){var r=this.clientRectangle.clone();if(this.isCenterAxis&&(r.x+=this.axis.area.core.getDividerX()-this.axis.area.core.scrollDistanceX),r.width<=0||r.height<=0)return;this.axis.arrowStyle==e.StiArrowStyle.None||this.isCenterAxis||this.drawArrow(t,r)},r}(e.StiYAxisGeom);e.StiYAxisViewGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringTrimming,i=e.System.Drawing.StringFormatFlags,n=e.Base.Context.StiFontGeom,o=e.Base.Drawing.StiRotationMode,a=function(e){function a(t,r){var i=e.call(this,r)||this;return i._title=t,i}return __extends(a,e),Object.defineProperty(a.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),a.prototype.draw=function(e){if(this.title.visible){var a=this.title.dock;this.title.dock==t.StiChartTitleDock.Bottom&&(a=0);var s=n.changeFontSize(this.title.font,this.title.font.size*e.options.zoom),l=e.getDefaultStringFormat();l.alignment=this.title.alignment,l.trimming=r.None,l.formatFlags=i.MeasureTrailingSpaces|i.NoWrap|i.NoClip,e.drawRotatedString8(this.title.text,s,this.title.brush,this.clientRectangle,l,o.CenterCenter,a,this.title.antialiasing)}},a}(t.StiCellGeom);t.StiChartTitleGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=function(e){function t(t,r,i,n){var o=e.call(this,r)||this;return o._line=t,o._point=i,o._mode=n,o}return __extends(t,e),Object.defineProperty(t.prototype,"line",{get:function(){return this._line},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"point",{get:function(){return this._point},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone(),o=new r(this.line.lineColor,this.line.lineWidth);if(o.penStyle=this.line.lineStyle,e.drawLine(o,t.left,t.top,t.left,t.bottom),this.line.titleVisible){var a=new n(this.line.lineColor),s=i.changeFontSize(this.line.font,this.line.font.size*e.options.zoom),l=e.getGenericStringFormat();e.drawRotatedString9(this.line.text,s,a,this.point,l,this.mode,90,this.line.antialiasing,0)}},t}(t.StiCellGeom);t.StiConstantLinesVerticalGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=function(e){function t(t,r,i,n){var o=e.call(this,r)||this;return o._line=t,o._point=i,o._mode=n,o}return __extends(t,e),Object.defineProperty(t.prototype,"line",{get:function(){return this._line},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"point",{get:function(){return this._point},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone(),o=new r(this.line.lineColor,this.line.lineWidth);if(o.penStyle=this.line.lineStyle,e.drawLine(o,t.left,t.top,t.left+t.width,t.top),this.line.titleVisible){var a=new n(this.line.lineColor),s=i.changeFontSize(this.line.font,this.line.font.size*e.options.zoom),l=e.getGenericStringFormat();e.drawRotatedString9(this.line.text,s,a,this.point,l,this.mode,0,this.line.antialiasing,0)}},t}(t.StiCellGeom);t.StiConstantLinesYGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendAreaMarker||(e.implementsStiLegendAreaMarker=[t.IStiLegendMarker]),e.implementsStiLegendAreaMarker},e.prototype.draw=function(e,i,n,o,a){var s=i.sti_as(t.StiAreaSeries),l=s.marker,u=s.lineStyle,c=s.lineMarker,h=s.lineWidth,p=s.lineColor,f=s.lighting,m=s.brush,S=t.StiLegendMarkerHelper.getAreaMarkerPath(n),g=new r(p);e.pushSmoothingModeToAntiAlias(),e.fillPath(m,S,n);var d=t.StiLegendMarkerHelper.getAreaMarkerLinePoints(n);e.drawLines(g,d),e.popSmoothingMode()},e}();t.StiLegendAreaMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.Point,n=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendCandelstickMarker||(e.implementsStiLegendCandelstickMarker=[t.IStiLegendMarker]),e.implementsStiLegendCandelstickMarker},e.prototype.draw=function(e,t,n,o,a){var s=t,l=s.brush,u=s.borderColor,c=new r(u);e.pushSmoothingModeToAntiAlias();var h=new i(n.left+n.width/4,n.top+n.height/4),p=n.width/2,f=n.height/2;e.fillRectangle2(l,h.x,h.y,p,f),e.drawRectangle2(c,h.x,h.y,p,f),e.drawLine(c,n.x+n.width/2,n.y,n.x+n.width/2,n.top+n.height/4),e.drawLine(c,n.x+n.width/2,n.bottom,n.x+n.width/2,n.bottom-n.height/4),e.popSmoothingMode()},e}();t.StiLegendCandelstickMarker=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendColumnMarker||(e.implementsStiLegendColumnMarker=[t.IStiLegendMarker]),e.implementsStiLegendColumnMarker},e.prototype.draw=function(e,t,i,n,o){var a=t.core.getSeriesBrush(n,o),s=new r(t.core.getSeriesBorderColor(n,o));null!=t.chart&&null!=t.chart.style&&t.chart.style.core.fillColumn(e,i,a),e.drawRectangle2(s,i.x,i.y,i.width,i.height)},e}();t.StiLegendColumnMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Context.StiArcSegmentGeom,o=e.System.Drawing.Rectangle,a=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendDoughnutMarker||(e.implementsStiLegendDoughnutMarker=[t.IStiLegendMarker]),e.implementsStiLegendDoughnutMarker},e.prototype.draw=function(e,t,a,s,l){var u=t,c=u.brush;u.allowApplyBrush&&(c=u.core.getSeriesBrush(s,l),c=u.processSeriesBrushes(s,c));var h=u.borderColor;u.allowApplyBorderColor&&(h=u.core.getSeriesBorderColor(s,l));var p=[],f=new r(h);e.pushSmoothingModeToAntiAlias(),p.add(new n(new o(a.x-a.width,a.y,2*a.width,2*a.height),270,90)),p.add(new i(a.right,a.bottom,a.x+a.width/2,a.bottom)),p.add(new n(new o(a.x-a.width/2,a.bottom-a.height/2,a.width,a.height),360,-90)),p.add(new i(a.x,a.y+a.height/2,a.x,a.y)),e.fillPath(c,p,a),e.drawPath(f,p,a),e.popSmoothingMode()},e}();t.StiLegendDoughnutMarker=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.Base.Context.StiCloseFigureSegmentGeom,o=e.System.Drawing.Point,a=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendFunnelMarker||(e.implementsStiLegendFunnelMarker=[t.IStiLegendMarker]),e.implementsStiLegendFunnelMarker},e.prototype.draw=function(e,t,a,s,l){var u=t,c=u.brush;u.allowApplyBrush&&(c=u.core.getSeriesBrush(s,l),c=u.processSeriesBrushes(s,c));var h=u.borderColor;u.allowApplyBorderColor&&(h=u.core.getSeriesBorderColor(s,l));var p=[],f=new r(h);e.pushSmoothingModeToAntiAlias();var m=[new o(a.x,a.y),new o(a.right,a.y),new o(a.x+3*a.width/4,a.top+a.height/2),new o(a.x+3*a.width/4,a.bottom),new o(a.x+1*a.width/4,a.bottom),new o(a.x+1*a.width/4,a.top+a.height/2)];p.add(new i(m)),p.add(new n),e.fillPath(c,p,a),e.drawPath(f,p,null),e.popSmoothingMode()},e}();t.StiLegendFunnelMarker=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,i=e.Base.Drawing.StiBrush,n=e.Base.Drawing.StiSolidBrush,o=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendLineMarker||(e.implementsStiLegendLineMarker=[t.IStiLegendMarker]),e.implementsStiLegendLineMarker},e.prototype.draw=function(e,o,a,s,l){var u=o,c=r.transparent,h=o.sti_as(t.IStiRadarSeries);null!=h&&(c=i.toColor(h.marker.brush));var p=o.sti_as(t.IStiRadarLineSeries);null!=p&&(c=p.lineColor);var f=o.sti_as(t.IStiBaseLineSeries);null!=f&&(c=f.lineColor);var m=o.sti_as(t.IStiStackedBaseLineSeries);null!=m&&(c=m.lineColor);var S=o.sti_as(t.IStiScatterSeries);null!=S&&(c=i.toColor(S.marker.brush));var g=o.sti_as(t.IStiScatterLineSeries);null!=g&&(c=g.lineColor),e.pushSmoothingModeToAntiAlias(),e.fillEllipse(new n(c),a.x,a.y,a.width,a.height),e.popSmoothingMode()},e}();t.StiLegendLineMarker=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Point,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Context.StiCurveSegmentGeom,o=function(){function e(){}return e.getSteppedMarkerPath=function(e){var t=[];return t.add(new i(e.x,e.y,e.x+e.width,e.y)),t.add(new i(e.x+e.width,e.y,e.x+e.width,e.y+e.height)),t.add(new i(e.x+e.width,e.y+e.height,e.x,e.y+e.height)),t.add(new i(e.x,e.y+e.height,e.x,e.y)),t},e.getAreaMarkerPath=function(e){var t=e.width/5,r=e.height/5,n=[];return n.add(new i(e.x,e.y+3.5*r,e.x,e.y+3.5*r)),n.add(new i(e.x,e.y+3.5*r,e.x+2*t,e.y+.5*r)),n.add(new i(e.x+2*t,e.y+.5*r,e.x+4*t,e.y+2.5*r)),n.add(new i(e.x+4*t,e.y+2.5*r,e.x+5*t,e.y+1.5*r)),n.add(new i(e.x+5*t,e.y+1.5*r,e.x+5*t,e.y+5*r)),n.add(new i(e.x+5*t,e.y+5*r,e.x,e.y+5*r)),n.add(new i(e.x,e.y+5*r,e.x,e.y+3*r)),n},e.getAreaMarkerLinePoints=function(e){var t=e.width/5,i=e.height/5,n=[];return n.add(new r(e.x,e.y+3.5*i)),n.add(new r(e.x+2*t,e.y+.5*i)),n.add(new r(e.x+4*t,e.y+2.5*i)),n.add(new r(e.x+5*t,e.y+1.5*i)),n},e.getSplineAreaMarkerPath=function(t){var r=t.width/5,o=t.height/5,a=[];a.add(new i(t.x,t.y+5*o,t.x,t.y+3.5*o));var s=e.getSplineAreaMarkerLinePoints(t);return a.add(new n(s,.55)),a.add(new i(t.x+5*r,t.y+1.5*o,t.x+5*r,t.y+5*o)),a.add(new i(t.x+5*r,t.y+5*o,t.x,t.y+5*o)),a},e.getSplineAreaMarkerLinePoints=function(e){var t=e.width/5,i=e.height/5,n=[];return n.add(new r(e.x,e.y+3.5*i)),n.add(new r(e.x+2*t,e.y+.5*i)),n.add(new r(e.x+4*t,e.y+2.5*i)),n.add(new r(e.x+5*t,e.y+1.5*i)),n},e}();t.StiLegendMarkerHelper=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return t.prototype.implements=function(){return t.implementsStiLegendPictorialMarker||(t.implementsStiLegendPictorialMarker=[e.IStiLegendMarker]),t.implementsStiLegendPictorialMarker},t.prototype.draw=function(e,t,r,i,n){var o=t.core.getSeriesBrush(i,n);e.pushSmoothingModeToAntiAlias(),e.fillEllipse2(o,r),e.popSmoothingMode()},t}();e.StiLegendPictorialMarker=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Context.StiArcSegmentGeom,o=e.System.Drawing.Rectangle,a=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendPieMarker||(e.implementsStiLegendPieMarker=[t.IStiLegendMarker]),e.implementsStiLegendPieMarker},e.prototype.draw=function(e,t,a,s,l){var u=t,c=u.brush;u.allowApplyBrush&&(c=u.core.getSeriesBrush(s,l),c=u.processSeriesBrushes(s,c));var h=u.borderColor;u.allowApplyBorderColor&&(h=t.core.getSeriesBorderColor(s,l));var p=[],f=new r(h);e.pushSmoothingModeToAntiAlias(),p.add(new n(new o(a.x-a.width,a.y,2*a.width,2*a.height),270,90)),p.add(new i(a.right,a.bottom,a.x,a.bottom)),p.add(new i(a.x,a.bottom,a.x,a.y)),e.fillPath(c,p,a),e.drawPath(f,p,null),e.popSmoothingMode()},e}();t.StiLegendPieMarker=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendRangeMarker||(e.implementsStiLegendRangeMarker=[t.IStiLegendMarker]),e.implementsStiLegendRangeMarker},e.prototype.draw=function(e,n,o,a,s){var l=n.sti_as(t.StiRangeSeries),u=l.marker,c=l.lineStyle,h=l.lineMarker,p=l.lineWidth,f=l.lineColor,m=l.lighting,S=l.brush,g=[],d=o.width/5,y=o.height/5;g.add(new i(o.x,o.y+3*y,o.x,o.y+3*y)),g.add(new i(o.x,o.y+3*y,o.x+2*d,o.y)),g.add(new i(o.x+2*d,o.y,o.x+4*d,o.y+2*y)),g.add(new i(o.x+4*d,o.y+2*y,o.x+5*d,o.y+1*y)),g.add(new i(o.x+5*d,o.y+1*y,o.x+5*d,o.y+3*y)),g.add(new i(o.x+5*d,o.y+3*y,o.x+4*d,o.y+4*y)),g.add(new i(o.x+4*d,o.y+4*y,o.x+2*d,o.y+3*y)),g.add(new i(o.x+2*d,o.y+3*y,o.x,o.y+5*y)),g.add(new i(o.x,o.y+5*y,o.x,o.y+3*y));var b=new r(f);e.pushSmoothingModeToAntiAlias(),e.fillPath(S,g,o),e.drawPath(b,g,o),e.popSmoothingMode()},e}();t.StiLegendRangeMarker=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendSplineAreaMarker||(e.implementsStiLegendSplineAreaMarker=[t.IStiLegendMarker]),e.implementsStiLegendSplineAreaMarker},e.prototype.draw=function(e,i,n,o,a){var s=i.sti_as(t.StiSplineAreaSeries),l=s.marker,u=s.lineStyle,c=s.lineMarker,h=s.lineWidth,p=s.lineColor,f=s.lighting,m=s.brush,S=t.StiLegendMarkerHelper.getSplineAreaMarkerPath(n),g=new r(p),d=t.StiLegendMarkerHelper.getSplineAreaMarkerLinePoints(n);e.pushSmoothingModeToAntiAlias(),e.fillPath(m,S,n),e.drawLines(g,d),e.popSmoothingMode()},e}();t.StiLegendSplineAreaMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.Point,n=e.Base.Context.StiLineSegmentGeom,o=e.Base.Context.StiCurveSegmentGeom,a=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendSplineRangeMarker||(e.implementsStiLegendSplineRangeMarker=[t.IStiLegendMarker]),e.implementsStiLegendSplineRangeMarker},e.prototype.draw=function(e,a,s,l,u){var c=a.sti_as(t.StiSplineRangeSeries),h=c.marker,p=c.lineStyle,f=c.lineMarker,m=c.lineWidth,S=c.lineColor,g=c.lighting,d=c.brush,y=[],b=s.width/5,v=s.height/5;y.add(new n(s.x,s.y+5*v,s.x,s.y+3*v));var C=[];C.add(new i(s.x,s.y+3*v)),C.add(new i(s.x+2*b,s.y)),C.add(new i(s.x+4*b,s.y+2*v)),C.add(new i(s.x+5*b,s.y+1*v)),y.add(new o(C,c.tension)),y.add(new n(s.x+5*b,s.y+1*v,s.x+5*b,s.y+3*v));var w=[];w.add(new i(s.x+5*b,s.y+3*v)),w.add(new i(s.x+4*b,s.y+4*v)),w.add(new i(s.x+2*b,s.y+4*v)),w.add(new i(s.x,s.y+5*v)),y.add(new o(w,c.tension));var x=new r(S);e.pushSmoothingModeToAntiAlias(),e.fillPath(d,y,s),e.drawCurve(x,C,c.tension),e.drawCurve(x,w,c.tension),e.popSmoothingMode()},e}();t.StiLegendSplineRangeMarker=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendStackedAreaMarker||(e.implementsStiLegendStackedAreaMarker=[t.IStiLegendMarker]),e.implementsStiLegendStackedAreaMarker},e.prototype.draw=function(e,i,n,o,a){var s=i.sti_as(t.StiStackedAreaSeries),l=s.marker,u=s.lineStyle,c=s.lineMarker,h=s.lineWidth,p=s.lineColor,f=s.lighting,m=s.brush,S=t.StiLegendMarkerHelper.getAreaMarkerPath(n),g=new r(p);e.pushSmoothingModeToAntiAlias(),e.fillPath(m,S,n);var d=t.StiLegendMarkerHelper.getAreaMarkerLinePoints(n);e.drawLines(g,d),e.popSmoothingMode()},e}();t.StiLegendStackedAreaMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendStackedSplineAreaMarker||(e.implementsStiLegendStackedSplineAreaMarker=[t.IStiLegendMarker]),e.implementsStiLegendStackedSplineAreaMarker},e.prototype.draw=function(e,i,n,o,a){var s=i.sti_as(t.StiStackedSplineAreaSeries),l=s.marker,u=s.lineStyle,c=s.lineMarker,h=s.lineWidth,p=s.lineColor,f=s.lighting,m=s.brush,S=t.StiLegendMarkerHelper.getSplineAreaMarkerPath(n),g=new r(p),d=t.StiLegendMarkerHelper.getSplineAreaMarkerLinePoints(n);e.pushSmoothingModeToAntiAlias(),e.fillPath(m,S,n),e.drawLines(g,d),e.popSmoothingMode()},e}();t.StiLegendStackedSplineAreaMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendSteppedAreaMarker||(e.implementsStiLegendSteppedAreaMarker=[t.IStiLegendMarker]),e.implementsStiLegendSteppedAreaMarker},e.prototype.draw=function(e,i,n,o,a){var s=i.sti_as(t.StiSteppedAreaSeries),l=s.marker,u=s.lineStyle,c=s.lineMarker,h=s.lineWidth,p=s.lineColor,f=s.lighting,m=s.brush,S=t.StiLegendMarkerHelper.getSteppedMarkerPath(n),g=new r(p);e.pushSmoothingModeToAntiAlias(),e.fillPath(m,S,n),e.drawPath(g,S,n),e.popSmoothingMode()},e}();t.StiLegendSteppedAreaMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiSteppedRangeSeries||(e.implementsStiSteppedRangeSeries=[t.IStiLegendMarker]),e.implementsStiSteppedRangeSeries},e.prototype.draw=function(e,i,n,o,a){var s=i.sti_as(t.StiSteppedRangeSeries),l=s.marker,u=s.lineStyle,c=s.lineMarker,h=s.lineWidth,p=s.lineColor,f=s.lighting,m=s.brush,S=t.StiLegendMarkerHelper.getSteppedMarkerPath(n),g=new r(p);e.pushSmoothingModeToAntiAlias(),e.fillPath(m,S,n),e.drawPath(g,S,n),e.popSmoothingMode()},e}();t.StiLegendSteppedRangeMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(){function e(){}return e.prototype.implements=function(){return e.implementsStiLegendStockMarker||(e.implementsStiLegendStockMarker=[t.IStiLegendMarker]),e.implementsStiLegendStockMarker},e.prototype.draw=function(e,t,i,n,o){var a=t,s=a.lineColor,l=new r(s);e.pushSmoothingModeToAntiAlias(),e.drawLine(l,i.left+i.width/4,i.top+i.height/4,i.left+i.width/2,i.top+i.height/4),e.drawLine(l,i.left+i.width/2,i.top,i.left+i.width/2,i.bottom),e.drawLine(l,i.left+i.width/2,i.bottom-i.height/4,i.right-i.width/4,i.bottom-i.height/4),e.popSmoothingMode()},e}();t.StiLegendStockMarker=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){}return t.createMarker=function(t){if(t.sti_is(e.IStiDoughnutSeries))return new e.StiLegendDoughnutMarker;if(t.sti_is(e.IStiPieSeries))return new e.StiLegendPieMarker;if(t.sti_is(e.StiAreaSeries))return new e.StiLegendAreaMarker;if(t.sti_is(e.StiStackedAreaSeries))return new e.StiLegendStackedAreaMarker;if(t.sti_is(e.StiSplineAreaSeries))return new e.StiLegendSplineAreaMarker;if(t.sti_is(e.StiStackedSplineAreaSeries))return new e.StiLegendStackedSplineAreaMarker;if(t.sti_is(e.StiSteppedAreaSeries))return new e.StiLegendSteppedAreaMarker;if(t.sti_is(e.StiRangeSeries))return new e.StiLegendRangeMarker;if(t.sti_is(e.StiSplineRangeSeries))return new e.StiLegendSplineRangeMarker;if(t.sti_is(e.StiSteppedRangeSeries))return new e.StiLegendSteppedRangeMarker;if(t.sti_is(e.IStiBaseLineSeries)||t.sti_is(e.IStiStackedBaseLineSeries))return new e.StiLegendLineMarker;if(t.sti_is(e.IStiRadarSeries))return new e.StiLegendLineMarker;if(t.sti_is(e.IStiFunnelSeries))return new e.StiLegendFunnelMarker;if(t.sti_is(e.IStiStockSeries))return new e.StiLegendStockMarker;if(t.sti_is(e.IStiCandlestickSeries))return new e.StiLegendCandelstickMarker;if(t.sti_is(e.IStiPictorialSeries))return new e.StiLegendPictorialMarker;return new e.StiLegendColumnMarker},t}();e.StiMarkerLegendFactory=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiShadowSides,n=e.System.TimeSpan,o=function(e){function t(t,r,i){var n=e.call(this,r)||this;return n._legend=t,n._seriesItems=i,n}return __extends(t,e),Object.defineProperty(t.prototype,"legend",{get:function(){return this._legend},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"seriesItems",{get:function(){return this._seriesItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"legendTitleGeom",{get:function(){return this._legendTitleGeom},set:function(e){this._legendTitleGeom=e},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._seriesItems.clear(),this._seriesItems=null},t.prototype.draw=function(e){if(!this.legend.visible||0==this.seriesItems.count)return;var t=this.clientRectangle.clone();if(null!=this.legendTitleGeom&&(t.y+=this.legendTitleGeom.clientRectangle.height,t.height-=this.legendTitleGeom.clientRectangle.height),t.width>0&&t.height>0){this.legend.showShadow&&(this.legend.chart.isAnimation?e.drawShadowRect(t,6,new n(0),new n(0)):e.drawCachedShadow(t,i.All,e.options.isPrinting)),e.fillRectangle2(this.legend.brush,t.x,t.y,t.width,t.height);var o=new r(this.legend.borderColor);e.drawRectangle2(o,t.x,t.y,t.width,t.height)}},t}(t.StiCellGeom);t.StiLegendGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringFormatFlags,i=e.System.Drawing.StringAlignment,n=e.Base.Context.StiFontGeom,o=e.Base.Drawing.StiSolidBrush,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i,n,o){var a=e.call(this,i)||this;return a._legend=t,a._item=r,a._colorIndex=n,a._legendItemsCount=o,a}return __extends(s,e),s.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0)},s.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},s.prototype.invokeClick=function(e){if(null!=this.item.series.interaction&&this.item.series.interaction.drillDownEnabled&&this.item.series.interaction.allowSeries){var r=new t.StiSeriesInteractionData;this.isColorEach?(r.fill(this.item.series.chart.area,this.item.series,this.item.index),r.isElements=!0):(r.series=this.item.series,r.isElements=!1),this.isMouseOver=!1,e.updateContext=!0,e.seriesInteractionData=r}},Object.defineProperty(s.prototype,"allowMouseOver",{get:function(){return null!=this.item&&null!=this.item.series&&null!=this.item.series.interaction&&this.item.series.interaction.allowSeries&&this.item.series.interaction.drillDownEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isColorEach",{get:function(){return this.item.series.chart.area.colorEach},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isMouseOver",{get:function(){if(this.isColorEach){if(-1==this.item.index)return!1;return this.item.series.core.getIsMouseOverSeriesElement(this.item.index)}return this.item.series.core.isMouseOver},set:function(e){this.isColorEach?-1!=this.item.index&&this.item.series.core.setIsMouseOverSeriesElement(this.item.index,e):this.item.series.core.isMouseOver=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legend",{get:function(){return this._legend},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"colorIndex",{get:function(){return this._colorIndex},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"legendItemsCount",{get:function(){return this._legendItemsCount},enumerable:!0,configurable:!0}),s.prototype.draw=function(e){var s=this.clientRectangle.clone();if(this.legend.markerVisible){var l=new a(this.clientRectangle.x,this.clientRectangle.y+(this.clientRectangle.height-this.legend.markerSize.height*e.options.zoom)/2,this.legend.markerSize.width*e.options.zoom,this.legend.markerSize.height*e.options.zoom);this.legend.markerAlignment==t.StiMarkerAlignment.Right&&(l.x=this.clientRectangle.right-l.width);t.StiMarkerLegendFactory.createMarker(this.item.series).draw(e,this.item.series,l,this.colorIndex,this.legendItemsCount),this.legend.markerAlignment==t.StiMarkerAlignment.Left&&(s.x+=this.legend.markerSize.width*e.options.zoom),s.width-=this.legend.markerSize.width*e.options.zoom}s.x+=2,s.width+=4;var u=new o(this.legend.labelsColor),c=n.changeFontSize(this.legend.font,this.legend.font.size*e.options.zoom),h=e.getDefaultStringFormat();h.alignment=i.Near,h.lineAlignment=i.Center,h.formatFlags=0,this.legend.markerAlignment==t.StiMarkerAlignment.Right&&(h.formatFlags=r.NoWrap),e.drawString(this.item.text,c,u,s,h)},s}(t.StiCellGeom);t.StiLegendItemGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringAlignment,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=function(e){function t(t,r){var i=e.call(this,r)||this;return i._legend=t,i}return __extends(t,e),Object.defineProperty(t.prototype,"legend",{get:function(){return this._legend},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=new n(this.legend.titleColor),o=i.changeFontSize(this.legend.titleFont,this.legend.titleFont.size*e.options.zoom),a=e.getDefaultStringFormat();a.alignment=r.Center,a.lineAlignment=r.Center,a.formatFlags=0,e.drawString(this.legend.title,o,t,this.clientRectangle,a)},t}(t.StiCellGeom);t.StiLegendTitleGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(r,i,n,o,a,s,l){var u=t.call(this,e.StiMarkerCoreXF.getMarkerRect(o,a.size,l))||this;return u._series=r,u._index=i,u._value=n,u._point=o,u._marker=a,u._showShadow=s,u}return __extends(r,t),r.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0);var t=this.getValueIndex();e.interactionToolTip=this.getToolTip2(t),e.interactionHyperlink=this.getHyperlink2(t)},r.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},r.prototype.invokeClick=function(e){var t=this.getValueIndex();null!=this.series.hyperlinks&&t<this.series.hyperlinks.length&&(e.interactionHyperlink=this.series.hyperlinks[t]),this.series.interaction.drillDownEnabled&&(e.seriesInteractionData=this.interaction,this.isMouseOver=!1,e.updateContext=!0)},r.prototype.getValueIndex=function(){var t=this.index;return this.series.sti_is(e.IStiClusteredBarSeries)||this.series.sti_is(e.IStiStackedBarSeries)||this.series.sti_is(e.IStiFullStackedBarSeries)?this.series.chart.area.sti_is(e.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(t=this.series.values.length-t-1):this.series.chart.area.sti_is(e.IStiAxisArea)&&this.series.chart.area.reverseHor&&(t=this.series.values.length-t-1),t},r.prototype.getHyperlink=function(){return this.getHyperlink2(this.getValueIndex())},r.prototype.getHyperlink2=function(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null},r.prototype.getToolTip=function(){return this.getToolTip2(this.getValueIndex())},r.prototype.getToolTip2=function(e){return null!=this.series.toolTips&&e<this.series.toolTips.length?this.series.toolTips[e]:null},Object.defineProperty(r.prototype,"allowMouseOver",{get:function(){var e=this.getValueIndex();return null!=this.getHyperlink2(this.getValueIndex())||null!=this.series.toolTips&&e<this.series.toolTips.length||this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeriesElements},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isMouseOver",{get:function(){if(null==this.series)return!1;return this.series.core.getIsMouseOverSeriesElement(this.index)},set:function(e){null!=this.series&&this.series.core.setIsMouseOverSeriesElement(this.index,e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"interaction",{get:function(){return this._interaction},set:function(e){this._interaction=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"point",{get:function(){return this._point},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"marker",{get:function(){return this._marker},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showShadow",{get:function(){return this._showShadow},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),r.prototype.contains=function(e,t){if(this.invisible)return!1;return this.getMouseOverRect().contains(e,t)},r.prototype.getMouseOverRect=function(){var e=this.clientRectangle.clone();return e.inflate(e.width/2,e.height/2),e},r.prototype.draw=function(t){t.pushSmoothingModeToAntiAlias();var r=t.options.zoom;this.isMouseOver&&t.fillEllipse2(e.StiMouseOverHelper.getLineMouseOverColor(),this.getMouseOverRect());var i=this.series.chart,n=this.marker.clone();n.brush=this.series.processSeriesBrushes(this.index,this.marker.brush),this.marker.core.draw(t,n,this.point,r,this.showShadow,this.isMouseOver||this.series.core.isMouseOver,i.isAnimation,this),t.popSmoothingMode()},r}(e.StiCellGeom);e.StiMarkerGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(e){function t(t,r){var i=e.call(this,r)||this;return i._axis=t,i}return __extends(t,e),Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),t.prototype.drawAxisLine=function(e,t){var i=t.right,n=new r(this.axis.lineColor,this.axis.lineWidth);e.drawLine(n,i,t.y,i,t.bottom)},t.prototype.drawMinorTicks=function(e,t,r,i,n,o){for(var a=n-i,s=a/(o.minorCount+1),l=o.minorLength*e.options.zoom,u=1;u<=o.minorCount;u++){var c=i+s*u,h=r-l;e.drawLine(t,r,c,h,c)}},t.prototype.drawTicks=function(e,t,r,i){if(!r.visible)return;for(var n=r.length*e.options.zoom,o=t.right,a=o-n,s=0,l=0,u=this.axis.info.ticksCollection;l<u.length;l++){var c=u[l],h=c.position;if(e.drawLine(i,o,h,a,h),r.minorVisible&&s!=this.axis.info.ticksCollection.count-1){var p=this.axis.info.ticksCollection[s+1].position;this.drawMinorTicks(e,i,o,h,p,r)}s++}},t.prototype.drawAxis=function(e,t){var i=new r(this.axis.lineColor,this.axis.lineWidth);i.penStyle=this.axis.lineStyle,this.drawTicks(e,t,this.axis.area.yAxis.ticks,i),this.drawAxisLine(e,t)},t.prototype.draw=function(e){var t=this.clientRectangle.clone();if(t.width<=0||t.height<=0)return;this.drawAxis(e,t)},t}(t.StiCellGeom);t.StiRadarAxisGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.StringTrimming,n=e.System.Drawing.StringFormatFlags,o=e.Base.Drawing.StiRotationMode,a=e.Base.Context.StiFontGeom,s=function(e){function t(t,r,i,n,o,a,s,l){var u=e.call(this,a)||this;return u._axis=t,u._labelRect=s,u._text=r,u._angle=o,u._point=l,u._labelBrush=i,u._borderColor=n,u}return __extends(t,e),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelBrush",{get:function(){return this._labelBrush},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"point",{get:function(){return this._point},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelRect",{get:function(){return this._labelRect},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone(),s=new r(this.borderColor),l=a.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*e.options.zoom),u=e.getGenericStringFormat();u.trimming=i.None,this.axis.labels.wordWrap||(u.formatFlags=n.MeasureTrailingSpaces|n.NoWrap),this.axis.labels.antialiasing&&e.pushSmoothingModeToAntiAlias();var c=Math.round(this.labelRect.x+this.labelRect.width/2,0),h=Math.round(this.labelRect.y+this.labelRect.height/2,0);e.pushTranslateTransform(c,h),e.pushRotateTransform(this.angle),t.isEmpty||(e.fillRectangle(this.axis.labels.brush,t),this.axis.labels.drawBorder&&e.drawRectangle2(s,t.x,t.y,t.width,t.height)),e.popTransform(),e.popTransform(),this.axis.labels.antialiasing&&e.popSmoothingMode();var p=o.CenterBottom,f=this.angle;this.angle>=90&&this.angle<=270&&(f=this.angle+180,p=o.CenterTop),this.axis.labels.rotationLabels||(this.angle>0&&this.angle<180?p=o.LeftCenter:this.angle<360&&this.angle>180?p=o.RightCenter:0==this.angle?p=o.CenterBottom:180==this.angle&&(p=o.CenterTop),f=0),e.drawRotatedString9(this.text,l,this.labelBrush,this.point,u,p,f,this.axis.labels.antialiasing,Math.trunc(this.axis.labels.width*e.options.zoom))},t}(t.StiCellGeom);t.StiXRadarAxisLabelGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiSolidBrush,i=function(e){function t(t,r,i,n,o,a,s){var l=e.call(this,r)||this;return l._axis=t,l._text=n,l._stripLine=o,l._textPoint=i,l._angle=a,l._rotationMode=s,l}return __extends(t,e),Object.defineProperty(t.prototype,"rotationMode",{get:function(){return this._rotationMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textPoint",{get:function(){return this._textPoint},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stripLine",{get:function(){return this._stripLine},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone(),i=this.axis.yCore.getStringFormatGeom(e),n=this.axis.yCore.getFontGeom(e),o=new r(this.axis.labels.color);e.drawRotatedString9(this.text,n,o,this.textPoint,i,this.rotationMode,this.angle,this.axis.labels.antialiasing,Math.trunc(this.axis.labels.width*e.options.zoom))},t}(t.StiCellGeom);t.StiYRadarAxisLabelGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.Rectangle,n=e.System.TimeSpan,o=e.System.Drawing.Color,a=function(e){function a(t,r,i,o,a){var s=e.call(this,a)||this;return s._beginTime=new n(0),s._duration=new n(0),s._seriesLabels=t,s._series=r,s._index=i,s._value=o,s}return __extends(a,e),a.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0)},a.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},a.prototype.getValueIndex=function(){var e=this.index;return this.series.sti_is(t.IStiClusteredBarSeries)||this.series.sti_is(t.IStiStackedBarSeries)||this.series.sti_is(t.IStiFullStackedBarSeries)?this.series.chart.area.sti_is(t.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(e=this.series.values.length-e-1):this.series.chart.area.sti_is(t.IStiAxisArea)&&this.series.chart.area.reverseHor&&(e=this.series.values.length-e-1),e},a.prototype.getHyperlink=function(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null},a.prototype.getToolTip=function(e){return null!=this.series.toolTips&&e<this.series.toolTips.length?this.series.hyperlinks[e]:null},Object.defineProperty(a.prototype,"allowMouseOver",{get:function(){return null!=this.getHyperlink(this.getValueIndex())||this.series.interaction.drillDownEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isMouseOver",{get:function(){if(null==this.series)return!1;return this.series.core.getIsMouseOverSeriesElement(this.index)},set:function(e){null!=this.series&&this.series.core.setIsMouseOverSeriesElement(this.index,e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabels",{get:function(){return this._seriesLabels},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"beginTime",{get:function(){return this._beginTime},set:function(e){this._beginTime=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!0,configurable:!0}),a.prototype.drawMarker=function(e,n,a,s){if(this.seriesLabels.markerVisible){var l=this.series.chart,u=i.empty;this.seriesLabels.markerAlignment==t.StiMarkerAlignment.Right?u.x=Math.trunc(n.right+2*e.options.zoom):u.x=Math.trunc(n.left-(2+this.seriesLabels.markerSize.width)*e.options.zoom),u.y=Math.trunc(n.y+(n.height-this.seriesLabels.markerSize.height*e.options.zoom)/2),u.width=Math.trunc(this.seriesLabels.markerSize.width*e.options.zoom),u.height=Math.trunc(this.seriesLabels.markerSize.height*e.options.zoom);var c=a.sti_is(o)?a.sti_as(o):o.black,h=new r(c,1);l.isAnimation?e.drawAnimationRectangle(s,h,u,t.StiChartHelper.globalBeginTimeElement,t.StiChartHelper.globalBeginTimeElement):(e.fillRectangle2(s,u.x,u.y,u.width,u.height),e.drawRectangle2(h,u.x,u.y,u.width,u.height))}},a.prototype.draw=function(e){},a}(t.StiCellGeom);t.StiSeriesLabelsGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.StringAlignment,n=e.Base.Drawing.StiRotationMode,o=e.Base.Drawing.StiSolidBrush,a=function(e){function a(t,r,i,n,o,a,s,l,u,c,h,p){var f=e.call(this,t,r,i,n,o)||this;return f._text=a,f._labelColor=s,f._labelBorderColor=l,f._seriesBrush=u,f._seriesLabelsBrush=c,f._seriesBorderColor=h,f._font=p,f}return __extends(a,e),Object.defineProperty(a.prototype,"labelColor",{get:function(){return this._labelColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"labelBorderColor",{get:function(){return this._labelBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesLabelsBrush",{get:function(){return this._seriesLabelsBrush},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"font",{get:function(){return this._font},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),a.prototype.draw=function(e){var a=this.clientRectangle.clone(),s=new r(this.labelBorderColor,1),l=new o(this.labelColor),u=this.seriesLabels.core.getStringFormatGeom(e);if(u.alignment=i.Center,u.lineAlignment=i.Center,this.series.chart.isAnimation)this.drawMarker(e,a,this.seriesBorderColor,this.seriesBrush),e.drawAnimationLabel(this.text,this.font,l,this.seriesLabelsBrush,s,a,u,n.CenterCenter,this.seriesLabels.angle,this.seriesLabels.drawBorder,this.duration,this.beginTime);else{this.drawMarker(e,a,this.seriesBorderColor,this.seriesBrush);var c=a.x+a.width/2,h=a.y+a.height/2;e.pushTranslateTransform(c,h),e.pushRotateTransform(this.seriesLabels.angle);var p=a.clone();p.x=-p.width/2,p.y=-p.height/2,e.fillRectangle(this.seriesLabelsBrush,p),this.seriesLabels.drawBorder&&e.drawRectangle2(s,p.x,p.y,p.width,p.height),e.popTransform(),e.popTransform(),e.drawRotatedString6(this.text,this.font,l,a,u,n.CenterCenter,this.seriesLabels.angle,this.seriesLabels.antialiasing,this.seriesLabels.width),this.isMouseOver&&e.fillRectangle(t.StiMouseOverHelper.getLineMouseOverColor(),a)}},a}(t.StiSeriesLabelsGeom);t.StiCenterAxisLabelsGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.StringAlignment,n=e.Base.Drawing.StiRotationMode,o=e.Base.Drawing.StiSolidBrush,a=function(e){function a(t,r,i,n,o,a,s,l,u,c,h,p,f){var m=e.call(this,t,r,i,n,o)||this;return m._text=a,m._labelColor=s,m._labelBorderColor=l,m._seriesBrush=u,m._seriesBorderColor=c,m._font=h,m._startPoint=p,m._endPoint=f,m}return __extends(a,e),Object.defineProperty(a.prototype,"labelColor",{get:function(){return this._labelColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"labelBorderColor",{get:function(){return this._labelBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"font",{get:function(){return this._font},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"startPoint",{get:function(){return this._startPoint},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"endPoint",{get:function(){return this._endPoint},enumerable:!0,configurable:!0}),a.prototype.draw=function(e){var a=this.clientRectangle.clone(),s=new o(this.labelColor),l=new r(this.labelBorderColor),u=this.seriesLabels.core.getStringFormatGeom(e);this.drawMarker(e,a,this.seriesBorderColor,this.seriesBrush),this.seriesLabels.drawBorder&&e.drawLine(l,this.endPoint.x,this.endPoint.y,this.startPoint.x,this.startPoint.y),e.pushTranslateTransform(a.x+a.width/2,a.y+a.height/2),e.pushRotateTransform(this.seriesLabels.angle);var c=a.clone();c.x=-c.width/2,c.y=-c.height/2,e.fillRectangle(this.seriesLabels.brush,c),this.seriesLabels.drawBorder&&e.drawRectangle2(l,c.x,c.y,c.width,c.height),u.alignment=i.Center,u.lineAlignment=i.Center,e.popTransform(),e.popTransform(),e.drawRotatedString6(this.text,this.font,s,a,u,n.CenterCenter,this.seriesLabels.angle,this.seriesLabels.antialiasing,this.seriesLabels.width),this.isMouseOver&&e.fillRectangle(t.StiMouseOverHelper.getLineMouseOverColor(),a)},a}(t.StiSeriesLabelsGeom);t.StiOutsideAxisLabelsGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.StringAlignment,n=e.Base.Drawing.StiRotationMode,o=e.Base.Context.StiFontGeom,a=function(e){function a(t,r,i,n,o,a,s,l,u,c,h){var p=e.call(this,t,r,i,n,o)||this;return p._text=a,p._labelBrush=l,p._borderColor=u,p._seriesBorderColor=c,p._seriesBrush=s,p._labelRect=h,p}return __extends(a,e),Object.defineProperty(a.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"labelBrush",{get:function(){return this._labelBrush},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"labelRect",{get:function(){return this._labelRect},enumerable:!0,configurable:!0}),a.prototype.draw=function(e){var a=this.clientRectangle.clone(),s=new r(this.borderColor),l=o.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*e.options.zoom),u=this.seriesLabels.core.getStringFormatGeom(e);if(u.alignment=i.Center,u.lineAlignment=i.Center,this.drawMarker(e,this.labelRect,this.seriesBorderColor,this.seriesBrush),!a.isEmpty){var c=a.x+a.width/2,h=a.y+a.height/2;e.pushTranslateTransform(c,h),e.pushRotateTransform(this.seriesLabels.angle);var p=a;p.x=-p.width/2,p.y=-p.height/2,e.fillRectangle(this.seriesLabels.brush,p),this.seriesLabels.drawBorder&&e.drawRectangle2(s,p.x-1,p.y,p.width,p.height),e.popTransform(),e.popTransform(),e.drawRotatedString6(this.text,l,this.labelBrush,this.labelRect,u,n.CenterCenter,this.seriesLabels.angle,this.seriesLabels.antialiasing,this.seriesLabels.width),this.isMouseOver&&e.fillRectangle2(t.StiMouseOverHelper.getLineMouseOverColor(),p.x,p.y,p.width,p.height)}},a}(t.StiSeriesLabelsGeom);t.StiCenterFunnelLabelsGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(e){function t(t,r,i,n,o,a,s,l,u,c,h,p,f){var m=e.call(this,t,r,i,n,o,a,s,l,u,c,h)||this;return m._startPointLine=p,m._endPointLine=f,m}return __extends(t,e),Object.defineProperty(t.prototype,"startPointLine",{get:function(){return this._startPointLine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endPointLine",{get:function(){return this._endPointLine},enumerable:!0,configurable:!0}),t.prototype.draw=function(t){var i=new r(this.borderColor);t.drawLine(i,this.startPointLine.x,this.startPointLine.y,this.endPointLine.x,this.endPointLine.y),e.prototype.draw.call(this,t)},t}(t.StiCenterFunnelLabelsGeom);t.StiOutsideFunnelLabelsGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiFontGeom,n=function(e){function n(t,r,i,n,o,a,s,l,u,c,h,p,f,m){var S=e.call(this,t,r,i,n,o)||this;return S._text=a,S._labelBrush=l,S._borderColor=c,S._seriesBorderColor=h,S._seriesLabelsBrush=u,S._seriesBrush=s,S._rotationMode=p,S._labelRect=f,S._angleToUse=m,S}return __extends(n,e),Object.defineProperty(n.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"seriesLabelsBrush",{get:function(){return this._seriesLabelsBrush},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelBrush",{get:function(){return this._labelBrush},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rotationMode",{get:function(){return this._rotationMode},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelRect",{get:function(){return this._labelRect},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"angleToUse",{get:function(){return this._angleToUse},enumerable:!0,configurable:!0}),n.prototype.draw=function(e){var n=this.clientRectangle.clone(),o=new r(this.borderColor),a=i.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*e.options.zoom),s=this.seriesLabels.core.getStringFormatGeom(e);if(this.series.chart.isAnimation)e.drawAnimationLabel(this.text,a,this.labelBrush,this.seriesLabelsBrush,o,this.labelRect,s,this.rotationMode,this.seriesLabels.angle,this.seriesLabels.drawBorder,this.duration,this.beginTime);else{this.drawMarker(e,this.labelRect,this.seriesBorderColor,this.seriesBrush);var l=Math.round(this.labelRect.x+this.labelRect.width/2,0),u=Math.round(this.labelRect.y+this.labelRect.height/2,0);e.pushTranslateTransform(l,u),e.pushRotateTransform(this.angleToUse),n.isEmpty||(e.fillRectangle(this.seriesLabelsBrush,n),this.seriesLabels.drawBorder&&e.drawRectangle2(o,n.x,n.y,n.width,n.height),this.isMouseOver&&e.fillRectangle2(t.StiMouseOverHelper.getLineMouseOverColor(),n.x,n.y,n.width,n.height)),e.popTransform(),e.popTransform(),e.drawRotatedString6(this.text,a,this.labelBrush,this.labelRect,s,this.rotationMode,this.angleToUse,this.seriesLabels.antialiasing,this.seriesLabels.width)}},n}(t.StiSeriesLabelsGeom);t.StiCenterPieLabelsGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.StiAnimationType,n=function(e){function n(t,r,i,n,o,a,s,l,u,c,h,p,f,m,S,g,d){var y=e.call(this,t,r,i,n,o,a,s,l,u,c,h,p,f,m)||this;return y._lineColor=S,y._labelPoint=g,y._startPoint=d,y}return __extends(n,e),Object.defineProperty(n.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPoint",{get:function(){return this._labelPoint},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"startPoint",{get:function(){return this._startPoint},enumerable:!0,configurable:!0}),n.prototype.draw=function(n){var o=this.seriesLabels;if(e.prototype.draw.call(this,n),o.drawBorder){var a=new r(this.lineColor);this.series.chart.isAnimation?n.drawAnimationLines(a,[this.labelPoint,this.startPoint],t.StiChartHelper.globalBeginTimeElement,t.StiChartHelper.globalBeginTimeElement,i.Opacity):n.drawLine(a,this.labelPoint.x,this.labelPoint.y,this.startPoint.x,this.startPoint.y)}},n}(t.StiCenterPieLabelsGeom);t.StiOutsidePieLabelsGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.StringAlignment,n=e.Base.Drawing.StiRotationMode,o=e.Base.Context.StiFontGeom,a=e.System.Drawing.Rectangle,s=e.System.Drawing.Color,l=e.System.Drawing.Point,u=function(e){function u(t,r,i,n,o,a,s,l,u,c,h,p,f,m,S,g,d){var y=e.call(this,t,r,i,n,o)||this;return y._text=a,y._seriesLabelsBrush=u,y._labelBrush=l,y._lineColor=f,y._borderColor=c,y._seriesBorderColor=h,y._seriesBrush=s,y._labelRect=p,y._startPoint=m,y._endPoint=S,y._arcPoint=g,y._centerPie=d,y}return __extends(u,e),Object.defineProperty(u.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"labelBrush",{get:function(){return this._labelBrush},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"seriesLabelsBrush",{get:function(){return this._seriesLabelsBrush},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"labelRect",{get:function(){return this._labelRect},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"startPoint",{get:function(){return this._startPoint},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"endPoint",{get:function(){return this._endPoint},set:function(e){this._endPoint=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"arcPoint",{get:function(){return this._arcPoint},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"centerPie",{get:function(){return this._centerPie},enumerable:!0,configurable:!0}),u.prototype.draw=function(e){var a=this.clientRectangle.clone(),s=new r(this.borderColor,1),u=o.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*e.options.zoom),c=this.seriesLabels.core.getStringFormatGeom(e);if(this.seriesLabels.drawBorder){var h=null,p=new r(this.lineColor,1);(this.centerPie.y>this.startPoint.y&&this.endPoint.y>this.startPoint.y||this.centerPie.y<this.startPoint.y&&this.endPoint.y<this.startPoint.y)&&(h=this.centerPie.x>this.endPoint.x?new l(this.endPoint.x+13,this.startPoint.y):new l(this.endPoint.x-13,this.startPoint.y)),null!=h?e.drawLines(p,[this.endPoint,h,this.startPoint,this.arcPoint]):e.drawLines(p,[this.endPoint,this.startPoint,this.arcPoint])}this.drawMarker(e,a,this.seriesBorderColor,this.seriesBrush),isNaN(a.x)||isNaN(a.y)||isNaN(a.width)||isNaN(a.height)||(e.fillRectangle(this.seriesLabelsBrush,a),this.seriesLabels.drawBorder&&e.drawRectangle2(s,a.x,a.y,a.width,a.height)),c.alignment=i.Center,c.lineAlignment=i.Center,e.drawRotatedString6(this.text,u,this.labelBrush,a,c,n.CenterCenter,0,this.seriesLabels.antialiasing,this.seriesLabels.width),this.isMouseOver&&e.fillRectangle(t.StiMouseOverHelper.getLineMouseOverColor(),a)},u.prototype.drawMarker=function(e,i,n,o){if(this.seriesLabels.markerVisible){var l=a.empty,u=Math.trunc(i.right+2*e.options.zoom),c=Math.trunc(i.left-(2+this.seriesLabels.markerSize.width)*e.options.zoom);StiOptions.Engine.allowFixPieChartMarkerAlignment?this.seriesLabels.markerAlignment==t.StiMarkerAlignment.Right?l.x=this.clientRectangle.x<this.centerPie.x?u:c:l.x=this.clientRectangle.x>this.centerPie.x?u:c:l.x=this.seriesLabels.markerAlignment==t.StiMarkerAlignment.Right?u:c,l.y=Math.trunc(i.y+(i.height-this.seriesLabels.markerSize.height*e.options.zoom)/2),l.width=Math.trunc(this.seriesLabels.markerSize.width*e.options.zoom),l.height=Math.trunc(this.seriesLabels.markerSize.height*e.options.zoom);var h=n.sti_is(s)?n:s.black,p=new r(h,1);e.fillRectangle2(o,l.x,l.y,l.width,l.height),e.drawRectangle2(p,l.x,l.y,l.width,l.height)}},u}(t.StiSeriesLabelsGeom);t.StiTwoColumnsPieLabelsGeom=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.StringAlignment,n=e.Base.Drawing.StiRotationMode,o=e.Base.Drawing.StiSolidBrush,a=e.Base.Context.Animation.StiOpacityAnimation,s=function(e){function s(t,r,i,n,o,a,s,l,u,c,h,p,f){var m=e.call(this,t,r,i,n,o)||this;return m._text=a,m._labelColor=s,m._labelBorderColor=l,m._seriesBrush=u,m._seriesLabelsBrush=c,m._seriesBorderColor=h,m._font=p,m}return __extends(s,e),Object.defineProperty(s.prototype,"labelColor",{get:function(){return this._labelColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"labelBorderColor",{get:function(){return this._labelBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesLabelsBrush",{get:function(){return this._seriesLabelsBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"font",{get:function(){return this._font},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"text",{get:function(){return this._text},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"animation",{get:function(){return this._animation},enumerable:!0,configurable:!0}),s.prototype.draw=function(s){e.prototype.draw.call(this,s);var l=this.clientRectangle.clone(),u=new r(this.labelBorderColor,1),c=new o(this.labelColor),h=this.seriesLabels.core.getStringFormatGeom(s);if(h.alignment=i.Center,h.lineAlignment=i.Center,this.series.chart.isAnimation)this.drawMarker(s,l,this.seriesBorderColor,this.seriesBrush),null==this.animation&&(this._animation=new a(this.duration,this.beginTime)),s.drawAnimationLabel(this.text,this.font,c,this.seriesLabelsBrush,u,l,h,n.CenterCenter,this.seriesLabels.angle,this.seriesLabels.drawBorder,this.animation.beginTime,this.animation.duration);else{this.drawMarker(s,l,this.seriesBorderColor,this.seriesBrush);var p=l.x+l.width/2,f=l.y+l.height/2;s.pushTranslateTransform(p,f),s.pushRotateTransform(this.seriesLabels.angle);var m=l.clone();m.x=-m.width/2,m.y=-m.height/2,s.fillRectangle(this.seriesLabelsBrush,m),this.seriesLabels.drawBorder&&s.drawRectangle2(u,m.x,m.y,m.width,m.height),s.popTransform(),s.popTransform(),s.drawRotatedString6(this.text,this.font,c,l,h,n.CenterCenter,this.seriesLabels.angle,this.seriesLabels.antialiasing,m.width),this.isMouseOver&&s.fillRectangle(t.StiMouseOverHelper.getLineMouseOverColor(),l)}},s}(t.StiSeriesLabelsGeom);t.StiCenterTreemapLabelsGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e,r,i,n,o){var a=t.call(this,o)||this;return a._areaGeom=e,a._series=n,a._value=r,a._index=i,a}return __extends(r,t),r.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=this.series.interaction.drillDownEnabled);var t=this.getValueIndex();e.interactionToolTip=this.getToolTip2(t),e.interactionHyperlink=this.getHyperlink2(t)},r.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=this.series.interaction.drillDownEnabled)},r.prototype.invokeClick=function(e){var t=this.getValueIndex();null!=this.series.hyperlinks&&t<this.series.hyperlinks.length&&(e.interactionHyperlink=this.series.hyperlinks[t]),this.series.interaction.drillDownEnabled&&(e.seriesInteractionData=this.interaction,this.isMouseOver=!1,e.updateContext=this.series.interaction.drillDownEnabled)},r.prototype.getValueIndex=function(){var t=this.index;return this.series.sti_is(e.IStiClusteredBarSeries)||this.series.sti_is(e.IStiStackedBarSeries)||this.series.sti_is(e.IStiFullStackedBarSeries)?this.series.chart.area.sti_is(e.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(t=this.series.values.length-t-1):this.series.chart.area.sti_is(e.IStiAxisArea)&&this.series.chart.area.reverseHor&&(t=this.series.values.length-t-1),t},r.prototype.getHyperlink=function(){return this.getHyperlink2(this.getValueIndex())},r.prototype.getHyperlink2=function(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null},r.prototype.getToolTip=function(){var e=this.getValueIndex();return null!=this.series.toolTips&&e<this.series.toolTips.length?this.series.toolTips[e]:null},r.prototype.getToolTip2=function(e){return null!=this.series.toolTips&&e<this.series.toolTips.length?this.series.toolTips[e]:null},Object.defineProperty(r.prototype,"allowMouseOver",{get:function(){var e=this.getValueIndex();return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length||null!=this.series.toolTips&&e<this.series.toolTips.length||this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeriesElements},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isMouseOver",{get:function(){return this.series.core.getIsMouseOverSeriesElement(this.index)},set:function(e){this.series.core.setIsMouseOverSeriesElement(this.index,e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"interaction",{get:function(){return this._interaction},set:function(e){this._interaction=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"areaGeom",{get:function(){return this._areaGeom},set:function(e){this._areaGeom=e},enumerable:!0,configurable:!0}),r.prototype.draw=function(e){},r}(e.StiCellGeom);e.StiSeriesElementGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.StiAnimationType,n=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.Color,a=e.System.Drawing.Point,s=function(e){function s(t,r,i,n,o,a,s,l){var u=e.call(this,t,r,i,a,s)||this;return u._seriesBrush=n,u._seriesBorderColor=o,u._beginTime=l,u}return __extends(s,e),Object.defineProperty(s.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),s.prototype.contains=function(e,t){if(this.invisible)return!1;var r=new a(this.clientRectangle.x+this.clientRectangle.width/2,this.clientRectangle.y+this.clientRectangle.height/2),i=Math.abs(r.x-e),n=Math.abs(r.y-t);return Math.sqrt(i*i+n*n)<=this.clientRectangle.width/2},s.prototype.draw=function(e){var a=this.clientRectangle.clone(),s=new r(this.seriesBorderColor,1);if(this.series.chart.isAnimation){var l=t.StiChartHelper.globalDurationElement;e.fillDrawAnimationEllipse(this.seriesBrush,s,a.x,a.y,a.width,a.height,l,this.beginTime,i.Scale,this)}else{if(this.series.showShadow){var u=new n(o.fromArgb(100,o.black)),c=e.createShadowGraphics(),h=a.clone();h.x=0,h.y=0,h.x+=4*e.options.zoom,h.y+=4*e.options.zoom,c.fillEllipse2(u,h),e.drawShadow(c,a,0)}e.fillEllipse2(this.seriesBrush,a),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillEllipse(t.StiMouseOverHelper.getMouseOverColor(),a.x,a.y,a.width,a.height),e.pushSmoothingModeToAntiAlias(),e.drawEllipse2(s,a),e.popSmoothingMode()}},s}(t.StiSeriesElementGeom);t.StiBubbleSeriesElementGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiShadowSides,n=e.System.TimeSpan,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i,n,o,a,s,l){var u=e.call(this,t,r,i,a,s)||this;return u._seriesBrush=n,u._seriesBorderColor=o,u._beginTime=l,u}return __extends(s,e),Object.defineProperty(s.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),s.prototype.draw=function(e){if(this.series.chart.isAnimation){var s=this.clientRectangle.clone(),l=new r(this.seriesBorderColor,1),u=t.StiChartHelper.globalDurationElement;this.series.showShadow&&e.drawShadowRect(s,5,u,new n(this.beginTime.ticks+u.ticks));var c=!(this.value<0);e.drawAnimationBar(this.seriesBrush,l,s,u,this.beginTime,c,this)}else{var s=this.clientRectangle.clone();if(this.series.showShadow&&s.width>4&&s.height>4){var h=s.clone();this.value>0?(h.y--,e.drawCachedShadow(h,i.Left|i.Bottom,e.options.isPrinting)):this.value<0&&e.drawCachedShadow(new a(h.x-8,h.y,h.width+8,h.height),i.Top|i.Right|i.Edge|i.Bottom,e.options.isPrinting)}var l=new r(this.seriesBorderColor,1);this.series.chart.style.core.fillColumn(e,s,this.seriesBrush);var p=null;(this.isMouseOver||this.series.core.isMouseOver)&&e.fillRectangle2(t.StiMouseOverHelper.getMouseOverColor(),s.x,s.y,s.width,s.height),p=this.value>0?[new o(s.right,s.y),new o(s.x,s.y),new o(s.x,s.bottom),new o(s.right,s.bottom)]:[new o(s.x,s.y),new o(s.right,s.y),new o(s.right,s.bottom),new o(s.x,s.bottom)],e.drawLines(l,p)}},s}(t.StiSeriesElementGeom);t.StiClusteredBarSeriesElementGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,r,i){var n=e.call(this,i)||this;return n._areaGeom=t,n._series=r,n}return __extends(t,e),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interactions",{get:function(){return this._interactions},set:function(e){this._interactions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areaGeom",{get:function(){return this._areaGeom},set:function(e){this._areaGeom=e},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone()},t}(e.StiCellGeom);e.StiSeriesGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Point,i=e.System.Drawing.Rectangle,n=function(e){function t(r,i,n){var o=e.call(this,r,n,t.getClientRectangle(i))||this;return o._points=i,o}return __extends(t,e),t.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0)},t.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},Object.defineProperty(t.prototype,"allowMouseOver",{get:function(){return this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeries},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMouseOver",{get:function(){if(null==this.series)return!1;return this.series.core.isMouseOver},set:function(e){null!=this.series&&(this.series.core.isMouseOver=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"points",{get:function(){return this._points},enumerable:!0,configurable:!0}),t.getClientRectangle=function(e){if(null==e||0==e.length)return i.empty;for(var t=r.empty,n=r.empty,o=0,a=e;o<a.length;o++){var s=a[o];if(null==s)continue;t==r.empty?(t=s,n=s):(t.x=Math.min(t.x,s.x),t.y=Math.min(t.y,s.y),n.x=Math.max(n.x,s.x),n.y=Math.max(n.y,s.y))}return new i(t.x,t.y,n.x-t.x,n.y-t.y)},t.prototype.draw=function(e){},t}(t.StiSeriesGeom);t.StiBaseLineSeriesGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenLineCap,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.Base.Drawing.StiPenStyle,a=e.Base.Drawing.StiSolidBrush,s=e.System.Drawing.Color,l=e.System.Drawing.Point,u=e.System.Drawing.Rectangle,c=function(e){function c(t,r,i){return e.call(this,t,r,i)||this}return __extends(c,e),c.prototype.contains=function(e,r){if(this.invisible)return!1;for(var i=0;i<this.points.length-1;i++){var n=this.points[i],o=this.points[i+1];if(null==n||null==o)continue;if(t.StiPointHelper.isLineContainsPoint(n,o,t.StiMouseOverHelper.mouseOverLineDistance,new l(e,r)))return!0}return!1},c.prototype.draw=function(e){var l=o.Solid,c=1,h=s.black,p=!0,f=null,m=!0,S=this.series.sti_as(t.IStiBaseLineSeries);null!=S&&(l=S.lineStyle,c=S.lineWidth,h=S.lineColor,p=S.showShadow,f=S.lineMarker,m=S.lighting);var g=this.series.sti_as(t.IStiRadarLineSeries);null!=g&&(l=g.lineStyle,c=g.lineWidth,h=g.lineColor,p=g.showShadow,m=g.lighting);var d=this.series.sti_as(t.IStiRadarAreaSeries);null!=d&&(l=d.lineStyle,c=d.lineWidth,h=d.lineColor,p=d.showShadow,m=d.lighting),e.pushSmoothingModeToAntiAlias();var y=l,b=c*e.options.zoom,v=new i(h,b);v.penStyle=y;var C=this.series.chart;if(p){var w=new i(s.fromArgb(50,0,0,0),b+.5*e.options.zoom);if(w.penStyle=y,e.pushTranslateTransform(b,b),t.StiNullableDrawing.drawLines(e,w,this.points,C.isAnimation),null!=f&&f.visible){var x=new a(s.fromArgb(50,0,0,0));f.core.drawLines(e,this.points,e.options.zoom,x,null,f.type,f.step,f.size,f.angle)}e.popTransform()}if(this.series.core.isMouseOver){for(var _=e.options.zoom,A=11+c,L=0,O=this.points;L<O.length;L++){var P=O[L];if(null==P)continue;var B=new u(P.x-A/2*_,P.y-A/2*_,A*_,A*_);e.fillEllipse2(t.StiMouseOverHelper.getLineMouseOverColor(),B)}var R=new i(t.StiMouseOverHelper.getLineMouseOverColor(),(4+c)*e.options.zoom);R.startCap=r.Round,R.endCap=r.Round,t.StiNullableDrawing.drawLines(e,R,this.points,C.isAnimation)}if(this.series.sti_is(t.StiLineSeries)&&this.series.allowApplyColorNegative){var k=this.series.lineColorNegative,j=new i(k,b);j.penStyle=y;for(var T=this.series.chart.area,F=T.axisCore.getDividerY(),D=[],I=[],N=0;N<this.points.length;N++){var P=this.points[N],M=N!=this.points.length-1?this.points[N+1]:null;if(P.y>F){if(D.add(P),null==M||M.y<F||M.y==F&&N+2<this.points.length&&this.points[N+2].y<=F){if(null!=M){var E=this.getPointCross(P,this.points[N+1],F);D.add(E),M.y==F&&N+2<this.points.length&&this.points[N+2].y<=F&&D.add(this.points[N+2]),I.add(E)}if(this.drawLine(e,j,D),b>=2*e.options.zoom&&m){var V=.5*e.options.zoom;e.pushTranslateTransform(-V,-V);var X=new i(n.light(k,70),b);X.penStyle=y,this.drawLine(e,X,D),e.popTransform()}D.clear()}}else if(I.add(P),null==M||M.y>F){if(null!=M){var E=this.getPointCross(P,this.points[N+1],F);D.add(E),I.add(E),I.add(M)}if(this.drawLine(e,v,I),b>=2*e.options.zoom&&m){var V=.5*e.options.zoom;e.pushTranslateTransform(-V,-V);var X=new i(n.light(h,70),b);X.penStyle=y,this.drawLine(e,X,I),e.popTransform()}I.clear()}}}else if(t.StiNullableDrawing.drawLines(e,v,this.points,C.isAnimation),b>=2*e.options.zoom&&m){var V=.5*e.options.zoom;e.pushTranslateTransform(-V,-V);var X=new i(n.light(h,70),b);X.penStyle=y,t.StiNullableDrawing.drawLines(e,X,this.points,C.isAnimation),e.popTransform()}if(null!=f&&f.visible){var G=new i(f.borderColor);f.core.drawLines(e,this.points,e.options.zoom,f.brush,G,f.type,f.step,f.size,f.angle)}e.popSmoothingMode()},c.prototype.getPointCross=function(e,t,r){var i=e.y,n=e.x,o=t.y,a=t.x,s=Math.tan(Math.atan((a-n)/(i-o)))*(i-r)+n;return new l(s,r)},c.prototype.drawLine=function(e,r,i){var n=Array.create(l,i.count,!0);i.copyTo(n);var o=this.series.chart;t.StiNullableDrawing.drawLines(e,r,n,o.isAnimation)},c}(t.StiBaseLineSeriesGeom);t.StiLineSeriesGeom=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.Base.Context.StiLineSegmentGeom,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i){return e.call(this,t,r,i)||this}return __extends(s,e),s.prototype.contains=function(e,r){var i=this.series.chart.area,n=i.axisCore.getDividerY();if(this.invisible)return!1;for(var a=0;a<this.points.length-1;a++){var s=this.points[a],l=this.points[a+1];if(null==s||null==l)continue;var u=new o(l.x,n),c=new o(s.x,n);if(t.StiPointHelper.isPointInPolygon(new o(e,r),[s,c,u,l]))return!0}return!1},s.prototype.draw=function(e){var o=this.series,s=this.series.chart.area,l=s.axisCore.getDividerY(),u=t.StiNullableDrawing.getPointsList(this.points);if(this.series.chart.isAnimation)for(var c=0,h=u;c<h.length;c++){var p=h[c],f=[];f.add(new n(p[0].x,l,p[0].x,p[0].y)),f.add(new i(p)),f.add(new n(p[p.length-1].x,p[p.length-1].y,p[p.length-1].x,l)),null!=o.brush&&e.fillDrawAnimationPath(o.brush,null,f,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null)}else for(var m=0,S=u;m<S.length;m++){var p=S[m],f=[];if(f.add(new n(p[0].x,l,p[0].x,p[0].y)),f.add(new i(p)),f.add(new n(p[p.length-1].x,p[p.length-1].y,p[p.length-1].x,l)),null!=o.brush&&e.fillPath(o.brush,f,r.getBoundsState),o.allowApplyBrushNegative&&null!=o.brushNegative){var g=s.axisCore.scrollRangeX*s.axisCore.scrollDpiX,d=s.axisCore.scrollRangeY*s.axisCore.scrollDpiY-l,y=new a(0,l,g,d);e.pushClip(y),e.fillPath(o.brushNegative,f,r.getBoundsState),e.popClip()}(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),f,r.getBoundsState)}},s}(t.StiLineSeriesGeom);t.StiAreaSeriesGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiShadowSides,n=e.System.TimeSpan,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i,n,o,a,s,l){var u=e.call(this,t,r,i,a,s)||this;return u._seriesBrush=n,u._seriesBorderColor=o,u._beginTime=l,u}return __extends(s,e),Object.defineProperty(s.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),s.prototype.draw=function(e){if(this.series.chart.isAnimation){var s=this.clientRectangle.clone(),l=new r(this.seriesBorderColor,1),u=this.value>0,c=t.StiChartHelper.globalDurationElement;this.series.showShadow&&s.width>1&&e.drawShadowRect(s,5,c,new n(this.beginTime.ticks+c.ticks)),e.drawAnimationColumn(this.seriesBrush,l,s,c,this.beginTime,u,this)}else{var s=this.clientRectangle.clone();this.series.showShadow&&s.width>4&&s.height>4&&(this.value>0?e.drawCachedShadow(s,i.Top|i.Right,e.options.isPrinting):this.value<0&&e.drawCachedShadow(new a(s.x,s.y-8,s.width,s.height+8),i.Right|i.Edge|i.Bottom|i.Left,e.options.isPrinting));var l=new r(this.seriesBorderColor,1);this.series.chart.style.core.fillColumn(e,s,this.seriesBrush),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillRectangle2(t.StiMouseOverHelper.getMouseOverColor(),s.x,s.y,s.width,s.height);var h=null;h=this.value>0?[new o(s.x,s.bottom),new o(s.x,s.y),new o(s.right,s.y),new o(s.right,s.bottom)]:[new o(s.x,s.y),new o(s.x,s.bottom),new o(s.right,s.bottom),new o(s.right,s.y)],e.drawLines(l,h)}},s}(t.StiSeriesElementGeom);t.StiClusteredColumnSeriesElementGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenLineCap,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.Base.Drawing.StiPenStyle,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=e.System.Drawing.Rectangle,u=function(e){function u(t,r,i){return e.call(this,t,r,i)||this}return __extends(u,e),u.prototype.contains=function(e,r){if(this.invisible)return!1;for(var i=0;i<this.points.length-1;i++){var n=this.points[i],o=this.points[i+1];if(null==n||null==o)continue;if(t.StiPointHelper.isLineContainsPoint(n,o,t.StiMouseOverHelper.mouseOverSplineDistance,new s(e,r)))return!0}return!1},u.prototype.draw=function(e){var s=o.Solid,u=1,c=a.black,h=!0,p=!0,f=1,m=this.series.sti_as(t.IStiSplineSeries);null!=m&&(s=m.lineStyle,u=m.lineWidth,c=m.lineColor,h=m.showShadow,p=m.lighting,f=m.tension);var S=this.series.sti_as(t.IStiRadarLineSeries);null!=S&&(s=S.lineStyle,u=S.lineWidth,c=S.lineColor,h=S.showShadow,p=S.lighting);var g=this.series.sti_as(t.IStiRadarAreaSeries);null!=g&&(s=g.lineStyle,u=g.lineWidth,c=g.lineColor,h=g.showShadow,p=g.lighting),e.pushSmoothingModeToAntiAlias();var d=s,y=u*e.options.zoom,b=new i(c,y);b.penStyle=d;var v=this.series.chart;if(h){var C=new i(a.fromArgb(50,0,0,0),y+.5*e.options.zoom);C.penStyle=d,e.pushTranslateTransform(y,y),t.StiNullableDrawing.drawCurve(e,C,this.points,f,v.isAnimation),e.popTransform()}if(this.series.core.isMouseOver){for(var w=e.options.zoom,x=11+u,_=0,A=this.points;_<A.length;_++){var L=A[_];if(null==L)continue;var O=new l(L.x-x/2*w,L.y-x/2*w,x*w,x*w);e.fillEllipse2(t.StiMouseOverHelper.getLineMouseOverColor(),O)}var P=new i(t.StiMouseOverHelper.getLineMouseOverColor(),(4+u)*e.options.zoom);P.startCap=r.Round,P.endCap=r.Round,t.StiNullableDrawing.drawCurve(e,P,this.points,f,v.isAnimation)}if(t.StiNullableDrawing.drawCurve(e,b,this.points,f,v.isAnimation),y>=2&&p){var B=.5*e.options.zoom;e.pushTranslateTransform(-B,-B);var R=new i(n.light(c,70),y);R.penStyle=d,t.StiNullableDrawing.drawCurve(e,R,this.points,f,v.isAnimation),e.popTransform()}if(null!=m&&m.allowApplyColorNegative){var k=new i(m.lineColorNegative,y);k.penStyle=d;var j=this.series.chart.area,T=j.axisCore.getDividerY(),F=j.axisCore.scrollRangeX*j.axisCore.scrollDpiX,D=j.axisCore.scrollRangeY*j.axisCore.scrollDpiY-T,I=new l(0,T,F,D);if(e.pushClip(I),t.StiNullableDrawing.drawCurve(e,k,this.points,f,v.isAnimation),y>=2&&p){var B=.5*e.options.zoom;e.pushTranslateTransform(-B,-B);var R=new i(n.light(m.lineColorNegative,70),y);R.penStyle=d,t.StiNullableDrawing.drawCurve(e,R,this.points,f,v.isAnimation),e.popTransform()}e.popClip()}e.popSmoothingMode()},u}(t.StiBaseLineSeriesGeom);t.StiSplineSeriesGeom=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Context.StiCurveSegmentGeom,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i){return e.call(this,t,r,i)||this}return __extends(s,e),s.prototype.contains=function(e,r){var i=this.series.chart.area,n=i.axisCore.getDividerY();if(this.invisible)return!1;for(var a=0;a<this.points.length-1;a++){var s=this.points[a],l=this.points[a+1];if(null==s||null==l)continue;var u=new o(l.x,n),c=new o(s.x,n);if(t.StiPointHelper.isPointInPolygon(new o(e,r),[s,c,u,l]))return!0}return!1},s.prototype.draw=function(e){for(var o=this.series,s=this.series.chart,l=this.series.chart.area,u=l.axisCore.getDividerY(),c=t.StiNullableDrawing.getPointsList(this.points),h=0,p=c;h<p.length;h++){var f=p[h],m=[];if(m.add(new i(f[0].x,u,f[0].x,f[0].y)),m.add(new n(f,o.tension)),m.add(new i(f[f.length-1].x,f[f.length-1].y,f[f.length-1].x,u)),null!=o.brush&&(s.isAnimation?e.fillDrawAnimationPath(o.brush,null,m,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(o.brush,m,r.getBoundsState)),o.allowApplyBrushNegative&&null!=o.brushNegative){var S=l.axisCore.scrollRangeX*l.axisCore.scrollDpiX,g=l.axisCore.scrollRangeY*l.axisCore.scrollDpiY-u,d=new a(0,u,S,g);e.pushClip(d),s.isAnimation?e.fillDrawAnimationPath(o.brushNegative,null,m,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(o.brushNegative,m,r.getBoundsState),e.popClip()}(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),m,r.getBoundsState)}},s}(t.StiSplineSeriesGeom);t.StiSplineAreaSeriesGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenLineCap,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.Base.Drawing.StiSolidBrush,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=e.System.Drawing.Rectangle,u=function(e){function u(t,r,i){return e.call(this,t,r,i)||this}return __extends(u,e),u.prototype.getConvertedPoints=function(e){for(var t=this.series,r=[],i=t.chart.area.xAxis.info.dpi/2,n=0;n<e.length-1;n++){var o=e[n],a=e[n+1];null!=o&&null!=a?(t.pointAtCenter&&(o=new s(o.x-i,o.y),a=new s(a.x-i,a.y)),r.add(o),r.add(new s(a.x,o.y))):(r.add(null),r.add(null))}var l=e[e.length-1];return null!=l?t.pointAtCenter?(l=new s(l.x-i,l.y),r.add(l),l=new s(l.x+2*i,l.y),r.add(l)):r.add(l):r.add(null),r.toArray()},u.prototype.contains=function(e,t){if(this.invisible)return!1;for(var r=this.getConvertedPoints(this.points),i=0,n=0,o=r;n<o.length;n++){var a=o[n];if(this.points.length<=i+1)continue;var s=r[i+1];if(null==a||null==s)continue;var u=l.empty;if(s.x>a.x?(u=new l(a.x,a.y,s.x-a.x,1),u.inflate(0,5)):s.y>a.y?(u=new l(a.x,a.y,1,s.y-a.y),u.inflate(5,0)):(u=new l(s.x,s.y,1,a.y-s.y),u.inflate(5,0)),u.contains(e,t))return!0;if(++i==r.length-1)break}return!1},u.prototype.draw=function(e){var u=this.series;e.pushSmoothingModeToAntiAlias();var c=u.lineStyle,h=u.lineWidth*e.options.zoom,p=new i(u.lineColor,h);p.penStyle=c;for(var f=t.StiNullableDrawing.getNullablePointsList(this.points),m=this.series.chart,S=0,g=f;S<g.length;S++){var d=g[S],y=this.getConvertedPoints(d);if(u.showShadow){var b=new i(a.fromArgb(50,0,0,0),h+.5*e.options.zoom);if(b.penStyle=c,e.pushTranslateTransform(h,h),t.StiNullableDrawing.drawLines(e,b,y,m.isAnimation),u.lineMarker.visible){var v=new o(a.fromArgb(50,0,0,0));u.lineMarker.core.drawLines(e,y,e.options.zoom,v,null,u.lineMarker.type,u.lineMarker.step,u.lineMarker.size,u.lineMarker.angle)}e.popTransform()}if(this.series.core.isMouseOver){for(var C=u.lineWidth,w=e.options.zoom,x=11+C,_=0,A=this.points;_<A.length;_++){var L=A[_];if(null==L)continue;var O=new l(L.x-x/2*w,L.y-x/2*w,x*w,x*w);e.fillEllipse2(t.StiMouseOverHelper.getLineMouseOverColor(),O)}var P=new i(t.StiMouseOverHelper.getLineMouseOverColor(),(4+C)*e.options.zoom);P.startCap=r.Round,P.endCap=r.Round,t.StiNullableDrawing.drawLines(e,P,y,m.isAnimation)}var B=this.series.chart.area,R=B.axisCore.getDividerY();if(u.allowApplyColorNegative){var k=new i(u.lineColorNegative,h);k.penStyle=c;for(var j=[],T=[],F=0;F<y.length;F++){var L=y[F],D=F!=y.length-1?y[F+1]:null;if(L.y>R){if(j.add(L),null==D||D.y<=R){this.intersectionAxis(L,D,j,T,R);var I=Array.create(s,j.count,!0);if(j.copyTo(I),t.StiNullableDrawing.drawLines(e,k,I,m.isAnimation),h>=2&&u.lighting){var N=.5*e.options.zoom;e.pushTranslateTransform(-N,-N);var M=new i(n.light(u.lineColorNegative,70),h);M.penStyle=c,t.StiNullableDrawing.drawLines(e,M,I,m.isAnimation),e.popTransform()}j.clear()}}else if(T.add(L),null==D||D.y>R){this.intersectionAxis(L,D,T,j,R);var I=Array.create(s,T.count,!0);if(T.copyTo(I),t.StiNullableDrawing.drawLines(e,p,I,m.isAnimation),h>=2&&u.lighting){var N=.5*e.options.zoom;e.pushTranslateTransform(-N,-N);var M=new i(n.light(u.lineColor,70),h);M.penStyle=c,t.StiNullableDrawing.drawLines(e,M,I,m.isAnimation),e.popTransform()}T.clear()}}}else if(t.StiNullableDrawing.drawLines(e,p,y,m.isAnimation),h>=2&&u.lighting){var N=.5*e.options.zoom;e.pushTranslateTransform(-N,-N);var M=new i(n.light(u.lineColor,70),1);M.penStyle=c,t.StiNullableDrawing.drawLines(e,M,y,m.isAnimation),e.popTransform()}if(u.lineMarker.visible){var E=new i(u.lineMarker.borderColor);u.lineMarker.core.drawLines(e,y,e.options.zoom,u.lineMarker.brush,E,u.lineMarker.type,u.lineMarker.step,u.lineMarker.size,u.lineMarker.angle)}}e.popSmoothingMode()},u.prototype.intersectionAxis=function(e,t,r,i,n){if(null!=t){var o=new s(e.x,n);r.add(o),i.add(o)}},u}(t.StiBaseLineSeriesGeom);t.StiSteppedLineSeriesGeom=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.Base.Context.StiLineSegmentGeom,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i){return e.call(this,t,r,i)||this}return __extends(s,e),s.prototype.contains=function(e,t){var r=this.series.chart.area,i=r.axisCore.getDividerY();if(this.invisible)return!1;for(var n=0,o=0,s=this.points;o<s.length;o++){var l=s[o];if(this.points.length<=n+1)continue;var u=this.points[n+1];if(null==l||null==u)continue;if((i>l.y?new a(l.x,l.y,u.x-l.x,i-l.y):new a(l.x,i,u.x-l.x,l.y-i)).contains(e,t))return!0;if(++n==this.points.length-1)break}return!1},s.prototype.draw=function(e){for(var s=this.series,l=this.series.chart.area,u=l.axisCore.getDividerY(),c=[],h=this.series.chart.area.xAxis.info.dpi/2,p=0;p<this.points.length-1;p++){var f=this.points[p],m=this.points[p+1];null!=f&&null!=m?(s.pointAtCenter&&(f=new o(f.x-h,f.y),m=new o(m.x-h,m.y)),c.add(f),c.add(new o(m.x,f.y))):(c.add(null),c.add(null))}var S=this.points[this.points.length-1];null!=S?s.pointAtCenter?(S=new o(S.x-h,S.y),c.add(S),S=new o(S.x+2*h,S.y),c.add(S)):c.add(S):c.add(null);for(var g=c.toArray(),d=t.StiNullableDrawing.getPointsList(g),y=this.series.chart,b=0,v=d;b<v.length;b++){var C=v[b],w=[];if(w.add(new n(C[0].x,u,C[0].x,C[0].y)),w.add(new i(C)),w.add(new n(C[C.length-1].x,C[C.length-1].y,C[C.length-1].x,u)),null!=s.brush&&(y.isAnimation?e.fillDrawAnimationPath(s.brush,null,w,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(s.brush,w,r.getBoundsState)),s.allowApplyBrushNegative&&null!=s.brushNegative)if(y.isAnimation)e.fillDrawAnimationPath(s.brushNegative,null,w,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null);else{var x=l.axisCore.scrollRangeX*l.axisCore.scrollDpiX,_=l.axisCore.scrollRangeY*l.axisCore.scrollDpiY-u,A=new a(0,u,x,_);e.pushClip(A),e.fillPath(s.brushNegative,w,r.getBoundsState),e.popClip()}(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),w,r.getBoundsState)}},s}(t.StiSteppedLineSeriesGeom);t.StiSteppedAreaSeriesGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenAlignment,i=e.Base.Context.StiPathGeom,n=e.Base.Context.StiPenGeom,o=e.System.TimeSpan,a=e.System.Drawing.Point,s=function(e){function s(t,r,i,n,o,a,s,l,u,c,h,p,f,m,S,g,d){var y=e.call(this,t,r,i,n,o)||this;return y._path=a,y._pathLight=s,y._pathDark=l,y._borderColor=u,y._brush=c,y._brushLight=h,y._brushDark=p,y._startAngle=f,y._endAngle=m,y._radiusFrom=S,y._radiusTo=g,y._beginTime=d,y}return __extends(s,e),Object.defineProperty(s.prototype,"path",{get:function(){return this._path},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"pathLight",{get:function(){return this._pathLight},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"pathDark",{get:function(){return this._pathDark},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"brush",{get:function(){return this._brush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"brushLight",{get:function(){return this._brushLight},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"brushDark",{get:function(){return this._brushDark},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startAngle",{get:function(){return this._startAngle},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"endAngle",{get:function(){return this._endAngle},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"radiusFrom",{get:function(){return this._radiusFrom},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"radiusTo",{get:function(){return this._radiusTo},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),s.prototype.contains=function(e,t){if(this.invisible)return!1;var r=new a(this.clientRectangle.x+this.clientRectangle.width/2,this.clientRectangle.y+this.clientRectangle.height/2),i=e-r.x,n=t-r.y,o=Math.sqrt(i*i+n*n);if(o<this.radiusTo||o>this.radiusFrom)return!1;var s=180*Math.atan2(n,i)/Math.PI;return s<0&&(s+=360),s>=this.startAngle&&s<=this.endAngle},s.prototype.draw=function(e){var a=this.clientRectangle.clone(),s=new n(this.borderColor);s.alignment=r.Inset,this.series.chart.isAnimation?e.fillDrawAnimationPath(this.brush,s,this.path,a,o.fromSeconds(1),this.beginTime,this):(e.pushSmoothingModeToAntiAlias(),null!=this.path&&(e.fillPath(this.brush,this.path,a),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),this.path,a)),null!=this.pathLight&&e.fillPath(this.brushLight,this.pathLight,a),null!=this.pathDark&&e.fillPath(this.brushDark,this.pathDark,a),e.drawPath(s,this.path,i.getBoundsState),e.popSmoothingMode())},s}(t.StiSeriesElementGeom);t.StiDoughnutSeriesElementGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(e,r,i,n,o,a,s,l,u){var c=t.call(this,i)||this;return c._areaGeom=e,c._series=r,c._open=n,c._close=o,c._high=a,c._low=s,c._positionX=l,c._index=u,c}return __extends(r,t),r.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=this.series.interaction.drillDownEnabled);var t=this.getValueIndex();e.interactionToolTip=this.getToolTip(t),e.interactionHyperlink=this.getHyperlink(t)},r.prototype.invokeClick=function(e){var t=this.getValueIndex();null!=this.series.hyperlinks&&t<this.series.hyperlinks.length&&(e.interactionHyperlink=this.series.hyperlinks[t]),this.series.interaction.drillDownEnabled&&(e.seriesInteractionData=this.interaction,this.isMouseOver=!1,e.updateContext=this.series.interaction.drillDownEnabled)},r.prototype.getValueIndex=function(){var t=this.index;return this.series.chart.area.sti_is(e.IStiAxisArea)&&this.series.chart.area.reverseHor&&(t=this.series.arguments.length-t-1),t},r.prototype.getHyperlink=function(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null},r.prototype.getToolTip=function(e){return null!=this.series.toolTips&&e<this.series.toolTips.length?this.series.toolTips[e]:null},Object.defineProperty(r.prototype,"allowMouseOver",{get:function(){var e=this.getValueIndex();return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length||null!=this.series.toolTips&&e<this.series.toolTips.length||this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeriesElements},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isMouseOver",{get:function(){return this.series.core.getIsMouseOverSeriesElement(this.index)},set:function(e){this.series.core.setIsMouseOverSeriesElement(this.index,e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"interaction",{get:function(){return this._interaction},set:function(e){this._interaction=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"open",{get:function(){return this._open},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"close",{get:function(){return this._close},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"high",{get:function(){return this._high},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"low",{get:function(){return this._low},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"positionX",{get:function(){return this._positionX},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"areaGeom",{get:function(){return this._areaGeom},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),r.prototype.draw=function(e){},r}(e.StiCellGeom);e.StiFinancialSeriesElementGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Context.StiCloseFigureSegmentGeom,o=e.Base.StiAnimationType,a=e.System.Drawing.Color,s=e.System.Drawing.Point,l=e.System.Drawing.Rectangle,u=function(e){function u(t,r,i,n,o,a,s,l,u,c,h,p){var f=e.call(this,t,r,i,n,o,a,s,l,u)||this;return f._brush=c,f._borderColor=h,f._beginTime=p,f}return __extends(u,e),Object.defineProperty(u.prototype,"brush",{get:function(){return this._brush},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),u.prototype.draw=function(e){var u=this.areaGeom.area,c=this.series,h=c.borderWidth*e.options.zoom,p=u.xAxis.info.dpi/2,f=this.open,m=this.close,S=this.high,g=this.low,d=this.positionX,y=new r(this._borderColor,h);if(m==f&&(f-=1),this.series.chart.isAnimation){var b=t.StiChartHelper.globalDurationElement,v=[new s(d,S),new s(d,f)],C=[new s(d,m),new s(d,g)],w=[],x=d-p/2,_=f,A=x+p,L=_+m-f;if(w.add(new i(x,_,A,_)),w.add(new i(A,_,A,L)),w.add(new i(A,L,x,L)),w.add(new i(x,L,x,_)),w.add(new n),c.showShadow){var O=h+.5*e.options.zoom,P=new r(a.fromArgb(50,0,0,0),O),B=[new s(d+O/2,S+O/2),new s(d+O/2,f+O/2)],R=[new s(d+O/2,m+O/2),new s(d+O/2,g+O/2)];e.drawAnimationLines(P,B,b,this.beginTime,o.Opacity),e.drawAnimationLines(P,R,b,this.beginTime,o.Opacity);var k=[];k.add(new i(x+O/2,_+O/2,A+O/2,_+O/2)),k.add(new i(A+O/2,_+O/2,A+O/2,L+O/2)),k.add(new i(A+O/2,L+O/2,x+O/2,L+O/2)),k.add(new i(x+O/2,L+O/2,x+O/2,_+O/2)),k.add(new n),e.fillDrawAnimationPath(null,P,k,new l(x+O/2,_+O/2,p,m-f),b,this.beginTime,null)}e.drawAnimationLines(y,v,b,this.beginTime,o.Opacity),e.drawAnimationLines(y,C,b,this.beginTime,o.Opacity),e.fillDrawAnimationPath(this.brush,y,w,new l(x,_,p,m-f),b,this.beginTime,this)}else{if(c.showShadow){var O=h+.5*e.options.zoom,P=new r(a.fromArgb(50,0,0,0),O);e.pushTranslateTransform(h,h),e.drawLine(P,d,m+O/2,d,g+O/2),e.drawLine(P,d,S,d,f-O/2),e.drawRectangle2(P,d-p/2,f,p,m-f),e.popTransform()}e.drawLine(y,d,S,d,f),e.drawLine(y,d,m,d,g),e.fillRectangle2(this.brush,d-p/2,f,p,m-f),e.drawRectangle2(y,d-p/2,f,p,m-f)}},u}(t.StiFinancialSeriesElementGeom);t.StiCandlestickSeriesElementGeom=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.StiAnimationType,n=e.System.Drawing.Color,o=e.System.Drawing.Point,a=function(e){function a(t,r,i,n,o,a,s,l,u,c,h){var p=e.call(this,t,r,i,n,o,a,s,l,u)||this;return p._color=c,p._beginTime=h,p}return __extends(a,e),Object.defineProperty(a.prototype,"color",{get:function(){return this._color},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),a.prototype.draw=function(e){var a=this.areaGeom.area,s=this.series,l=s.lineWidth*e.options.zoom,u=a.xAxis.info.dpi/3,c=new r(this.color,l);if(c.penStyle=s.lineStyle,this.series.chart.isAnimation){var h=t.StiChartHelper.globalDurationElement;if(s.showShadow){var p=l+.5*e.options.zoom,f=new r(n.fromArgb(50,0,0,0),p);f.penStyle=s.lineStyle;var m=[new o(this.positionX,this.high),new o(this.positionX,this.low)],S=[new o(this.positionX-u,this.open),new o(this.positionX-p/2,this.open)],g=[new o(this.positionX+u,this.close),new o(this.positionX+p/2,this.close)];e.drawAnimationLines(f,m,h,this.beginTime,i.Opacity),e.drawAnimationLines(f,S,h,this.beginTime,i.Opacity),e.drawAnimationLines(f,g,h,this.beginTime,i.Opacity)}var d=[new o(this.positionX,this.high),new o(this.positionX,this.low)],y=[new o(this.positionX-u,this.open),new o(this.positionX,this.open)],b=[new o(this.positionX+u,this.close),new o(this.positionX,this.close)];e.drawAnimationLines(c,d,h,this.beginTime,i.Opacity),e.drawAnimationLines(c,y,h,this.beginTime,i.Opacity),e.drawAnimationLines(c,b,h,this.beginTime,i.Opacity)}else{if(s.showShadow){var p=l+.5*e.options.zoom,f=new r(n.fromArgb(50,0,0,0),p);f.penStyle=s.lineStyle,e.pushTranslateTransform(l,l),e.drawLine(f,this.positionX,this.high,this.positionX,this.low),e.drawLine(f,this.positionX-u,this.open,this.positionX-p/2,this.open),e.drawLine(f,this.positionX+u,this.close,this.positionX+p/2,this.close),e.popTransform()}e.drawLine(c,this.positionX,this.high,this.positionX,this.low),e.drawLine(c,this.positionX-u,this.open,this.positionX,this.open),e.drawLine(c,this.positionX+u,this.close,this.positionX,this.close)}},a}(t.StiFinancialSeriesElementGeom);t.StiStockSeriesElementGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenAlignment,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.TimeSpan,a=e.System.Drawing.Color,s=function(e){function s(t,r,i,n,o,a,s,l,u){var c=e.call(this,t,r,i,n,o)||this;return c._path=l,c._borderColor=s,c._brush=a,c._beginTime=u,c}return __extends(s,e),Object.defineProperty(s.prototype,"path",{get:function(){return this._path},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"brush",{get:function(){return this._brush},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),s.prototype.draw=function(e){var s=this.clientRectangle.clone(),l=new i(n.dark(this.borderColor,10));l.alignment=r.Inset,this.series.chart.isAnimation?e.drawAnimationPathElement(this.brush,l,this.path,s,o.fromSeconds(1),this.beginTime,this):(e.pushSmoothingModeToAntiAlias(),this.series.showShadow&&(e.pushTranslateTransform(4,4),e.fillPath(a.fromArgb(50,100,100,100),this.path,s),e.popTransform()),e.fillPath(this.brush,this.path,s),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),this.path,s),a.transparent.stiEquals(this.borderColor)||e.drawPath(l,this.path,null),e.popSmoothingMode())},s}(t.StiSeriesElementGeom);t.StiFunnelSeriesElementGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiShadowSides,n=function(e){function n(t,r,i,n,o,a){var s=e.call(this,t,r,i,n,o)||this;return s._beginTime=a,s}return __extends(n,e),Object.defineProperty(n.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),n.prototype.draw=function(e){var n=this.series,o=this.clientRectangle.clone(),a=this.series.chart,s=n.processSeriesBrushes(this.index,n.brush);if(a.isAnimation){var l=new r(n.borderColor),u=t.StiChartHelper.globalDurationElement,c=!(this.value>0);e.drawAnimationBar(s,l,o,u,this.beginTime,c,this)}else{n.showShadow&&o.width>4&&o.height>4&&e.drawCachedShadow(o,i.All,e.options.isPrinting);var l=new r(n.borderColor);e.fillRectangle2(s,o.x,o.y,o.width,o.height),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillRectangle2(t.StiMouseOverHelper.getMouseOverColor(),o.x,o.y,o.width,o.height),e.drawRectangle2(l,o.x,o.y,o.width,o.height)}},n}(t.StiSeriesElementGeom);t.StiGanttSeriesElementGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.StringTrimming,i=e.System.Drawing.StringFormatFlags,n=e.System.Drawing.StringAlignment,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=e.Base.Context.StiFontGeom,l=e.Report.StiFontIconsHelper,u=function(t){function u(e,r,i,n,o,a,s,l,u,c){var h=t.call(this,e,r,i,o,u)||this;return h._icon=a,h._drawRectangles=s,h._clipRectangles=l,h._seriesBrush=n,h._animation=c,h}return __extends(u,t),Object.defineProperty(u.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"drawRectangles",{get:function(){return this._drawRectangles},set:function(e){this._drawRectangles=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"clipRectangles",{get:function(){return this._clipRectangles},set:function(e){this._clipRectangles=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"seriesBrush",{get:function(){return this._seriesBrush},set:function(e){this._seriesBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"animation",{get:function(){return this._animation},set:function(e){this._animation=e},enumerable:!0,configurable:!0}),u.prototype.draw=function(r){var i=this.series.chart,n=this.clientRectangle,u=this.series.core.getSingleSize(r);t.prototype.draw.call(this,r);for(var c=new s("Stimulsoft",15*r.options.zoom,e.System.Drawing.FontStyle.Regular,e.System.Drawing.GraphicsUnit.Pixel),h=0;h<this.drawRectangles.count;h++){var p=this.drawRectangles[h],f=this.clipRectangles[h],m=!0,S=new o(p.x,p.y);r.pushClip(f);while(m){var g=new a(S.x+r.options.zoom,S.y+r.options.zoom,u.width,u.height);r.drawString(l.getContent(this.icon),c,this.seriesBrush,g,this.getStringFormatGeom(r)),S=new o(S.x+u.width,S.y),S.x>=p.right&&(m=!1)}r.popClip()}},u.prototype.getStringFormatGeom=function(e){var t=e.getGenericStringFormat();return t.trimming=r.None,t.formatFlags=i.MeasureTrailingSpaces|i.NoWrap,t.alignment=n.Center,t.lineAlignment=n.Center,t},u}(t.StiSeriesElementGeom);t.StiPictorialSeriesElementGeom=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenAlignment,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.TimeSpan,a=e.Base.Drawing.StiSolidBrush,s=e.System.Drawing.Color,l=e.System.Drawing.Point,u=function(e){function u(t,r,i,n,o,a,s,l,u,c,h,p,f){var m=e.call(this,t,r,i,n,o)||this;return m._path=a,m._pathLight=s,m._borderColor=l,m._brush=u,m._startAngle=c,m._endAngle=h,m._radius=p,m._beginTime=f,m}return __extends(u,e),Object.defineProperty(u.prototype,"path",{get:function(){return this._path},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"pathLight",{get:function(){return this._pathLight},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brush",{get:function(){return this._brush},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"radius",{get:function(){return this._radius},set:function(e){this._radius=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),u.prototype.contains=function(e,t){if(this.invisible)return!1;var r=new l(this.clientRectangle.x+this.clientRectangle.width/2,this.clientRectangle.y+this.clientRectangle.height/2),i=e-r.x,n=t-r.y;if(Math.sqrt(i*i+n*n)>=this.radius)return!1;var o=180*Math.atan2(n,i)/Math.PI;return o<0&&(o+=360),o>=this.startAngle&&o<=this.endAngle},u.prototype.draw=function(e){var l=this.clientRectangle.clone(),u=new i(n.dark(this.borderColor,10));if(u.alignment=r.Inset,this.series.chart.isAnimation){if(e.drawAnimationPathElement(this.brush,u,this.path,l,o.fromSeconds(1),this.beginTime,this),null!=this.pathLight){var c=new a(s.fromArgb(30,s.black));e.drawAnimationPathElement(c,null,this.pathLight,l,o.fromSeconds(1),this.beginTime,null)}}else{if(e.pushSmoothingModeToAntiAlias(),e.fillPath(this.brush,this.path,l),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),this.path,l),null!=this.pathLight){var c=new a(s.fromArgb(30,s.black));e.fillPath(c,this.pathLight,l)}s.transparent.stiEquals(this.borderColor)||e.drawPath(u,this.path,null),e.popSmoothingMode()}},u}(t.StiSeriesElementGeom);t.StiPieSeriesElementGeom=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=function(e){function t(t,r,i,n){var o=e.call(this,r)||this;return o._series=t,o._brush=i,o._borderColor=n,o}return __extends(t,e),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this._brush},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this._borderColor},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone(),i=new r(this.borderColor);e.fillEllipse2(this.brush,t),e.drawEllipse2(i,t)},t}(t.StiCellGeom);t.StiPieSeriesFullElementGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t,r,i,n,o,a){var s=e.call(this,r)||this;return s._series=t,s._shadowContext=n,s._radius=i,s._duration=o,s._beginTime=a,s._isAnimation=t.chart.isAnimation,s}return __extends(t,e),Object.defineProperty(t.prototype,"invisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadowContext",{get:function(){return this._shadowContext},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this._isAnimation},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone();this.isAnimation?e.drawShadowRect2(t,t.height/2,t.width/2,Math.trunc(this.radius),this.duration,this.beginTime):e.drawShadow(this.shadowContext,t,this.radius)},t}(e.StiCellGeom);e.StiPieSeriesShadowElementGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.System.Drawing.Point,o=e.System.Drawing.Rectangle,a=function(e){function a(t,r,i){var n=e.call(this,o.empty)||this;return n._series=t,n._points=r,n._centerPoint=i,n}return __extends(a,e),a.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0)},a.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},Object.defineProperty(a.prototype,"allowMouseOver",{get:function(){return this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeries},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isMouseOver",{get:function(){if(null==this.series)return!1;return this.series.core.isMouseOver},set:function(e){null!=this.series&&(this.series.core.isMouseOver=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"points",{get:function(){return this._points},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"centerPoint",{get:function(){return this._centerPoint},enumerable:!0,configurable:!0}),a.prototype.contains=function(e,r){if(this.invisible)return!1;for(var i=this.series.chart.area,o=i.core,a=0;a<this.points.length;a++){var s=this.points[a],l=a==this.points.length-1?this.points[0]:this.points[a+1],u=o.centerPoint;if(null==s||null==l)continue;if(t.StiPointHelper.isPointInTriangle(new n(e,r),s,u,l))return!0}return!1},a.prototype.draw=function(e){for(var n=this.series,a=[],s=0,l=0,u=this.points;l<u.length;l++){var c=u[l],h=c,p=s<this.points.length-1?this.points[s+1]:this.points[0];null==h&&(h=this.centerPoint),null==p&&(p=this.centerPoint),a.add(new i(h.x,h.y,p.x,p.y)),s++}if(e.pushSmoothingModeToAntiAlias(),null!=n.brush){this.series.chart.isAnimation?e.fillDrawAnimationPath(n.brush,null,a,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(n.brush,a,o.empty)}(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),a,o.empty),e.popSmoothingMode()},a}(t.StiCellGeom);t.StiRadarAreaSeriesGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(r,i,n,o,a,s){var l=t.call(this,r,i,n,o,e.StiMarkerCoreXF.getMarkerRect(a,o.marker.size,s))||this;return l._point=a,l}return __extends(r,t),r.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0);var t=this.getValueIndex();e.interactionToolTip=this.getToolTip3(t),e.interactionHyperlink=this.getHyperlink3(t)},r.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},r.prototype.invokeClick=function(e){var t=this.getValueIndex();null!=this.series.hyperlinks&&t<this.series.hyperlinks.length&&(e.interactionHyperlink=this.series.hyperlinks[t]),this.series.interaction.drillDownEnabled&&(e.seriesInteractionData=this.interaction,this.isMouseOver=!1,e.updateContext=!0)},r.prototype.getValueIndex=function(){var t=this.index;return this.series.sti_is(e.IStiClusteredBarSeries)||this.series.sti_is(e.IStiStackedBarSeries)||this.series.sti_is(e.IStiFullStackedBarSeries)?this.series.chart.area.sti_is(e.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(t=this.series.values.length-t-1):this.series.chart.area.sti_is(e.IStiAxisArea)&&this.series.chart.area.reverseHor&&(t=this.series.values.length-t-1),t},r.prototype.getHyperlink3=function(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null},r.prototype.getToolTip3=function(e){return null!=this.series.toolTips&&e<this.series.toolTips.length?this.series.toolTips[e]:null},Object.defineProperty(r.prototype,"point",{get:function(){return this._point},enumerable:!0,configurable:!0}),r.prototype.contains=function(e,t){if(this.invisible)return!1;return this.getMouseOverRect().contains(e,t)},r.prototype.getMouseOverRect=function(){var e=this.clientRectangle.clone();return e.inflate(e.width/2,e.height/2),e},r.prototype.draw=function(t){var r=this.series;if(null!=r.marker&&r.marker.visible){t.pushSmoothingModeToAntiAlias();var i=t.options.zoom;this.isMouseOver&&t.fillEllipse2(e.StiMouseOverHelper.getLineMouseOverColor(),this.getMouseOverRect());var n=this.series.chart;r.marker.core.draw(t,r.marker,this.point,i,r.showShadow,this.isMouseOver,n.isAnimation,this),t.popSmoothingMode()}},r}(e.StiSeriesElementGeom);e.StiRadarPointSeriesElementGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.Base.Drawing.StiShadowSides,n=e.System.TimeSpan,o=function(e){function o(t,r,i,n,o,a){var s=e.call(this,t,r,i,n,o)||this;return s._beginTime=a,s}return __extends(o,e),Object.defineProperty(o.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),o.prototype.draw=function(e){var o=this.series,a=this.clientRectangle.clone();if(this.series.chart.isAnimation){var s=new r(o.borderColor),l=!(this.value<0),u=t.StiChartHelper.globalDurationElement;this.series.showShadow&&e.drawShadowRect(a,5,u,new n(this.beginTime.ticks+u.ticks)),this.series.showShadow&&e.drawShadowRect(a,5,u,new n(this.beginTime.ticks+u.ticks)),e.drawAnimationColumn(o.brush,s,a,u,this.beginTime,l,this)}else{o.showShadow&&a.width>4&&a.height>4&&e.drawCachedShadow(a,i.All,e.options.isPrinting);var s=new r(o.borderColor);e.fillRectangle2(o.brush,a.x,a.y,a.width,a.height),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillRectangle2(t.StiMouseOverHelper.getMouseOverColor(),a.x,a.y,a.width,a.height),e.drawRectangle2(s,a.x,a.y,a.width,a.height)}},o}(t.StiSeriesElementGeom);t.StiRangeBarElementGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.System.Drawing.Point,o=function(e){function o(t,r,i,n){var o=e.call(this,t,r,n)||this;return o._pointsEnd=i,o}return __extends(o,e),Object.defineProperty(o.prototype,"pointsEnd",{get:function(){return this._pointsEnd},set:function(e){this._pointsEnd=e},enumerable:!0,configurable:!0}),o.prototype.draw=function(e){var r=this.series,i=t.StiNullableDrawing.getPointsList(this.points),n=t.StiNullableDrawing.getPointsList(this.pointsEnd);if(i.count<1||n.count<1)return;for(var o=i[0],a=n[0],s=Math.min(o.length,a.length),l=[],u=[],c=0;c<s;c++){var h=o[c],p=a[c],f=null,m=null;c!=s-1&&(f=o[c+1],m=a[c+1]);var S=null;(null!=f||this.intersection(h,p,f,m))&&(S=this.getPointCross2(h,p,f,m)),l.add(h),u.add(p),null!=S?(l.add(S),u.add(S),this.fillPath(e,this.getBrush(r,h,p),l,u),l.clear(),u.clear(),l.add(S),u.add(S)):null==f&&this.fillPath(e,this.getBrush(r,h,p),l,u)}},o.prototype.getBrush=function(e,t,r){var i=e.brush;return e.allowApplyBrushNegative&&(i=t.y<r.y?e.brushNegative:e.brush),i},o.prototype.fillPath=function(e,o,a,s){var l=[],u=Array.create(n,a.count+s.count+2);u[0]=s[0],a.copyTo(u,1),u[a.count+1]=s[s.count-1],s.copyTo(u,a.count+2),l.add(new i(u)),this.series.chart.isAnimation?e.fillDrawAnimationPath(o,null,l,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(o,l,r.getBoundsState),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),l,r.getBoundsState)},o.prototype.intersection=function(e,t,r,i){if(null==r)return!1;return e.y>t.y&&r.y<i.y||e.y<t.y&&r.y>i.y||r.y==i.y},o.prototype.getPointCross2=function(e,t,r,i){if(r==i)return r;var o=e.x,a=e.y,s=r.x,l=r.y,u=t.x,c=t.y,h=i.x,p=i.y,f=-((o*l-s*a)*(h-u)-(u*p-h*c)*(s-o))/((a-l)*(h-u)-(c-p)*(s-o)),m=((c-p)*-f-(u*p-h*c))/(h-u);return f>o&&f<s?new n(f,m):null},o}(t.StiLineSeriesGeom);t.StiRangeSeriesGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Context.StiCurveSegmentGeom,o=e.System.Drawing.Point,a=function(e){function a(t,r,i,n){var o=e.call(this,t,r,n)||this;return o._pointsEnd=i,o}return __extends(a,e),Object.defineProperty(a.prototype,"pointsEnd",{get:function(){return this._pointsEnd},set:function(e){this._pointsEnd=e},enumerable:!0,configurable:!0}),a.prototype.draw=function(e){var r=t.StiNullableDrawing.getPointsList(this.points),i=t.StiNullableDrawing.getPointsList(this.pointsEnd);if(r.count<1||i.count<1)return;var n=r[0],o=i[0];this.fillPath(e,n,o)},a.prototype.fillPath=function(e,a,s){for(var l=this.series,u=l.brush,c=[],h=Array.create(o,s.length,!0),p=s.length,f=0;f<p;f++)h[f]=s[p-f-1];c.add(new i(s[0].x,s[0].y,a[0].x,a[0].y)),c.add(new n(a,l.tension)),c.add(new i(a[a.length-1].x,a[a.length-1].y,s[s.length-1].x,s[s.length-1].y)),c.add(new n(h,l.tension)),this.series.chart.isAnimation?e.fillDrawAnimationPath(u,null,c,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(u,c,r.getBoundsState),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),c,r.getBoundsState)},a}(t.StiSplineSeriesGeom);t.StiSplineRangeSeriesGeom=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.System.Drawing.Point,o=function(e){function o(t,r,i,n){var o=e.call(this,t,r,n)||this;return o._pointsEnd=i,o}return __extends(o,e),Object.defineProperty(o.prototype,"pointsEnd",{get:function(){return this._pointsEnd},set:function(e){this._pointsEnd=e},enumerable:!0,configurable:!0}),o.prototype.draw=function(e){var r=this.series,i=t.StiNullableDrawing.getPointsList(this.getConvertedPoints(this.points)),n=t.StiNullableDrawing.getPointsList(this.getConvertedPoints(this.pointsEnd));if(i.count<1||n.count<1)return;for(var o=i[0],a=n[0],s=Math.min(o.length,a.length),l=[],u=[],c=0;c<s;c++){var h=o[c],p=a[c],f=null,m=null;c!=s-1&&(f=o[c+1],m=a[c+1]),l.add(h),u.add(p),this.intersection(h,p,f,m)?(l.add(f),u.add(m),this.fillPath(e,this.getBrush(r,h,p),l,u),l.clear(),u.clear(),l.add(f),u.add(m)):null==f&&this.fillPath(e,this.getBrush(r,h,p),l,u)}},o.prototype.getBrush=function(e,t,r){var i=e.brush;return e.allowApplyBrushNegative&&(i=t.y<r.y?e.brushNegative:e.brush),i},o.prototype.fillPath=function(e,o,a,s){var l=[],u=Array.create(n,a.count+s.count+2,!0);u[0]=s[0],a.copyTo(u,1),u[a.count+1]=s[s.count-1],s.copyTo(u,a.count+2),l.add(new i(u)),this.series.chart.isAnimation?e.fillDrawAnimationPath(o,null,l,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(o,l,r.getBoundsState),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),l,r.getBoundsState)},o.prototype.intersection=function(e,t,r,i){if(null==r)return!1;return e.y>t.y&&r.y<i.y||e.y<t.y&&r.y>i.y||r.y==i.y},o}(t.StiSteppedLineSeriesGeom);t.StiSteppedRangeSeriesGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenLineCap,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.Drawing.Color,a=e.System.Drawing.Point,s=e.System.Drawing.Rectangle,l=function(e){function l(t,r,i){return e.call(this,t,r,i)||this}return __extends(l,e),l.prototype.contains=function(e,r){if(this.invisible)return!1;for(var i=0;i<this.points.length-1;i++){var n=this.points[i],o=this.points[i+1];if(null==n||null==o)continue;if(t.StiPointHelper.isLineContainsPoint(n,o,t.StiMouseOverHelper.mouseOverLineDistance,new a(e,r)))return!0}return!1},l.prototype.draw=function(e){var a=this.series;e.pushSmoothingModeToAntiAlias();var l=a.lineStyle,u=a.lineWidth*e.options.zoom,c=new i(a.lineColor,a.lineWidth);if(c.penStyle=l,a.showShadow){var h=new i(o.fromArgb(50,0,0,0),u+.5*e.options.zoom);h.penStyle=l,e.pushTranslateTransform(u,u),t.StiNullableDrawing.drawCurve(e,h,this.points,a.tension),e.popTransform()}if(this.series.core.isMouseOver){for(var p=a.lineWidth,f=e.options.zoom,m=11+p,S=0,g=this.points;S<g.length;S++){var d=g[S];if(null==d)continue;var y=new s(d.x-m/2*f,d.y-m/2*f,m*f,m*f);e.fillEllipse2(t.StiMouseOverHelper.getLineMouseOverColor(),y)}var b=new i(t.StiMouseOverHelper.getLineMouseOverColor(),(4+p)*e.options.zoom);b.startCap=r.Round,b.endCap=r.Round,t.StiNullableDrawing.drawCurve(e,b,this.points,a.tension)}if(t.StiNullableDrawing.drawCurve(e,c,this.points,a.tension),u>=2&&a.lighting){var v=.5*e.options.zoom;e.pushTranslateTransform(-v,-v);var C=new i(n.light(a.lineColor,70),1);C.penStyle=l,t.StiNullableDrawing.drawCurve(e,C,this.points,a.tension),e.popTransform()}e.popSmoothingMode()},l}(t.StiBaseLineSeriesGeom);t.StiScatterSplineSeriesGeom=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.TimeSpan,n=e.System.Drawing.Point,o=function(e){function o(t,r,i,n,o,a,s,l){var u=e.call(this,t,r,i,a,s)||this;return u._seriesBrush=n,u._seriesBorderColor=o,u._beginTime=l,u}return __extends(o,e),Object.defineProperty(o.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),o.prototype.draw=function(e){var o=this.clientRectangle.clone(),a=new r(this.seriesBorderColor,1);if(this.series.chart.isAnimation){var s=t.StiChartHelper.globalDurationElement;this.series.showShadow&&e.drawShadowRect(o,5,s,new i(this.beginTime.ticks+s.ticks));var l=!(this.value<0);e.drawAnimationBar(this.seriesBrush,a,o,s,this.beginTime,l,this)}else{this.series.chart.style.core.fillColumn(e,o,this.seriesBrush);var u=null;(this.isMouseOver||this.series.core.isMouseOver)&&e.fillRectangle2(t.StiMouseOverHelper.getMouseOverColor(),o.x,o.y,o.width,o.height),u=this.value>0?[new n(o.right,o.y),new n(o.x,o.y),new n(o.x,o.bottom),new n(o.right,o.bottom)]:[new n(o.x,o.y),new n(o.right,o.y),new n(o.right,o.bottom),new n(o.x,o.bottom)],e.drawLines(a,u)}},o}(t.StiSeriesElementGeom);t.StiStackedBarSeriesElementGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiShadowSides,i=function(e){function i(t,r,i,n){var o=e.call(this,r)||this;return o._series=t,o._isLeftShadow=i,o._isRightShadow=n,o}return __extends(i,e),Object.defineProperty(i.prototype,"invisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isLeftShadow",{get:function(){return this._isLeftShadow},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isRightShadow",{get:function(){return this._isRightShadow},enumerable:!0,configurable:!0}),i.prototype.draw=function(e){var i=this.clientRectangle.clone();this.series.sti_is(t.IStiFullStackedBarSeries)?e.drawCachedShadow(i,r.Bottom,e.options.isPrinting):(this.isLeftShadow&&e.drawCachedShadow(i,r.Bottom|r.Left,e.options.isPrinting),this.isRightShadow&&e.drawCachedShadow(i,r.Top|r.Right|r.Edge|r.Bottom,e.options.isPrinting))},i}(t.StiCellGeom);t.StiStackedBarSeriesShadowElementGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLinesSegmentGeom,n=e.Base.Context.StiLineSegmentGeom,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i,n){var o=e.call(this,t,n,s.getClientRectangle(r,i))||this;return o._startPoints=r,o._endPoints=i,o}return __extends(s,e),s.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0)},s.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},Object.defineProperty(s.prototype,"allowMouseOver",{get:function(){return this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeries},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isMouseOver",{get:function(){if(null==this.series)return!1;return this.series.core.isMouseOver},set:function(e){null!=this.series&&(this.series.core.isMouseOver=e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startPoints",{get:function(){return this._startPoints},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"endPoints",{get:function(){return this._endPoints},enumerable:!0,configurable:!0}),s.prototype.contains=function(e,r){var i=this.series.chart.area,n=i.axisCore.getDividerY();if(this.invisible)return!1;for(var a=0;a<this.startPoints.length-1;a++){var s=this.startPoints[a],l=this.startPoints[a+1],u=this.endPoints[a],c=this.endPoints[a+1];if(null==s||null==u||null==c||null==l)continue;if(t.StiPointHelper.isPointInPolygon(new o(e,r),[s,l,c,u]))return!0}return!1},s.getClientRectangle=function(e,t){if(null==e||0==e.length||null==t||0==t.length)return a.empty;for(var r=o.empty,i=o.empty,n=0,s=e;n<s.length;n++){var l=s[n];if(null==l)continue;r==o.empty?(r=l,i=l):(r.x=Math.min(r.x,l.x),r.y=Math.min(r.y,l.y),i.x=Math.max(i.x,l.x),i.y=Math.max(i.y,l.y))}for(var u=0,c=t;u<c.length;u++){var l=c[u];if(null==l)continue;r==o.empty?(r=l,i=l):(r.x=Math.min(r.x,l.x),r.y=Math.min(r.y,l.y),i.x=Math.max(i.x,l.x),i.y=Math.max(i.y,l.y))}return new a(r.x,r.y,i.x-r.x,i.y-r.y)},s.prototype.draw=function(e){var s=this.series,l,u,c={ref:l},h={ref:u};t.StiNullableDrawing.getPointsList2(this.startPoints,this.endPoints,c,h),l=c.ref,u=h.ref;for(var p=0,f=0,m=l;f<m.length;f++){var S=m[f],g=u[p],d=[];d.add(new n(S[0].x,S[0].y,g[0].x,g[0].y)),d.add(new i(g)),d.add(new n(g[g.length-1].x,g[g.length-1].y,S[S.length-1].x,S[S.length-1].y));var y=Array.create(o,this.startPoints.length,!0),b=0,v=S.length-1;while(b<S.length)y[b]=S[v],b++,v--;if(d.add(new i(y)),null!=s.brush&&e.fillPath(s.brush,d,r.getBoundsState),s.allowApplyBrushNegative&&null!=s.brushNegative){var C=this.series.chart.area,w=C.axisCore.getDividerY(),x=C.axisCore.scrollRangeX*C.axisCore.scrollDpiX,_=C.axisCore.scrollRangeY*C.axisCore.scrollDpiY-w,A=new a(0,w,x,_);e.pushClip(A),e.fillPath(s.brushNegative,d,r.getBoundsState),e.popClip()}(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),d,r.getBoundsState),p++}},s}(t.StiSeriesGeom);t.StiStackedAreaSeriesGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Point,i=e.System.Drawing.Rectangle,n=function(e){function t(r,i,n){var o=e.call(this,r,n,t.getClientRectangle(i))||this;return o._points=i,o}return __extends(t,e),Object.defineProperty(t.prototype,"points",{get:function(){return this._points},enumerable:!0,configurable:!0}),t.getClientRectangle=function(e){if(null==e||0==e.length)return i.empty;for(var t=r.empty,n=r.empty,o=0,a=e;o<a.length;o++){var s=a[o];if(null==s)continue;t==r.empty?(t=s,n=s):(t.x=Math.min(t.x,s.x),t.y=Math.min(t.y,s.y),n.x=Math.max(n.x,s.x),n.y=Math.max(n.y,s.y))}return new i(t.x,t.y,n.x-t.x,n.y-t.y)},t.prototype.draw=function(e){},t}(t.StiSeriesGeom);t.StiStackedBaseLineSeriesGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.TimeSpan,n=e.System.Drawing.Point,o=function(e){function o(t,r,i,n,o,a,s,l){var u=e.call(this,t,r,i,a,s)||this;return u._seriesBrush=n,u._seriesBorderColor=o,u._beginTime=l,u}return __extends(o,e),Object.defineProperty(o.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"beginTime",{get:function(){return this._beginTime},enumerable:!0,configurable:!0}),o.prototype.draw=function(e){var o=this.clientRectangle.clone(),a=new r(this.seriesBorderColor,1);if(this.series.chart.isAnimation){var s=!(this.value<0),l=t.StiChartHelper.globalDurationElement;this.series.showShadow&&e.drawShadowRect(o,5,l,new i(this.beginTime.ticks+l.ticks)),e.drawAnimationColumn(this.seriesBrush,a,o,l,this.beginTime,s,this)}else{this.series.chart.style.core.fillColumn(e,o,this.seriesBrush),(this.isMouseOver||this.series.core.isMouseOver)&&e.fillRectangle2(t.StiMouseOverHelper.getMouseOverColor(),o.x,o.y,o.width,o.height);var u=null;u=this.value>0?[new n(o.x,o.bottom),new n(o.x,o.y),new n(o.right,o.y),new n(o.right,o.bottom)]:[new n(o.x,o.y),new n(o.x,o.bottom),new n(o.right,o.bottom),new n(o.right,o.y)],e.drawLines(a,u)}},o}(t.StiSeriesElementGeom);t.StiStackedColumnSeriesElementGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiShadowSides,i=function(e){function i(t,r,i,n){var o=e.call(this,r)||this;return o._series=t,o._isTopShadow=i,o._isBottomShadow=n,o}return __extends(i,e),Object.defineProperty(i.prototype,"invisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isTopShadow",{get:function(){return this._isTopShadow},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isBottomShadow",{get:function(){return this._isBottomShadow},enumerable:!0,configurable:!0}),i.prototype.draw=function(e){var i=this.clientRectangle.clone();this.series.sti_is(t.IStiFullStackedColumnSeries)?e.drawCachedShadow(i,r.Right,e.options.isPrinting):(this.isTopShadow&&e.drawCachedShadow(i,r.Top|r.Right,e.options.isPrinting),this.isBottomShadow&&e.drawCachedShadow(i,r.Right|r.Edge|r.Bottom|r.Left,e.options.isPrinting))},i}(t.StiCellGeom);t.StiStackedColumnSeriesShadowElementGeom=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenLineCap,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.Drawing.Color,a=e.System.Drawing.Point,s=e.System.Drawing.Rectangle,l=function(e){function l(t,r,i){return e.call(this,t,r,i)||this}return __extends(l,e),l.prototype.contains=function(e,r){if(this.invisible)return!1;for(var i=0;i<this.points.length-1;i++){var n=this.points[i],o=this.points[i+1];if(null==n||null==o)continue;if(t.StiPointHelper.isLineContainsPoint(n,o,t.StiMouseOverHelper.mouseOverLineDistance,new a(e,r)))return!0}return!1},l.prototype.draw=function(e){var a=this.series,l=this.series.chart;if(0==this.points.length)return;if(this.points.length>1){e.pushSmoothingModeToAntiAlias();var u=a.lineStyle,c=a.lineWidth*e.options.zoom,h=new i(a.lineColor,c);h.penStyle=u;var p=a.lighting;if(a.showShadow){var f=new i(o.fromArgb(50,0,0,0),c+.5*e.options.zoom);f.penStyle=u,e.pushTranslateTransform(c,c),t.StiNullableDrawing.drawLines(e,f,this.points,l.isAnimation),e.popTransform()}if(this.series.core.isMouseOver){for(var m=a.lineWidth,S=e.options.zoom,g=11+m,d=0,y=this.points;d<y.length;d++){var b=y[d];if(null==b)continue;var v=new s(b.x-g/2*S,b.y-g/2*S,g*S,g*S);e.fillEllipse2(t.StiMouseOverHelper.getLineMouseOverColor(),v)}var C=new i(t.StiMouseOverHelper.getLineMouseOverColor(),(4+m)*e.options.zoom);C.startCap=r.Round,C.endCap=r.Round,t.StiNullableDrawing.drawLines(e,C,this.points)}var w=this.series.lineColor;if(this.series.allowApplyColorNegative){var x=this.series.lineColorNegative,_=new i(x,c);_.penStyle=u;for(var A=this.series.chart.area,L=A.axisCore.getDividerY(),O=[],P=[],B=0;B<this.points.length;B++){var b=this.points[B],R=B!=this.points.length-1?this.points[B+1]:null;if(b.y>L){if(O.add(b),null==R||R.y<L||R.y==L&&B+2<this.points.length&&this.points[B+2].y<=L){if(null!=R){var k=this.getPointCross(b,this.points[B+1],L);O.add(k),R.y==L&&B+2<this.points.length&&this.points[B+2].y<=L&&O.add(this.points[B+2]),P.add(k)}if(this.drawLine(e,_,O),c>=2*e.options.zoom&&p){var j=.5*e.options.zoom;e.pushTranslateTransform(-j,-j);var T=new i(n.light(x,70),c);T.penStyle=u,this.drawLine(e,T,O),e.popTransform()}O.clear()}}else if(P.add(b),null==R||R.y>L){if(null!=R){var k=this.getPointCross(b,this.points[B+1],L);O.add(k),P.add(k),P.add(R)}if(this.drawLine(e,h,P),c>=2*e.options.zoom&&p){var j=.5*e.options.zoom;e.pushTranslateTransform(-j,-j);var T=new i(n.light(w,70),c);T.penStyle=u,this.drawLine(e,T,P),e.popTransform()}P.clear()}}}else if(t.StiNullableDrawing.drawLines(e,h,this.points,l.isAnimation),c>=2*e.options.zoom&&a.lighting){var j=.5*e.options.zoom;e.pushTranslateTransform(-j,-j);var T=new i(n.light(w,70),c);T.penStyle=u,t.StiNullableDrawing.drawLines(e,T,this.points,l.isAnimation),e.popTransform()}e.popSmoothingMode()}},l.prototype.getPointCross=function(e,t,r){var i=e.y,n=e.x,o=t.y,s=t.x,l=Math.tan(Math.atan((s-n)/(i-o)))*(i-r)+n;return new a(l,r)},l.prototype.drawLine=function(e,r,i){var n=this.series.chart,o=Array.create(a,i.count,!0);i.copyTo(o),t.StiNullableDrawing.drawLines(e,r,o,n.isAnimation)},l}(t.StiBaseLineSeriesGeom);t.StiStackedLineSeriesGeom=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPathGeom,i=e.Base.Context.StiLineSegmentGeom,n=e.Base.Context.StiCurveSegmentGeom,o=e.System.Drawing.Point,a=e.System.Drawing.Rectangle,s=function(e){function s(t,r,i,n){var o=e.call(this,t,n,s.getClientRectangle(r,i))||this;return o._startPoints=r,o._endPoints=i,o}return __extends(s,e),s.prototype.invokeMouseEnter=function(e){if(!this.allowMouseOver)return;this.isMouseOver||(this.isMouseOver=!0,e.updateContext=!0)},s.prototype.invokeMouseLeave=function(e){if(!this.allowMouseOver)return;this.isMouseOver&&(this.isMouseOver=!1,e.updateContext=!0)},Object.defineProperty(s.prototype,"allowMouseOver",{get:function(){return this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeries},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isMouseOver",{get:function(){if(null==this.series)return!1;return this.series.core.isMouseOver},set:function(e){null!=this.series&&(this.series.core.isMouseOver=e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"startPoints",{get:function(){return this._startPoints},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"endPoints",{get:function(){return this._endPoints},enumerable:!0,configurable:!0}),s.prototype.contains=function(e,r){var i=this.series.chart.area,n=i.axisCore.getDividerY();if(this.invisible)return!1;for(var a=0;a<this.startPoints.length-1;a++){var s=this.startPoints[a],l=this.startPoints[a+1],u=this.endPoints[a],c=this.endPoints[a+1];if(null==s||null==u||null==c||null==l)continue;if(t.StiPointHelper.isPointInPolygon(new o(e,r),[s,l,c,u]))return!0}return!1},s.getClientRectangle=function(e,t){if(null==e||0==e.length||null==t||0==t.length)return a.empty;for(var r=o.empty,i=o.empty,n=0,s=e;n<s.length;n++){var l=s[n];if(null==l)continue;r==o.empty?(r=l,i=l):(r.x=Math.min(r.x,l.x),r.y=Math.min(r.y,l.y),i.x=Math.max(i.x,l.x),i.y=Math.max(i.y,l.y))}for(var u=0,c=t;u<c.length;u++){var l=c[u];if(null==l)continue;r==o.empty?(r=l,i=l):(r.x=Math.min(r.x,l.x),r.y=Math.min(r.y,l.y),i.x=Math.max(i.x,l.x),i.y=Math.max(i.y,l.y))}return new a(r.x,r.y,i.x-r.x,i.y-r.y)},s.prototype.draw=function(e){var s=this.series,l=this.series.chart.area,u,c,h={ref:u},p={ref:c};t.StiNullableDrawing.getPointsList2(this.startPoints,this.endPoints,h,p),u=h.ref,c=p.ref;for(var f=this.series.chart,m=0,S=0,g=u;S<g.length;S++){var d=g[S],y=c[m],b=[];b.add(new i(d[0].x,d[0].y,y[0].x,y[0].y)),b.add(new n(y,s.tension)),b.add(new i(y[y.length-1].x,y[y.length-1].y,d[d.length-1].x,d[d.length-1].y));var v=Array.create(o,d.length,!0),C=0,w=d.length-1;while(C<d.length)v[C]=d[w],C++,w--;if(b.add(new n(v,s.tension)),null!=s.brush&&(f.isAnimation?e.fillDrawAnimationPath(s.brush,null,b,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(s.brush,b,r.getBoundsState)),s.allowApplyBrushNegative&&null!=s.brushNegative){var x=l.axisCore.getDividerY(),_=l.axisCore.scrollRangeX*l.axisCore.scrollDpiX,A=l.axisCore.scrollRangeY*l.axisCore.scrollDpiY-x,L=new a(0,x,_,A);e.pushClip(L),f.isAnimation?e.fillDrawAnimationPath(s.brushNegative,null,b,r.getBoundsState,t.StiChartHelper.globalDurationElement,t.StiChartHelper.globalBeginTimeElement,null):e.fillPath(s.brushNegative,b,r.getBoundsState),e.popClip()}(this.isMouseOver||this.series.core.isMouseOver)&&e.fillPath(t.StiMouseOverHelper.getMouseOverColor(),b,r.getBoundsState),m++}},s}(t.StiSeriesGeom);t.StiStackedSplineAreaSeriesGeom=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenLineCap,i=e.Base.Context.StiPenGeom,n=e.Base.Drawing.StiColorUtils,o=e.System.Drawing.Color,a=e.System.Drawing.Point,s=e.System.Drawing.Rectangle,l=function(e){function l(t,r,i){return e.call(this,t,r,i)||this}return __extends(l,e),l.prototype.contains=function(e,r){if(this.invisible)return!1;for(var i=0;i<this.points.length-1;i++){var n=this.points[i],o=this.points[i+1];if(null==n||null==o)continue;if(t.StiPointHelper.isLineContainsPoint(n,o,t.StiMouseOverHelper.mouseOverSplineDistance,new a(e,r)))return!0}return!1},l.prototype.draw=function(e){if(0==this.points.length)return;var a=this.series.chart,l=this.series;e.pushSmoothingModeToAntiAlias();var u=l.lineStyle,c=l.lineWidth*e.options.zoom,h=new i(l.lineColor,c);if(h.penStyle=u,null!=this.points&&this.points.length>1){if(l.showShadow){var p=new i(o.fromArgb(50,0,0,0),c+.5*e.options.zoom);p.penStyle=u,e.pushTranslateTransform(c,c),t.StiNullableDrawing.drawCurve(e,p,this.points,l.tension,a.isAnimation),e.popTransform()}if(this.series.core.isMouseOver){for(var f=l.lineWidth,m=e.options.zoom,S=11+f,g=0,d=this.points;g<d.length;g++){var y=d[g];if(null==y)continue;var b=new s(y.x-S/2*m,y.y-S/2*m,S*m,S*m);e.fillEllipse2(t.StiMouseOverHelper.getLineMouseOverColor(),b)}var v=new i(t.StiMouseOverHelper.getLineMouseOverColor(),(4+f)*e.options.zoom);v.startCap=r.Round,v.endCap=r.Round,t.StiNullableDrawing.drawCurve(e,v,this.points,l.tension)}if(t.StiNullableDrawing.drawCurve(e,h,this.points,l.tension,a.isAnimation),c>=2&&l.lighting){var C=.5*e.options.zoom;e.pushTranslateTransform(-C,-C);var w=new i(n.light(l.lineColor,70),c);w.penStyle=u,t.StiNullableDrawing.drawCurve(e,w,this.points,l.tension,a.isAnimation),e.popTransform()}if(l.allowApplyColorNegative){var x=new i(l.lineColorNegative,c);x.penStyle=u;var _=this.series.chart.area,A=_.axisCore.getDividerY(),L=_.axisCore.scrollRangeX*_.axisCore.scrollDpiX,O=_.axisCore.scrollRangeY*_.axisCore.scrollDpiY-A,P=new s(0,A,L,O);if(e.pushClip(P),t.StiNullableDrawing.drawCurve(e,x,this.points,l.tension,a.isAnimation),c>=2&&l.lighting){var C=.5*e.options.zoom;e.pushTranslateTransform(-C,-C);var w=new i(n.light(l.lineColorNegative,70),c);w.penStyle=u,t.StiNullableDrawing.drawCurve(e,w,this.points,l.tension,a.isAnimation),e.popTransform()}e.popClip()}}e.popSmoothingMode()},l}(t.StiBaseLineSeriesGeom);t.StiStackedSplineSeriesGeom=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.Rectangle,n=e.System.Drawing.Point,o=function(e){function o(t,r,i,n,o,a,s,l){var u=e.call(this,t,r,i,a,s)||this;return u._seriesBrush=n,u._seriesBorderColor=o,u._animation=l,u}return __extends(o,e),Object.defineProperty(o.prototype,"seriesBrush",{get:function(){return this._seriesBrush},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"seriesBorderColor",{get:function(){return this._seriesBorderColor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"animation",{get:function(){return this._animation},enumerable:!0,configurable:!0}),o.prototype.draw=function(o){var a=this.series.chart,s=this.clientRectangle.clone();if(a.isAnimation){var l=new r(this.seriesBorderColor,1);o.drawAnimationRectangle(this.seriesBrush,l,new i(s.x,s.y,s.width,s.height),this._animation.beginTime,this._animation.duration)}else{e.prototype.draw.call(this,o),this.series.chart.style.core.fillColumn(o,s,this.seriesBrush),(this.isMouseOver||this.series.core.isMouseOver)&&o.fillRectangle2(t.StiMouseOverHelper.getMouseOverColor(),s.x,s.y,s.width,s.height);var l=new r(this.seriesBorderColor,1),u=[new n(s.x,s.bottom),new n(s.x,s.y),new n(s.right,s.y),new n(s.right,s.bottom),new n(s.x,s.bottom)];o.drawLines(l,u)}},o}(t.StiSeriesElementGeom);t.StiTreemapSeriesElementGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,i=function(){function e(){}return e.getMouseOverColor=function(){return r.fromArgb(100,r.white)},e.getLineMouseOverColor=function(){return r.fromArgb(100,r.red)},e.mouseOverLineDistance=8,e.mouseOverSplineDistance=15,e}();t.StiMouseOverHelper=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=function(e){function t(t,r){var i=e.call(this,r)||this;return i._strip=t,i}return __extends(t,e),Object.defineProperty(t.prototype,"strip",{get:function(){return this._strip},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone();if(e.fillRectangle2(this.strip.stripBrush,t.x,t.y,t.width,t.height),this.strip.titleVisible){var o=new n(this.strip.titleColor),a=i.changeFontSize(this.strip.font,this.strip.font.size*e.options.zoom),s=e.getGenericStringFormat();e.drawRotatedString6(this.strip.text,a,o,t,s,r.CenterCenter,90,this.strip.antialiasing,0)}},t}(t.StiCellGeom);t.StiStripsXGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiFontGeom,n=e.Base.Drawing.StiSolidBrush,o=function(e){function t(t,r){var i=e.call(this,r)||this;return i._strip=t,i}return __extends(t,e),Object.defineProperty(t.prototype,"strip",{get:function(){return this._strip},enumerable:!0,configurable:!0}),t.prototype.draw=function(e){var t=this.clientRectangle.clone();if(e.fillRectangle2(this.strip.stripBrush,t.x,t.y,t.width,t.height),this.strip.titleVisible){var o=new n(this.strip.titleColor),a=i.changeFontSize(this.strip.font,this.strip.font.size*e.options.zoom),s=e.getGenericStringFormat();e.drawRotatedString5(this.strip.text,a,o,t,s,r.CenterCenter,0,this.strip.antialiasing)}},t}(t.StiCellGeom);t.StiStripsYGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiRotationMode,i=e.Base.Context.StiPenGeom,n=e.System.Drawing.StringAlignment,o=e.System.Drawing.StringTrimming,a=e.System.Drawing.StringFormatFlags,s=e.Base.Context.StiFontGeom,l=e.Base.Drawing.StiSolidBrush,u=e.System.Drawing.Rectangle,c=function(e){function c(t,r,n,o,a){var s=e.call(this,t)||this;return s.widthCellLegendTableChart=n,s.heightCellHeader=o,s.table=r,s.chartTable=a,s.pen=new i(a.gridLineColor),s.labelBrush=new l(a.textColor),s.labelHeaderBrush=new l(a.header.textColor),s}return __extends(c,e),c.prototype.draw=function(e){this.font=s.changeFontSize(this.chartTable.dataCells.font,this.chartTable.dataCells.font.size*e.options.zoom),this.sf=e.getGenericStringFormat(),this.sf.trimming=o.None,this.sf.formatFlags=a.MeasureTrailingSpaces|a.NoWrap,this.sf.alignment=n.Center,this.sf.lineAlignment=n.Center,this.fontHeader=s.changeFontSize(this.chartTable.header.font,this.chartTable.header.font.size*e.options.zoom),this.sfHeader=e.getGenericStringFormat(),this.sf.trimming=o.None,this.chartTable.header.wordWrap||(this.sf.formatFlags=a.MeasureTrailingSpaces|a.NoWrap),this.sfHeader.alignment=n.Center,this.sfHeader.lineAlignment=n.Center;for(var t=this.clientRectangle.clone(),r=this.chartTable.chart.area,i=r.reverseHor?t.x:t.x+this.widthCellLegendTableChart,l=t.y,c=t.width-this.widthCellLegendTableChart,h=this.heightCellHeader,p=new u(i,l,c,h),f=[],m=1;m<this.table.getStiLength(1);m++)f.add(this.table[0][m]);this.drawHeaderArgument(e,p,f,r.xAxis.startFromZero);for(var S=r.reverseHor?t.right-this.widthCellLegendTableChart:t.x,g=t.y+this.heightCellHeader,d=this.widthCellLegendTableChart,y=t.height-this.heightCellHeader,b=new u(S,g,d,y),v=[],m=1;m<this.table.getStiLength(0);m++)v.add(this.table[m][0]);this.drawTitleLegend(e,b,v);var C=r.reverseHor?t.x:t.x+this.widthCellLegendTableChart,w=t.y+this.heightCellHeader,x=t.width-this.widthCellLegendTableChart,_=t.height-this.heightCellHeader,A=new u(C,w,x,_);this.drawRootTable(e,A,r.xAxis.startFromZero)},c.prototype.drawHeaderArgument=function(e,t,i,n){e.fillRectangle(this.chartTable.header.brush,new u(t.x,t.y,t.width,t.height)),this.chartTable.gridOutline&&e.drawRectangle(this.pen,t);for(var o=n?i.count+1:i.count-1,a=t.width/o,s=0;s<i.count;s++){var l=0;0!=s&&s!=i.count-1||(l=n?a/2:-a/2);var c=n?a/2:-a/2;0==s&&(c=0);var h=new u(t.x+s*a+c,t.y,a+l,t.height);if(this.chartTable.header.wordWrap?e.drawRotatedString6(i[s],this.fontHeader,this.labelHeaderBrush,h,this.sfHeader,r.CenterCenter,0,!0,Math.trunc(a+l)):e.drawString(i[s],this.fontHeader,this.labelHeaderBrush,h,this.sfHeader),this.chartTable.gridLinesVert&&s!=i.count-1){var p=n?t.x+(s+1)*a+a/2:t.x+(s+1)*a-a/2;e.drawLine(this.pen,p,t.y,p,t.bottom)}}},c.prototype.drawTitleLegend=function(e,r,i){this.chartTable.gridOutline&&e.drawRectangle2(this.pen,r.x,r.y,r.width,r.height);for(var n=r.height/i.count,o=0;o<i.count;o++){var a=r.x,s=r.y,l=r.width;if(this.chartTable.gridLinesHor&&0!=o&&e.drawLine(this.pen,a,s+n*o,a+l,s+n*o),this.chartTable.markerVisible){var c=new u(a+2,s+2+n*o,n-4,n-4);t.StiMarkerLegendFactory.createMarker(this.chartTable.chart.series.getByIndex(o)).draw(e,this.chartTable.chart.series.getByIndex(o),c,o,i.count),a+=n,l-=n}var h=new u(a,s+n*o,l,n);e.drawString(i[o],this.font,this.labelBrush,h,this.sf)}},c.prototype.drawRootTable=function(e,t,i){this.chartTable.gridOutline&&e.drawRectangle2(this.pen,t.x,t.y,t.width,t.height);var n=this.table.getStiLength(0),o=this.table.getStiLength(1),a=i?this.table.getStiLength(1):this.table.getStiLength(1)-2,s=t.width/a,l=t.height/(n-1),c=this.font;if(this.chartTable.dataCells.shrinkFontToFit)for(var h=1;h<n;h++){this.chartTable.gridLinesHor&&h!=n-1&&e.drawLine(this.pen,t.x,t.y+h*l,t.right,t.y+h*l);for(var p=1;p<o;p++){var f=0;1!=p&&p!=o-1||(f=i?s/2:-s/2);var m=i?s/2:-s/2;1==p&&(m=0);var S=new u(t.x+(p-1)*s+m,t.y+(h-1)*l,s+f,l),g=this.checkFontSize(e,this.table[h][p],c,S);while(!g){if(c.fontSize-=.5,c.fontSize<=this.chartTable.dataCells.shrinkFontToFitMinimumSize){c.fontSize=this.chartTable.dataCells.shrinkFontToFitMinimumSize;break}g=this.checkFontSize(e,this.table[h][p],c,S)}}}for(var h=1;h<n;h++){this.chartTable.gridLinesHor&&h!=n-1&&e.drawLine(this.pen,t.x,t.y+h*l,t.right,t.y+h*l);for(var p=1;p<o;p++){var f=0;1!=p&&p!=o-1||(f=i?s/2:-s/2);var m=i?s/2:-s/2;1==p&&(m=0);var S=new u(t.x+(p-1)*s+m,t.y+(h-1)*l,s+f,l);if(e.drawRotatedString5(this.table[h][p],c,this.labelBrush,S,this.sf,r.CenterCenter,0,!0),this.chartTable.gridLinesVert&&p<o-1){var d=i?t.x+p*s+s/2:t.x+p*s-s/2;e.drawLine(this.pen,d,t.y,d,t.bottom)}}}},c.prototype.checkFontSize=function(e,t,r,i){return e.measureRotatedString(t,r,i,this.sf,0).width<i.width},c}(t.StiCellGeom);t.StiChartTableGeom=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.Color,n=e.System.Drawing.Point,o=function(e){function o(r,i){var n=e.call(this,t.StiBaseLineSeriesGeom.getClientRectangle(r))||this;return n._points=r,n._trendLine=i,n}return __extends(o,e),Object.defineProperty(o.prototype,"points",{get:function(){return this._points},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"trendLine",{get:function(){return this._trendLine},enumerable:!0,configurable:!0}),o.prototype.draw=function(e){for(var o=Array.create(n,this.points.length,!0),a=0;a<this.points.length;a++)o[a]=this.points[a];var s=this.trendLine,l=this.trendLine.lineColor,u=this.trendLine.lineWidth,c=this.trendLine.lineStyle,h=this.trendLine.showShadow,p=u*e.options.zoom;if(e.pushSmoothingModeToAntiAlias(),h){var f=new r(i.fromArgb(50,0,0,0),p+.5*e.options.zoom);f.penStyle=c,e.pushTranslateTransform(p,p),t.StiNullableDrawing.drawCurve(e,f,this.points,0),e.popTransform()}var m=new r(l,u*e.options.zoom);m.penStyle=c,e.drawCurve(m,o,0),e.popSmoothingMode()},o}(t.StiCellGeom);t.StiTrendCurveGeom=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Context.StiPenGeom,i=e.System.Drawing.Color,n=function(e){function n(r,i,o){var a=e.call(this,t.StiBaseLineSeriesGeom.getClientRectangle(n.getArray(r,i)))||this;return a.pointStart=r,a.pointEnd=i,a.trendLine=o,a}return __extends(n,e),n.prototype.draw=function(e){var o=this.trendLine.lineColor,a=this.trendLine.lineWidth,s=this.trendLine.lineStyle,l=this.trendLine.showShadow,u=a*e.options.zoom;if(e.pushSmoothingModeToAntiAlias(),l){var c=new r(i.fromArgb(50,0,0,0),u+.5*e.options.zoom);c.penStyle=s,e.pushTranslateTransform(u,u),t.StiNullableDrawing.drawLines(e,c,n.getArray(this.pointStart,this.pointEnd)),e.popTransform()}var h=new r(o,a*e.options.zoom);h.penStyle=s,e.drawLine(h,this.pointStart.x,this.pointStart.y,this.pointEnd.x,this.pointEnd.y),e.popSmoothingMode()},n.getArray=function(e,t){return[e,t]},n}(t.StiCellGeom);t.StiTrendLineGeom=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.draw=function(e){},t}(e.StiCellGeom);e.StiChartGeom=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiAnimationType,i=e.System.TimeSpan,n=function(){function e(){}return e.drawLines=function(e,n,o,a){void 0===a&&(a=!1);for(var s=[],l=0,u=o;l<u.length;l++){var c=u[l];null!=c?s.add(c):(s.count>1&&(a?e.drawAnimationLines(n,s.toArray(),t.StiChartHelper.globalDurationElement,new i(0),r.Translation):e.drawLines(n,s.toArray())),s.clear())}s.count>1&&(a?e.drawAnimationLines(n,s.toArray(),t.StiChartHelper.globalDurationElement,new i(0),r.Translation):e.drawLines(n,s.toArray()))},e.drawCurve=function(e,r,n,o,a){void 0===a&&(a=!1);for(var s=[],l=0,u=n;l<u.length;l++){var c=u[l];null!=c?s.add(c):(s.count>1&&(a?e.drawAnimationCurve(r,s.toArray(),o,t.StiChartHelper.globalDurationElement,new i(0)):e.drawCurve(r,s.toArray(),o)),s.clear())}s.count>1&&(a?e.drawAnimationCurve(r,s.toArray(),o,t.StiChartHelper.globalDurationElement,new i(0)):e.drawCurve(r,s.toArray(),o))},e.getPointsList=function(e){for(var t=[],r=[],i=0,n=e;i<n.length;i++){var o=n[i];null!=o?r.add(o):(r.count>1&&t.add(r.toArray()),r.clear())}return r.count>1&&t.add(r.toArray()),t},e.getNullablePointsList=function(e){for(var t=[],r=[],i=0,n=e;i<n.length;i++){var o=n[i];null!=o?r.add(o):(r.count>1&&t.add(r.toArray()),r.clear())}return r.count>=1&&t.add(r.toArray()),t},e.getPointsList2=function(e,t,r,i){for(var n=[],o=[],a=[],s=[],l=0,u=0,c=e;u<c.length;u++){var h=c[u],p=t[l];null!=h&&null!=p?(a.add(h),s.add(p)):(a.count>1&&(n.add(a.toArray()),o.add(s.toArray())),a.clear(),s.clear()),l++}a.count>1&&(n.add(a.toArray()),o.add(s.toArray())),r.ref=n,i.ref=o},e}();t.StiNullableDrawing=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiPenStyle,a=e.System.Drawing.Color,s=function(){function e(e,r,i,n,s,l,u,c,h,p,f,m,S){void 0===e&&(e=new t.StiAxisLabels),void 0===r&&(r=new t.StiAxisRange),void 0===i&&(i=null),void 0===n&&(n=new t.StiAxisTicks),void 0===s&&(s=new t.StiAxisInteraction),void 0===l&&(l=t.StiArrowStyle.None),void 0===u&&(u=o.Solid),void 0===c&&(c=a.gray),void 0===h&&(h=1),void 0===p&&(p=!0),void 0===f&&(f=!0),void 0===m&&(m=!0),void 0===S&&(S=!1),this._logarithmicScale=!1,this._allowApplyStyle=!0,this._startFromZero=!0,this._interaction=new t.StiAxisInteraction,this._labels=new t.StiAxisLabels,this._range=new t.StiAxisRange,this._ticks=new t.StiAxisTicks,this._arrowStyle=t.StiArrowStyle.None,this._lineStyle=o.Solid,this._lineColor=a.gray,this._lineWidth=1,this._visible=!0,this._info=new t.StiAxisInfoXF,this._labels=e,this._range=r,this._title=i,this._ticks=n,this._interaction=s,this._arrowStyle=l,this._lineStyle=u,this._lineColor=c,this._lineWidth=h,this._visible=p,this._startFromZero=f,this._allowApplyStyle=m,this._logarithmicScale=S}return e.prototype.implements=function(){return e.implementsStiAxis||(e.implementsStiAxis=[i,n,t.IStiAxis]),e.implementsStiAxis},e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyBool("LogarithmicScale",this.logarithmicScale),t.addPropertyBool("AllowApplyStyle",this.allowApplyStyle,!0),t.addPropertyBool("StartFromZero",this.startFromZero,!0),t.addPropertyJObject("Interaction",this._interaction.saveToJsonObject(e)),t.addPropertyJObject("Labels",this._labels.saveToJsonObject(e)),t.addPropertyJObject("Range",this.range.saveToJsonObject(e)),t.addPropertyBool("Visible",this._visible,!0),null!=this._title&&t.addPropertyJObject("Title",this._title.saveToJsonObject(e)),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var i=r[t];switch(i.name){case"LogarithmicScale":this.logarithmicScale=i.value.toBoolean();break;case"AllowApplyStyle":this.allowApplyStyle=i.value.toBoolean();break;case"StartFromZero":this.startFromZero=i.value.toBoolean();break;case"Interaction":this._interaction.loadFromJsonObject(i.value);break;case"Labels":this._labels.loadFromJsonObject(i.value);break;case"Range":this.range.loadFromJsonObject(i.value);break;case"Title":this.title.loadFromJsonObject(i.value);break;case"Visible":this._visible=i.value.toBoolean();break}}},
e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"LogarithmicScale":this.logarithmicScale=r.textContent.toBoolean();break;case"AllowApplyStyle":this.allowApplyStyle=r.textContent.toBoolean();break;case"StartFromZero":this.startFromZero=r.textContent.toBoolean();break;case"Interaction":this._interaction.loadFromXml(r);break;case"Labels":this._labels.loadFromXml(r);break;case"Range":this.range.loadFromXml(r);break;case"Title":this.title.loadFromXml(r);break;case"Visible":this._visible=r.textContent.toBoolean();break}}},e.prototype.clone=function(){var e=this.memberwiseClone();return e.arrowStyle=this.arrowStyle,e.lineStyle=this.lineStyle,e.labels=this.labels.clone(),e.range=this.range.clone(),e.title=this.title.clone(),e.ticks=this.ticks.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.axis=e),e},Object.defineProperty(e.prototype,"logarithmicScale",{get:function(){return this._logarithmicScale},set:function(e){this._logarithmicScale=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startFromZero",{get:function(){return this._startFromZero},set:function(e){this._startFromZero=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){if(null==this.labels)return 0;return this.labels.step},set:function(e){null!=this.labels&&(this.labels.step=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interaction",{get:function(){return this._interaction},set:function(e){this._interaction=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return null==this._title&&(this._title=new t.StiAxisTitle,this.sti_is(t.StiXBottomAxis)?this._title.direction=t.StiDirection.LeftToRight:this.sti_is(t.StiXTopAxis)?this._title.direction=t.StiDirection.LeftToRight:this.sti_is(t.StiYRightAxis)?this._title.direction=t.StiDirection.TopToBottom:this.sti_is(t.StiYLeftAxis)&&(this._title.direction=t.StiDirection.BottomToTop)),this._title},set:function(e){null==this._title&&(this._title=new t.StiAxisTitle,this.sti_is(t.StiXBottomAxis)?this._title.direction=t.StiDirection.LeftToRight:this.sti_is(t.StiXTopAxis)?this._title.direction=t.StiDirection.LeftToRight:this.sti_is(t.StiYRightAxis)?this._title.direction=t.StiDirection.TopToBottom:this.sti_is(t.StiYLeftAxis)&&(this._title.direction=t.StiDirection.BottomToTop)),this._title=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ticks",{get:function(){return this._ticks},set:function(e){this._ticks=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowStyle",{get:function(){return this._arrowStyle},set:function(e){this._arrowStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){this._lineWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleDirection",{get:function(){if(null==this.title)return t.StiLegendDirection.BottomToTop;switch(this.title.direction){case t.StiDirection.BottomToTop:return t.StiLegendDirection.BottomToTop;case t.StiDirection.LeftToRight:return t.StiLegendDirection.LeftToRight;case t.StiDirection.RightToLeft:return t.StiLegendDirection.RightToLeft;case t.StiDirection.TopToBottom:return t.StiLegendDirection.TopToBottom}return t.StiLegendDirection.BottomToTop},set:function(e){if(null==this.title)return;switch(e){case t.StiLegendDirection.BottomToTop:this.title.direction=t.StiDirection.BottomToTop;break;case t.StiLegendDirection.LeftToRight:this.title.direction=t.StiDirection.LeftToRight;break;case t.StiLegendDirection.RightToLeft:this.title.direction=t.StiDirection.RightToLeft;break;case t.StiLegendDirection.TopToBottom:this.title.direction=t.StiDirection.TopToBottom;break}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"area",{get:function(){return this._area},set:function(e){this._area=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"info",{get:function(){return this._info},set:function(e){this._info=e},enumerable:!0,configurable:!0}),e}();t.StiAxis=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiPenStyle,a=e.System.Enum,s=e.System.Drawing.Color,l=function(e){function l(t,i,n,a,l,u,c,h,p,f,m,S,g,d){void 0===t&&(t=new r.StiAxisLabels),void 0===i&&(i=new r.StiAxisRange),void 0===n&&(n=null),void 0===a&&(a=new r.StiAxisTicks),void 0===l&&(l=new r.StiAxisInteraction),void 0===u&&(u=r.StiArrowStyle.None),void 0===c&&(c=o.Solid),void 0===h&&(h=s.gray),void 0===p&&(p=1),void 0===f&&(f=!0),void 0===m&&(m=!0),void 0===S&&(S=r.StiShowYAxis.Both),void 0===g&&(g=!0),void 0===d&&(d=!1);var y=e.call(this,t,i,n,a,l,u,c,h,p,f,m,g,d)||this;return y._showYAxis=r.StiShowYAxis.Both,y._showYAxis=S,y}return __extends(l,e),l.prototype.implements=function(){return l.implementsStiYAxis||(l.implementsStiYAxis=e.prototype.implements.call(this).concat([i,r.IStiYAxis,n,r.IStiAxis])),l.implementsStiYAxis},l.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyEnum("ShowYAxis",r.StiShowYAxis,this.showYAxis,r.StiShowYAxis.Both),i},l.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var i=0,n=t.properties();i<n.length;i++){var o=n[i];switch(o.name){case"ShowYAxis":this.showYAxis=a.parse(r.StiShowYAxis,o.value.toString());break}}},l.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"ShowYAxis":this.showYAxis=a.parse(r.StiShowYAxis,n.textContent);break}}},Object.defineProperty(l.prototype,"componentId",{get:function(){return t.StiComponentId.StiYAxis},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"showYAxis",{get:function(){return this._showYAxis},set:function(e){this._showYAxis=e},enumerable:!0,configurable:!0}),l}(r.StiAxis);r.StiYAxis=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiPenStyle,a=e.Base.Drawing.StiHorAlignment,s=e.System.Drawing.Color,l=function(e){function l(t,i,n,l,u,c,h,p,f,m,S,g,d){void 0===t&&(t=new r.StiAxisLabels),void 0===i&&(i=new r.StiAxisRange),void 0===n&&(n=null),void 0===l&&(l=new r.StiAxisTicks),void 0===u&&(u=new r.StiAxisInteraction),void 0===c&&(c=r.StiArrowStyle.None),void 0===h&&(h=o.Solid),void 0===p&&(p=s.gray),void 0===f&&(f=1),void 0===m&&(m=!0),void 0===S&&(S=!0),void 0===g&&(g=!0),void 0===d&&(d=!1);var y=e.call(this,t,i,n,l,u,c,h,p,f,m,S,r.StiShowYAxis.Both,g,d)||this;return y.visible=!1,y.labels.textAlignment=a.Left,y.core=new r.StiYRightAxisCoreXF(y),y}return __extends(l,e),l.prototype.implements=function(){return l.implementsStiYRightAxis||(l.implementsStiYRightAxis=e.prototype.implements.call(this).concat([i,r.IStiYAxis,n,r.IStiAxis,r.IStiYRightAxis])),l.implementsStiYRightAxis},l.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("ShowYAxis"),r.addPropertyBool("Visible",this.visible),r},Object.defineProperty(l.prototype,"componentId",{get:function(){return t.StiComponentId.StiYRightAxis},enumerable:!0,configurable:!0}),l}(r.StiYAxis);r.StiYRightAxis=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiPenStyle,a=e.System.Enum,s=e.System.Drawing.Color,l=function(e){function l(t,i,n,a,l,u,c,h,p,f,m,S,g,d,y,b){void 0===t&&(t=new r.StiAxisLabels),void 0===i&&(i=new r.StiAxisRange),void 0===n&&(n=null),void 0===a&&(a=new r.StiAxisTicks),void 0===l&&(l=new r.StiAxisInteraction),void 0===u&&(u=r.StiArrowStyle.None),void 0===c&&(c=o.Solid),void 0===h&&(h=s.gray),void 0===p&&(p=1),void 0===f&&(f=!0),void 0===m&&(m=!0),void 0===S&&(S=r.StiShowXAxis.Both),void 0===g&&(g=!1),void 0===d&&(d=!0),void 0===y&&(y=new r.StiAxisDateTimeStep),void 0===b&&(b=!1);var v=e.call(this,t,i,n,a,l,u,c,h,p,f,m,d,b)||this;return v._showEdgeValues=!1,v._showXAxis=r.StiShowXAxis.Both,v._dateTimeStep=new r.StiAxisDateTimeStep,v._showXAxis=S,v._dateTimeStep=y,v._showEdgeValues=g,v}return __extends(l,e),l.prototype.implements=function(){return l.implementsStiXAxis||(l.implementsStiXAxis=e.prototype.implements.call(this).concat([i,r.IStiAxis,r.IStiXAxis,n])),l.implementsStiXAxis},l.prototype.saveToJsonObject=function(t){var i=e.prototype.saveToJsonObject.call(this,t);return i.addPropertyBool("ShowEdgeValues",this._showEdgeValues),i.addPropertyEnum("ShowXAxis",r.StiShowXAxis,this.showXAxis,r.StiShowXAxis.Both),i.addPropertyJObject("DateTimeStep",this.dateTimeStep.saveToJsonObject(t)),i},l.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var i=0,n=t.properties();i<n.length;i++){var o=n[i];switch(o.name){case"ShowEdgeValues":this.showEdgeValues=o.value.toBoolean();break;case"ShowXAxis":this.showXAxis=a.parse(r.StiShowXAxis,o.value.toString());break;case"DateTimeStep":this.dateTimeStep.loadFromJsonObject(o.value);break}}},l.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"ShowEdgeValues":this.showEdgeValues=n.textContent.toBoolean();break;case"ShowXAxis":this.showXAxis=a.parse(r.StiShowXAxis,n.textContent);break;case"DateTimeStep":this.dateTimeStep.loadFromXml(n);break}}},Object.defineProperty(l.prototype,"componentId",{get:function(){return t.StiComponentId.StiXAxis},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"showEdgeValues",{get:function(){return this._showEdgeValues},set:function(e){this._showEdgeValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"showXAxis",{get:function(){return this._showXAxis},set:function(e){this._showXAxis=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"dateTimeStep",{get:function(){return this._dateTimeStep},set:function(e){this._dateTimeStep=e},enumerable:!0,configurable:!0}),l}(r.StiAxis);r.StiXAxis=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiPenStyle,a=e.System.Drawing.Color,s=function(e){function s(t,i,n,s,l,u,c,h,p,f,m,S,g,d,y){void 0===t&&(t=new r.StiAxisLabels),void 0===i&&(i=new r.StiAxisRange),void 0===n&&(n=null),void 0===s&&(s=new r.StiAxisTicks),void 0===l&&(l=new r.StiAxisInteraction),void 0===u&&(u=r.StiArrowStyle.None),void 0===c&&(c=o.Solid),void 0===h&&(h=a.gray),void 0===p&&(p=1),void 0===f&&(f=!1),void 0===m&&(m=!0),void 0===S&&(S=r.StiShowXAxis.Both),void 0===g&&(g=!1),void 0===d&&(d=!0),void 0===y&&(y=!1);var b=e.call(this,t,i,n,s,l,u,c,h,p,f,m,r.StiShowXAxis.Both,g,d,new r.StiAxisDateTimeStep,y)||this;return b.core=new r.StiXTopAxisCoreXF(b),b}return __extends(s,e),s.prototype.implements=function(){return s.implementsStiXTopAxis||(s.implementsStiXTopAxis=e.prototype.implements.call(this).concat([r.IStiXTopAxis,n,r.IStiAxis,r.IStiXAxis,i])),s.implementsStiXTopAxis},s.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("Range"),r.removeProperty("ShowXAxis"),r.removeProperty("DateTimeStep"),r.addPropertyBool("Visible",this.visible),r},Object.defineProperty(s.prototype,"componentId",{get:function(){return t.StiComponentId.StiXTopAxis},enumerable:!0,configurable:!0}),s}(r.StiXAxis);r.StiXTopAxis=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.Base.Drawing.StiPenStyle,o=e.System.Drawing.Color,a=function(e){function a(r,i,a,s,l,u,c,h,p,f,m,S,g,d){void 0===r&&(r=new t.StiAxisLabels),void 0===i&&(i=new t.StiAxisRange),void 0===a&&(a=null),void 0===s&&(s=new t.StiAxisTicks),void 0===l&&(l=new t.StiAxisInteraction),void 0===u&&(u=t.StiArrowStyle.None),void 0===c&&(c=n.Solid),void 0===h&&(h=o.gray),void 0===p&&(p=1),void 0===f&&(f=!0),void 0===m&&(m=!0),void 0===S&&(S=t.StiShowYAxis.Both),void 0===g&&(g=!0),void 0===d&&(d=!1);var y=e.call(this,r,i,a,s,l,u,c,h,p,f,m,S,g,d)||this;return y.core=new t.StiYLeftAxisCoreXF(y),y}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiYLeftAxis||(a.implementsStiYLeftAxis=e.prototype.implements.call(this).concat([r,t.IStiYAxis,i,t.IStiAxis,t.IStiYLeftAxis])),a.implementsStiYLeftAxis},a}(t.StiYAxis);t.StiYLeftAxis=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.StiJson,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiHorAlignment,s=e.System.Enum,l=e.System.Drawing.Color,u=e.System.Drawing.Font,c=function(){function c(e,r,i,n,o,s,c,h,p,f,m,S,g){void 0===e&&(e=""),void 0===r&&(r=""),void 0===i&&(i=""),void 0===n&&(n=0),void 0===o&&(o=new u("Tahoma",8)),void 0===s&&(s=!0),void 0===c&&(c=t.StiLabelsPlacement.OneLine),void 0===h&&(h=l.black),void 0===p&&(p=0),void 0===f&&(f=a.Right),void 0===m&&(m=0),void 0===S&&(S=!0),void 0===g&&(g=!1),this._allowApplyStyle=!0,this._format="",this._angle=0,this._width=0,this._textBefore="",this._textAfter="",this._font=new u("Tahoma",8),this._antialiasing=!0,this._placement=t.StiLabelsPlacement.OneLine,this._color=l.black,this._textAlignment=a.Right,this._step=0,this._wordWrap=!1,this._format=e,this._textBefore=r,this._textAfter=i,this._angle=n,this._font=o,this._antialiasing=s,this._placement=c,this._color=h,this._width=p,this._textAlignment=f,this._step=m,this._allowApplyStyle=S,this._wordWrap=g,this._core=new t.StiAxisLabelsCoreXF(this)}return c.prototype.implements=function(){return c.implementsStiAxisLabels||(c.implementsStiAxisLabels=[n,t.IStiAxisLabels,o]),c.implementsStiAxisLabels},c.prototype.saveToJsonObject=function(e){var n=new i;return n.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),n.addPropertyStringNullOfEmpty("Format",this._format),n.addPropertyNumber("Angle",this._angle,0),n.addPropertyNumber("Width",this._width,0),n.addPropertyStringNullOfEmpty("TextBefore",this._textBefore),n.addPropertyStringNullOfEmpty("TextAfter",this._textAfter),n.addPropertyStringNullOfEmpty("Font",r.Serialize.font(this._font,"Tahoma",8)),n.addPropertyBool("Antialiasing",this._antialiasing,!0),n.addPropertyEnum("Placement",t.StiLabelsPlacement,this._placement,t.StiLabelsPlacement.OneLine),n.addPropertyStringNullOfEmpty("Color",r.Serialize.jColor(this._color,l.black)),n.addPropertyEnum("TextAlignment",a,this.textAlignment,a.Right),n.addPropertyNumber("Step",this.step,0),n.addPropertyBool("WordWrap",this._wordWrap,!1),n},c.prototype.loadFromJsonObject=function(e){for(var i=0,n=e.properties();i<n.length;i++){var o=n[i];switch(o.name){case"AllowApplyStyle":this._allowApplyStyle=o.value.toBoolean();break;case"Format":this._format=o.value.toString();break;case"Angle":this._angle=o.value.toNumber();break;case"Width":this._width=o.value.toNumber();break;case"TextBefore":this._textBefore=o.value.toString();break;case"TextAfter":this._textAfter=o.value.toString();break;case"Font":this._font=r.Deserialize.font(o.value.toString(),this._font);break;case"Antialiasing":this._antialiasing=o.value.toBoolean();break;case"Placement":this._placement=s.parse(t.StiLabelsPlacement,o.value.toString());break;case"Color":this._color=r.Deserialize.color(o.value.toString());break;case"TextAlignment":this.textAlignment=s.parse(a,o.value.toString());break;case"Step":this.step=o.value.toNumber();break;case"WordWrap":this.wordWrap=o.value.toBoolean();break}}},c.prototype.loadFromXml=function(r){for(var i=0;i<r.childNodes.length;i++){var n=r.childNodes[i];switch(n.nodeName){case"AllowApplyStyle":this._allowApplyStyle=n.textContent.toBoolean();break;case"Format":this._format=n.textContent.toString();break;case"Angle":this._angle=n.textContent.toNumber();break;case"Width":this._width=n.textContent.toNumber();break;case"TextBefore":this._textBefore=n.textContent.toString();break;case"TextAfter":this._textAfter=n.textContent.toString();break;case"Font":case"fn":this._font=e.System.Convert.toFont(n.textContent);break;case"Antialiasing":this._antialiasing=n.textContent.toBoolean();break;case"Placement":this._placement=s.parse(t.StiLabelsPlacement,n.textContent);break;case"Color":this._color=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"TextAlignment":this.textAlignment=s.parse(a,n.textContent);break;case"Step":this.step=n.textContent.toNumber();break;case"WordWrap":this.wordWrap=n.textContent.toBoolean();break}}},c.prototype.clone=function(){var e=this.memberwiseClone();return e.placement=this.placement,e.font=this.font.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.labels=e),e},Object.defineProperty(c.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"textBefore",{get:function(){return this._textBefore},set:function(e){this._textBefore=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"textAfter",{get:function(){return this._textAfter},set:function(e){this._textAfter=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"antialiasing",{get:function(){return this._antialiasing},set:function(e){this._antialiasing=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"placement",{get:function(){return this._placement},set:function(e){this._placement=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"textAlignment",{get:function(){return this._textAlignment},set:function(e){this._textAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"step",{get:function(){return this._step},set:function(e){this._step=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap=e},enumerable:!0,configurable:!0}),c}();t.StiAxisLabels=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(){function e(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=0),void 0===r&&(r=0),this._minimum=0,this._maximum=0,this._auto=!0,this._auto=e,this._minimum=t,this._maximum=r}return e.prototype.implements=function(){return e.implementsStiAxisRange||(e.implementsStiAxisRange=[i,n,t.IStiAxisRange]),e.implementsStiAxisRange},e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyNumber("Minimum",this._minimum,0),t.addPropertyNumber("Maximum",this._maximum,0),t.addPropertyBool("Auto",this._auto,!0),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var i=r[t];switch(i.name){case"Minimum":this._minimum=i.value.toNumber();break;case"Maximum":this._maximum=i.value.toNumber();break;case"Auto":this._auto=i.value.toBoolean();break}}},e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"Minimum":this._minimum=r.textContent.toNumber();break;case"Maximum":this._maximum=r.textContent.toNumber();break;case"Auto":this._auto=r.textContent.toBoolean();break}}},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"minimum",{get:function(){return this._minimum},set:function(e){this._minimum=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximum",{get:function(){return this._maximum},set:function(e){this._maximum=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"auto",{get:function(){return this._auto},set:function(e){this._auto=e},enumerable:!0,configurable:!0}),e}();t.StiAxisRange=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(){function e(e,t,r,i,n,o,a){void 0===e&&(e=!0),void 0===t&&(t=5),void 0===r&&(r=!1),void 0===i&&(i=2),void 0===n&&(n=4),void 0===o&&(o=0),void 0===a&&(a=5),this._lengthUnderLabels=5,this._length=5,this._minorLength=2,this._minorCount=4,this._step=0,this._minorVisible=!1,this._visible=!0,this._visible=e,this._length=t,this._minorVisible=r,this._minorLength=i,this._minorCount=n,this._step=o,this._lengthUnderLabels=a}return e.prototype.implements=function(){return e.implementsStiAxisTicks||(e.implementsStiAxisTicks=[i,t.IStiAxisTicks,n]),e.implementsStiAxisTicks},e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyNumber("LengthUnderLabels",this._lengthUnderLabels,5),t.addPropertyNumber("Length",this._length,5),t.addPropertyNumber("MinorLength",this._minorLength,2),t.addPropertyNumber("MinorCount",this._minorCount,4),t.addPropertyNumber("Step",this._step),t.addPropertyBool("MinorVisible",this.minorVisible),t.addPropertyBool("Visible",this.visible,!0),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var i=r[t];switch(i.name){case"LengthUnderLabels":this._lengthUnderLabels=i.value.toNumber();break;case"Length":this._length=i.value.toNumber();break;case"MinorLength":this._minorLength=i.value.toNumber();break;case"MinorCount":this._minorCount=i.value.toNumber();break;case"Step":this._step=i.value.toNumber();break;case"MinorVisible":this.minorVisible=i.value.toBoolean();break;case"Visible":this._visible=i.value.toBoolean();break}}},e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"LengthUnderLabels":this._lengthUnderLabels=r.textContent.toNumber();break;case"Length":this._length=r.textContent.toNumber();break;case"MinorLength":this._minorLength=r.textContent.toNumber();break;case"MinorCount":this._minorCount=r.textContent.toNumber();break;case"Step":this._step=r.textContent.toNumber();break;case"MinorVisible":this.minorVisible=r.textContent.toBoolean();break;case"Visible":this._visible=r.textContent.toBoolean();break}}},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"lengthUnderLabels",{get:function(){return this._lengthUnderLabels},set:function(e){e>0&&(this._lengthUnderLabels=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){e>0&&(this._length=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minorLength",{get:function(){return this._minorLength},set:function(e){e>0&&(this._minorLength=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minorCount",{get:function(){return this._minorCount},set:function(e){e>=0&&(this._minorCount=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},set:function(e){e>=0&&(this._step=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minorVisible",{get:function(){return this._minorVisible},set:function(e){this._minorVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),e}();t.StiAxisTicks=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(){function e(e,t){void 0===e&&(e=!1),void 0===t&&(t=!0),this._showScrollBar=!1,this._rangeScrollEnabled=!0,this._showScrollBar=e,this._rangeScrollEnabled=t}return e.prototype.implements=function(){return e.implementsStiAxisInteraction||(e.implementsStiAxisInteraction=[i,t.IStiAxisInteraction,n]),e.implementsStiAxisInteraction},e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyBool("ShowScrollBar",this._showScrollBar),t.addPropertyBool("RangeScrollEnabled",this._rangeScrollEnabled,!0),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var i=r[t];switch(i.name){case"ShowScrollBar":this._showScrollBar=i.value.toBoolean();break;case"RangeScrollEnabled":this._rangeScrollEnabled=i.value.toBoolean();break}}},e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"ShowScrollBar":this._showScrollBar=r.textContent.toBoolean();break;case"RangeScrollEnabled":this._rangeScrollEnabled=r.textContent.toBoolean();break}}},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"showScrollBar",{get:function(){return this._showScrollBar},set:function(e){this._showScrollBar!=e&&(this._showScrollBar=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangeScrollEnabled",{get:function(){return this._rangeScrollEnabled},set:function(e){this._rangeScrollEnabled!=e&&(this._rangeScrollEnabled=e)},enumerable:!0,configurable:!0}),e}();t.StiAxisInteraction=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.System.Enum,a=function(){function e(e,r,i){void 0===e&&(e=t.StiTimeDateStep.None),void 0===r&&(r=1),void 0===i&&(i=!1),this._step=t.StiTimeDateStep.None,this._numberOfValues=1,this._interpolation=!1,this._step=e,this._numberOfValues=r,this._interpolation=i}return e.prototype.implements=function(){return e.implementsStiAxisDateTimeStep||(e.implementsStiAxisDateTimeStep=[i,n,t.IStiAxisDateTimeStep]),e.implementsStiAxisDateTimeStep},e.prototype.saveToJsonObject=function(e){var i=new r;return i.addPropertyEnum("Step",t.StiTimeDateStep,this._step,t.StiTimeDateStep.None),i.addPropertyNumber("NumberOfValues",this._numberOfValues,1),i.addPropertyBool("Interpolation",this._interpolation),i},e.prototype.loadFromJsonObject=function(e){for(var r=0,i=e.properties();r<i.length;r++){var n=i[r];switch(n.name){case"Step":this._step=o.parse(t.StiTimeDateStep,n.value.toString());break;case"NumberOfValues":this._numberOfValues=n.value.toNumber();break;case"Interpolation":this._interpolation=n.value.toBoolean();break}}},e.prototype.loadFromXml=function(e){for(var r=0;r<e.childNodes.length;r++){var i=e.childNodes[r];switch(i.nodeName){case"Step":this._step=o.parse(t.StiTimeDateStep,i.textContent);break;case"NumberOfValues":this._numberOfValues=i.textContent.toNumber();break;case"Interpolation":this._interpolation=i.textContent.toBoolean();break}}},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"step",{get:function(){return this._step},set:function(e){this._step=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfValues",{get:function(){return this._numberOfValues},set:function(e){this._numberOfValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolation",{get:function(){return this._interpolation},set:function(e){this._interpolation=e},enumerable:!0,configurable:!0}),e}();t.StiAxisDateTimeStep=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.Base.Drawing.StiPenStyle,o=e.System.Drawing.Color,a=function(e){function a(r,i,a,s,l,u,c,h,p,f,m,S,g,d,y,b){void 0===r&&(r=new t.StiAxisLabels),void 0===i&&(i=new t.StiAxisRange),void 0===a&&(a=null),void 0===s&&(s=new t.StiAxisTicks),void 0===l&&(l=new t.StiAxisInteraction),void 0===u&&(u=t.StiArrowStyle.None),void 0===c&&(c=n.Solid),void 0===h&&(h=o.gray),void 0===p&&(p=1),void 0===f&&(f=!0),void 0===m&&(m=!0),void 0===S&&(S=t.StiShowXAxis.Both),void 0===g&&(g=!1),void 0===d&&(d=!0),void 0===y&&(y=new t.StiAxisDateTimeStep),void 0===b&&(b=!1);var v=e.call(this,r,i,a,s,l,u,c,h,p,f,m,S,g,d,y,b)||this;return v.dateTimeStep=y,v.core=new t.StiXBottomAxisCoreXF(v),v}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiXBottomAxis||(a.implementsStiXBottomAxis=e.prototype.implements.call(this).concat([r,t.IStiXAxis,i,t.IStiXBottomAxis,t.IStiAxis])),a.implementsStiXBottomAxis},a}(t.StiXAxis);t.StiXBottomAxis=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiPenStyle,l=e.System.Enum,u=e.System.Drawing.Color,c=function(){function c(e,t,i,n,o,a,l,c){void 0===e&&(e=u.silver),void 0===t&&(t=s.Dot),void 0===i&&(i=!0),void 0===n&&(n=u.gainsboro),void 0===o&&(o=s.Dot),void 0===a&&(a=!1),void 0===l&&(l=0),void 0===c&&(c=!0),this.needSetAreaJsonPropertyInternal=!1,this._allowApplyStyle=!0,this._color=u.silver,this._minorColor=u.gainsboro,this._style=s.Dot,this._minorStyle=s.Dot,this._visible=!0,this._minorVisible=!1,this._minorCount=0,this._color=e,this._style=t,this._visible=i,this._minorColor=n,this._minorStyle=o,this._minorVisible=a,this._minorCount=l,this._allowApplyStyle=c,this._core=new r.StiGridLinesCoreXF(this)}return c.prototype.implements=function(){return c.implementsStiGridLines||(c.implementsStiGridLines=[o,r.IStiGridLines,a]),c.implementsStiGridLines},c.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyStringNullOfEmpty("Color",i.Serialize.jColor(this._color,u.silver)),t.addPropertyStringNullOfEmpty("MinorColor",i.Serialize.jColor(this._minorColor,u.gainsboro)),t.addPropertyEnum("Style",s,this._style,s.Dot),t.addPropertyEnum("MinorStyle",s,this._minorStyle,s.Dot),t.addPropertyBool("Visible",this._visible,!0),t.addPropertyBool("MinorVisible",this._minorVisible),t.addPropertyNumber("MinorCount",this._minorCount),null!=this.area&&t.addPropertyBool("Area",!0),t},c.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"AllowApplyStyle":this._allowApplyStyle=n.value.toBoolean();break;case"Color":this._color=i.Deserialize.color(n.value.toString());break;case"MinorColor":this._minorColor=i.Deserialize.color(n.value.toString());break;case"Style":this._style=l.parse(s,n.value.toString());break;case"MinorStyle":this._minorStyle=l.parse(s,n.value.toString());break;case"Visible":this._visible=n.value.toBoolean();break;case"MinorVisible":this._minorVisible=n.value.toBoolean();break;case"MinorCount":this._minorCount=n.value.toNumber();break;case"Area":this.needSetAreaJsonPropertyInternal=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"AllowApplyStyle":this._allowApplyStyle=i.textContent.toBoolean();break;case"Color":this._color=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"MinorColor":this._minorColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"Style":this._style=l.parse(s,i.textContent);break;case"MinorStyle":this._minorStyle=l.parse(s,i.textContent);break;case"Visible":this._visible=i.textContent.toBoolean();break;case"MinorVisible":this._minorVisible=i.textContent.toBoolean();break;case"MinorCount":this._minorCount=i.textContent.toNumber();break;case"Area":this.needSetAreaJsonPropertyInternal=i.textContent.toBoolean();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiGridLines},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var e=this.memberwiseClone();return e.style=this.style,e.minorStyle=this.minorStyle,null!=this.core&&(e.core=this.core.clone(),e.core.gridLines=e),e},Object.defineProperty(c.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"minorColor",{get:function(){return this._minorColor},set:function(e){this._minorColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"style",{get:function(){return this._style},set:function(e){this._style=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"minorStyle",{get:function(){return this._minorStyle},set:function(e){this._minorStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"minorVisible",{get:function(){return this._minorVisible},set:function(e){this._minorVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"minorCount",{get:function(){return this._minorCount},set:function(e){e>=0&&(this._minorCount=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"area",{get:function(){return this._area},set:function(e){this._area=e},enumerable:!0,configurable:!0}),c}();r.StiGridLines=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.Base.Drawing.StiPenStyle,o=e.System.Drawing.Color,a=function(e){function a(t,r,i,a,s,l,u,c){return void 0===t&&(t=o.silver),void 0===r&&(r=n.Dot),void 0===i&&(i=!0),void 0===a&&(a=o.gainsboro),void 0===s&&(s=n.Dot),void 0===l&&(l=!1),void 0===u&&(u=0),void 0===c&&(c=!0),e.call(this,t,r,i,a,s,l,u,c)||this}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiGridLinesVert||(a.implementsStiGridLinesVert=e.prototype.implements.call(this).concat([r,t.IStiGridLines,i,t.IStiGridLinesVert])),a.implementsStiGridLinesVert},a}(t.StiGridLines);t.StiGridLinesVert=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.Base.Drawing.StiPenStyle,o=e.System.Drawing.Color,a=function(e){function a(t,r,i,a,s,l,u,c){return void 0===t&&(t=o.silver),void 0===r&&(r=n.Dot),void 0===i&&(i=!0),void 0===a&&(a=o.gainsboro),void 0===s&&(s=n.Dot),void 0===l&&(l=!1),void 0===u&&(u=0),void 0===c&&(c=!0),e.call(this,t,r,i,a,s,l,u,c)||this}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiGridLinesHor||(a.implementsStiGridLinesHor=e.prototype.implements.call(this).concat([r,t.IStiGridLines,t.IStiGridLinesHor,i])),a.implementsStiGridLinesHor},a}(t.StiGridLines);t.StiGridLinesHor=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiSolidBrush,l=e.Base.Drawing.StiBrush,u=e.System.Drawing.Color,c=function(){function e(e,t,i){void 0===e&&(e=new s(u.transparent)),void 0===t&&(t=!0),void 0===i&&(i=!0),this.needSetAreaJsonPropertyInternal=!1,this._allowApplyStyle=!0,this._interlacedBrush=new s(u.transparent),this._visible=!0,this._interlacedBrush=e,this._visible=t,this._allowApplyStyle=i,this._core=new r.StiInterlacingCoreXF(this)}return e.prototype.implements=function(){return e.implementsStiInterlacing||(e.implementsStiInterlacing=[r.IStiInterlacing,a,o]),e.implementsStiInterlacing},e.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyStringNullOfEmpty("InterlacedBrush",i.Serialize.jBrush(this._interlacedBrush)),t.addPropertyBool("Visible",this._visible,!0),null!=this._area&&t.addPropertyBool("Area",!0),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"AllowApplyStyle":this._allowApplyStyle=n.value.toBoolean();break;case"InterlacedBrush":this._interlacedBrush=i.Deserialize.brush(n.value.toString());break;case"Visible":this._visible=n.value.toBoolean();break;case"Area":this.needSetAreaJsonPropertyInternal=n.value.toBoolean();break}}},e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"AllowApplyStyle":this._allowApplyStyle=r.textContent.toBoolean();break;case"InterlacedBrush":this._interlacedBrush=l.convertToBrush(r.textContent);break;case"Visible":this._visible=r.textContent.toBoolean();break;case"Area":this.needSetAreaJsonPropertyInternal=r.textContent.toBoolean();break}}},Object.defineProperty(e.prototype,"componentId",{get:function(){return t.StiComponentId.StiInterlacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var e=this.memberwiseClone();return e.interlacedBrush=this.interlacedBrush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.interlacing=e),e},Object.defineProperty(e.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interlacedBrush",{get:function(){return this._interlacedBrush},set:function(e){this._interlacedBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"area",{get:function(){return this._area},set:function(e){this._area=e},enumerable:!0,configurable:!0}),e}();r.StiInterlacing=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.System.Drawing.Color,o=e.Base.Drawing.StiSolidBrush,a=function(e){function a(t,r,i){return void 0===t&&(t=new o(n.transparent)),void 0===r&&(r=!0),void 0===i&&(i=!0),e.call(this,t,r,i)||this}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiInterlacingVert||(a.implementsStiInterlacingVert=e.prototype.implements.call(this).concat([t.IStiInterlacing,t.IStiInterlacingVert,i,r])),a.implementsStiInterlacingVert},a}(t.StiInterlacing);t.StiInterlacingVert=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.System.Drawing.Color,o=e.Base.Drawing.StiSolidBrush,a=function(e){function a(t,r,i){return void 0===t&&(t=new o(n.transparent)),void 0===r&&(r=!0),void 0===i&&(i=!0),e.call(this,t,r,i)||this}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiInterlacingHor||(a.implementsStiInterlacingHor=e.prototype.implements.call(this).concat([t.IStiInterlacing,t.IStiInterlacingHor,r,i])),a.implementsStiInterlacingHor},a}(t.StiInterlacing);t.StiInterlacingHor=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.StiJson,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=e.Base.Services.StiService,c=function(u){function c(){var e=null!==u&&u.apply(this,arguments)||this;return e._chart=null,e._allowApplyStyle=!0,e._colorEach=!1,e._showShadow=!1,e._borderColor=l.gray,e._brush=new a(l.white),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiArea||(c.implementsStiArea=u.prototype.implements.call(this).concat([n,t.IStiArea,o])),c.implementsStiArea},c.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyBool("ColorEach",this.colorEach),t.addPropertyBool("ShowShadow",this._showShadow),t.addPropertyStringNullOfEmpty("BorderColor",r.Serialize.jColor(this._borderColor,l.gray)),t.addPropertyStringNullOfEmpty("Brush",r.Serialize.jBrush(this._brush)),t},c.prototype.loadFromJsonObject=function(e){for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"AllowApplyStyle":this._allowApplyStyle=n.value.toBoolean();break;case"ColorEach":this.colorEach=n.value.toBoolean();break;case"ShowShadow":this._showShadow=n.value.toBoolean();break;case"BorderColor":this._borderColor=r.Deserialize.color(n.value.toString());break;case"Brush":this._brush=r.Deserialize.brush(n.value.toString());break}}},c.prototype.loadFromXml=function(t){for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"AllowApplyStyle":this._allowApplyStyle=i.textContent.toBoolean();break;case"ColorEach":this.colorEach=i.textContent.toBoolean();break;case"ShowShadow":this._showShadow=i.textContent.toBoolean();break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break}}},c.loadFromJsonObjectInternal=function(e){var t=e.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),r=StiOptions.Services.chartAreas.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==t});if(null==r)throw String.stiFormat("Type {0}.sti_is(not) found!",t);var i=r.createNew();return i.loadFromJsonObject(e),i},c.loadAreaFromXml=function(e,r){switch(e.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Chart.StiClusteredColumnArea":var i=new t.StiClusteredColumnArea;return i.chart=r,i.loadFromXml(e),i;case"Stimulsoft.Report.Chart.StiLineArea":var n=new t.StiLineArea;return n.chart=r,n.loadFromXml(e),n;case"Stimulsoft.Report.Chart.StiAreaArea":var o=new t.StiAreaArea;return o.chart=r,o.loadFromXml(e),o;case"Stimulsoft.Report.Chart.StiSplineArea":var a=new t.StiSplineArea;return a.chart=r,a.loadFromXml(e),a;case"Stimulsoft.Report.Chart.StiSplineAreaArea":var s=new t.StiSplineAreaArea;return s.chart=r,s.loadFromXml(e),s;case"Stimulsoft.Report.Chart.StiStackedColumnArea":var l=new t.StiStackedColumnArea;return l.chart=r,l.loadFromXml(e),l;case"Stimulsoft.Report.Chart.StiStackedLineArea":var u=new t.StiStackedLineArea;return u.chart=r,u.loadFromXml(e),u;case"Stimulsoft.Report.Chart.StiStackedAreaArea":var c=new t.StiStackedAreaArea;return c.chart=r,c.loadFromXml(e),c;case"Stimulsoft.Report.Chart.StiStackedSplineArea":var h=new t.StiStackedSplineArea;return h.chart=r,h.loadFromXml(e),h;case"Stimulsoft.Report.Chart.StiStackedSplineAreaArea":var p=new t.StiStackedSplineAreaArea;return p.chart=r,p.loadFromXml(e),p;case"Stimulsoft.Report.Chart.StiSteppedLineArea":var f=new t.StiSteppedLineArea;return f.chart=r,f.loadFromXml(e),f;case"Stimulsoft.Report.Chart.StiSteppedAreaArea":var m=new t.StiSteppedAreaArea;return m.chart=r,m.loadFromXml(e),m;case"Stimulsoft.Report.Chart.StiFullStackedColumnArea":var S=new t.StiFullStackedColumnArea;return S.chart=r,S.loadFromXml(e),S;case"Stimulsoft.Report.Chart.StiFullStackedLineArea":var g=new t.StiFullStackedLineArea;return g.chart=r,g.loadFromXml(e),g;case"Stimulsoft.Report.Chart.StiFullStackedAreaArea":var d=new t.StiFullStackedAreaArea;return d.chart=r,d.loadFromXml(e),d;case"Stimulsoft.Report.Chart.StiFullStackedSplineArea":var y=new t.StiFullStackedSplineArea;return y.chart=r,y.loadFromXml(e),y;case"Stimulsoft.Report.Chart.StiFullStackedSplineAreaArea":var b=new t.StiFullStackedSplineAreaArea;return b.chart=r,b.loadFromXml(e),b;case"Stimulsoft.Report.Chart.StiClusteredBarArea":var v=new t.StiClusteredBarArea;return v.chart=r,v.loadFromXml(e),v;case"Stimulsoft.Report.Chart.StiStackedBarArea":var C=new t.StiStackedBarArea;return C.chart=r,C.loadFromXml(e),C;case"Stimulsoft.Report.Chart.StiFullStackedBarArea":var w=new t.StiFullStackedBarArea;return w.chart=r,w.loadFromXml(e),w;case"Stimulsoft.Report.Chart.StiPieArea":var x=new t.StiPieArea;return x.chart=r,x.loadFromXml(e),x;case"Stimulsoft.Report.Chart.StiDoughnutArea":var _=new t.StiDoughnutArea;return _.chart=r,_.loadFromXml(e),_;case"Stimulsoft.Report.Chart.StiRadarPointArea":var A=new t.StiRadarPointArea;return A.chart=r,A.loadFromXml(e),A;case"Stimulsoft.Report.Chart.StiRadarLineArea":var L=new t.StiRadarLineArea;return L.chart=r,L.loadFromXml(e),L;case"Stimulsoft.Report.Chart.StiRadarAreaArea":var O=new t.StiRadarAreaArea;return O.chart=r,O.loadFromXml(e),O;case"Stimulsoft.Report.Chart.StiGanttArea":var P=new t.StiGanttArea;return P.chart=r,P.loadFromXml(e),P;case"Stimulsoft.Report.Chart.StiScatterArea":var B=new t.StiScatterArea;return B.chart=r,B.loadFromXml(e),B;case"Stimulsoft.Report.Chart.StiBubbleArea":var R=new t.StiBubbleArea;return R.chart=r,R.loadFromXml(e),R;case"Stimulsoft.Report.Chart.StiRangeArea":var k=new t.StiRangeArea;return k.chart=r,k.loadFromXml(e),k;case"Stimulsoft.Report.Chart.StiSplineRangeArea":var j=new t.StiSplineRangeArea;return j.chart=r,j.loadFromXml(e),j;case"Stimulsoft.Report.Chart.StiSteppedRangeArea":var T=new t.StiSteppedRangeArea;return T.chart=r,T.loadFromXml(e),T;case"Stimulsoft.Report.Chart.StiRangeBarArea":var F=new t.StiRangeBarArea;return F.chart=r,F.loadFromXml(e),F;case"Stimulsoft.Report.Chart.StiCandlestickArea":var D=new t.StiCandlestickArea;return D.chart=r,D.loadFromXml(e),D;case"Stimulsoft.Report.Chart.StiStockArea":var I=new t.StiStockArea;return I.chart=r,I.loadFromXml(e),I;case"Stimulsoft.Report.Chart.StiFunnelArea":var N=new t.StiFunnelArea;return N.chart=r,N.loadFromXml(e),N;case"Stimulsoft.Report.Chart.StiTreemapArea":var M=new t.StiTreemapArea;return M.chart=r,M.loadFromXml(e),M;case"Stimulsoft.Report.Chart.StiPictorialArea":var E=new t.StiPictorialArea;return E.chart=r,E.loadFromXml(e),E}return null},Object.defineProperty(c.prototype,"componentId",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var e=u.prototype.clone.call(this);return e.brush=this.brush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.area=e),e},c.prototype.createNew=function(){return null},c.prototype.toString=function(){return this.serviceName},c.prototype.getDefaultSeriesType=function(){return null},c.prototype.getSeriesTypes=function(){return null},c.prototype.getDefaultSeriesLabelsType=function(){return null},c.prototype.getSeriesLabelsTypes=function(){return null},Object.defineProperty(c.prototype,"serviceCategory",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"serviceType",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isDefaultSeriesTypeFullStackedColumnSeries",{get:function(){return this.getDefaultSeriesType()==t.StiFullStackedColumnSeries},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isDefaultSeriesTypeFullStackedBarSeries",{get:function(){return this.getDefaultSeriesType()==t.StiFullStackedBarSeries},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.chart&&this.core.applyStyle(this.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"colorEach",{get:function(){return this._colorEach},set:function(e){this._colorEach=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"showShadow",{get:function(){return this._showShadow},set:function(e){this._showShadow=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),c}(u);t.StiArea=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=function(e){function n(){var r=e.call(this)||this;return r._reverseHor=!1,r._reverseVert=!1,r.interlacingHor=new t.StiInterlacingHor,r.interlacingVert=new t.StiInterlacingVert,r.gridLinesHor=new t.StiGridLinesHor,r.gridLinesHorRight=new t.StiGridLinesHor,r.gridLinesVert=new t.StiGridLinesVert,r.gridLinesHorRight.visible=!1,r.xAxis=new t.StiXBottomAxis,r.yAxis=new t.StiYLeftAxis,r.xTopAxis=new t.StiXTopAxis,r.yRightAxis=new t.StiYRightAxis,r}return __extends(n,e),n.prototype.implements=function(){return n.implementsStiAxisArea||(n.implementsStiAxisArea=e.prototype.implements.call(this).concat([r,t.IStiAxisArea,t.IStiArea,i])),n.implementsStiAxisArea},n.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyJObject("InterlacingHor",this._interlacingHor.saveToJsonObject(t)),r.addPropertyJObject("InterlacingVert",this._interlacingVert.saveToJsonObject(t)),r.addPropertyJObject("GridLinesHor",this._gridLinesHor.saveToJsonObject(t)),r.addPropertyJObject("GridLinesHorRight",this._gridLinesHorRight.saveToJsonObject(t)),r.addPropertyJObject("GridLinesVert",this._gridLinesVert.saveToJsonObject(t)),r.addPropertyJObject("YAxis",this._yAxis.saveToJsonObject(t)),r.addPropertyJObject("YRightAxis",this._yRightAxis.saveToJsonObject(t)),r.addPropertyJObject("XAxis",this._xAxis.saveToJsonObject(t)),r.addPropertyJObject("XTopAxis",this._xTopAxis.saveToJsonObject(t)),r.addPropertyBool("ReverseHor",this.reverseHor),r.addPropertyBool("ReverseVert",this.reverseVert),r},n.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"InterlacingHor":this._interlacingHor.loadFromJsonObject(n.value),this._interlacingHor.needSetAreaJsonPropertyInternal&&(this._interlacingHor.needSetAreaJsonPropertyInternal=!1,this._interlacingHor.area=this);break;case"InterlacingVert":this._interlacingVert.loadFromJsonObject(n.value),this._interlacingVert.needSetAreaJsonPropertyInternal&&(this._interlacingVert.needSetAreaJsonPropertyInternal=!1,this._interlacingVert.area=this);break;case"GridLinesHor":this._gridLinesHor.loadFromJsonObject(n.value),this._gridLinesHor.needSetAreaJsonPropertyInternal&&(this._gridLinesHor.needSetAreaJsonPropertyInternal=!1,this._gridLinesHor.area=this);break;case"GridLinesHorRight":this._gridLinesHorRight.loadFromJsonObject(n.value),this._gridLinesHorRight.needSetAreaJsonPropertyInternal&&(this._gridLinesHorRight.needSetAreaJsonPropertyInternal=!1,this._gridLinesHorRight.area=this);break;case"GridLinesVert":this._gridLinesVert.loadFromJsonObject(n.value),this._gridLinesVert.needSetAreaJsonPropertyInternal&&(this._gridLinesVert.needSetAreaJsonPropertyInternal=!1,this._gridLinesVert.area=this);break;case"YAxis":this._yAxis.loadFromJsonObject(n.value);break;case"YRightAxis":this._yRightAxis.loadFromJsonObject(n.value);break;case"XAxis":this._xAxis.loadFromJsonObject(n.value);break;case"XTopAxis":this._xTopAxis.loadFromJsonObject(n.value);break;case"ReverseHor":this.reverseHor=n.value.toBoolean();break;case"ReverseVert":this.reverseVert=n.value.toBoolean();break}}},n.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"InterlacingHor":this._interlacingHor.loadFromXml(i),this._interlacingHor.area=this;break;case"InterlacingVert":this._interlacingVert.loadFromXml(i),this._interlacingVert.area=this;break;case"GridLinesHor":this._gridLinesHor.loadFromXml(i),this._gridLinesHor.area=this;break;case"GridLinesHorRight":this._gridLinesHorRight.loadFromXml(i),this._gridLinesHorRight.area=this;break;case"GridLinesVert":this._gridLinesVert.loadFromXml(i),this._gridLinesVert.area=this;break;case"YAxis":this._yAxis.loadFromXml(i);break;case"YRightAxis":this._yRightAxis.loadFromXml(i);break;case"XAxis":this._xAxis.loadFromXml(i);break;case"XTopAxis":this._xTopAxis.loadFromXml(i);break;case"ReverseHor":this.reverseHor=i.textContent.toBoolean();break;case"ReverseVert":this.reverseVert=i.textContent.toBoolean();break}}},n.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.interlacingHor=this.interlacingHor.clone(),t.interlacingVert=this.interlacingVert.clone(),t.gridLinesHor=this.gridLinesHor.clone(),t.gridLinesHorRight=this.gridLinesHorRight.clone(),t.gridLinesVert=this.gridLinesVert.clone(),t.yAxis=this.yAxis.clone(),t.yRightAxis=this.yRightAxis.clone(),t.xAxis=this.xAxis.clone(),t.xTopAxis=this.xTopAxis.clone(),t},Object.defineProperty(n.prototype,"axisCore",{get:function(){return this.core},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"interlacingHor",{get:function(){return this._interlacingHor},set:function(e){this._interlacingHor=e,null!=this._interlacingHor&&(this._interlacingHor.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"interlacingVert",{get:function(){return this._interlacingVert},set:function(e){this._interlacingVert=e,null!=this._interlacingVert&&(this._interlacingVert.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gridLinesHor",{get:function(){return this._gridLinesHor},set:function(e){this._gridLinesHor=e,null!=this._gridLinesHor&&(this._gridLinesHor.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gridLinesHorRight",{get:function(){return this._gridLinesHorRight},set:function(e){this._gridLinesHorRight=e,null!=this._gridLinesHorRight&&(this._gridLinesHorRight.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gridLinesVert",{get:function(){return this._gridLinesVert},set:function(e){this._gridLinesVert=e,null!=this._gridLinesVert&&(this._gridLinesVert.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"yAxis",{get:function(){return this._yAxis},set:function(e){this._yAxis=e,null!=this._yAxis&&(this._yAxis.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"yRightAxis",{get:function(){return this._yRightAxis},set:function(e){this._yRightAxis=e,null!=this._yRightAxis&&(this._yRightAxis.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"xAxis",{get:function(){return this._xAxis},set:function(e){this._xAxis=e,null!=this._xAxis&&(this._xAxis.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"xTopAxis",{get:function(){return this._xTopAxis},set:function(e){this._xTopAxis=e,null!=this._xTopAxis&&(this._xTopAxis.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"reverseHor",{get:function(){return this._reverseHor},set:function(e){this._reverseHor=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"reverseVert",{get:function(){return this._reverseVert},set:function(e){this._reverseVert=e},enumerable:!0,configurable:!0}),n.prototype.getDefaultSeriesLabelsType=function(){return t.StiCenterAxisLabels},n.prototype.getSeriesLabelsTypes=function(){return[t.StiNoneLabels,t.StiInsideBaseAxisLabels,t.StiInsideEndAxisLabels,t.StiCenterAxisLabels,t.StiOutsideBaseAxisLabels,t.StiOutsideEndAxisLabels,t.StiOutsideAxisLabels,t.StiLeftAxisLabels,t.StiValueAxisLabels,t.StiRightAxisLabels]},n}(t.StiArea);t.StiAxisArea=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiClusteredColumnAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiClusteredColumnArea||(o.implementsStiClusteredColumnArea=e.prototype.implements.call(this).concat([i,r.IStiClusteredColumnArea,r.IStiAxisArea,n,r.IStiArea])),o.implementsStiClusteredColumnArea},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiClusteredColumnArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesType=function(){return r.StiClusteredColumnSeries},o.prototype.getSeriesTypes=function(){return[r.StiClusteredColumnSeries,r.StiLineSeries,r.StiSteppedLineSeries,r.StiSplineSeries,r.StiAreaSeries,r.StiSteppedAreaSeries,r.StiSplineAreaSeries]},o.prototype.createNew=function(){return new o},o}(r.StiAxisArea);r.StiClusteredColumnArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiScatterAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiScatterArea||(o.implementsStiScatterArea=e.prototype.implements.call(this).concat([r.IStiScatterArea,r.IStiArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiScatterArea},o.prototype.getDefaultSeriesType=function(){return r.StiScatterLineSeries},o.prototype.getSeriesTypes=function(){return[r.StiScatterSeries,r.StiScatterLineSeries,r.StiScatterSplineSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiScatterArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiScatterArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiBubbleAreaCoreXF(t),t.interlacingHor=new r.StiInterlacingHor,t.interlacingVert=new r.StiInterlacingVert,t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiBubbleArea||(o.implementsStiBubbleArea=e.prototype.implements.call(this).concat([r.IStiScatterArea,r.IStiClusteredColumnArea,r.IStiArea,r.IStiAxisArea,i,n,r.IStiBubbleArea])),o.implementsStiBubbleArea},o.prototype.getDefaultSeriesType=function(){return r.StiBubbleSeries},o.prototype.getSeriesTypes=function(){return[r.StiBubbleSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiBubbleArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiScatterArea);r.StiBubbleArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiCandlestickAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiCandlestickArea||(o.implementsStiCandlestickArea=e.prototype.implements.call(this).concat([r.IStiCandlestickArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,r.IStiArea,n])),o.implementsStiCandlestickArea},o.prototype.getDefaultSeriesType=function(){return r.StiCandlestickSeries},o.prototype.getSeriesTypes=function(){return[r.StiCandlestickSeries]},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiCandlestickArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiCandlestickArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiClusteredBarAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiClusteredBarArea||(o.implementsStiClusteredBarArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiClusteredBarArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiClusteredBarArea},o.prototype.getDefaultSeriesType=function(){return r.StiClusteredBarSeries},o.prototype.getSeriesTypes=function(){return[r.StiClusteredBarSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiClusteredBarArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiClusteredBarArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiAreaArea||(o.implementsStiAreaArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiClusteredColumnArea,r.IStiAxisArea,r.IStiAreaArea,i,n])),o.implementsStiAreaArea},o.prototype.getDefaultSeriesType=function(){return r.StiAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiAreaArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiLineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiLineArea||(o.implementsStiLineArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiLineArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiLineArea},o.prototype.getDefaultSeriesType=function(){return r.StiLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiLineArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiLineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiSplineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSplineArea||(o.implementsStiSplineArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiSplineArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiSplineArea},o.prototype.getDefaultSeriesType=function(){return r.StiSplineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSplineArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiSplineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiSplineAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSplineAreaArea||(o.implementsStiSplineAreaArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiSplineAreaArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiSplineAreaArea},o.prototype.getDefaultSeriesType=function(){return r.StiSplineAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSplineAreaArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiSplineAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiSteppedAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSteppedAreaArea||(o.implementsStiSteppedAreaArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiSteppedAreaArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiSteppedAreaArea},o.prototype.getDefaultSeriesType=function(){return r.StiSteppedAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSteppedAreaArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiSteppedAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiSteppedLineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSteppedLineArea||(o.implementsStiSteppedLineArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiClusteredColumnArea,r.IStiAxisArea,r.IStiSteppedLineArea,i,n])),o.implementsStiSteppedLineArea},o.prototype.getDefaultSeriesType=function(){return r.StiSteppedLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSteppedLineArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiSteppedLineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiPieAreaCoreXF(t),t.colorEach=!0,t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiPieArea||(o.implementsStiPieArea=e.prototype.implements.call(this).concat([i,r.IStiPieArea,r.IStiArea,n])),o.implementsStiPieArea},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("ColorEach"),r},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiPieArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesLabelsType=function(){return r.StiCenterPieLabels},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels,r.StiInsideEndPieLabels,r.StiCenterPieLabels,r.StiOutsidePieLabels,r.StiTwoColumnsPieLabels]},o.prototype.getDefaultSeriesType=function(){return r.StiPieSeries},o.prototype.getSeriesTypes=function(){return[r.StiPieSeries]},o.prototype.createNew=function(){return new o},o}(r.StiArea);r.StiPieArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiDoughnutAreaCoreXF(t),t.colorEach=!0,t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiDoughnutArea||(o.implementsStiDoughnutArea=e.prototype.implements.call(this).concat([i,r.IStiPieArea,r.IStiArea,n,r.IStiDoughnutArea])),o.implementsStiDoughnutArea},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("ColorEach"),r},o.prototype.getDefaultSeriesLabelsType=function(){return r.StiCenterPieLabels},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels,r.StiCenterPieLabels]},o.prototype.getDefaultSeriesType=function(){return r.StiDoughnutSeries},o.prototype.getSeriesTypes=function(){return[r.StiDoughnutSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiDoughnutArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiPieArea);r.StiDoughnutArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStackedBarAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedBarArea||(o.implementsStiStackedBarArea=e.prototype.implements.call(this).concat([r.IStiClusteredBarArea,r.IStiClusteredColumnArea,r.IStiArea,r.IStiAxisArea,i,r.IStiStackedBarArea,n])),o.implementsStiStackedBarArea},o.prototype.getDefaultSeriesType=function(){return r.StiStackedBarSeries},o.prototype.getSeriesTypes=function(){return[r.StiStackedBarSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedBarArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredBarArea);r.StiStackedBarArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedBarAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedBarArea||(o.implementsStiFullStackedBarArea=e.prototype.implements.call(this).concat([r.IStiClusteredBarArea,r.IStiClusteredColumnArea,r.IStiArea,r.IStiAxisArea,r.IStiFullStackedBarArea,r.IStiStackedBarArea,i,n])),o.implementsStiFullStackedBarArea},o.prototype.getDefaultSeriesType=function(){return r.StiFullStackedBarSeries},o.prototype.getSeriesTypes=function(){return[r.StiFullStackedBarSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedBarArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiStackedBarArea);r.StiFullStackedBarArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStackedColumnAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedColumnArea||(o.implementsStiStackedColumnArea=e.prototype.implements.call(this).concat([i,r.IStiStackedColumnArea,r.IStiAxisArea,n,r.IStiArea])),o.implementsStiStackedColumnArea},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedColumnArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesType=function(){return r.StiStackedColumnSeries},o.prototype.getSeriesTypes=function(){return[r.StiStackedColumnSeries,r.StiStackedLineSeries,r.StiStackedSplineSeries,r.StiStackedAreaSeries,r.StiStackedSplineAreaSeries]},o.prototype.createNew=function(){return new o},o}(r.StiAxisArea);r.StiStackedColumnArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedColumnAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedColumnArea||(o.implementsStiFullStackedColumnArea=e.prototype.implements.call(this).concat([r.IStiStackedColumnArea,r.IStiArea,r.IStiAxisArea,r.IStiFullStackedColumnArea,i,n])),o.implementsStiFullStackedColumnArea},o.prototype.getDefaultSeriesType=function(){return r.StiFullStackedColumnSeries},o.prototype.getSeriesTypes=function(){return[r.StiFullStackedColumnSeries,r.StiFullStackedLineSeries,r.StiFullStackedAreaSeries,r.StiFullStackedSplineSeries,r.StiFullStackedSplineAreaSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedColumnArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiStackedColumnArea);r.StiFullStackedColumnArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedAreaArea||(o.implementsStiFullStackedAreaArea=e.prototype.implements.call(this).concat([r.IStiStackedColumnArea,r.IStiArea,r.IStiAxisArea,r.IStiFullStackedColumnArea,i,n,r.IStiFullStackedAreaArea])),o.implementsStiFullStackedAreaArea},o.prototype.getDefaultSeriesType=function(){return r.StiFullStackedAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedAreaArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiFullStackedColumnArea);r.StiFullStackedAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedLineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedLineArea||(o.implementsStiFullStackedLineArea=e.prototype.implements.call(this).concat([r.IStiStackedColumnArea,r.IStiArea,r.IStiAxisArea,r.IStiFullStackedColumnArea,i,n,r.IStiFullStackedLineArea])),o.implementsStiFullStackedLineArea},o.prototype.getDefaultSeriesType=function(){return r.StiFullStackedLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedLineArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiFullStackedColumnArea);r.StiFullStackedLineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedSplineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedSplineArea||(o.implementsStiFullStackedSplineArea=e.prototype.implements.call(this).concat([r.IStiFullStackedSplineArea,r.IStiStackedColumnArea,r.IStiArea,r.IStiAxisArea,r.IStiFullStackedColumnArea,i,n])),o.implementsStiFullStackedSplineArea},o.prototype.getDefaultSeriesType=function(){return r.StiFullStackedSplineAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedSplineArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiFullStackedColumnArea);r.StiFullStackedSplineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedSplineAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedSplineAreaArea||(o.implementsStiFullStackedSplineAreaArea=e.prototype.implements.call(this).concat([r.IStiStackedColumnArea,r.IStiArea,r.IStiAxisArea,r.IStiFullStackedColumnArea,r.IStiFullStackedSplineAreaArea,i,n])),o.implementsStiFullStackedSplineAreaArea},o.prototype.getDefaultSeriesType=function(){return r.StiFullStackedSplineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedSplineAreaArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiFullStackedColumnArea);r.StiFullStackedSplineAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFunnelAreaCoreXF(t),t.colorEach=!0,t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFunnelArea||(o.implementsStiFunnelArea=e.prototype.implements.call(this).concat([i,r.IStiArea,n,r.IStiFunnelArea])),o.implementsStiFunnelArea},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("ColorEach"),r},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFunnelArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesType=function(){return r.StiFunnelSeries},o.prototype.getSeriesTypes=function(){return[r.StiFunnelSeries,r.StiFunnelWeightedSlicesSeries]},o.prototype.getDefaultSeriesLabelsType=function(){return r.StiNoneLabels},o.prototype.getSeriesLabelsTypes=function(){return this.chart.series.count>0&&this.chart.series.getByIndex(0).sti_is(r.StiFunnelWeightedSlicesSeries)?[r.StiNoneLabels,r.StiCenterFunnelLabels]:[r.StiNoneLabels,r.StiCenterFunnelLabels,r.StiOutsideRightFunnelLabels,r.StiOutsideLeftFunnelLabels]},o.prototype.createNew=function(){return new o},o}(r.StiArea);r.StiFunnelArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiGanttAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiGanttArea||(o.implementsStiGanttArea=e.prototype.implements.call(this).concat([r.IStiClusteredBarArea,r.IStiClusteredColumnArea,r.IStiArea,r.IStiAxisArea,i,r.IStiGanttArea,n])),o.implementsStiGanttArea},o.prototype.getDefaultSeriesType=function(){return r.StiGanttSeries},o.prototype.getSeriesTypes=function(){return[r.StiGanttSeries]},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels,r.StiValueAxisLabels,r.StiCenterAxisLabels,r.StiOutsideAxisLabels]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiGanttArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredBarArea);r.StiGanttArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiPictorialAreaCoreXF(t),t.colorEach=!0,t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiPictorialArea||(o.implementsStiPictorialArea=e.prototype.implements.call(this).concat([i,r.IStiPictorialArea,r.IStiArea,n])),o.implementsStiPictorialArea},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("RoundValues",this.roundValues),r.addPropertyBool("Actual",this.actual),r},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiPictorialArea},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"roundValues",{get:function(){return this._roundValues},set:function(e){this._roundValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"actual",{get:function(){return this._actual},set:function(e){this._actual=e},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesLabelsType=function(){return r.StiNoneLabels},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels]},o.prototype.getDefaultSeriesType=function(){return r.StiPictorialSeries},o.prototype.getSeriesTypes=function(){return[r.StiPictorialSeries]},o.prototype.createNew=function(){return new o},o}(r.StiArea);r.StiPictorialArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.System.Enum,o=function(e){function o(){var r=e.call(this)||this;return r._radarStyle=t.StiRadarStyle.Circle,r.xAxis=new t.StiXRadarAxis,r.yAxis=new t.StiYRadarAxis,r.interlacingHor=new t.StiInterlacingHor,r.interlacingVert=new t.StiInterlacingVert,r.gridLinesHor=new t.StiRadarGridLinesHor,r.gridLinesVert=new t.StiRadarGridLinesVert,r}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRadarArea||(o.implementsStiRadarArea=e.prototype.implements.call(this).concat([r,t.IStiRadarArea,t.IStiArea,i])),o.implementsStiRadarArea},o.prototype.saveToJsonObject=function(r){var i=e.prototype.saveToJsonObject.call(this,r);return i.addPropertyJObject("InterlacingHor",this._interlacingHor.saveToJsonObject(r)),i.addPropertyJObject("InterlacingVert",this._interlacingVert.saveToJsonObject(r)),i.addPropertyJObject("GridLinesHor",this._gridLinesHor.saveToJsonObject(r)),i.addPropertyJObject("GridLinesVert",this._gridLinesHor.saveToJsonObject(r)),i.addPropertyEnum("RadarStyle",t.StiRadarStyle,this._radarStyle,t.StiRadarStyle.Circle),i.addPropertyJObject("XAxis",this._xAxis.saveToJsonObject(r)),i.addPropertyJObject("YAxis",this._yAxis.saveToJsonObject(r)),i},o.prototype.loadFromJsonObject=function(r){e.prototype.loadFromJsonObject.call(this,r);for(var i=0,o=r.properties();i<o.length;i++){var a=o[i];switch(a.name){case"InterlacingHor":this._interlacingHor.loadFromJsonObject(a.value);break;case"InterlacingVert":this._interlacingVert.loadFromJsonObject(a.value);break;case"GridLinesHor":this._gridLinesHor.loadFromJsonObject(a.value);break;case"GridLinesVert":this._gridLinesVert.loadFromJsonObject(a.value);break;case"RadarStyle":this._radarStyle=n.parse(t.StiRadarStyle,a.value.toString());break;case"XAxis":this._xAxis.loadFromJsonObject(a.value),this._xAxis.sti_as(t.StiRadarAxis).jsonLoadFromJsonObjectArea&&(this._xAxis.sti_as(t.StiRadarAxis).jsonLoadFromJsonObjectArea=!1,this._xAxis.area=this);break;case"YAxis":this._yAxis.loadFromJsonObject(a.value),this._yAxis.sti_as(t.StiRadarAxis).jsonLoadFromJsonObjectArea&&(this._yAxis.sti_as(t.StiRadarAxis).jsonLoadFromJsonObjectArea=!1,this._yAxis.area=this);break}}},o.prototype.loadFromXml=function(r){e.prototype.loadFromXml.call(this,r);for(var i=0;i<r.childNodes.length;i++){var o=r.childNodes[i];switch(o.nodeName){case"InterlacingHor":this._interlacingHor.loadFromXml(o);break;case"InterlacingVert":this._interlacingVert.loadFromXml(o);break;case"GridLinesHor":this._gridLinesHor.loadFromXml(o);break;case"GridLinesVert":this._gridLinesVert.loadFromXml(o);break;case"RadarStyle":this._radarStyle=n.parse(t.StiRadarStyle,o.textContent);break;case"XAxis":this._xAxis.loadFromXml(o),this._xAxis.area=this;break;case"YAxis":this._yAxis.loadFromXml(o),this._yAxis.area=this;break}}},o.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.interlacingHor=this.interlacingHor.clone(),t.interlacingVert=this.interlacingVert.clone(),t.gridLinesHor=this.gridLinesHor.clone(),t.gridLinesVert=this.gridLinesVert.clone(),t.xAxis=this.xAxis.clone(),t.yAxis=this.yAxis.clone(),t},o.prototype.getDefaultSeriesLabelsType=function(){return t.StiNoneLabels},o.prototype.getSeriesLabelsTypes=function(){return[t.StiNoneLabels,t.StiOutsideBaseAxisLabels,t.StiOutsideEndAxisLabels,t.StiOutsideAxisLabels,t.StiValueAxisLabels]},Object.defineProperty(o.prototype,"interlacingHor",{get:function(){return this._interlacingHor},set:function(e){this._interlacingHor=e,null!=this._interlacingHor&&(this._interlacingHor.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"interlacingVert",{get:function(){return this._interlacingVert},set:function(e){this._interlacingVert=e,null!=this._interlacingVert&&(this._interlacingVert.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"gridLinesHor",{get:function(){return this._gridLinesHor},set:function(e){this._gridLinesHor=e,null!=this._gridLinesHor&&(this._gridLinesHor.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"gridLinesVert",{get:function(){return this._gridLinesVert},set:function(e){this._gridLinesVert=e,null!=this._gridLinesVert&&(this._gridLinesVert.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"radarStyle",{get:function(){return this._radarStyle},set:function(e){this._radarStyle!=e&&(this._radarStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"xAxis",{get:function(){return this._xAxis},set:function(e){this._xAxis=e,null!=this._xAxis&&(this._xAxis.area=this)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"yAxis",{get:function(){return this._yAxis},set:function(e){this._yAxis=e,null!=this._yAxis&&(this._yAxis.area=this)},enumerable:!0,configurable:!0}),o}(t.StiArea);t.StiRadarArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiRadarAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRadarAreaArea||(o.implementsStiRadarAreaArea=e.prototype.implements.call(this).concat([i,r.IStiRadarArea,r.IStiArea,r.IStiRadarAreaArea,n])),o.implementsStiRadarAreaArea},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadarAreaArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesType=function(){return r.StiRadarAreaSeries},o.prototype.getSeriesTypes=function(){return[r.StiRadarPointSeries,r.StiRadarLineSeries,r.StiRadarAreaSeries]},o.prototype.createNew=function(){return new o},o}(r.StiRadarArea);r.StiRadarAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiRadarLineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRadarLineArea||(o.implementsStiRadarLineArea=e.prototype.implements.call(this).concat([i,r.IStiRadarArea,r.IStiArea,n,r.IStiRadarLineArea])),o.implementsStiRadarLineArea},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadarLineArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesType=function(){return r.StiRadarLineSeries},o.prototype.getSeriesTypes=function(){return[r.StiRadarPointSeries,r.StiRadarLineSeries,r.StiRadarAreaSeries]},o.prototype.createNew=function(){return new o},o}(r.StiRadarArea);r.StiRadarLineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiRadarPointAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRadarPointArea||(o.implementsStiRadarPointArea=e.prototype.implements.call(this).concat([i,r.IStiRadarPointArea,r.IStiRadarArea,r.IStiArea,n])),o.implementsStiRadarPointArea},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadarPointArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesType=function(){return r.StiRadarPointSeries},o.prototype.getSeriesTypes=function(){return[r.StiRadarPointSeries,r.StiRadarLineSeries,r.StiRadarAreaSeries]},o.prototype.createNew=function(){return new o},o}(r.StiRadarArea);r.StiRadarPointArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiRangeAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRangeArea||(o.implementsStiRangeArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiRangeArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiRangeArea},o.prototype.getDefaultSeriesType=function(){return r.StiRangeSeries},o.prototype.getSeriesTypes=function(){return[r.StiRangeSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiRangeArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiRangeArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiRangeBarAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRangeBarArea||(o.implementsStiRangeBarArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiRangeBarArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiRangeBarArea},o.prototype.getDefaultSeriesType=function(){return r.StiRangeBarSeries},o.prototype.getSeriesTypes=function(){return[r.StiRangeBarSeries]},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels,r.StiInsideBaseAxisLabels,r.StiOutsideBaseAxisLabels,r.StiOutsideAxisLabels,r.StiLeftAxisLabels,r.StiValueAxisLabels,r.StiRightAxisLabels]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiRangeBarArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiRangeBarArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiSplineRangeAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSplineRangeArea||(o.implementsStiSplineRangeArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiAxisArea,r.IStiClusteredColumnArea,r.IStiSplineRangeArea,i,n])),o.implementsStiSplineRangeArea},o.prototype.getDefaultSeriesType=function(){return r.StiSplineRangeSeries},o.prototype.getSeriesTypes=function(){return[r.StiSplineRangeSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSplineRangeArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiSplineRangeArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiSteppedRangeAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSteppedRangeArea||(o.implementsStiSteppedRangeArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiClusteredColumnArea,r.IStiSteppedRangeArea,r.IStiAxisArea,i,n])),o.implementsStiSteppedRangeArea},o.prototype.getDefaultSeriesType=function(){return r.StiSteppedRangeSeries},o.prototype.getSeriesTypes=function(){return[r.StiSteppedRangeSeries]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSteppedRangeArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiSteppedRangeArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStackedAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedAreaArea||(o.implementsStiStackedAreaArea=e.prototype.implements.call(this).concat([r.IStiStackedColumnArea,r.IStiArea,r.IStiAxisArea,r.IStiStackedAreaArea,i,n])),o.implementsStiStackedAreaArea},o.prototype.getDefaultSeriesType=function(){return r.StiStackedAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedAreaArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiStackedColumnArea);r.StiStackedAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStackedLineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedLineArea||(o.implementsStiStackedLineArea=e.prototype.implements.call(this).concat([r.IStiStackedLineArea,r.IStiArea,r.IStiAxisArea,r.IStiStackedColumnArea,i,n])),o.implementsStiStackedLineArea},o.prototype.getDefaultSeriesType=function(){return r.StiStackedLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedLineArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiStackedColumnArea);r.StiStackedLineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStackedSplineAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedSplineArea||(o.implementsStiStackedSplineArea=e.prototype.implements.call(this).concat([r.IStiStackedSplineArea,r.IStiStackedColumnArea,r.IStiArea,r.IStiAxisArea,i,n])),o.implementsStiStackedSplineArea},o.prototype.getDefaultSeriesType=function(){return r.StiStackedSplineAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedSplineArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiStackedColumnArea);r.StiStackedSplineArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStackedSplineAreaAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedSplineAreaArea||(o.implementsStiStackedSplineAreaArea=e.prototype.implements.call(this).concat([r.IStiAxisArea,r.IStiStackedColumnArea,r.IStiArea,r.IStiStackedSplineAreaArea,i,n])),o.implementsStiStackedSplineAreaArea},o.prototype.getDefaultSeriesType=function(){return r.StiStackedSplineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedSplineAreaArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiStackedColumnArea);r.StiStackedSplineAreaArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStockAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStockArea||(o.implementsStiStockArea=e.prototype.implements.call(this).concat([r.IStiArea,r.IStiStockArea,r.IStiClusteredColumnArea,r.IStiAxisArea,i,n])),o.implementsStiStockArea},o.prototype.getDefaultSeriesType=function(){return r.StiStockSeries},o.prototype.getSeriesTypes=function(){return[r.StiStockSeries]},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels]},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStockArea},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnArea);r.StiStockArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiTreemapAreaCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiTreemapArea||(o.implementsStiTreemapArea=e.prototype.implements.call(this).concat([i,r.IStiTreemapArea,n])),o.implementsStiTreemapArea},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiTreemapArea},enumerable:!0,configurable:!0}),o.prototype.getDefaultSeriesLabelsType=function(){return r.StiNoneLabels},o.prototype.getSeriesLabelsTypes=function(){return[r.StiNoneLabels,r.StiCenterTreemapLabels]},o.prototype.getDefaultSeriesType=function(){return r.StiTreemapSeries},o.prototype.getSeriesTypes=function(){return[r.StiTreemapSeries]},o.prototype.createNew=function(){return new o},o}(r.StiArea);r.StiTreemapArea=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.StiJson,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.System.Drawing.StringAlignment,s=e.System.Enum,l=e.System.Drawing.Color,u=e.System.Drawing.Font,c=e.System.Drawing.FontStyle,h=function(){function h(e,r,i,n,o,s,h,p){void 0===e&&(e=new u("Tahoma",12,c.Bold)),void 0===r&&(r=""),void 0===i&&(i=l.black),void 0===n&&(n=!0),void 0===o&&(o=a.Center),void 0===s&&(s=t.StiDirection.LeftToRight),void 0===h&&(h=!0),void 0===p&&(p=t.StiTitlePosition.Outside),this._allowApplyStyle=!0,this._font=new u("Tahoma",12,c.Bold),this._text="",this._color=l.black,this._antialiasing=!0,this._alignment=a.Center,this._position=t.StiTitlePosition.Outside,this._direction=t.StiDirection.LeftToRight,this._font=e,this._text=r,this._color=i,this._antialiasing=n,this._alignment=o,this._direction=s,this._allowApplyStyle=h,this._position=p,this._core=new t.StiAxisTitleCoreXF(this)}return h.prototype.implements=function(){return h.implementsStiAxisTitle||(h.implementsStiAxisTitle=[t.IStiAxisTitle,o,n]),h.implementsStiAxisTitle},h.prototype.saveToJsonObject=function(e){var n=new i;return n.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),n.addPropertyStringNullOfEmpty("Font",r.Serialize.font(this._font,"Tahoma",12,c.Bold)),n.addPropertyStringNullOfEmpty("Text",this._text),n.addPropertyStringNullOfEmpty("Color",r.Serialize.jColor(this._color,l.black)),n.addPropertyBool("Antialiasing",this._antialiasing,!0),n.addPropertyEnum("Alignment",a,this._alignment,a.Center),n.addPropertyEnum("Position",t.StiTitlePosition,this._position,t.StiTitlePosition.Outside),n.addPropertyEnum("Direction",t.StiDirection,this.direction,t.StiDirection.LeftToRight),n},h.prototype.loadFromJsonObject=function(e){for(var i=0,n=e.properties();i<n.length;i++){var o=n[i];switch(o.name){case"AllowApplyStyle":this._allowApplyStyle=o.value.toBoolean();break;case"Font":this._font=r.Deserialize.font(o.value.toString(),this._font);break;case"Text":this._text=o.value.toString();break;case"Color":this._color=r.Deserialize.color(o.value.toString());break;case"Antialiasing":this._antialiasing=o.value.toBoolean();break;case"Alignment":this._alignment=s.parse(a,o.value.toString());break;case"Position":this._position=s.parse(t.StiTitlePosition,o.value.toString());break;case"Direction":this.direction=s.parse(t.StiDirection,o.value.toString());break}}},h.prototype.loadFromXml=function(r){for(var i=0;i<r.childNodes.length;i++){var n=r.childNodes[i];switch(n.nodeName){case"AllowApplyStyle":this._allowApplyStyle=n.textContent.toBoolean();break;case"Font":case"fn":this._font=e.System.Convert.toFont(n.textContent);break;case"Text":case"text":this._text=n.textContent.toString();break;case"Color":this._color=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Antialiasing":this._antialiasing=n.textContent.toBoolean();break;case"Alignment":this._alignment=s.parse(a,n.textContent);break;case"Position":this._position=s.parse(t.StiTitlePosition,n.textContent);break;case"Direction":this.direction=s.parse(t.StiDirection,n.textContent);break}}},h.prototype.clone=function(){var e=this.memberwiseClone();return e.alignment=this.alignment,e.direction=this.direction,e.font=this.font.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.title=e),e},Object.defineProperty(h.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"font",{get:function(){return this._font},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"get",{set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"antialiasing",{get:function(){return this._antialiasing},set:function(e){this._antialiasing=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"alignment",{get:function(){return this._alignment},set:function(e){this._alignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!0,configurable:!0}),h}();t.StiAxisTitle=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.System.Drawing.StringAlignment,l=e.Base.Drawing.StiSolidBrush,u=e.Base.Drawing.StiBrush,c=e.System.Enum,h=e.System.Drawing.Color,p=e.System.Drawing.Font,f=e.System.Drawing.FontStyle,m=function(){function m(e,t,i,n,o,a,u,c,m){void 0===e&&(e=new p("Tahoma",12,f.Bold)),void 0===t&&(t=""),void 0===i&&(i=new l(h.saddleBrown)),void 0===n&&(n=!0),void 0===o&&(o=s.Center),void 0===a&&(a=r.StiChartTitleDock.Top),void 0===u&&(u=2),void 0===c&&(c=!1),void 0===m&&(m=!0),this._allowApplyStyle=!0,this._font=new p("Tahoma",12,f.Bold),this._text="",this._brush=new l(h.saddleBrown),this._antialiasing=!0,this._alignment=s.Center,this._dock=r.StiChartTitleDock.Top,this._spacing=2,this._visible=!1,this._chart=null,this.core=new r.StiChartTitleCoreXF(this),this.font=e,this.text=t,this.brush=i,this.antialiasing=n,this.alignment=o,this.dock=a,this.spacing=u,this.visible=c,this.allowApplyStyle=m}return m.prototype.implements=function(){return m.implementsStiChartTitle||(m.implementsStiChartTitle=[r.IStiChartTitle,a,o]),m.implementsStiChartTitle},m.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyStringNullOfEmpty("Font",i.Serialize.font(this._font,"Tahoma",12,f.Bold)),t.addPropertyStringNullOfEmpty("Text",this._text),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t.addPropertyBool("Antialiasing",this._antialiasing,!0),t.addPropertyEnum("Alignment",s,this._alignment,s.Center),t.addPropertyEnum("Dock",r.StiChartTitleDock,this._dock,r.StiChartTitleDock.Top),t.addPropertyNumber("Spacing",this._spacing,2),t.addPropertyBool("Visible",this._visible),t},m.prototype.loadFromJsonObject=function(e){for(var t=0,n=e.properties();t<n.length;t++){var o=n[t];switch(o.name){case"AllowApplyStyle":this.allowApplyStyle=o.value.toBoolean();break;case"Font":this._font=i.Deserialize.font(o.value.toString(),this._font);break;case"Text":this._text=o.value.toString();break;case"Brush":this._brush=i.Deserialize.brush(o.value.toString());break;case"Antialiasing":this._antialiasing=o.value.toBoolean();break;case"Alignment":this._alignment=c.parse(s,o.value.toString());break;case"Dock":this._dock=c.parse(r.StiChartTitleDock,o.value.toString());break;case"Spacing":this._spacing=o.value.toNumber();break;case"Visible":this._visible=o.value.toBoolean();break}}},m.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"AllowApplyStyle":this.allowApplyStyle=n.textContent.toBoolean();break;case"Font":case"fn":this._font=e.System.Convert.toFont(n.textContent);break;case"Text":case"text":this._text=n.textContent;break;case"Brush":case"bh":this._brush=u.convertToBrush(n.textContent);break;case"Antialiasing":this._antialiasing=n.textContent.toBoolean();break;case"Alignment":this._alignment=c.parse(s,n.textContent);break;case"Dock":this._dock=c.parse(r.StiChartTitleDock,n.textContent);break;case"Spacing":this._spacing=n.textContent.toNumber();break;case"Visible":this._visible=n.textContent.toBoolean();break}}},Object.defineProperty(m.prototype,"componentId",{get:function(){return t.StiComponentId.StiChartTitle},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),m.prototype.clone=function(){var e=this.memberwiseClone();return e.alignment=this.alignment,e.font=this.font.clone(),e.brush=this.brush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.chartTitle=e),e},Object.defineProperty(m.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.chart&&this.core.applyStyle(this.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"antialiasing",{get:function(){return this._antialiasing},set:function(e){this._antialiasing=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"alignment",{get:function(){return this._alignment},set:function(e){this._alignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"dock",{get:function(){return this._dock},set:function(e){this._dock=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"spacing",{get:function(){return this._spacing},set:function(e){this._spacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),m}();r.StiChartTitle=m}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiPenStyle,l=e.System.Enum,u=e.System.Drawing.Color,c=e.Base.Services.StiService,h=e.System.Drawing.Font,p=function(c){function p(){var e=c.call(this)||this;return e._allowApplyStyle=!0,e._antialiasing=!0,e._position=r.StiConstantLines_StiTextPosition.LeftTop,e._font=new h("Arial",7),e._text="",e._titleVisible=!0,e._orientation=r.StiConstantLines_StiOrientation.Horizontal,e._lineWidth=1,e._lineStyle=s.Solid,e._lineColor=u.black,e._showInLegend=!0,e._showBehind=!1,e._axisValue="1",e._visible=!0,e._core=new r.StiConstantLinesCoreXF(e),e}return __extends(p,c),p.prototype.implements=function(){return p.implementsStiConstantLines||(p.implementsStiConstantLines=c.prototype.implements.call(this).concat([r.IStiConstantLines,a,o])),p.implementsStiConstantLines},p.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("AllowApplyStyle",this.allowApplyStyle,!0),t.addPropertyBool("Antialiasing",this.antialiasing,!0),t.addPropertyEnum("Position",r.StiConstantLines_StiTextPosition,this._position,r.StiConstantLines_StiTextPosition.LeftTop),t.addPropertyStringNullOfEmpty("Font",i.Serialize.font(this.font,"Arial",7)),t.addPropertyStringNullOfEmpty("Text",this._text),t.addPropertyBool("TitleVisible",this._titleVisible,!0),t.addPropertyEnum("Orientation",r.StiConstantLines_StiOrientation,this._orientation,r.StiConstantLines_StiOrientation.Horizontal),t.addPropertyNumber("LineWidth",this._lineWidth,1),t.addPropertyEnum("LineStyle",s,this._lineStyle,s.Solid),t.addPropertyStringNullOfEmpty("LineColor",i.Serialize.jColor(this._lineColor,u.black)),t.addPropertyBool("ShowInLegend",this.showInLegend,!0),t.addPropertyBool("ShowBehind",this.showBehind),t.addPropertyString("AxisValue",this.axisValue,"1"),t.addPropertyBool("Visible",this.visible,!0),t},p.prototype.loadFromJsonObject=function(e){for(var t=0,n=e.properties();t<n.length;t++){var o=n[t];switch(o.name){case"AllowApplyStyle":this.allowApplyStyle=o.value.toBoolean();break;case"Antialiasing":this.antialiasing=o.value.toBoolean();break;case"Position":this._position=l.parse(r.StiConstantLines_StiTextPosition,o.value.toString());break;case"Font":this.font=i.Deserialize.font(o.value.toString(),this.font);break;case"Text":this._text=o.value.toString();break;case"TitleVisible":this._titleVisible=o.value.toBoolean();break;case"Orientation":this._orientation=l.parse(r.StiConstantLines_StiOrientation,o.value.toString());break;case"LineWidth":this._lineWidth=o.value.toNumber();break;case"LineStyle":this._lineStyle=l.parse(s,o.value.toString());break;case"LineColor":this.lineColor=i.Deserialize.color(o.value.toString());break;case"ShowInLegend":this.showInLegend=o.value.toBoolean();break;case"ShowBehind":this.showBehind=o.value.toBoolean();break;case"AxisValue":this.axisValue=o.value.toString();break;case"Visible":this.visible=o.value.toBoolean();break}}},p.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"AllowApplyStyle":this.allowApplyStyle=n.textContent.toBoolean();break;case"Antialiasing":this.antialiasing=n.textContent.toBoolean();break;case"Position":this._position=l.parse(r.StiConstantLines_StiTextPosition,n.textContent);break;case"Font":case"fn":this.font=e.System.Convert.toFont(n.textContent);break;case"Text":case"text":this._text=n.textContent;break;case"TitleVisible":this._titleVisible=n.textContent.toBoolean();break;case"Orientation":this._orientation=l.parse(r.StiConstantLines_StiOrientation,n.textContent.toString());break;case"LineWidth":this._lineWidth=n.textContent.toNumber();break;case"LineStyle":this._lineStyle=l.parse(s,n.textContent.toString());break;case"LineColor":this.lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"ShowInLegend":this.showInLegend=n.textContent.toBoolean();break;case"ShowBehind":this.showBehind=n.textContent.toBoolean();break;case"AxisValue":this.axisValue=n.textContent;break;case"Visible":this.visible=n.textContent.toBoolean();break}}},Object.defineProperty(p.prototype,"componentId",{get:function(){return t.StiComponentId.StiConstantLines},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),p.prototype.clone=function(){var e=this.memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.constantLines=e),e},Object.defineProperty(p.prototype,"serviceCategory",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"ServiceType",{get:function(){return p},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.chart&&this.core.applyStyle(this.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"antialiasing",{get:function(){return this._antialiasing},set:function(e){this._antialiasing=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"titleVisible",{get:function(){return this._titleVisible},set:function(e){this._titleVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){this._lineWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"showInLegend",{get:function(){return this._showInLegend},set:function(e){this._showInLegend=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"showBehind",{get:function(){return this._showBehind},set:function(e){this._showBehind=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"axisValue",{get:function(){return this._axisValue},set:function(e){this._axisValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),p.prototype.toString=function(){return this.serviceName},p}(c);r.StiConstantLines=p}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.EventArgs,o=e.Base.Localization.StiLocalization,a=e.System.Collections.CollectionBase,s=function(e){function a(){var t=e.call(this)||this;return t._chart=null,t}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiConstantLinesCollection||(a.implementsStiConstantLinesCollection=e.prototype.implements.call(this).concat([i,t.IStiApplyStyle,t.IStiConstantLinesCollection])),a.implementsStiConstantLinesCollection},a.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new r,i=0,n=0,o=this.list;n<o.length;n++){var a=o[n];t.addPropertyJObject(i.toString(),a.saveToJsonObject(e)),i++}return t},a.prototype.loadFromJsonObject=function(e){for(var r=0,i=e.properties();r<i.length;r++){var n=i[r],o=new t.StiConstantLines;o.chart=this._chart,this.add(o),o.loadFromJsonObject(n.value)}},a.prototype.loadFromXml=function(e){for(var r=0;r<e.childNodes.length;r++){var i=e.childNodes[r];if(null==i.attributes)continue;if(null!=i.attributes.getNamedItem("type")&&"Stimulsoft.Report.Chart.StiConstantLines"==i.attributes.getNamedItem("type").value){var n=new t.StiConstantLines;n.chart=this._chart,this.add(n),n.loadFromXml(i)}}},a.prototype.applyStyle=function(e){for(var t=0,r=this.list;t<r.length;t++){r[t].core.applyStyle(e)}},a.prototype.getConstantLineTitle=function(){var e=o.get("Chart","ConstantLine"),t=e,r=1,i=!0;while(i){t=e+" "+r.toString(),i=!1;for(var n=0,a=this.list;n<a.length;n++){if(a[n].text==t){i=!0;break}}r++}return t},a.prototype.addCore=function(e){null!=this.chart&&(String.isNullOrEmpty(e.text)&&(e.text=this.getConstantLineTitle()),e.chart=this.chart),this.list.add(e)},a.prototype.add=function(e){this.addCore(e),this.invokeConstantLinesAdded(e,this.list.count-1)},a.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.addCore(i),this.invokeConstantLinesAdded(i,this.list.count-1)}},a.prototype.addRange2=function(e){for(var t=0,r=e.list;t<r.length;t++){var i=r[t];this.addCore(i),this.invokeConstantLinesAdded(i,this.list.count-1)}},a.prototype.contains=function(e){return this.list.contains(e)},a.prototype.indexOf=function(e){return this.list.indexOf(e)},a.prototype.insert=function(e,t){this.list.insert(e,t),this.invokeConstantLinesAdded(t,e)},a.prototype.onClear=function(){while(this.list.count>0)this.invokeConstantLinesRemoved(this.list[0],0),this.list.removeAt(0)},a.prototype.remove=function(e){this.invokeConstantLinesRemoved(e,this.list.indexOf(e)),this.list.remove(e)},a.prototype.getByIndex=function(e){return this.list[e]},a.prototype.setByIndex=function(e,t){this.list[e]=t},a.prototype.onConstantLinesAdded=function(e){},a.prototype.invokeConstantLinesAdded=function(e,t){null!=this.constantLinesAdded&&this.constantLinesAdded(e,n.empty)},a.prototype.onConstantLinesRemoved=function(e){},a.prototype.invokeConstantLinesRemoved=function(e,t){null!=this.constantLinesRemoved&&this.constantLinesRemoved(e,n.empty)},Object.defineProperty(a.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),a}(a);t.StiConstantLinesCollection=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.EventArgs,i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._series=null,t}return __extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.valueObject},set:function(e){this.valueObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this._index},set:function(e){this._index=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){this._series=e},enumerable:!0,configurable:!0}),t}(r);t.StiGetTitleEventArgs=i}(r=t.Events||(t.Events={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.EventArgs,i=function(e){function t(t,r,i){var n=e.call(this)||this;return n._seriesIndex=t,n._series=r,n._color=i,n}return __extends(t,e),Object.defineProperty(t.prototype,"seriesIndex",{get:function(){return this._seriesIndex},set:function(e){this._seriesIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){this._series=e},enumerable:!0,configurable:!0}),t}(r);t.StiNewAutoSeriesEventArgs=i}(r=t.Events||(t.Events={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.toString=function(){return"ProcessChart"},t}(e.StiEvent);e.StiProcessChartEvent=t}(t=e.Events||(e.Events={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.System.Collections.CollectionBase,a=e.System.Enum,s=e.System.Text.XMLConvert,l=e.Report.Components.StiFilterCondition,u=e.Report.Components.StiFilterItem,c=e.Report.Components.StiFilterDataType,h=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiChartFiltersCollection||(o.implementsStiChartFiltersCollection=[i,n]),o.implementsStiChartFiltersCollection},o.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new r,i=0,n=0,o=this.list;n<o.length;n++){var a=o[n];t.addPropertyJObject(i.toString(),a.saveToJsonObject(e)),i++}return t},o.prototype.loadFromJsonObject=function(e){for(var r=0,i=e.properties();r<i.length;r++){var n=i[r],o=new t.StiChartFilter;this.add(o),o.loadFromJsonObject(n.value)}},o.prototype.loadFromXml=function(e){for(var r=0;r<e.childNodes.length;r++){var i=e.childNodes[r];if("value"==i.nodeName){var n=i.textContent.split(","),o=n[2];"GreaterThen"==o&&(o="GreaterThan"),"GreaterThenOrEqualTo"==o&&(o="GreaterThanOrEqualTo"),"LessThen"==o&&(o="LessThan"),"LessThenOrEqualTo"==o&&(o="LessThanOrEqualTo");var h=new t.StiChartFilter(a.parse(u,n[0]),a.parse(c,n[1]),a.parse(l,o),s.decodeName(n[3]));this.add(h)}}},o.prototype.clone=function(){for(var e=new o,t=0,r=this.list;t<r.length;t++){var i=r[t];e.add(i.clone())}return e},o.prototype.add=function(e){this.list.add(e),null==e.filters&&(e.filters=this)},o.prototype.addRange=function(e){for(var t=0,r=e.list;t<r.length;t++){var i=r[t];this.add(i)}},o.prototype.addRange2=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.add(i)}},o.prototype.contains=function(e){return this.list.contains(e)},o.prototype.indexOf=function(e){return this.list.indexOf(e)},o.prototype.insert=function(e,t){this.list.insert(e,t)},o.prototype.remove=function(e){this.list.remove(e)},o.prototype.getByIndex=function(e){return this.list[e]},o.prototype.setByIndex=function(e,t){this.list[e]=t},o}(o);t.StiChartFiltersCollection=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(e,t,r,i,n,o,a,s,l,u,c,h){this.argument=e,this.value=t,this.valueEnd=r,this.weight=i,this.valueOpen=n,this.valueClose=o,this.valueLow=a,this.valueHigh=s,this.title=l,this.key=u,this.color=c,this.toolTip=h}return e}();e.StiDataItem=t;var r=function(){function t(t,r){this.directionFactor=1,this.sortType=e.StiSeriesSortType.None,this.directionFactor=1,r==e.StiSeriesSortDirection.Descending&&(this.directionFactor=-1),this.sortType=t}return t.prototype.compare=function(t,r){var i=null,n=null;if(this.sortType==e.StiSeriesSortType.Value?(i=t.value,n=r.value):(i=t.argument,n=r.argument),null==i&&null==n)return 0;if(null==i)return 1;if(null==n)return-1;return i.compareTo(n)*this.directionFactor},t}();e.StiDataItemComparer=r}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiPenStyle,l=e.System.Enum,u=e.System.Drawing.Color,c=function(){function c(e,t,i,n){void 0===e&&(e=u.silver),void 0===t&&(t=s.Solid),void 0===i&&(i=!0),void 0===n&&(n=!0),this.needSetAreaJsonPropertyInternal=!1,this._allowApplyStyle=!0,this._color=u.silver,this._style=s.Solid,this._visible=!0,this._color=e,this._style=t,this._visible=i,this._allowApplyStyle=n,this._core=new r.StiRadarGridLinesCoreXF(this)}return c.prototype.implements=function(){return c.implementsStiRadarGridLines||(c.implementsStiRadarGridLines=[o,r.IStiRadarGridLines,a]),c.implementsStiRadarGridLines},c.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyStringNullOfEmpty("Color",i.Serialize.jColor(this._color,u.silver)),t.addPropertyEnum("Style",s,this._style,s.Solid),t.addPropertyBool("Visible",this._visible,!0),null!=this._area&&t.addPropertyBool("Area",!0),t},c.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"AllowApplyStyle":this._allowApplyStyle=n.value.toBoolean();break;case"Color":this._color=i.Deserialize.color(n.value.toString());break;case"Style":this._style=l.parse(s,n.value.toString());break;case"Visible":this._visible=n.value.toBoolean();break;case"Area":this.needSetAreaJsonPropertyInternal=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"AllowApplyStyle":this._allowApplyStyle=i.textContent.toBoolean();break;case"Color":this._color=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"Style":this._style=l.parse(s,i.textContent.toString());break;case"Visible":this._visible=i.textContent.toBoolean();break;case"Area":this.needSetAreaJsonPropertyInternal=i.textContent.toBoolean();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadarGridLines},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var e=this.memberwiseClone();return e.style=this.style,null!=this.core&&(e.core=this.core.clone(),e.core.gridLines=e),e},Object.defineProperty(c.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"style",{get:function(){return this._style},set:function(e){this._style=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"area",{get:function(){return this._area},set:function(e){this._area=e},enumerable:!0,configurable:!0}),c}();r.StiRadarGridLines=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.Base.Drawing.StiPenStyle,o=e.System.Drawing.Color,a=function(e){function a(t,r,i,a){return void 0===t&&(t=o.silver),void 0===r&&(r=n.Solid),void 0===i&&(i=!0),void 0===a&&(a=!0),e.call(this,t,r,i,a)||this}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiRadarGridLinesHor||(a.implementsStiRadarGridLinesHor=e.prototype.implements.call(this).concat([r,t.IStiRadarGridLines,t.IStiRadarGridLinesHor,i])),a.implementsStiRadarGridLinesHor},a}(t.StiRadarGridLines);t.StiRadarGridLinesHor=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=e.Base.Drawing.StiPenStyle,o=e.System.Drawing.Color,a=function(e){function a(t,r,i,a){return void 0===t&&(t=o.silver),void 0===r&&(r=n.Solid),void 0===i&&(i=!0),void 0===a&&(a=!0),e.call(this,t,r,i,a)||this}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiRadarGridLinesVert||(a.implementsStiRadarGridLinesVert=e.prototype.implements.call(this).concat([r,t.IStiRadarGridLines,t.IStiRadarGridLinesVert,i])),a.implementsStiRadarGridLinesVert},a}(t.StiRadarGridLines);t.StiRadarGridLinesVert=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiSolidBrush,l=e.Base.Drawing.StiBrush,u=e.System.Enum,c=e.System.Drawing.Color,h=e.System.Drawing.Size,p=e.System.Drawing.Font,f=e.System.Drawing.FontStyle,m=function(){function m(){this._allowApplyStyle=!0,this._chart=null,this._hideSeriesWithEmptyTitle=!1,this._showShadow=!0,this._borderColor=c.gray,this._brush=new s(c.white),this._titleColor=c.gray,this._labelsColor=c.gray,this._direction=r.StiLegendDirection.TopToBottom,this._horAlignment=r.StiLegendHorAlignment.Left,this._vertAlignment=r.StiLegendVertAlignment.Top,this._titleFont=new p("Arial",14,f.Bold),this._font=new p("Arial",8,f.Bold),this._visible=!0,this._markerVisible=!0,this._markerBorder=!0,this._markerSize=new h(10,10),this._markerAlignment=r.StiMarkerAlignment.Left,this._columns=2,this._horSpacing=4,this._vertSpacing=2,this._title="",this._size=new e.System.Drawing.Size(0,0),this._core=new r.StiLegendCoreXF(this)}return m.prototype.implements=function(){return m.implementsStiLegend||(m.implementsStiLegend=[o,a,r.IStiLegend]),m.implementsStiLegend},m.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyBool("HideSeriesWithEmptyTitle",this._hideSeriesWithEmptyTitle),t.addPropertyBool("ShowShadow",this._showShadow,!0),t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this._borderColor,c.gray)),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("TitleColor",i.Serialize.jColor(this._titleColor,c.gray)),t.addPropertyStringNullOfEmpty("LabelsColor",i.Serialize.jColor(this._labelsColor,c.gray)),t.addPropertyEnum("Direction",r.StiLegendDirection,this.direction,r.StiLegendDirection.TopToBottom),t.addPropertyEnum("HorAlignment",r.StiLegendHorAlignment,this.horAlignment,r.StiLegendHorAlignment.Left),t.addPropertyEnum("VertAlignment",r.StiLegendVertAlignment,this.vertAlignment,r.StiLegendVertAlignment.Top),t.addPropertyStringNullOfEmpty("TitleFont",i.Serialize.font(this._titleFont,"Arial",14,f.Bold)),t.addPropertyStringNullOfEmpty("Font",i.Serialize.font(this._font,"Arial",8)),t.addPropertyBool("Visible",this._visible,!0),t.addPropertyBool("MarkerVisible",this._markerVisible,!0),t.addPropertyBool("MarkerBorder",this._markerBorder,!0),t.addPropertyJObject("MarkerSize",i.Serialize.size(this._markerSize)),t.addPropertyEnum("MarkerAlignment",r.StiMarkerAlignment,this._markerAlignment,r.StiMarkerAlignment.Left),t.addPropertyNumber("Columns",this._columns,2),t.addPropertyNumber("HorSpacing",this._horSpacing,4),t.addPropertyNumber("VertSpacing",this._vertSpacing,2),t.addPropertyStringNullOfEmpty("Size",i.Serialize.sizeD(this._size)),t.addPropertyStringNullOfEmpty("Title",this._title),t},m.prototype.loadFromJsonObject=function(e){for(var t=0,n=e.properties();t<n.length;t++){var o=n[t];switch(o.name){case"AllowApplyStyle":this.allowApplyStyle=o.value.toBoolean();break;case"HideSeriesWithEmptyTitle":this._hideSeriesWithEmptyTitle=o.value.toBoolean();break;case"ShowShadow":this._showShadow=o.value.toBoolean();break;case"BorderColor":this._borderColor=i.Deserialize.color(o.value.toString());break;case"Brush":this._brush=i.Deserialize.brush(o.value.toString());break;case"TitleColor":this._titleColor=i.Deserialize.color(o.value.toString());break;case"LabelsColor":this._labelsColor=i.Deserialize.color(o.value.toString());break;case"Direction":this.direction=u.parse(r.StiLegendDirection,o.value.toString());break;case"HorAlignment":this.horAlignment=u.parse(r.StiLegendHorAlignment,o.value.toString());break;case"VertAlignment":this.vertAlignment=u.parse(r.StiLegendVertAlignment,o.value.toString());break;case"TitleFont":this._titleFont=i.Deserialize.font(o.value.toString(),this.font);break;case"Font":this._font=i.Deserialize.font(o.value.toString(),this.font);break;case"Visible":this._visible=o.value.toBoolean();break;case"MarkerVisible":this._markerVisible=o.value.toBoolean();break;case"MarkerBorder":this._markerBorder=o.value.toBoolean();break;case"MarkerSize":this._markerSize=i.Deserialize.size(o.value);break;case"MarkerAlignment":this.markerAlignment=u.parse(r.StiMarkerAlignment,o.value.toString());break;case"Columns":this._columns=o.value.toNumber();break;case"HorSpacing":this._horSpacing=o.value.toNumber();break;case"VertSpacing":this._vertSpacing=o.value.toNumber();break;case"Size":this._size=i.Deserialize.sizeD(o.value.toString());break;case"Title":this._title=o.value.toString();break}}},m.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"AllowApplyStyle":this.allowApplyStyle=n.textContent.toBoolean();break;case"HideSeriesWithEmptyTitle":this._hideSeriesWithEmptyTitle=n.textContent.toBoolean();break;case"ShowShadow":this._showShadow=n.textContent.toBoolean();break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Brush":case"bh":this._brush=l.convertToBrush(n.textContent);break;case"TitleColor":this._titleColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"LabelsColor":this._labelsColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Direction":this.direction=u.parse(r.StiLegendDirection,n.textContent);break;case"HorAlignment":case"ha":this.horAlignment=u.parse(r.StiLegendHorAlignment,n.textContent);break;case"VertAlignment":case"va":this.vertAlignment=u.parse(r.StiLegendVertAlignment,n.textContent);break;case"TitleFont":this._titleFont=e.System.Convert.toFont(n.textContent);break;case"Font":case"fn":this._font=e.System.Convert.toFont(n.textContent);break;case"Visible":this._visible=n.textContent.toBoolean();break;case"MarkerVisible":this._markerVisible=n.textContent.toBoolean();break;case"MarkerBorder":this._markerBorder=n.textContent.toBoolean();break;case"MarkerSize":this._markerSize=e.System.Drawing.Size.convertFromXml(n.textContent);break;case"MarkerAlignment":this.markerAlignment=u.parse(r.StiMarkerAlignment,n.textContent);break;case"Columns":this._columns=n.textContent.toNumber();break;case"HorSpacing":this._horSpacing=n.textContent.toNumber();break;case"VertSpacing":this._vertSpacing=n.textContent.toNumber();break;case"Size":this._size=e.System.Drawing.Size.convertFromXml(n.textContent);break;case"Title":this._title=n.textContent;break}}},Object.defineProperty(m.prototype,"componentId",{get:function(){return t.StiComponentId.StiLegend},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),m.prototype.clone=function(){var e=this.memberwiseClone();return e.brush=this.brush.clone(),e.font=this.font.clone(),e.titleFont=this.titleFont.clone(),e.direction=this.direction,e.horAlignment=this.horAlignment,e.vertAlignment=this.vertAlignment,e.markerAlignment=this.markerAlignment,null!=this.core&&(e.core=this.core.clone(),e.core.legend=e),e},Object.defineProperty(m.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=r&&this.core.applyStyle(this.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"hideSeriesWithEmptyTitle",{get:function(){return this._hideSeriesWithEmptyTitle},set:function(e){this._hideSeriesWithEmptyTitle=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"showShadow",{get:function(){return this._showShadow},set:function(e){this._showShadow=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"titleColor",{get:function(){return this._titleColor},set:function(e){this._titleColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"labelsColor",{get:function(){return this._labelsColor},set:function(e){this._labelsColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"horAlignment",{get:function(){return this._horAlignment},set:function(e){this._horAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"vertAlignment",{get:function(){return this._vertAlignment},set:function(e){this._vertAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"titleFont",{get:function(){return this._titleFont},set:function(e){this._titleFont=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"markerVisible",{get:function(){return this._markerVisible},set:function(e){this._markerVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"markerBorder",{get:function(){return this._markerBorder},set:function(e){this._markerBorder=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"markerAlignment",{get:function(){return this._markerAlignment},set:function(e){this._markerAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"columns",{get:function(){return this._columns},set:function(e){e>=1&&(this._columns=e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"horSpacing",{get:function(){return this._horSpacing},set:function(e){this._horSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"vertSpacing",{get:function(){return this._vertSpacing},set:function(e){this._vertSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!0,configurable:!0}),m}();r.StiLegend=m}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiSolidBrush,l=e.Base.Drawing.StiBrush,u=e.System.Enum,c=e.System.Drawing.Color,h=function(){function h(){this._showInLegend=!0,this._visible=!0,this._brush=new s(c.white),this._borderColor=c.black,this._size=7,this._angle=0,this._type=r.StiMarkerType.Circle,this._core=new r.StiMarkerCoreXF(this)}return h.prototype.implements=function(){return r.StiLineMarker.implementsStiMarker||(r.StiLineMarker.implementsStiMarker=[o,r.IStiMarker,a]),r.StiLineMarker.implementsStiMarker},h.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("ShowInLegend",this.showInLegend,!0),t.addPropertyBool("Visible",this.visible,!0),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this.brush)),t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this._borderColor,c.black)),t.addPropertyNumber("Size",this.size,7),t.addPropertyNumber("Angle",this.angle,0),t.addPropertyEnum("Type",r.StiMarkerType,this._type,r.StiMarkerType.Circle),t},h.prototype.loadFromJsonObject=function(e){for(var t=0,n=e.properties();t<n.length;t++){var o=n[t];switch(o.name){case"ShowInLegend":this._showInLegend=o.value.toBoolean();break;case"Visible":this._visible=o.value.toBoolean();break;case"Brush":this.brush=i.Deserialize.brush(o.value.toString());break;case"BorderColor":this._borderColor=i.Deserialize.color(o.value.toString());break;case"Size":this.size=o.value.toNumber();break;case"Angle":this.angle=o.value.toNumber();break;case"Type":this._type=u.parse(r.StiMarkerType,o.value.toString());break}}},h.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"ShowInLegend":this._showInLegend=n.textContent.toBoolean();break;case"Visible":this._visible=n.textContent.toBoolean();break;case"Brush":case"bh":this.brush=l.convertToBrush(n.textContent);break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Size":this.size=n.textContent.toNumber();break;case"Angle":this.angle=n.textContent.toNumber();break;case"Type":this._type=u.parse(r.StiMarkerType,n.textContent);break}}},Object.defineProperty(h.prototype,"componentId",{get:function(){return t.StiComponentId.StiMarker},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),h.prototype.clone=function(){var e=this.memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.marker=e),e},Object.defineProperty(h.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"showInLegend",{get:function(){return this._showInLegend},set:function(e){this._showInLegend=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e},enumerable:!0,configurable:!0}),h}();r.StiMarker=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.System.Drawing.Color,s=function(e){function s(){var t=e.call(this)||this;return t._step=15,t.visible=!1,t.borderColor=a.transparent,t.size=5,t}return __extends(s,e),s.prototype.implements=function(){return s.implementsStiLineMarker||(s.implementsStiLineMarker=e.prototype.implements.call(this).concat([n,r.IStiLineMarker,r.IStiMarker,o])),s.implementsStiLineMarker},s.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyNumber("Step",this.step,15),r.addPropertyNumber("Size",this.size,5),r.addPropertyBool("Visible",this.visible),r.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this.borderColor,a.transparent)),r},s.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"Step":this.step=n.value.toNumber();break}}},s.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Step":this.step=i.textContent.toNumber();break}}},Object.defineProperty(s.prototype,"componentId",{get:function(){return t.StiComponentId.StiLineMarker},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"step",{get:function(){return this._step},set:function(e){this._step=e},enumerable:!0,configurable:!0}),s}(r.StiMarker);r.StiLineMarker=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.jsonLoadFromJsonObjectArea=!1,this._allowApplyStyle=!0,this._visible=!0,this._visible=e,this._allowApplyStyle=t}return e.prototype.implements=function(){return e.implementsStiRadarAxis||(e.implementsStiRadarAxis=[i,t.IStiRadarAxis,n]),e.implementsStiRadarAxis},e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyBool("Visible",this.visible,!0),null!=this._area&&t.addPropertyBool("Area",!0),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var i=r[t];switch(i.name){case"AllowApplyStyle":this._allowApplyStyle=i.value.toBoolean();break;case"Visible":this.visible=i.value.toBoolean();break;case"Area":this.jsonLoadFromJsonObjectArea=i.value.toBoolean();break}}},e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"AllowApplyStyle":this._allowApplyStyle=r.textContent.toBoolean();break;case"Visible":this.visible=r.textContent.toBoolean();break;case"Area":this.jsonLoadFromJsonObjectArea=r.textContent.toBoolean();break}}},e.prototype.clone=function(){var e=this.memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.axis=e),e},Object.defineProperty(e.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"area",{get:function(){return this._area},set:function(e){this._area=e},enumerable:!0,configurable:!0}),e}();t.StiRadarAxis=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.StiJson,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=e.System.Drawing.Font,c=function(){function c(e,r,i,n,o,s,c,h,p,f,m){void 0===e&&(e=""),void 0===r&&(r=new u("Tahoma",8)),void 0===i&&(i=!0),void 0===n&&(n=!1),void 0===o&&(o=l.black),void 0===s&&(s=l.black),void 0===c&&(c=new a(l.gainsboro)),void 0===h&&(h=!0),void 0===p&&(p=!0),void 0===f&&(f=0),void 0===m&&(m=!1),this._rotationLabels=!0,this._textBefore="",this._textAfter="",this._allowApplyStyle=!0,this._drawBorder=!1,this._format="",this._font=new u("Tahoma",8),this._antialiasing=!0,this._color=l.black,this._borderColor=l.black,this._brush=new a(l.gainsboro),this._width=0,this._wordWrap=!1,this._format=e,this._font=r,this._antialiasing=i,this._drawBorder=n,this._color=o,this._borderColor=s,this._allowApplyStyle=h,this._brush=c,this._rotationLabels=p,this._width=f,this._wordWrap=m,this._core=new t.StiRadarAxisLabelsCoreXF(this)}return c.prototype.implements=function(){return c.implementsStiRadarAxisLabels||(c.implementsStiRadarAxisLabels=[n,t.IStiRadarAxisLabels,o]),c.implementsStiRadarAxisLabels},c.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyBool("RotationLabels",this._rotationLabels,!0),t.addPropertyStringNullOfEmpty("TextBefore",this._textBefore),t.addPropertyStringNullOfEmpty("TextAfter",this._textAfter),t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyBool("DrawBorder",this._drawBorder),t.addPropertyStringNullOfEmpty("Format",this._format),t.addPropertyStringNullOfEmpty("Font",r.Serialize.font(this._font,"Tahoma",8)),t.addPropertyBool("Antialiasing",this._antialiasing,!0),t.addPropertyStringNullOfEmpty("Color",r.Serialize.jColor(this._color,l.black)),t.addPropertyStringNullOfEmpty("BorderColor",r.Serialize.jColor(this._borderColor,l.black)),t.addPropertyStringNullOfEmpty("Brush",r.Serialize.jBrush(this._brush)),t.addPropertyNumber("Width",this._width,0),t.addPropertyBool("WordWrap",this._wordWrap),t},c.prototype.loadFromJsonObject=function(e){for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"RotationLabels":this._rotationLabels=n.value.toBoolean();break;case"TextBefore":this._textBefore=n.value.toString();break;case"TextAfter":this._textAfter=n.value.toString();break;case"AllowApplyStyle":this._allowApplyStyle=n.value.toBoolean();break;case"DrawBorder":this._drawBorder=n.value.toBoolean();break;case"Format":this._format=n.value.toString();break;case"Font":this._font=r.Deserialize.font(n.value.toString(),this._font);break;case"Antialiasing":this._antialiasing=n.value.toBoolean();break;case"Color":this._color=r.Deserialize.color(n.value.toString());break;case"BorderColor":this._borderColor=r.Deserialize.color(n.value.toString());break;case"Brush":this._brush=r.Deserialize.brush(n.value.toString());break;case"Width":this._width=n.value.toNumber();break;case"WordWrap":this._wordWrap=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"RotationLabels":this._rotationLabels=i.textContent.toBoolean();break;case"TextBefore":this._textBefore=i.textContent;break;case"TextAfter":this._textAfter=i.textContent;break;case"AllowApplyStyle":this._allowApplyStyle=i.textContent.toBoolean();break;case"DrawBorder":this._drawBorder=i.textContent.toBoolean();break;case"Format":this._format=i.textContent;break;case"Font":case"fn":this._font=e.System.Convert.toFont(i.textContent);break;case"Antialiasing":this._antialiasing=i.textContent.toBoolean();break;case"Color":this._color=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break;case"Width":this._width=i.textContent.toNumber();break;case"WordWrap":this._wordWrap=i.textContent.toBoolean();break}}},c.prototype.clone=function(){var e=this.memberwiseClone();return e.font=this.font.clone(),e.brush=this.brush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.labels=e),e},Object.defineProperty(c.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"rotationLabels",{get:function(){return this._rotationLabels},set:function(e){this._rotationLabels=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"textBefore",{get:function(){return this._textBefore},set:function(e){this._textBefore=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"textAfter",{get:function(){return this._textAfter},set:function(e){this._textAfter=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"drawBorder",{get:function(){return this._drawBorder},set:function(e){this._drawBorder!=e&&(this._drawBorder=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"antialiasing",{get:function(){return this._antialiasing},set:function(e){this._antialiasing=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap=e},enumerable:!0,configurable:!0}),c}();t.StiRadarAxisLabels=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(t,i,n){void 0===t&&(t=new r.StiRadarAxisLabels),void 0===i&&(i=!0),void 0===n&&(n=!0);var o=e.call(this,i,n)||this;return o._labels=new r.StiRadarAxisLabels,o.core=new r.StiXRadarAxisCoreXF(o),o._labels=t,o}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiXRadarAxis||(o.implementsStiXRadarAxis=e.prototype.implements.call(this).concat([r.IStiXRadarAxis,r.IStiRadarAxis,n,i])),o.implementsStiXRadarAxis},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyJObject("Labels",this._labels.saveToJsonObject(t)),r},o.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"Labels":this._labels.loadFromJsonObject(n.value);break}}},o.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Labels":this._labels.loadFromXml(i);break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiXRadarAxis},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),o.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.labels=this.labels.clone(),t},Object.defineProperty(o.prototype,"xCore",{get:function(){return this.core},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!0,configurable:!0}),o}(r.StiRadarAxis);r.StiXRadarAxis=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiPenStyle,s=e.System.Enum,l=e.System.Drawing.Color,u=function(u){function c(e,t,i,n,o,s,c){void 0===e&&(e=new r.StiAxisLabels),void 0===t&&(t=new r.StiAxisTicks),void 0===i&&(i=a.Solid),void 0===n&&(n=l.gray),void 0===o&&(o=1),void 0===s&&(s=!0),void 0===c&&(c=!0);var h=u.call(this,s,c)||this;return h._labels=new r.StiAxisLabels,h._ticks=new r.StiAxisTicks,h._lineStyle=a.Solid,h._lineColor=l.gray,h._lineWidth=1,h._info=new r.StiAxisInfoXF,h.core=new r.StiYRadarAxisCoreXF(h),h._labels=e,h._ticks=t,h._lineStyle=i,h._lineColor=n,h._lineWidth=o,h}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiYRadarAxis||(c.implementsStiYRadarAxis=u.prototype.implements.call(this).concat([r.IStiYRadarAxis,r.IStiRadarAxis,o,n])),c.implementsStiYRadarAxis},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.addPropertyJObject("Labels",this._labels.saveToJsonObject(e)),t.addPropertyJObject("Ticks",this._ticks.saveToJsonObject(e)),t.addPropertyEnum("LineStyle",a,this._lineStyle,a.Solid),t.addPropertyStringNullOfEmpty("LineColor",i.Serialize.jColor(this._lineColor,l.gray)),t.addPropertyNumber("LineWidth",this._lineWidth,1),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"Labels":this._labels.loadFromJsonObject(n.value);break;case"Ticks":this._ticks.loadFromJsonObject(n.value);break;case"LineStyle":this._lineStyle=s.parse(a,n.value.toString());break;case"LineColor":this._lineColor=i.Deserialize.color(n.value.toString());break;case"LineWidth":this._lineWidth=n.value.toNumber();break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Labels":this._labels.loadFromXml(i);break;case"Ticks":this._ticks.loadFromXml(i);break;case"LineStyle":this._lineStyle=s.parse(a,i.textContent);break;case"LineColor":this._lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"LineWidth":this._lineWidth=i.textContent.toNumber();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiYRadarAxis},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var e=u.prototype.clone.call(this);return e.lineStyle=this.lineStyle,e.labels=this.labels.clone(),e.ticks=this.ticks.clone(),e},Object.defineProperty(c.prototype,"yCore",{get:function(){return this.core},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"labels",{get:function(){return this._labels},set:function(e){this._labels=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"ticks",{get:function(){return this._ticks},set:function(e){this._ticks=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){this._lineWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"info",{get:function(){return this._info},set:function(e){this._info=e},enumerable:!0,configurable:!0}),c}(r.StiRadarAxis);r.StiYRadarAxis=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.System.Drawing.Size,l=e.Base.Drawing.StiSolidBrush,u=e.Base.Drawing.StiBrush,c=e.System.Enum,h=e.System.Drawing.Color,p=e.Base.Services.StiService,f=e.System.Drawing.Font,m=function(p){function m(){var e=null!==p&&p.apply(this,arguments)||this;return e._preventIntersection=!1,e._allowApplyStyle=!0,e._showZeros=!1,e._showNulls=!0,e._markerVisible=!1,e._markerSize=new s(8,6),e._markerAlignment=r.StiMarkerAlignment.Left,e._step=0,e._valueType=r.StiSeriesLabelsValueType.Value,e._valueTypeSeparator="-",e._legendValueType=r.StiSeriesLabelsValueType.Value,e._textBefore="",e._textAfter="",e._angle=0,e._format="",e._antialiasing=!0,e._visible=!0,e._drawBorder=!0,e._useSeriesColor=!1,e._labelColor=h.black,e._borderColor=h.black,e._brush=new l(h.white),e._font=new f("Arial",7),e._chart=null,e._wordWrap=!1,e._width=0,e}return __extends(m,p),m.prototype.implements=function(){return m.implementsStiSeriesLabels||(m.implementsStiSeriesLabels=p.prototype.implements.call(this).concat([o,r.IStiSeriesLabels,a])),m.implementsStiSeriesLabels},m.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyBool("PreventIntersection",this._preventIntersection),t.addPropertyBool("AllowApplyStyle",this.allowApplyStyle,!0),t.addPropertyJObject("Conditions",this.conditions.saveToJsonObject(e)),t.addPropertyBool("ShowZeros",this.showZeros),t.addPropertyBool("ShowNulls",this._showNulls,!0),t.addPropertyBool("MarkerVisible",this._markerVisible),t.addPropertyJObject("MarkerSize",i.Serialize.size(this._markerSize)),t.addPropertyEnum("MarkerAlignment",r.StiMarkerAlignment,this.markerAlignment,r.StiMarkerAlignment.Left),t.addPropertyNumber("Step",this._step),t.addPropertyEnum("ValueType",r.StiSeriesLabelsValueType,this.valueType,r.StiSeriesLabelsValueType.Value),t.addPropertyStringNullOfEmpty("ValueTypeSeparator",this.valueTypeSeparator),t.addPropertyEnum("LegendValueType",r.StiSeriesLabelsValueType,this.legendValueType,r.StiSeriesLabelsValueType.Value),t.addPropertyStringNullOfEmpty("TextBefore",this._textBefore),t.addPropertyStringNullOfEmpty("TextAfter",this._textAfter),t.addPropertyNumber("Angle",this.angle,0),t.addPropertyStringNullOfEmpty("Format",this._format),t.addPropertyBool("Antialiasing",this.antialiasing,!0),t.addPropertyBool("Visible",this.visible,!0),t.addPropertyBool("DrawBorder",this.drawBorder,!0),t.addPropertyBool("UseSeriesColor",this.useSeriesColor),t.addPropertyStringNullOfEmpty("LabelColor",i.Serialize.jColor(this.labelColor,h.black)),t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this.borderColor,h.black)),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this.brush)),t.addPropertyStringNullOfEmpty("Font",i.Serialize.font(this.font,"Arial",7)),t.addPropertyBool("WordWrap",this._wordWrap),t.addPropertyNumber("Width",this._width),t},m.prototype.loadFromJsonObject=function(e){for(var t=0,n=e.properties();t<n.length;t++){var o=n[t];switch(o.name){case"PreventIntersection":this._preventIntersection=o.value.toBoolean();break;case"AllowApplyStyle":this.allowApplyStyle=o.value.toBoolean();break;case"Conditions":this.conditions.loadFromJsonObject(o.value);break;case"ShowZeros":this._showZeros=o.value.toBoolean();break;case"ShowNulls":this._showNulls=o.value.toBoolean();break;case"MarkerVisible":this._markerVisible=o.value.toBoolean();break;case"MarkerSize":this._markerSize=i.Deserialize.size(o.value);break;case"MarkerAlignment":this.markerAlignment=c.parse(r.StiMarkerAlignment,o.value.toString());break;case"Step":this._step=o.value.toNumber();break;case"ValueType":this.valueType=c.parse(r.StiSeriesLabelsValueType,o.value.toString());break;case"ValueTypeSeparator":this.valueTypeSeparator=o.value.toString();break;case"LegendValueType":this.legendValueType=c.parse(r.StiSeriesLabelsValueType,o.value.toString());break;case"TextBefore":this._textBefore=o.value.toString();break;case"TextAfter":this._textAfter=o.value.toString();break;case"Angle":this.angle=o.value.toNumber();break;case"Format":this._format=o.value.toString();break;case"Antialiasing":this.antialiasing=o.value.toBoolean();break;case"Visible":this.visible=o.value.toBoolean();break;case"DrawBorder":this.drawBorder=o.value.toBoolean();break;case"UseSeriesColor":this.useSeriesColor=o.value.toBoolean();break;case"LabelColor":this.labelColor=i.Deserialize.color(o.value.toString());break;case"BorderColor":this.borderColor=i.Deserialize.color(o.value.toString());break;case"Brush":this.brush=i.Deserialize.brush(o.value.toString());break;case"Font":this.font=i.Deserialize.font(o.value.toString(),this.font);break;case"WordWrap":this._wordWrap=o.value.toBoolean();break;case"Width":this._width=o.value.toNumber();break}}},m.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"PreventIntersection":this._preventIntersection=n.textContent.toBoolean();break;case"AllowApplyStyle":this.allowApplyStyle=n.textContent.toBoolean();break;case"Conditions":this.conditions.loadFromXml(n);break;case"ShowZeros":this._showZeros=n.textContent.toBoolean();break;case"ShowNulls":this._showNulls=n.textContent.toBoolean();break;case"MarkerVisible":this._markerVisible=n.textContent.toBoolean();break;case"MarkerSize":this._markerSize=s.convertFromXml(n.textContent);break;case"MarkerAlignment":this.markerAlignment=c.parse(r.StiMarkerAlignment,n.textContent);break;case"Step":this._step=n.textContent.toNumber();break;case"ValueType":this.valueType=c.parse(r.StiSeriesLabelsValueType,n.textContent);break;case"ValueTypeSeparator":this.valueTypeSeparator=n.textContent.toString();break;case"LegendValueType":this.legendValueType=c.parse(r.StiSeriesLabelsValueType,n.textContent);break;case"TextBefore":this._textBefore=n.textContent;break;case"TextAfter":this._textAfter=n.textContent;break;case"Angle":this.angle=n.textContent.toNumber();break;case"Format":this._format=n.textContent;break;case"Antialiasing":this.antialiasing=n.textContent.toBoolean();break;case"Visible":this.visible=n.textContent.toBoolean();break;case"DrawBorder":this.drawBorder=n.textContent.toBoolean();break;case"UseSeriesColor":this.useSeriesColor=n.textContent.toBoolean();break;case"LabelColor":this.labelColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"BorderColor":this.borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Brush":case"bh":this.brush=u.convertToBrush(n.textContent);break;case"Font":case"fn":this.font=e.System.Convert.toFont(n.textContent);break;case"WordWrap":this._wordWrap=n.textContent.toBoolean();break;case"Width":this._width=n.textContent.toNumber();break}}},m.loadFromJsonObjectInternal=function(e,t){var r=e.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),i=StiOptions.Services.chartSerieLabels.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==r});if(null==i)throw String.stiFormat("Type {0}.sti_is(not) found!",r);var n=i.createNew();return n.chart=t,n.loadFromJsonObject(e),n},m.loadLabelsFromXml=function(e,t){switch(e.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Chart.StiNoneLabels":var i=new r.StiNoneLabels;return i.chart=t,i.loadFromXml(e),i;case"Stimulsoft.Report.Chart.StiCenterAxisLabels":var n=new r.StiCenterAxisLabels;return n.chart=t,n.loadFromXml(e),n;case"Stimulsoft.Report.Chart.StiOutsideAxisLabels":var o=new r.StiOutsideAxisLabels;return o.chart=t,o.loadFromXml(e),o;case"Stimulsoft.Report.Chart.StiInsideBaseAxisLabels":var a=new r.StiInsideBaseAxisLabels;return a.chart=t,a.loadFromXml(e),a;case"Stimulsoft.Report.Chart.StiInsideEndAxisLabels":var s=new r.StiInsideEndAxisLabels;return s.chart=t,s.loadFromXml(e),s;case"Stimulsoft.Report.Chart.StiOutsideBaseAxisLabels":var l=new r.StiOutsideBaseAxisLabels;return l.chart=t,l.loadFromXml(e),l;case"Stimulsoft.Report.Chart.StiOutsideEndAxisLabels":var u=new r.StiOutsideEndAxisLabels;return u.chart=t,u.loadFromXml(e),u;case"Stimulsoft.Report.Chart.StiLeftAxisLabels":var c=new r.StiLeftAxisLabels;return c.chart=t,c.loadFromXml(e),c;case"Stimulsoft.Report.Chart.StiValueAxisLabels":var h=new r.StiValueAxisLabels;return h.chart=t,h.loadFromXml(e),h;case"Stimulsoft.Report.Chart.StiRightAxisLabels":var p=new r.StiRightAxisLabels;return p.chart=t,p.loadFromXml(e),p;case"Stimulsoft.Report.Chart.StiInsideEndPieLabels":var f=new r.StiInsideEndPieLabels;return f.chart=t,f.loadFromXml(e),f;case"Stimulsoft.Report.Chart.StiCenterPieLabels":var m=new r.StiCenterPieLabels;return m.chart=t,m.loadFromXml(e),m;case"Stimulsoft.Report.Chart.StiOutsidePieLabels":var S=new r.StiOutsidePieLabels;return S.chart=t,S.loadFromXml(e),S;case"Stimulsoft.Report.Chart.StiTwoColumnsPieLabels":var g=new r.StiTwoColumnsPieLabels;return g.chart=t,g.loadFromXml(e),g;case"Stimulsoft.Report.Chart.StiCenterFunnelLabels":var d=new r.StiCenterFunnelLabels;return d.chart=t,d.loadFromXml(e),d;case"Stimulsoft.Report.Chart.StiOutsideRightFunnelLabels":var y=new r.StiOutsideRightFunnelLabels;return y.chart=t,y.loadFromXml(e),y;case"Stimulsoft.Report.Chart.StiOutsideLeftFunnelLabels":var b=new r.StiOutsideLeftFunnelLabels;return b.chart=t,b.loadFromXml(e),b;case"Stimulsoft.Report.Chart.StiCenterTreemapLabels":var v=new r.StiCenterTreemapLabels;return v.chart=t,v.loadFromXml(e),v}},Object.defineProperty(m.prototype,"componentId",{get:function(){return t.StiComponentId.StiSeriesLabels},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),m.prototype.clone=function(){var e=p.prototype.clone.call(this);return e.brush=this.brush.clone(),e.font=this.font.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.seriesLabels=e),e},Object.defineProperty(m.prototype,"serviceName",{get:function(){return this.core.localizedName},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"serviceCategory",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"serviceType",{get:function(){return m},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"preventIntersection",{get:function(){return this._preventIntersection},set:function(e){this._preventIntersection=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"axisCore",{get:function(){return this.core},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"pieCore",{get:function(){return this.core},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=r&&this.core.applyStyle(this.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"conditions",{get:function(){if(null==this.chart)return null;return this.chart.seriesLabelsConditions},set:function(e){if(null==this.chart)return;this.chart.seriesLabelsConditions=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"showOnZeroValues",{get:function(){return this.showZeros},set:function(e){this.showZeros=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"showZeros",{get:function(){return this._showZeros},set:function(e){this._showZeros=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"showNulls",{get:function(){return this._showNulls},set:function(e){this._showNulls=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"markerVisible",{get:function(){return this._markerVisible},set:function(e){this._markerVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"markerAlignment",{get:function(){return this._markerAlignment},set:function(e){this._markerAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"step",{get:function(){return this._step},set:function(e){this._step=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"valueType",{get:function(){return this._valueType},set:function(e){this._valueType!=e&&(this._valueType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"valueTypeSeparator",{get:function(){return this._valueTypeSeparator},set:function(e){this._valueTypeSeparator!=e&&(this._valueTypeSeparator=e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"legendValueType",{get:function(){return this._legendValueType},set:function(e){this._legendValueType=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"textBefore",{get:function(){return this._textBefore},set:function(e){this._textBefore=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"textAfter",{get:function(){return this._textAfter},set:function(e){this._textAfter=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"antialiasing",{get:function(){return this._antialiasing},set:function(e){this._antialiasing=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"drawBorder",{get:function(){return this._drawBorder},set:function(e){this._drawBorder=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"useSeriesColor",{get:function(){return this._useSeriesColor},set:function(e){this._useSeriesColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!0,configurable:!0}),m.prototype.toString=function(){return this.serviceName},m.prototype.createNew=function(){return null},m}(p);r.StiSeriesLabels=m}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._showInPercent=!1,t}return __extends(n,e),n.prototype.implements=function(){return n.implementsStiAxisSeriesLabels||(n.implementsStiAxisSeriesLabels=e.prototype.implements.call(this).concat([r,t.IStiSeriesLabels,i,t.IStiAxisSeriesLabels])),n.implementsStiAxisSeriesLabels},n.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("ShowInPercent",this._showInPercent),r},n.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"ShowInPercent":this._showInPercent=n.value.toBoolean();break}}},n.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowInPercent":this._showInPercent=i.textContent.toBoolean();break}}},Object.defineProperty(n.prototype,"showInPercent",{get:function(){return this._showInPercent},set:function(e){this._showInPercent=e,this._showInPercent&&!this.format.startsWith("P")&&(this.format="P2"),this._showInPercent||(this.format="")},enumerable:!0,configurable:!0}),n}(t.StiSeriesLabels);t.StiAxisSeriesLabels=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiCenterAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiCenterAxisLabels||(o.implementsStiCenterAxisLabels=e.prototype.implements.call(this).concat([i,r.IStiSeriesLabels,r.IStiCenterAxisLabels,r.IStiAxisSeriesLabels,n])),o.implementsStiCenterAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiCenterAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiAxisSeriesLabels);r.StiCenterAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiInsideBaseAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiInsideBaseAxisLabels||(o.implementsStiInsideBaseAxisLabels=e.prototype.implements.call(this).concat([r.IStiInsideBaseAxisLabels,r.IStiSeriesLabels,n,r.IStiAxisSeriesLabels,i])),o.implementsStiInsideBaseAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiInsideBaseAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterAxisLabels);r.StiInsideBaseAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiInsideEndAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiInsideEndAxisLabels||(o.implementsStiInsideEndAxisLabels=e.prototype.implements.call(this).concat([r.IStiCenterAxisLabels,r.IStiAxisSeriesLabels,r.IStiSeriesLabels,i,r.IStiInsideEndAxisLabels,n])),o.implementsStiInsideEndAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiInsideEndAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterAxisLabels);r.StiInsideEndAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiLeftAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiLeftAxisLabels||(o.implementsStiLeftAxisLabels=e.prototype.implements.call(this).concat([r.IStiCenterAxisLabels,r.IStiLeftAxisLabels,r.IStiAxisSeriesLabels,i,r.IStiSeriesLabels,n])),o.implementsStiLeftAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiLeftAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterAxisLabels);r.StiLeftAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t._lineLength=15,t.core=new r.StiOutsideAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiOutsideAxisLabels||(o.implementsStiOutsideAxisLabels=e.prototype.implements.call(this).concat([r.IStiOutsideAxisLabels,r.IStiSeriesLabels,n,r.IStiAxisSeriesLabels,i])),o.implementsStiOutsideAxisLabels},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyNumber("LineLength",this._lineLength,15),r},o.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"LineLength":this._lineLength=n.value.toNumber();break}}},o.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"LineLength":this._lineLength=i.textContent.toNumber();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiOutsideAxisLabels},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"lineLength",{get:function(){return this._lineLength},set:function(e){this._lineLength=e},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiAxisSeriesLabels);r.StiOutsideAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiOutsideBaseAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiOutsideBaseAxisLabels||(o.implementsStiOutsideBaseAxisLabels=e.prototype.implements.call(this).concat([r.IStiCenterAxisLabels,r.IStiAxisSeriesLabels,i,r.IStiOutsideBaseAxisLabels,r.IStiSeriesLabels,n])),o.implementsStiOutsideBaseAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiOutsideBaseAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterAxisLabels);r.StiOutsideBaseAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiOutsideEndAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiOutsideEndAxisLabels||(o.implementsStiOutsideEndAxisLabels=e.prototype.implements.call(this).concat([r.IStiOutsideEndAxisLabels,r.IStiCenterAxisLabels,r.IStiAxisSeriesLabels,i,r.IStiSeriesLabels,n])),o.implementsStiOutsideEndAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiOutsideEndAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterAxisLabels);r.StiOutsideEndAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiRightAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRightAxisLabels||(o.implementsStiRightAxisLabels=e.prototype.implements.call(this).concat([r.IStiCenterAxisLabels,r.IStiAxisSeriesLabels,r.IStiRightAxisLabels,i,r.IStiSeriesLabels,n])),o.implementsStiRightAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiRightAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterAxisLabels);r.StiRightAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiValueAxisLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiValueAxisLabels||(o.implementsStiValueAxisLabels=e.prototype.implements.call(this).concat([r.IStiValueAxisLabels,r.IStiCenterAxisLabels,r.IStiAxisSeriesLabels,i,r.IStiSeriesLabels,n])),o.implementsStiValueAxisLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiValueAxisLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterAxisLabels);r.StiValueAxisLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return __extends(n,e),n.prototype.implements=function(){return n.implementsStiFunnelSeriesLabels||(n.implementsStiFunnelSeriesLabels=e.prototype.implements.call(this).concat([r,t.IStiFunnelSeriesLabels,i,t.IStiSeriesLabels])),n.implementsStiFunnelSeriesLabels},n}(t.StiSeriesLabels);t.StiFunnelSeriesLabels=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiCenterFunnelLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiCenterFunnelLabels||(o.implementsStiCenterFunnelLabels=e.prototype.implements.call(this).concat([i,r.IStiSeriesLabels,r.IStiFunnelSeriesLabels,n,r.IStiCenterFunnelLabels])),o.implementsStiCenterFunnelLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiCenterFunnelLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiFunnelSeriesLabels);r.StiCenterFunnelLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiOutsideLeftFunnelLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiOutsideLeftFunnelLabels||(o.implementsStiOutsideLeftFunnelLabels=e.prototype.implements.call(this).concat([r.IStiCenterFunnelLabels,r.IStiOutsideLeftFunnelLabels,i,r.IStiSeriesLabels,r.IStiFunnelSeriesLabels,n])),o.implementsStiOutsideLeftFunnelLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiOutsideLeftFunnelLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiFunnelSeriesLabels);r.StiOutsideLeftFunnelLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiOutsideRightFunnelLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiOutsideRightFunnelLabels||(o.implementsStiOutsideRightFunnelLabels=e.prototype.implements.call(this).concat([r.IStiOutsideRightFunnelLabels,r.IStiCenterFunnelLabels,i,r.IStiSeriesLabels,r.IStiFunnelSeriesLabels,n])),o.implementsStiOutsideRightFunnelLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiOutsideRightFunnelLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiFunnelSeriesLabels);r.StiOutsideRightFunnelLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._showInPercent=!1,t}return __extends(n,e),n.prototype.implements=function(){return n.implementsStiPieSeriesLabels||(n.implementsStiPieSeriesLabels=e.prototype.implements.call(this).concat([r,t.IStiPieSeriesLabels,t.IStiSeriesLabels,i])),n.implementsStiPieSeriesLabels},n.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("ShowInPercent",this._showInPercent),r},n.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"ShowInPercent":this._showInPercent=n.value.toBoolean();break}}},n.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowInPercent":this._showInPercent=i.textContent.toBoolean();break}}},Object.defineProperty(n.prototype,"showInPercent",{get:function(){return this._showInPercent},set:function(e){this._showInPercent=e,this._showInPercent&&!this.format.startsWith("P")&&(this.format="P2"),this._showInPercent||(this.format="")},enumerable:!0,configurable:!0}),n}(t.StiSeriesLabels);t.StiPieSeriesLabels=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t._autoRotate=!1,t.core=new r.StiCenterPieLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiCenterPieLabels||(o.implementsStiCenterPieLabels=e.prototype.implements.call(this).concat([i,r.IStiPieSeriesLabels,r.IStiSeriesLabels,r.IStiCenterPieLabels,n])),o.implementsStiCenterPieLabels},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("AutoRotate",this.autoRotate),r},o.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"AutoRotate":this.autoRotate=n.value.toBoolean();break}}},o.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"AutoRotate":this.autoRotate=i.textContent.toBoolean();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiCenterPieLabels},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"autoRotate",{get:function(){return this._autoRotate},set:function(e){this._autoRotate=e},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiPieSeriesLabels);r.StiCenterPieLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiInsideEndPieLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiInsideEndPieLabels||(o.implementsStiInsideEndPieLabels=e.prototype.implements.call(this).concat([r.IStiCenterPieLabels,r.IStiSeriesLabels,r.IStiPieSeriesLabels,r.IStiInsideEndPieLabels,i,n])),o.implementsStiInsideEndPieLabels},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiInsideEndPieLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiCenterPieLabels);r.StiInsideEndPieLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.System.Drawing.Color,s=function(s){function l(){var e=s.call(this)||this;return e._showValue=!1,e._lineLength=20,e._lineColor=a.black,e.core=new r.StiOutsidePieLabelsCoreXF(e),e}return __extends(l,s),l.prototype.implements=function(){return l.implementsStiOutsidePieLabels||(l.implementsStiOutsidePieLabels=s.prototype.implements.call(this).concat([r.IStiOutsidePieLabels,r.IStiCenterPieLabels,r.IStiPieSeriesLabels,r.IStiSeriesLabels,n,o])),l.implementsStiOutsidePieLabels},l.prototype.saveToJsonObject=function(e){var t=s.prototype.saveToJsonObject.call(this,e);return t.removeProperty("Angle"),t.addPropertyBool("ShowValue",this.showValue),t.addPropertyNumber("LineLength",this.lineLength,20),t.addPropertyStringNullOfEmpty("LineColor",i.Serialize.jColor(this.lineColor,a.black)),t},l.prototype.loadFromJsonObject=function(e){s.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"ShowValue":this.showValue=n.value.toBoolean();break;case"LineLength":this.lineLength=n.value.toNumber();break;case"LineColor":this.lineColor=i.Deserialize.color(n.value.toString());break}}},l.prototype.loadFromXml=function(t){s.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowValue":this.showValue=i.textContent.toBoolean();break;case"LineLength":this.lineLength=i.textContent.toNumber();break;case"LineColor":this.lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break}}},Object.defineProperty(l.prototype,"componentId",{get:function(){return t.StiComponentId.StiOutsidePieLabels},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"showValue",{get:function(){return this._showValue},set:function(e){this._showValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"lineLength",{get:function(){return this._lineLength},set:function(e){this._lineLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),l.prototype.createNew=function(){return new l},l}(r.StiCenterPieLabels);r.StiOutsidePieLabels=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiTwoColumnsPieLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiTwoColumnsPieLabels||(o.implementsStiTwoColumnsPieLabels=e.prototype.implements.call(this).concat([r.IStiTwoColumnsPieLabels,r.IStiOutsidePieLabels,r.IStiCenterPieLabels,r.IStiPieSeriesLabels,r.IStiSeriesLabels,i,n])),o.implementsStiTwoColumnsPieLabels},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("AutoRotate"),r},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiTwoColumnsPieLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiOutsidePieLabels);r.StiTwoColumnsPieLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r=function(r){function i(){var e=r.call(this)||this;return e.core=new t.StiCenterTreemapLabelsCoreXF(e),e}return __extends(i,r),Object.defineProperty(i.prototype,"componentId",{get:function(){return e.StiComponentId.StiCenterTreemapLabels},enumerable:!0,configurable:!0}),i.prototype.createNew=function(){return new i},i}(t.StiAxisSeriesLabels);t.StiCenterTreemapLabels=r}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiNoneLabelsCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiNoneLabels||(o.implementsStiNoneLabels=e.prototype.implements.call(this).concat([r.IStiNoneLabels,r.IStiSeriesLabels,n,i])),o.implementsStiNoneLabels},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("Antialiasing"),r.removeProperty("Visible"),r.removeProperty("LabelColor"),r.removeProperty("BorderColor"),r.removeProperty("Brush"),r.removeProperty("Font"),r},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiNoneLabels},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiSeriesLabels);r.StiNoneLabels=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.StiJsonReportObjectHelper,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.System.Text.StringBuilder,l=e.Base.Drawing.StiSolidBrush,u=e.Base.Drawing.StiBrush,c=e.System.Drawing.Color,h=function(h){function p(){var e=h.call(this)||this;return e._borderColor=c.gray,e._brush=new l(c.gainsboro),e._weights=[1,3,2],e._weightDataColumn=String.empty,e._weight="",e._listOfWeights="",e.core=new r.StiBubbleSeriesCoreXF(e),e}return __extends(p,h),p.prototype.implements=function(){return p.implementsStiBubbleSeries||(p.implementsStiBubbleSeries=h.prototype.implements.call(this).concat([r.IStiBaseLineSeries,r.IStiBubbleSeries,r.IStiScatterSeries,o,r.IStiSeries,a])),p.implementsStiBubbleSeries},p.prototype.saveToJsonObject=function(e){var t=h.prototype.saveToJsonObject.call(this,e);return t.removeProperty("LineMarker"),t.removeProperty("Marker"),t.addPropertyString("BorderColor",n.Serialize.jColor(this._borderColor,c.gray)),t.addPropertyStringNullOfEmpty("Brush",n.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("WeightDataColumn",this._weightDataColumn),t.addPropertyJObject("Weight",new i(this.weight).saveToJsonObject(e)),t.addPropertyJObject("ListOfWeights",new i(this.listOfWeights).saveToJsonObject(e)),t},p.prototype.loadFromJsonObject=function(e){h.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var o=r[t];switch(o.name){case"BorderColor":this._borderColor=n.Deserialize.color(o.value.toString());break;case"Brush":this._brush=n.Deserialize.brush(o.value.toString());break;case"WeightDataColumn":this._weightDataColumn=o.value.toString();break;case"GetWeightEvent":break;case"GetListOfWeightsEvent":break;case"Weight":var a=new i;a.loadFromJsonObject(o.value),this.weight=a.value;break;case"ListOfWeights":var a=new i;a.loadFromJsonObject(o.value),this.listOfWeights=a.value;break}}},p.prototype.loadFromXml=function(t){h.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];switch(n.nodeName){case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Brush":case"bh":this._brush=u.convertToBrush(n.textContent);break;case"WeightDataColumn":this._weightDataColumn=n.textContent.toString();break;case"GetWeightEvent":break;case"GetListOfWeightsEvent":break;case"Weight":var o=new i;o.loadFromXml(n),this.weight=o.value;break;case"ListOfWeights":var o=new i;o.loadFromXml(n),this.listOfWeights=o.value;break}}},Object.defineProperty(p.prototype,"componentId",{get:function(){return t.StiComponentId.StiBubbleSeries},enumerable:!0,configurable:!0}),p.prototype.clone=function(){return h.prototype.clone.call(this)},p.prototype.getDefaultAreaType=function(){return r.StiBubbleArea},Object.defineProperty(p.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"weights",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfWeights))return r.StiSeries.getValuesFromString(this.listOfWeights);var e=this.chart.series.indexOf(this);if(0==e)return this._weights;return[3+3*e,5+4*e,9+3*e]}return this._weights},set:function(e){this._weights=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"weightsString",{get:function(){for(var e=new s,t=!0,r=0,i=this.weights;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._weights=[];else{var t=e.split(";");this._weights=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this._weights[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"weightDataColumn",{get:function(){return this._weightDataColumn},set:function(e){this._weightDataColumn=e},enumerable:!0,configurable:!0}),p.prototype.onGetWeight=function(e){},p.prototype.invokeGetWeight=function(t,r){try{this.onGetWeight(r),null!=this.getWeight&&this.getWeight(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},p.prototype.onGetListOfWeights=function(e){},p.prototype.invokeGetListOfWeights=function(t,r){try{this.onGetListOfWeights(r),null!=this.getListOfWeights&&this.getListOfWeights(t,r)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(p.prototype,"weight",{get:function(){return this._weight},set:function(e){this._weight=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"listOfWeights",{get:function(){return this._listOfWeights},set:function(e){this._listOfWeights=e},enumerable:!0,configurable:!0}),p.prototype.createNew=function(){return new p},p}(r.StiScatterSeries);r.StiBubbleSeries=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(u){function c(){var e=u.call(this)||this;return e._showZeros=!1,e._width=.9,e._borderColor=l.gray,e._brush=new a(l.gainsboro),e._brushNegative=new a(l.firebrick),e._allowApplyBrushNegative=!1,e.core=new r.StiClusteredColumnSeriesCoreXF(e),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiClusteredColumnSeries||(c.implementsStiClusteredColumnSeries=u.prototype.implements.call(this).concat([n,r.IStiClusteredColumnSeries,o,r.IStiSeries,r.IStiAllowApplyBrushNegative])),c.implementsStiClusteredColumnSeries},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.addPropertyBool("ShowZeros",this.showZeros),t.addPropertyNumber("Width",this._width,.9),t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this._borderColor,l.gray)),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this.brushNegative)),t.addPropertyBool("AllowApplyBrushNegative",this.allowApplyBrushNegative),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"ShowZeros":this.showZeros=n.value.toBoolean();break;case"Width":this._width=n.value.toNumber();break;case"BorderColor":this._borderColor=i.Deserialize.color(n.value.toString());break;case"Brush":this._brush=i.Deserialize.brush(n.value.toString());break;case"BrushNegative":this.brushNegative=i.Deserialize.brush(n.value.toString());break;case"AllowApplyBrushNegative":this.allowApplyBrushNegative=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowZeros":this.showZeros=i.textContent.toBoolean();break;case"Width":this._width=i.textContent.toNumber();break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break;case"BrushNegative":this.brushNegative=s.convertToBrush(i.textContent);break;case"AllowApplyBrushNegative":this.allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiClusteredColumnSeries},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var e=u.prototype.clone.call(this);return e.brush=this.brush.clone(),e},c.prototype.getDefaultAreaType=function(){return r.StiClusteredColumnArea},c.prototype.createNew=function(){return new c},Object.defineProperty(c.prototype,"showZeros",{get:function(){return this._showZeros},set:function(e){this._showZeros=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(e){e>=.01&&e<=1&&(this._width=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this._brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),c}(r.StiSeries);r.StiClusteredColumnSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiClusteredBarSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiClusteredBarSeries||(o.implementsStiClusteredBarSeries=e.prototype.implements.call(this).concat([i,r.IStiClusteredColumnSeries,r.IStiSeries,n,r.IStiClusteredBarSeries,r.IStiAllowApplyBrushNegative])),o.implementsStiClusteredBarSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiClusteredBarSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiClusteredBarArea},o.prototype.createNew=function(){return new o},o}(r.StiClusteredColumnSeries);r.StiClusteredBarSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiLineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiLineSeries||(o.implementsStiLineSeries=e.prototype.implements.call(this).concat([i,r.IStiBaseLineSeries,r.IStiLineSeries,n,r.IStiSeries,r.IStiAllowApplyColorNegative])),o.implementsStiLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiLineSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiClusteredColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiBaseLineSeries);r.StiLineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(e){function u(){var t=e.call(this)||this;return t._topmostLine=!0,t._brush=new a(l.gainsboro),t._brushNegative=new a(l.firebrick),t._allowApplyBrushNegative=!1,t.core=new r.StiAreaSeriesCoreXF(t),t}return __extends(u,e),u.prototype.implements=function(){return u.implementsStiAreaSeries||(u.implementsStiAreaSeries=e.prototype.implements.call(this).concat([r.IStiLineSeries,r.IStiBaseLineSeries,r.IStiAreaSeries,n,r.IStiSeries,o,r.IStiAllowApplyBrushNegative])),u.implementsStiAreaSeries},u.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("TopmostLine",this._topmostLine,!0),r.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),r.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this._brushNegative)),r.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),r},u.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var o=n[r];switch(o.name){case"TopmostLine":this._topmostLine=o.value.toBoolean();break;case"Brush":this._brush=i.Deserialize.brush(o.value.toString());break;case"BrushNegative":this._brushNegative=i.Deserialize.brush(o.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=o.value.toBoolean();break}}},u.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"TopmostLine":this._topmostLine=i.textContent.toBoolean();break;case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break;case"BrushNegative":this._brushNegative=s.convertToBrush(i.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiAreaSeries},enumerable:!0,configurable:!0}),u.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.brush=this.brush.clone(),t},Object.defineProperty(u.prototype,"topmostLine",{get:function(){return this._topmostLine},set:function(e){this._topmostLine=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),u.prototype.getDefaultAreaType=function(){return r.StiClusteredColumnArea},u.prototype.createNew=function(){return new u},u}(r.StiLineSeries);r.StiAreaSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t._tension=.55,t.core=new r.StiSplineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSplineSeries||(o.implementsStiSplineSeries=e.prototype.implements.call(this).concat([i,r.IStiBaseLineSeries,n,r.IStiSeries,r.IStiSplineSeries,r.IStiAllowApplyColorNegative])),o.implementsStiSplineSeries},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("LineMarker"),r.addPropertyNumber("Tension",this._tension,.55),r},o.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"Tension":this._tension=n.value.toNumber();break}}},o.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Tension":this._tension=i.textContent.toNumber();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSplineSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiClusteredColumnArea},Object.defineProperty(o.prototype,"tension",{get:function(){return this._tension},set:function(e){this._tension=e},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiBaseLineSeries);r.StiSplineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(e){function u(){var t=e.call(this)||this;return t._topmostLine=!0,t._brush=new a(l.gainsboro),t._brushNegative=new a(l.firebrick),t._allowApplyBrushNegative=!1,t.core=new r.StiSplineAreaSeriesCoreXF(t),t}return __extends(u,e),u.prototype.implements=function(){return u.implementsStiSplineAreaSeries||(u.implementsStiSplineAreaSeries=e.prototype.implements.call(this).concat([r.IStiSplineSeries,r.IStiBaseLineSeries,n,r.IStiSeries,o,r.IStiSplineAreaSeries,r.IStiAllowApplyColorNegative])),u.implementsStiSplineAreaSeries},u.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("TopmostLine",this._topmostLine,!0),r.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),r.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this._brushNegative)),r.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),r},u.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var o=n[r];switch(o.name){case"TopmostLine":this._topmostLine=o.value.toBoolean();break;case"Brush":this._brush=i.Deserialize.brush(o.value.toString());break;case"BrushNegative":this._brushNegative=i.Deserialize.brush(o.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=o.value.toBoolean();break}}},u.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"TopmostLine":this._topmostLine=i.textContent.toBoolean();break;case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break;case"BrushNegative":this._brushNegative=s.convertToBrush(i.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiSplineAreaSeries},enumerable:!0,configurable:!0}),u.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.brush=this.brush.clone(),t},u.prototype.getDefaultAreaType=function(){return r.StiClusteredColumnArea},Object.defineProperty(u.prototype,"topmostLine",{get:function(){return this._topmostLine},set:function(e){this._topmostLine=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),u.prototype.createNew=function(){return new u},u}(r.StiSplineSeries);r.StiSplineAreaSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t._pointAtCenter=!1,t.core=new r.StiSteppedLineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiSteppedLineSeries||(o.implementsStiSteppedLineSeries=e.prototype.implements.call(this).concat([i,r.IStiBaseLineSeries,r.IStiSeries,n,r.IStiSteppedLineSeries,r.IStiAllowApplyColorNegative])),o.implementsStiSteppedLineSeries},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("PointAtCenter",this._pointAtCenter),r},o.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"PointAtCenter":this._pointAtCenter=n.value.toBoolean();break}}},o.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"PointAtCenter":this._pointAtCenter=i.textContent.toBoolean();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiSteppedLineSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiClusteredColumnArea},Object.defineProperty(o.prototype,"pointAtCenter",{get:function(){return this._pointAtCenter},set:function(e){this._pointAtCenter=e},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiBaseLineSeries);r.StiSteppedLineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(e){function u(){var t=e.call(this)||this;return t._topmostLine=!0,t._brush=new a(l.gainsboro),t._brushNegative=new a(l.firebrick),t._allowApplyBrushNegative=!1,t.core=new r.StiSteppedAreaSeriesCoreXF(t),t}return __extends(u,e),u.prototype.implements=function(){return u.implementsStiSteppedAreaSeries||(u.implementsStiSteppedAreaSeries=e.prototype.implements.call(this).concat([r.IStiSteppedLineSeries,r.IStiBaseLineSeries,n,r.IStiSteppedAreaSeries,r.IStiSeries,o,r.IStiAllowApplyColorNegative])),u.implementsStiSteppedAreaSeries},u.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyBool("TopmostLine",this._topmostLine,!0),r.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),r.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this._brushNegative)),r.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),r},u.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var o=n[r];switch(o.name){case"TopmostLine":this._topmostLine=o.value.toBoolean();break;case"Brush":this._brush=i.Deserialize.brush(o.value.toString());break;case"BrushNegative":this._brushNegative=i.Deserialize.brush(o.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=o.value.toBoolean();break}}},u.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"TopmostLine":this._topmostLine=i.textContent.toBoolean();break;case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break;case"BrushNegative":this._brushNegative=s.convertToBrush(i.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiSteppedAreaSeries},enumerable:!0,configurable:!0}),u.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.brush=this.brush.clone(),t},u.prototype.getDefaultAreaType=function(){return r.StiClusteredColumnArea},Object.defineProperty(u.prototype,"topmostLine",{get:function(){return this._topmostLine},set:function(e){this._topmostLine=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),u.prototype.createNew=function(){return new u},u}(r.StiSteppedLineSeries);r.StiSteppedAreaSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e}();e.StiSeriesInteractionConverter=t}(t=e.Design||(e.Design={}))}(t=e.Components||(e.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.StiJsonReportObjectHelper,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Report.Components.StiText,l=e.Base.Drawing.StiSolidBrush,u=e.Base.Drawing.StiBrush,c=e.System.Drawing.Color,h=function(h){function p(){var e=h.call(this)||this;return e._allowApplyBrush=!0,e._allowApplyBorderColor=!0,e._startAngle=0,e._borderColor=c.gray,e._brush=new l(c.gainsboro),e._lighting=!0,e._diameter=0,e._distance=0,e._cutPieListValues=[],e._cutPieList="",e.core=new r.StiPieSeriesCoreXF(e),e}return __extends(p,h),p.prototype.implements=function(){return p.implementsStiPieSeries||(p.implementsStiPieSeries=h.prototype.implements.call(this).concat([r.IStiPieSeries,a,r.IStiSeries,o,r.IStiAllowApplyBorderColor,r.IStiAllowApplyBrush])),p.implementsStiPieSeries},p.prototype.saveToJsonObject=function(e){var t=h.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TrendLine"),t.addPropertyBool("AllowApplyBrush",this._allowApplyBrush,!0),t.addPropertyBool("AllowApplyBorderColor",this._allowApplyBorderColor,!0),t.addPropertyNumber("StartAngle",this.startAngle,0),t.addPropertyStringNullOfEmpty("BorderColor",n.Serialize.jColor(this._borderColor,c.gray)),t.addPropertyStringNullOfEmpty("Brush",n.Serialize.jBrush(this._brush)),t.addPropertyBool("Lighting",this._lighting,!0),t.addPropertyNumber("Diameter",this.diameter,0),t.addPropertyNumber("Distance",this.distance,0),t.addPropertyJObject("CutPieList",new i(this._cutPieList).saveToJsonObject(e)),t},p.prototype.loadFromJsonObject=function(e){h.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var o=r[t];switch(o.name){case"AllowApplyBrush":this._allowApplyBrush=o.value.toBoolean();break;case"AllowApplyBorderColor":this._allowApplyBorderColor=o.value.toBoolean();break;case"StartAngle":this.startAngle=o.value.toNumber();break;case"BorderColor":this._borderColor=n.Deserialize.color(o.value.toString());break;case"Brush":this._brush=n.Deserialize.brush(o.value.toString());break;case"Lighting":this._lighting=o.value.toBoolean();break;case"Diameter":this.diameter=o.value.toNumber();break;case"Distance":this.distance=o.value.toNumber();break;case"CutPieList":var a=new i;a.loadFromJsonObject(o.value),this._cutPieList=a.value;break;case"GetCutPieListEvent":break}}},p.prototype.loadFromXml=function(t){h.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];switch(n.nodeName){case"AllowApplyBrush":this._allowApplyBrush=n.textContent.toBoolean();break;case"AllowApplyBorderColor":this._allowApplyBorderColor=n.textContent.toBoolean();break;case"StartAngle":this.startAngle=n.textContent.toNumber();break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Brush":case"bh":this._brush=u.convertToBrush(n.textContent);break;case"Lighting":this._lighting=n.textContent.toBoolean();break;case"Diameter":this.diameter=n.textContent.toNumber();break;case"Distance":this.distance=n.textContent.toNumber();break;case"CutPieList":var o=new i;o.loadFromXml(n),this._cutPieList=o.value;break;case"GetCutPieListEvent":break}}},Object.defineProperty(p.prototype,"componentId",{get:function(){return t.StiComponentId.StiPieSeries},enumerable:!0,configurable:!0}),p.prototype.clone=function(){return h.prototype.clone.call(this)},p.prototype.getDefaultAreaType=function(){return r.StiPieArea},Object.defineProperty(p.prototype,"allowApplyBrush",{get:function(){return this._allowApplyBrush},set:function(e){this._allowApplyBrush!=e&&(this._allowApplyBrush=e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"allowApplyBorderColor",{get:function(){return this._allowApplyBorderColor},set:function(e){this._allowApplyBorderColor!=e&&(this._allowApplyBorderColor=e)},enumerable:!0,configurable:!0}),p.prototype.getArguments=function(){var e=h.prototype.getArguments.call(this);if(0==e.length&&null!=this.chart&&null!=this.chart.report&&this.chart.report.isDesigning)return["Arg1","Arg2","Arg3"];return e},p.prototype.setArguments=function(e){h.prototype.setArguments.call(this,e)},Object.defineProperty(p.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lighting",{get:function(){return this._lighting},set:function(e){this._lighting=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"diameter",{get:function(){return this._diameter},set:function(e){this._diameter=e,e<5&&(this._diameter=0)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"distance",{get:function(){return this._distance},set:function(e){this._distance=Math.max(0,e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"cutPieListValues",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.cutPieList))return r.StiSeries.getValuesFromString(this.cutPieList);return[]}return this._cutPieListValues},set:function(e){this._cutPieListValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"cuttedPieList",{get:function(){return this.cutPieList},set:function(e){this.cutPieList=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"cutPieList",{get:function(){return this._cutPieList},set:function(e){this._cutPieList=e},enumerable:!0,configurable:!0}),p.prototype.onGetCutPieList=function(e){},p.prototype.invokeGetCutPieList=function(r,i){try{if(this.onGetCutPieList(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartPieSeriesCutPieList**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.cutPieList,n);i.value=r.report.toString2(o)}null!=this.getCutPieList&&this.getCutPieList(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},p.prototype.createNew=function(){return new p},p}(r.StiSeries);r.StiPieSeries=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiDoughnutSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiDoughnutSeries||(o.implementsStiDoughnutSeries=e.prototype.implements.call(this).concat([r.IStiPieSeries,r.IStiSeries,n,r.IStiDoughnutSeries,i,r.IStiAllowApplyBorderColor,r.IStiAllowApplyBrush])),o.implementsStiDoughnutSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiDoughnutSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiDoughnutArea},o.prototype.createNew=function(){return new o},o}(r.StiPieSeries);r.StiDoughnutSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.StiJsonReportObjectHelper,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Report.Components.StiText,l=e.System.Text.StringBuilder,u=e.Base.Drawing.StiSolidBrush,c=e.Base.Drawing.StiBrush,h=e.System.Drawing.Color,p=function(p){function f(){var e=p.call(this)||this;return e._valuesOpen=[4,7,5],e._valuesClose=[2,3,5],e._valuesHigh=[6,9,7],e._valuesLow=[1,3,4],e._valueDataColumnOpen=String.empty,e._valueDataColumnClose=String.empty,e._valueDataColumnHigh=String.empty,e._valueDataColumnLow=String.empty,e._borderColor=h.gray,e._borderColorNegative=h.gray,e._borderWidth=2,e._brush=new u(h.gainsboro),e._brushNegative=new u(h.transparent),e.valueObjOpen="",e._listOfValuesOpen="",e.valueObjClose="",e._listOfValuesClose="",e.valueObjHigh="",e._listOfValuesHigh="",e.valueObjLow="",e._listOfValuesLow="",e.core=new r.StiCandlestickSeriesCoreXF(e),e}return __extends(f,p),f.prototype.implements=function(){return f.implementsStiCandlestickSeries||(f.implementsStiCandlestickSeries=p.prototype.implements.call(this).concat([o,r.IStiSeries,r.IStiFinancialSeries,a,r.IStiCandlestickSeries])),f.implementsStiCandlestickSeries},f.prototype.saveToJsonObject=function(e){var t=p.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TopN"),t.removeProperty("TrendLine"),t.removeProperty("ValueDataColumn"),t.removeProperty("Value"),t.removeProperty("ListOfValues"),t.addPropertyStringNullOfEmpty("ValueDataColumnOpen",this._valueDataColumnOpen),t.addPropertyStringNullOfEmpty("ValueDataColumnClose",this._valueDataColumnClose),t.addPropertyStringNullOfEmpty("ValueDataColumnHigh",this._valueDataColumnHigh),t.addPropertyStringNullOfEmpty("ValueDataColumnLow",this._valueDataColumnLow),t.addPropertyStringNullOfEmpty("BorderColor",n.Serialize.jColor(this.borderColor,h.gray)),t.addPropertyStringNullOfEmpty("BorderColorNegative",n.Serialize.jColor(this.borderColorNegative,h.gray)),t.addPropertyNumber("BorderWidth",this.borderWidth,2),t.addPropertyStringNullOfEmpty("Brush",n.Serialize.jBrush(this.brush)),t.addPropertyStringNullOfEmpty("BrushNegative",n.Serialize.jBrush(this.brushNegative)),t.addPropertyJObject("ValueOpen",new i(this.valueOpen).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesOpen",new i(this.listOfValuesOpen).saveToJsonObject(e)),t.addPropertyJObject("ValueClose",new i(this.valueClose).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesClose",new i(this.listOfValuesClose).saveToJsonObject(e)),t.addPropertyJObject("ValueHigh",new i(this.valueHigh).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesHigh",new i(this.listOfValuesHigh).saveToJsonObject(e)),t.addPropertyJObject("ValueLow",new i(this.valueLow).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesLow",new i(this.listOfValuesLow).saveToJsonObject(e)),t},f.prototype.loadFromJsonObject=function(e){p.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var o=r[t];switch(o.name){case"ValueDataColumnOpen":this._valueDataColumnOpen=o.value.toString();break;case"ValueDataColumnClose":this._valueDataColumnClose=o.value.toString();break;case"ValueDataColumnHigh":this._valueDataColumnHigh=o.value.toString();break;case"ValueDataColumnLow":this._valueDataColumnLow=o.value.toString();break;case"BorderColor":this.borderColor=n.Deserialize.color(o.value.toString());break;case"BorderColorNegative":this.borderColorNegative=n.Deserialize.color(o.value.toString());break;case"BorderWidth":this.borderWidth=o.value.toNumber();break;case"Brush":this.brush=n.Deserialize.brush(o.value.toString());break;case"BrushNegative":this.brushNegative=n.Deserialize.brush(o.value.toString());break;case"GetValueOpenEvent":break;case"GetListOfValuesOpenEvent":break;case"GetValueCloseEvent":break;case"GetListOfValuesCloseEvent":break;case"GetValueHighEvent":break;case"GetListOfValuesHighEvent":break;case"GetValueLowEvent":break;case"GetListOfValuesLowEvent":break;case"ValueOpen":var a=new i;a.loadFromJsonObject(o.value),this.valueOpen=a.value;break;case"ListOfValuesOpen":var a=new i;a.loadFromJsonObject(o.value),this.listOfValuesOpen=a.value;break;case"ValueClose":var a=new i;a.loadFromJsonObject(o.value),this.valueClose=a.value;break;case"ListOfValuesClose":var a=new i;a.loadFromJsonObject(o.value),this.listOfValuesClose=a.value;break;case"ValueHigh":var a=new i;a.loadFromJsonObject(o.value),this.valueHigh=a.value;break;case"ListOfValuesHigh":var a=new i;a.loadFromJsonObject(o.value),this.listOfValuesHigh=a.value;break;case"ValueLow":var a=new i;a.loadFromJsonObject(o.value),this.valueLow=a.value;break;case"ListOfValuesLow":var a=new i;a.loadFromJsonObject(o.value),this.listOfValuesLow=a.value;break}}},f.prototype.loadFromXml=function(t){p.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];switch(n.nodeName){case"ValueDataColumnOpen":this._valueDataColumnOpen=n.textContent;break;case"ValueDataColumnClose":this._valueDataColumnClose=n.textContent;break;case"ValueDataColumnHigh":this._valueDataColumnHigh=n.textContent;break;case"ValueDataColumnLow":this._valueDataColumnLow=n.textContent;break;case"BorderColor":this.borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"BorderColorNegative":this.borderColorNegative=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"BorderWidth":this.borderWidth=n.textContent.toNumber();break;case"Brush":case"bh":this.brush=c.loadFromXml(n.textContent);break;case"BrushNegative":this.brushNegative=c.loadFromXml(n.textContent);break;case"GetValueOpenEvent":break;case"GetListOfValuesOpenEvent":break;case"GetValueCloseEvent":break;case"GetListOfValuesCloseEvent":break;case"GetValueHighEvent":break;case"GetListOfValuesHighEvent":break;case"GetValueLowEvent":break;case"GetListOfValuesLowEvent":break;case"ValueOpen":var o=new i;o.loadFromXml(n),this.valueOpen=o.value;break;case"ListOfValuesOpen":var o=new i;o.loadFromXml(n),this.listOfValuesOpen=o.value;break;case"ValueClose":var o=new i;o.loadFromXml(n),this.valueClose=o.value;break;case"ListOfValuesClose":var o=new i;o.loadFromXml(n),this.listOfValuesClose=o.value;break;case"ValueHigh":var o=new i;o.loadFromXml(n),this.valueHigh=o.value;break;case"ListOfValuesHigh":var o=new i;o.loadFromXml(n),this.listOfValuesHigh=o.value;break;case"ValueLow":var o=new i;o.loadFromXml(n),this.valueLow=o.value;break;case"ListOfValuesLow":var o=new i;o.loadFromXml(n),this.listOfValuesLow=o.value;break}}},Object.defineProperty(f.prototype,"componentId",{get:function(){return t.StiComponentId.StiCandlestickSeries},enumerable:!0,configurable:!0}),f.prototype.clone=function(){return p.prototype.clone.call(this)},f.prototype.getDefaultAreaType=function(){return r.StiCandlestickArea},Object.defineProperty(f.prototype,"valuesOpen",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesOpen))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesOpen);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesOpen;return[4+7*e,7+7*e,5+7*e]}return this._valuesOpen},set:function(e){this._valuesOpen=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesClose",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesClose))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesClose);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesClose;return[2+7*e,3+7*e,5+7*e]}return this._valuesClose},set:function(e){this._valuesClose=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesStringOpen",{get:function(){for(var e=new l,t=!0,r=0,i=this.valuesOpen;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this.valuesOpen=[];else{var t=e.split(";");this.valuesOpen=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this.valuesOpen[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesStringClose",{get:function(){for(var e=new l,t=!0,r=0,i=this.valuesClose;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this.valuesClose=[];else{var t=e.split(";");this.valuesClose=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this.valuesClose[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesStringHigh",{get:function(){for(var e=new l,t=!0,r=0,i=this.valuesHigh;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this.valuesHigh=[];else{var t=e.split(";");this.valuesHigh=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this.valuesHigh[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesStringLow",{get:function(){for(var e=new l,t=!0,r=0,i=this.valuesLow;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this.valuesLow=[];else{var t=e.split(";");this.valuesLow=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this.valuesLow[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesHigh",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesHigh))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesHigh);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesHigh;return[6+7*e,9+7*e,7+7*e]}return this._valuesHigh},set:function(e){this._valuesHigh=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesLow",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesLow))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesLow);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesLow;return[1+7*e,3+7*e,4+7*e]}return this._valuesLow},set:function(e){this._valuesLow=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueDataColumnOpen",{get:function(){return this._valueDataColumnOpen},set:function(e){this._valueDataColumnOpen=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueDataColumnClose",{get:function(){return this._valueDataColumnClose},set:function(e){this._valueDataColumnClose=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueDataColumnHigh",{get:function(){return this._valueDataColumnHigh},set:function(e){this._valueDataColumnHigh=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueDataColumnLow",{get:function(){return this._valueDataColumnLow},set:function(e){this._valueDataColumnLow=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"borderColorNegative",{get:function(){return this._borderColorNegative},set:function(e){this._borderColorNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"borderWidth",{get:function(){return this._borderWidth},set:function(e){e>0&&(this._borderWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this._brushNegative=e},enumerable:!0,configurable:!0}),f.prototype.onGetValueOpen=function(e){},f.prototype.invokeGetValueOpen=function(r,i){try{if(this.onGetValueOpen(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesValueOpen**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueOpen,n);i.value=r.report.toString2(o)}null!=this.getValueOpen&&this.getValueOpen(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetListOfValuesOpen=function(e){},f.prototype.invokeGetListOfValuesOpen=function(r,i){try{if(this.onGetListOfValuesOpen(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesListOfValuesOpen**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesOpen,n);i.value=r.report.toString2(o)}null!=this.getListOfValuesOpen&&this.getListOfValuesOpen(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetValueClose=function(e){},f.prototype.invokeGetValueClose=function(r,i){try{if(this.onGetValueClose(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesValueClose**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueClose,n);i.value=r.report.toString2(o)}null!=this.getValueClose&&this.getValueClose(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetListOfValuesClose=function(e){},f.prototype.invokeGetListOfValuesClose=function(r,i){try{if(this.onGetListOfValuesClose(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesListOfValuesClose**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesClose,n);i.value=r.report.toString2(o)}null!=this.getListOfValuesClose&&this.getListOfValuesClose(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetValueHigh=function(e){},f.prototype.invokeGetValueHigh=function(r,i){try{if(this.onGetValueHigh(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesValueHigh**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueHigh,n);i.value=r.report.toString2(o)}null!=this.getValueHigh&&this.getValueHigh(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetListOfValuesHigh=function(e){},f.prototype.invokeGetListOfValuesHigh=function(r,i){try{if(this.onGetListOfValuesHigh(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesListOfValuesHigh**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesHigh,n);i.value=r.report.toString2(o)}null!=this.getListOfValuesHigh&&this.getListOfValuesHigh(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetValueLow=function(e){},f.prototype.invokeGetValueLow=function(r,i){try{if(this.onGetValueLow(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesValueLow**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueLow,n);i.value=r.report.toString2(o)}null!=this.getValueLow&&this.getValueLow(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetListOfValuesLow=function(e){},f.prototype.invokeGetListOfValuesLow=function(r,i){try{if(this.onGetListOfValuesLow(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartGanttSeriesListOfValuesLow**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesLow,n);i.value=r.report.toString2(o)}null!=this.getListOfValuesLow&&this.getListOfValuesLow(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(f.prototype,"valueOpen",{get:function(){return this.valueObjOpen},set:function(e){this.valueObjOpen=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"listOfValuesOpen",{get:function(){return this._listOfValuesOpen},set:function(e){this._listOfValuesOpen=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueClose",{get:function(){return this.valueObjClose},set:function(e){this.valueObjClose=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"listOfValuesClose",{get:function(){return this._listOfValuesClose},set:function(e){this._listOfValuesClose=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueHigh",{get:function(){return this.valueObjHigh},set:function(e){this.valueObjHigh=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"listOfValuesHigh",{get:function(){return this._listOfValuesHigh},set:function(e){this._listOfValuesHigh=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueLow",{get:function(){return this.valueObjLow},set:function(e){this.valueObjLow=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"listOfValuesLow",{get:function(){return this._listOfValuesLow},set:function(e){this._listOfValuesLow=e},enumerable:!0,configurable:!0}),f.prototype.createNew=function(){return new f},f}(r.StiSeries);r.StiCandlestickSeries=p}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiPenStyle,s=e.System.Enum,l=e.System.Drawing.Color,u=function(u){function c(){var e=u.call(this)||this;return e._lineColor=l.black,e._lineStyle=a.Solid,e._lineWidth=2,e._lineColorNegative=l.firebrick,e._allowApplyColorNegative=!1,e.core=new r.StiStockSeriesCoreXF(e),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiStockSeries||(c.implementsStiStockSeries=u.prototype.implements.call(this).concat([n,r.IStiStockSeries,r.IStiFinancialSeries,o,r.IStiSeries,r.IStiAllowApplyColorNegative])),c.implementsStiStockSeries},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.removeProperty("BorderColor"),t.removeProperty("BorderWidth"),t.removeProperty("Brush"),t.removeProperty("BrushNegative"),t.addPropertyStringNullOfEmpty("LineColor",i.Serialize.jColor(this.lineColor,l.black)),t.addPropertyEnum("LineStyle",a,this.lineStyle,a.Solid),t.addPropertyNumber("LineWidth",this.lineWidth,2),t.addPropertyStringNullOfEmpty("LineColorNegative",i.Serialize.jColor(this.lineColorNegative,l.firebrick)),t.addPropertyBool("AllowApplyColorNegative",this.allowApplyColorNegative),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"LineColor":this.lineColor=i.Deserialize.color(n.value.toString());break;case"LineStyle":this.lineStyle=s.parse(a,n.value.toString());break;case"LineWidth":this.lineWidth=n.value.toNumber();break;case"LineColorNegative":this.lineColorNegative=i.Deserialize.color(n.value.toString());break;case"AllowApplyColorNegative":this.allowApplyColorNegative=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"LineColor":this.lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"LineStyle":this.lineStyle=s.parse(a,i.textContent);break;case"LineWidth":this.lineWidth=i.textContent.toNumber();break;case"LineColorNegative":this.lineColorNegative=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"AllowApplyColorNegative":this.allowApplyColorNegative=i.textContent.toBoolean();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiStockSeries},enumerable:!0,configurable:!0}),c.prototype.clone=function(){return u.prototype.clone.call(this)},c.prototype.getDefaultAreaType=function(){return r.StiStockArea},Object.defineProperty(c.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){e>0&&(this._lineWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineColorNegative",{get:function(){return this._lineColorNegative},set:function(e){this._lineColorNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyColorNegative",{get:function(){return this._allowApplyColorNegative},set:function(e){this._allowApplyColorNegative=e},enumerable:!0,configurable:!0}),c.prototype.createNew=function(){return new c},c}(r.StiCandlestickSeries);r.StiStockSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(u){function c(){var e=u.call(this)||this;return e._showZeros=!1,e._width=.8,e._borderColor=l.black,e._brush=new a(l.gainsboro),e._brushNegative=new a(l.firebrick),e._allowApplyBrushNegative=!1,e.core=new r.StiStackedBarSeriesCoreXF(e),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiStackedBarSeries||(c.implementsStiStackedBarSeries=u.prototype.implements.call(this).concat([n,r.IStiStackedBarSeries,o,r.IStiSeries,r.IStiAllowApplyBrushNegative])),c.implementsStiStackedBarSeries},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TrendLine"),t.addPropertyBool("ShowZeros",this.showZeros),t.addPropertyNumber("Width",this._width,.8),t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this._borderColor,l.black)),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this._brushNegative)),t.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"ShowZeros":this.showZeros=n.value.toBoolean();break;case"Width":this._width=n.value.toNumber();break;case"BorderColor":this._borderColor=i.Deserialize.color(n.value.toString());break;case"Brush":this._brush=i.Deserialize.brush(n.value.toString());break;case"BrushNegative":this._brushNegative=i.Deserialize.brush(n.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowZeros":this.showZeros=i.textContent.toBoolean();break;case"Width":this._width=i.textContent.toNumber();break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"Brush":case"bh":this._brush=s.loadFromXml(i.textContent);break;case"BrushNegative":this._brushNegative=s.loadFromXml(i.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedBarSeries},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var e=u.prototype.clone.call(this);return e.brush=this.brush.clone(),e},c.prototype.getDefaultAreaType=function(){return r.StiStackedBarArea},Object.defineProperty(c.prototype,"showZeros",{get:function(){return this._showZeros},set:function(e){this._showZeros=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(e){e>=.01&&e<=1&&(this._width=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),c.prototype.createNew=function(){return new c},c}(r.StiSeries);r.StiStackedBarSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedBarSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedBarSeries||(o.implementsStiFullStackedBarSeries=e.prototype.implements.call(this).concat([i,r.IStiStackedBarSeries,n,r.IStiSeries,r.IStiFullStackedBarSeries])),o.implementsStiFullStackedBarSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedBarSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiFullStackedBarArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedBarSeries);r.StiFullStackedBarSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Drawing.StiColorUtils,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiPenStyle,l=e.Base.Drawing.StiBrush,u=e.System.Enum,c=e.System.Drawing.Color,h=function(h){function p(){var e=null!==h&&h.apply(this,arguments)||this;return e._showNulls=!0,e._marker=new t.StiMarker,e._lineMarker=new t.StiLineMarker,e._lighting=!0,e._lineColor=c.mediumBlue,e._lineWidth=2,e._lineStyle=s.Solid,e._lineColorNegative=c.firebrick,e._allowApplyColorNegative=!1,e}return __extends(p,h),p.prototype.implements=function(){return p.implementsStiStackedBaseLineSeries||(p.implementsStiStackedBaseLineSeries=h.prototype.implements.call(this).concat([i,t.IStiStackedBaseLineSeries,n,t.IStiSeries])),p.implementsStiStackedBaseLineSeries},p.prototype.saveToJsonObject=function(e){var t=h.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TrendLine"),t.removeProperty("Conditions"),t.addPropertyBool("ShowNulls",this._showNulls,!0),t.addPropertyJObject("Marker",this._marker.saveToJsonObject(e)),t.addPropertyJObject("LineMarker",this.lineMarker.saveToJsonObject(e)),t.addPropertyBool("Lighting",this._lighting,!0),t.addPropertyStringNullOfEmpty("LineColor",r.Serialize.jColor(this._lineColor,c.mediumBlue)),t.addPropertyNumber("LineWidth",this._lineWidth,2),t.addPropertyEnum("LineStyle",s,this._lineStyle,s.Solid),t.addPropertyStringNullOfEmpty("LineColorNegative",r.Serialize.jColor(this.lineColorNegative,c.firebrick)),t.addPropertyBool("AllowApplyColorNegative",this._allowApplyColorNegative),t},p.prototype.loadFromJsonObject=function(e){h.prototype.loadFromJsonObject.call(this,e);for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"ShowNulls":this._showNulls=n.value.toBoolean();break;case"Marker":this._marker.loadFromJsonObject(n.value);break;case"LineMarker":this.lineMarker.loadFromJsonObject(n.value);break;case"Lighting":this._lighting=n.value.toBoolean();break;case"LineColor":this._lineColor=r.Deserialize.color(n.value.toString());break;case"LineWidth":this._lineWidth=n.value.toNumber();break;case"LineStyle":this._lineStyle=u.parse(s,n.value.toString());break;case"LineColorNegative":this.lineColorNegative=r.Deserialize.color(n.value.toString());break;case"AllowApplyColorNegative":this._allowApplyColorNegative=n.value.toBoolean();break}}},p.prototype.loadFromXml=function(t){h.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowNulls":this._showNulls=i.textContent.toBoolean();break;case"Marker":this._marker.loadFromXml(i);break;case"LineMarker":this.lineMarker.loadFromXml(i);break;case"Lighting":this._lighting=i.textContent.toBoolean();break;case"LineColor":this._lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"LineWidth":this._lineWidth=i.textContent.toNumber();break;case"LineStyle":this._lineStyle=u.parse(s,i.textContent.toString());break;case"LineColorNegative":this.lineColorNegative=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"AllowApplyColorNegative":this._allowApplyColorNegative=i.textContent.toBoolean();break}}},p.prototype.clone=function(){var e=h.prototype.clone.call(this);return e.lineStyle=this.lineStyle,e},Object.defineProperty(p.prototype,"showNulls",{get:function(){return this._showNulls},set:function(e){this._showNulls=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"showMarker",{get:function(){return this.marker.visible},set:function(e){this.marker.visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"markerColor",{get:function(){return l.toColor(this.marker.brush)},set:function(e){this.marker.brush=new a(e),this.marker.borderColor=o.dark(e,50)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"markerSize",{get:function(){return this.marker.size},set:function(e){this.marker.size=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"markerType",{get:function(){return this.marker.type},set:function(e){this.marker.type=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineMarker",{get:function(){return this._lineMarker},set:function(e){this._lineMarker=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lighting",{get:function(){return this._lighting},set:function(e){this._lighting=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){e>0&&(this._lineWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineColorNegative",{get:function(){return this._lineColorNegative},set:function(e){this._lineColorNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"allowApplyColorNegative",{get:function(){return this._allowApplyColorNegative},set:function(e){this._allowApplyColorNegative=e},enumerable:!0,configurable:!0}),p.prototype.getDefaultAreaType=function(){return t.StiStackedColumnArea},p}(t.StiSeries);t.StiStackedBaseLineSeries=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiStackedLineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedLineSeries||(o.implementsStiStackedLineSeries=e.prototype.implements.call(this).concat([i,r.IStiStackedBaseLineSeries,r.IStiStackedLineSeries,r.IStiSeries,n])),o.implementsStiStackedLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedLineSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiStackedColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedBaseLineSeries);r.StiStackedLineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(e){function u(){var t=e.call(this)||this;return t._brush=new a(l.gainsboro),t._brushNegative=new a(l.firebrick),t._allowApplyBrushNegative=!1,t.core=new r.StiStackedAreaSeriesCoreXF(t),t}return __extends(u,e),u.prototype.implements=function(){return u.implementsStiStackedAreaSeries||(u.implementsStiStackedAreaSeries=e.prototype.implements.call(this).concat([o,r.IStiStackedBaseLineSeries,r.IStiStackedLineSeries,n,r.IStiSeries,r.IStiStackedAreaSeries,r.IStiAllowApplyBrushNegative])),u.implementsStiStackedAreaSeries},u.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),r.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this._brushNegative)),r.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),r},u.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var o=n[r];switch(o.name){case"Brush":this._brush=i.Deserialize.brush(o.value.toString());break;case"BrushNegative":this._brushNegative=i.Deserialize.brush(o.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=o.value.toBoolean();break}}},u.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Brush":case"bh":this._brush=s.loadFromXml(i.textContent);break;case"BrushNegative":this._brushNegative=s.loadFromXml(i.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedAreaSeries},enumerable:!0,configurable:!0}),u.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.brush=this.coreBrush.clone(),t},u.prototype.getDefaultAreaType=function(){return r.StiStackedColumnArea},Object.defineProperty(u.prototype,"coreBrush",{get:function(){return this.brush},set:function(e){this.brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),u.prototype.createNew=function(){return new u},u}(r.StiStackedLineSeries);r.StiStackedAreaSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedAreaSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedAreaSeries||(o.implementsStiFullStackedAreaSeries=e.prototype.implements.call(this).concat([r.IStiStackedAreaSeries,r.IStiStackedBaseLineSeries,r.IStiSeries,i,r.IStiFullStackedAreaSeries,r.IStiStackedLineSeries,n,r.IStiAllowApplyBrushNegative])),o.implementsStiFullStackedAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedAreaSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiFullStackedColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedAreaSeries);r.StiFullStackedAreaSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(u){function c(){var e=u.call(this)||this;return e._showZeros=!1,e._width=.8,e._borderColor=l.black,e._brush=new a(l.gainsboro),e._brushNegative=new a(l.firebrick),e._allowApplyBrushNegative=!1,e.core=new r.StiStackedColumnSeriesCoreXF(e),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiStackedColumnSeries||(c.implementsStiStackedColumnSeries=u.prototype.implements.call(this).concat([n,r.IStiStackedColumnSeries,o,r.IStiSeries,r.IStiAllowApplyBrushNegative])),c.implementsStiStackedColumnSeries},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TrendLine"),t.addPropertyBool("ShowZeros",this.showZeros),t.addPropertyNumber("Width",this._width,.8),t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this._borderColor,l.black)),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this._brushNegative)),t.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"ShowZeros":this.showZeros=n.value.toBoolean();break;case"Width":this._width=n.value.toNumber();break;case"BorderColor":this._borderColor=i.Deserialize.color(n.value.toString());break;case"Brush":this._brush=i.Deserialize.brush(n.value.toString());break;case"BrushNegative":this._brushNegative=i.Deserialize.brush(n.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowZeros":this.showZeros=i.textContent.toBoolean();break;case"Width":this._width=i.textContent.toNumber();break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break;case"BrushNegative":this._brushNegative=s.convertToBrush(i.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedColumnSeries},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var e=u.prototype.clone.call(this);return e.brush=this.brush.clone(),e},Object.defineProperty(c.prototype,"showZeros",{get:function(){return this._showZeros},set:function(e){this._showZeros=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"width",{get:function(){return this._width},set:function(e){e>=.01&&e<=1&&(this._width=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),c.prototype.getDefaultAreaType=function(){return r.StiStackedColumnArea},c.prototype.createNew=function(){return new c},c}(r.StiSeries);r.StiStackedColumnSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedColumnSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedColumnSeries||(o.implementsStiFullStackedColumnSeries=e.prototype.implements.call(this).concat([r.IStiFullStackedColumnSeries,r.IStiStackedColumnSeries,n,r.IStiSeries,i,r.IStiAllowApplyBrushNegative])),o.implementsStiFullStackedColumnSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedColumnSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiFullStackedColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedColumnSeries);r.StiFullStackedColumnSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedLineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedLineSeries||(o.implementsStiFullStackedLineSeries=e.prototype.implements.call(this).concat([i,r.IStiStackedBaseLineSeries,r.IStiStackedLineSeries,r.IStiSeries,n])),o.implementsStiFullStackedLineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedLineSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiFullStackedColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedLineSeries);r.StiFullStackedLineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t._tension=.55,t.core=new r.StiStackedSplineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiStackedSplineSeries||(o.implementsStiStackedSplineSeries=e.prototype.implements.call(this).concat([i,r.IStiStackedBaseLineSeries,n,r.IStiSeries,r.IStiStackedSplineSeries,r.IStiAllowApplyColorNegative])),o.implementsStiStackedSplineSeries},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("LineMarker"),r.addPropertyNumber("Tension",this._tension,.55),r},o.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"Tension":this._tension=n.value.toNumber();break}}},o.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Tension":this._tension=i.textContent.toNumber();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedSplineSeries},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"tension",{get:function(){return this._tension},set:function(e){this._tension=e},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiStackedColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedBaseLineSeries);r.StiStackedSplineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(e){function u(){var t=e.call(this)||this;return t._brush=new a(l.gainsboro),t._brushNegative=new a(l.firebrick),t._allowApplyBrushNegative=!1,t.core=new r.StiStackedSplineAreaSeriesCoreXF(t),t}return __extends(u,e),u.prototype.implements=function(){return u.implementsStiStackedSplineAreaSeries||(u.implementsStiStackedSplineAreaSeries=e.prototype.implements.call(this).concat([r.IStiStackedSplineSeries,r.IStiStackedBaseLineSeries,r.IStiStackedSplineAreaSeries,n,r.IStiSeries,o,r.IStiAllowApplyBrushNegative])),u.implementsStiStackedSplineAreaSeries},u.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),r.addPropertyStringNullOfEmpty("BrushNegative",i.Serialize.jBrush(this._brushNegative)),r.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),r},u.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var o=n[r];switch(o.name){case"Brush":this._brush=i.Deserialize.brush(o.value.toString());break;case"BrushNegative":this._brushNegative=i.Deserialize.brush(o.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=o.value.toBoolean();break}}},u.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Brush":case"bh":this._brush=s.convertToBrush(i.textContent);break;case"BrushNegative":this._brushNegative=s.convertToBrush(i.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=i.textContent.toBoolean();break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiStackedSplineAreaSeries},enumerable:!0,configurable:!0}),u.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.brush=this.brush.clone(),t},Object.defineProperty(u.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),u.prototype.getDefaultAreaType=function(){return r.StiStackedColumnArea},u.prototype.createNew=function(){return new u},u}(r.StiStackedSplineSeries);r.StiStackedSplineAreaSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedSplineAreaSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedSplineAreaSeries||(o.implementsStiFullStackedSplineAreaSeries=e.prototype.implements.call(this).concat([r.IStiStackedSplineSeries,r.IStiFullStackedSplineAreaSeries,r.IStiStackedBaseLineSeries,r.IStiStackedSplineAreaSeries,i,r.IStiSeries,n,r.IStiAllowApplyBrushNegative])),o.implementsStiFullStackedSplineAreaSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedSplineAreaSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiFullStackedColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedSplineAreaSeries);r.StiFullStackedSplineAreaSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFullStackedSplineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFullStackedSplineSeries||(o.implementsStiFullStackedSplineSeries=e.prototype.implements.call(this).concat([r.IStiStackedSplineSeries,r.IStiStackedBaseLineSeries,r.IStiFullStackedSplineSeries,i,r.IStiSeries,n,r.IStiAllowApplyColorNegative])),o.implementsStiFullStackedSplineSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFullStackedSplineSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiFullStackedColumnArea},o.prototype.createNew=function(){return new o},o}(r.StiStackedSplineSeries);r.StiFullStackedSplineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=function(u){function c(){var e=u.call(this)||this;return e._showZeros=!1,e._allowApplyBrush=!0,e._allowApplyBorderColor=!0,e._brush=new a(l.gainsboro),e._borderColor=l.gray,e.core=new r.StiFunnelSeriesCoreXF(e),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiFunnelSeries||(c.implementsStiFunnelSeries=u.prototype.implements.call(this).concat([n,r.IStiFunnelSeries,r.IStiSeries,o])),c.implementsStiFunnelSeries},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TrendLine"),t.addPropertyBool("ShowZeros",this.showZeros),t.addPropertyBool("AllowApplyBrush",this._allowApplyBrush,!0),t.addPropertyBool("AllowApplyBorderColor",this._allowApplyBorderColor,!0),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this._borderColor,l.gray)),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"ShowZeros":this.showZeros=n.value.toBoolean();break;case"AllowApplyBrush":this._allowApplyBrush=n.value.toBoolean();break;case"AllowApplyBorderColor":this._allowApplyBorderColor=n.value.toBoolean();break;case"Brush":this._brush=i.Deserialize.brush(n.value.toString());break;case"BorderColor":this._borderColor=i.Deserialize.color(n.value.toString());break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowZeros":this.showZeros=i.textContent.toBoolean();break;case"AllowApplyBrush":this._allowApplyBrush=i.textContent.toBoolean();break;case"AllowApplyBorderColor":this._allowApplyBorderColor=i.textContent.toBoolean();break;case"Brush":case"bh":this._brush=s.loadFromXml(i.textContent);break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiFunnelSeries},enumerable:!0,configurable:!0}),c.prototype.clone=function(){return u.prototype.clone.call(this)},c.prototype.getDefaultAreaType=function(){return r.StiFunnelArea},Object.defineProperty(c.prototype,"showZeros",{get:function(){return this._showZeros},set:function(e){this._showZeros=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyBrush",{get:function(){return this._allowApplyBrush},set:function(e){this._allowApplyBrush!=e&&(this._allowApplyBrush=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyBorderColor",{get:function(){return this._allowApplyBorderColor},set:function(e){this._allowApplyBorderColor!=e&&(this._allowApplyBorderColor=e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),c.prototype.createNew=function(){return new c},c}(r.StiSeries);r.StiFunnelSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiFunnelWeightedSlicesSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiFunnelWeightedSlicesSeries||(o.implementsStiFunnelWeightedSlicesSeries=e.prototype.implements.call(this).concat([i,r.IStiFunnelSeries,r.IStiFunnelWeightedSlicesSeries,r.IStiSeries,n])),o.implementsStiFunnelWeightedSlicesSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiFunnelWeightedSlicesSeries},enumerable:!0,configurable:!0}),o.prototype.clone=function(){return e.prototype.clone.call(this)},o.prototype.createNew=function(){return new o},o}(r.StiFunnelSeries);r.StiFunnelWeightedSlicesSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Report.Components.StiText,s=e.System.Text.StringBuilder,l=function(l){function u(){var e=l.call(this)||this;return e._valuesEnd=[3,5,9],e._valueDataColumnEnd=String.empty,e.valueObjEnd="",e._listOfValuesEnd="",e.core=new r.StiGanttSeriesCoreXF(e),e}return __extends(u,l),u.prototype.implements=function(){return u.implementsStiGanttSeries||(u.implementsStiGanttSeries=l.prototype.implements.call(this).concat([r.IStiClusteredColumnSeries,r.IStiClusteredBarSeries,r.IStiRangeSeries,n,r.IStiSeries,r.IStiGanttSeries,o,r.IStiAllowApplyBrushNegative])),u.implementsStiGanttSeries},u.prototype.saveToJsonObject=function(e){var t=l.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TopN"),t.removeProperty("TrendLine"),t.addPropertyString("ValueDataColumnEnd",this._valueDataColumnEnd),t.addPropertyJObject("ValueEnd",new i(this.valueEnd).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesEnd",new i(this.listOfValuesEnd).saveToJsonObject(e)),t},u.prototype.loadFromJsonObject=function(e){l.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"ValueDataColumnEnd":this._valueDataColumnEnd=n.value.toString();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var o=new i;o.loadFromJsonObject(n.value),this.valueEnd=o.value;break;case"ListOfValuesEnd":var o=new i;o.loadFromJsonObject(n.value),this.listOfValuesEnd=o.value;break}}},u.prototype.loadFromXml=function(e){l.prototype.loadFromXml.call(this,e);for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"ValueDataColumnEnd":this._valueDataColumnEnd=r.textContent.toString();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var n=new i;n.loadFromXml(r),this.valueEnd=n.value;break;case"ListOfValuesEnd":var n=new i;n.loadFromXml(r),this.listOfValuesEnd=n.value;break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiGanttSeries},enumerable:!0,configurable:!0}),u.prototype.clone=function(){return l.prototype.clone.call(this)},u.prototype.getDefaultAreaType=function(){return r.StiGanttArea},Object.defineProperty(u.prototype,"valuesEnd",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesEnd))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd},set:function(e){this._valuesEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"valuesStringEnd",{get:function(){for(var e=new s,t=!0,r=0,i=this.valuesEnd;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._valuesEnd=[];else{var t=e.split(";");this._valuesEnd=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this._valuesEnd[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"valueDataColumnEnd",{get:function(){return this._valueDataColumnEnd},set:function(e){this._valueDataColumnEnd=e},enumerable:!0,configurable:!0}),u.prototype.onGetValueEnd=function(e){},u.prototype.invokeGetValueEnd=function(r,i){try{if(this.onGetValueEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new a;n.name="**ChartGanttSeriesValueEnd**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,n);i.value=r.report.toString2(o)}null!=this.getValueEnd&&this.getValueEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},u.prototype.onGetListOfValuesEnd=function(e){},u.prototype.invokeGetListOfValuesEnd=function(r,i,n){try{if(n.onGetListOfValuesEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var o=new a;o.name="**ChartGanttSeriesListOfValuesEnd**",o.page=r.report.pages.getByIndex(0);var s=t.Engine.StiParser.StiParser.parseTextValue(n.listOfValuesEnd,o);i.value=r.report.toString2(s)}null!=n.getListOfValuesEnd&&n.getListOfValuesEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(u.prototype,"valueEnd",{get:function(){return this.valueObjEnd},set:function(e){this.valueObjEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"listOfValuesEnd",{get:function(){return this._listOfValuesEnd},set:function(e){this._listOfValuesEnd=e},enumerable:!0,configurable:!0}),u.prototype.createNew=function(){return new u},u}(r.StiClusteredBarSeries);r.StiGanttSeries=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.System.Enum,a=function(a){function s(){var e=a.call(this)||this;return e._icon=t.StiFontIcons.QuarterFull,e.core=new r.StiPictorialSeriesCoreXF(e),e}return __extends(s,a),s.prototype.implements=function(){return s.implementsStiPictorialSeries||(s.implementsStiPictorialSeries=a.prototype.implements.call(this).concat([r.IStiPictorialSeries,n,r.IStiSeries,i])),s.implementsStiPictorialSeries},s.prototype.saveToJsonObject=function(t){var r=a.prototype.saveToJsonObject.call(this,t);return r.addPropertyEnum("Icon",e.Report.StiFontIcons,this.icon,e.Report.StiFontIcons.QuarterFull),r},s.prototype.loadFromJsonObject=function(t){a.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"Icon":this._icon=o.parse(e.Report.StiFontIcons,n.value.toString());break}}},s.prototype.loadFromXml=function(t){a.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Icon":this._icon=o.parse(e.Report.StiFontIcons,i.textContent);break}}},Object.defineProperty(s.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"componentId",{get:function(){return t.StiComponentId.StiPictorialSeries},enumerable:!0,configurable:!0}),s.prototype.clone=function(){return a.prototype.clone.call(this)},s.prototype.getDefaultAreaType=function(){return r.StiPictorialArea},s.prototype.createNew=function(){return new s},s}(r.StiSeries);r.StiPictorialSeries=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.JsonReportObject.IStiJsonReportObject,i=e.System.ICloneable,n=function(e){function n(){var r=null!==e&&e.apply(this,arguments)||this;return r._showNulls=!0,r._marker=new t.StiMarker,r}return __extends(n,e),n.prototype.implements=function(){return n.implementsStiRadarSeries||(n.implementsStiRadarSeries=e.prototype.implements.call(this).concat([r,i,t.IStiSeries,t.IStiRadarSeries])),n.implementsStiRadarSeries},n.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("TrendLine"),r.addPropertyBool("ShowNulls",this._showNulls,!0),r.addPropertyJObject("Marker",this.marker.saveToJsonObject(t)),r},n.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"ShowNulls":this._showNulls=n.value.toBoolean();break;case"Marker":this._marker.loadFromJsonObject(n.value);break}}},n.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"ShowNulls":this._showNulls=i.textContent.toBoolean();break;case"Marker":this._marker.loadFromXml(i);break}}},n.prototype.clone=function(){var t=e.prototype.clone.call(this);return null!=this.marker&&(t.marker=this.marker.clone()),t},Object.defineProperty(n.prototype,"showNulls",{get:function(){return this._showNulls},set:function(e){this._showNulls=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker=e},enumerable:!0,configurable:!0}),n}(t.StiSeries);t.StiRadarSeries=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiPenStyle,l=e.Base.Drawing.StiBrush,u=e.System.Enum,c=e.System.Drawing.Color,h=function(h){function p(){var e=h.call(this)||this;return e._lineColor=c.black,e._lineStyle=s.Solid,e._lighting=!0,e._lineWidth=2,e._brush=new a(c.gainsboro),e.core=new r.StiRadarAreaSeriesCoreXF(e),e}return __extends(p,h),p.prototype.implements=function(){return p.implementsStiRadarAreaSeries||(p.implementsStiRadarAreaSeries=h.prototype.implements.call(this).concat([r.IStiRadarSeries,r.IStiRadarLineSeries,n,r.IStiSeries,r.IStiRadarAreaSeries,o])),p.implementsStiRadarAreaSeries},p.prototype.saveToJsonObject=function(e){var t=h.prototype.saveToJsonObject.call(this,e)
;return t.addPropertyStringNullOfEmpty("LineColor",i.Serialize.jColor(this.lineColor,c.black)),t.addPropertyEnum("LineStyle",s,this.lineStyle,s.Solid),t.addPropertyBool("Lighting",this.lighting,!0),t.addPropertyNumber("LineWidth",this.lineWidth,2),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t},p.prototype.loadFromJsonObject=function(e){h.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"LineColor":this.lineColor=i.Deserialize.color(n.value.toString());break;case"LineStyle":this.lineStyle=u.parse(s,n.value.toString());break;case"Lighting":this.lighting=n.value.toBoolean();break;case"LineWidth":this.lineWidth=n.value.toNumber();break;case"Brush":this._brush=i.Deserialize.brush(n.value.toString());break}}},p.prototype.loadFromXml=function(t){h.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"LineColor":this.lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"LineStyle":this.lineStyle=u.parse(s,i.textContent);break;case"Lighting":this.lighting=i.textContent.toBoolean();break;case"LineWidth":this.lineWidth=i.textContent.toNumber();break;case"Brush":case"bh":this._brush=l.convertToBrush(i.textContent);break}}},Object.defineProperty(p.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadarAreaSeries},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lighting",{get:function(){return this._lighting},set:function(e){this._lighting=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){e>0&&(this._lineWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),p.prototype.getDefaultAreaType=function(){return r.StiRadarAreaArea},p.prototype.createNew=function(){return new p},p}(r.StiRadarSeries);r.StiRadarAreaSeries=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiPenStyle,s=e.System.Enum,l=e.System.Drawing.Color,u=function(u){function c(){var e=u.call(this)||this;return e._lineColor=l.black,e._lineStyle=a.Solid,e._lighting=!0,e._lineWidth=2,e.core=new r.StiRadarLineSeriesCoreXF(e),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiRadarLineSeries||(c.implementsStiRadarLineSeries=u.prototype.implements.call(this).concat([n,r.IStiRadarLineSeries,o,r.IStiSeries,r.IStiRadarSeries])),c.implementsStiRadarLineSeries},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.addPropertyStringNullOfEmpty("LineColor",i.Serialize.jColor(this.lineColor,l.black)),t.addPropertyEnum("LineStyle",a,this.lineStyle,a.Solid),t.addPropertyBool("Lighting",this.lighting,!0),t.addPropertyNumber("LineWidth",this.lineWidth,2),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"LineColor":this.lineColor=i.Deserialize.color(n.value.toString());break;case"LineStyle":this.lineStyle=s.parse(a,n.value.toString());break;case"Lighting":this.lighting=n.value.toBoolean();break;case"LineWidth":this.lineWidth=n.value.toNumber();break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"LineColor":this.lineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"LineStyle":this.lineStyle=s.parse(a,i.textContent);break;case"Lighting":this.lighting=i.textContent.toBoolean();break;case"LineWidth":this.lineWidth=i.textContent.toNumber();break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadarLineSeries},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lighting",{get:function(){return this._lighting},set:function(e){this._lighting=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){e>0&&(this._lineWidth=e)},enumerable:!0,configurable:!0}),c.prototype.getDefaultAreaType=function(){return r.StiRadarLineArea},c.prototype.createNew=function(){return new c},c}(r.StiRadarSeries);r.StiRadarLineSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiRadarPointSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiRadarPointSeries||(o.implementsStiRadarPointSeries=e.prototype.implements.call(this).concat([i,r.IStiRadarPointSeries,n,r.IStiSeries,r.IStiRadarSeries])),o.implementsStiRadarPointSeries},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadarPointSeries},enumerable:!0,configurable:!0}),o.prototype.getDefaultAreaType=function(){return r.StiRadarPointArea},o.prototype.createNew=function(){return new o},o}(r.StiRadarSeries);r.StiRadarPointSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Report.Components.StiText,s=e.System.Text.StringBuilder,l=function(l){function u(){var e=l.call(this)||this;return e._valuesEnd=[3,5,9],e._valueDataColumnEnd=String.empty,e.valueObjEnd="",e._listOfValuesEnd="",e.core=new r.StiRangeBarSeriesCoreXF(e),e}return __extends(u,l),u.prototype.implements=function(){return u.implementsStiRangeBarSeries||(u.implementsStiRangeBarSeries=l.prototype.implements.call(this).concat([r.IStiRangeBarSeries,r.IStiClusteredColumnSeries,r.IStiRangeSeries,n,r.IStiSeries,o,r.IStiAllowApplyBrushNegative])),u.implementsStiRangeBarSeries},u.prototype.saveToJsonObject=function(e){var t=l.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TopN"),t.removeProperty("TrendLine"),t.addPropertyStringNullOfEmpty("ValueDataColumnEnd",this._valueDataColumnEnd),t.addPropertyJObject("Value",new i(this.value).saveToJsonObject(e)),t.addPropertyJObject("ValueEnd",new i(this.valueEnd).saveToJsonObject(e)),t.addPropertyJObject("ListOfValues",new i(this.listOfValues).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesEnd",new i(this.listOfValuesEnd).saveToJsonObject(e)),t},u.prototype.loadFromJsonObject=function(e){l.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"ValueDataColumnEnd":this._valueDataColumnEnd=n.value.toString();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"Value":var o=new i;o.loadFromJsonObject(n.value),this.value=o.value;break;case"ValueEnd":var o=new i;o.loadFromJsonObject(n.value),this.valueEnd=o.value;break;case"ListOfValues":var o=new i;o.loadFromJsonObject(n.value),this.listOfValues=o.value;break;case"ListOfValuesEnd":var o=new i;o.loadFromJsonObject(n.value),this.listOfValuesEnd=o.value;break}}},u.prototype.loadFromXml=function(e){l.prototype.loadFromXml.call(this,e);for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"ValueDataColumnEnd":this._valueDataColumnEnd=r.textContent;break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"Value":var n=new i;n.loadFromXml(r),this.value=n.value;break;case"ValueEnd":var n=new i;n.loadFromXml(r),this.valueEnd=n.value;break;case"ListOfValues":var n=new i;n.loadFromXml(r),this.listOfValues=n.value;break;case"ListOfValuesEnd":var n=new i;n.loadFromXml(r),this.listOfValuesEnd=n.value;break}}},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiRangeBarSeries},enumerable:!0,configurable:!0}),u.prototype.clone=function(){return l.prototype.clone.call(this)},u.prototype.getDefaultAreaType=function(){return r.StiRangeBarArea},Object.defineProperty(u.prototype,"valuesEnd",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesEnd))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd},set:function(e){this._valuesEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"valuesStringEnd",{get:function(){for(var e=new s,t=!0,r=0,i=this.valuesEnd;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._valuesEnd=[];else{var t=e.split(";");this._valuesEnd=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this._valuesEnd[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"valueDataColumnEnd",{get:function(){return this._valueDataColumnEnd},set:function(e){this._valueDataColumnEnd=e},enumerable:!0,configurable:!0}),u.prototype.onGetValueEnd=function(e){},u.prototype.invokeGetValueEnd=function(r,i){try{if(this.onGetValueEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new a;n.name="**ChartGanttSeriesValueEnd**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,n);i.value=r.report.toString2(o)}null!=this.getValueEnd&&this.getValueEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},u.prototype.onGetListOfValuesEnd=function(e){},u.prototype.invokeGetListOfValuesEnd=function(r,i,n){try{if(n.onGetListOfValuesEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var o=new a;o.name="**ChartGanttSeriesListOfValuesEnd**",o.page=r.report.pages.getByIndex(0);var s=t.Engine.StiParser.StiParser.parseTextValue(n.listOfValuesEnd,o);i.value=r.report.toString2(s)}null!=n.getListOfValuesEnd&&n.getListOfValuesEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(u.prototype,"valueEnd",{get:function(){return this.valueObjEnd},set:function(e){this.valueObjEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"listOfValuesEnd",{get:function(){return this._listOfValuesEnd},set:function(e){this._listOfValuesEnd=e},enumerable:!0,configurable:!0}),u.prototype.createNew=function(){return new u},u}(r.StiClusteredColumnSeries);r.StiRangeBarSeries=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.StiJsonReportObjectHelper,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Report.Components.StiText,l=e.System.Text.StringBuilder,u=e.Base.Drawing.StiSolidBrush,c=e.Base.Drawing.StiBrush,h=e.System.Drawing.Color,p=function(p){function f(){var e=p.call(this)||this;return e._brush=new u(h.gainsboro),e._valuesEnd=[3,5,9],e._valueDataColumnEnd=String.empty,e._brushNegative=new u(h.firebrick),e._allowApplyBrushNegative=!1,e.valueObjEnd="",e._listOfValuesEnd="",e.core=new r.StiRangeSeriesCoreXF(e),e}return __extends(f,p),f.prototype.implements=function(){return f.implementsStiRangeSeries||(f.implementsStiRangeSeries=p.prototype.implements.call(this).concat([r.IStiLineSeries,r.IStiLineRangeSeries,r.IStiBaseLineSeries,r.IStiRangeSeries,o,r.IStiSeries,a,r.IStiAllowApplyColorNegative])),f.implementsStiRangeSeries},f.prototype.saveToJsonObject=function(e){var t=p.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TopN"),t.removeProperty("TrendLine"),t.addPropertyStringNullOfEmpty("Brush",n.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("ValueDataColumnEnd",this._valueDataColumnEnd),t.addPropertyStringNullOfEmpty("BrushNegative",n.Serialize.jBrush(this._brushNegative)),t.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),t.addPropertyJObject("ValueEnd",new i(this.valueEnd).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesEnd",new i(this.listOfValuesEnd).saveToJsonObject(e)),t},f.prototype.loadFromJsonObject=function(e){p.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var o=r[t];switch(o.name){case"Brush":this._brush=n.Deserialize.brush(o.value.toString());break;case"ValueDataColumnEnd":this._valueDataColumnEnd=o.value.toString();break;case"BrushNegative":this._brushNegative=n.Deserialize.brush(o.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=o.value.toBoolean();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var a=new i;a.loadFromJsonObject(o.value),this.valueEnd=a.value;break;case"ListOfValuesEnd":var a=new i;a.loadFromJsonObject(o.value),this.listOfValuesEnd=a.value;break}}},f.prototype.loadFromXml=function(e){p.prototype.loadFromXml.call(this,e);for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"Brush":case"bh":this._brush=c.loadFromXml(r.textContent);break;case"ValueDataColumnEnd":this._valueDataColumnEnd=r.textContent;break;case"BrushNegative":this._brushNegative=c.loadFromXml(r.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=r.textContent.toBoolean();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var n=new i;n.loadFromXml(r),this.valueEnd=n.value;break;case"ListOfValuesEnd":var n=new i;n.loadFromXml(r),this.listOfValuesEnd=n.value;break}}},Object.defineProperty(f.prototype,"componentId",{get:function(){return t.StiComponentId.StiRangeSeries},enumerable:!0,configurable:!0}),f.prototype.clone=function(){return p.prototype.clone.call(this)},f.prototype.getDefaultAreaType=function(){return r.StiRangeArea},Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesEnd",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesEnd))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd},set:function(e){this._valuesEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesStringEnd",{get:function(){for(var e=new l,t=!0,r=0,i=this.valuesEnd;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this.valuesEnd=[];else{var t=e.split(";");this.valuesEnd=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this.valuesEnd[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueDataColumnEnd",{get:function(){return this._valueDataColumnEnd},set:function(e){this._valueDataColumnEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this._brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),f.prototype.onGetValueEnd=function(e){},f.prototype.invokeGetValueEnd=function(r,i){try{if(this.onGetValueEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartRangeSeriesValueEnd**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,n);i.value=r.report.toString2(o)}null!=this.getValueEnd&&this.getValueEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetListOfValuesEnd=function(e){},f.prototype.invokeGetListOfValuesEnd=function(r,i,n){try{if(n.onGetListOfValuesEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var o=new s;o.name="**ChartRangeSeriesListOfValuesEnd**",o.page=r.report.pages.getByIndex(0);var a=t.Engine.StiParser.StiParser.parseTextValue(n.listOfValuesEnd,o);i.value=r.report.toString2(a)}null!=n.getListOfValuesEnd&&n.getListOfValuesEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(f.prototype,"valueEnd",{get:function(){return this.valueObjEnd},set:function(e){this.valueObjEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"listOfValuesEnd",{get:function(){return this._listOfValuesEnd},set:function(e){this._listOfValuesEnd=e},enumerable:!0,configurable:!0}),f.prototype.createNew=function(){return new f},f}(r.StiLineSeries);r.StiRangeSeries=p}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.StiJsonReportObjectHelper,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Report.Components.StiText,l=e.System.Text.StringBuilder,u=e.Base.Drawing.StiSolidBrush,c=e.Base.Drawing.StiBrush,h=e.System.Drawing.Color,p=function(p){function f(){var e=p.call(this)||this;return e._brush=new u(h.gainsboro),e._valuesEnd=[4,5,9],e._valueDataColumnEnd=String.empty,e.valueObjEnd="",e._listOfValuesEnd="",e.core=new r.StiSplineRangeSeriesCoreXF(e),e}return __extends(f,p),f.prototype.implements=function(){return f.implementsStiSplineRangeSeries||(f.implementsStiSplineRangeSeries=p.prototype.implements.call(this).concat([r.IStiSplineSeries,r.IStiSplineRangeSeries,r.IStiBaseLineSeries,r.IStiRangeSeries,o,r.IStiSeries,a,r.IStiAllowApplyColorNegative])),f.implementsStiSplineRangeSeries},f.prototype.saveToJsonObject=function(e){var t=p.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TopN"),t.removeProperty("TrendLine"),t.addPropertyStringNullOfEmpty("Brush",n.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("ValueDataColumnEnd",this._valueDataColumnEnd),t.addPropertyJObject("ValueEnd",new i(this.valueEnd).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesEnd",new i(this.listOfValuesEnd).saveToJsonObject(e)),t},f.prototype.loadFromJsonObject=function(e){p.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var o=r[t];switch(o.name){case"Brush":this._brush=n.Deserialize.brush(o.value.toString());break;case"ValueDataColumnEnd":this._valueDataColumnEnd=o.value.toString();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var a=new i;a.loadFromJsonObject(o.value),this.valueEnd=a.value;break;case"ListOfValuesEnd":var a=new i;a.loadFromJsonObject(o.value),this.listOfValuesEnd=a.value;break}}},f.prototype.loadFromXml=function(e){p.prototype.loadFromXml.call(this,e);for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"Brush":case"bh":this._brush=c.convertToBrush(r.textContent);break;case"ValueDataColumnEnd":this._valueDataColumnEnd=r.textContent;break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var n=new i;n.loadFromXml(r),this.valueEnd=n.value;break;case"ListOfValuesEnd":var n=new i;n.loadFromXml(r),this.listOfValuesEnd=n.value;break}}},Object.defineProperty(f.prototype,"componentId",{get:function(){return t.StiComponentId.StiSplineRangeSeries},enumerable:!0,configurable:!0}),f.prototype.clone=function(){return p.prototype.clone.call(this)},f.prototype.getDefaultAreaType=function(){return r.StiSplineRangeArea},Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesEnd",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesEnd))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd},set:function(e){this._valuesEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesStringEnd",{get:function(){for(var e=new l,t=!0,r=0,i=this._valuesEnd;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this._valuesEnd=[];else{var t=e.split(";");this._valuesEnd=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this._valuesEnd[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueDataColumnEnd",{get:function(){return this._valueDataColumnEnd},set:function(e){this._valueDataColumnEnd=e},enumerable:!0,configurable:!0}),f.prototype.onGetValueEnd=function(e){},f.prototype.invokeGetValueEnd=function(r,i){try{if(this.onGetValueEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartSteppedRangeSeriesValueEnd**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,n);i.value=r.report.toString2(o)}null!=this.getValueEnd&&this.getValueEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetListOfValuesEnd=function(e){},f.prototype.invokeGetListOfValuesEnd=function(r,i,n){try{if(n.onGetListOfValuesEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var o=new s;o.name="**ChartSteppedRangeSeriesListOfValuesEnd**",o.page=r.report.pages.getByIndex(0);var a=t.Engine.StiParser.StiParser.parseTextValue(n.listOfValuesEnd,o);i.value=r.report.toString2(a)}null!=n.getListOfValuesEnd&&n.getListOfValuesEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(f.prototype,"valueEnd",{get:function(){return this.valueObjEnd},set:function(e){this.valueObjEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"listOfValuesEnd",{get:function(){return this._listOfValuesEnd},set:function(e){this._listOfValuesEnd=e},enumerable:!0,configurable:!0}),f.prototype.createNew=function(){return new f},f}(r.StiSplineSeries);r.StiSplineRangeSeries=p}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Expressions.StiExpression,n=e.Base.StiJsonReportObjectHelper,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Report.Components.StiText,l=e.System.Text.StringBuilder,u=e.Base.Drawing.StiSolidBrush,c=e.Base.Drawing.StiBrush,h=e.System.Drawing.Color,p=function(p){function f(){var e=p.call(this)||this;return e._brush=new u(h.gainsboro),e._valuesEnd=[4,5,9],e._valueDataColumnEnd=String.empty,e._brushNegative=new u(h.firebrick),e._allowApplyBrushNegative=!1,e.valueObjEnd="",e._listOfValuesEnd="",e.core=new r.StiSteppedRangeSeriesCoreXF(e),e}return __extends(f,p),f.prototype.implements=function(){return f.implementsStiSteppedRangeSeries||(f.implementsStiSteppedRangeSeries=p.prototype.implements.call(this).concat([r.IStiSteppedLineSeries,r.IStiBaseLineSeries,r.IStiRangeSeries,r.IStiSteppedRangeSeries,o,r.IStiSeries,a,r.IStiAllowApplyColorNegative])),f.implementsStiSteppedRangeSeries},f.prototype.saveToJsonObject=function(e){var t=p.prototype.saveToJsonObject.call(this,e);return t.removeProperty("TopN"),t.removeProperty("TrendLine"),t.addPropertyStringNullOfEmpty("Brush",n.Serialize.jBrush(this._brush)),t.addPropertyStringNullOfEmpty("ValueDataColumnEnd",this._valueDataColumnEnd),t.addPropertyStringNullOfEmpty("BrushNegative",n.Serialize.jBrush(this._brushNegative)),t.addPropertyBool("AllowApplyBrushNegative",this._allowApplyBrushNegative),t.addPropertyJObject("ValueEnd",new i(this.valueObjEnd).saveToJsonObject(e)),t.addPropertyJObject("ListOfValuesEnd",new i(this.listOfValuesEnd).saveToJsonObject(e)),t},f.prototype.loadFromJsonObject=function(e){p.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var o=r[t];switch(o.name){case"Brush":this._brush=n.Deserialize.brush(o.value.toString());break;case"ValueDataColumnEnd":this._valueDataColumnEnd=o.value.toString();break;case"BrushNegative":this._brushNegative=n.Deserialize.brush(o.value.toString());break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=o.value.toBoolean();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var a=new i;a.loadFromJsonObject(o.value),this.valueObjEnd=a.value;break;case"ListOfValuesEnd":var a=new i;a.loadFromJsonObject(o.value),this.listOfValuesEnd=a.value;break}}},f.prototype.loadFromXml=function(e){p.prototype.loadFromXml.call(this,e);for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"Brush":case"bh":this._brush=c.loadFromXml(r.textContent);break;case"ValueDataColumnEnd":this._valueDataColumnEnd=r.textContent;break;case"BrushNegative":this._brushNegative=c.loadFromXml(r.textContent);break;case"AllowApplyBrushNegative":this._allowApplyBrushNegative=r.textContent.toBoolean();break;case"GetValueEndEvent":break;case"GetListOfValuesEndEvent":break;case"ValueEnd":var n=new i;n.loadFromXml(r),this.valueObjEnd=n.value;break;case"ListOfValuesEnd":var n=new i;n.loadFromXml(r),this.listOfValuesEnd=n.value;break}}},Object.defineProperty(f.prototype,"componentId",{get:function(){return t.StiComponentId.StiSteppedRangeSeries},enumerable:!0,configurable:!0}),f.prototype.clone=function(){return p.prototype.clone.call(this)},f.prototype.getDefaultAreaType=function(){return r.StiSteppedRangeArea},Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesEnd",{get:function(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning){if(!String.isNullOrEmpty(this.listOfValuesEnd))return r.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd},set:function(e){this._valuesEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valuesStringEnd",{get:function(){for(var e=new l,t=!0,r=0,i=this.valuesEnd;r<i.length;r++){var n=i[r];t?e.appendFormat("{0}",n):e.appendFormat(";{0}",n),t=!1}return e.toString()},set:function(e){if(null==e||0==e.trim().length)this.valuesEnd=[];else{var t=e.split(";");this._valuesEnd=Array.create(Number,t.length);for(var r=0,i=0,n=t;i<n.length;i++){var o=n[i];this._valuesEnd[r++]=o.toNumber()}}},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"valueDataColumnEnd",{get:function(){return this._valueDataColumnEnd},set:function(e){this._valueDataColumnEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"brushNegative",{get:function(){return this._brushNegative},set:function(e){this.brushNegative=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allowApplyBrushNegative",{get:function(){return this._allowApplyBrushNegative},set:function(e){this._allowApplyBrushNegative=e},enumerable:!0,configurable:!0}),f.prototype.onGetValueEnd=function(e){},f.prototype.invokeGetValueEnd=function(r,i){try{if(this.onGetValueEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var n=new s;n.name="**ChartSteppedRangeSeriesValueEnd**",n.page=r.report.pages.getByIndex(0);var o=t.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,n);i.value=r.report.toString2(o)}null!=this.getValueEnd&&this.getValueEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},f.prototype.onGetListOfValuesEnd=function(e){},f.prototype.invokeGetListOfValuesEnd=function(r,i,n){try{if(n.onGetListOfValuesEnd(i),r.report.calculationMode==t.StiCalculationMode.Interpretation){var o=new s;o.name="**ChartSteppedRangeSeriesListOfValuesEnd**",o.page=r.report.pages.getByIndex(0);var a=t.Engine.StiParser.StiParser.parseTextValue(n.listOfValuesEnd,o);i.value=r.report.toString2(a)}null!=n.getListOfValuesEnd&&n.getListOfValuesEnd(r,i)}catch(t){e.System.StiError.showError(t.message,!1)}},Object.defineProperty(f.prototype,"valueEnd",{get:function(){return this.valueObjEnd},set:function(e){this.valueObjEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"listOfValuesEnd",{get:function(){return this._listOfValuesEnd},set:function(e){this._listOfValuesEnd=e},enumerable:!0,configurable:!0}),f.prototype.createNew=function(){return new f},f}(r.StiSteppedLineSeries);r.StiSteppedRangeSeries=p}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t._tension=.55,t.core=new r.StiScatterSplineSeriesCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiScatterSplineSeries||(o.implementsStiScatterSplineSeries=e.prototype.implements.call(this).concat([n,r.IStiScatterLineSeries,r.IStiBaseLineSeries,r.IStiScatterSplineSeries,i,r.IStiSeries,r.IStiScatterSeries,r.IStiAllowApplyColorNegative])),o.implementsStiScatterSplineSeries},o.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("LineMarker"),r.addPropertyNumber("Tension",this._tension,.55),r},o.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var n=i[r];switch(n.name){case"Tension":this._tension=n.value.toNumber();break}}},o.prototype.loadFromXml=function(t){e.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Tension":this._tension=i.textContent.toNumber();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiScatterSplineSeries},enumerable:!0,configurable:!0}),o.prototype.clone=function(){return e.prototype.clone.call(this)},o.prototype.getDefaultAreaType=function(){return r.StiScatterArea},Object.defineProperty(o.prototype,"tension",{get:function(){return this._tension},set:function(e){this._tension=e},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiScatterSeries);r.StiScatterSplineSeries=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.Base.Drawing.StiSolidBrush,a=e.Base.Drawing.StiBrush,s=e.System.Drawing.Color,l=e.System.ICloneable,u=function(u){function c(){var e=u.call(this)||this;return e._borderColor=s.gray,e._brush=new o(s.gainsboro),e.core=new r.StiTreemapSeriesCoreXF(e),e}return __extends(c,u),c.prototype.implements=function(){return c.implementsStiTreemapSeries||(c.implementsStiTreemapSeries=u.prototype.implements.call(this).concat([n,r.IStiTreemapSeries,l,r.IStiSeries])),c.implementsStiTreemapSeries},c.prototype.saveToJsonObject=function(e){var t=u.prototype.saveToJsonObject.call(this,e);return t.addPropertyStringNullOfEmpty("BorderColor",i.Serialize.jColor(this._borderColor,s.gray)),t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this._brush)),t},c.prototype.loadFromJsonObject=function(e){u.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"BorderColor":this._borderColor=i.Deserialize.color(n.value.toString());break;case"Brush":this._brush=i.Deserialize.brush(n.value.toString());break}}},c.prototype.loadFromXml=function(t){u.prototype.loadFromXml.call(this,t);for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Brush":case"bh":this._brush=a.loadFromXml(i.textContent);break;case"BorderColor":this._borderColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break}}},c.prototype.clone=function(){var e=u.prototype.clone.call(this);return e.brush=this.brush.clone(),e},c.prototype.getDefaultAreaType=function(){return r.StiTreemapArea},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiTreemapSeries},enumerable:!0,configurable:!0}),c.prototype.createNew=function(){return new c},Object.defineProperty(c.prototype,"borderColor",{get:function(){return this._borderColor},set:function(e){this._borderColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),c}(r.StiSeries);r.StiTreemapSeries=u}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.EventArgs,o=e.Base.Localization.StiLocalization,a=e.System.Collections.CollectionBase,s=function(e){function a(){var t=e.call(this)||this;return t._chart=null,t}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiSeriesCollection||(a.implementsStiSeriesCollection=e.prototype.implements.call(this).concat([i,t.IStiApplyStyle,t.IStiSeriesCollection])),a.implementsStiSeriesCollection},a.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new r,i=0,n=0,o=this.list;n<o.length;n++){var a=o[n];t.addPropertyJObject(i.toString(),a.saveToJsonObject(e)),i++}return t},a.prototype.loadFromJsonObject=function(e){for(var t=function(e){var t=e.value,i=t.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),n=StiOptions.Services.chartSeries.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==i});if(null==n)throw String.stiFormat("Type {0}.sti_is(not) found!",i);var o=n.createNew();o.chart=r.chart,o.loadFromJsonObject(e.value),r.add(o)},r=this,i=0,n=e.properties();i<n.length;i++){t(n[i])}},a.prototype.loadFromXml=function(e,r){for(var i=0;i<e.childNodes.length;i++){var n=e.childNodes[i];if(null==n.attributes)continue;if(null!=n.attributes.getNamedItem("type"))switch(n.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Chart.StiClusteredColumnSeries":var o=new t.StiClusteredColumnSeries;o.chart=r,this.add(o),o.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiLineSeries":var a=new t.StiLineSeries;a.chart=r,this.add(a),a.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiAreaSeries":var s=new t.StiAreaSeries;s.chart=r,this.add(s),s.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiSplineSeries":var l=new t.StiSplineSeries;l.chart=r,this.add(l),l.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiSplineAreaSeries":var u=new t.StiSplineAreaSeries;u.chart=r,this.add(u),u.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiStackedColumnSeries":var c=new t.StiStackedColumnSeries;c.chart=r,this.add(c),c.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiStackedLineSeries":var h=new t.StiStackedLineSeries;h.chart=r,this.add(h),h.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiStackedAreaSeries":var p=new t.StiStackedAreaSeries;p.chart=r,this.add(p),p.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiStackedSplineSeries":var f=new t.StiStackedSplineSeries;f.chart=r,this.add(f),f.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiStackedSplineAreaSeries":var m=new t.StiStackedSplineAreaSeries;m.chart=r,this.add(m),m.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiSteppedLineSeries":var S=new t.StiSteppedLineSeries;S.chart=r,this.add(S),S.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiSteppedAreaSeries":var g=new t.StiSteppedAreaSeries;g.chart=r,this.add(g),g.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFullStackedColumnSeries":var d=new t.StiFullStackedColumnSeries;d.chart=r,this.add(d),d.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFullStackedLineSeries":var y=new t.StiFullStackedLineSeries;y.chart=r,this.add(y),y.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFullStackedAreaSeries":var b=new t.StiFullStackedAreaSeries;b.chart=r,this.add(b),b.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFullStackedSplineSeries":var v=new t.StiFullStackedSplineSeries;v.chart=r,this.add(v),v.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFullStackedSplineAreaSeries":var C=new t.StiFullStackedSplineAreaSeries;C.chart=r,this.add(C),C.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiClusteredBarSeries":var w=new t.StiClusteredBarSeries;w.chart=r,this.add(w),w.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiStackedBarSeries":var x=new t.StiStackedBarSeries;x.chart=r,this.add(x),x.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFullStackedBarSeries":var _=new t.StiFullStackedBarSeries;_.chart=r,this.add(_),_.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiDoughnutSeries":var A=new t.StiDoughnutSeries;A.chart=r,this.add(A),A.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiGanttSeries":var L=new t.StiGanttSeries;L.chart=r,this.add(L),L.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiPieSeries":var O=new t.StiPieSeries;O.chart=r,this.add(O),O.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiBubbleSeries":var P=new t.StiBubbleSeries;P.chart=r,this.add(P),P.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiScatterSeries":var B=new t.StiScatterSeries;B.chart=r,this.add(B),B.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiScatterLineSeries":var R=new t.StiScatterLineSeries;R.chart=r,this.add(R),R.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiScatterSplineSeries":var k=new t.StiScatterSplineSeries;k.chart=r,this.add(k),k.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiRadarPointSeries":var j=new t.StiRadarPointSeries;j.chart=r,this.add(j),j.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiRadarLineSeries":var T=new t.StiRadarLineSeries;T.chart=r,this.add(T),T.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiRadarAreaSeries":var F=new t.StiRadarAreaSeries;F.chart=r,this.add(F),F.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFunnelSeries":var D=new t.StiFunnelSeries;D.chart=r,this.add(D),D.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiStockSeries":var I=new t.StiStockSeries;I.chart=r,this.add(I),I.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiCandlestickSeries":var N=new t.StiCandlestickSeries;N.chart=r,this.add(N),N.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiFunnelWeightedSlicesSeries":var M=new t.StiFunnelWeightedSlicesSeries;M.chart=r,this.add(M),M.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiSteppedRangeSeries":var E=new t.StiSteppedRangeSeries;E.chart=r,this.add(E),E.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiSplineRangeSeries":var V=new t.StiSplineRangeSeries;V.chart=r,this.add(V),V.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiRangeSeries":var X=new t.StiRangeSeries;X.chart=r,this.add(X),X.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiRangeBarSeries":var G=new t.StiRangeBarSeries;G.chart=r,this.add(G),G.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiTreemapSeries":var z=new t.StiTreemapSeries;z.chart=r,this.add(z),z.loadFromXml(n);break;case"Stimulsoft.Report.Chart.StiPictorialSeries":var J=new t.StiPictorialSeries;J.chart=r,this.add(J),J.loadFromXml(n);break}}},a.prototype.applyStyle=function(e){if(null==e)return;for(var t=e.core.getColors(this.count),r=0,i=0,n=this.list;i<n.length;i++){n[i].core.applyStyle(e,t[r++])}},a.prototype.getSeriesTitle=function(){var e=o.get("Chart","Series"),t=e,r=1,i=!0;while(i){t=e+" "+r.toString(),i=!1;for(var n=0,a=this.list;n<a.length;n++){if(a[n].coreTitle==t){i=!0;break}}r++}return t},a.prototype.addCore=function(e){null!=this.chart&&(String.isNullOrEmpty(e.coreTitle)&&(e.coreTitle=this.getSeriesTitle()),e.chart=this.chart),this.list.add(e)},a.prototype.add=function(e){this.addCore(e),this.invokeSeriesAdded(e,this.list.count-1)},a.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.addCore(i),this.invokeSeriesAdded(i,this.list.count-1)}},a.prototype.addRange2=function(e){for(var t=0,r=e.list;t<r.length;t++){var i=r[t];this.addCore(i),this.invokeSeriesAdded(i,this.list.count-1)}},a.prototype.contains=function(e){return this.list.contains(e)},a.prototype.indexOf=function(e){return this.list.indexOf(e)},a.prototype.insert=function(e,t){this.list.insert(e,t),this.invokeSeriesAdded(t,e)},a.prototype.onClear=function(){while(this.list.count>0)this.list.removeAt(0)},a.prototype.remove=function(e){this.list.remove(e)},a.prototype.getByIndex=function(e){return this.list[e]},a.prototype.setByIndex=function(e,t){this.list[e]=t},a.prototype.getByName=function(e){for(var t=0,r=this.list;t<r.length;t++){var i=r[t];if(i.coreTitle==e)return i}return null},a.prototype.setByName=function(e,t){for(var r=0;r<this.list.count;r++){if(this.list[r].coreTitle==name)return void(this.list[r]=t)}this.add(t)},a.prototype.onSeriesAdded=function(e){},a.prototype.invokeSeriesAdded=function(e,t){null!=this.seriesAdded&&this.seriesAdded(e,n.empty)},a.prototype.onRemove=function(e,t){this.invokeSeriesRemoved(t,e)},a.prototype.onSeriesRemoved=function(e){},a.prototype.invokeSeriesRemoved=function(e,t){null!=this.seriesRemoved&&this.seriesRemoved(e,n.empty)},Object.defineProperty(a.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),a}(a);t.StiSeriesCollection=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJson,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=function(){function e(){this.parentSeries=null}return e.prototype.implements=function(){return e.implementsStiSeriesInteraction||(e.implementsStiSeriesInteraction=[r.IStiSeriesInteraction,n,o]),e.implementsStiSeriesInteraction},e.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyStringNullOfEmpty("DrillDownPageGuid",this.drillDownPageGuid),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var i=r[t];switch(i.name){case"DrillDownPageGuid":this.drillDownPageGuid=i.value.toString();break}}},e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];switch(r.nodeName){case"DrillDownPageGuid":this.drillDownPageGuid=r.textContent;break}}},Object.defineProperty(e.prototype,"componentId",{get:function(){return t.StiComponentId.StiSeriesInteraction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),e.prototype.getReport=function(){if(null==this.parentSeries)return null;if(null==this.parentSeries.chart)return null;return this.parentSeries.chart.report},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"isDefault",{get:function(){return String.isNullOrEmpty(this.hyperlinkDataColumn)&&String.isNullOrEmpty(this.tagDataColumn)&&String.isNullOrEmpty(this.toolTipDataColumn)&&String.isNullOrEmpty(this.hyperlink)&&String.isNullOrEmpty(this.tag)&&String.isNullOrEmpty(this.toolTip)&&String.isNullOrEmpty(this.listOfHyperlinks)&&String.isNullOrEmpty(this.listOfTags)&&String.isNullOrEmpty(this.listOfToolTips)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hyperlink",{get:function(){return this.parentSeries.hyperlink},set:function(e){this.parentSeries.hyperlink=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tag",{get:function(){return this.parentSeries.tag},set:function(e){this.parentSeries.tag=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolTip",{get:function(){return this.parentSeries.toolTip},set:function(e){this.parentSeries.toolTip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hyperlinkDataColumn",{get:function(){return this.parentSeries.hyperlinkDataColumn},set:function(e){this.parentSeries.hyperlinkDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tagDataColumn",{get:function(){return this.parentSeries.tagDataColumn},set:function(e){this.parentSeries.tagDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolTipDataColumn",{get:function(){return this.parentSeries.toolTipDataColumn},set:function(e){this.parentSeries.toolTipDataColumn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listOfHyperlinks",{get:function(){return this.parentSeries.listOfHyperlinks},set:function(e){this.parentSeries.listOfHyperlinks=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listOfTags",{get:function(){return this.parentSeries.listOfTags},set:function(e){this.parentSeries.listOfTags=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listOfToolTips",{get:function(){return this.parentSeries.listOfToolTips},set:function(e){this.parentSeries.listOfToolTips=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowSeries",{get:function(){return this.parentSeries.allowSeries},set:function(e){this.parentSeries.allowSeries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowSeriesElements",{get:function(){return this.parentSeries.allowSeriesElements},set:function(e){this.parentSeries.allowSeriesElements=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"drillDownEnabled",{get:function(){return this.parentSeries.drillDownEnabled},set:function(e){this.parentSeries.drillDownEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"drillDownReport",{get:function(){return this.parentSeries.drillDownReport},set:function(e){this.parentSeries.drillDownReport=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"drillDownPage",{get:function(){return this.parentSeries.drillDownPage},set:function(e){this.parentSeries.drillDownPage=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"drillDownPageGuid",{get:function(){return this.parentSeries.drillDownPageGuid},set:function(e){this.parentSeries.drillDownPageGuid=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentComponent",{get:function(){if(null==this.parentSeries||null==this.parentSeries.chart)return null;return this.parentSeries.chart},enumerable:!0,configurable:!0}),e}();r.StiSeriesInteraction=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function t(){this._isElements=!0,this._tag=null,this._tooltip=null,this._hyperlink=null,this._argument=null,this._value=0}return Object.defineProperty(t.prototype,"isElements",{get:function(){return this._isElements},set:function(e){this._isElements=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tag",{get:function(){return this._tag},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hyperlink",{get:function(){return this._hyperlink},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"argument",{get:function(){return this._argument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){this._series=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pointIndex",{get:function(){return this._pointIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"point",{get:function(){return this._point},set:function(e){this._point=e},enumerable:!0,configurable:!0}),t.prototype.fill=function(t,r,i){t.sti_is(e.IStiAxisArea)&&t.reverseHor?(this._pointIndex=r.values.length-i-1,this._series=r,i>=0&&i<r.arguments.length&&(this._argument=r.arguments[r.arguments.length-i-1]),i>=0&&i<r.values.length&&(this._value=r.values[r.values.length-i-1]),i>=0&&i<r.tags.length&&(this._tag=r.tags[r.tags.length-i-1]),i>=0&&i<r.hyperlinks.length&&(this._hyperlink=r.hyperlinks[r.hyperlinks.length-i-1]),i>=0&&i<r.toolTips.length&&(this._tooltip=r.toolTips[r.toolTips.length-i-1])):(this._pointIndex=i,this.series=r,i>=0&&i<r.arguments.length&&(this._argument=r.arguments[i]),i>=0&&i<r.values.length&&(this._value=r.values[i]),i>=0&&i<r.tags.length&&(this._tag=r.tags[i]),i>=0&&i<r.hyperlinks.length&&(this._hyperlink=r.hyperlinks[i]),i>=0&&i<r.toolTips.length&&(this._tooltip=r.toolTips[i]))},t}();e.StiSeriesInteractionData=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiSolidBrush,l=e.Base.Drawing.StiBrush,u=e.System.Enum,c=e.System.Drawing.Color,h=e.Base.Services.StiService,p=e.System.Drawing.Font,f=function(h){function f(){var e=h.call(this)||this;return e._allowApplyStyle=!0,e._showBehind=!0,e._stripBrush=new s(c.transparent),e._antialiasing=!0,e._font=new p("Arial",7),e._text="",e._titleVisible=!0,e._titleColor=c.green,e._orientation=r.StiStrips_StiOrientation.Horizontal,e._showInLegend=!0,e._maxValue="1",e._minValue="0",e._visible=!0,e._core=new r.StiStripsCoreXF(e),e}return __extends(f,h),f.prototype.implements=function(){return f.implementsStiStrips||(f.implementsStiStrips=h.prototype.implements.call(this).concat([o,r.IStiStrips,a])),f.implementsStiStrips},f.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("AllowApplyStyle",this.allowApplyStyle,!0),t.addPropertyBool("ShowBehind",this.showBehind,!0),t.addPropertyStringNullOfEmpty("StripBrush",i.Serialize.jBrush(this._stripBrush)),t.addPropertyBool("Antialiasing",this._antialiasing,!0),t.addPropertyStringNullOfEmpty("Font",i.Serialize.font(this.font,"Arial",7)),t.addPropertyStringNullOfEmpty("Text",this._text),t.addPropertyBool("TitleVisible",this._titleVisible,!0),t.addPropertyStringNullOfEmpty("TitleColor",i.Serialize.jColor(this.titleColor,c.green)),t.addPropertyEnum("Orientation",r.StiStrips_StiOrientation,this._orientation,r.StiStrips_StiOrientation.Horizontal),t.addPropertyBool("ShowInLegend",this.showInLegend,!0),t.addPropertyString("MaxValue",this.maxValue,"1"),t.addPropertyString("MinValue",this.minValue,"0"),t.addPropertyBool("Visible",this.visible,!0),t},f.prototype.loadFromJsonObject=function(e){for(var t=0,n=e.properties();t<n.length;t++){var o=n[t];switch(o.name){case"AllowApplyStyle":this.allowApplyStyle=o.value.toBoolean();break;case"ShowBehind":this.showBehind=o.value.toBoolean();break;case"StripBrush":this._stripBrush=i.Deserialize.brush(o.value.toString());break;case"Antialiasing":this._antialiasing=o.value.toBoolean();break;case"Font":this.font=i.Deserialize.font(o.value.toString(),this.font);break;case"Text":this._text=o.value.toString();break;case"TitleVisible":this._titleVisible=o.value.toBoolean();break;case"TitleColor":this.titleColor=i.Deserialize.color(o.value.toString());break;case"Orientation":this._orientation=u.parse(r.StiStrips_StiOrientation,o.value.toString());break;case"ShowInLegend":this.showInLegend=o.value.toBoolean();break;case"MaxValue":this.maxValue=o.value.toString();break;case"MinValue":this.minValue=o.value.toString();break;case"Visible":this.visible=o.value.toBoolean();break}}},f.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"AllowApplyStyle":this.allowApplyStyle=n.textContent.toBoolean();break;case"ShowBehind":this.showBehind=n.textContent.toBoolean();break;case"StripBrush":this._stripBrush=l.convertToBrush(n.textContent);break;case"Antialiasing":this._antialiasing=n.textContent.toBoolean();break;case"Font":case"fn":this.font=e.System.Convert.toFont(n.textContent);break;case"Text":case"text":this._text=n.textContent;break;case"TitleVisible":this._titleVisible=n.textContent.toBoolean();break;case"TitleColor":this.titleColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"Orientation":this._orientation=u.parse(r.StiStrips_StiOrientation,n.textContent);break;case"ShowInLegend":this.showInLegend=n.textContent.toBoolean();break;case"MaxValue":this.maxValue=n.textContent;break;case"MinValue":this.minValue=n.textContent;break;case"Visible":this.visible=n.textContent.toBoolean();break}}},Object.defineProperty(f.prototype,"componentId",{get:function(){return t.StiComponentId.StiStrips},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),f.prototype.clone=function(){var e=this.memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.strips=e),e},Object.defineProperty(f.prototype,"serviceCategory",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"serviceType",{get:function(){return f},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&null!=this.chart&&this.core.applyStyle(this.chart.style))},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"showBehind",{get:function(){return this._showBehind},set:function(e){this._showBehind=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"stripBrush",{get:function(){return this._stripBrush},set:function(e){this._stripBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"antialiasing",{get:function(){return this._antialiasing},set:function(e){this._antialiasing=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"titleVisible",{get:function(){return this._titleVisible},set:function(e){this._titleVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"titleColor",{get:function(){return this._titleColor},set:function(e){this._titleColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"showInLegend",{get:function(){return this._showInLegend},set:function(e){this._showInLegend=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"maxValue",{get:function(){return this._maxValue},set:function(e){this._maxValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"minValue",{get:function(){return this._minValue},set:function(e){this._minValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),f}(h);r.StiStrips=f}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.EventArgs,o=e.Base.Localization.StiLocalization,a=e.System.Collections.CollectionBase,s=function(e){function a(){var t=e.call(this)||this;return t._chart=null,t}return __extends(a,e),a.prototype.implements=function(){return a.implementsStiStripsCollection||(a.implementsStiStripsCollection=[i,t.IStiApplyStyle,t.IStiStripsCollection]),a.implementsStiStripsCollection},a.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new r,i=0,n=0,o=this.list;n<o.length;n++){var a=o[n];t.addPropertyJObject(i.toString(),a.saveToJsonObject(e)),i++}return t},a.prototype.loadFromJsonObject=function(e){for(var r=0,i=e.properties();r<i.length;r++){var n=i[r],o=new t.StiStrips;o.chart=this.chart,this.add(o),o.loadFromJsonObject(n.value)}},a.prototype.loadFromXml=function(e){for(var r=0;r<e.childNodes.length;r++){var i=e.childNodes[r];if(null==i.attributes)continue;if(null!=i.attributes.getNamedItem("type")&&"Stimulsoft.Report.Chart.StiStrips"==i.attributes.getNamedItem("type").value){var n=new t.StiStrips;n.chart=this.chart,this.add(n),n.loadFromXml(i)}}},a.prototype.applyStyle=function(e){for(var t=0,r=this.list;t<r.length;t++){r[t].core.applyStyle(e)}},a.prototype.getStripsTitle=function(){var e=o.get("Chart","Strip"),t=e,r=1,i=!0;while(i){t=e+" "+r.toString(),i=!1;for(var n=0,a=this.list;n<a.length;n++){if(a[n].text==t){i=!0;break}}r++}return t},a.prototype.addCore=function(e){null!=this.chart&&(String.isNullOrEmpty(e.text)&&(e.text=this.getStripsTitle()),e.chart=this.chart),this.list.add(e)},a.prototype.add=function(e){this.addCore(e),this.invokeStripsAdded(e,this.list.count-1)},a.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.addCore(i),this.invokeStripsAdded(i,this.list.count-1)}},a.prototype.addRange2=function(e){for(var t=0,r=e.list;t<r.length;t++){var i=r[t];this.addCore(i),this.invokeStripsAdded(i,this.list.count-1)}},a.prototype.contains=function(e){return this.list.contains(e)},a.prototype.indexOf=function(e){return this.list.indexOf(e)},a.prototype.insert=function(e,t){this.list.insert(e,t),this.invokeStripsAdded(t,e)},a.prototype.onClear=function(){while(this.list.count>0)this.invokeStripsRemoved(this.list[0],0),this.list.removeAt(0)},a.prototype.remove=function(e){this.invokeStripsRemoved(e,this.list.indexOf(e)),this.list.remove(e)},a.prototype.getByIndex=function(e){return this.list[e]},a.prototype.setByIndex=function(e,t){this.list[e]=t},a.prototype.onStripsAdded=function(e){},a.prototype.invokeStripsAdded=function(e,t){null!=this.stripsAdded&&this.stripsAdded(e,n.empty)},a.prototype.onStripsRemoved=function(e){},a.prototype.invokeStripsRemoved=function(e,t){null!=this.stripsRemoved&&this.stripsRemoved(e,n.empty)},Object.defineProperty(a.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),a}(a);t.StiStripsCollection=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJson,i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=e.Base.Services.StiService,a=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiChartStyle||(o.implementsStiChartStyle=e.prototype.implements.call(this).concat([i,t.IStiChartStyle,n])),o.implementsStiChartStyle},o.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyStringNullOfEmpty("Ident",this.getStiType().getStiTypeName()),t},o.prototype.loadFromJsonObject=function(e){},o.loadFromXml=function(e){if(null!=e.attributes.getNamedItem("type"))switch(e.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Chart.StiCustomStyle":return new t.StiCustomStyle;case"Stimulsoft.Report.Chart.StiStyle01":return new t.StiStyle01;case"Stimulsoft.Report.Chart.StiStyle02":return new t.StiStyle02;case"Stimulsoft.Report.Chart.StiStyle03":return new t.StiStyle03;case"Stimulsoft.Report.Chart.StiStyle04":return new t.StiStyle04;case"Stimulsoft.Report.Chart.StiStyle05":return new t.StiStyle05;case"Stimulsoft.Report.Chart.StiStyle06":return new t.StiStyle06;case"Stimulsoft.Report.Chart.StiStyle07":return new t.StiStyle07;case"Stimulsoft.Report.Chart.StiStyle08":return new t.StiStyle08;case"Stimulsoft.Report.Chart.StiStyle09":return new t.StiStyle09;case"Stimulsoft.Report.Chart.StiStyle10":return new t.StiStyle10;case"Stimulsoft.Report.Chart.StiStyle11":return new t.StiStyle11;case"Stimulsoft.Report.Chart.StiStyle12":return new t.StiStyle12;case"Stimulsoft.Report.Chart.StiStyle13":return new t.StiStyle13;case"Stimulsoft.Report.Chart.StiStyle14":return new t.StiStyle14;case"Stimulsoft.Report.Chart.StiStyle15":return new t.StiStyle15;case"Stimulsoft.Report.Chart.StiStyle16":return new t.StiStyle16;case"Stimulsoft.Report.Chart.StiStyle17":return new t.StiStyle17;case"Stimulsoft.Report.Chart.StiStyle18":return new t.StiStyle18;case"Stimulsoft.Report.Chart.StiStyle19":return new t.StiStyle19;case"Stimulsoft.Report.Chart.StiStyle20":return new t.StiStyle20;case"Stimulsoft.Report.Chart.StiStyle21":return new t.StiStyle21;case"Stimulsoft.Report.Chart.StiStyle22":return new t.StiStyle22;case"Stimulsoft.Report.Chart.StiStyle23":return new t.StiStyle23;case"Stimulsoft.Report.Chart.StiStyle24":return new t.StiStyle24;case"Stimulsoft.Report.Chart.StiStyle25":return new t.StiStyle25;case"Stimulsoft.Report.Chart.StiStyle26":return new t.StiStyle26;case"Stimulsoft.Report.Chart.StiStyle27":return new t.StiStyle27;case"Stimulsoft.Report.Chart.StiStyle28":return new t.StiStyle28}},o.loadFromJsonObjectInternal=function(e){var r=e.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString();if("StiCustomStyle"==r)return new t.StiCustomStyle;var i=StiOptions.Services.chartStyles.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==r});if(null==i)throw String.stiFormat("Type {0}.sti_is(not) found!",r);return i.createNew()},Object.defineProperty(o.prototype,"serviceName",{get:function(){return this.core.localizedName},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"serviceCategory",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"serviceType",{get:function(){return o},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isOffice2015Style",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),o.prototype.toString=function(){if(this.sti_is(t.StiCustomStyle)&&null!=this.core.reportChartStyle)return this.core.reportChartStyle.name;return this.serviceName},o.prototype.compareChartStyle=function(e){if(null==e)return!1;var r=this.sti_as(t.StiCustomStyle),i=e.sti_as(t.StiCustomStyle);if(null!=r&&null!=i){var n=r.core.reportStyleName;null!=r.core.reportStyle&&(n=r.core.reportStyle.name);var o=i.core.reportStyleName;return null!=i.core.reportStyle&&(o=i.core.reportStyle.name),n==o}return this.getStiType()==e.getStiType()},o.prototype.createNew=function(){return null},o}(o);t.StiChartStyle=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF01,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle01=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(r){void 0===r&&(r=null);var i=t.call(this)||this;return i.core=new e.StiCustomStyleCoreXF(i),i.core.reportStyleName=r,i}return __extends(r,t),r.prototype.implements=function(){return r.implementsStiCustomStyle||(r.implementsStiCustomStyle=t.prototype.implements.call(this).concat([e.IStiCustomStyle])),r.implementsStiCustomStyle},Object.defineProperty(r.prototype,"serviceName",{get:function(){return"CustomStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"customCore",{get:function(){return this.core},enumerable:!0,configurable:!0}),r}(e.StiStyle01);e.StiCustomStyle=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF02,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle02=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF03,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle03=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF04,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle04=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF05,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle05=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF06,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle06=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF07,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle07=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF08,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiStyle03);e.StiStyle08=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF09,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle09=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF10,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle10=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF11,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle11=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF12,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle12=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF13,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle13=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF14,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle14=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF15,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle15=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF16,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle16=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF17,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle17=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF18,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle18=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF19,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle19=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF20,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle20=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF21,r}return __extends(r,t),Object.defineProperty(r.prototype,"isOffice2015Style",{get:function(){return!0},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle21=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF22,r}return __extends(r,t),Object.defineProperty(r.prototype,"isOffice2015Style",{get:function(){return!0},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle22=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF23,r}return __extends(r,t),Object.defineProperty(r.prototype,"isOffice2015Style",{get:function(){return!0},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle23=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF24,r}return __extends(r,t),Object.defineProperty(r.prototype,"isOffice2015Style",{get:function(){return!0},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle24=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF25,r}return __extends(r,t),Object.defineProperty(r.prototype,"isOffice2015Style",{get:function(){return!0},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle25=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF26,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle26=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF27,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle27=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiStyleCoreXF28,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiChartStyle);e.StiStyle28=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.System.Drawing.Color,l=function(){function l(){this._visible=!1,this._allowApplyStyle=!0,this._markerVisible=!0,this._gridLineColor=s.gray,this._gridLinesHor=!0,this._gridLinesVert=!0,this._gridOutline=!0,this._format="",this._chart=null,this.header=new r.StiChartTableHeader,this.dataCells=new r.StiChartTableDataCells,this.core=new r.StiChartTableCoreXF(this)}return l.prototype.implements=function(){return l.implementsStiChartTable||(l.implementsStiChartTable=[o,r.IStiChartTable,a]),l.implementsStiChartTable},l.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyBool("Visible",this._visible),t.addPropertyBool("AllowApplyStyle",this._allowApplyStyle,!0),t.addPropertyBool("MarkerVisible",this._markerVisible,!0),t.addPropertyStringNullOfEmpty("GridLineColor",i.Serialize.jColor(this._gridLineColor,s.gray)),t.addPropertyBool("GridLinesHor",this._gridLinesHor,!0),t.addPropertyBool("GridLinesVert",this._gridLinesVert,!0),t.addPropertyBool("GridOutline",this._gridOutline,!0),t.addPropertyStringNullOfEmpty("Format",this._format),t.addPropertyJObject("Header",this._header.saveToJsonObject(e)),t.addPropertyJObject("DataCells",this._dataCells.saveToJsonObject(e)),t},l.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"Font":this.dataCells.font=i.Deserialize.font(n.value.toString(),this.dataCells.font);break;case"Visible":this._visible=n.value.toBoolean();break;case"AllowApplyStyle":this._allowApplyStyle=n.value.toBoolean();break;case"MarkerVisible":this._markerVisible=n.value.toBoolean();break;case"GridLineColor":this._gridLineColor=i.Deserialize.color(n.value.toString());break;case"TextColor":this.dataCells.textColor=i.Deserialize.color(n.value.toString());break;case"GridLinesHor":this._gridLinesHor=n.value.toBoolean();break;case"GridLinesVert":this._gridLinesVert=n.value.toBoolean();break;case"GridOutline":this._gridOutline=n.value.toBoolean();break;case"Format":this._format=n.value.toString();break;case"Header":this._header.loadFromJsonObject(n.value);break;case"DataCells":this._dataCells.loadFromJsonObject(n.value);break}}},l.prototype.loadFromXml=function(t){for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];switch(n.nodeName){case"Font":case"fn":this.dataCells.font=e.System.Convert.toFont(n.textContent);break;case"Visible":this._visible=n.textContent.toBoolean();break;case"AllowApplyStyle":this._allowApplyStyle=n.textContent.toBoolean();break;case"MarkerVisible":this._markerVisible=n.textContent.toBoolean();break;case"GridLineColor":this._gridLineColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"TextColor":this.dataCells.textColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(n.textContent);break;case"GridLinesHor":this._gridLinesHor=n.textContent.toBoolean();break;case"GridLinesVert":this._gridLinesVert=n.textContent.toBoolean();break;case"GridOutline":this._gridOutline=n.textContent.toBoolean();break;case"Format":this._format=n.textContent;break;case"Header":var o=new r.StiChartTableHeader;o.loadFromXml(n),this._header=o;break;case"DataCells":var a=new r.StiChartTableDataCells;a.loadFromXml(n),this._dataCells=a;break}}},Object.defineProperty(l.prototype,"componentId",{get:function(){return t.StiComponentId.StiChartTable},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),l.prototype.clone=function(){var e=this.memberwiseClone();return e.font=this.font.clone(),e.header=this.header.clone(),e.dataCells=this.dataCells.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.chartTable=e),e},Object.defineProperty(l.prototype,"font",{get:function(){return this.dataCells.font},set:function(e){this.dataCells.font=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"markerVisible",{get:function(){return this._markerVisible},set:function(e){this._markerVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"gridLineColor",{get:function(){return this._gridLineColor},set:function(e){this._gridLineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"textColor",{get:function(){return this.dataCells.textColor},set:function(e){this.dataCells.textColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"gridLinesHor",{get:function(){return this._gridLinesHor},set:function(e){this._gridLinesHor=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"gridLinesVert",{get:function(){return this._gridLinesVert},set:function(e){this._gridLinesVert=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"gridOutline",{get:function(){return this._gridOutline},set:function(e){this._gridOutline=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"header",{get:function(){return this._header},set:function(e){this._header=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"dataCells",{get:function(){return this._dataCells},set:function(e){this._dataCells=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),l}();r.StiChartTable=l}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.StiJson,n=e.System.Drawing.Color,o=e.System.Drawing.Font,a=function(){function t(e,t,r,i){void 0===e&&(e=!1),void 0===t&&(t=1),void 0===r&&(r=new o("Arial",8)),void 0===i&&(i=n.darkGray),this._font=new o("Arial",8),this._textColor=n.darkGray,this._shrinkFontToFit=!1,this._shrinkFontToFitMinimumSize=1,this._font=r,this._textColor=i,this._shrinkFontToFit=e,this._shrinkFontToFitMinimumSize=t}return t.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyStringNullOfEmpty("Font",r.Serialize.fontDefault(this.font)),t.addPropertyStringNullOfEmpty("TextColor",r.Serialize.jColor(this._textColor,n.darkGray)),t.addPropertyNumber("ShrinkFontToFitMinimumSize",this._shrinkFontToFitMinimumSize,1),t.addPropertyBool("ShrinkFontToFit",this._shrinkFontToFit),t},t.prototype.loadFromJsonObject=function(e){for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"Font":this.font=r.Deserialize.font(n.value.toString(),this.font);break;case"TextColor":this._textColor=r.Deserialize.color(n.value.toString());break;case"ShrinkFontToFitMinimumSize":this._shrinkFontToFitMinimumSize=n.value.toNumber();break;case"ShrinkFontToFit":this._shrinkFontToFit=n.value.toBoolean();break}}},t.prototype.loadFromXml=function(t){for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Font":case"fn":this.font=e.System.Convert.toFont(i.textContent);break;case"TextColor":this._textColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"ShrinkFontToFitMinimumSize":this._shrinkFontToFitMinimumSize=i.textContent.toNumber();break;case"ShrinkFontToFit":this._shrinkFontToFit=i.textContent.toBoolean();break}}},t.prototype.clone=function(){var e=this.memberwiseClone();return e.font=this.font.clone(),e},Object.defineProperty(t.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textColor",{get:function(){return this._textColor},set:function(e){this._textColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shrinkFontToFit",{get:function(){return this._shrinkFontToFit},set:function(e){this._shrinkFontToFit=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shrinkFontToFitMinimumSize",{get:function(){return this._shrinkFontToFitMinimumSize},set:function(e){this._shrinkFontToFitMinimumSize=e},enumerable:!0,configurable:!0}),t}();t.StiChartTableDataCells=a}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.StiJsonReportObjectHelper,i=e.Base.StiJson,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBrush,l=e.System.Drawing.Color,u=e.System.Drawing.Font,c=function(){function c(e,t,r,i){void 0===e&&(e=new a(l.white)),void 0===t&&(t=new u("Arial",8)),void 0===r&&(r=l.darkGray),void 0===i&&(i=!1),this._brush=new a(l.white),this._font=new u("Arial",8),this._textColor=l.darkGray,this._wordWrap=!1,this._brush=e,this._font=t,this._textColor=r,this._wordWrap=i}return c.prototype.implements=function(){return c.implementsStiChartTableHeader||(c.implementsStiChartTableHeader=[n,t.IStiChartTableHeader,o]),c.implementsStiChartTableHeader},c.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyStringNullOfEmpty("Brush",r.Serialize.jBrush(this.brush)),t.addPropertyStringNullOfEmpty("Font",r.Serialize.fontDefault(this.font)),t.addPropertyStringNullOfEmpty("TextColor",r.Serialize.jColor(this._textColor,l.darkGray)),t.addPropertyBool("WordWrap",this.wordWrap),t},c.prototype.loadFromJsonObject=function(e){for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"Brush":this.brush=r.Deserialize.brush(n.value.toString());break;case"Font":this.font=r.Deserialize.font(n.value.toString(),this.font);break;case"TextColor":this._textColor=r.Deserialize.color(n.value.toString());break;case"WordWrap":this.wordWrap=n.value.toBoolean();break}}},c.prototype.loadFromXml=function(t){for(var r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];switch(i.nodeName){case"Brush":case"bh":this.brush=s.convertToBrush(i.textContent);break;case"Font":case"fn":this.font=e.System.Convert.toFont(i.textContent);break;case"TextColor":this._textColor=e.System.Text.StiReportObjectStringConverter.convertStringToColor(i.textContent);break;case"WordWrap":this.wordWrap=i.textContent.toBoolean();break}}},c.prototype.clone=function(){var e=this.memberwiseClone();return e.brush=this.brush.clone(),e.font=this.font.clone(),e},Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"textColor",{get:function(){return this._textColor},set:function(e){this._textColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(e){this._wordWrap=e},enumerable:!0,configurable:!0}),c}();t.StiChartTableHeader=c}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJson,n=e.Base.JsonReportObject.IStiJsonReportObject,o=e.System.ICloneable,a=e.System.Enum,s=function(){function e(){this._mode=r.StiTopNMode.None,this._count=5,this._showOthers=!0,this._othersText="Others"}return e.prototype.implements=function(){return e.implementsStiSeriesTopN||(e.implementsStiSeriesTopN=[n,r.IStiSeriesTopN,o]),e.implementsStiSeriesTopN},e.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyEnum("Mode",r.StiTopNMode,this._mode,r.StiTopNMode.None),t.addPropertyNumber("Count",this._count,5),t.addPropertyBool("ShowOthers",this._showOthers,!0),t.addPropertyString("OthersText",this._othersText,"Others"),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,i=e.properties();t<i.length;t++){var n=i[t];switch(n.name){case"Mode":this._mode=a.parse(r.StiTopNMode,n.value.toString());break;case"Count":this._count=n.value.toNumber();break;case"ShowOthers":this._showOthers=n.value.toBoolean();break;case"OthersText":this._othersText=n.value.toString();break}}},e.prototype.loadFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var i=e.childNodes[t];switch(i.nodeName){case"Mode":this._mode=a.parse(r.StiTopNMode,i.textContent);break;case"Count":this._count=i.textContent.toNumber();break;case"ShowOthers":this._showOthers=i.textContent.toBoolean();break;case"OthersText":this._othersText=i.textContent;break}}},Object.defineProperty(e.prototype,"componentId",{get:function(){return t.StiComponentId.StiSeriesTopN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(e){this._mode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOthers",{get:function(){return this._showOthers},set:function(e){this._showOthers=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"othersText",{get:function(){return this._othersText},set:function(e){this._othersText=e},enumerable:!0,configurable:!0}),e}();r.StiSeriesTopN=s}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.StiJsonReportObjectHelper,n=e.Base.StiJson,o=e.Base.JsonReportObject.IStiJsonReportObject,a=e.System.ICloneable,s=e.Base.Drawing.StiPenStyle,l=e.System.Enum,u=e.System.Drawing.Color,c=e.Base.Services.StiService,h=function(e){function c(){var t=null!==e&&e.apply(this,arguments)||this;return t._lineColor=u.black,t._lineWidth=1,t._lineStyle=s.Solid,t._showShadow=!0,t._allowApplyStyle=!0,t}return __extends(c,e),c.prototype.implements=function(){return c.implementsStiTrendLine||(c.implementsStiTrendLine=e.prototype.implements.call(this).concat([r.IStiTrendLine,a,o])),c.implementsStiTrendLine},c.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyStringNullOfEmpty("LineColor",i.Serialize.jColor(this.lineColor,u.black)),t.addPropertyNumber("LineWidth",this._lineWidth,1),t.addPropertyEnum("LineStyle",s,this._lineStyle,s.Solid),t.addPropertyBool("ShowShadow",this._showShadow),t},c.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"LineColor":this.lineColor=i.Deserialize.color(n.value.toString());break;case"LineWidth":this._lineWidth=n.value.toNumber();break;case"LineStyle":this._lineStyle=l.parse(s,n.value.toString());break;case"ShowShadow":this._showShadow=n.value.toBoolean();break}}},c.loadFromJsonObjectInternal=function(e){var t=e.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),r=StiOptions.Services.chartTrendLines.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==t});if(null==r)throw String.stiFormat("Type {0}.sti_is(not) found!",t);return r.createNew()},c.prototype.loadFromXml=function(e){},c.loadTrendLineFromXml=function(e){for(var t=0;t<e.childNodes.length;t++){var i=e.childNodes[t];if(null==i.attributes)continue;if(null!=i.attributes.getNamedItem("type"))switch(i.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Chart.StiTrendLineNone":var n=new r.StiTrendLineNone;return n.loadFromXml(i),n;case"Stimulsoft.Report.Chart.StiTrendLineLinear":var o=new r.StiTrendLineLinear;return o.loadFromXml(i),o;case"Stimulsoft.Report.Chart.StiTrendLineExponential":var a=new r.StiTrendLineExponential;return a.loadFromXml(i),a;case"Stimulsoft.Report.Chart.StiTrendLineLogarithmic":var s=new r.StiTrendLineLogarithmic;return s.loadFromXml(i),s}}return new r.StiTrendLineNone},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiTrendLine},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"propName",{get:function(){return String.empty},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var t=e.prototype.clone.call(this);return null!=this.core&&(t.core=this.core.clone(),t.core.trendLine=t),t},Object.defineProperty(c.prototype,"serviceName",{get:function(){return this.core.localizedName},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"serviceCategory",{get:function(){return"Chart"},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"serviceType",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineColor",{get:function(){return this._lineColor},set:function(e){this._lineColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){this._lineWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"lineStyle",{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"showShadow",{get:function(){return this._showShadow},set:function(e){this._showShadow=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)},enumerable:!0,configurable:!0}),c.prototype.createNew=function(){return null},c.prototype.toString=function(){return this.serviceName},c}(c);r.StiTrendLine=h}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiTrendLineExponentialCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiTrendLineExponential||(o.implementsStiTrendLineExponential=e.prototype.implements.call(this).concat([r.IStiTrendLine,n,i,r.IStiTrendLineExponential])),o.implementsStiTrendLineExponential},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiTrendLineExponential},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiTrendLine);r.StiTrendLineExponential=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiTrendLineLinearCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiTrendLineLinear||(o.implementsStiTrendLineLinear=e.prototype.implements.call(this).concat([r.IStiTrendLine,r.IStiTrendLineLinear,n,i])),o.implementsStiTrendLineLinear},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiTrendLineLinear},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiTrendLine);r.StiTrendLineLinear=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiTrendLineLogarithmicCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiTrendLineLogarithmic||(o.implementsStiTrendLineLogarithmic=e.prototype.implements.call(this).concat([r.IStiTrendLine,r.IStiTrendLineLogarithmic,n,i])),o.implementsStiTrendLineLogarithmic},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiTrendLineLogarithmic},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiTrendLine);r.StiTrendLineLogarithmic=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Base.JsonReportObject.IStiJsonReportObject,n=e.System.ICloneable,o=function(e){function o(){var t=e.call(this)||this;return t.core=new r.StiTrendLineNoneCoreXF(t),t}return __extends(o,e),o.prototype.implements=function(){return o.implementsStiTrendLineNone||(o.implementsStiTrendLineNone=e.prototype.implements.call(this).concat([r.IStiTrendLine,r.IStiTrendLineNone,i,n])),o.implementsStiTrendLineNone},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiTrendLineNone},enumerable:!0,configurable:!0}),o.prototype.createNew=function(){return new o},o}(r.StiTrendLine);r.StiTrendLineNone=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Report.Events.StiNewAutoSeriesEventArgs,i=e.Report.Events.StiGetTitleEventArgs,n=e.System.Data.DBNull,o=e.Report.Events.StiValueEventArgs,a=e.Report.Events.StiGetValueEventArgs,s=e.Report.Components.StiFilterMode,l=e.Report.Dictionary.StiDataColumn,u=e.System.DateTime,c=e.System.Char,h=e.System.Drawing.Color,p=e.Report.Components.StiFilterCondition,f=e.Report.Components.StiFilterDataType,m=e.Report.Components.StiFilterItem,S=e.System.Collections.Hashtable,g=e.System.TimeSpan,d=e.System.Drawing.Point,y=function(){function y(){}return y.fillSeriesData=function(e,r){e.values=Array.create(Number,r.count),e.arguments=Array.create(Object,r.count);for(var i=0;i<r.count;i++){var n=r[i];e.values[i]=n.value.sti_is(Number)?n.value.toNumber():0,e.arguments[i]=n.argument,e.sti_is(t.IStiRangeSeries)&&(e.sti_as(t.IStiRangeSeries).valuesEnd[i]=n.valueEnd.sti_is(Number)?n.valueEnd.toNumber():0),e.sti_is(t.IStiFinancialSeries)&&(e.sti_as(t.IStiFinancialSeries).valuesOpen[i]=n.valueOpen.sti_is(Number)?n.valueOpen.toNumber():0,e.sti_as(t.IStiFinancialSeries).valuesClose[i]=n.valueClose.sti_is(Number)?n.valueClose.toNumber():0,e.sti_as(t.IStiFinancialSeries).valuesLow[i]=n.valueLow.sti_is(Number)?n.valueLow.toNumber():0,e.sti_as(t.IStiFinancialSeries).valuesHigh[i]=n.valueHigh.sti_is(Number)?n.valueHigh.toNumber():0)}},y.getFilterData=function(t,r,i){try{if(r.item==m.Expression){var n=i.substr(0,1).toLowerCase()+i.substr(1);if(null!=t[i])return t[i]();if(null!=t[n])return t[n]()}switch(r.dataType){case f.String:return r.value;case f.Numeric:return r.value.toNumber();case f.DateTime:var o=u.fromString(r.value);if(null!=o)return o;break;case f.Boolean:return"true"==r.value.toLower()}}catch(t){e.System.StiError.showError(t.message,!1)}return null},y.getFilterResult=function(t,r,i,n,o,a,s,l,c){if(t.item==m.Expression)return c.toBoolean();var h=null;switch(t.item){case m.Argument:h=r;break;case m.Value:h=i;break;case m.ValueEnd:h=n;break;case m.ValueOpen:h=o;break;case m.ValueClose:h=a;break;case m.ValueLow:h=s;break;case m.ValueHigh:h=l;break}var S=!1;if(t.dataType==f.Numeric)h=null==h?0:h.toNumber();else if(t.dataType==f.DateTime){var g=u.fromString(h.toString());h=null!=g?g:u.fromOADate(h.toNumber())}var d=h;if(null!=d&&null!=c){h.getStiType()!=c.getStiType()&&(h=h.toString(),c=c.toString(),d=h);try{switch(t.condition){case p.EqualTo:return 0==d.compareTo(c);case p.NotEqualTo:return 0!=d.compareTo(c);case p.GreaterThan:return 1==d.compareTo(c);case p.GreaterThanOrEqualTo:return d.compareTo(c)>=0;case p.LessThan:return-1==d.compareTo(c);case p.LessThanOrEqualTo:return d.compareTo(c)<=0;case p.Containing:var y=h.toString(),b=c.toString();return-1!=y.indexOf(b);case p.NotContaining:var v=h.toString(),C=c.toString();return-1==v.indexOf(C);case p.BeginningWith:var w=h.toString(),x=c.toString();return w.startsWith(x);case p.EndingWith:var _=h.toString(),A=c.toString();return _.endsWith(A)}}catch(t){e.System.StiError.showError(t,!1)}}return S},y.convertStringToColor=function(t){var r=null;if(null!=t){t=t.trim();for(var i=",",n=0;n<t.length;n++)if(!c.isDigit(t[n])&&!c.isWhitespace(t[n])){i=t[n];break}var o=t.split(i);if(3==o.length||4==o.length)try{r=3==o.length?h.fromArgb(parseInt(o[0].trim()),parseInt(o[1].trim()),parseInt(o[2].trim())):h.fromArgb(parseInt(o[0].trim()),parseInt(o[1].trim()),parseInt(o[2].trim()),parseInt(o[3].trim()))}catch(t){e.System.StiError.showError(t,!1)}else try{var a=parseInt(t)}catch(t){e.System.StiError.showError(t,!1)}}return r},y.createChart=function(i,n){var o=new S,a=!1,u=0;while(u<n.series.count){var c=n.series.getByIndex(u);this.setTitle(i,u,c),c.values=this.checkValueNaN(this.getValues(i,c));var p=n.series.getByIndex(u).sti_as(t.StiGanttSeries);null!=p&&(p.valuesEnd=this.getValuesEnd(i,p,p.valueDataColumnEnd,p.invokeGetListOfValuesEnd,p.invokeGetValueEnd));var f=n.series.getByIndex(u).sti_as(t.StiRangeSeries);null!=f&&(f.valuesEnd=this.getValuesEnd(i,f,f.valueDataColumnEnd,f.invokeGetListOfValuesEnd,f.invokeGetValueEnd));var g=n.series.getByIndex(u).sti_as(t.StiSteppedRangeSeries);null!=g&&(g.valuesEnd=this.getValuesEnd(i,g,g.valueDataColumnEnd,g.invokeGetListOfValuesEnd,g.invokeGetValueEnd));var d=n.series.getByIndex(u).sti_as(t.StiRangeBarSeries);null!=d&&(d.valuesEnd=this.getValuesEnd(i,d,d.valueDataColumnEnd,d.invokeGetListOfValuesEnd,d.invokeGetValueEnd));var y=n.series.getByIndex(u).sti_as(t.StiSplineRangeSeries);null!=y&&(y.valuesEnd=this.getValuesEnd(i,d,y.valueDataColumnEnd,y.invokeGetListOfValuesEnd,y.invokeGetValueEnd));var b=n.series.getByIndex(u).sti_as(t.StiCandlestickSeries);null!=b&&(b.valuesHigh=this.getValuesHigh(i,b),b.valuesLow=this.getValuesLow(i,b),b.valuesClose=this.getValuesClose(i,b),b.valuesOpen=this.getValuesOpen(i,b));var v=n.series.getByIndex(u).sti_as(t.StiBubbleSeries);null!=v&&(v.weights=this.getWeights(i,v));var C=c.sti_as(t.StiPieSeries);null!=C&&this.setCutPieList(i,C),i.cacheValues(!0),c.arguments=this.getArguments(i,c),c.tags=this.getTags(i,c),c.hyperlinks=this.getHyperlinks(i,c),c.toolTips=this.getToolTips(i,c),i.cacheValues(!1);var w=this.getAutoSeriesKeysFromAutoSeriesKeyDataColumn(i,c),x=this.getAutoSeriesTitleFromAutoSeriesTitleDataColumn(i,c),_=this.getAutoSeriesColorFromautoSeriesColorDataColumn(i,c);if(c.sortBy!=t.StiSeriesSortType.None||c.filters.count>0||w.length>0){for(var A=c.values.length>c.arguments.length?c.values.length:c.arguments.length,L=[],O=0;O<A;O++){var P=c.values.length>O?c.values[O]:0,B=c.arguments.length>O?c.arguments[O]:null,R=w.length>O?w[O]:null,k=x.length>O?x[O]:null,j=_.length>O?_[O]:null,T=null;c.sti_is(t.IStiRangeSeries)&&(T=c.sti_as(t.IStiRangeSeries).valuesEnd.length>O?c.sti_as(t.IStiRangeSeries).valuesEnd[O]:0);var F=null,D=null,I=null,N=null;c.sti_is(t.IStiFinancialSeries)&&(F=c.sti_as(t.IStiFinancialSeries).valuesOpen.length>O?c.sti_as(t.IStiFinancialSeries).valuesOpen[O]:0,D=c.sti_as(t.IStiFinancialSeries).valuesClose.length>O?c.sti_as(t.IStiFinancialSeries).valuesClose[O]:0,I=c.sti_as(t.IStiFinancialSeries).valuesLow.length>O?c.sti_as(t.IStiFinancialSeries).valuesLow[O]:0,N=c.sti_as(t.IStiFinancialSeries).valuesHigh.length>O?c.sti_as(t.IStiFinancialSeries).valuesHigh[O]:0);var M=null;null!=v&&(M=v.weights.length>O?v.weights[O]:0);var E=c.toolTips.length>O?c.toolTips[O]:String.empty;L.add(new t.StiDataItem(B,P,T,M,F,D,I,N,k,R,j,E))}if(c.sortBy!=t.StiSeriesSortType.None){var V=new t.StiDataItemComparer(c.sortBy,c.sortDirection);L.sort2(V)}for(var X=new S,G=0,z=0,J=c.filters.list;z<J.length;z++){var H=J[z],Y=String.stiFormat("{0}Filters_{1}_{2}",n.name,u,G);X.set(H,this.getFilterData(n.report,H,Y)),G++}var W=[],Z=null,U=null;if(c.filters.count>0){try{Z=l.getDataSourceFromDataColumn(n.report.dictionary,c.valueDataColumn)}catch(t){e.System.StiError.showError(t,!1)}if(null==Z)try{Z=l.getDataSourceFromDataColumn(n.report.dictionary,c.argumentDataColumn)}catch(t){e.System.StiError.showError(t,!1)}null==Z&&(Z=n.dataSource);try{U=l.getBusinessObjectFromDataColumn(n.report.dictionary,c.valueDataColumn)}catch(t){e.System.StiError.showError(t,!1)}if(null==U)try{U=l.getBusinessObjectFromDataColumn(n.report.dictionary,c.argumentDataColumn)}catch(t){e.System.StiError.showError(t,!1)}null==U&&(U=n.businessObject)}null!=Z&&(Z.saveState("ChartFilter"),Z.first()),null!=U&&(U.saveState("ChartFilter"),U.createEnumerator());for(var q=0,K=L;q<K.length;q++){for(var Q=K[q],$=Array.create(Boolean,c.filters.count),O=0,ee=0,te=c.filters.list;ee<te.length;ee++){var H=te[ee];if($[O]=this.getFilterResult(H,Q.argument,Q.value,Q.valueEnd,Q.valueOpen,Q.valueClose,Q.valueLow,Q.valueHigh,X.get(H)),H.item==m.Expression){var Y=String.stiFormat("{0}Filters_{1}_{2}",n.name,u,O);try{$[O]=this.getFilterData(n.report,H,Y).toBoolean()}catch(t){e.System.StiError.showError(t,!1)}}O++}var re=!0;if(c.filterMode==s.And)for(var ie=0,ne=$;ie<ne.length;ie++){var oe=ne[ie];if(!oe){re=!1;break}}else{re=!1;for(var ae=0,se=$;ae<se.length;ae++){var oe=se[ae];if(oe){re=!0;break}}}re&&W.add(Q),null!=Z&&Z.next(),null!=U&&U.next()}if(null!=Z&&Z.restoreState("ChartFilter"),null!=U&&U.restoreState("ChartFilter"),L=W,this.fillSeriesData(c,L),w.length>0){var le=new S,ue=null;if(null!=c.arguments&&c.arguments.length>0){for(var ce=[],he=new S,pe=0,fe=L;pe<fe.length;pe++){var Q=fe[pe],B=Q.argument;he.containsKey(B)||(ce.add(B),he.add(B,null))}he.clear(),ue=ce.toArray(),c.sortBy==t.StiSeriesSortType.Argument&&(Array.sort(ue),c.sortDirection==t.StiSeriesSortDirection.Descending&&Array.reverse(ue))}else{for(var me=new S,Se=0,ge=L;Se<ge.length;Se++){var Q=ge[Se],de=me.get(Q.key);null==de&&(de=[],me.set(Q.key,de)),de.add(Q)}for(var ye=0,be=0,ve=me.values;be<ve.length;be++){var P=ve[be];ye=Math.max(ye,P.count);for(var O=0,Ce=0,we=P;Ce<we.length;Ce++){var Q=we[Ce];Q.argument=O.toString(),le.set(Q,O.toString()),O++}}ue=Array.create(String,ye);for(var O=0;O<ye;O++)ue[O]=O.toString()}for(var xe=new S,_e=0,Ae=w;_e<Ae.length;_e++){var R=Ae[_e];xe.set(R,R)}var Le=Array.create(String,xe.count);xe.keys.copyTo(Le,0);var Oe={ref:Le};this.sortArray(Oe),Le=Oe.ref;for(var Pe=Array.create(t.StiDataItem,ue.length,Le.length),Be=new S,O=0;O<ue.length;O++)Be.set(ue[O],O);for(var Re=new S,O=0;O<Le.length;O++)Re.set(Le[O],O);for(var ke=new S,je=new S,Te=0,Fe=L;Te<Fe.length;Te++){var Q=Fe[Te],R=this.getKey(Q.key),B=Q.argument;null!=c.arguments&&0!=c.arguments.length||(B=le.get(Q));var De=Re.get(R),Ie=Be.get(B);if(null!=Q.title?ke.set(R,Q.title):ke.set(R,Q.key),je.set(R,Q.color),null!=Pe[Ie][De])Pe[Ie][De].add(Q);else{var de=[];de.add(Q),Pe[Ie][De]=de}}var Ne=null;null!=v&&(Ne=v.clone());for(var O=0;O<Le.length;O++){var R=Le[O],Me=null;0==O?Me=c:(Me=c.clone(),n.series.insert(u+O,Me)),Me.coreTitle=ke.get(R);var j=je.get(R);o.set(Me,j);for(var Ee=[],Ve=[],Xe=[],Ge=[],ze=[],Je=0,He=0;He<ue.length;He++){var de=Pe[He][O];if(null==de){if(Me.sti_is(t.IStiScatterSeries))continue;Ee.add(null),Me.sti_is(t.IStiRangeSeries)&&Ve.add(null),Xe.add(ue[He]),Je++}else for(var Ye=0,We=de;Ye<We.length;Ye++){var Ze=We[Ye],P=null,Ue=Me.sti_is(t.IStiScatterSeries);if(null!=Ze&&Ze.value.sti_is(Number)&&(P=Ze.value.toNumber(),Ue=!1),Me.sti_is(t.IStiScatterSeries)&&null==ue[He])continue;Ee.add(P),Ue||Xe.add(ue[He]),Me.sti_is(t.IStiRangeSeries)&&Ve.add(Ze.valueEnd.toNumber()),null!=Ne&&Ge.add(Ze.weight.toNumber()),null!=Ze.toolTip&&ze.add(Ze.toolTip.toString()),Je++}}var qe=Array.create(Number,Ee.count);Ee.copyTo(qe),Me.values=qe;var Ke=Array.create(Object,Xe.count);if(Xe.copyTo(Ke),Me.arguments=Ke,Me.sti_is(t.IStiRangeSeries)){var Qe=Array.create(Number,Ve.count);Ve.copyTo(Qe),Me.sti_as(t.IStiRangeSeries).valuesEnd=Qe}if(Me.sti_is(t.StiBubbleSeries)){var $e=Array.create(Number,Ge.count);Ge.copyTo($e),Me.weights=$e}Me.toolTips=ze.toArray(),this.checkArgumentsDateTimeStep(Me),this.createValuesTopN(Me),Me.filters=c.filters,a=!0}u+=Le.length-1}}else this.checkArgumentsDateTimeStep(c),this.createValuesTopN(c);u++}if(StiOptions.Engine.allowInvokeProcessChartEventForTemplateOfChart&&n.invokeEvents(),a&&StiOptions.Engine.applyStylesInAutoSeries){n.series.applyStyle(n.style);for(var O=0,et=0,tt=n.series.list;et<tt.length;et++){var c=tt[et],j=this.convertStringToColor(o.get(c)),rt=new r(O,c,null);null!=j&&(rt.color=j),c.invokeNewAutoSeries(rt),null!=rt.color&&rt.color.sti_is(h)&&c.core.applyStyle(n.style,rt.color),O++}}},y.getShorterListPoints=function(e){for(var r=[],i=0;i<e.values.count;i++)r[i]=new d(e.values[i],i);for(var n=[.3,.6,1,5,9,15,20,25,30,40],o=[],a=[],i=0;i<e.values.count;i++){if(o=t.StiSimplifyHelper.simplify(r,n[i],!0),o.count/r.count<.02&&o.count<900&&null!=a){o=a;break}a=o}return o},y.checkValueNaN=function(e){for(var t=0;t<e.length;t++)null!=e[t]&&isNaN(e[t])&&(e[t]=null);return e},y.checkArgumentsDateTimeStep=function(e){var r=e.arguments;if(e.chart.area.sti_is(t.StiAxisArea)){var i=e.chart.area.xAxis.dateTimeStep,n=i.step,o=i.numberOfValues;if(this.isArgumentsDateTime(r)&&n!=t.StiTimeDateStep.None){for(var a=Array.create(u,r.length),s=0;s<r.length;s++)a[s]=u.fromString(r[s].toString());for(var l=this.maximumDate(a),c=this.minimumDate(a),h=Math.trunc(this.getTotalTimeSpans(n,l,c))+1,p=[],f=[],m=c,S=this.getNextDate(c,n),s=0;s<h;s++){for(var d=(S.ticks-m.ticks)/o,y=new g(d/2),b=0;b<o;b++){var v=new g(d*b);if(v.ticks>l.ticks)continue;p.add(m.addTicks(v.ticks));var C=new u(p[p.count-1].ticks-y.ticks),w=new u(p[p.count-1].ticks+y.ticks),x=this.getValueForDate(C,w,a,e.values);f.add(x)}m=S,S=this.getNextDate(S,n)}var _=Array.create(Object,p.count),A=Array.create(Number,f.count);p.copyTo(_),f.copyTo(A);for(var L=0,O=0,P=null,B=null,s=0;s<A.length;s++){if(null!=A[s]&&null==P){L=s,P=A[s];continue}if(null!=A[s]&&null!=P){O=s,P=A[L],B=A[O];for(var R=(P-B)/(O-L),k=L+1;k<O;k++)i.interpolation?A[k]=A[k-1]-R:A[k]=0;L=0,P=null,s--}}e.arguments=_,e.values=A}}},y.createValuesTopN=function(e){if(e.topN.mode!=t.StiTopNMode.None&&e.values.length>e.topN.count){for(var r=e.topN.count,i=e.values.clone(),n=Array.create(Number,e.values.length),o=0;o<e.values.length;o++)n[o]=o;Array.sort(i),e.topN.mode==t.StiTopNMode.Top&&(Array.reverse(i),Array.reverse(n));var a=Array.create(Number,r),s=Array.create(Number,r);Array.copy(i,0,a,r),Array.copy(n,0,s,r);for(var l=[],u=[],c=0,h=0;h<e.values.length;h++)this.findIndex(s,h)?(l.add(e.values[h]),h<e.arguments.length&&u.add(e.arguments[h])):c+=e.values[h];e.topN.showOthers&&(e.sti_is(t.StiClusteredBarSeries)?(l.insert(0,c),u.insert(0,e.topN.othersText)):(l.add(c),u.add(e.topN.othersText)));var p=Array.create(Number,l.count);l.copyTo(p);var f=Array.create(Object,u.count);u.copyTo(f),e.values=p,e.arguments=f}},y.getNextDate=function(e,r){switch(r){case t.StiTimeDateStep.Second:return e.addSeconds(1);case t.StiTimeDateStep.Minute:return e.addMinutes(1);case t.StiTimeDateStep.Day:return e.addDays(1);case t.StiTimeDateStep.Hour:return e.addHours(1);case t.StiTimeDateStep.Month:return e.addMonths(1);case t.StiTimeDateStep.Year:return e.addYears(1)}return e},y.getKey=function(e){var t=e.toNumber();if(!isNaN(t))return t.toString();return e.toString()},y.sortArray=function(e){for(var t=e.ref,r=[],i=[],n=0;n<t.length;n++){var o=t[n].toNumber();isNaN(o)?i.add(t[n]):r.add(o)}r.sort(),i.sort();for(var a=Array.create(String,t.length),s=0,l=0,u=r;l<u.length;l++){var o=u[l];a[s]=o.toString(),s++}for(var c=0,h=i;c<h.length;c++){var p=h[c];a[s]=p,s++}t=a,e.ref=t},y.findIndex=function(e,t){for(var r=0;r<e.length;r++)if(e[r]==t)return!0;return!1},y.getValueForDate=function(e,t,r,i){for(var n=0,o=0,a=null,s=0;s<r.length;s++){var l=r[s];l>e&&l<=t&&(n++,o+=i[s])}return 0!=n&&(a=o/n),a},y.getTotalTimeSpans=function(e,r,i){var n=g.fromTicks(r.ticks-i.ticks),o=0;switch(e){case t.StiTimeDateStep.Second:o=n.totalSeconds;break;case t.StiTimeDateStep.Minute:o=n.totalMinutes;break;case t.StiTimeDateStep.Hour:o=n.totalHours;break;case t.StiTimeDateStep.Day:o=n.totalDays;break;case t.StiTimeDateStep.Month:o=12*(r.year-i.year)+r.month-i.month;break;case t.StiTimeDateStep.Year:o=r.year-i.year;break}return o},y.isArgumentsDateTime=function(e){if(0==e.length)return!1;for(var t=0,r=e;t<r.length;t++){var i=r[t];if(null==i)return!1;var n=i.toString(),o=void 0;if(null!=!u.fromString(n))return!1}return!0},y.maximumDate=function(e){for(var t=u.minValue,r=0,i=e;r<i.length;r++){var n=i[r];n.toOADate()>t.toOADate()&&(t=n)}return t},y.minimumDate=function(e){for(var t=u.maxValue,r=0,i=e;r<i.length;r++){var n=i[r];n.toOADate()<t.toOADate()&&(t=n)}return t},y.getAutoSeriesColorFromautoSeriesColorDataColumn=function(e,t){if(null!=t.autoSeriesColorDataColumn&&t.autoSeriesColorDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.autoSeriesColorDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(String,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.autoSeriesColorDataColumn);o=null==o?String.empty:o.toString(),i[n]=o,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var a=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.autoSeriesColorDataColumn);if(null!=a){a.saveState("ChartRender_DataColumn");var i=Array.create(String,a.count);a.first();for(var n=0;n<a.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.autoSeriesColorDataColumn);o=null==o?String.empty:o.toString(),i[n]=o,a.next()}return a.restoreState("ChartRender_DataColumn"),i}}return[]},y.getAutoSeriesTitleFromAutoSeriesTitleDataColumn=function(e,t){if(null!=t.autoSeriesTitleDataColumn&&t.autoSeriesTitleDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.autoSeriesTitleDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(String,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.autoSeriesTitleDataColumn);o=null==o?String.empty:o.toString(),i[n]=o,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var a=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.autoSeriesTitleDataColumn);if(null!=a){a.saveState("ChartRender_DataColumn");var i=Array.create(String,a.count);a.first();for(var n=0;n<a.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.autoSeriesTitleDataColumn);o=null==o?String.empty:o.toString(),i[n]=o,a.next()}return a.restoreState("ChartRender_DataColumn"),i}}return[]},y.getAutoSeriesKeysFromAutoSeriesKeyDataColumn=function(e,t){if(null!=t.autoSeriesKeyDataColumn&&t.autoSeriesKeyDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.autoSeriesKeyDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(String,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.autoSeriesKeyDataColumn);o=null==o?String.empty:o.toString(),i[n]=o,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var a=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.autoSeriesKeyDataColumn);if(null!=a){a.saveState("ChartRender_DataColumn");var i=Array.create(String,a.count);a.first();for(var n=0;n<a.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.autoSeriesKeyDataColumn);o=null==o?String.empty:o.toString(),i[n]=o,a.next()}return a.restoreState("ChartRender_DataColumn"),i}}return[]},y.setTitle=function(e,t,r){var n=new i;n.series=r,n.index=t,r.invokeGetTitle(e,n),String.isNullOrEmpty(n.value)||(r.coreTitle=n.value)},y.setCutPieList=function(e,r){var i=new a;r.invokeGetCutPieList(e,i),String.isNullOrEmpty(i.value)||(r.cutPieListValues=t.StiSeries.getValuesFromString(i.value))},y.getArguments=function(e,t){var r=this.getArgumentsFromListOfArguments(e,t);if(null!=r)return r;if(null!=(r=this.getArgumentsFromArgumentDataColumn(e,t)))return r;if(null!=(r=this.getArgumentsFromArgumentExpression(e,t)))return r;return[]},y.getArgumentsFromArgumentExpression=function(e,t){var r=Array.create(Object,e.count);e.first();for(var i=0;i<e.count;i++){var n=new o;t.invokeGetArgument(e,n),r[i]=n.value,e.next()}return r},y.getArgumentsFromArgumentDataColumn=function(e,t){if(null!=t.argumentDataColumn&&t.argumentDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.argumentDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Object,r.count);r.first();for(var n=0;n<r.count;n++)i[n]=l.getDataFromDataColumn(e.report.dictionary,t.argumentDataColumn),i[n].sti_is(u)&&(t.core.isDateTimeArguments=!0),r.next();return r.restoreState("ChartRender_DataColumn"),i}var o=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.argumentDataColumn);if(null!=o){o.saveState("ChartRender_DataColumn");var i=Array.create(Object,o.count);o.first();for(var n=0;n<o.count;n++)i[n]=l.getDataFromBusinessObject(e.report.dictionary,t.argumentDataColumn),i[n].sti_is(u)&&(t.core.isDateTimeArguments=!0),o.next();return o.restoreState("ChartRender_DataColumn"),i}}return null},y.getArgumentsFromListOfArguments=function(e,r){var i=new a;if(r.invokeGetListOfArguments(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getArgumentsFromString(i.value);return null},y.getValues=function(e,t){var r=this.getValuesFromListOfValues(e,t);if(null!=r)return r;if(null!=(r=this.getValuesFromValueDataColumn(e,t)))return r;if(null!=(r=this.getValuesFromValueExpression(e,t)))return r;return[]},y.getValuesFromValueExpression=function(e,t){var r=Array.create(Number,e.count);e.first();for(var i=0;i<e.count;i++){var n=new a;n.value="0",t.invokeGetValue(e,n),r[i]=n.value.toNumber(),e.next()}return r},y.getValuesFromValueDataColumn=function(e,t){if(null!=t.valueDataColumn&&t.valueDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.valueDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Number,r.count);r.first();for(var o=0;o<r.count;o++){var a=l.getDataFromDataColumn(e.report.dictionary,t.valueDataColumn);a.sti_is(u)||null==u.fromString(a.toString())||(a=u.fromString(a.toString()));var s=null;a.sti_is(u)?(t.core.isDateTimeValues=!0,s=a.toOADate()):null!=a&&a!=n.value&&(s=a.toNumber()),i[o]=s,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var c=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.valueDataColumn);if(null!=c){c.saveState("ChartRender_DataColumn");var i=Array.create(Number,c.count);c.first();for(var o=0;o<c.count;o++){var a=l.getDataFromBusinessObject(e.report.dictionary,t.valueDataColumn);a.sti_is(u)||null==u.fromString(a.toString())||(a=u.fromString(a.toString()));var s=null;a.sti_is(u)?(t.core.isDateTimeValues=!0,s=a.toOADate()):null!=a&&a!=n.value&&(s=a.toNumber()),i[o]=s,c.next()}return c.restoreState("ChartRender_DataColumn"),i}}return null},y.getValuesFromListOfValues=function(e,r){var i=new a;if(r.invokeGetListOfValues(e,i,r),null!=i.value&&i.value.length>0)return t.StiSeries.getNullableValuesFromString(r,i.value);return null},y.getValuesEnd=function(e,t,r,i,n){var o=this.getValuesEndFromListOfValuesEnd(e,t,i);if(null!=o)return o;if(null!=(o=this.getValuesEndFromValueDataColumnEnd(e,t,r)))return o;if(null!=(o=this.getValuesEndFromValueEndExpression(e,n,t)))return o;return[]},y.getValuesEndFromValueEndExpression=function(e,t,r){var i=Array.create(Number,e.count);e.first();for(var n=0;n<e.count;n++){var o=new a;o.value="0",t(e,o,r),i[n]=o.value.toNumber(),e.next()}return i},y.getValuesEndFromValueDataColumnEnd=function(e,t,r){if(null!=r&&r.trim().length>0){var i=l.getDataSourceFromDataColumn(e.report.dictionary,r);if(null!=i){i.saveState("ChartRender_DataColumn");var o=Array.create(Number,i.count);i.first();for(var a=0;a<i.count;a++){var s=l.getDataFromDataColumn(e.report.dictionary,r);s.sti_is(u)||null==u.fromString(s.toString())||(s=u.fromString(s.toString()));var c=null;s.sti_is(u)?(t.core.isDateTimeValues=!0,c=s.toOADate()):null!=s&&s!=n.value&&(c=s.toNumber()),o[a]=c,i.next()}return i.restoreState("ChartRender_DataColumn"),o}var h=l.getBusinessObjectFromDataColumn(e.report.dictionary,r);if(null!=h){h.saveState("ChartRender_DataColumn");var o=Array.create(Number,h.count);h.first();for(var a=0;a<h.count;a++){var s=l.getDataFromBusinessObject(e.report.dictionary,r);s.sti_is(u)||null==u.fromString(s.toString())||(s=u.fromString(s.toString()));var c=null;s.sti_is(u)?(t.core.isDateTimeValues=!0,c=s.toOADate()):null!=s&&s!=n.value&&(c=s.toNumber()),o[a]=c,h.next()}return h.restoreState("ChartRender_DataColumn"),o}}return null},y.getValuesEndFromListOfValuesEnd=function(e,r,i){var n=new a;if(i(e,n,r),null!=n.value&&n.value.length>0)return t.StiSeries.getNullableValuesFromString(r,n.value);return null},y.getValuesOpen=function(e,t){var r=this.getValuesOpenFromListOfValuesOpen(e,t);if(null!=r)return r;if(null!=(r=this.getValuesOpenFromValueDataColumnOpen(e,t)))return r;if(null!=(r=this.getValuesOpenFromValuesOpenExpression(e,t)))return r;return[]},y.getValuesOpenFromValuesOpenExpression=function(e,t){var r=Array.create(Number,e.count);e.first();for(var i=0;i<e.count;i++){var n=new a;n.value="0",t.invokeGetValueOpen(e,n),r[i]=n.value.toNumber(),e.next()}return r},y.getValuesOpenFromValueDataColumnOpen=function(e,t){if(null!=t.valueDataColumnOpen&&t.valueDataColumnOpen.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.valueDataColumnOpen);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Number,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.valueDataColumnOpen);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var s=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.valueDataColumnOpen);if(null!=s){s.saveState("ChartRender_DataColumn");var i=Array.create(Number,s.count);s.first();for(var n=0;n<s.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.valueDataColumnOpen);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return null},y.getValuesOpenFromListOfValuesOpen=function(e,r){var i=new a;if(r.invokeGetListOfValuesOpen(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getNullableValuesFromString(r,i.value);return null},y.getValuesClose=function(e,t){var r=this.getValuesCloseFromListOfValuesClose(e,t);if(null!=r)return r;if(null!=(r=this.getValuesCloseFromValueDataColumnClose(e,t)))return r;if(null!=(r=this.getValuesCloseFromValuesCloseExpression(e,t)))return r;return[]},y.getValuesCloseFromValuesCloseExpression=function(e,t){var r=Array.create(Number,e.count);e.first();for(var i=0;i<e.count;i++){var n=new a;n.value="0",t.invokeGetValueClose(e,n),r[i]=n.value.toNumber(),e.next()}return r},y.getValuesCloseFromValueDataColumnClose=function(e,t){if(null!=t.valueDataColumnClose&&t.valueDataColumnClose.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.valueDataColumnClose);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Number,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.valueDataColumnClose);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var s=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.valueDataColumnClose);if(null!=s){s.saveState("ChartRender_DataColumn");var i=Array.create(Number,s.count);s.first();for(var n=0;n<s.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.valueDataColumnClose);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return null},y.getValuesCloseFromListOfValuesClose=function(e,r){var i=new a;if(r.invokeGetListOfValuesClose(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getNullableValuesFromString(r,i.value);return null},y.getValuesHigh=function(e,t){var r=this.getValuesHighFromListOfValuesHigh(e,t);if(null!=r)return r;if(null!=(r=this.getValuesHighFromValueDataColumnHigh(e,t)))return r;if(null!=(r=this.getValuesHighFromValuesHighExpression(e,t)))return r;return[]},y.getValuesHighFromValuesHighExpression=function(e,t){var r=Array.create(Number,e.count);e.first();for(var i=0;i<e.count;i++){var n=new a;n.value="0",t.invokeGetValueHigh(e,n),r[i]=n.value.toNumber(),e.next()}return r},y.getValuesHighFromValueDataColumnHigh=function(e,t){if(null!=t.valueDataColumnHigh&&t.valueDataColumnHigh.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.valueDataColumnHigh);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Number,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.valueDataColumnHigh);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var s=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.valueDataColumnHigh);if(null!=s){s.saveState("ChartRender_DataColumn");var i=Array.create(Number,s.count);s.first();for(var n=0;n<s.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.valueDataColumnHigh);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return null},y.getValuesHighFromListOfValuesHigh=function(e,r){var i=new a;if(r.invokeGetListOfValuesHigh(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getNullableValuesFromString(r,i.value);return null},y.getValuesLow=function(e,t){var r=this.getValuesLowFromListOfValuesLow(e,t);if(null!=r)return r;if(null!=(r=this.getValuesLowFromValueDataColumnLow(e,t)))return r;if(null!=(r=this.getValuesLowFromValuesLowExpression(e,t)))return r;return[]},y.getValuesLowFromValuesLowExpression=function(e,t){var r=Array.create(Number,e.count);e.first();for(var i=0;i<e.count;i++){var n=new a;n.value="0",t.invokeGetValueLow(e,n),r[i]=n.value.toNumber(),e.next()}return r},y.getValuesLowFromValueDataColumnLow=function(e,t){if(null!=t.valueDataColumnLow&&t.valueDataColumnLow.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.valueDataColumnLow);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Number,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.valueDataColumnLow);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var s=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.valueDataColumnLow);if(null!=s){s.saveState("ChartRender_DataColumn");var i=Array.create(Number,s.count);s.first();for(var n=0;n<s.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.valueDataColumnLow);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return null},y.getValuesLowFromListOfValuesLow=function(e,r){var i=new a;if(r.invokeGetListOfValuesLow(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getNullableValuesFromString(r,i.value);return null},y.getWeights=function(e,t){var r=this.getWeightsFromListOfWeights(e,t);if(null!=r)return r;if(null!=(r=this.getWeightsFromWeightDataColumn(e,t)))return r;if(null!=(r=this.getWeightsWeightExpression(e,t)))return r;return[]},y.getWeightsWeightExpression=function(e,t){var r=Array.create(Number,e.count);e.first();for(var i=0;i<e.count;i++){var n=new a;n.value="0",t.invokeGetWeight(e,n),r[i]=n.value.toNumber(),e.next()}return r},y.getWeightsFromWeightDataColumn=function(e,t){if(null!=t.weightDataColumn&&t.weightDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.weightDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Number,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.weightDataColumn);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var s=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.weightDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");var i=Array.create(Number,s.count);s.first();for(var n=0;n<s.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.weightDataColumn);o.sti_is(u)||null==u.fromString(o.toString())||(o=u.fromString(o.toString()));var a=0;o.sti_is(u)?(t.core.isDateTimeValues=!0,a=o.toOADate()):a=o.toNumber(),i[n]=a,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return null},y.getWeightsFromListOfWeights=function(e,r){var i=new a;if(r.invokeGetListOfWeights(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getValuesFromString(i.value);return null},y.getHyperlinks=function(e,t){var r=this.getHyperlinksFromListOfHyperlinks(e,t);if(null!=r)return r;if(null!=(r=this.getHyperlinksFromHyperlinkDataColumn(e,t)))return r;if(null!=(r=this.getHyperlinksFromHyperlinkExpression(e,t)))return r;return[]},y.getHyperlinksFromHyperlinkExpression=function(e,t){var r=Array.create(String,e.count);e.first();for(var i=0;i<e.count;i++){var n=new o;n.value=null,t.invokeGetHyperlink(e,n),null!=n.value&&(r[i]=n.value.toString()),e.next()}return r},y.getHyperlinksFromHyperlinkDataColumn=function(e,t){if(null!=t.hyperlinkDataColumn&&t.hyperlinkDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.hyperlinkDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(String,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.hyperlinkDataColumn);null!=o&&(i[n]=o.toString()),r.next()}return r.restoreState("ChartRender_DataColumn"),i}var a=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.hyperlinkDataColumn);if(null!=a){a.saveState("ChartRender_DataColumn");var i=Array.create(String,a.count);a.first();for(var n=0;n<a.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.hyperlinkDataColumn);null!=o&&(i[n]=o.toString()),a.next()}return a.restoreState("ChartRender_DataColumn"),i}}return null},y.getHyperlinksFromListOfHyperlinks=function(e,r){var i=new a;if(r.invokeGetListOfHyperlinks(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getStringsFromString(i.value);return null},y.getTags=function(e,t){var r=this.getTagsFromListOfTags(e,t);if(null!=r)return r;if(null!=(r=this.getTagsFromTagDataColumn(e,t)))return r;if(null!=(r=this.getTagsFromTagExpression(e,t)))return r;return[]},y.getTagsFromTagExpression=function(e,t){var r=Array.create(Object,e.count);e.first();for(var i=0;i<e.count;i++){var n=new o;n.value=null,t.invokeGetTag(e,n),r[i]=n.value,e.next()}return r},y.getTagsFromTagDataColumn=function(e,t){if(null!=t.tagDataColumn&&t.tagDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.tagDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(Object,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.tagDataColumn);i[n]=o,r.next()}return r.restoreState("ChartRender_DataColumn"),i}var a=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.tagDataColumn);if(null!=a){a.saveState("ChartRender_DataColumn");var i=Array.create(Object,a.count);a.first();for(var n=0;n<a.count;n++)i[n]=l.getDataFromBusinessObject(e.report.dictionary,t.tagDataColumn),a.next();return a.restoreState("ChartRender_DataColumn"),i}}return null},y.getTagsFromListOfTags=function(e,r){var i=new a;if(r.invokeGetListOfTags(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getStringsFromString(i.value);return null},y.getToolTips=function(e,t){var r=this.getToolTipsFromListOfToolTips(e,t);if(null!=r)return r;if(null!=(r=this.getToolTipsFromToolTipDataColumn(e,t)))return r;if(null!=(r=this.getToolTipsFromToolTipExpression(e,t)))return r;return[]},y.getToolTipsFromToolTipExpression=function(e,t){var r=Array.create(String,e.count);e.first();for(var i=0;i<e.count;i++){var n=new o;n.value=null,t.invokeGetToolTip(e,n),null!=n.value&&(r[i]=n.value.toString()),e.next()}return r},y.getToolTipsFromToolTipDataColumn=function(e,t){if(null!=t.toolTipDataColumn&&t.toolTipDataColumn.trim().length>0){var r=l.getDataSourceFromDataColumn(e.report.dictionary,t.toolTipDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");var i=Array.create(String,r.count);r.first();for(var n=0;n<r.count;n++){var o=l.getDataFromDataColumn(e.report.dictionary,t.toolTipDataColumn);null!=o&&(i[n]=o.toString()),r.next()}return r.restoreState("ChartRender_DataColumn"),i}var a=l.getBusinessObjectFromDataColumn(e.report.dictionary,t.toolTipDataColumn);if(null!=a){a.saveState("ChartRender_DataColumn");var i=Array.create(String,a.count);a.first();for(var n=0;n<a.count;n++){var o=l.getDataFromBusinessObject(e.report.dictionary,t.toolTipDataColumn);null!=o&&(i[n]=o.toString()),a.next()}return a.restoreState("ChartRender_DataColumn"),i}}return null},y.getToolTipsFromListOfToolTips=function(e,r){var i=new a;if(r.invokeGetListOfToolTips(e,i),null!=i.value&&i.value.length>0)return t.StiSeries.getStringsFromString(i.value);return null},y.globalDurationElement=new g(0,0,1),y.globalBeginTimeElement=new g(0,0,1),y}();t.StiChartHelper=y}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Report.Engine.StiComponentInfo,i=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.storedForProcessAtEndChart=null,t.interactiveComps=null,t}return __extends(r,e),r.prototype.implements=function(){return r.implementsStiChartInfo||(r.implementsStiChartInfo=[t.IStiChartInfo]),r.implementsStiChartInfo},r}(r);t.StiChartInfo=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var i=e.Report.Chart.IStiAxisArea,n=e.Report.Events.StiProcessChartEvent,o=e.System.EventArgs,a=e.Report.Chart.StiSeriesLabels,s=e.Report.Chart.StiChartStyle,l=e.Report.Chart.StiArea,u=e.Base.StiJsonReportObjectHelper,c=e.Report.Chart.StiChartConditionsCollection,h=e.Report.Chart.IStiChart,p=e.Report.Chart.IStiClusteredColumnArea,f=e.Report.Chart.StiCenterAxisLabels,m=e.Report.Chart.StiChartCoreXF,S=e.Report.Chart.StiChartInfo,g=e.Report.Chart.StiChartTitle,d=e.Report.Chart.StiChartTable,y=e.Report.Chart.StiClusteredColumnArea,b=e.Report.Chart.StiConstantLinesCollection,v=e.Report.Chart.StiLegend,C=e.Report.Chart.StiRadarArea,w=e.Report.Chart.StiStripsCollection,x=e.Report.Chart.StiSeriesCollection,_=e.Report.Chart.StiStyle25,A=e.Report.Chart.StiChartHelper,L=e.Base.StiActivator,O=e.Base.StiJsonSaveMode,P=e.System.Enum,B=e.Report.Components.StiImageRotation,R=e.Report.Components.StiComponentPriority,k=e.Report.Components.StiComponentType,j=e.Base.Localization.StiLocalization,T=e.System.Drawing.Color,F=e.Base.Drawing.StiSolidBrush,D=e.Base.Drawing.StiBorder,I=e.Report.Components.StiFilter,N=e.Report.Components.StiFiltersCollection,M=e.Report.Components.StiFilterMode,E=e.System.Drawing.Rectangle,V=e.Base.Drawing.StiBrush,X=e.Report.Components.StiComponent,G=function(X){function G(e){void 0===e&&(e=E.empty);var t=X.call(this,e)||this;return t._filterMode=M.And,t._filters=new N,t._filterOn=!0,t._border=new D,t._brush=new F(T.transparent),t._sort=[],t._dataSourceName=String.empty,t._businessObjectGuid=String.empty,t._masterComponent=null,t._countData=0,t.isEofValue=!1,t.isBofValue=!1,t.isCacheValues=!1,t.cachedCount=0,t.cachedIsBusinessObjectEmpty=!1,t.cachedIsDataSourceEmpty=!1,t.cachedDataSource=null,t.cachedBusinessObject=null,t._dataRelationName="",t._processAtEnd=!1,t.processChartEvent=new n,t._seriesLabelsConditions=new c,t._rotation=B.None,t._style=new _,t._allowApplyStyle=!0,t._customStyleName="",t._horSpacing=10,t._vertSpacing=10,t._isAnimation=!1,t._chartInfo=new S,t._allowApplyStyle=StiOptions.Engine.defaultValueOfAllowApplyStyleProperty,t.legend=new v,t.series=new x,t.series.seriesAdded=t.series_SeriesAdded,t.series.seriesRemoved=t.series_SeriesRemoved,t.area=new y,t.seriesLabels=new f,t.constantLines=new b,t.strips=new w,t.title=new g,t.table=new d,t._core=new m(t),t.core.applyStyle(t.style),t}return __extends(G,X),G.prototype.implements=function(){return G.implementsStiChart||(G.implementsStiChart=X.prototype.implements.call(this).concat([r.IStiBorder,r.IStiBusinessObject,r.IStiBrush,r.IStiDataSource,r.IStiDataRelation,r.IStiMasterComponent,r.IStiSort,r.IStiFilter,r.IStiExportImage,r.IStiExportImageExtended,t.IStiIgnoryStyle,t.IStiGlobalizationProvider,h])),G.implementsStiChart},G.prototype.saveToJsonObject=function(t){var r=X.prototype.saveToJsonObject.call(this,t);return r.removeProperty("CanShrink"),r.removeProperty("CanGrow"),r.addPropertyEnum("FilterMode",e.Report.Components.StiFilterMode,this.filterMode,e.Report.Components.StiFilterMode.And),r.addPropertyBool("FilterOn",this.filterOn,!0),r.addPropertyStringNullOfEmpty("Border",u.Serialize.jBorder(this.border)),r.addPropertyStringNullOfEmpty("Brush",u.Serialize.jBrush(this.brush)),r.addPropertyStringNullOfEmpty("DataSourceName",this.dataSourceName),r.addPropertyStringNullOfEmpty("BusinessObjectGuid",this.businessObjectGuid),r.addPropertyNumber("CountData",this.countData),r.addPropertyStringNullOfEmpty("DataRelationName",this.dataRelationName),r.addPropertyBool("ProcessAtEnd",this.processAtEnd),r.addPropertyJObject("ProcessChartEvent",this.processChartEvent.saveToJsonObject(t)),r.addPropertyEnum("Rotation",B,this.rotation,B.None),r.addPropertyStringNullOfEmpty("CustomStyleName",this.customStyleName),r.addPropertyNumber("HorSpacing",this.horSpacing,10),r.addPropertyNumber("VertSpacing",this.vertSpacing,10),null!=this.masterComponent&&r.addPropertyStringNullOfEmpty("MasterComponent",this.masterComponent.name),r.addPropertyJObject("Series",this._series.saveToJsonObject(t)),r.addPropertyJObject("Area",this._area.saveToJsonObject(t)),r.addPropertyJObject("Table",this.table.saveToJsonObject(t)),r.addPropertyJObject("SeriesLabels",this.seriesLabels.saveToJsonObject(t)),r.addPropertyJObject("Legend",this.legend.saveToJsonObject(t)),r.addPropertyJObject("Title",this._title.saveToJsonObject(t)),r.addPropertyJObject("Strips",this.strips.saveToJsonObject(t)),r.addPropertyJObject("ConstantLines",this.constantLines.saveToJsonObject(t)),r.addPropertyBool("AllowApplyStyle",this.allowApplyStyle,!0),r.addPropertyJObject("Style",this.style.saveToJsonObject(t)),t==O.Report&&(r.addPropertyJObject("Filters",this.filters.saveToJsonObject(t)),r.addPropertyJObject("Sort",u.Serialize.stringArray(this.sort)),r.addPropertyJObject("SeriesLabelsConditions",this.seriesLabelsConditions.saveToJsonObject(t))),r},G.prototype.loadFromJsonObject=function(t){X.prototype.loadFromJsonObject.call(this,t);for(var r=0,i=t.properties();r<i.length;r++){var o=i[r];switch(o.name){case"FilterMode":this._filterMode=P.parse(e.Report.Components.StiFilterMode,o.value.toString());break;case"Filters":this._filters.loadFromJsonObject(o.value);break;case"FilterOn":this._filterOn=o.value.toBoolean();break;case"Border":case"br":this._border=u.Deserialize.border(o.value.toString());break;case"Brush":case"bh":this._brush=u.Deserialize.brush(o.value.toString());break;case"DataSourceName":this._dataSourceName=o.value.toString();break;case"BusinessObjectGuid":this._businessObjectGuid=o.value.toString();break;case"CountData":this._countData=o.value.toNumber();break;case"DataRelationName":this._dataRelationName=o.value.toString();break;case"ProcessAtEnd":this._processAtEnd=o.value.toBoolean();break;case"ProcessChartEvent":var c=new n;c.loadFromJsonObject(o.value),this.processChartEvent=c;break;case"SeriesLabelsConditions":this._seriesLabelsConditions.loadFromJsonObject(o.value);break;case"Rotation":this._rotation=P.parse(B,o.value.toString());break;case"AllowApplyStyle":this.allowApplyStyle=o.value.toBoolean();break;case"CustomStyleName":this._customStyleName=o.value.toString();break;case"HorSpacing":this._horSpacing=o.value.toNumber();break;case"VertSpacing":this._vertSpacing=o.value.toNumber();break;case"MasterComponent":this.jsonMasterComponentTemp=o.value.toString(),this.report.jsonLoaderHelper.masterComponents.add(this);break;case"Style":this.style=s.loadFromJsonObjectInternal(o.value);break;case"ConstantLines":this.constantLines.loadFromJsonObject(o.value);break;case"Strips":this.strips.loadFromJsonObject(o.value);break;case"Title":this.title.loadFromJsonObject(o.value);break;case"Legend":this.legend.loadFromJsonObject(o.value);break;case"SeriesLabels":this.seriesLabels=a.loadFromJsonObjectInternal(o.value,this);break;case"Table":this._table.loadFromJsonObject(o.value);break;case"Area":this._area=l.loadFromJsonObjectInternal(o.value),this._area.chart=this;break;case"Series":this._series.loadFromJsonObject(o.value);break}}this.core.applyStyle(this.style)},G.prototype.loadFromXml=function(t,r){X.prototype.loadFromXml.call(this,t,r);var i=t.getAttribute("Ref");String.isNullOrEmpty(i)||(this.report.jsonLoaderHelper.refNames[i.toNumber()]=t.nodeName);for(var n=0;n<t.childNodes.length;n++){var o=t.childNodes[n];switch(o.nodeName){case"FilterMode":this._filterMode=P.parse(e.Report.Components.StiFilterMode,o.textContent);break;case"Filters":this._filters.loadFromXml(o);break;case"FilterOn":this._filterOn=o.textContent.toBoolean();break;case"Border":case"br":this._border=D.loadFromXml(o.textContent);break;case"Brush":this._brush=V.loadFromXml(o.textContent);break;case"DataSourceName":this._dataSourceName=o.textContent;break;case"BusinessObjectGuid":this._businessObjectGuid=o.textContent;break;case"CountData":this._countData=o.textContent.toNumber();break;case"DataRelationName":this._dataRelationName=o.textContent;break;case"ProcessAtEnd":this._processAtEnd=o.textContent.toBoolean();break;case"ProcessChartEvent":break;case"Rotation":this._rotation=P.parse(B,o.textContent.toString());break;case"AllowApplyStyle":this.allowApplyStyle=o.textContent.toBoolean();break;case"CustomStyleName":this._customStyleName=o.textContent;break;case"HorSpacing":this._horSpacing=o.textContent.toNumber();break;case"VertSpacing":this._vertSpacing=o.textContent.toNumber();break;case"MasterComponent":this.jsonMasterComponentTemp=o.getAttribute("isRef"),this.report.jsonLoaderHelper.masterComponents.add(this);break;case"Style":var a=e.Report.Chart.StiChartStyle.loadFromXml(o);null!=a&&(this.style=a);break;case"ConstantLines":this.constantLines.loadFromXml(o);break;case"Strips":this.strips.loadFromXml(o);break;case"Title":var s=new e.Report.Chart.StiChartTitle;s.loadFromXml(o),s.chart=this,this.title=s;break;case"Legend":var u=new e.Report.Chart.StiLegend;u.loadFromXml(o),u.chart=this,this.legend=u;break;case"Table":var c=new e.Report.Chart.StiChartTable;c.chart=this,c.loadFromXml(o),this._table=c;break;case"SeriesLabels":this.seriesLabels=e.Report.Chart.StiSeriesLabels.loadLabelsFromXml(o,this);break;case"Area":this._area=l.loadAreaFromXml(o,this);break;case"Series":this._series.loadFromXml(o,this);break;case"SeriesLabelsConditions":this._seriesLabelsConditions.loadFromXml(o);break}}this.core.applyStyle(this.style)},Object.defineProperty(G.prototype,"componentId",{get:function(){return t.StiComponentId.StiChart},enumerable:!0,configurable:!0}),G.prototype.convert=function(e,t,r){void 0===r&&(r=!1),X.prototype.convert.call(this,e,t,r),this.legend.size=t.convertFromHInches(e.convertToHInches(this.legend.size))},G.prototype.convertToHInches=function(e){return null!=this.report?this.report.unit.convertToHInches(e):e},G.prototype.setString=function(e,t){switch(e){case"Legend.Title":this.legend.title=t;break;case"SeriesLabels.TextBefore":this.seriesLabels.textBefore=t;break;case"SeriesLabels.TextAfter":this.seriesLabels.textAfter=t;break}var r=this.area.sti_as(i);if(null!=r)switch(e){case"Area.XAxis.Labels.TextBefore":r.xAxis.labels.textBefore=t;break;case"Area.XAxis.Labels.TextAfter":r.xAxis.labels.textAfter=t;break;case"Area.XAxis.Title.Text":r.xAxis.title.text=t;break;case"Area.YAxis.Labels.TextBefore":r.yAxis.labels.textBefore=t;break;case"Area.YAxis.Labels.TextAfter":r.yAxis.labels.textAfter=t;break;case"Area.YAxis.Title.Text":r.yAxis.title.text=t;break;case"Area.XTopAxis.Labels.TextBefore":r.xTopAxis.labels.textBefore=t;break;case"Area.XTopAxis.Labels.TextAfter":r.xTopAxis.labels.textAfter=t;break;case"Area.XTopAxis.Title.Text":r.xTopAxis.title.text=t;break;case"Area.YRightAxis.Labels.TextBefore":r.yRightAxis.labels.textBefore=t;break;case"Area.YRightAxis.Labels.TextAfter":r.yRightAxis.labels.textAfter=t;break;case"Area.YRightAxis.Title.Text":r.yRightAxis.title.text=t;break}for(var n=0,o=0,a=this.series.list;o<a.length;o++){var s=a[o];e==String.stiFormat("Series{0}.Title",n++)&&(s.coreTitle=t)}},G.prototype.getString=function(e){switch(e){case"Legend.Title":return this.legend.title;case"SeriesLabels.TextBefore":return this.seriesLabels.textBefore;case"SeriesLabels.TextAfter":return this.seriesLabels.textAfter}var t=this.area.sti_as(i);if(null!=t)switch(e){case"Area.XAxis.Labels.TextBefore":return t.xAxis.labels.textBefore;case"Area.XAxis.Labels.TextAfter":return t.xAxis.labels.textAfter;case"Area.XAxis.Title.Text":return t.xAxis.title.text;case"Area.YAxis.Labels.TextBefore":return t.yAxis.labels.textBefore;case"Area.YAxis.Labels.TextAfter":return t.yAxis.labels.textAfter;case"Area.YAxis.Title.Text":return t.yAxis.title.text;case"Area.XTopAxis.Labels.TextBefore":return t.xTopAxis.labels.textBefore;case"Area.XTopAxis.Labels.TextAfter":return t.xTopAxis.labels.textAfter;case"Area.XTopAxis.Title.Text":return t.xTopAxis.title.text;case"Area.YRightAxis.Labels.TextBefore":return t.yRightAxis.labels.textBefore;case"Area.YRightAxis.Labels.TextAfter":return t.yRightAxis.labels.textAfter;case"Area.YRightAxis.Title.Text":return t.yRightAxis.title.text}for(var r=0,n=0,o=this.series.list;n<o.length;n++){var a=o[n];if(e==String.stiFormat("Series{0}.Title",r++))return a.coreTitle}throw String.stiFormat("Property with name {0}",e)},G.prototype.getAllStrings=function(){var e=[];e.add("Legend.Title"),e.add("SeriesLabels.TextBefore"),e.add("SeriesLabels.TextAfter"),this.area.sti_is(i)&&(e.add("Area.XAxis.Labels.TextBefore"),e.add("Area.XAxis.Labels.TextAfter"),e.add("Area.XAxis.Title.Text"),e.add("Area.YAxis.Labels.TextBefore"),e.add("Area.YAxis.Labels.TextAfter"),e.add("Area.YAxis.Title.Text"),e.add("Area.XTopAxis.Labels.TextBefore"),e.add("Area.XTopAxis.Labels.TextAfter"),e.add("Area.XTopAxis.Title.Text"),e.add("Area.YRightAxis.Labels.TextBefore"),e.add("Area.YRightAxis.Labels.TextAfter"),e.add("Area.YRightAxis.Title.Text"));for(var t=0;t<this.series.count;t++)e.add(String.stiFormat("Series{0}.Title",t));return e},G.prototype.clone=function(){var e=X.prototype.clone.call(this);e._chartInfo=this.chartInfo.clone(),e.brush=this.brush.clone(),e.border=this.border.clone(),null!=this.sort?e.sort=this.sort.clone():e.sort=null,null!=this.filters?e.filters=this.filters.clone():e.filters=null,null!=e.title&&(e.title=this.title.clone()),null!=e.area&&(e.area=this.area.clone()),null!=e.seriesLabels&&(e.seriesLabels=this.seriesLabels.clone()),null!=e.legend&&(e.legend=this.legend.clone()),null!=e.table&&(e.table=this.table.clone()),e.series=new x,e.series.seriesAdded=this.series_SeriesAdded,e.series.seriesRemoved=this.series_SeriesRemoved;for(var t=0,r=this.series.list;t<r.length;t++){var i=r[t],n=i.clone(),o=n.title;e.series.add(n),n.title=o}e.constantLines=new b;for(var a=0,s=this.constantLines.list;a<s.length;a++){var l=s[a];e.constantLines.add(l.clone())}e.strips=new w;for(var u=0,c=this.strips.list;u<c.length;u++){var h=c[u];e.strips.add(h.clone())}return null!=e.core&&(e.core=this.core.clone(),e.core.chart=e),e},G.prototype.saveState=function(e){X.prototype.saveState.call(this,e),this.states.pushInt(e,this,"positionValue",this.positionValue),this.states.pushBool(e,this,"isEofValue",this.isEofValue),this.states.pushBool(e,this,"isBofValue",this.isBofValue),null!=this.dataSource&&this.dataSource.saveState(e)},G.prototype.restoreState=function(e){X.prototype.restoreState.call(this,e),this.states.isExist(e,this)&&(this.isBofValue=this.states.popBool(e,this,"isBofValue"),this.isEofValue=this.states.popBool(e,this,"isEofValue"),this.positionValue=this.states.popInt(e,this,"positionValue")),null!=this.dataSource&&this.dataSource.restoreState(e)},G.prototype.getImage=function(r,i){void 0===i&&(i=t.StiExportFormat.None);var n=new t.Export.StiSvgData;return n.component=this,n.x=0,n.y=0,n.width=this.report.unit.convertToHInches(this.width),n.height=this.report.unit.convertToHInches(this.height),e.Report.Export.StiChartSvgHelper.getImage(n)},G.prototype.isExportAsImage=function(e){if(e==t.StiExportFormat.Pdf)return!1;return!0},Object.defineProperty(G.prototype,"filterMethodHandler",{get:function(){return this._filterMethodHandler},set:function(e){this._filterMethodHandler=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"filterMode",{get:function(){return this._filterMode},set:function(e){this._filterMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"filters",{get:function(){return this._filters},set:function(e){this._filters=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"filter",{get:function(){return 0==this.filters.count&&this.filters.add(new I),this.filters.getByIndex(0).item=e.Report.Components.StiFilterItem.Expression,this.filters.getByIndex(0).expression},set:function(t){0==this.filters.count&&this.filters.add(new I),this.filters.getByIndex(0).item=e.Report.Components.StiFilterItem.Expression,this.filters.getByIndex(0).expression=t},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"filterOn",{get:function(){return this._filterOn},set:function(e){this._filterOn=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"border",{get:function(){return this._border},set:function(e){this._border=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"sort",{get:function(){return this._sort},set:function(e){this._sort=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"dataSource",{get:function(){if(this.isCacheValues)return this.cachedDataSource;if(null==this.page||null==this.report||null==this.report.dataSources||null==this.dataSourceName||0==this.dataSourceName.length)return null;return this.report.dataSources.getByName(this.dataSourceName)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"dataSourceName",{get:function(){return this._dataSourceName},set:function(e){this._dataSourceName!=e&&(this._dataSourceName=e)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isDataSourceEmpty",{get:function(){if(this.isCacheValues)return this.cachedIsDataSourceEmpty;return String.isNullOrEmpty(this.dataSourceName)||null==this.dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isBusinessObjectEmpty",{get:function(){if(this.isCacheValues)return this.cachedIsBusinessObjectEmpty;return String.isNullOrEmpty(this.businessObjectGuid)||null==this.businessObject},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"businessObject",{get:function(){if(this.isCacheValues)return this.cachedBusinessObject;if(null==this.page||null==this.report||null==this.businessObjectGuid||0==this.businessObjectGuid.length)return null;return e.Report.Dictionary.StiBusinessObjectHelper.getBusinessObjectFromGuid(this.report,this.businessObjectGuid)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"businessObjectGuid",{get:function(){return this._businessObjectGuid},set:function(e){this._businessObjectGuid!=e&&(this._businessObjectGuid=e,String.isNullOrEmpty(e)||(this.dataSourceName=null))},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"masterComponent",{get:function(){return this._masterComponent},set:function(e){this._masterComponent=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"countData",{get:function(){return this._countData},set:function(e){this._countData=e},enumerable:!0,configurable:!0}),G.prototype.first=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!1,this.isBofValue=!0,this.positionValue=0):this.dataSource.first():this.businessObject.first()},G.prototype.prior=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue<=0?this.isBofValue=!0:this.positionValue--):this.dataSource.prior():this.businessObject.prior()},G.prototype.next=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue>=this.countData-1?this.isEofValue=!0:this.positionValue++):this.dataSource.next():this.businessObject.next()},G.prototype.last=function(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!0,this.isBofValue=!1,this.positionValue=this.countData-1):this.dataSource.last():this.businessObject.last()},Object.defineProperty(G.prototype,"isEof",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue:this.dataSource.isEof:this.businessObject.isEof},set:function(e){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue=e:this.dataSource.isEof=e:this.businessObject.isEof=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isBof",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue:this.dataSource.isBof:this.businessObject.isBof},set:function(e){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue=e:this.dataSource.isBof=e:this.businessObject.isBof=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isEmpty",{get:function(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?0==this.countData:this.dataSource.isEmpty:this.businessObject.isEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"position",{get:function(){if(!this.isBusinessObjectEmpty)return this.businessObject.position;if(!this.isDataSourceEmpty)return this.dataSource.position;return this.positionValue},set:function(e){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.positionValue=e:this.dataSource.position=e:this.businessObject.position=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"count",{get:function(){if(this.isCacheValues)return this.cachedCount;return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.countData:this.dataSource.count:this.businessObject.count},enumerable:!0,configurable:!0}),G.prototype.cacheValues=function(e){e?(this.cachedCount=this.count,this.cachedIsBusinessObjectEmpty=this.isBusinessObjectEmpty,this.cachedIsDataSourceEmpty=this.isDataSourceEmpty,this.cachedDataSource=this.dataSource,this.cachedBusinessObject=this.businessObject):(this.cachedDataSource=null,this.cachedBusinessObject=null),this.isCacheValues=e},Object.defineProperty(G.prototype,"dataRelation",{get:function(){if(null==this.page||null==this.report||null==this.report.dictionary||null==this.report.dictionary.relations||null==this.dataRelationName||0==this.dataRelationName.length)return null;return this.report.dictionary.relations.getByName(this.dataRelationName)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"dataRelationName",{get:function(){return this._dataRelationName},set:function(e){this._dataRelationName=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"processAtEnd",{get:function(){return this._processAtEnd},set:function(e){this._processAtEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"priority",{get:function(){return R.Component},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"localizedCategory",{get:function(){return j.get("Report","Components")},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"defaultClientRectangle",{get:function(){return new E(0,0,200,200)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"componentType",{get:function(){return k.Simple},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"localizedName",{get:function(){return j.get("Components","StiChart")},enumerable:!0,configurable:!0}),G.prototype.invokeEvents=function(){try{X.prototype.invokeEvents.call(this),this.invokeProcessChart(this,o.empty)}catch(e){}},G.prototype.onProcessChart=function(e){},G.prototype.invokeProcessChart=function(e,t){try{this.onProcessChart(t)}catch(e){}},G.prototype.series_SeriesAdded=function(e){var t=e,r=t.chart;null!=r.area&&r.area.core.isAcceptableSeries(t.getStiType())||(r.area=L.createObject(t.getDefaultAreaType()),null!=r.seriesLabels&&r.area.core.isAcceptableSeriesLabels(r.seriesLabels.getStiType())||(r.seriesLabels=L.createObject(r.area.getDefaultSeriesLabelsType()))),r.allowApplyStyle&&r.core.applyStyle(r.style)},G.prototype.series_SeriesRemoved=function(e){var t=e,r=t.chart;if(0==r.series.count)return void(r.area.sti_is(p)||(r.area=new y,r.area.core.applyStyle(this.style)));if(null!=r.area)for(var i=r.area.getStiType(),n=0,o=r.series.list;n<o.length;n++){var a=o[n],s=a.getDefaultAreaType();if(s==i)return}r.area=L.createObject(r.series.getByIndex(0).getDefaultAreaType()),this.allowApplyStyle&&this.core.applyStyle(r.style)},Object.defineProperty(G.prototype,"seriesLabelsConditions",{get:function(){return this._seriesLabelsConditions},set:function(e){this._seriesLabelsConditions=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"chartType",{get:function(){return this.area},set:function(e){this.area=e},enumerable:!0,configurable:!0}),G.prototype.createNew=function(){return new G},G.prototype.simplifyValues=function(){var e=0;while(e<this.series.count){var t=this.series[e];if(t.values.count>3e3){var r=A.getShorterListPoints(t);t.values=[],t.arguments=[];for(var i=1;i<r.count;i++)t.values[i]=r[i].x,t.arguments[i]=r[i].y}e++}},Object.defineProperty(G.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"series",{get:function(){return this._series},set:function(e){this._series=e,this._series.chart=this},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"area",{get:function(){return this._area},set:function(e){this._area!=e&&(e.sti_is(C)&&(this._area=e),this._area=e,null!=e?this._area.chart=this:this._area=null)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"table",{get:function(){return this._table},set:function(e){this._table!=e&&(this._table=e,this._table.chart=this)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"style",{get:function(){return this._style},set:function(e){this._style!=e&&(this._style=e,null!=e&&(e.core.chart=this))},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e,e&&this.core.applyStyle(this.style))},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"customStyleName",{get:function(){return this._customStyleName},set:function(e){this._customStyleName=e},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"horSpacing",{get:function(){return this._horSpacing},set:function(e){e>=0&&(this._horSpacing=e)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"vertSpacing",{get:function(){return this._vertSpacing},set:function(e){e>=0&&(this._vertSpacing=e)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"seriesLabels",{get:function(){return this._seriesLabels},set:function(e){this._seriesLabels=e,null!=e&&(this._seriesLabels.chart=this)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"legend",{get:function(){return this._legend},set:function(e){if(null==e)throw"new NullReferenceException()";this._legend=e,this._legend.chart=this},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"title",{get:function(){return this._title},set:function(e){this._title!=e&&(this._title=e,this._title.chart=this)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"strips",{get:function(){return this._strips},set:function(e){this._strips=e,this._strips.chart=this},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"constantLines",{get:function(){return this._constantLines},set:function(e){this._constantLines=e,this._constantLines.chart=this},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"isAnimation",{get:function(){return this._isAnimation},set:function(e){this._isAnimation!=e&&(this._isAnimation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"chartInfo",{get:function(){return this._chartInfo},enumerable:!0,configurable:!0}),G}(X);r.StiChart=G}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return Object.defineProperty(e,"oldChartPercentMode",{get:function(){return e._oldChartPercentMode},set:function(t){e._oldChartPercentMode=t},enumerable:!0,configurable:!0}),e._oldChartPercentMode=!1,e}();e.StiChartOptions=t}(t=e.Chart||(e.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.TimeSpan,i=e.System.Drawing.Point,n=e.System.Drawing.Size,o=function(){function e(){this._updateContext=!1,this._recallEvent=!1,this._recallTime=r.zero,this._isRecalled=!1,this._mousePoint=i.empty,this._dragEnabled=!1,this._dragDelta=n.empty,this._interactionToolTip=null,this._interactionHyperlink=null,this._seriesInteractionData=null}return Object.defineProperty(e.prototype,"updateContext",{get:function(){return this._updateContext},set:function(e){this._updateContext=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"recallEvent",{get:function(){return this._recallEvent},set:function(e){this._recallEvent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"recallTime",{get:function(){return this._recallTime},set:function(e){this._recallTime=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecalled",{get:function(){return this._isRecalled},set:function(e){this._isRecalled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mousePoint",{get:function(){return this._mousePoint},set:function(e){this._mousePoint=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragEnabled",{get:function(){return this._dragEnabled},set:function(e){this._dragEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dragDelta",{get:function(){return this._dragDelta},set:function(e){this._dragDelta=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interactionToolTip",{get:function(){return this._interactionToolTip},set:function(e){this._interactionToolTip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interactionHyperlink",{get:function(){return this._interactionHyperlink},set:function(e){this._interactionHyperlink=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesInteractionData",{get:function(){return this._seriesInteractionData},set:function(e){this._seriesInteractionData=e},enumerable:!0,configurable:!0}),e}();t.StiInteractionOptions=o}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Point,i;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Beyond=2]="Beyond",e[e.Behind=3]="Behind",e[e.Between=4]="Between",e[e.Origin=5]="Origin",e[e.Destination=6]="Destination"}(i||(i={}));var n=function(){function e(){}return e.getPointClassify=function(e,t,n){var o=new r(n.x-t.x,n.y-t.y),a=new r(e.x-t.x,e.y-t.y),s=o.x*a.y-a.x*o.y;if(s>0)return i.Left;if(s<0)return i.Right;if(o.x*a.x<0||o.y*a.y<0)return i.Behind;if(Math.sqrt(o.x*o.x+o.y*o.y)<Math.sqrt(a.x*a.x+a.y*a.y))return i.Beyond;if(t.stiEquals(e))return i.Origin;if(n.stiEquals(e))return i.Destination;return i.Between},e.isPointInTriangle=function(t,r,n,o){return e.getPointClassify(t,r,n)!=i.Left&&e.getPointClassify(t,n,o)!=i.Left&&e.getPointClassify(t,o,r)!=i.Left},e.isPointInPolygon=function(t,r){for(var n=0;n<r.length;n++)if(e.getPointClassify(t,r[n],n+1<r.length?r[n+1]:r[0])==i.Left)return!1;return!0},e.getLineOffsetRectangle=function(e,t,i){var n=Math.atan2(t.y-e.y,t.x-e.x),o=i/2,a=Array.create(r,4,!0);return a[0]=new r(e.x+o*Math.cos(n+.5*Math.PI),e.y+o*Math.sin(n+.5*Math.PI)),a[1]=new r(t.x+o*Math.cos(n+.5*Math.PI),t.y+o*Math.sin(n+.5*Math.PI)),a[2]=new r(t.x+o*Math.cos(n+1.5*Math.PI),t.y+o*Math.sin(n+1.5*Math.PI)),a[3]=new r(e.x+o*Math.cos(n+1.5*Math.PI),e.y+o*Math.sin(n+1.5*Math.PI)),a},e.isLineContainsPoint=function(t,r,i,n){var o=this.getLineOffsetRectangle(t,r,i);return e.isPointInPolygon(n,o)},e}();t.StiPointHelper=n}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Point,i=function(){function e(){}return e.getSquareDistance=function(e,t){var r=e.x-t.x,i=e.y-t.y;return r*r+i*i},e.getSquareSegmentDistance=function(e,t,r){var i=t.x,n=t.y,o=r.x-i,a=r.y-n;if(0!==o||0!==a){var s=((e.x-i)*o+(e.y-n)*a)/(o*o+a*a);s>1?(i=r.x,n=r.y):s>0&&(i+=o*s,n+=a*s)}return o=e.x-i,a=e.y-n,o*o+a*a},e.simplifyRadialDistance=function(t,i){var n=t[0],o=[];o.add(n);for(var a=new r,s=1;s<t.length;s++)a=t[s],e.getSquareDistance(a,n)>i&&(o.add(a),n=a);return n!=a&&o.add(a),o},e.simplifyDouglasPeucker=function(t,r){var i=t.length,n=new Number[i],o=0,a=i-1,s=0,l=[],u=[];n[o]=n[a]=1;while(null!=a){for(var c=0,h=0;h<a;h++){var p=e.getSquareSegmentDistance(t[h],t[o],t[a]);p>c&&(s=h,c=p)}if(c>r){n[s]=1;var f=[o,s,s,a];l.addRange(f)}l.count>0?(a=l[l.count-1],l.removeAt(l.count-1)):a=null,l.count>0?(o=l[l.count-1],l.removeAt(l.count-1)):o=null}for(var m=0;m<i;m++)null!=n[m]&&u.add(t[m]);return u},e.simplify=function(t,r,i){if(null==t||0==t.length)return[];var n=r*r;if(i)return e.simplifyDouglasPeucker(t,n);var o=e.simplifyRadialDistance(t,n);return e.simplifyDouglasPeucker(o,n)},e}();t.StiSimplifyHelper=i}(r=t.Chart||(t.Chart={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));;
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e[e.Outside=0]="Outside",e[e.Overlay=1]="Overlay",e[e.Inside=2]="Inside"}(t=e.StiPlacement||(e.StiPlacement={}));var r;!function(e){e[e.LinearElement=0]="LinearElement",e[e.RadialElement=1]="RadialElement",e[e.All=2]="All"}(r=e.StiGaugeElemenType||(e.StiGaugeElemenType={}));var n;!function(e){e[e.LinearBar=0]="LinearBar",e[e.RadialBar=1]="RadialBar"}(n=e.StiBarRangeListType||(e.StiBarRangeListType={}));var i;!function(e){e[e.Default=0]="Default",e[e.MixedColor=1]="MixedColor"}(i=e.StiLinearRangeColorMode||(e.StiLinearRangeColorMode={}));var o;!function(e){e[e.Default=0]="Default",e[e.Empty=1]="Empty",e[e.RadialScaleQuarterCircleNW=2]="RadialScaleQuarterCircleNW",e[e.RadialScaleQuarterCircleNE=3]="RadialScaleQuarterCircleNE",e[e.RadialScaleQuarterCircleSW=4]="RadialScaleQuarterCircleSW",e[e.RadialScaleQuarterCircleSE=5]="RadialScaleQuarterCircleSE",e[e.RadialScaleHalfCircleN=6]="RadialScaleHalfCircleN",e[e.RadialScaleHalfCircleS=7]="RadialScaleHalfCircleS"}(o=e.StiRadialScaleSkin||(e.StiRadialScaleSkin={}));var a;!function(e){e[e.Diamond=0]="Diamond",e[e.Rectangle=1]="Rectangle",e[e.TriangleTop=2]="TriangleTop",e[e.TriangleBottom=3]="TriangleBottom",e[e.PentagonTop=4]="PentagonTop",e[e.PentagonBottom=5]="PentagonBottom",e[e.Ellipse=6]="Ellipse",e[e.RectangularCalloutTop=7]="RectangularCalloutTop",e[e.RectangularCalloutBottom=8]="RectangularCalloutBottom",e[e.TriangleLeft=9]="TriangleLeft",e[e.TriangleRight=10]="TriangleRight",e[e.PentagonLeft=11]="PentagonLeft",e[e.PentagonRight=12]="PentagonRight",e[e.RectangularCalloutLeft=13]="RectangularCalloutLeft"}(a=e.StiMarkerSkin||(e.StiMarkerSkin={}));var u;!function(e){e[e.Ellipse=0]="Ellipse",e[e.Rectangle=1]="Rectangle",e[e.Diamond=2]="Diamond"}(u=e.StiStateSkin||(e.StiStateSkin={}));var s;!function(e){e[e.Default=0]="Default",e[e.HorizontalThermometer=1]="HorizontalThermometer",e[e.VerticalThermometer=2]="VerticalThermometer"}(s=e.StiLinearBarSkin||(e.StiLinearBarSkin={}));var l;!function(e){e[e.DefaultNeedle=0]="DefaultNeedle",e[e.SpeedometerNeedle=1]="SpeedometerNeedle",e[e.SpeedometerNeedle2=2]="SpeedometerNeedle2",e[e.SimpleNeedle=3]="SimpleNeedle"}(l=e.StiNeedleSkin||(e.StiNeedleSkin={}));var c;!function(e){e[e.Rectangle=0]="Rectangle",e[e.Ellipse=1]="Ellipse",e[e.Diamond=2]="Diamond",e[e.TriangleTop=3]="TriangleTop",e[e.TriangleRight=4]="TriangleRight",e[e.TriangleLeft=5]="TriangleLeft",e[e.TriangleBottom=6]="TriangleBottom"}(c=e.StiTickMarkSkin||(e.StiTickMarkSkin={}));var h;!function(e){e[e.Auto=0]="Auto",e[e.Width=1]="Width",e[e.Height=2]="Height"}(h=e.StiRadiusMode||(e.StiRadiusMode={}));var p;!function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottonLeft=2]="BottonLeft",e[e.BottomRight=3]="BottomRight",e[e.TopCenter=4]="TopCenter",e[e.LeftCenter=5]="LeftCenter",e[e.BottomCenter=6]="BottomCenter",e[e.RightCenter=7]="RightCenter"}(p=e.StiRadialPosition||(e.StiRadialPosition={}));var f;!function(e){e[e.None=0]="None",e[e.Automatic=1]="Automatic",e[e.SurroundIn=2]="SurroundIn",e[e.SurroundOut=3]="SurroundOut"}(f=e.StiLabelRotationMode||(e.StiLabelRotationMode={}));var d;!function(e){e[e.StiStyle25=0]="StiStyle25",e[e.StiStyle26=1]="StiStyle26",e[e.StiStyle27=2]="StiStyle27",e[e.StiStyle28=3]="StiStyle28",e[e.StiStyle29=4]="StiStyle29",e[e.StiStyle30=5]="StiStyle30"}(d=e.StiGaugeStyleId||(e.StiGaugeStyleId={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=e.Base.StiJson,i=function(e){function t(t){var r=e.call(this)||this;return r.barType=t,r}return __extends(t,e),t.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new n,r=0,i=0,o=this.list;i<o.length;i++){var a=o[i];t.addPropertyJObject(r.toString(),a.saveToJsonObject(e)),r++}return t},t.prototype.loadFromJsonObject=function(e){for(var t=function(e){var t=e.value,n=t.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),i=StiOptions.Services.indicatorRanges.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==n});if(null==i)throw String.stiFormat("Type {0} is not found!",n);var o=i.createNew();r.add(o),o.loadFromJsonObject(e.value)},r=this,n=0,i=e.properties();n<i.length;n++){t(i[n])}},t.prototype.clone=function(){for(var e=new t(this.barType),r=0,n=this.list;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getByIndex=function(e){if(e<0||e>=this.list.count)throw"InvalidArgument";return this.list[e]},t.prototype.setByIndex=function(e,t){this.setItemInternal(e,t)},t.prototype.add=function(e){this.addCore(e)},t.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.addCore(n)}},t.prototype.addCore=function(e){e.rangeListType==this.barType&&this.list.add(e)},t.prototype.insert=function(e,t){if(null==t)throw"item";if(e<0||e>this.list.count)throw"InvalidArgument";t.rangeListType==this.barType&&this.list.insert(e,t)},t.prototype.remove=function(e){var t=this.list.indexOf(e);if(-1!=t)return this.removeAt(t),!0;return!1},t.prototype.contains=function(e){return-1!=this.indexOf(e)},t.prototype.copyTo=function(e,t){this.list.copyTo(e,t)},t.prototype.indexOf=function(e){if(null==e)throw"element";return this.list.indexOf(e)},t.prototype.setItemInternal=function(e,t){if(null==t)throw"value";if(e<0||e>=this.list.count)throw"InvalidArgument";t.rangeListType==this.barType&&(this.list[e]=t)},t.prototype.moveUp=function(e){var t=this.list.indexOf(e);if(t>0)return this.list.removeAt(t),t--,this.list.insert(t,e),!0;return!1},t.prototype.moveDown=function(e){var t=this.list.indexOf(e);if(-1!=t&&this.list.count>1&&t<this.list.count-1)return this.list.removeAt(t),t++,this.list.insert(t,e),!0;return!1},t}(r);t.StiBarRangeListCollection=i}(r=t.Collections||(t.Collections={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=e.Base.StiJson,i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new n,r=0,i=0,o=this.list;i<o.length;i++){var a=o[i];t.addPropertyJObject(r.toString(),a.saveToJsonObject(e)),r++}return t},t.prototype.loadFromJsonObject=function(e){for(var t=function(e){var t=e.value,n=t.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),i=StiOptions.Services.customValues.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==n});if(null==i)throw String.stiFormat("Type {0} is not found!",n);var o=i.createNew();r.add(o),o.loadFromJsonObject(e.value)},r=this,n=0,i=e.properties();n<i.length;n++){t(i[n])}},t.prototype.clone=function(){for(var e=new t,r=0,n=this.list;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getByIndex=function(e){if(e<0||e>=this.list.count)throw"InvalidArgument";return this.list[e]},t.prototype.setByIndex=function(e,t){this.setItemInternal(e,t)},t.prototype.add=function(e){this.list.add(e)},t.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.list.add(n)}},t.prototype.insert=function(e,t){if(null==t)throw"item";if(e<0||e>this.list.count)throw"InvalidArgument";this.list.insert(e,t)},t.prototype.remove=function(e){var t=this.list.indexOf(e);if(-1!=t)return this.removeAt(t),!0;return!1},t.prototype.contains=function(e){return-1!=this.indexOf(e)},t.prototype.copyTo=function(e,t){this.list.copyTo(e,t)},t.prototype.indexOf=function(e){if(null==e)throw"element";return this.list.indexOf(e)},t.prototype.setItemInternal=function(e,t){if(null==t)throw"value";if(e<0||e>=this.list.count)throw"InvalidArgument";this.list[e]=t},t.prototype.moveUp=function(e){var t=this.list.indexOf(e);if(t>0)return this.list.removeAt(t),t--,this.list.insert(t,e),!0;return!1},t.prototype.moveDown=function(e){var t=this.list.indexOf(e);if(-1!=t&&this.list.count>1&&t<this.list.count-1)return this.list.removeAt(t),t++,this.list.insert(t,e),!0;return!1},t}(r);t.StiCustomValuesCollection=i}(r=t.Collections||(t.Collections={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Base.Drawing.StiEmptyBrush,i=e.Base.StiJson,o=e.Base.StiJsonReportObjectHelper,a=function(){function e(){this._startValue=0,this._endValue=0,this._brush=new n,this._borderBrush=new n}return e.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyNumber("StartValue",this.startValue,0),t.addPropertyNumber("EndValue",this.endValue,0),t.addPropertyStringNullOfEmpty("Brush",o.Serialize.jBrush(this.brush)),t.addPropertyStringNullOfEmpty("BorderBrush",o.Serialize.jBrush(this.borderBrush)),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"StartValue":this.startValue=n.value.toNumber();break;case"EndValue":this.endValue=n.value.toNumber();break;case"Brush":this.brush=o.Deserialize.brush(n.value);break;case"BorderBrush":this.borderBrush=o.Deserialize.brush(n.value);break}}},Object.defineProperty(e.prototype,"componentId",{get:function(){return t.StiComponentId.StiStateIndicatorFilter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"propName",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"startValue",{get:function(){return this._startValue},set:function(e){this._startValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this._endValue},set:function(e){this._endValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderBrush",{get:function(){return this._borderBrush},set:function(e){this._borderBrush=e},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return String.stiFormat("StartValue={0}, EndValue={1}",this.startValue,this.endValue)},e}();r.StiStateIndicatorFilter=a}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=e.Base.StiJson,i=e.Report.Components.Gauge.StiStateIndicatorFilter,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new n,r=0,i=0,o=this.list;i<o.length;i++){var a=o[i];t.addPropertyJObject(r.toString(),a.saveToJsonObject(e)),r++}return t},t.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t],o=new i;this.add(o),o.loadFromJsonObject(n.value)}},t.prototype.clone=function(){for(var e=new t,r=0,n=this.list;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getByIndex=function(e){if(e<0||e>=this.list.count)throw"InvalidArgument";return this.list[e]},t.prototype.setByIndex=function(e,t){this.setItemInternal(e,t)},t.prototype.add=function(e){this.list.add(e)},t.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.list.add(n)}},t.prototype.insert=function(e,t){if(null==t)throw"item";if(e<0||e>this.list.count)throw"InvalidArgument";this.list.insert(e,t)},t.prototype.remove=function(e){var t=this.list.indexOf(e);if(-1!=t)return this.removeAt(t),!0;return!1},t.prototype.contains=function(e){return-1!=this.indexOf(e)},t.prototype.copyTo=function(e,t){this.list.copyTo(e,t)},t.prototype.indexOf=function(e){if(null==e)throw"element";return this.list.indexOf(e)},t.prototype.setItemInternal=function(e,t){if(null==t)throw"value";if(e<0||e>=this.list.count)throw"InvalidArgument";this.list[e]=t},t.prototype.moveUp=function(e){var t=this.list.indexOf(e);if(t>0)return this.list.removeAt(t),t--,this.list.insert(t,e),!0;return!1},t.prototype.moveDown=function(e){var t=this.list.indexOf(e);if(-1!=t&&this.list.count>1&&t<this.list.count-1)return this.list.removeAt(t),t++,this.list.insert(t,e),!0;return!1},t}(r);t.StiFilterCollection=o}(r=t.Collections||(t.Collections={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.System.Collections.CollectionBase,i=e.Base.StiJson,o=function(e){function r(t){var r=e.call(this)||this;return r.scaleType=t.scaleType,r.scale=t,r}return __extends(r,e),r.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new i,r=0,n=0,o=this.list;n<o.length;n++){var a=o[n];t.addPropertyJObject(r.toString(),a.saveToJsonObject(e)),r++}return t},r.prototype.loadFromJsonObject=function(e){for(var t=function(e){var t=e.value,n=t.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),i=StiOptions.Services.gaugeElements.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==n});if(null==i)throw String.stiFormat("Type {0} is not found!",n);var o=i.createNew();o.scale=i.scale,r.add(o),o.loadFromJsonObject(e.value)},r=this,n=0,i=e.properties();n<i.length;n++){t(i[n])}},r.prototype.clone=function(){for(var e=new r(this.scale),t=0,n=this.list;t<n.length;t++){var i=n[t];e.add(i.clone())}return e},Object.defineProperty(r.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),r.prototype.getByIndex=function(e){if(e<0||e>=this.list.count)throw"InvalidArgument";return this.list[e]},r.prototype.setByIndex=function(e,t){t.scale=this.scale,this.setItemInternal(e,t)},r.prototype.toArray=function(){for(var e=[],t=0,r=this.list;t<r.length;t++){var n=r[t];e.add(n)}return e},r.prototype.addCore=function(e){e.elementType!=this.scaleType&&e.elementType!=t.StiGaugeElemenType.All||(e.scale=this.scale,this.list.add(e))},r.prototype.add=function(e){this.addCore(e)},r.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.addCore(n)}},r.prototype.insert=function(e,t){if(null==t)throw"item";if(e<0||e>this.list.count)throw"InvalidArgument";this.addCore(t)},r.prototype.remove=function(e){var t=this.list.indexOf(e);if(-1!=t)return e.scale=null,this.removeAt(t),!0;return!1},r.prototype.contains=function(e){return-1!=this.indexOf(e)},r.prototype.copyTo=function(e,t){this.list.copyTo(e,t)},r.prototype.indexOf=function(e){if(null==e)throw"element";return this.list.indexOf(e)},r.prototype.setItemInternal=function(e,r){if(null==r)throw"value";if(e<0||e>=this.list.count)throw"InvalidArgument";r.elementType!=this.scaleType&&r.elementType!=t.StiGaugeElemenType.All||(r.scale=this.scale,this.list[e]=r)},r.prototype.moveUp=function(e){var t=this.list.indexOf(e);if(t>0)return this.list.removeAt(t),t--,this.list.insert(t,e),!0;return!1},r.prototype.moveDown=function(e){var t=this.list.indexOf(e);if(-1!=t&&this.list.count>1&&t<this.list.count-1)return this.list.removeAt(t),t++,this.list.insert(t,e),!0;return!1},r}(n);r.StiGaugeElementCollection=o}(r=t.Collections||(t.Collections={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=e.Base.StiJson,i=function(e){function t(t){var r=e.call(this)||this;return r.parent=null,r.parent=t,r}return __extends(t,e),t.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new n,r=0,i=0,o=this.list;i<o.length;i++){var a=o[i];t.addPropertyJObject(r.toString(),a.saveToJsonObject(e)),r++}return t},t.prototype.loadFromJsonObject=function(e){for(var t=function(e){var t=e.value,i=t.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),o=StiOptions.Services.ranges.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==i});if(null==o)throw String.stiFormat("Type {0} is not found!",i);n=o.createNew(),r.add(n),n.loadFromJsonObject(e.value)},r=this,n,i=0,o=e.properties();i<o.length;i++){t(o[i])}},t.prototype.clone=function(){for(var e=new t(this.parent),r=0,n=this.list;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getByIndex=function(e){if(e<0||e>=this.list.count)throw"InvalidArgument";return this.list[e]},t.prototype.setByIndex=function(e,t){this.setItemInternal(e,t)},t.prototype.setParent=function(e){e.rangeList=this.parent},t.prototype.clearParent=function(e){e.rangeList=null},t.prototype.add=function(e){this.addInternal(e)},t.prototype.addRange=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.addInternal(n)}},t.prototype.insert=function(e,t){if(null==t)throw"item";if(e<0||e>this.list.count)throw"InvalidArgument";this.setParent(t),this.list.insert(e,t)},t.prototype.remove=function(e){var t=this.list.indexOf(e);if(-1!=t)return this.clearParent(e),this.removeAt(t),!0;return!1},t.prototype.contains=function(e){return-1!=this.indexOf(e)},t.prototype.copyTo=function(e,t){this.list.copyTo(e,t)},t.prototype.indexOf=function(e){if(null==e)throw"element";return this.list.indexOf(e)},t.prototype.setItemInternal=function(e,t){if(null==t)throw"value";if(e<0||e>=this.list.count)throw"InvalidArgument";this.setParent(t),this.list[e]=t},t.prototype.addInternal=function(e){if(null==e)throw"element";this.setParent(e),this.list.add(e)},t.prototype.moveUp=function(e){var t=this.list.indexOf(e);if(t>0)return this.list.removeAt(t),t--,this.list.insert(t,e),!0;return!1},t.prototype.moveDown=function(e){var t=this.list.indexOf(e);if(-1!=t&&this.list.count>1&&t<this.list.count-1)return this.list.removeAt(t),t++,this.list.insert(t,e),!0;return!1},t}(r);t.StiRangeCollection=i}(r=t.Collections||(t.Collections={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Collections.CollectionBase,n=e.Base.StiJson,i=function(e){function t(t){var r=e.call(this)||this;return r.parent=null,r.parent=t,r}return __extends(t,e),t.prototype.saveToJsonObject=function(e){if(0==this.list.count)return null;for(var t=new n,r=0,i=0,o=this.list;i<o.length;i++){var a=o[i];t.addPropertyJObject(r.toString(),a.saveToJsonObject(e)),r++}return t},t.prototype.loadFromJsonObject=function(e){for(var t=function(e){var t=e.value,n=t.properties().firstOrDefault(function(e){return"Ident"==e.name}).value.toString(),i=StiOptions.Services.gaugeScales.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==n});if(null==i)throw String.stiFormat("Type {0} is not found!",n);var o=i.createNew();o.gauge=i.gauge,r.add(o),o.loadFromJsonObject(e.value)},r=this,n=0,i=e.properties();n<i.length;n++){t(i[n])}},t.prototype.clone=function(){for(var e=new t(this.parent),r=0,n=this.list;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getByIndex=function(e){if(e<0||e>=this.list.count)throw"InvalidArgument";return this.list[e]},t.prototype.setByIndex=function(e,t){this.setItemInternal(e,t)},t.prototype.setParent=function(e){e.gauge=this.parent},t.prototype.clearParent=function(e){e.gauge=null},t.prototype.add=function(e){this.addInternal(e),this.invokeElementsChanged()},t.prototype.addRange=function(e){try{this.addRangeInternal(e)}finally{this.invokeElementsChanged()}},t.prototype.addRangeInternal=function(e){if(null==e)throw"items";for(var t=0,r=e;t<r.length;t++){var n=r[t];this.addInternal(n)}},t.prototype.insert=function(e,t){if(null==t)throw"item";if(e<0||e>this.list.count)throw"InvalidArgument";this.setParent(t),this.list.insert(e,t),this.invokeElementsChanged()},t.prototype.remove=function(e){var t=this.list.indexOf(e);if(-1!=t)return this.clearParent(e),this.removeAt(t),this.invokeElementsChanged(),!0;return!1},t.prototype.onRemoveComplete=function(t,r){e.prototype.onRemoveComplete.call(this,t,r),this.invokeElementsChanged()},t.prototype.onClearComplete=function(){e.prototype.onClearComplete.call(this),this.invokeElementsChanged()},t.prototype.contains=function(e){return-1!=this.indexOf(e)},t.prototype.copyTo=function(e,t){this.list.copyTo(e,t)},t.prototype.indexOf=function(e){if(null==e)throw"element";return this.list.indexOf(e)},t.prototype.setItemInternal=function(e,t){if(null==t)throw"value";if(e<0||e>=this.list.count)throw"InvalidArgument";this.setParent(t),this.list[e]=t},t.prototype.addInternal=function(e){if(null==e)throw"element";this.setParent(e),this.list.add(e)},t.prototype.moveUp=function(e){var t=this.list.indexOf(e);if(t>0)return this.list.removeAt(t),t--,this.list.insert(t,e),!0;return!1},t.prototype.moveDown=function(e){var t=this.list.indexOf(e);if(-1!=t&&this.list.count>1&&t<this.list.count-1)return this.list.removeAt(t),t++,this.list.insert(t,e),!0;return!1},t.prototype.invokeElementsChanged=function(){},t}(r);t.StiScaleCollection=i}(r=t.Collections||(t.Collections={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Events.StiEvent,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.toString=function(){return"GetText"},t}(r);t.StiGetSkipIndicesEvent=n}(r=t.Events||(t.Events={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Events.StiEvent,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.toString=function(){return"GetSkipValues"},t}(r);t.StiGetSkipValuesEvent=n}(r=t.Events||(t.Events={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Events.StiEvent,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.toString=function(){return"GetText"},t}(r);t.StiGetTextEvent=n}(r=t.Events||(t.Events={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.EventHandler,n=e.System.EventArgs;t.StiGetTextEventHandler=new r("sender: Object, e: StiGetTextEventArgs");var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),t}(n);t.StiGetTextEventArgs=i}(r=t.Events||(t.Events={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Events.StiEvent,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.toString=function(){return"GetValue"},t}(r);t.StiGetValueEvent=n}(r=t.Events||(t.Events={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.EventHandler,n=e.System.EventArgs;t.StiGetValueEventHandler=new r("sender: Object, e: StiGetValueEventArgs");var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),t}(n);t.StiGetValueEventArgs=i}(r=t.Events||(t.Events={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(){function e(){}return e.getRoundedPath=function(e,t,r,n,i,o){},e.getArcGeometry=function(e,t,r,n,i){},e.getRadialRangeGeometry=function(e,t,r,n,i,o,a){},e.round=function(e){var t=Math.trunc(e);return e-t>0?t+1:t},e.convertArcToCubicBezier=function(e,t,n,i){var o=n*this.PiDiv180,a=i*this.PiDiv180,u=o+a,s=e.x+t*Math.cos(o),l=e.y+t*Math.sin(o),c=e.x+t*Math.cos(u),h=e.y+t*Math.sin(u),p=t*this.FourDivThree*Math.tan(.25*a),f=Math.atan(p/t),d=t/Math.cos(f);f+=o;var m=e.x+d*Math.cos(f),g=e.y+d*Math.sin(f);f=Math.atan(-p/t),f+=u;var b=e.x+d*Math.cos(f),y=e.y+d*Math.sin(f),v=[];return v.add(new r(s,l)),v.add(new r(m,g)),v.add(new r(b,y)),v.add(new r(c,h)),v},e.convertArcToCubicBezier2=function(e,t,n,i,o){var a=i*this.PiDiv180,u=o*this.PiDiv180,s=a+u,l=e.x+t*Math.cos(a),c=e.y+t*Math.sin(a),h=e.x+n*Math.cos(s),p=e.y+n*Math.sin(s),f=(t-n)/3;t-=f,n+=f;var d=t*this.FourDivThree*Math.tan(.25*u),m=Math.atan(d/t),g=t/Math.cos(m);m+=a;var b=e.x+g*Math.cos(m),y=e.y+g*Math.sin(m);m=Math.atan(-d/t),m+=s;var v=e.x+g*Math.cos(m),S=e.y+g*Math.sin(m),w=[];return w.add(new r(l,c)),w.add(new r(b,y)),w.add(new r(v,S)),w.add(new r(h,p)),w},e.PiDiv180=Math.PI/180,e.FourDivThree=4/3,e}();t.StiDrawingHelper=n}(r=t.Helpers||(t.Helpers={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){this._allowApplyStyle=!0}return e.prototype.applyStyle=function(e){},e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"allowApplyStyle",{get:function(){return this._allowApplyStyle},set:function(e){this._allowApplyStyle=e},enumerable:!0,configurable:!0}),e.prototype.drawElement=function(e){},e}();e.StiElementBase=t}(t=e.Primitives||(e.Primitives={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Components||(e.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Base.StiJson,n=e.Report.Gauge.StiGaugeElemenType,i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.saveToJsonObject=function(e){return new r},t.prototype.loadFromJsonObject=function(e){},Object.defineProperty(t.prototype,"componentId",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PropName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animation",{get:function(){return null},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elementType",{get:function(){return n.LinearElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localizeName",{get:function(){return"GaugeElement"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},set:function(e){this._scale=e},enumerable:!0,configurable:!0}),t.prototype.createNew=function(){return null},t.prototype.prepareGaugeElement=function(){},t}(t.StiElementBase);t.StiGaugeElement=i}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.Events.StiGetSkipValuesEvent,n=e.Report.Gauge.Events.StiGetSkipIndicesEvent,i=e.Report.Events.StiGetValueEventArgs,o=e.System.Collections.Hashtable,a=e.System.Enum,u=e.Report.Expressions.StiExpression,s=function(t){function s(){var i=null!==t&&t.apply(this,arguments)||this;return i._getSkipValuesEvent=new r,i._getSkipIndicesEvent=new n,i._skipValues="",i._skipIndices="",i._placement=e.Report.Gauge.StiPlacement.Outside,i._skipValuesObj=null,i._skipIndicesObj=null,i._offset=0,i._minimumValue=null,i._maximumValue=null,i}return __extends(s,t),s.prototype.saveToJsonObject=function(r){var n=t.prototype.saveToJsonObject.call(this,r);return n.addPropertyJObject("GetSkipValuesEvent",this.getSkipValuesEvent.saveToJsonObject(r)),n.addPropertyJObject("GetSkipIndicesEvent",this.getSkipIndicesEvent.saveToJsonObject(r)),n.addPropertyJObject("SkipValues",new u(this.skipValues).saveToJsonObject(r)),n.addPropertyJObject("SkipIndices",new u(this.skipIndices).saveToJsonObject(r)),n.addPropertyEnum("Placement",e.Report.Gauge.StiPlacement,this.placement),n.addPropertyNumber("Offset",this.offset,0),n.addPropertyNumber("MinimumValue",this.minimumValue,null),n.addPropertyNumber("MaximumValue",this.maximumValue,null),n},s.prototype.loadFromJsonObject=function(i){t.prototype.loadFromJsonObject.call(this,i);for(var o=0,s=i.properties();o<s.length;o++){var l=s[o];switch(l.name){case"GetSkipValuesEvent":var c=new r;c.loadFromJsonObject(l.value),this.getSkipValuesEvent=c;break;case"GetSkipIndicesEvent":var h=new n;h.loadFromJsonObject(l.value),this.getSkipIndicesEvent=h;break;case"SkipValues":var p=new u;p.loadFromJsonObject(l.value),this.skipValues=p.value;break;case"SkipIndices":var f=new u;f.loadFromJsonObject(l.value),this.skipIndices=f.value;break;case"Placement":this.placement=a.parse(e.Report.Gauge.StiPlacement,l.value.toString());break;case"Offset":this.offset=l.value.toNumber();break;case"MinimumValue":this.minimumValue=l.value.toNumber();break;case"MaximumValue":this.maximumValue=l.value.toNumber();break}}},s.prototype.clone=function(){var e=t.prototype.clone.call(this);return null!=this.skipValues?e.skipValues=this.skipValues:e.skipValues=null,null!=this.skipIndices?e.skipIndices=this.skipIndices:e.skipIndices=null,e},s.prototype.onGetSkipValues=function(e){},s.prototype.invokeGetSkipValues=function(e,t){try{this.onGetSkipValues(t)}catch(e){var r=String.stiFormat("Expression in GetSkipValues property of '{0}' series from '{1}' chart can't be evaluated!","StiTickBase",this.scale.gauge.name)}},Object.defineProperty(s.prototype,"getSkipValuesEvent",{get:function(){return this._getSkipValuesEvent},set:function(e){this._getSkipValuesEvent=e},enumerable:!0,configurable:!0}),s.prototype.onGetSkipIndices=function(e){},s.prototype.invokeGetSkipIndices=function(e,t){try{this.onGetSkipIndices(t)}catch(e){var r=String.stiFormat("Expression in GetSkipIndices property of '{0}' series from '{1}' chart can't be evaluated!","StiTickBase",this.scale.gauge.name)}},Object.defineProperty(s.prototype,"getSkipIndicesEvent",{get:function(){return this._getSkipIndicesEvent},set:function(e){this._getSkipIndicesEvent=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"skipValues",{get:function(){return this._skipValues},set:function(e){this._skipValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"skipIndices",{get:function(){return this._skipIndices},set:function(e){this._skipIndices=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"placement",{get:function(){return this._placement},set:function(e){this._placement=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"skipValuesObj",{get:function(){return this._skipValuesObj},set:function(e){this._skipValuesObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"skipIndicesObj",{get:function(){return this._skipIndicesObj},set:function(e){this._skipIndicesObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"minimumValue",{get:function(){return this._minimumValue},set:function(e){this._minimumValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maximumValue",{get:function(){return this._maximumValue},set:function(e){this._maximumValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isSkipMajorValues",{get:function(){return!1},enumerable:!0,configurable:!0}),s.prototype.getPointCollection=function(){return null},s.prototype.getMinorCollections=function(){var e=new o,t=this.isSkipMajorValues?this.getMajorCollections():null,r=this.scale.minorInterval;0==r&&(r=1);var n=this.scale.scaleHelper.actualMinimum,i=this.scale.scaleHelper.actualMaximum,a=this.scale.scaleHelper.totalLength,u=n,s=r,l=0;e.add(u,0);var c=a/100;u+=r;while(u<=i)l+=s,e.add(u,l/c*.01),u+=r;if(null!=t)for(var h=0,p=t.keys;h<p.length;h++){var f=p[h];e.containsKey(f)&&e.remove(f)}return e},s.prototype.getMajorCollections=function(){var e=new o,t=this.scale.majorInterval;0==t&&(t=1);var r=this.scale.scaleHelper.actualMinimum,n=this.scale.scaleHelper.actualMaximum,i=this.scale.scaleHelper.totalLength,a=t,u=r,s=0;e.add(u,0);var l=i/100;u+=t;while(u<=n)s+=a,e.add(u,s/l*.01),u+=t;return e},s.prototype.checkTickValue=function(e,t,r,n){if(null!=t){var i=0;while(i<t.length){if(t[i]==n)return!0;i++}}if(null!=e){var i=0;while(i<e.length){if(e[i]==r)return!0;i++}}return!1},s.prototype.prepareGaugeElement=function(){var t=new i;this.invokeGetSkipValues(this,t),this.skipValuesObj=e.Report.Gauge.Helpers.StiGaugeHelper.getFloatArrayValueFromString(t.value);var r=new i;this.invokeGetSkipIndices(this,r),this.skipIndicesObj=e.Report.Gauge.Helpers.StiGaugeHelper.getFloatArrayValueFromString(r.value)},s.prototype.getOffset=function(e){return null==e?this.offset:e},s.prototype.getPlacement=function(e){return null==e?this.placement:e},s}(t.StiGaugeElement);t.StiTickBase=s}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Base.Drawing.StiSolidBrush,n=e.System.Drawing.Color,i=e.System.Drawing.Font,o=e.Base.StiJsonReportObjectHelper,a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._textFormat=null,t._textBrush=new r(n.black),t._font=new i("Arial",10),t}return __extends(t,e),t.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyStringNullOfEmpty("TextFormat",this.textFormat),r.addPropertyStringNullOfEmpty("TextBrush",o.Serialize.jBrush(this.textBrush)),r.addPropertyStringNullOfEmpty("Font",o.Serialize.font(this.font,"Arial",10)),r},t.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"TextFormat":this.textFormat=i.value.toString();break;case"TextBrush":this.textBrush=o.Deserialize.brush(i.value);break;case"Font":this.font=o.Deserialize.font(i.value.toString(),this.font);break}}},t.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.textBrush=this.textBrush.clone(),t},Object.defineProperty(t.prototype,"textFormat",{get:function(){return this._textFormat},set:function(e){this._textFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBrush",{get:function(){return this._textBrush},set:function(e){this._textBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),t.prototype.getTextForRender=function(e,t){return String.isNullOrEmpty(t)?e.toString():String.stiFormat(t,e)},t.prototype.getTextForRender2=function(e,t){return void 0===t&&(t=this.textFormat),String.isNullOrEmpty(t)?e:String.stiFormat(t,e)},t}(t.StiTickBase);t.StiTickLabelBase=a}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.centerX=function(e){return e.left+e.width/2},e.centerY=function(e){return e.top+e.height/2},e}();e.StiRectangleHelper=t}(t=e.Helpers||(e.Helpers={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Windows.Forms.Orientation,n=e.Report.Gauge.StiPlacement,i=e.Report.Gauge.Helpers.StiRectangleHelper,o=e.Report.Components.Gauge.Primitives.StiTickLabelBase,a=e.Report.Painters.StiGaugeContextPainter,u=e.System.Drawing.Rectangle,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.drawElement=function(e){var t=this.scale;if(null==t)return;var o=t.barGeometry.size,s=t.barGeometry.rectGeometry;if(0==o.width||0==o.height)return;var l=this.getPointCollection();if(0==l.count)return;var c=this.textFormat,h=this.skipValuesObj,p=this.skipIndicesObj,f=this.scale.scaleHelper.actualMinimum,d=this.scale.scaleHelper.actualMaximum,m=t.startWidth<t.endWidth,g,b;t.orientation==r.Horizontal?(g=s.width,b=o.height):(g=s.height,b=o.width);var y=t.barGeometry.getRestToLenght();b*=this.offset;for(var v=-1,S=0,w=l.keys;S<w.length;S++){var k=w[S];if(v++,k<f)continue;if(k>d)continue;if(this.checkTickValue(h,p,k,v))continue;if(null!=this.minimumValue&&k<this.minimumValue)continue;if(null!=this.maximumValue&&k>this.maximumValue)continue;var G=this.getTextForRender(k,c),O=a.changeFontSize(this.font,e.zoom),P=e.measureString(G,O),B=l.get(k)*g,j=void 0,R=void 0;if(t.orientation==r.Horizontal)if(R=t.isReversed?s.right-B-P.width/2:s.left+B-P.width/2,this.placement==n.Overlay)j=i.centerY(s)-P.height/2-b;else{var _=m?(1-l.get(k))*y:y*l.get(k);j=this.placement==n.Outside?s.top-P.height-b+_:s.bottom+b-_}else if(j=t.isReversed?s.top+B-P.height/2:s.bottom-B-P.height/2,this.placement==n.Overlay)R=i.centerX(s)-P.width/2-b;else{var _=m?(1-l.get(k))*y:y*l.get(k);R=this.placement==n.Outside?s.left-P.width-3-b+_:s.right+b+3-_}e.addTextGaugeGeom(G,O,this.textBrush,new u(R,j,P.width,P.height),null)}},t}(o);t.StiLinearTickLabelBase=s}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiLinearTickLabelBase,i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearTickLabelMajor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.textBrush=e.core.tickLabelMajorTextBrush,this.font=e.core.tickLabelMajorFont)},Object.defineProperty(r.prototype,"localizeName",{get:function(){return"LinearTickLabelMajor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMajorCollections()},r}(n);r.StiLinearTickLabelMajor=i}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.prototype.draw=function(e,t,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null)},e}();e.StiGaugeElementSkin=t}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.Report.Painters.StiGaugeContextPainter,o=e.System.Drawing.StringFormat,a=e.System.Drawing.StringAlignment,u=e.System.Drawing.StringFormatFlags,s=e.Report.Gauge.IStiGaugeMarker,l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.addLines=function(e,t,r,l,c,h,p,f){var d=new n(l,r[0],t.brush,t.borderBrush,t.borderWidth);d.addGraphicsPathLinesGaugeGeom(r),d.addGraphicsPathCloseFigureGaugeGeom(),null!=c&&null!=h?(e.addPushMatrixGaugeGeom(c,h),e.addGraphicsPathGaugeGeom(d),e.addPopTranformGaugeGeom()):e.addGraphicsPathGaugeGeom(d),null!=f&&(d.animation=f);var m=t.sti_as(s);if(null!=m&&m.showValue){null==p&&(p=new o,p.alignment=a.Center,p.lineAlignment=a.Center,p.formatFlags=u.NoWrap);var g=i.changeFontSize(m.font,e.zoom);e.addTextGaugeGeom(String.stiFormat(m.format,t.valueObj),g,m.textBrush,l,p)}},t}(t.StiGaugeElementSkin);r.StiMarkerBaseSkin=l}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=[];l[0]=new r(o.right,o.top),l[1]=new r(o.left,o.top+o.height/2),l[2]=new r(o.right,o.bottom);var c=new n;c.alignment=i.Far,c.lineAlignment=i.Center,this.addLines(e,s,l,o,a,u,c,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker10Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=[];l[0]=new r(o.left,o.top),l[1]=new r(o.right,o.top+o.height/2),l[2]=new r(o.left,o.bottom);var c=new n;c.alignment=i.Near,c.lineAlignment=i.Center,this.addLines(e,s,l,o,a,u,c,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker11Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=o.bottom,c=o.right,h=o.left+o.width/3,p=o.top+o.height/2,f=[];f[0]=new r(c,o.top),f[1]=new r(c,l),f[2]=new r(h,l),f[3]=new r(o.left,p),f[4]=new r(h,o.top);var d=new n;d.alignment=i.Far,d.lineAlignment=i.Center,this.addLines(e,s,f,o,a,u,d,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker12Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=o.bottom,c=o.right,h=c-o.width/3,p=o.top+o.height/2,f=[];f[0]=new r(o.left,o.top),f[1]=new r(h,o.top),f[2]=new r(c,p),f[3]=new r(h,l),f[4]=new r(o.left,l);var d=new n;d.alignment=i.Near,d.lineAlignment=i.Center,this.addLines(e,s,f,o,a,u,d,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker13Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,n,i,o){var a=t,u=n.bottom,s=n.right,l=n.height/3,c=n.left+n.width/5,h=[];h[0]=new r(c,u),h[1]=new r(c,u-l),h[2]=new r(n.left,n.top+n.height/2),h[3]=new r(c,n.top+l),h[4]=new r(c,n.top),h[5]=new r(s,n.top),h[6]=new r(s,u),this.addLines(e,a,h,n,i,o,null,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker14Skin=n}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,n,i,o){var a=t,u=n.bottom,s=n.right,l=n.height/3,c=n.right-n.width/5,h=[];h[0]=new r(n.left,n.top),h[1]=new r(c,n.top),h[2]=new r(c,n.top+l),h[3]=new r(s,n.top+n.height/2),h[4]=new r(c,u-l),h[5]=new r(c,u),h[6]=new r(n.left,u),this.addLines(e,a,h,n,i,o,null,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker15Skin=n}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,n,i,o){var a=t,u=n.left+n.width/2,s=n.top+n.height/2,l=[];l[0]=new r(n.left,s),l[1]=new r(u,n.top),l[2]=new r(n.right,s),l[3]=new r(u,n.bottom),this.addLines(e,a,l,n,i,o,null,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker1Skin=n}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,n,i,o){var a=t,u=n.bottom,s=n.right,l=[];l[0]=new r(n.left,n.top),l[1]=new r(s,n.top),l[2]=new r(s,u),l[3]=new r(n.left,u),this.addLines(e,a,l,n,i,o,null,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker2Skin=n}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=[];l[0]=new r(o.left,o.bottom),l[1]=new r(o.left+o.width/2,o.top),l[2]=new r(o.right,o.bottom);var c=new n;c.alignment=i.Center,c.lineAlignment=i.Far,this.addLines(e,s,l,o,a,u,c,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker3Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=new r[3];l[0]=new r(o.left,o.top),l[1]=new r(o.left+o.width/2,o.bottom),l[2]=new r(o.right,o.top);var c=new n;c.alignment=i.Center,c.lineAlignment=i.Near,this.addLines(e,s,l,o,a,u,c,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker4Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=o.bottom,c=o.right,h=o.top+o.height/3,p=o.left+o.width/2,f=[];f[0]=new r(o.left,l),f[1]=new r(o.left,h),f[2]=new r(p,o.top),f[3]=new r(c,h),f[4]=new r(c,l);var d=new n;d.alignment=i.Center,d.lineAlignment=i.Far,this.addLines(e,s,f,o,a,u,d,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker5Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,a,u){var s=t,l=o.bottom-o.height/3,c=o.left+o.width/2,h=[];h[0]=new r(o.left,o.top),h[1]=new r(o.right,o.top),h[2]=new r(o.right,l),h[3]=new r(c,o.bottom),h[4]=new r(o.left,l);var p=new n;p.alignment=i.Center,p.lineAlignment=i.Near,this.addLines(e,s,h,o,a,u,p,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker6Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.StringFormat,n=e.System.Drawing.StringAlignment,i=e.System.Drawing.StringFormatFlags,o=e.Report.Painters.StiGaugeContextPainter,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,a,u,s){var l=t;if(null!=u&&null!=s?(e.addPushMatrixGaugeGeom(u,s),e.addEllipseGaugeGeom(a,l.brush,l.borderBrush,l.borderWidth),e.addPopTranformGaugeGeom()):e.addEllipseGaugeGeom(a,l.brush,l.borderBrush,l.borderWidth),l.showValue){var c=new r;c.alignment=n.Center,c.lineAlignment=n.Center,c.formatFlags=i.NoWrap;var h=o.changeFontSize(l.font,e.zoom);e.addTextGaugeGeom(String.stiFormat(l.format,l.valueObj),h,l.textBrush,a,c)}},t}(t.StiMarkerBaseSkin);t.StiMarker7Skin=a}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,n,i,o){var a=t,u=n.bottom,s=n.right,l=n.top+n.height/5,c=n.width/3,h=[];h[0]=new r(n.left,l),h[1]=new r(n.left+c,l),h[2]=new r(n.left+n.width/2,n.top),h[3]=new r(s-c,l),h[4]=new r(s,l),h[5]=new r(s,u),h[6]=new r(n.left,u),this.addLines(e,a,h,n,i,o,null,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker8Skin=n}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,n,i,o){var a=t,u=n.bottom,s=n.right,l=u-n.height/5,c=n.width/3,h=[];h[0]=new r(n.left,n.top),h[1]=new r(s,n.top),h[2]=new r(s,l),h[3]=new r(s-c,l),h[4]=new r(n.left+n.width/2,u),h[5]=new r(n.left+c,l),h[6]=new r(n.left,l),this.addLines(e,a,h,n,i,o,null,t.animation)},t}(t.StiMarkerBaseSkin);t.StiMarker9Skin=n}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,n=e.System.Drawing.Rectangle,i=e.System.Drawing.Point,o=e.Report.Gauge.StiGaugeElementSkin,a=e.System.Drawing.StringFormatFlags,u=e.System.Drawing.StringFormat,s=e.System.Drawing.StringAlignment,l=e.System.Drawing.Color,c=e.Base.Drawing.StiGradientBrush,h=e.Base.Drawing.StiEmptyBrush,p=e.Base.Drawing.StiSolidBrush,f=e.Report.Painters.StiGaugeContextPainter,d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,d,m){var g=t,b=Math.min(o.width,o.height),y=b/4,v=.6*o.height,S=new n(o.left+y,o.top+.2*o.height,o.width-y,v),w=[];w[0]=S.location,w[1]=new i(S.right,S.top+S.height/2),w[2]=new i(S.left,S.bottom);var k=new r(S,w[0],new c(l.fromArgb(255,248,210),l.fromArgb(0,255,248,210),0),new h,0);k.addGraphicsPathLinesGaugeGeom(w),k.addGraphicsPathCloseFigureGaugeGeom(),v=.4*o.height;var G=.4*v,O=new n(o.left+y,o.top+.3*o.height,o.width-y,v),P=[];P[0]=O.location,P[1]=new i(O.right,O.top+G),P[2]=new i(O.right,O.bottom-G),P[3]=new i(O.left,O.bottom);var B=new r(O,P[0],new c(l.fromArgb(34,34,34),l.fromArgb(255,210,90),0),new h,0);B.addGraphicsPathLinesGaugeGeom(P),B.addGraphicsPathCloseFigureGaugeGeom();var j=null!=d&&null!=m,R=new n(o.x,o.y,b,b);if(j&&e.addPushMatrixGaugeGeom(d,m),null!=t.animation&&(k.animation=B.animation=t.animation),e.addGraphicsPathGaugeGeom(k),e.addGraphicsPathGaugeGeom(B),e.addEllipseGaugeGeom(R,new c(l.fromArgb(120,120,120),l.fromArgb(132,117,77),0),new p(l.fromArgb(228,188,83)),1),j&&e.addPopTranformGaugeGeom(),g.showValue){var _=new u;_.alignment=s.Center,_.lineAlignment=s.Center,_.formatFlags=a.NoWrap;var x=f.changeFontSize(g.font,e.zoom);e.addTextGaugeGeom(String.stiFormat(g.format,g.valueObj),x,g.textBrush,R,_)}},t}(o);t.StiNeedleIndicator1Skin=d}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,n=e.Report.Painters.StiGaugeContextPainter,i=e.System.Drawing.Rectangle,o=e.System.Drawing.Point,a=e.Report.Gauge.StiGaugeElementSkin,u=e.System.Drawing.StringFormatFlags,s=e.System.Drawing.StringFormat,l=e.System.Drawing.StringAlignment,c=e.System.Drawing.Color,h=e.Base.Drawing.StiEmptyBrush,p=e.Base.Drawing.StiSolidBrush,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,a,f,d){var m=t,g=Math.min(a.width,a.height),b=g/3,y=new i(a.left+1,a.top+(a.height-b)/2,a.width-1,b),v=new r(y,y.location,m.brush,m.borderBrush,m.borderWidth);b=g/7;var S=[];S[0]=y.location,S[1]=new o(y.right,y.top+(y.height-b)/2),S[2]=new o(y.right,y.bottom-(y.height-b)/2),S[3]=new o(y.left,y.bottom),S[4]=S[0],v.addGraphicsPathLinesGaugeGeom(S);var w=null!=f&&null!=d;w&&e.addPushMatrixGaugeGeom(f,d),null!=t.animation&&(v.animation=t.animation),e.addGraphicsPathGaugeGeom(v);var k=new i(a.x,a.y,g,g),G=new p(c.fromArgb(175,175,175));e.addEllipseGaugeGeom(k,G,m.borderBrush,1.5);var O=.15*g,P=new i(k.x+O,k.top+O,g-2*O,g-2*O);if(e.addEllipseGaugeGeom(P,new h,new p(c.white),2),w&&e.addPopTranformGaugeGeom(),m.showValue){var B=new s;B.alignment=l.Center,B.lineAlignment=l.Center,B.formatFlags=u.NoWrap;var j=n.changeFontSize(m.font,e.zoom);e.addTextGaugeGeom(String.stiFormat(m.format,m.valueObj),j,m.textBrush,k,B)}},t}(a);t.StiNeedleIndicator2Skin=f}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,n=e.System.Drawing.Rectangle,i=e.System.Drawing.Point,o=e.Report.Gauge.StiGaugeElementSkin,a=e.System.Drawing.StringFormatFlags,u=e.System.Drawing.StringFormat,s=e.System.Drawing.StringAlignment,l=e.System.Drawing.Color,c=e.Base.Drawing.StiGradientBrush,h=e.Base.Drawing.StiSolidBrush,p=e.Report.Painters.StiGaugeContextPainter,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,f,d){var m=t,g=Math.min(o.width,o.height),b=.6*g,y=new n(o.left+g/2,o.top+(o.height-b)/2,o.width-g/2,b),v=new r(y,y.location,m.brush,m.borderBrush,m.borderWidth),S=.111*y.width,w=.15*y.height,k=[];k[0]=y.location,k[1]=new i(y.right-S,y.top+w),k[2]=new i(y.right,y.top+y.height/2),k[3]=new i(y.right-S,y.bottom-w),k[4]=new i(y.left,y.bottom),k[5]=k[0],v.addGraphicsPathLinesGaugeGeom(k);var G=null!=f&&null!=d;G&&e.addPushMatrixGaugeGeom(f,d),e.addGraphicsPathGaugeGeom(v);var O=new n(o.x,o.y,g,g),P=new c(l.fromArgb(230,229,229),l.fromArgb(80,80,80),45),B=new h(l.fromArgb(98,94,90));if(e.addEllipseGaugeGeom(O,P,B,1.5),G&&e.addPopTranformGaugeGeom(),null!=t.animation&&(v.animation=t.animation),m.showValue){var j=new u;j.alignment=s.Center,j.lineAlignment=s.Center,j.formatFlags=a.NoWrap;var R=p.changeFontSize(m.font,e.zoom);e.addTextGaugeGeom(String.stiFormat(m.format,m.valueObj),R,m.textBrush,O,j)}},t}(o);t.StiNeedleIndicator3Skin=f}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,n=e.Report.Painters.StiGaugeContextPainter,i=e.Report.Engine.StiParser.StiParser,o=e.System.Drawing.Rectangle,a=e.System.Drawing.Point,u=e.Report.Gauge.StiGaugeElementSkin,s=e.System.Drawing.StringFormatFlags,l=e.System.Drawing.StringFormat,c=e.System.Drawing.StringAlignment,h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,u,h,p){var f=t,d=Math.min(u.width,u.height),m=.6*d,g=new a(u.location.x+d/2-f.offsetNeedle*u.width,u.location.y+u.height/2-d/2),b=new o(g.x,u.y,u.width-d/2,d),y=[];y[0]=new a(b.x,b.y+b.height/2-b.height*f.endWidth/2),y[1]=new a(b.right,b.y+b.height/2-b.height*f.startWidth/2),y[2]=new a(b.right,b.y+b.height/2+b.height*f.startWidth/2),y[3]=new a(b.x,b.y+b.height/2+b.height*f.endWidth/2),y[4]=y[0];var v=new r(b,y[0],f.brush,f.borderBrush,f.borderWidth);v.addGraphicsPathLinesGaugeGeom(y);var S=null!=h&&null!=p;S&&e.addPushMatrixGaugeGeom(h,p),e.addGraphicsPathGaugeGeom(v);var w=new a(u.location.x,u.location.y+u.height/2-d/2),k=new o(w.x,w.y,d,d);if(e.addEllipseGaugeGeom(k,f.capBrush,f.capBorderBrush,f.capBorderWidth),S&&e.addPopTranformGaugeGeom(),null!=t.animation&&(v.animation=t.animation),f.showValue){var G=new l;G.alignment=c.Center,G.lineAlignment=c.Center,G.formatFlags=s.NoWrap;var O=n.changeFontSize(f.font,e.zoom),P=e.gauge.report.isDesigning?i.parseTextValue("{"+f.value+"}",e.gauge).toNumber():f.valueObj;e.addTextGaugeGeom(String.stiFormat(f.format,P),O,f.textBrush,k,G)}},t}(u);t.StiNeedleIndicator4Skin=h}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.StringFormatFlags,n=e.System.Drawing.StringFormat,i=e.System.Drawing.StringAlignment,o=e.Report.Gauge.StiGaugeElementSkin,a=e.Report.Painters.StiGaugeContextPainter,u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,o,u,s){var l=t;if(e.addEllipseGaugeGeom(o,l.brush,l.borderBrush,l.borderWidth),l.showValue){var c=new n;c.alignment=i.Center,c.lineAlignment=i.Center,c.formatFlags=r.NoWrap;var h=a.changeFontSize(l.font,e.zoom);e.addTextGaugeGeom(String.stiFormat(l.format,l.valueObj),h,l.textBrush,o,c)}},t}(o);t.StiState1Skin=u}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Painters.StiGaugeContextPainter,n=e.System.Drawing.StringFormatFlags,i=e.System.Drawing.StringFormat,o=e.System.Drawing.StringAlignment,a=e.Report.Gauge.StiGaugeElementSkin,u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,a,u,s){var l=t;if(e.addRectangleGaugeGeom(a,l.brush,l.borderBrush,l.borderWidth),l.showValue){var c=new i;c.alignment=o.Center,c.lineAlignment=o.Center,c.formatFlags=n.NoWrap;var h=r.changeFontSize(l.font,e.zoom);e.addTextGaugeGeom(String.stiFormat(l.format,l.valueObj),h,l.textBrush,a,c)}},t}(a);t.StiState2Skin=u}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Point,n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,n,i,o){var a=t,u=n.left+n.width/2,s=n.top+n.height/2,l=[];l[0]=new r(n.left,s),l[1]=new r(u,n.top),l[2]=new r(n.right,s),l[3]=new r(u,n.bottom),this.addLines(e,a,l,n,i,o,null,t.animation)},t}(t.StiMarkerBaseSkin);t.StiState3Skin=n}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,r,n,i){var o=t;e.addRectangleGaugeGeom(r,o.brush,o.borderBrush,o.borderWidth)},t}(e.StiGaugeElementSkin);t.StiMark1Skin=r}(t=e.Skins||(e.Skins={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(t){var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,r,n,i){var o=t;e.addEllipseGaugeGeom(r,o.brush,o.borderBrush,o.borderWidth)},t}(e.StiGaugeElementSkin);t.StiMark2Skin=r}(t=e.Skins||(e.Skins={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.System.Drawing.Point,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,r,o,a){var u=t,s=r.left+r.width/2,l=r.top+r.height/2,c=[];c[0]=new i(r.left,l),c[1]=new i(s,r.top),c[2]=new i(r.right,l),c[3]=new i(s,r.bottom);var h=new n(r,c[0],u.brush,u.borderBrush,u.borderWidth);h.addGraphicsPathLinesGaugeGeom(c),h.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(h)},t}(t.StiGaugeElementSkin);r.StiMark3Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.System.Drawing.Point,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,r,o,a){var u=t,s=[],l=r.bottom;s[0]=new i(r.left,l),s[1]=new i(r.right,l),s[2]=new i(r.left+r.width/2,r.top);var c=new n(r,s[0],u.brush,u.borderBrush,u.borderWidth);c.addGraphicsPathLinesGaugeGeom(s),c.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(c)},t}(t.StiGaugeElementSkin);r.StiMark4Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.System.Drawing.Point,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,r,o,a){var u=t,s=[];s[0]=new i(r.left,r.top),s[1]=new i(r.right,r.top+r.height/2),s[2]=new i(r.left,r.bottom);var l=new n(r,s[0],u.brush,u.borderBrush,u.borderWidth);l.addGraphicsPathLinesGaugeGeom(s),l.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(l)},t}(t.StiGaugeElementSkin);r.StiMark5Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.System.Drawing.Point,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,r,o,a){var u=t,s=[],l=r.top+r.height/2;s[0]=new i(r.right,r.top),s[1]=new i(r.left,l),s[2]=new i(r.right,r.bottom);var c=new n(r,s[0],u.brush,u.borderBrush,u.borderWidth);c.addGraphicsPathLinesGaugeGeom(s),c.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(c)},t}(t.StiGaugeElementSkin);r.StiMark6Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.System.Drawing.Point,o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.draw=function(e,t,r,o,a){var u=t,s=[],l=r.top+r.height/2;s[0]=new i(r.right,r.top),s[1]=new i(r.left,l),s[2]=new i(r.right,r.bottom);var c=new n(r,s[0],u.brush,u.borderBrush,u.borderWidth);c.addGraphicsPathLinesGaugeGeom(s),c.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(c)},t}(t.StiGaugeElementSkin);r.StiMark7Skin=o}(r=t.Skins||(t.Skins={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.Skins.StiMarker1Skin,i=e.Report.Gauge.Skins.StiMarker2Skin,o=e.Report.Gauge.Skins.StiMarker3Skin,a=e.Report.Gauge.Skins.StiMarker4Skin,u=e.Report.Gauge.Skins.StiMarker5Skin,s=e.Report.Gauge.Skins.StiMarker6Skin,l=e.Report.Gauge.Skins.StiMarker7Skin,c=e.Report.Gauge.Skins.StiMarker8Skin,h=e.Report.Gauge.Skins.StiMarker9Skin,p=e.Report.Gauge.Skins.StiMarker10Skin,f=e.Report.Gauge.Skins.StiMarker11Skin,d=e.Report.Gauge.Skins.StiMarker12Skin,m=e.Report.Gauge.Skins.StiMarker13Skin,g=e.Report.Gauge.Skins.StiMarker14Skin,b=e.Report.Gauge.Skins.StiMark1Skin,y=e.Report.Gauge.Skins.StiMark2Skin,v=e.Report.Gauge.Skins.StiMark3Skin,S=e.Report.Gauge.Skins.StiMark4Skin,w=e.Report.Gauge.Skins.StiMark5Skin,k=e.Report.Gauge.Skins.StiMark6Skin,G=e.Report.Gauge.Skins.StiMark7Skin,O=e.Report.Gauge.Skins.StiState1Skin,P=e.Report.Gauge.Skins.StiState2Skin,B=e.Report.Gauge.Skins.StiState3Skin,j=e.Report.Gauge.Skins.StiNeedleIndicator1Skin,R=e.Report.Gauge.Skins.StiNeedleIndicator2Skin,_=e.Report.Gauge.Skins.StiNeedleIndicator3Skin,x=e.Report.Gauge.Skins.StiNeedleIndicator4Skin,W=function(){function e(){}return e.getMarkerSkin=function(e){switch(e){case t.StiMarkerSkin.Diamond:return new n;case t.StiMarkerSkin.Rectangle:return new i;case t.StiMarkerSkin.TriangleTop:return new o;case t.StiMarkerSkin.TriangleBottom:return new a;case t.StiMarkerSkin.PentagonTop:return new u;case t.StiMarkerSkin.PentagonBottom:return new s;case t.StiMarkerSkin.Ellipse:return new l;case t.StiMarkerSkin.RectangularCalloutTop:return new c;case t.StiMarkerSkin.RectangularCalloutBottom:return new h;case t.StiMarkerSkin.TriangleLeft:return new p;case t.StiMarkerSkin.TriangleRight:return new f;case t.StiMarkerSkin.PentagonLeft:return new d;case t.StiMarkerSkin.PentagonRight:return new m;case t.StiMarkerSkin.RectangularCalloutLeft:return new g;default:return null}},e.getTickMarkSkin=function(e){switch(e){case t.StiTickMarkSkin.Rectangle:return new b;case t.StiTickMarkSkin.Ellipse:return new y;case t.StiTickMarkSkin.Diamond:return new v;case t.StiTickMarkSkin.TriangleTop:return new S;case t.StiTickMarkSkin.TriangleRight:return new w;case t.StiTickMarkSkin.TriangleLeft:return new k;case t.StiTickMarkSkin.TriangleBottom:return new G;default:return null}},e.getStateIndicatorSkin=function(e){switch(e){case t.StiStateSkin.Ellipse:return new O;case t.StiStateSkin.Rectangle:return new P;case t.StiStateSkin.Diamond:return new B;default:return null}},e.getNeedleIndicatorSkin=function(e){switch(e){case t.StiNeedleSkin.DefaultNeedle:return new j;case t.StiNeedleSkin.SpeedometerNeedle:return new R;case t.StiNeedleSkin.SpeedometerNeedle2:return new _;case t.StiNeedleSkin.SimpleNeedle:return new x;default:return null}},e}();r.StiGaugeSkinHelper=W}(r=t.Helpers||(t.Helpers={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.Helpers.StiGaugeSkinHelper,n=e.System.Drawing.Color,i=e.Base.Drawing.StiSolidBrush,o=e.System.Enum,a=e.Report.Components.Gauge.Primitives.StiTickBase,u=e.Base.StiJsonReportObjectHelper,s=function(t){function a(){var r=null!==t&&t.apply(this,arguments)||this;return r._relativeHeight=.1,r._relativeWidth=.1,r._skin=e.Report.Gauge.StiTickMarkSkin.Rectangle,r._brush=new i(n.white),r._borderBrush=new i(n.fromArgb(89,87,87)),r._borderWidth=1,r}return __extends(a,t),a.prototype.saveToJsonObject=function(r){var n=t.prototype.saveToJsonObject.call(this,r);return n.addPropertyNumber("RelativeHeight",this.relativeHeight,.1),n.addPropertyNumber("RelativeWidth",this.relativeWidth,.1),n.addPropertyEnum("Skin",e.Report.Gauge.StiTickMarkSkin,this.skin),n.addPropertyStringNullOfEmpty("Brush",u.Serialize.jBrush(this.brush)),n.addPropertyStringNullOfEmpty("BorderBrush",u.Serialize.jBrush(this.borderBrush)),n.addPropertyNumber("BorderWidth",this.borderWidth,1),n},a.prototype.loadFromJsonObject=function(r){t.prototype.loadFromJsonObject.call(this,r);for(var n=0,i=r.properties();n<i.length;n++){var a=i[n];switch(a.name){case"RelativeHeight":this.relativeHeight=a.value.toNumber();break;case"RelativeWidth":this.relativeWidth=a.value.toNumber();break;case"Skin":this.skin=o.parse(e.Report.Gauge.StiTickMarkSkin,a.value.toString());break;case"Brush":this.brush=u.Deserialize.brush(a.value);break;case"BorderBrush":this.borderBrush=u.Deserialize.brush(a.value);break;case"BorderWidth":this.borderWidth=a.value.toNumber();break}}},a.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.brush=this.brush.clone(),e.borderBrush=this.borderBrush.clone(),e},Object.defineProperty(a.prototype,"relativeHeight",{get:function(){return this._relativeHeight},set:function(e){this._relativeHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"relativeWidth",{get:function(){return this._relativeWidth},set:function(e){this._relativeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"customSkin",{get:function(){return this._customSkin},set:function(e){this._customSkin=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"borderBrush",{get:function(){return this._borderBrush},set:function(e){this._borderBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"borderWidth",{get:function(){return this._borderWidth},set:function(e){this._borderWidth=e},enumerable:!0,configurable:!0}),a.prototype.getActualSkin=function(){return null!=this.customSkin?this.customSkin:r.getTickMarkSkin(this.skin)},a.prototype.getRelativeWidth=function(e){return null==e?this.relativeWidth:e},a.prototype.getRelativeHeight=function(e){return null==e?this.relativeHeight:e},a}(a);t.StiTickMarkBase=s}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.StiPlacement,n=e.Report.Gauge.StiGaugeElemenType,i=e.System.Drawing.Rectangle,o=e.Report.Components.Gauge.Primitives.StiTickMarkBase,a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._offsetAngle=0,t}return __extends(t,e),t.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyNumber("OffsetAngle",this.offsetAngle,0),r},t.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"OffsetAngle":this.offsetAngle=i.value.toNumber();break}}},Object.defineProperty(t.prototype,"offsetAngle",{get:function(){return this._offsetAngle},set:function(e){this._offsetAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elementType",{get:function(){return n.RadialElement},enumerable:!0,configurable:!0}),t.prototype.drawElement=function(e){var t=this.scale;if(null==t)return;var n=this.scale.barGeometry.rectGeometry;if(n.width<=0||n.height<=0)return;var o=this.getPointCollection();if(0==o.count)return;var a=this.skipValuesObj,u=this.skipIndicesObj,s=this.getActualSkin(),l=t.barGeometry.center,c=t.getSweepAngle(),h=t.startAngle,p=this.scale.scaleHelper.actualMinimum,f=this.scale.scaleHelper.actualMaximum,d=this.scale.barGeometry.diameter,m=this.scale.barGeometry.radius,g=this.scale.scaleHelper.minWidth,b=this.scale.scaleHelper.maxWidth,y;b*=this.scale.barGeometry.rectGeometry.width,g*=this.scale.barGeometry.rectGeometry.width,y=b-g,m=this.placement==r.Outside?m*(1+this.offset):m*(1-this.offset);for(var v=d*this.relativeWidth,S=d*this.relativeHeight,w=-1,k=0,G=o.keys;k<G.length;k++){var O=G[k];if(w++,O<p)continue;if(O>f)continue;if(this.checkTickValue(a,u,O,w))continue;if(null!=this.minimumValue&&O<this.minimumValue)continue;if(null!=this.maximumValue&&O>this.maximumValue)continue;var P=this.scale.isReversed?h+c-o.get(O)*c+this.offsetAngle:h+o.get(O)*c+this.offsetAngle,B=0;B=this.placement==r.Outside?m:this.placement==r.Overlay?this.scale.isUp?m-(g+y*o.get(O)+v)/2:m-(b-y*o.get(O)+v)/2:this.scale.isUp?m-g-y*o.get(O)-v:m-b+y*o.get(O)-v;var j=new i(l.x+B,l.y,v,S);e.addPushMatrixGaugeGeom(P,l),s.draw(e,this,j),e.addPopTranformGaugeGeom()}},t}(o);t.StiRadialTickMarkBase=a}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Engine.StiParser.StiParser,i=e.Report.Components.Gauge.Primitives.StiRadialTickMarkBase,o=e.Report.Events.StiGetValueEvent,a=e.Report.Expressions.StiExpression,u=e.Report.Gauge.Collections.StiCustomValuesCollection,s=e.Report.Events.StiGetValueEventArgs,l=e.Report.Gauge.StiGaugeElemenType,c=e.System.Drawing.Rectangle,h=e.Report.Gauge.StiPlacement,p=function(i){function p(){var e=null!==i&&i.apply(this,arguments)||this;return e._valueObj=0,e._values=new u,e._getValueEvent=new o,e._value="",e}return __extends(p,i),p.prototype.saveToJsonObject=function(e){var t=i.prototype.saveToJsonObject.call(this,e);return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyJObject("GetValueEvent",this.getValueEvent.saveToJsonObject(e)),t.addPropertyJObject("Value",new a(this.value).saveToJsonObject(e)),t.addPropertyJObject("Values",this.values.saveToJsonObject(e)),t},p.prototype.loadFromJsonObject=function(e){i.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"GetSkipValuesEvent":var u=new o;u.loadFromJsonObject(n.value),this.getValueEvent=u;break;case"GetSkipIndicesEvent":var s=new a;s.loadFromJsonObject(n.value),this.value=s.value;break;case"Values":this.values.loadFromJsonObject(n.value);break}}},Object.defineProperty(p.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialTickMarkCustom},enumerable:!0,configurable:!0}),p.prototype.clone=function(){var e=i.prototype.clone.call(this);null!=this.value?e.value=this.value:e.value=null,e.values=new u;for(var t=0,r=this.values.list;t<r.length;t++){var n=r[t];e.values.add(n.clone())}return e},Object.defineProperty(p.prototype,"valueObj",{get:function(){return this._valueObj},set:function(e){this._valueObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0}),p.prototype.onGetValue=function(e){},p.prototype.invokeGetValue=function(e,r){try{if(this.onGetValue(r),e.scale.gauge.report.calculationMode==t.StiCalculationMode.Interpretation){var i=n.parseTextValue(this.value,e.scale.gauge);r.value=e.scale.gauge.report.toString2(i)}}catch(e){var o=String.stiFormat("Expression in GetValue property of '{0}' series from '{1}' chart can't be evaluated!","Indicator",this.scale.gauge.name)}},Object.defineProperty(p.prototype,"getValueEvent",{get:function(){return this._getValueEvent},set:function(e){this._getValueEvent=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"elementType",{get:function(){return l.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"localizeName",{get:function(){return"RadialTickMarkCustom"},enumerable:!0,configurable:!0}),p.prototype.createNew=function(){return new p},p.prototype.prepareGaugeElement=function(){i.prototype.prepareGaugeElement.call(this);var t=new s;this.invokeGetValue(this,t),this.valueObj=e.Report.Gauge.Helpers.StiGaugeHelper.getFloatValueFromObject2(t.value,0)},p.prototype.drawElement=function(e){var t=this.scale;if(null==t)return;var n=this.scale.barGeometry.rectGeometry;if(n.width<=0||n.height<=0)return;var i=t.barGeometry.center,o=t.getSweepAngle(),a=t.startAngle,s=this.scale.barGeometry.diameter,l=this.scale.barGeometry.radius,p=this.scale.scaleHelper.actualMinimum,f=this.scale.scaleHelper.actualMaximum,d=this.scale.scaleHelper.minWidth,m=this.scale.scaleHelper.maxWidth,g;m*=this.scale.barGeometry.rectGeometry.width,d*=this.scale.barGeometry.rectGeometry.width,g=m-d;var b=this.getActualSkin(),y=this.skipValuesObj,v=this.skipIndicesObj,S=this.values;null!=S&&0!=S.count||(S=new u,S.add(new r.StiRadialTickMarkCustomValue(this.valueObj,this.offset,this.relativeWidth,this.relativeHeight,this.offsetAngle,this.placement,null,null,null,b)));for(var w=-1,k=0,G=S.list;k<G.length;k++){var O=G[k];if(w++,O.value<p)continue;if(O.value>f)continue;if(this.checkTickValue(y,v,O.value,w))continue;if(null!=this.minimumValue&&O.value<this.minimumValue)continue;if(null!=this.maximumValue&&O.value>this.maximumValue)continue;var P=this.scale.getPosition(O.value),B=s*this.getRelativeWidth(O.relativeWidth),j=s*this.getRelativeHeight(O.relativeHeight),R=this.getPlacement(O.placement)==h.Outside?l*(1+this.getOffset(O.offset)):l*(1-this.getOffset(O.offset)),_=this.scale.isReversed?a+o-P*o-this.getOffsetAngle(O.offsetAngle):a+P*o+this.getOffsetAngle(O.offsetAngle),x=void 0;x=this.getPlacement(O.placement)==h.Outside?R:this.getPlacement(O.placement)==h.Overlay?this.scale.isUp?R-(d+g*P+B)/2:R-(m-g*P+B)/2:this.scale.isUp?R-d-g*P-B:R-m+g*P-B;var W=null,T=null,M=0;O.useBrush&&(W=this.brush,this.brush=O.brush),O.useBorderBrush&&(T=this.borderBrush,this.borderBrush=O.borderBrush),O.useBorderWidth&&(M=this.borderWidth,this.borderWidth=null==O.borderWidth?0:O.borderWidth);var C=new c(i.x+x,i.y,B,j);e.addPushMatrixGaugeGeom(_,i);(null==O.skin?b:O.skin).draw(e,this,C),e.addPopTranformGaugeGeom(),O.useBrush&&(this.brush=W),O.useBorderBrush&&(this.borderBrush=W),O.useBorderWidth&&(this.borderWidth=M)}},p.prototype.getOffsetAngle=function(e){return null==e?this.scale.isReversed?-this.offsetAngle:this.offsetAngle:e},p}(i);r.StiRadialTickMarkCustom=p}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(){function e(){}return e.length1=function(e,t){if(e<0&&t<0)return Math.abs(e-t);if(e>0&&t>0)return t-e;return Math.abs(e)+t},e.maxMinusMin=function(e,t){return e>t?e-t:t-e},e.getMax=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=0;e.length>0&&(r=e[0]);var n=1;while(n<e.length)r<e[n]&&(r=e[n]),n++;return r},e}();e.StiMathHelper=t}(t=e.Helpers||(e.Helpers={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.GaugeGeoms.StiGraphicsPathLinesGaugeGeom,n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.System.Windows.Forms.Orientation,o=e.Report.Gauge.Helpers.StiRectangleHelper,a=e.Report.Gauge.Helpers.StiMathHelper,u=e.Report.Gauge.StiPlacement,s=e.System.Drawing.Size,l=e.System.Drawing.Rectangle,c=e.System.Drawing.Point,h=function(){function e(e){this._size=new s(0,0),this._rectGeometry=l.empty,this._center=new c(0,0),this.scale=e}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectGeometry",{get:function(){return this._rectGeometry},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diameter",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0}),e.prototype.checkRectGeometry=function(e){this._size=e.size;var t,r,n={ref:t},i={ref:r};this.checkMinMaxWidth(n,i),t=n.ref,r=i.ref,this._rectGeometry=this.getRectGeometry(e,t>r?t:r),this._center=new c(this.rectGeometry.left+this.rectGeometry.width/2,this.rectGeometry.top+this.rectGeometry.height/2)},e.prototype.getRectGeometry=function(e,t){var r,n;return this.scale.orientation==i.Horizontal?(r=this.size.width*this.scale.relativeHeight,n=this.size.height*t):(n=this.size.height*this.scale.relativeHeight,r=this.size.width*t),new l(e.x+(this.size.width-r)/2,e.y+(this.size.height-n)/2,r,n)},e.prototype.getRestToLenght=function(){var e=Math.abs(this.scale.startWidth-this.scale.endWidth);return this.scale.orientation==i.Horizontal?this.size.height*e/2:this.size.width*e/2},e.prototype.checkMinMaxWidth=function(e,t){var r=e.ref,n=t.ref;this.scale.isReversed?(r=this.scale.endWidth,n=this.scale.startWidth):(r=this.scale.startWidth,n=this.scale.endWidth),e.ref=r,t.ref=n},e.prototype.drawScaleGeometry=function(e){var t,r,o={ref:t},a={ref:r};this.checkMinMaxWidth(o,a),t=o.ref,r=a.ref;var u=[];if(this.scale.orientation==i.Horizontal){var s=this.size.height;s*=t<r?t:r,s=(this.rectGeometry.height-s)/2,t>r?(u[0]=new c(this.rectGeometry.left,this.rectGeometry.top),u[1]=new c(this.rectGeometry.right,this.rectGeometry.top+s),u[2]=new c(this.rectGeometry.right,this.rectGeometry.bottom-s),u[3]=new c(this.rectGeometry.left,this.rectGeometry.bottom)):(u[0]=new c(this.rectGeometry.left,this.rectGeometry.top+s),u[1]=new c(this.rectGeometry.left,this.rectGeometry.bottom-s),u[2]=new c(this.rectGeometry.right,this.rectGeometry.bottom),u[3]=new c(this.rectGeometry.right,this.rectGeometry.top))}else{var l=this.size.width;l*=t<r?t:r,l=(this.rectGeometry.width-l)/2,t>r?(u[0]=new c(this.rectGeometry.left+l,this.rectGeometry.top),u[1]=new c(this.rectGeometry.left,this.rectGeometry.bottom),u[2]=new c(this.rectGeometry.right,this.rectGeometry.bottom),u[3]=new c(this.rectGeometry.right-l,this.rectGeometry.top)):(u[0]=new c(this.rectGeometry.left,this.rectGeometry.top),u[1]=new c(this.rectGeometry.left+l,this.rectGeometry.bottom),u[2]=new c(this.rectGeometry.right-l,this.rectGeometry.bottom),u[3]=new c(this.rectGeometry.right,this.rectGeometry.top))}var h=new n(this.rectGeometry,u[0],this.scale.brush,this.scale.borderBrush,1);h.addGraphicsPathLinesGaugeGeom(u),h.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(h)},e.prototype.drawGeometry=function(e,t,r,n,s,l,c,h,p){var f=h.ref;if(f=this.rectGeometry.clone(),0==f.width||0==f.height)return h.rect=f,null;var d=t,m=r;if(d==m)return h.rect=f,null;var g=this.scale.scaleHelper.actualMinimum,b=this.scale.scaleHelper.actualMaximum,y=this.scale.scaleHelper.totalLength;if(d<=g&&m<=g||d>=b&&m>=b)return h.rect=f,null;var v,S;if(d<m?(d<g&&(d=g),m>b&&(m=b),v=a.length1(g,d),S=a.length1(d,m)):(d<g&&(d=g),m>b&&(m=b),v=a.length1(g,m),S=a.length1(m,d)),this.scale.orientation==i.Horizontal){var w=f.width/y,k=v*w,G=S*w;this.scale.isReversed?(f.x=f.right-(k+G),f.width=G):(f.x+=k,f.width=G)}else{var w=f.height/y,k=v*w,G=S*w;this.scale.isReversed?(f.y+=k,f.height=G):(f.y+=f.height-(k+G),f.height=G)}var O=this.scale.startWidth>this.scale.endWidth,P=this.scale.barGeometry.getRestToLenght(),B=v/y,j=(v+S)/y;O||(B=1-B,j=1-j),B*=P,j*=P;var R=O?j-B:B-j,_,x=0;if(this.scale.orientation==i.Horizontal){_=this.size.height*Math.min(n,s),x=this.size.height*Math.max(n,s);var W=this.size.height*l;if(O)switch(c){case u.Outside:f.y-=x-j+R,f.height=x+R,f.y-=W;break;case u.Overlay:f.y=o.centerY(f)-x/2,f.height=x,f.y+=W;break;case u.Inside:f.y+=f.height-j,f.height=x+R,f.y+=W;break}else switch(c){case u.Outside:f.y-=x-B+R,f.height=x+R,f.y-=W;break;case u.Overlay:f.y=o.centerY(f)-x/2,f.height=x,f.y+=W;break;case u.Inside:f.y+=f.height-B,f.height=x+R,f.y+=W;break}}else{_=this.size.width*Math.min(n,s),x=this.size.width*Math.max(n,s);var T=this.size.width*l;if(O)switch(c){case u.Outside:f.x-=x-j+R,f.width=x+R,f.x-=T;break;case u.Overlay:f.x=o.centerX(f)-x/2,f.width=x,f.x+=T;break;case u.Inside:f.x+=f.width-j,f.width=x+R,f.x+=T;break}else switch(c){case u.Outside:f.x-=x-B+R,f.width=x+R,f.x-=T;break;case u.Overlay:f.x=o.centerX(f)-x/2,f.width=x,f.x+=T;break;case u.Inside:f.x+=f.width-B,f.width=x+R,f.x+=T;break}}return h.rect=f,p?null:this.drawPrimitiveGeometry(e,f,_,x,n,s,c,R,O)},e.prototype.drawPrimitiveGeometry=function(e,t,n,a,s,l,h,p,f){var d=t;t.x=0,t.y=0;var m=[];if(this.scale.startWidth==this.scale.endWidth&&n==a)m[0]=new c(t.left,t.top),m[1]=new c(t.right,t.top),m[2]=new c(t.right,t.bottom),m[3]=new c(t.left,t.bottom);else{var g=this.scale.startWidth<this.scale.endWidth,b=s<=l;if(this.scale.isReversed&&(g=!g,b=!b),this.scale.orientation==i.Horizontal)if(g)if(b)switch(h){case u.Outside:m[0]=new c(0,t.height-n),m[1]=new c(t.width,t.height-p-a),m[2]=new c(t.width,t.height-p),m[3]=new c(0,t.height);break;case u.Overlay:m[0]=new c(0,o.centerY(t)-n/2),m[1]=new c(t.width,o.centerY(t)-a/2),m[2]=new c(t.width,o.centerY(t)+a/2),m[3]=new c(0,o.centerY(t)+n/2);break;default:m[0]=new c(0,0),m[1]=new c(t.width,p),m[2]=new c(t.width,p+a),m[3]=new c(0,n);break}else switch(h){case u.Outside:m[0]=new c(0,t.height-a),m[1]=new c(t.width,t.height-p-n),m[2]=new c(t.width,t.height-p),m[3]=new c(0,t.height);break;case u.Overlay:m[0]=new c(0,o.centerY(t)-a/2),m[1]=new c(t.width,o.centerY(t)-n/2),m[2]=new c(t.width,o.centerY(t)+n/2),m[3]=new c(0,o.centerY(t)+a/2);break;default:m[0]=new c(0,0),m[1]=new c(t.width,p),m[2]=new c(t.width,p+n),m[3]=new c(0,a);break}else if(b)switch(h){case u.Outside:m[0]=new c(0,t.height-p-n),m[1]=new c(t.width,t.height-a),m[2]=new c(t.width,t.height),m[3]=new c(0,t.height-p);break;case u.Overlay:m[0]=new c(0,o.centerY(t)-n/2),m[1]=new c(t.right,o.centerY(t)-a/2),m[2]=new c(t.right,o.centerY(t)+a/2),m[3]=new c(0,o.centerY(t)+n/2);break;default:m[0]=new c(0,p),m[1]=new c(t.right,0),m[2]=new c(t.right,a),m[3]=new c(0,p+n);break}else switch(h){case u.Outside:m[0]=new c(0,t.height-p-a),m[1]=new c(t.right,t.height-n),m[2]=new c(t.right,t.height),m[3]=new c(0,t.height-p);break;case u.Overlay:m[0]=new c(0,o.centerY(t)-a/2),m[1]=new c(t.right,o.centerY(t)-n/2),m[2]=new c(t.right,o.centerY(t)+n/2),m[3]=new c(0,o.centerY(t)+a/2);break;default:m[0]=new c(0,p),m[1]=new c(t.right,0),m[2]=new c(t.right,n),m[3]=new c(0,p+a);break}else if(g)if(b)switch(h){case u.Outside:m[0]=new c(t.width-p-a,0),m[1]=new c(t.width-p,0),m[2]=new c(t.width,t.height),m[3]=new c(t.width-n,t.height);break;case u.Overlay:m[0]=new c(o.centerX(t)-a/2,0),m[1]=new c(o.centerX(t)+a/2,0),m[2]=new c(o.centerX(t)+n/2,t.height),m[3]=new c(o.centerX(t)-n/2,t.height);break;default:m[0]=new c(p,0),m[1]=new c(p+a,0),m[2]=new c(n,t.height),m[3]=new c(0,t.height);break}else switch(h){case u.Outside:m[0]=new c(t.width-p-n,0),m[1]=new c(t.width-p,0),m[2]=new c(t.width,t.height),m[3]=new c(t.width-a,t.height);break;case u.Overlay:m[0]=new c(o.centerX(t)-n/2,0),m[1]=new c(o.centerX(t)+n/2,0),m[2]=new c(o.centerX(t)+a/2,t.height),m[3]=new c(o.centerX(t)-a/2,t.height);break;default:m[0]=new c(p,0),m[1]=new c(p+n,0),m[2]=new c(a,t.height),m[3]=new c(0,t.height);break}else if(b)switch(h){case u.Outside:m[0]=new c(t.width-a,0),m[1]=new c(t.width,0),m[2]=new c(t.width-p,t.height),m[3]=new c(t.width-p-n,t.height);break;case u.Overlay:m[0]=new c(o.centerX(t)-a/2,0),m[1]=new c(o.centerX(t)+a/2,0),m[2]=new c(o.centerX(t)+n/2,t.height),m[3]=new c(o.centerX(t)-n/2,t.height);break;default:m[0]=new c(t.left,0),m[1]=new c(a,0),m[2]=new c(p+n,t.height),m[3]=new c(p,t.height);break}else switch(h){case u.Outside:m[0]=new c(t.width-n,0),m[1]=new c(t.width,0),m[2]=new c(t.width-p,t.height),m[3]=new c(t.width-p-a,t.height);break;case u.Overlay:m[0]=new c(o.centerX(t)-n/2,0),m[1]=new c(o.centerX(t)+n/2,0),m[2]=new c(o.centerX(t)+a/2,t.height),m[3]=new c(o.centerX(t)-a/2,t.height);break;default:m[0]=new c(0,0),m[1]=new c(n,0),m[2]=new c(p+a,t.height),m[3]=new c(p,t.height);break}}return m[0].x+=d.left,m[0].y+=d.top,m[1].x+=d.left,m[1].y+=d.top,m[2].x+=d.left,m[2].y+=d.top,m[3].x+=d.left,m[3].y+=d.top,new r(m)},e}();t.StiLinearBarGeometry=h}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(r){var n=e.Report.Gauge.Helpers.StiMathHelper,i=e.Base.StiJson,o=e.Report.Gauge.Collections.StiGaugeElementCollection,a=e.Base.Drawing.StiSolidBrush,u=e.System.Drawing.Color,s=e.Base.StiJsonReportObjectHelper,l=function(){function e(){this.actualMinimum=0,this.actualMaximum=10,this.minWidth=.1,this.maxWidth=.1,this._totalLength=10}return Object.defineProperty(e.prototype,"totalLength",{get:function(){return this._totalLength},set:function(e){this._totalLength=0==e?1:e},enumerable:!0,configurable:!0}),e}();r.StiScaleHelper=l;var c=function(e){function c(){var t=e.call(this)||this;return t.scaleHelper=new l,t._left=0,t._top=0,t._startWidth=.1,t._endWidth=.1,t._majorInterval=10,t._minorInterval=1,t._minimum=0,t._maximum=10,t._isReversed=!1,t._brush=new a(u.fromArgb(50,u.white)),t._borderBrush=new a(u.fromArgb(150,u.white)),t._items=new o(t),t}return __extends(c,e),c.prototype.saveToJsonObject=function(e){var t=new i;return t.addPropertyNumber("Left",this.left,0),t.addPropertyNumber("Top",this.top,0),t.addPropertyNumber("StartWidth",this.startWidth,.1),t.addPropertyNumber("EndWidth",this.endWidth,.1),t.addPropertyNumber("MajorInterval",this.majorInterval,10),t.addPropertyNumber("MinorInterval",this.minorInterval,1),t.addPropertyBool("IsReversed",this.isReversed,!1),t.addPropertyNumber("Minimum",this.minimum,0),t.addPropertyNumber("Maximum",this.maximum,10),t.addPropertyStringNullOfEmpty("Brush",s.Serialize.jBrush(this.brush)),t.addPropertyStringNullOfEmpty("BorderBrush",s.Serialize.jBrush(this.borderBrush)),t.addPropertyJObject("Items",this.items.saveToJsonObject(e)),t},c.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"Left":this.left=n.value.toNumber();break;case"Top":this.top=n.value.toNumber();break;case"StartWidth":this.startWidth=n.value.toNumber();break;case"EndWidth":this.endWidth=n.value.toNumber();break;case"MajorInterval":this.majorInterval=n.value.toNumber();break;case"MinorInterval":this.minorInterval=n.value.toNumber();break;case"IsReversed":this.isReversed=n.value.toBoolean();break;case"Minimum":this.minimum=n.value.toNumber();break;case"Maximum":this.maximum=n.value.toNumber();break;case"Brush":this.brush=s.Deserialize.brush(n.value);break;case"BorderBrush":this.borderBrush=s.Deserialize.brush(n.value);break;case"Items":this.items.loadFromJsonObject(n.value);break}}},Object.defineProperty(c.prototype,"componentId",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"propName",{get:function(){return null},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var n=e.prototype.clone.call(this);n.brush=this.brush.clone(),n.borderBrush=this.borderBrush.clone(),n._items=new o(n);for(var i=0,a=this.items.list;i<a.length;i++){var u=a[i];n.items.add(u.clone())}return this.sti_is(t.StiLinearScale)?n.barGeometry=new r.StiLinearBarGeometry(n):this.sti_is(t.StiRadialScale)&&(n.barGeometry=new r.StiRadialBarGeometry(n)),n},Object.defineProperty(c.prototype,"isUp",{get:function(){var e=this.startWidth<this.endWidth;return this.isReversed&&(e=!e),e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"gauge",{get:function(){return this._gauge},set:function(e){this._gauge=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"left",{get:function(){return this._left},set:function(e){this._left=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"top",{get:function(){return this._top},set:function(e){this._top=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"startWidth",{get:function(){return this._startWidth},set:function(e){this._startWidth=e,this.calculateWidthScaleHelper()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"endWidth",{get:function(){return this._endWidth},set:function(e){this._endWidth=e,this.calculateWidthScaleHelper()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"majorInterval",{get:function(){return this._majorInterval},set:function(e){this._majorInterval=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"minorInterval",{get:function(){return this._minorInterval},set:function(e){this._minorInterval=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"minimum",{get:function(){return this._minimum},set:function(e){this._minimum=e,this.calculateMinMaxScaleHelper()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"maximum",{get:function(){return this._maximum},set:function(e){this._maximum=e,this.calculateMinMaxScaleHelper()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isReversed",{get:function(){return this._isReversed},set:function(e){this._isReversed=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"borderBrush",{get:function(){return this._borderBrush},set:function(e){this._borderBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),c.prototype.set=function(e){this._items=e},Object.defineProperty(c.prototype,"scaleType",{get:function(){return null},enumerable:!0,configurable:!0}),c.prototype.prepare=function(e){for(var t=0,r=this.items.list;t<r.length;t++){r[t].prepareGaugeElement()}},c.prototype.calculateMinMaxScaleHelper=function(){this.minimum>this.maximum?(this.scaleHelper.actualMaximum=this.maximum,this.scaleHelper.actualMinimum=this.minimum):(this.scaleHelper.actualMinimum=this.minimum,this.scaleHelper.actualMaximum=this.maximum),this.scaleHelper.totalLength=this.scaleHelper.actualMaximum-this.scaleHelper.actualMinimum},c.prototype.calculateWidthScaleHelper=function(){this.startWidth>this.endWidth?(this.scaleHelper.maxWidth=this.startWidth,this.scaleHelper.minWidth=this.endWidth):(this.scaleHelper.maxWidth=this.endWidth,this.scaleHelper.minWidth=this.startWidth)},c.prototype.getPosition=function(e){return n.length1(this.scaleHelper.actualMinimum,e)/this.scaleHelper.totalLength},c.prototype.interactiveClick=function(e){},c.prototype.createNew=function(){return null},c.prototype.drawElement=function(e){if(null!=this.gauge){this.barGeometry.drawScaleGeometry(e);var t=0;while(t<this.items.count)this.items.getByIndex(t).drawElement(e),t++}},c}(r.StiElementBase);r.StiScaleBase=c}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.System.Windows.Forms.Orientation,i=e.System.Enum,o=e.Report.Components.Gauge.Primitives.StiScaleBase,a=e.Report.Components.Gauge.Primitives.StiLinearBarGeometry,u=function(r){function o(){var e=r.call(this)||this;return e._orientation=n.Vertical,e._relativeHeight=.9,e.barGeometry=new a(e),e}return __extends(o,r),o.prototype.saveToJsonObject=function(e){var t=r.prototype.saveToJsonObject.call(this,e);return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyEnum("Orientation",n,this.orientation),t.addPropertyNumber("RelativeHeight",this.relativeHeight,.9),t},o.prototype.loadFromJsonObject=function(e){r.prototype.loadFromJsonObject.call(this,e);for(var t=0,o=e.properties();t<o.length;t++){var a=o[t];switch(a.name){case"Orientation":this.orientation=i.parse(n,a.value.toString());break;case"RelativeHeight":this.relativeHeight=a.value.toNumber();break}}},Object.defineProperty(o.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearScale},enumerable:!0,configurable:!0}),o.prototype.applyStyle=function(e){var t=0;while(t<this.items.count)this.items.getByIndex(t).applyStyle(e),t++},Object.defineProperty(o.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"relativeHeight",{get:function(){return this._relativeHeight},set:function(e){this._relativeHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"scaleType",{get:function(){return e.Report.Gauge.StiGaugeElemenType.LinearElement},enumerable:!0,configurable:!0}),o.prototype.interactiveClick=function(e){},o.prototype.createNew=function(){return new o},o}(o);r.StiLinearScale=u}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Base.StiJson,n=function(){function e(){this._value=0,this._placement=null,this._offset=null}return e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyNumber("Value",this.value,0),t.addPropertyNumber("Offset",this.offset,null),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"Value":this.value=n.value.toNumber();break;case"Offset":this.offset=n.value.toNumber();break}}},Object.defineProperty(e.prototype,"componentId",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"propName",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placement",{get:function(){return this._placement},set:function(e){this._placement=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localizedName",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.createNew=function(){return null},e}();t.StiCustomValueBase=n}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.StiCustomValueBase,i=e.Base.Drawing.StiEmptyBrush,o=function(e){function r(t,r,n,o,a,u,s,l,c,h){void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=null),void 0===a&&(a=null),void 0===u&&(u=null),void 0===s&&(s=null),void 0===l&&(l=null),void 0===c&&(c=null),void 0===h&&(h=null);var p=e.call(this)||this;return p._relativeWidth=null,p._relativeHeight=null,p._offsetAngle=null,p._skin=null,p._brush=new i,p._borderBrush=new i,p._borderWidth=null,p.value=t,p.offset=r,p._relativeWidth=n,p._relativeHeight=o,p._offsetAngle=a,p.placement=u,p.brush=s,p.borderBrush=l,p.borderWidth=c,p._skin=h,p}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyNumber("RelativeHeight",this.relativeHeight,null),r.addPropertyNumber("RelativeWidth",this.relativeWidth,null),r.addPropertyNumber("OffsetAngle",this.offsetAngle,null),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"RelativeHeight":this.relativeHeight=i.value.toNumber();break;case"RelativeWidth":this.relativeWidth=i.value.toNumber();break;case"OffsetAngle":this.offsetAngle=i.value.toNumber();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialTickMarkCustomValue},enumerable:!0,configurable:!0}),r.prototype.clone=function(){var t=e.prototype.clone.call(this);return t.brush=this.brush.clone(),t.borderBrush=this.borderBrush.clone(),t},Object.defineProperty(r.prototype,"relativeWidth",{get:function(){return this._relativeWidth},set:function(e){this._relativeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"relativeHeight",{get:function(){return this._relativeHeight},set:function(e){this._relativeHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"offsetAngle",{get:function(){return this._offsetAngle},set:function(e){this._offsetAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e,this.useBrush=!0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"borderBrush",{get:function(){return this._borderBrush},set:function(e){this._borderBrush=e,this.useBorderBrush=!0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"borderWidth",{get:function(){return this._borderWidth},set:function(e){this._borderWidth=e,this.useBorderWidth=!0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizedName",{get:function(){return"RadialTickMarkCustom"},enumerable:!0,configurable:!0}),r.prototype.toString=function(){return String.stiFormat("Value={0}",this.value)},r.prototype.createNew=function(){return new r},r}(n);r.StiRadialTickMarkCustomValue=o}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiRadialTickMarkBase,i=e.Report.Gauge.StiGaugeElemenType,o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialTickMarkMajor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.borderBrush=e.core.tickMarkMajorBorder,this.brush=e.core.tickMarkMajorBrush,this.borderWidth=e.core.tickMarkMajorBorderWidth)},Object.defineProperty(r.prototype,"elementType",{get:function(){return i.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizeName",{get:function(){return"RadialTickMarkMajor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMajorCollections()},r}(n);r.StiRadialTickMarkMajor=o}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiRadialTickMarkBase,i=e.Report.Gauge.StiGaugeElemenType,o=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipMajorValues=!0,t}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyBool("SkipMajorValues",this.skipMajorValues,!0),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"SkipMajorValues":this.skipMajorValues=i.value.toBoolean();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialTickMarkMinor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.borderBrush=e.core.tickMarkMinorBorder,this.brush=e.core.tickMarkMinorBrush,this.borderWidth=e.core.tickMarkMinorBorderWidth)},Object.defineProperty(r.prototype,"skipMajorValues",{get:function(){return this._skipMajorValues},set:function(e){this._skipMajorValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isSkipMajorValues",{get:function(){return this._skipMajorValues},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elementType",{get:function(){return i.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizeName",{get:function(){return"RadialTickMarkMinor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMinorCollections()},r}(n);r.StiRadialTickMarkMinor=o}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.Base.StiJson,n=function(){function e(){this._value=0}return e.prototype.saveToJsonObject=function(e){var t=new r;return t.addPropertyNumber("Value",this.value,0),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"Value":this.value=n.value.toNumber();break}}},Object.defineProperty(e.prototype,"componentId",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"propName",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this.memberwiseClone()},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangeListType",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.createNew=function(){return null},e}();t.StiIndicatorRangeInfo=n}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Color,n=function(){function e(){}return e.colorMixed=function(e){if(null==e||0==e.count)return r.transparent;if(1==e.count)return e[0];var t=e[0],n=0;while(++n<e.count)t=this.colorMixer(t,e[n]);return t},e.colorMixer=function(e,t){var n=(e.r+t.r)/2,i=(e.g+t.g)/2,o=(e.b+t.b)/2;return r.fromArgb(n,i,o)},e}();t.StiMixedColorHelper=n}(r=t.Helpers||(t.Helpers={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n;!function(r){var n=e.Report.Engine.StiParser.StiParser,i=e.Base.StiJson,o=e.Base.StiJsonReportObjectHelper,a=e.System.Enum,u=e.Report.Events.StiGetValueEvent,s=e.Report.Expressions.StiExpression,l=e.Base.Drawing.StiSolidBrush,c=e.System.Drawing.Color,h=e.Base.Drawing.StiEmptyBrush,p=e.Report.Events.StiGetValueEventArgs,f=e.Report.Components.Gauge.Primitives.StiGaugeElement,d=function(r){function f(){var t=null!==r&&r.apply(this,arguments)||this;return t._valueObj=0,t._placement=e.Report.Gauge.StiPlacement.Overlay,t._brush=new l(c.white),t._borderBrush=new h,t._borderWidth=0,t._getValueEvent=new u,t._value="",t}return __extends(f,r),f.prototype.saveToJsonObject=function(t){var r=new i;return r.addPropertyEnum("Placement",e.Report.Gauge.StiPlacement,this.placement),r.addPropertyStringNullOfEmpty("BorderBrush",o.Serialize.jBrush(this.borderBrush)),r.addPropertyStringNullOfEmpty("Brush",o.Serialize.jBrush(this.brush)),r.addPropertyNumber("BorderWidth",this.borderWidth,0),r.addPropertyJObject("GetValueEvent",this.getValueEvent.saveToJsonObject(t)),r.addPropertyJObject("Value",new s(this.value).saveToJsonObject(t)),r},f.prototype.loadFromJsonObject=function(t){r.prototype.loadFromJsonObject.call(this,t);for(var n=0,i=t.properties();n<i.length;n++){var l=i[n];switch(l.name){case"Placement":this.placement=a.parse(e.Report.Gauge.StiPlacement,l.value.toString());break;case"BorderBrush":this.borderBrush=o.Deserialize.brush(l.value);break;case"Brush":this.brush=o.Deserialize.brush(l.value);break;case"GetValueEvent":var c=new u;c.loadFromJsonObject(l.value),this.getValueEvent=c;break;case"Value":var h=new s;h.loadFromJsonObject(l.value),this.value=h.value;break}}},f.prototype.clone=function(){var e=r.prototype.clone.call(this);return e.brush=this.brush.clone(),e.borderBrush=this.borderBrush.clone(),null!=this.value?e.value=this.value:e.value=null,e},Object.defineProperty(f.prototype,"valueObj",{get:function(){return this._valueObj},set:function(e){this._valueObj=e,this.onValueChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"placement",{get:function(){return this._placement},set:function(e){this._placement=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"borderBrush",{get:function(){return this._borderBrush},set:function(e){this._borderBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"borderWidth",{get:function(){return this._borderWidth},set:function(e){this._borderWidth=e},enumerable:!0,configurable:!0}),f.prototype.onGetValue=function(e){},f.prototype.invokeGetValue=function(e,r){try{if(this.onGetValue(r),e.scale.gauge.report.calculationMode==t.StiCalculationMode.Interpretation){var i=n.parseTextValue(this.value,e.scale.gauge);r.value=e.scale.gauge.report.toString2(i)}}catch(e){var o=String.stiFormat("Expression in GetValue property of '{0}' series from '{1}' chart can't be evaluated!","Indicator",this.scale.gauge.name)}},Object.defineProperty(f.prototype,"getValueEvent",{get:function(){return this._getValueEvent},set:function(e){this._getValueEvent=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),f.prototype.prepareGaugeElement=function(){var t=new p;this.invokeGetValue(this,t),this.valueObj=e.Report.Gauge.Helpers.StiGaugeHelper.getFloatValueFromObject(t.value,this.scale)},f.prototype.interactiveClick=function(e,t){},f.prototype.onValueChanged=function(){},f}(f);r.StiIndicatorBase=d}(n=r.Primitives||(r.Primitives={}))}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Base.Drawing.StiEmptyBrush,n=e.Report.Gauge.Collections.StiBarRangeListCollection,i=e.Base.StiJsonReportObjectHelper,o=function(e){function t(){var t=e.call(this)||this;return t._emptyBrush=new r,t._emptyBorderBrush=new r,t._emptyBorderWidth=0,t._offset=0,t._startWidth=.05,t._endWidth=.05,t._useRangeColor=!1,t.rangeList=new n(t.barType),t}return __extends(t,e),t.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyStringNullOfEmpty("EmptyBrush",i.Serialize.jBrush(this.emptyBrush)),r.addPropertyStringNullOfEmpty("EmptyBorderBrush",i.Serialize.jBrush(this.emptyBorderBrush)),r.addPropertyNumber("EmptyBorderWidth",this.emptyBorderWidth,0),r.addPropertyNumber("Offset",this.offset,0),r.addPropertyNumber("StartWidth",this.startWidth,0),r.addPropertyNumber("EndWidth",this.endWidth,.05),r.addPropertyBool("UseRangeColor",this.useRangeColor,!1),r.addPropertyJObject("RangeList",this.rangeList.saveToJsonObject(t)),r},t.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var o=n[r];switch(o.name){case"EmptyBrush":this.emptyBrush=i.Deserialize.brush(o.value);break;case"EmptyBorderBrush":this.emptyBorderBrush=i.Deserialize.brush(o.value);break;case"EmptyBorderWidth":this.emptyBorderWidth=o.value.toNumber();break;case"Offset":this.offset=o.value.toNumber();break;case"StartWidth":this.startWidth=o.value.toNumber();break;case"EndWidth":this.endWidth=o.value.toNumber();break;case"UseRangeColor":this.useRangeColor=o.value.toBoolean();break;case"RangeList":this.rangeList.loadFromJsonObject(o.value);break}}},t.prototype.clone=function(){var t=e.prototype.clone.call(this);t.emptyBrush=this.emptyBrush.clone(),t.emptyBorderBrush=this.emptyBorderBrush.clone(),t.rangeList=new n(this.barType);for(var r=0,i=this.rangeList.list;r<i.length;r++){var o=i[r];t.rangeList.add(o.clone())}return t},Object.defineProperty(t.prototype,"emptyBrush",{get:function(){return this._emptyBrush},set:function(e){this._emptyBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emptyBorderBrush",{get:function(){return this._emptyBorderBrush},set:function(e){this._emptyBorderBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emptyBorderWidth",{get:function(){return this._emptyBorderWidth},set:function(e){this._emptyBorderWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWidth",{get:function(){return this._startWidth},set:function(e){this._startWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endWidth",{get:function(){return this._endWidth},set:function(e){this._endWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useRangeColor",{get:function(){return this._useRangeColor},set:function(e){this._useRangeColor=e,this.onRangeColorChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeList",{get:function(){return this._rangeList},set:function(e){this._rangeList=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"barType",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.onRangeColorChanged=function(){},t.prototype.checkActualBrushForTopGeometry=function(){},t.prototype.onValueChanged=function(){this.checkActualBrushForTopGeometry()},t}(t.StiIndicatorBase);t.StiBarBase=o}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Base.Context.Animation.StiScaleAnimation,i=e.Report.Gauge.GaugeGeoms.StiGraphicsPathLinesGaugeGeom,o=e.System.Windows.Forms.Orientation,a=e.System.TimeSpan,u=e.Report.Engine.StiParser.StiParser,s=e.Base.Drawing.StiGradientBrush,l=e.Report.Gauge.Helpers.StiMathHelper,c=e.System.Drawing.Color,h=e.Report.Gauge.Helpers.StiMixedColorHelper,p=e.Base.Drawing.StiSolidBrush,f=e.System.Drawing.Rectangle,d=e.Report.Components.Gauge.Primitives.StiBarBase,m=e.System.Enum,g=e.Report.Gauge.StiPlacement,b=e.System.Drawing.Point,y=e.Report.Gauge.Helpers.StiRectangleHelper,v=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,S=function(){function e(){this.standardBackground=!1,this.defaultIndex=-99,this.mixedColorIndex=-99}return e.prototype.reset=function(){this.standardBackground=!1,this.defaultIndex=-99,this.mixedColorIndex=-99},e}(),w=function(){function e(){this.state=!1,this.offset=0}return e}(),k=function(r){function d(){var t=null!==r&&r.apply(this,arguments)||this;return t.colorModeHelper=new S,t._skin=e.Report.Gauge.StiLinearBarSkin.Default,t._rangeColorMode=e.Report.Gauge.StiLinearRangeColorMode.Default,t}return __extends(d,r),d.prototype.saveToJsonObject=function(t){var n=r.prototype.saveToJsonObject.call(this,t);return n.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),n.addPropertyEnum("Skin",e.Report.Gauge.StiLinearBarSkin,this.skin),n.addPropertyEnum("RangeColorMode",e.Report.Gauge.StiLinearRangeColorMode,this.rangeColorMode),n},d.prototype.loadFromJsonObject=function(t){r.prototype.loadFromJsonObject.call(this,t);for(var n=0,i=t.properties();n<i.length;n++){var o=i[n];switch(o.name){case"Skin":this.skin=m.parse(e.Report.Gauge.StiLinearBarSkin,o.value.toString());break;case"RangeColorMode":this.rangeColorMode=m.parse(e.Report.Gauge.StiLinearRangeColorMode,o.value.toString());break}}},Object.defineProperty(d.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearBar},enumerable:!0,configurable:!0}),d.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.brush=e.core.linearBarBrush,this.borderBrush=e.core.linearBarBorderBrush,this.emptyBrush=e.core.linearBarEmptyBrush,this.emptyBorderBrush=e.core.linearBarEmptyBorderBrush,this.startWidth=e.core.linearBarStartWidth,this.endWidth=e.core.linearBarEndWidth)},Object.defineProperty(d.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"rangeColorMode",{get:function(){return this._rangeColorMode},set:function(e){this._rangeColorMode=e,this.onRangeColorChanged()},enumerable:!0,configurable:!0}),d.prototype.onRangeColorChanged=function(){this.colorModeHelper.reset()},Object.defineProperty(d.prototype,"barType",{get:function(){return e.Report.Gauge.StiBarRangeListType.LinearBar},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"localizeName",{get:function(){return"LinearBar"},enumerable:!0,configurable:!0}),d.prototype.checkActualBrushForTopGeometry=function(){this.useRangeColor?this.actualBackground=this.getRangeBrush():this.colorModeHelper.standardBackground||(this.colorModeHelper.standardBackground=!0,this.actualBackground=this.brush)},d.prototype.getRangeBrush=function(){var t=this.scale.gauge.report.isDesigning?u.parseTextValue("{"+this.value+"}",this.scale.gauge).toNumber():this.valueObj;switch(this.rangeColorMode){case e.Report.Gauge.StiLinearRangeColorMode.Default:for(var r=this.rangeList.count-1;r>=0;r--){var n=this.rangeList.getByIndex(r);if(t>=n.value&&this.colorModeHelper.defaultIndex!=r)return this.colorModeHelper.defaultIndex=r,null!=n.brush?n.brush:new p(n.color)}break;case e.Report.Gauge.StiLinearRangeColorMode.MixedColor:for(var r=this.rangeList.count-1;r>=0;r--){var n=this.rangeList.getByIndex(r);if(t>=n.value){if(this.colorModeHelper.mixedColorIndex!=r){this.colorModeHelper.mixedColorIndex=r;for(var i=[],o=0;o<=r;o++)i.add(this.rangeList.getByIndex(o).color);return new p(h.colorMixed(i))}break}}break}return null},d.prototype.createNew=function(){return new d},d.prototype.interactiveClick=function(e,t){},d.prototype.drawElement=function(t){if(null==this.scale)return;switch(this.skin){case e.Report.Gauge.StiLinearBarSkin.HorizontalThermometer:this.drawHorizontalThermometer(t);break;case e.Report.Gauge.StiLinearBarSkin.VerticalThermometer:this.drawVerticalThermometer(t);break}var r=f.empty,i={ref:r},s=this.scale.barGeometry.drawGeometry(t,this.scale.minimum,this.scale.maximum,this.startWidth,this.endWidth,this.offset,this.placement,i,!1);if(r=i.ref,null!=s){var l=new v(r,s.points[0],this.emptyBrush,this.emptyBorderBrush,this.emptyBorderWidth);l.geoms.add(s),l.addGraphicsPathCloseFigureGaugeGeom(),t.addGraphicsPathGaugeGeom(l)}var c=this.scale.gauge.report.isDesigning?u.parseTextValue("{"+this.value+"}",this.scale.gauge).toNumber():this.valueObj,h=this.getGeometryHelperForTopIndicator(c),p,d={ref:p},m=this.getTopGeometry(h,d);if(p=d.ref,null!=m){this.checkActualBrushForTopGeometry();var l=new v(p,m.points[0],this.actualBackground,this.borderBrush,this.borderWidth);l.geoms.add(m),l.addGraphicsPathCloseFigureGaugeGeom();var g=0,b=1,y=1,S=1,w=r.x,k=r.y+r.height/2,G=this.scale;null!=G&&G.orientation==o.Vertical&&(g=1,b=1,y=0,S=1,w=r.x+r.width/2,k=r.y+r.height),l.animation=new n(g,b,y,S,w,k,e.Report.Gauge.Helpers.StiGaugeHelper.globalDurationElement,a.zero),t.addGraphicsPathGaugeGeom(l)}},d.prototype.drawHorizontalThermometer=function(e){var t=f.empty,r={ref:t};this.scale.barGeometry.drawGeometry(e,this.scale.minimum,this.scale.maximum,this.startWidth,this.endWidth,this.offset,this.placement,r,!1),t=r.ref,t.y-=2,t.height+=4,t.x-=3,t.width+=3;var n=new v(t,t.location,new s(c.fromArgb(225,230,233),c.fromArgb(242,243,244),90),new p(c.fromArgb(157,157,157)),.4);n.addGraphicsPathLineGaugeGeom(t.location,new b(t.right,t.top)),n.addGraphicsPathArcGaugeGeom(t.right,t.top,4,t.height,270,180),n.addGraphicsPathLineGaugeGeom(new b(t.right,t.bottom),new b(t.left,t.bottom)),n.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(n)},d.prototype.drawVerticalThermometer=function(e){var t=f.empty,r={ref:t};this.scale.barGeometry.drawGeometry(e,this.scale.minimum,this.scale.maximum,this.startWidth,this.endWidth,this.offset,this.placement,r,!1),t=r.ref,t.x-=2,t.width+=4,t.y-=3,t.height+=3;var n=new v(t,t.location,new s(c.fromArgb(225,230,233),c.fromArgb(242,243,244),90),new p(c.fromArgb(157,157,157)),.4);n.addGraphicsPathArcGaugeGeom(t.left,t.top-4,t.width,4,180,180),n.addGraphicsPathLineGaugeGeom(new b(t.right,t.top),new b(t.right,t.bottom)),n.addGraphicsPathLineGaugeGeom(new b(t.right,t.bottom),new b(t.left,t.bottom)),n.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(n)},d.prototype.getGeometryHelperForTopIndicator=function(e){var t=this.scale,r=new w,n=this.scale.barGeometry.size,i=this.scale.barGeometry.rectGeometry,a=l.maxMinusMin(this.scale.startWidth,this.scale.endWidth);a/=2,a=t.orientation==o.Horizontal?a*n.height:a*n.width;var u=t.orientation==o.Horizontal?new f(i.x,i.y+a,i.width,i.height-2*a):new f(i.x+a,i.y,i.width-2*a,i.height),s=this.scale.minimum>this.scale.maximum?this.scale.maximum:this.scale.minimum,c=Math.abs(this.scale.minimum)+Math.abs(this.scale.maximum),h=l.length1(s,e);h<0?h=0:h>c&&(h=c);var p=h/c,d=null,m=null,b=new f(0,0,0,0),v=this.scale.startWidth>this.scale.endWidth,S=this.startWidth>this.endWidth,k=t.orientation==o.Horizontal?i.width*p:i.height*p,G=0,O=0,P=0,B=0;this.startWidth>this.endWidth?(G=this.startWidth,O=this.endWidth):(O=this.startWidth,G=this.endWidth);var j=G-O;if(t.orientation==o.Horizontal){P=G*n.height,B=O*n.height;var R=void 0;if(this.scale.isReversed)if(v)switch(this.placement){case g.Outside:S?(b=new f(i.x+(u.width-k),u.y-a-P,k,a+P-a*(1-p)),m=b.height-(a+P-B)*p):P>a+B?(R=(P-a-B)*(1-p),b=new f(u.x+(u.width-k),u.y-P+R,k,P-a*(1-p)-R),r.offset=a*p):(R=a*(1-p),b=new f(u.x+(u.width-k),u.y-a-B,k,a+B-R),d=b.height-(a+B-P)*p,r.state=!0);break;case g.Overlay:S?(b=new f(u.x+(u.width-k),y.centerY(u)-P/2,k,P),m=b.height-(P-B)*p):(R=(P-B)/2*(1-p),b=new f(u.x+(u.width-k),y.centerY(u)-P/2+R,k,P-2*R));break;default:if(S)R=a*(1-p),b=new f(u.x+(u.width-k),u.bottom+R,k,a+P-R),m=b.height-(a+P-B)*p;else if(P>a+B){R=a*(1-p);var _=(P-a-B)*(1-p);b=new f(u.x+(u.width-k),u.bottom+R,k,P-R-_),r.offset=P-a-B-_}else R=a*(1-p),b=new f(u.x+(u.width-k),u.bottom+R,k,a+B-R),d=b.height-(a+B-P)*p,r.state=!0;break}else switch(this.placement){case g.Outside:S?P>a+B?(b=new f(u.x+(u.width-k),u.y-P,k,P),r.offset=(P-a-B)*p,m=b.height-r.offset-a*p):(R=(a+B-P)*(1-p),b=new f(i.x+(i.width-k),i.y-B+R,k,a+B-R),m=b.height-a*p,r.state=!0):(R=(a+P-B)*(1-p),b=new f(i.x+(i.width-k),i.y-P+R,k,P+a-R),d=b.height-a*p);break;case g.Overlay:S?(b=new f(u.x+(i.width-k),y.centerY(u)-P/2,k,P),m=b.height-2*((P-B)/2*p)):(R=(P-B)/2*(1-p),b=new f(u.x+(i.width-k),y.centerY(u)-P/2+R,k,P-2*R));break;default:S?P>a+B?(b=new f(u.x+(i.width-k),u.bottom,k,P),r.offset=a*p,m=b.height-(P-a-B)*p-r.offset):(R=(a+B-P)*p,b=new f(u.x+(i.width-k),u.bottom,k,P+R),m=b.height-a*p,r.state=!0):(R=(a+P-B)*(1-p),b=new f(u.x+(i.width-k),u.bottom,k,a+P-R),d=b.height-a*p);break}else if(v)switch(this.placement){case g.Outside:S?(b=new f(i.x,i.y-P,k,P+a*p),m=b.height-(a+P-B)*p):(b=new f(i.x,i.y-B,k,a+B-a*(1-p)),d=b.height-(a+B-P)*p);break;case g.Overlay:S?(b=new f(u.x,y.centerY(u)-P/2,k,P),m=B+(P-B)/2*p):(R=(P-B)/2*(1-p),b=new f(u.x,y.centerY(u)-P/2+R,k,P-2*R));break;default:S?(R=a*p,b=new f(i.x,i.bottom-R,k,R+P),m=b.height-(a+P-B)*p):P>a+B?(R=a*(1-p),r.offset=a-R,b=new f(u.x,u.bottom+R,k,P-R-(P-a-B)*(1-p))):(R=a*p,b=new f(i.x,i.bottom-R,k,R+B),d=b.height-(a+B-P)*p,r.state=!0);break}else{var x=(a+P-B)*p+B;switch(this.placement){case g.Outside:S?P>a+B?(b=new f(u.x,u.y-P,k,P),r.offset=(b.height-a-B)*p,m=b.height-r.offset-a*p):(R=(a+B-P)*p,b=new f(u.x,u.y-P-R,k,P+R),m=b.height-a*p,r.state=!0):(b=new f(u.x,u.y-x,k,x),d=b.height-a*p);break;case g.Overlay:R=(P-B)/2*(1-p),S?(b=new f(i.x,y.centerY(u)-P/2,k,P),m=B+(P-B)/2*(1-p)):b=new f(i.x,y.centerY(u)-P/2+R,k,P-2*R);break;default:S?P>a+B?(b=new f(u.x,u.bottom,k,P),r.offset=a*p,m=b.height-(P-a-B)*p-r.offset):(R=(a+B-P)*p,b=new f(u.x,u.bottom,k,P+R),m=b.height-a*p,r.state=!0):(b=new f(u.x,u.bottom,k,x),d=B+(P-B)*p);break}}}else{P=G*n.width,B=O*n.width;var W=void 0;if(this.scale.isReversed)if(v)switch(this.placement){case g.Outside:if(W=a*(1-p),S)b=new f(u.x-a-P,u.y,a+P-W,k),m=b.width-(a+P-B)*p;else if(P>a+B){var T=(P-B-a)*(1-p);b=new f(u.x-P+T,u.y,P-W-T,k),r.offset=a*p}else b=new f(i.x-B,i.y,a+B-W,k),d=b.width-(a+B-P)*p,r.state=!0;break;case g.Overlay:S?(b=new f(y.centerX(u)-P/2,u.y,P,k),r.offset=(P-B)/2*p):(W=(P-B)/2*(1-p),b=new f(y.centerX(u)-P/2+W,u.y,P-2*W,k));break;default:if(W=a*(1-p),S)b=new f(u.right+W,u.y,a+P-W,k),m=b.width-(a+P-B)*p;else if(P>a+B){var T=(P-a-B)*(1-p);b=new f(u.right+W,u.y,P-W-T,k),d=(P-a-B)*p,r.offset=a*p}else b=new f(u.right+W,u.y,a+B-W,k),d=b.width-(a+B-P)*p,r.state=!0;break}else switch(this.placement){case g.Outside:S?P>a+B?(b=new f(u.x-P,u.y,P,k),r.offset=a*p,m=b.width-r.offset-(P-s-a)*(1-p)):(W=(a+B-P)*(1-p),b=new f(u.x-a-B+W,u.y,a+B-W,k),m=b.width-a*p,r.state=!0):(W=(a+P-B)*(1-p),b=new f(u.x-a-P+W,u.y,a+P-W,k),d=b.width-a*p);break;case g.Overlay:S?(b=new f(y.centerX(u)-P/2,u.y,P,k),r.offset=(P-B)/2*p):(W=(P-B)/2*(1-p),b=new f(y.centerX(u)-P/2+W,u.y,P-2*W,k));break;default:S?P>a+B?(b=new f(u.right,u.y,P,k),r.offset=a*p,m=b.width-r.offset-(P-B-a)*p):(W=(a+B-P)*p,b=new f(u.right,u.y,a+B-W,k),m=b.width-a*p,r.state=!0):(W=(a+P-B)*(1-p),b=new f(u.right,i.y,a+P-W,k),d=b.width-a*p);break}else if(v)switch(this.placement){case g.Outside:if(S)W=a*(1-p),b=new f(u.x-a-P,u.y+(i.height-k),a+P-W,k),m=b.width-(a+P-B)*p;else if(W=a*(1-p),P>a+B){var T=(P-a-B)*(1-p);b=new f(u.x-P+T,u.y+(i.height-k),P-W-T,k),r.offset=a*p}else b=new f(u.x-a-B,u.y+(i.height-k),a+B-W,k),d=b.width-(a+B-P)*p,r.state=!0;break;case g.Overlay:S?(b=new f(y.centerX(u)-P/2,u.y+(i.height-k),P,k),r.offset=(P-B)/2*p):(W=(P-B)/2*(1-p),b=new f(y.centerX(u)-P/2+W,u.y+(i.height-k),P-2*W,k));break;default:if(W=a*(1-p),S)b=new f(u.right+W,u.y+(i.height-k),P+a-W,k),m=b.width-(a+P-B)*p;else if(P>=a+B){var T=(P-a-B)*(1-p);b=new f(u.right+W,u.y+(i.height-k),P-W-T,k),r.offset=(P-a-B)*p}else b=new f(u.right+W,u.y+(i.height-k),a+B-W,k),d=b.width-(a+B-P)*p,r.state=!0;break}else switch(this.placement){case g.Outside:S?P>a+B?(b=new f(u.x-P,u.y+(i.height-k),P,k),r.offset=a*p,W=(P-B-a)*p,m=b.width-r.offset-W):(W=(a+B-P)*(1-p),b=new f(i.x-B+W,i.y+(i.height-k),a+B-W,k),m=b.width-a*p,r.state=!0):(W=(a+P-B)*(1-p),b=new f(i.x-P+W,i.y+(i.height-k),P+a-W,k),d=b.width-a*p);break;case g.Overlay:S?(b=new f(y.centerX(u)-P/2,i.y+(i.height-k),P,k),r.offset=(P-B)*p/2):(W=(P-B)/2*(1-p),b=new f(y.centerX(u)-P/2+W,i.y+(i.height-k),P-2*W,k));break;default:S?P>a+B?(b=new f(u.right,i.y+(i.height-k),P,k),r.offset=a*p,m=b.width-r.offset-(P-a-B)*p):(W=(a+B-P)*p,b=new f(u.right,i.y+(i.height-k),a+B-W,k),m=b.width-a*p,r.state=!0):(W=(a+P-B)*(1-p),b=new f(u.right,i.y+(i.height-k),a+P-W,k),d=b.width-a*p);break}}return r.rect=b,r.isStartGreaterEnd=v,r.isThisStartGreaterEnd=S,r.scale=t,r.maxWidth=null==d?P:d,r.minWidth=null==m?B:m,r},d.prototype.getTopGeometry=function(e,t){var r=new f(0,0,e.rect.width,e.rect.height),n=[];if(e.scale.orientation==o.Horizontal)if(e.scale.isReversed)if(e.isStartGreaterEnd)if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:n[0]=new b(0,r.height-e.minWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.maxWidth),n[3]=new b(0,r.height);break;case g.Overlay:n[0]=new b(0,(r.height-e.minWidth)/2),n[1]=new b(r.width,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height-(r.height-e.minWidth)/2);break;default:n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.maxWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.minWidth);break}else switch(this.placement){case g.Outside:e.state?(n[0]=new b(0,r.height-e.maxWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.minWidth),n[3]=new b(0,r.height)):(n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.offset-e.minWidth),n[2]=new b(r.width,r.height-e.offset),n[3]=new b(0,r.height));break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,y.centerY(r)-e.minWidth/2),n[2]=new b(r.width,y.centerY(r)+e.minWidth/2),n[3]=new b(0,r.height);break;default:e.state?(n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.minWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.maxWidth)):(n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.offset-e.minWidth),n[2]=new b(r.width,r.height-e.offset),n[3]=new b(0,r.height));break}else if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:e.state?(n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.maxWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.minWidth)):(n[0]=new b(0,e.offset),n[1]=new b(r.width,0),n[2]=new b(r.width,r.height),n[3]=new b(0,e.minWidth+e.offset));break;case g.Overlay:n[0]=new b(0,y.centerY(r)-e.minWidth/2),n[1]=new b(r.width,0),n[2]=new b(r.width,r.height),n[3]=new b(0,y.centerY(r)+e.minWidth/2);break;default:e.state?(n[0]=new b(0,r.height-e.minWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.maxWidth),n[3]=new b(0,r.height)):(n[0]=new b(0,e.offset),n[1]=new b(r.width,0),n[2]=new b(r.width,r.height),n[3]=new b(0,e.offset+e.minWidth));break}else switch(this.placement){case g.Outside:n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.minWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.maxWidth);break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,y.centerY(r)-e.minWidth/2),n[2]=new b(r.width,y.centerY(r)+e.minWidth/2),n[3]=new b(0,r.height);break;default:n[0]=new b(0,r.height-e.maxWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.minWidth),n[3]=new b(0,r.height);break}else if(e.isStartGreaterEnd)if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.minWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.maxWidth);break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,y.centerY(r)-e.minWidth/2),n[2]=new b(r.width,y.centerY(r)+e.minWidth/2),n[3]=new b(0,r.height);break;default:n[0]=new b(0,r.height-e.maxWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.minWidth),n[3]=new b(0,r.height);break}else switch(this.placement){case g.Outside:n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.maxWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.minWidth);break;case g.Overlay:n[0]=new b(0,y.centerY(r)-e.minWidth/2),n[1]=new b(r.width,0),n[2]=new b(r.width,r.height),n[3]=new b(0,y.centerY(r)+e.minWidth/2);break;default:e.state?(n[0]=new b(0,r.height-e.minWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.maxWidth),n[3]=new b(0,r.height)):(n[0]=new b(0,e.offset),n[1]=new b(r.width,0),n[2]=new b(r.width,r.height),n[3]=new b(0,e.offset+e.minWidth));break}else if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:e.state?(n[0]=new b(0,r.height-e.maxWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.minWidth),n[3]=new b(0,r.height)):(n[0]=new b(0,0),n[1]=new b(r.width,e.offset),n[2]=new b(r.width,e.offset+e.minWidth),n[3]=new b(0,r.height));break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,y.centerY(r)-e.minWidth/2),n[2]=new b(r.width,y.centerY(r)+e.minWidth/2),n[3]=new b(0,r.height);break;default:e.state?(n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.minWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.maxWidth)):(n[0]=new b(0,0),n[1]=new b(r.width,e.offset),n[2]=new b(r.width,e.offset+e.minWidth),n[3]=new b(0,r.height));break}else switch(this.placement){case g.Outside:n[0]=new b(0,r.height-e.minWidth),n[1]=new b(r.width,0),n[2]=new b(r.width,e.maxWidth),n[3]=new b(0,r.height);break;case g.Overlay:n[0]=new b(0,y.centerY(r)-e.minWidth/2),n[1]=new b(r.width,0),n[2]=new b(r.width,r.height),n[3]=new b(0,y.centerY(r)+e.minWidth/2);break;default:n[0]=new b(0,0),n[1]=new b(r.width,r.height-e.maxWidth),n[2]=new b(r.width,r.height),n[3]=new b(0,e.minWidth);break}else if(e.scale.isReversed)if(e.isStartGreaterEnd)if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:n[0]=new b(0,0),n[1]=new b(e.maxWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.minWidth,r.height);break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(r.width-e.offset,r.height),n[3]=new b(e.offset,r.height);break;default:n[0]=new b(r.width-e.maxWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.minWidth,r.height),n[3]=new b(0,r.height);break}else switch(this.placement){case g.Outside:e.state?(n[0]=new b(0,0),n[1]=new b(e.minWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.maxWidth,r.height)):(n[0]=new b(r.width-e.offset-e.minWidth,0),n[1]=new b(r.width-e.offset,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height));break;case g.Overlay:n[0]=new b((r.width-e.minWidth)/2,0),n[1]=new b(r.width-(r.width-e.minWidth)/2,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height);break;default:e.state?(n[0]=new b(r.width-e.minWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.maxWidth,r.height),n[3]=new b(0,r.height)):(n[0]=new b(e.offset,0),n[1]=new b(e.offset+e.minWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height));break}else if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:e.state?(n[0]=new b(r.width-e.maxWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.minWidth,r.height),n[3]=new b(0,r.height)):(n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(r.width-e.offset,r.height),n[3]=new b(r.width-e.offset-e.minWidth,r.height));break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(r.width-e.offset,r.height),n[3]=new b(e.offset,r.height);break;default:e.state?(n[0]=new b(0,0),n[1]=new b(e.maxWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.minWidth,r.height)):(n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(e.offset+e.minWidth,r.height),n[3]=new b(e.offset,r.height));break}else switch(this.placement){case g.Outside:n[0]=new b(r.width-e.minWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.maxWidth,r.height),n[3]=new b(0,r.height);break;case g.Overlay:n[0]=new b((r.width-e.minWidth)/2,0),n[1]=new b(r.width-(r.width-e.minWidth)/2,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height);break;default:n[0]=new b(0,0),n[1]=new b(e.minWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.maxWidth,r.height);break}else if(e.isStartGreaterEnd)if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:n[0]=new b(r.width-e.minWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.maxWidth,r.height),n[3]=new b(0,r.height);break;case g.Overlay:n[0]=new b(e.offset,0),n[1]=new b(r.width-e.offset,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height);break;default:n[0]=new b(0,0),n[1]=new b(e.minWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.maxWidth,r.height);break}else switch(this.placement){case g.Outside:e.state?(n[0]=new b(r.width-e.maxWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.minWidth,r.height),n[3]=new b(0,r.height)):(n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(r.width-e.offset,r.height),n[3]=new b(r.width-e.offset-e.minWidth,r.height));break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(r.width-(r.width-e.minWidth)/2,r.height),n[3]=new b((r.width-e.minWidth)/2,r.height);break;default:e.state?(n[0]=new b(0,0),n[1]=new b(e.maxWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.minWidth,r.height)):(n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(r.width-e.offset,r.height),n[3]=new b(r.width-e.offset-e.minWidth,r.height));break}else if(e.isThisStartGreaterEnd)switch(this.placement){case g.Outside:e.state?(n[0]=new b(0,0),n[1]=new b(e.minWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.maxWidth,r.height)):(n[0]=new b(r.width-e.offset-e.minWidth,0),n[1]=new b(r.width-e.offset,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height));break;case g.Overlay:n[0]=new b(e.offset,0),n[1]=new b(r.width-e.offset,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height);break;default:e.state?(n[0]=new b(r.width-e.minWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.maxWidth,r.height),n[3]=new b(0,r.height)):(n[0]=new b(e.offset,0),n[1]=new b(e.offset+e.minWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(0,r.height));break}else switch(this.placement){case g.Outside:n[0]=new b(0,0),n[1]=new b(e.maxWidth,0),n[2]=new b(r.width,r.height),n[3]=new b(r.width-e.minWidth,r.height);break;case g.Overlay:n[0]=new b(0,0),n[1]=new b(r.width,0),n[2]=new b(y.centerX(r)+e.minWidth/2,r.height),n[3]=new b(y.centerX(r)-e.minWidth/2,r.height);break;default:n[0]=new b(r.width-e.maxWidth,0),n[1]=new b(r.width,0),n[2]=new b(e.minWidth,r.height),n[3]=new b(0,r.height);break}var a=e.rect.left,u=e.rect.top,s=this.scale.barGeometry.size.width*this.offset;return e.scale.orientation==o.Horizontal?this.placement==g.Outside?u-=s:u+=s:this.placement==g.Outside?a-=s:a+=s,n[0].x+=a,n[1].x+=a,n[2].x+=a,n[3].x+=a,n[0].y+=u,n[1].y+=u,n[2].y+=u,n[3].y+=u,t.ref=r,new i(n)},d}(d);r.StiLinearBar=k}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.StiBarRangeListType,i=e.Base.Drawing.StiEmptyBrush,o=e.System.Drawing.Color,a=e.Base.StiJsonReportObjectHelper,u=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._color=o.white,t._brush=new i,t}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyStringNullOfEmpty("Color",a.Serialize.jColor(this.color)),r.addPropertyStringNullOfEmpty("Brush",a.Serialize.jBrush(this.brush)),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"Color":this.color=a.Deserialize.color(i.value);break;case"Brush":this.brush=a.Deserialize.brush(i.value);break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearIndicatorRangeInfo},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeListType",{get:function(){return n.LinearBar},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(r.StiIndicatorRangeInfo);r.StiLinearIndicatorRangeInfo=u}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Base.StiJson,n=e.Base.StiJsonReportObjectHelper,i=e.System.Enum,o=e.Base.Drawing.StiSolidBrush,a=e.System.Drawing.Color,u=e.System.Drawing.Font,s=e.Report.Gauge.Helpers.StiGaugeSkinHelper,l=function(t){function l(){var r=null!==t&&t.apply(this,arguments)||this;return r._offset=0,r._relativeWidth=.05,r._relativeHeight=.05,r._skin=e.Report.Gauge.StiMarkerSkin.Diamond,r._customSkin=null,r._format="{0:F0}",r._showValue=!1,r._textBrush=new o(a.dimGray),r._font=new u("Arial",7),r}return __extends(l,t),l.prototype.saveToJsonObject=function(t){var i=new r;return i.addPropertyNumber("Offset",this.offset,0),i.addPropertyNumber("RelativeWidth",this.relativeWidth,.05),i.addPropertyNumber("RelativeHeight",this.relativeHeight,.05),i.addPropertyEnum("Skin",e.Report.Gauge.StiMarkerSkin,this.skin),i.addPropertyString("Format",this.format),i.addPropertyBool("ShowValue",this.showValue,!1),i.addPropertyStringNullOfEmpty("TextBrush",n.Serialize.jBrush(this.textBrush)),i.addPropertyStringNullOfEmpty("Font",n.Serialize.font(this.font,"Arial",7)),i},l.prototype.loadFromJsonObject=function(r){t.prototype.loadFromJsonObject.call(this,r);for(var o=0,a=r.properties();o<a.length;o++){var u=a[o];switch(u.name){case"Offset":this.offset=u.value.toNumber();break;case"RelativeWidth":this.relativeWidth=u.value.toNumber();break;case"RelativeHeight":this.relativeHeight=u.value.toNumber();break;case"Skin":this.skin=i.parse(e.Report.Gauge.StiMarkerSkin,u.value.toString());break;case"Format":this.format=u.value.toString();break;case"ShowValue":this.showValue=u.value.toBoolean();break;case"TextBrush":this.textBrush=n.Deserialize.brush(u.value);break;case"Font":this.font=n.Deserialize.font(u.value.toString(),this.font);break}}},l.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.textBrush=this.textBrush.clone(),e},Object.defineProperty(l.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"relativeWidth",{get:function(){return this._relativeWidth},set:function(e){this._relativeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"relativeHeight",{get:function(){return this._relativeHeight},set:function(e){this._relativeHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"customSkin",{get:function(){return this._customSkin},set:function(e){this._customSkin=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"showValue",{get:function(){return this._showValue},set:function(e){this._showValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"textBrush",{get:function(){return this._textBrush},set:function(e){this._textBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),l.prototype.getActualSkin=function(){return null!=this.customSkin?this.customSkin:s.getMarkerSkin(this.skin)},l}(t.StiIndicatorBase);t.StiMarkerBase=l}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Base.Context.Animation.StiTranslationAnimation,i=e.System.Windows.Forms.Orientation,o=e.Report.Gauge.Helpers.StiMathHelper,a=e.Report.Gauge.Helpers.StiRectangleHelper,u=e.Report.Gauge.StiPlacement,s=e.System.Drawing.Rectangle,l=e.System.Drawing.Point,c=e.Report.Components.Gauge.Primitives.StiMarkerBase,h=function(r){function c(){return null!==r&&r.apply(this,arguments)||this}return __extends(c,r),c.prototype.saveToJsonObject=function(e){var t=r.prototype.saveToJsonObject.call(this,e);return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t},c.prototype.loadFromJsonObject=function(e){r.prototype.loadFromJsonObject.call(this,e)},Object.defineProperty(c.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearMarker},enumerable:!0,configurable:!0}),c.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.brush=e.core.markerBrush,this.borderBrush=e.core.markerBorderBrush,this.borderWidth=e.core.markerBorderWidth,this.skin=e.core.markerSkin)},Object.defineProperty(c.prototype,"localizeName",{get:function(){return"LinearMarker"},enumerable:!0,configurable:!0}),c.prototype.createNew=function(){return new c},c.prototype.drawElement=function(t){var r=this.getRectangle(this.valueObj),i=this.getRectangle(0);this.animation=new n(new l(i.x,i.y),new l(r.x,r.y),e.Report.Gauge.Helpers.StiGaugeHelper.globalDurationElement,e.Report.Gauge.Helpers.StiGaugeHelper.globalBeginTimeElement),this.getActualSkin().draw(t,this,r)},c.prototype.getRectangle=function(e){var t=this.scale,r=t.barGeometry.size,n=t.barGeometry.rectGeometry,o=this.getBarPosition(t.orientation,e),l=r.width*this.relativeWidth,c=r.height*this.relativeHeight,h=c/2,p=0,f=0;if(t.orientation==i.Horizontal){if(this.placement!=u.Overlay){var d=this.scale.barGeometry.getRestToLenght(),m=this.scale.getPosition(e),g=this.scale.startWidth<this.scale.endWidth?(1-m)*d:d*m;f=this.placement==u.Outside?n.top-c+g:n.bottom-g}else f=a.centerY(this.scale.barGeometry.rectGeometry)-h+this.offset*r.height;this.scale.isReversed?(o+=h,p=n.right-o):(o-=h,p=n.left+o)}else{if(this.placement!=u.Overlay){var d=this.scale.barGeometry.getRestToLenght(),m=this.scale.getPosition(e),g=this.scale.startWidth<this.scale.endWidth?(1-m)*d:d*m;p=this.placement==u.Outside?n.left-l+g:n.right-g}else p=a.centerX(this.scale.barGeometry.rectGeometry)-l/2+this.offset*r.width;this.scale.isReversed?(o-=h,f=n.top+o):(o+=h,f=n.bottom-o)}return new s(p,f,l,c)},c.prototype.interactiveClick=function(e,t){},c.prototype.getBarPosition=function(e,t){var r=this.scale.scaleHelper.actualMinimum,n=this.scale.scaleHelper.actualMaximum;isNaN(t)?t=r:t<r?t=r:t>n&&(t=n);var a=o.length1(r,t),u=e==i.Horizontal?this.scale.barGeometry.rectGeometry.width:this.scale.barGeometry.rectGeometry.height;return a/this.scale.scaleHelper.totalLength*u},c}(c);r.StiLinearMarker=h}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Base.Context.Animation.StiRotationAnimation,i=e.System.TimeSpan,o=e.Report.Engine.StiParser.StiParser,a=e.Report.Gauge.Helpers.StiGaugeSkinHelper,u=e.System.Enum,s=e.System.Drawing.Rectangle,l=e.System.Drawing.Size,c=e.Report.Gauge.StiGaugeElemenType,h=e.System.Drawing.Point,p=e.Base.Drawing.StiEmptyBrush,f=e.System.Drawing.Color,d=e.System.Drawing.Font,m=e.Base.Drawing.StiSolidBrush,g=e.Base.StiJsonReportObjectHelper,b=e.Report.Components.Gauge.Primitives.StiIndicatorBase,y=e.System.Drawing.FontStyle,v=e.System.Drawing.GraphicsUnit,S=function(r){function b(){var t=r.call(this)||this;return t._format="{0:F0}",t._showValue=!1,t._textBrush=new m(f.dimGray),t._font=new d("Arial",7),t._capBrush=new m(f.fromArgb(158,158,158)),t._capBorderBrush=new p,t._capBorderWidth=0,t._offsetNeedle=0,t._startWidth=.1,t._endWidth=1,t._autoCalculateCenterPoint=!0,t._centerPoint=new h,t._relativeHeight=.04,t._relativeWidth=.4,t._skin=e.Report.Gauge.StiNeedleSkin.SimpleNeedle,t.brush=new m(f.fromArgb(158,158,158)),t}return __extends(b,r),b.prototype.saveToJsonObject=function(t){var n=r.prototype.saveToJsonObject.call(this,t);return n.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),n.addPropertyStringNullOfEmpty("Format",this.format),n.addPropertyBool("ShowValue",this.showValue,!1),n.addPropertyStringNullOfEmpty("TextBrush",g.Serialize.jBrush(this.textBrush)),n.addPropertyStringNullOfEmpty("Font",g.Serialize.font(this.font,"Arial",8,y.Bold,v.Pixel)),n.addPropertyStringNullOfEmpty("CapBrush",g.Serialize.jBrush(this.capBrush)),n.addPropertyStringNullOfEmpty("CapBorderBrush",g.Serialize.jBrush(this.capBorderBrush)),n.addPropertyNumber("CapBorderWidth",this.capBorderWidth,0),n.addPropertyNumber("OffsetNeedle",this.offsetNeedle,0),n.addPropertyNumber("StartWidth",this.startWidth,.1),n.addPropertyNumber("EndWidth",this.endWidth,1),n.addPropertyBool("AutoCalculateCenterPoint",this.autoCalculateCenterPoint,!0),n.addPropertyJObject("CenterPoint",g.Serialize.point(this.centerPoint)),n.addPropertyNumber("RelativeHeight",this.relativeHeight,.04),n.addPropertyNumber("RelativeWidth",this.relativeWidth,.4),n.addPropertyEnum("Skin",e.Report.Gauge.StiNeedleSkin,this.skin),n},b.prototype.loadFromJsonObject=function(t){r.prototype.loadFromJsonObject.call(this,t);for(var n=0,i=t.properties();n<i.length;n++){var o=i[n];switch(o.name){case"Format":this.format=o.value.toString();break;case"ShowValue":this.showValue=o.value.toBoolean();break;case"TextBrush":this.textBrush=g.Deserialize.brush(o.value);break;case"Font":this.font=g.Deserialize.font(o.value.toString(),this.font);break;case"CapBrush":this.capBrush=g.Deserialize.brush(o.value);break;case"CapBorderBrush":this.capBorderBrush=g.Deserialize.brush(o.value);break;case"CapBorderWidth":this.capBorderWidth=o.value.toNumber();break;case"OffsetNeedle":this.offsetNeedle=o.value.toNumber();break;case"StartWidth":this.startWidth=o.value.toNumber();break;case"EndWidth":this.endWidth=o.value.toNumber();break;case"AutoCalculateCenterPoint":this.autoCalculateCenterPoint=o.value.toBoolean();break;case"Center":this.centerPoint=g.Deserialize.point(o.value);break;case"RelativeHeight":this.relativeHeight=o.value.toNumber();break;case"RelativeWidth":this.relativeWidth=o.value.toNumber();break;case"Skin":this.skin=u.parse(e.Report.Gauge.StiNeedleSkin,o.value.toString());break}}},Object.defineProperty(b.prototype,"componentId",{get:function(){return t.StiComponentId.StiNeedle},enumerable:!0,configurable:!0}),b.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.brush=e.core.needleBrush,this.borderBrush=e.core.needleBorderBrush,this.capBrush=e.core.needleCapBrush,this.capBorderBrush=e.core.needleCapBorderBrush,this.borderWidth=e.core.needleBorderWidth,this.capBorderWidth=e.core.needleCapBorderWidth,this.startWidth=e.core.needleStartWidth,this.endWidth=e.core.needleEndWidth,this.relativeHeight=e.core.needleRelativeHeight,this.relativeWidth=e.core.needleRelativeWith)},Object.defineProperty(b.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"showValue",{get:function(){return this._showValue},set:function(e){this._showValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"textBrush",{get:function(){return this._textBrush},set:function(e){this._textBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"capBrush",{get:function(){return this._capBrush},set:function(e){this._capBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"capBorderBrush",{get:function(){return this._capBorderBrush},set:function(e){this._capBorderBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"capBorderWidth",{get:function(){return this._capBorderWidth},set:function(e){this._capBorderWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"offsetNeedle",{get:function(){return this._offsetNeedle},set:function(e){this._offsetNeedle=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"startWidth",{get:function(){return this._startWidth},set:function(e){this._startWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"endWidth",{get:function(){return this._endWidth},set:function(e){this._endWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"autoCalculateCenterPoint",{get:function(){return this._autoCalculateCenterPoint},set:function(e){this._autoCalculateCenterPoint=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"centerPoint",{get:function(){return this._centerPoint},set:function(e){this._centerPoint=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"relativeHeight",{get:function(){return this._relativeHeight},set:function(e){this._relativeHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"relativeWidth",{get:function(){return this._relativeWidth},set:function(e){this._relativeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"customSkin",{get:function(){return this._customSkin},set:function(e){this._customSkin=e},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"elementType",{get:function(){return c.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"localizeName",{get:function(){return"Needle"},enumerable:!0,configurable:!0}),b.prototype.createNew=function(){return new b},b.prototype.drawElement=function(t){var r=this.scale;if(null==r)return;var a=this.scale.barGeometry.center,u=new l(this.scale.barGeometry.diameter*this.relativeWidth,this.scale.barGeometry.diameter*this.relativeHeight),c=0,h=0;u.width>u.height?c=h=u.height/2:(c=u.width/2,h=u.height/2);var p=a.x-c,f=a.y-h,d=new s(p,f,u.width,u.height),m=0,g=0;try{g=t.gauge.isDesigning?o.parseTextValue("{"+this.value+"}",t.gauge).toNumber():this.valueObj}catch(e){g=0}m=this.scale.isReversed?r.sweepAngle-r.getCurrentAngle(g):r.getCurrentAngle(g);var b=-r.getPosition(g)*r.sweepAngle;this.scale.isReversed&&(b=-b),this.animation=new n(b,0,a,e.Report.Gauge.Helpers.StiGaugeHelper.globalDurationElement,i.zero),this.getActualSkin().draw(t,this,d,m,a)},b.prototype.interactiveClick=function(e,t){},b.prototype.getActualCenterPoint=function(){if(null!=this.scale&&null!=this.scale.gauge){if(this.autoCalculateCenterPoint){var e=this.scale.gauge.report.unit.convertToHInches(this.scale.gauge.clientRectangle),t=this.scale.gauge.clientRectangle,r=0;return 0!=t.width&&(r=t.height*this.relativeHeight/2),new h(r,.5)}return this.centerPoint}return new h},b.prototype.getActualSkin=function(){return null!=this.customSkin?this.customSkin:a.getNeedleIndicatorSkin(this.skin)},b}(b);r.StiNeedle=S}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Engine.StiParser.StiParser,i=e.Report.Gauge.StiPlacement,o=e.Report.Gauge.Helpers.StiMathHelper,a=e.System.Drawing.Rectangle,u=e.Report.Components.Gauge.Primitives.StiBarBase,s=e.Base.Drawing.StiEmptyBrush,l=e.Report.Gauge.StiGaugeElemenType,c=function(){function e(){this.standardBackground=!1,this.defaultIndex=-99}return e.prototype.reset=function(){this.standardBackground=!1,this.defaultIndex=-99},e}(),h=function(r){function u(){var e=null!==r&&r.apply(this,arguments)||this;return e.actualBush=new s,e.colorModeHelper=new c,e}return __extends(u,r),u.prototype.saveToJsonObject=function(e){var t=r.prototype.saveToJsonObject.call(this,e);return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t},u.prototype.loadFromJsonObject=function(e){r.prototype.loadFromJsonObject.call(this,e)},Object.defineProperty(u.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialBar},enumerable:!0,configurable:!0}),u.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.brush=e.core.radialBarBrush,this.borderBrush=e.core.radialBarBorderBrush,this.emptyBrush=e.core.radialBarEmptyBrush,this.emptyBorderBrush=e.core.radialBarEmptyBorderBrush,this.startWidth=e.core.radialBarStartWidth,this.endWidth=e.core.radialBarEndWidth)},Object.defineProperty(u.prototype,"elementType",{get:function(){return l.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"barType",{get:function(){return e.Report.Gauge.StiBarRangeListType.RadialBar},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"localizeName",{get:function(){return"RadialBar"},enumerable:!0,configurable:!0}),u.prototype.checkActualBrushForTopGeometry=function(){if(this.useRangeColor)for(var e=this.rangeList.count-1;e>=0;e--){var t=this.rangeList.getByIndex(e);if(this.valueObj>=t.value){this.colorModeHelper.defaultIndex!=e&&(this.colorModeHelper.defaultIndex=e,this.actualBush=t.brush);break}}else this.colorModeHelper.standardBackground||(this.colorModeHelper.standardBackground=!0,this.actualBush=this.brush)},u.prototype.createNew=function(){return new u},u.prototype.drawElement=function(e){var t=this.scale,r=e.gauge.isDesigning?n.parseTextValue("{"+this.value+"}",e.gauge).toNumber():this.valueObj;if(e.gauge.isDesigning&&this.checkActualBrushForTopGeometry(),null!=t){var i=void 0,o=void 0;this.scale.isReversed?(i=this.scale.maximum-r,o=this.scale.maximum):(i=this.scale.minimum,o=r),this.getRangeGeometry(e,t,this.emptyBrush,this.emptyBorderBrush,this.emptyBorderWidth,this.scale.minimum,this.scale.maximum),this.getRangeGeometry(e,t,this.actualBush,this.borderBrush,this.borderWidth,i,o)}},u.prototype.onRangeColorChanged=function(){this.colorModeHelper.reset()},u.prototype.interactiveClick=function(e,t){},u.prototype.getRangeGeometry=function(e,t,r,n,u,s,l){var c=t.barGeometry.rectGeometry,h=t.barGeometry.center,p=t.barGeometry.radius,f=t.barGeometry.diameter,d,m;d=this.startWidth>=0?t.isReversed?this.endWidth*f:this.startWidth*f:0,m=this.endWidth>=0?t.isReversed?this.startWidth*f:this.endWidth*f:0;var g=t.startAngle+t.getPosition(s)*t.sweepAngle,b=(t.getPosition(l)-t.getPosition(s))*t.sweepAngle,y=t.isReversed?t.endWidth*f:t.startWidth*f,v=t.isReversed?t.startWidth*f:t.endWidth*f,S=this.scale.getPosition(s),w=this.scale.getPosition(l),k=o.maxMinusMin(y,v),G,O,P,B;if(this.placement==i.Outside?(G=p,O=p,P=p+d,B=p+m):this.placement==i.Overlay?t.isUp?(G=p-(y+k*S-d)/2,O=p-(y+k*w-m)/2,P=p-(y+k*S+d)/2,B=p-(y+k*w+m)/2):(G=p-(y-k*S-d)/2,O=p-(y-k*w-m)/2,P=p-(y-k*S+d)/2,B=p-(y-k*w+m)/2):t.isUp?(G=p-(y+k*S),O=p-(y+k*w),P=p-(y+k*S+d),B=p-(y+k*w+m)):(G=p-(y-k*S),O=p-(y-k*w),P=p-(y-k*S+d),B=p-(y-k*w+m)),isNaN(G)||isNaN(O)||isNaN(P)||isNaN(B))return;var j=o.getMax(G,O,P,B),R=new a(h.x-j,h.y-j,2*j,2*j);e.addRadialRangeGaugeGeom(R,r,n,u,h,g,b,G,O,P,B)},u}(u);r.StiRadialBar=h}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.StiBarRangeListType,i=e.Base.Drawing.StiEmptyBrush,o=e.Base.StiJsonReportObjectHelper,a=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._brush=new i,t}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyStringNullOfEmpty("Brush",o.Serialize.jBrush(this.brush)),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"Brush":this.brush=o.Deserialize.brush(i.value);break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialIndicatorRangeInfo},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangeListType",{get:function(){return n.RadialBar},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(r.StiIndicatorRangeInfo);r.StiRadialIndicatorRangeInfo=a}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Base.Context.Animation.StiRotationAnimation,i=e.System.TimeSpan,o=e.Report.Gauge.StiPlacement,a=e.Report.Gauge.Helpers.StiMathHelper,u=e.Report.Engine.StiParser.StiParser,s=e.Report.Gauge.StiGaugeElemenType,l=e.Report.Components.Gauge.Primitives.StiMarkerBase,c=e.System.Drawing.Rectangle,h=function(r){function l(){return null!==r&&r.apply(this,arguments)||this}return __extends(l,r),l.prototype.saveToJsonObject=function(e){var t=r.prototype.saveToJsonObject.call(this,e);return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t},l.prototype.loadFromJsonObject=function(e){r.prototype.loadFromJsonObject.call(this,e)},Object.defineProperty(l.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialMarker},enumerable:!0,configurable:!0}),l.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.brush=e.core.markerBrush,this.borderBrush=e.core.markerBorderBrush,this.borderWidth=e.core.markerBorderWidth,this.skin=e.core.markerSkin)},Object.defineProperty(l.prototype,"elementType",{get:function(){return s.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"localizeName",{get:function(){return"RadialMarker"},enumerable:!0,configurable:!0}),l.prototype.createNew=function(){return new l},l.prototype.drawElement=function(t){var r=this.scale;if(null==r)return;var s=t.gauge.report.isDesigning?u.parseTextValue("{"+this.value+"}",t.gauge).toNumber():this.valueObj,l=r.getPosition(s),h=r.barGeometry.center,p=this.scale.barGeometry.size.width*this.relativeWidth,f=this.scale.barGeometry.size.height*this.relativeHeight,d=this.scale.barGeometry.diameter,m=a.maxMinusMin(this.scale.startWidth,this.scale.endWidth)*d*l,g=this.scale.barGeometry.radius-this.offset*d;this.placement==o.Overlay?this.scale.isReversed?g-=this.scale.isUp?(this.scale.endWidth*d+p+m)/2:(this.scale.endWidth*d+p-m)/2:g-=this.scale.isUp?(this.scale.startWidth*d+p+m)/2:(this.scale.startWidth*d+p-m)/2:this.placement==o.Inside&&(this.scale.isReversed?g-=this.scale.isUp?this.scale.endWidth*d+p-m:this.scale.endWidth*d+p+m:g-=this.scale.isUp?this.scale.startWidth*d+p-m:this.scale.startWidth*d+p+m);var b=new c(g+h.x,h.y-f/2,p,f),y=r.startAngle+r.getSweepAngle()*l,v=r.startAngle-y;this.animation=new n(v,0,h,e.Report.Gauge.Helpers.StiGaugeHelper.globalDurationElement,i.zero),this.getActualSkin().draw(t,this,b,y,h)},l.prototype.interactiveClick=function(e,t){},l}(l);r.StiRadialMarker=h}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.Helpers.StiGaugeSkinHelper,i=e.Report.Engine.StiParser.StiParser,o=e.Report.Gauge.Collections.StiFilterCollection,a=e.System.Drawing.Color,u=e.Base.Drawing.StiSolidBrush,s=e.Base.StiJsonSaveMode,l=e.System.Drawing.Font,c=e.System.Enum,h=e.System.Drawing.Rectangle,p=e.Report.Components.Gauge.Primitives.StiIndicatorBase,f=e.Base.StiJsonReportObjectHelper,d=e.System.Drawing.FontStyle,m=e.System.Drawing.GraphicsUnit,g=function(r){function p(){var t=null!==r&&r.apply(this,arguments)||this;return t._format="{0:F0}",t._showValue=!1,t._textBrush=new u(a.dimGray),t._font=new l("Atial",7),t._filters=new o,t._left=0,t._top=0,t._relativeWidth=.05,t._relativeHeight=.05,t._skin=e.Report.Gauge.StiStateSkin.Ellipse,t}return __extends(p,r),p.prototype.saveToJsonObject=function(t){var n=r.prototype.saveToJsonObject.call(this,t);return n.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),n.addPropertyStringNullOfEmpty("Format",this.format),n.addPropertyBool("ShowValue",this.showValue,!1),n.addPropertyStringNullOfEmpty("TextBrush",f.Serialize.jBrush(this.textBrush)),n.addPropertyStringNullOfEmpty("Font",f.Serialize.font(this.font,"Arial",8,d.Bold,m.Pixel)),n.addPropertyNumber("Left",this.left,0),n.addPropertyNumber("Top",this.top,0),n.addPropertyNumber("RelativeHeight",this.relativeHeight,.05),n.addPropertyNumber("RelativeWidth",this.relativeWidth,.05),n.addPropertyEnum("Skin",e.Report.Gauge.StiStateSkin,this.skin),t==s.Report&&n.addPropertyJObject("Filters",this.filters.saveToJsonObject(t)),n},p.prototype.loadFromJsonObject=function(t){r.prototype.loadFromJsonObject.call(this,t);for(var n=0,i=t.properties();n<i.length;n++){var o=i[n];switch(o.name){case"Format":this.format=o.value.toString();break;case"ShowValue":this.showValue=o.value.toBoolean();break;case"TextBrush":this.textBrush=f.Deserialize.brush(o.value);break;case"Font":this.font=f.Deserialize.font(o.value.toString(),this.font);break;case"Left":this.left=o.value.toNumber();break;case"Top":this.top=o.value.toNumber();break;case"RelativeHeight":this.relativeHeight=o.value.toNumber();break;case"RelativeWidth":this.relativeWidth=o.value.toNumber();break;case"Skin":this.skin=c.parse(e.Report.Gauge.StiStateSkin,o.value.toString());break;case"Filters":this.filters.loadFromJsonObject(o.value);break}}},Object.defineProperty(p.prototype,"componentId",{get:function(){return t.StiComponentId.StiStateIndicator},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"format",{get:function(){return this._format},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"showValue",{get:function(){return this._showValue},set:function(e){this._showValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"textBrush",{get:function(){return this._textBrush},set:function(e){this._textBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"font",{get:function(){return this._font},set:function(e){this._font=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"elementType",{get:function(){return e.Report.Gauge.StiGaugeElemenType.All},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"localizeName",{get:function(){return"StateIndicator"},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"filters",{get:function(){return this._filters},set:function(e){this._filters=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"left",{get:function(){return this._left},set:function(e){this._left=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"top",{get:function(){return this._top},set:function(e){this._top=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"relativeWidth",{get:function(){return this._relativeWidth},set:function(e){this._relativeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"relativeHeight",{get:function(){return this._relativeHeight},set:function(e){this._relativeHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"customSkin",{get:function(){return this._customSkin},set:function(e){this._customSkin=e},enumerable:!0,configurable:!0}),p.prototype.createNew=function(){return new p},p.prototype.onValueChanged=function(){if(null!=this.filters){for(var e=null,t=this.scale.gauge.report.isDesigning?i.parseTextValue("{"+this.value+"}",this.scale.gauge).toNumber():this.valueObj,r=0;r<this.filters.count;r++)if(t>=this.filters.getByIndex(r).startValue&&t<=this.filters.getByIndex(r).endValue){e=this.filters.getByIndex(r);break}this.lastFilter!=e&&(this.lastFilter=e,null!=e&&(this.brush=e.brush,this.borderBrush=e.borderBrush))}},p.prototype.interactiveClick=function(e,t){},p.prototype.drawElement=function(e){var t=this.scale.barGeometry.size,r=e.rect,n=new h(r.x+t.width*this.left,r.y+t.height*this.top,t.width*this.relativeWidth,t.height*this.relativeHeight);this.getActualSkin().draw(e,this,n,null,null)},p.prototype.getActualSkin=function(){return null!=this.customSkin?this.customSkin:n.getStateIndicatorSkin(this.skin)},p}(p);r.StiStateIndicator=g}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Rectangle,n=e.System.Drawing.Point,i=e.System.Drawing.Size,o=e.Report.Gauge.StiRadiusMode,a=function(){function e(e){this._size=new i(0,0),this._center=new n(0,0),this._rectGeometry=r.empty,this._radius=0,this._diameter=0,this.scale=e}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectGeometry",{get:function(){return this._rectGeometry},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diameter",{get:function(){return this._diameter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0}),e.prototype.checkRectGeometry=function(e){this._size=e.size;var t=this.scale.center;t=new n(e.x+this.size.width*t.x,e.y+this.size.height*t.y);var i=0,a=0;this.scale.radiusMode==o.Auto?(i=Math.min(this.size.width,this.size.height)*this.scale.getRadius(),a=i,this._diameter=i,this._radius=i/2):this.scale.radiusMode==o.Width?(i=this.size.width*this.scale.getRadius(),a=this.size.height,this._diameter=i,this._radius=i/2):(i=this.size.width,a=this.size.height*this.scale.getRadius(),this._diameter=a,this._radius=a/2),this._rectGeometry=new r(t.x-i/2,t.y-a/2,i,a),this._center=new n(this.rectGeometry.left+this.rectGeometry.width/2,this.rectGeometry.top+this.rectGeometry.height/2)},e.prototype.drawScaleGeometry=function(e){var t,r;this.scale.isReversed?(t=this.scale.getEndWidth(),r=this.scale.getStartWidth()):(t=this.scale.getStartWidth(),r=this.scale.getEndWidth()),this.rectGeometry.width>0&&this.rectGeometry.height>0&&e.addGraphicsArcGeometryGaugeGeom(this.rectGeometry,this.scale.brush,this.scale.borderBrush,1,this.scale.startAngle,this.scale.getSweepAngle(),t,r)},e.prototype.getRestToLenght=function(){return null},e.prototype.drawGeometry=function(e,t,r,n,i,o,a,u,s){return null},e}();t.StiRadialBarGeometry=a}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiRadialBarGeometry,i=e.System.Drawing.Point,o=e.System.Enum,a=e.Report.Components.Gauge.Primitives.StiScaleBase,u=e.Base.StiJsonReportObjectHelper,s=function(r){function a(){var t=r.call(this)||this;return t._radius=.75,t._radiusMode=e.Report.Gauge.StiRadiusMode.Auto,t._center=new i(.5,.5),t._startAngle=45,t._sweepAngle=300,t._skin=e.Report.Gauge.StiRadialScaleSkin.Default,t.barGeometry=new n(t),t}return __extends(a,r),a.prototype.saveToJsonObject=function(t){var n=r.prototype.saveToJsonObject.call(this,t);return n.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),n.addPropertyNumber("Radius",this.radius,0),n.addPropertyEnum("RadiusMode",e.Report.Gauge.StiRadiusMode,this.radiusMode),n.addPropertyJObject("Center",u.Serialize.point(this.center)),n.addPropertyNumber("StartAngle",this.startAngle,45),n.addPropertyNumber("SweepAngle",this.sweepAngle,300),n.addPropertyEnum("Skin",e.Report.Gauge.StiRadialScaleSkin,this.skin),n},a.prototype.loadFromJsonObject=function(t){r.prototype.loadFromJsonObject.call(this,t);for(var n=0,i=t.properties();n<i.length;n++){var a=i[n];switch(a.name){case"Radius":this.radius=a.value.toNumber();break;case"RadiusMode":this.radiusMode=o.parse(e.Report.Gauge.StiRadiusMode,a.value.toString());break;case"Center":this.center=u.Deserialize.point(a.value);break;case"StartAngle":this.startAngle=a.value.toNumber();break;case"SweepAngle":this.sweepAngle=a.value.toNumber();break;case"Skin":this.skin=o.parse(e.Report.Gauge.StiRadialScaleSkin,a.value.toString());break}}},Object.defineProperty(a.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialScale},enumerable:!0,configurable:!0}),a.prototype.clone=function(){return r.prototype.clone.call(this)},a.prototype.applyStyle=function(e){var t=0;while(t<this.items.count)this.items.getByIndex(t).applyStyle(e),t++},Object.defineProperty(a.prototype,"radius",{get:function(){return this._radius},set:function(e){this._radius=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"radiusMode",{get:function(){return this._radiusMode},set:function(e){this._radiusMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"center",{get:function(){return this._center},set:function(e){this._center=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"sweepAngle",{get:function(){return this._sweepAngle},set:function(e){this._sweepAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"scaleType",{get:function(){return e.Report.Gauge.StiGaugeElemenType.RadialElement},enumerable:!0,configurable:!0}),a.prototype.getRadius=function(){return this.radius<0?0:this.radius},a.prototype.getStartWidth=function(){var e=this.startWidth;return e<0?e=0:e>1&&(e=1),e},a.prototype.getEndWidth=function(){var e=this.endWidth;return e<0?e=0:e>1&&(e=1),e},a.prototype.getSweepAngle=function(){var e=this.sweepAngle;return e<0?e=0:e>360&&(e=360),e},a.prototype.getCurrentAngle=function(e){return this.getPosition(e)*this.sweepAngle+this.startAngle},a.prototype.interactiveClick=function(e){},a.prototype.createNew=function(){return new a},a}(a);r.StiRadialScale=s}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.StiPlacement,n=e.Base.StiJson,i=e.Base.StiJsonReportObjectHelper,o=e.System.Enum,a=e.Base.Drawing.StiEmptyBrush,u=e.Base.Drawing.StiSolidBrush,s=e.System.Drawing.Color,l=function(){function e(){this._brush=new u(s.white),this._borderBrush=new a,this._borderWidth=1,this._startValue=0,this._endValue=0,this._startWidth=0,this._endWidth=0,this._placement=r.Overlay,this._offset=0}return e.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyStringNullOfEmpty("Brush",i.Serialize.jBrush(this.brush)),t.addPropertyStringNullOfEmpty("BorderBrush",i.Serialize.jBrush(this.borderBrush)),t.addPropertyNumber("BorderWidth",this.borderWidth,1),t.addPropertyNumber("StartValue",this.startValue,0),t.addPropertyNumber("EndValue",this.endValue,0),t.addPropertyNumber("StartWidth",this.startWidth,0),t.addPropertyNumber("EndWidth",this.endWidth,0),t.addPropertyEnum("Placement",r,this.placement),t.addPropertyNumber("Offset",this.offset,0),t},e.prototype.loadFromJsonObject=function(e){for(var t=0,n=e.properties();t<n.length;t++){var a=n[t];switch(a.name){case"Brush":this.brush=i.Deserialize.brush(a.value);break;case"BorderBrush":this.borderBrush=i.Deserialize.brush(a.value);break;case"BorderWidth":this.borderWidth=a.value.toNumber();break;case"StartValue":this.startValue=a.value.toNumber();break;case"EndValue":this.endValue=a.value.toNumber();break;case"StartWidth":this.startWidth=a.value.toNumber();break;case"EndWidth":this.endWidth=a.value.toNumber();break;case"Placement":this.placement=o.parse(r,a.value.toString());break;case"Offset":this.offset=a.value.toNumber();break}}},Object.defineProperty(e.prototype,"componentId",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"propName",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var e=this.memberwiseClone();return e.brush=this.brush.clone(),e.borderBrush=this.borderBrush.clone(),e},Object.defineProperty(e.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderBrush",{get:function(){return this._borderBrush},set:function(e){this._borderBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderWidth",{get:function(){return this._borderWidth},set:function(e){this._borderWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startValue",{get:function(){return this._startValue},set:function(e){this._startValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this._endValue},set:function(e){this._endValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startWidth",{get:function(){return this._startWidth},set:function(e){this._startWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endWidth",{get:function(){return this._endWidth},set:function(e){this._endWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placement",{get:function(){return this._placement},set:function(e){this._placement=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangeList",{get:function(){return this._rangeList},set:function(e){this._rangeList=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localizeName",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.drawRange=function(e,t){},e.prototype.createNew=function(){return null},e}();t.StiRangeBase=l}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.GaugeGeoms.StiGraphicsPathGaugeGeom,i=e.Report.Components.Gauge.Primitives.StiRangeBase,o=e.System.Drawing.Rectangle,a=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t)},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearRange},enumerable:!0,configurable:!0}),r.prototype.drawRange=function(e,t){if(null==t)return;var r=this.startWidth,i=this.endWidth;if(0==r||0==i)return;var a=new o(0,0,0,0),u={ref:a},s=t.barGeometry.drawGeometry(e,this.startValue,this.endValue,r,i,this.offset,this.placement,u,!1);if(a=u.ref,null!=s){var l=new n(a,s.points[0],this.brush,this.borderBrush,this.borderWidth);l.geoms.add(s),l.addGraphicsPathCloseFigureGaugeGeom(),e.addGraphicsPathGaugeGeom(l)}},Object.defineProperty(r.prototype,"localizeName",{get:function(){return"LinearRange"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r}(i);r.StiLinearRange=a}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n;!function(r){var n=e.Base.StiJson,i=e.Report.Gauge.Collections.StiRangeCollection,o=function(e){function r(){var t=e.call(this)||this;return t.ranges=new i(t),t}return __extends(r,e),r.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyJObject("Ranges",this.ranges.saveToJsonObject(e)),t},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"Ranges":this.ranges.loadFromJsonObject(i.value);break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiScaleRangeList},enumerable:!0,configurable:!0}),r.prototype.clone=function(){var t=e.prototype.clone.call(this);t.ranges=new i(t);for(var r=0,n=this.ranges.list;r<n.length;r++){var o=n[r];t.ranges.add(o.clone())}return t},Object.defineProperty(r.prototype,"ranges",{get:function(){return this._ranges},set:function(e){this._ranges=e},enumerable:!0,configurable:!0}),r}(r.StiGaugeElement);r.StiScaleRangeList=o}(n=r.Primitives||(r.Primitives={}))}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiScaleRangeList,i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t)},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearRangeList},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.drawElement=function(e){var t=0;while(t<this.ranges.count){var r=this.ranges.getByIndex(t);null!=r&&r.drawRange(e,this.scale),t++}},r}(n);r.StiLinearRangeList=i}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.Helpers.StiMathHelper,i=e.Report.Gauge.StiPlacement,o=e.Report.Components.Gauge.Primitives.StiRangeBase,a=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._useValuesFromTheSpecifiedRange=!0,t}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyBool("UseValuesFromTheSpecifiedRange",this.useValuesFromTheSpecifiedRange,!0),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"UseValuesFromTheSpecifiedRange":this.useValuesFromTheSpecifiedRange=i.value.toBoolean();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialRange},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"useValuesFromTheSpecifiedRange",{get:function(){return this._useValuesFromTheSpecifiedRange},set:function(e){this._useValuesFromTheSpecifiedRange=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizeName",{get:function(){return"RadialRange"},enumerable:!0,configurable:!0}),r.prototype.drawRange=function(e,t){var r=t;if(null==r||0==this.startWidth||0==this.endWidth)return;var o=this.startValue;if(this.useValuesFromTheSpecifiedRange&&o<t.minimum)o=t.minimum;else if(o>t.maximum)return;var a=this.endValue;if(this.useValuesFromTheSpecifiedRange&&a>t.maximum)a=t.maximum;else if(a<t.minimum)return;var u=t.barGeometry.diameter,s,l;t.isReversed?(o=t.maximum-o,a=t.maximum-a,s=t.endWidth*u,l=t.startWidth*u):(s=t.startWidth*u,l=t.endWidth*u);var c=t.barGeometry.rectGeometry,h=t.barGeometry.center,p=t.barGeometry.radius,f=this.startWidth>=0?this.startWidth*u:0,d=this.endWidth>=0?this.endWidth*u:0,m=r.startAngle+t.getPosition(o)*r.sweepAngle,g=(t.getPosition(a)-t.getPosition(o))*r.sweepAngle,b=t.getPosition(o),y=t.getPosition(a),v=n.maxMinusMin(s,l),S,w,k,G;this.placement==i.Outside?(S=p,w=p,k=p+f,G=p+d):this.placement==i.Overlay?t.isUp?(S=p-(s+v*b-f)/2,w=p-(s+v*y-d)/2,k=p-(s+v*b+f)/2,G=p-(s+v*y+d)/2):(S=p-(s-v*b-f)/2,w=p-(s-v*y-d)/2,k=p-(s-v*b+f)/2,G=p-(s-v*y+d)/2):t.isUp?(S=p-(s+v*b),w=p-(s+v*y),k=p-(s+v*b+f),G=p-(s+v*y+d)):(S=p-(s-v*b),w=p-(s-v*y),k=p-(s-v*b+f),G=p-(s-v*y+d)),e.addRadialRangeGaugeGeom(c,this.brush,this.borderBrush,this.borderWidth,h,m,g,S,w,k,G)},r.prototype.createNew=function(){return new r},r}(o);r.StiRadialRange=a}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.StiGaugeElemenType,i=e.Report.Components.Gauge.Primitives.StiScaleRangeList,o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t)},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialRangeList},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elementType",{get:function(){return n.RadialElement},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.drawElement=function(e){var t=0;while(t<this.ranges.count){var r=this.ranges.getByIndex(t);null!=r&&r.drawRange(e,this.scale),t++}},r}(i);r.StiRadialRangeList=o}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.System.Drawing.Rectangle,n=e.Report.Gauge.Helpers.StiRectangleHelper,i=e.Report.Gauge.StiPlacement,o=e.System.Windows.Forms.Orientation,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.drawElement=function(e){var t=this.scale;if(null==t)return;var a=t.barGeometry.size,u=t.barGeometry.rectGeometry,s=this.getPointCollection();if(0==s.count)return;var l=this.skipValuesObj,c=this.skipIndicesObj,h=this.getActualSkin(),p=this.scale.scaleHelper.actualMinimum,f=this.scale.scaleHelper.actualMaximum,d=t.startWidth<t.endWidth,m,g;t.orientation==o.Horizontal?(m=u.width,g=a.height):(m=u.height,g=a.width);var b=t.barGeometry.getRestToLenght();g*=this.offset;for(var y=a.width*this.relativeWidth,v=a.height*this.relativeHeight,S=-1,w=0,k=s.keys;w<k.length;w++){var G=k[w];if(S++,G<p)continue;if(G>f)continue;if(this.checkTickValue(l,c,G,S))continue;if(null!=this.minimumValue&&G<this.minimumValue)continue;if(null!=this.maximumValue&&G>this.maximumValue)continue;var O=s.get(G)*m,P=void 0,B=void 0;if(t.orientation==o.Horizontal)if(B=t.isReversed?u.right-O-y:u.left+O-y/2,this.placement==i.Overlay)P=n.centerY(u)-v/2-g;else{var j=d?(1-s.get(G))*b:b*s.get(G);P=this.placement==i.Outside?u.top-v-g+j:u.bottom+g-j}else if(P=t.isReversed?u.top+O-v/2:u.bottom-O-v/2,this.placement==i.Overlay)B=n.centerX(u)-y/2-g;else{var j=d?(1-s.get(G))*b:b*s.get(G);B=this.placement==i.Outside?u.left-y-3-g+j:u.right+g+3-j}h.draw(e,this,new r(Math.round(B),Math.round(P),Math.trunc(y),Math.trunc(v)))}},t}(t.StiTickMarkBase);t.StiLinearTickMarkBase=a}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.System.Windows.Forms.Orientation,i=e.Report.Gauge.Helpers.StiRectangleHelper,o=e.Report.Gauge.StiPlacement,a=e.System.Drawing.Rectangle,u=e.Report.Engine.StiParser.StiParser,s=e.Report.Events.StiGetValueEventArgs,l=e.Report.Events.StiGetValueEvent,c=e.Report.Components.Gauge.Primitives.StiLinearTickMarkBase,h=e.Report.Expressions.StiExpression,p=e.Report.Gauge.Collections.StiCustomValuesCollection,f=function(c){function f(){var e=null!==c&&c.apply(this,arguments)||this;return e._valueObj=0,e._values=new p,e._getValueEvent=new l,e._value="",e}return __extends(f,c),f.prototype.saveToJsonObject=function(e){var t=c.prototype.saveToJsonObject.call(this,e);return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyJObject("GetValueEvent",this.getValueEvent.saveToJsonObject(e)),t.addPropertyJObject("Value",new h(this.value).saveToJsonObject(e)),t.addPropertyJObject("Values",this.values.saveToJsonObject(e)),t},f.prototype.loadFromJsonObject=function(e){c.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"GetSkipValuesEvent":var i=new l;i.loadFromJsonObject(n.value),this.getValueEvent=i;break;case"GetSkipIndicesEvent":var o=new h;o.loadFromJsonObject(n.value),this.value=o.value;break;case"Values":this.values.loadFromJsonObject(n.value);break}}},Object.defineProperty(f.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearTickMarkCustom},enumerable:!0,configurable:!0}),f.prototype.clone=function(){var e=c.prototype.clone.call(this);null!=this.value?e.value=this.value:e.value=null,e.values=new p;for(var t=0,r=this.values.list;t<r.length;t++){var n=r[t];e.values.add(n.clone())}return e},Object.defineProperty(f.prototype,"valueObj",{get:function(){return this._valueObj},set:function(e){this._valueObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"localizeName",{get:function(){return"LinearTickMarkCustom"},enumerable:!0,configurable:!0}),f.prototype.onGetValue=function(e){},f.prototype.invokeGetValue=function(e,r){try{if(this.onGetValue(r),e.scale.gauge.report.calculationMode==t.StiCalculationMode.Interpretation){var n=u.parseTextValue(this.value,e.scale.gauge);r.value=e.scale.gauge.report.toString2(n)}}catch(e){var i=String.stiFormat("Expression in GetValue property of '{0}' series from '{1}' chart can't be evaluated!","Indicator",this.scale.gauge.name)}},Object.defineProperty(f.prototype,"getValueEvent",{get:function(){return this._getValueEvent},set:function(e){this._getValueEvent=e},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),f.prototype.createNew=function(){return new f},f.prototype.prepareGaugeElement=function(){c.prototype.prepareGaugeElement.call(this);var t=new s;this.invokeGetValue(this,t),this.valueObj=e.Report.Gauge.Helpers.StiGaugeHelper.getFloatValueFromObject2(t.value,0)},f.prototype.drawElement=function(e){var t=this.scale;if(null==t)return;var u=t.barGeometry.size,s=t.barGeometry.rectGeometry,l=this.scale.barGeometry.getRestToLenght(),c=t.orientation==n.Horizontal?u.height:u.width;c*=this.offset;var h=this.scale.scaleHelper.actualMinimum,f=this.scale.scaleHelper.actualMaximum,d=this.getActualSkin(),m=this.skipValuesObj,g=this.skipIndicesObj,b=this.values;null!=b&&0!=b.count||(b=new p,b.add(new r.StiLinearTickMarkCustomValue(this.valueObj,this.offset,this.relativeWidth,this.relativeHeight,this.placement,d)));for(var y=-1,v=0,S=b.list;v<S.length;v++){var w=S[v];if(y++,w.value<h)continue;if(w.value>f)continue;if(this.checkTickValue(m,g,w.value,y))continue;if(null!=this.minimumValue&&w.value<this.minimumValue)continue;if(null!=this.maximumValue&&w.value>this.maximumValue)continue;var k=void 0,G=void 0,O=void 0,P=this.scale.getPosition(w.value),B=u.width*this.getRelativeWidth(w.relativeWidth),j=u.height*this.getRelativeHeight(w.relativeHeight);if(t.orientation==n.Horizontal)if(k=t.isReversed?s.width-s.width*P:s.width*P,this.getPlacement(w.placement)==o.Overlay)G=s.left+k-B/2,O=i.centerY(s)-j/2-c;else{var R=t.startWidth<t.endWidth?(1-P)*l:l*P;this.getPlacement(w.placement)==o.Outside?(G=s.left+k-B/2,O=s.top-j-c+R):(G=s.left+k-B/2,O=s.bottom+c-R)}else if(k=t.isReversed?s.height*P:s.height-s.height*P,this.getPlacement(w.placement)==o.Overlay)G=i.centerX(s)-B/2,O=s.top+k-j/2;else{var R=t.startWidth<t.endWidth?(1-P)*l:l*P;this.getPlacement(w.placement)==o.Outside?(G=s.left-B-1-c+R,O=s.top+k-j/2):(G=s.right+1+c-R,O=s.top+k-j/2)}(null==w.skin?d:w.skin).draw(e,this,new a(G,O,B,j))}},f}(c);r.StiLinearTickMarkCustom=f}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r;!function(t){var r=function(t){function r(e,r,n,i,o,a){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null);var u=t.call(this)||this;return u._relativeWidth=null,u._relativeHeight=null,u.value=e,u.offset=r,u._relativeWidth=n,u._relativeHeight=i,u.placement=o,u._skin=a,u}return __extends(r,t),r.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyNumber("RelativeHeight",this.relativeHeight,null),r.addPropertyNumber("RelativeWidth",this.relativeWidth,null),r},r.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var r=0,n=e.properties();r<n.length;r++){var i=n[r];switch(i.name){case"RelativeHeight":this.relativeHeight=i.value.toNumber();break;case"RelativeWidth":this.relativeWidth=i.value.toNumber();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return e.StiComponentId.StiLinearTickMarkCustomValue},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"relativeWidth",{get:function(){return this._relativeWidth},set:function(e){this._relativeWidth=e},enumerable:!0,configurable:!0}),r.prototype.get=function(){return this._relativeHeight},Object.defineProperty(r.prototype,"relativeHeight",{set:function(e){this._relativeHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"skin",{get:function(){return this._skin},set:function(e){this._skin=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizedName",{get:function(){return"LinearTickMarkCustom"},enumerable:!0,configurable:!0}),r.prototype.toString=function(){return String.stiFormat("Value={0}",this.value)},r.prototype.createNew=function(){return new r},r}(t.StiCustomValueBase);t.StiLinearTickMarkCustomValue=r}(r=t.Gauge||(t.Gauge={}))}(t=e.Components||(e.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiLinearTickMarkBase,i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearTickMarkMajor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.borderBrush=e.core.tickMarkMajorBorder,this.brush=e.core.tickMarkMajorBrush,this.borderWidth=e.core.tickMarkMajorBorderWidth)},Object.defineProperty(r.prototype,"localizeName",{get:function(){return"LinearTickMarkMajor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMajorCollections()},r}(n);r.StiLinearTickMarkMajor=i}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiLinearTickMarkBase,i=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipMajorValues=!0,t}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyBool("SkipMajorValues",this.skipMajorValues,!0),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"SkipMajorValues":this.skipMajorValues=i.value.toBoolean();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearTickMarkMinor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.borderBrush=e.core.tickMarkMinorBorder,this.brush=e.core.tickMarkMinorBrush,this.borderWidth=e.core.tickMarkMinorBorderWidth)},Object.defineProperty(r.prototype,"skipMajorValues",{get:function(){return this._skipMajorValues},set:function(e){this._skipMajorValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isSkipMajorValues",{get:function(){return this.skipMajorValues},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizeName",{get:function(){return"LinearTickMarkMinor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMinorCollections()},r}(n);r.StiLinearTickMarkMinor=i}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r;!function(t){var r;!function(t){var r=e.Report.Gauge.StiRadialPosition,n=e.Report.Gauge.StiPlacement,i=e.Report.Components.Gauge.Primitives.StiTickLabelBase,o=e.System.Enum,a=e.Report.Gauge.StiGaugeElemenType,u=e.Report.Painters.StiGaugeContextPainter,s=e.System.Drawing.Rectangle,l=e.System.Drawing.Point,c=function(t){function i(){var r=null!==t&&t.apply(this,arguments)||this;return r._labelRotationMode=e.Report.Gauge.StiLabelRotationMode.None,r._offsetAngle=0,r}return __extends(i,t),i.prototype.saveToJsonObject=function(r){var n=t.prototype.saveToJsonObject.call(this,r);return n.addPropertyNumber("OffsetAngle",this.offsetAngle,0),n.addPropertyEnum("LabelRotationMode",e.Report.Gauge.StiLabelRotationMode,this.labelRotationMode),n},i.prototype.loadFromJsonObject=function(r){t.prototype.loadFromJsonObject.call(this,r);for(var n=0,i=r.properties();n<i.length;n++){var a=i[n];switch(a.name){case"OffsetAngle":this.offsetAngle=a.value.toNumber();break;case"LabelRotationMode":this.labelRotationMode=o.parse(e.Report.Gauge.StiLabelRotationMode,a.value.toString());break}}},Object.defineProperty(i.prototype,"labelRotationMode",{get:function(){return this._labelRotationMode},set:function(e){this._labelRotationMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"offsetAngle",{get:function(){return this._offsetAngle},set:function(e){this._offsetAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"elementType",{get:function(){return a.RadialElement},enumerable:!0,configurable:!0}),i.prototype.drawElement=function(e){var t=this.scale;if(null==t)return;var r=this.scale.barGeometry.rectGeometry;if(r.width<=0||r.height<=0)return;var i=this.getPointCollection();if(0==i.count)return;var o=this.textFormat,a=this.scale.scaleHelper.actualMinimum,c=this.scale.scaleHelper.actualMaximum,h=t.barGeometry.center,p=this.scale.barGeometry.radius,f=this.scale.barGeometry.diameter,d=t.getSweepAngle(),m=t.startAngle,g=this.scale.scaleHelper.maxWidth,b=this.scale.scaleHelper.minWidth;g*=f,b*=f;for(var y=g-b,v=this.placement==n.Outside?p*(1+this.offset):p*(1-this.offset),S=this.skipValuesObj,w=this.skipIndicesObj,k=-1,G=0,O=i.keys;G<O.length;G++){var P=O[G];if(k++,P<a)continue;if(P>c)continue;if(this.checkTickValue(S,w,P,k))continue;if(null!=this.minimumValue&&P<this.minimumValue)continue;if(null!=this.maximumValue&&P>this.maximumValue)continue;var B=this.getTextForRender(P,o),j=u.changeFontSize(this.font,e.zoom),R=e.measureString(B,j),_=this.scale.isReversed?m+d-i.get(P)*d+this.offsetAngle:m+i.get(P)*d-this.offsetAngle,x=new l,W=0;if(this.placement==n.Outside){var T={ref:x};W=this.getMatrixRotation(e,h,R,this.labelRotationMode,v,_,T),x=T.ref}else{var M=void 0;M=this.placement==n.Overlay?this.scale.isUp?v-(b+y*i.get(P))/2-R.width/2:v-(g-y*i.get(P))/2-R.width/2:this.scale.isUp?v-b-y*i.get(P)-R.width:v-g+y*i.get(P)-R.width;var T={ref:x};W=this.getMatrixRotation(e,h,R,this.labelRotationMode,M,_,T),x=T.ref}e.addTextGaugeGeom(B,j,this.textBrush,new s(x.x,x.y,R.width,R.height),null);var C=-1;while(++C<W)e.addPopTranformGaugeGeom()}},i.prototype.getMatrixRotation=function(t,n,i,o,a,u,s){var c=s.ref,h=0;if(o==e.Report.Gauge.StiLabelRotationMode.Automatic)switch(this.getRadialPosition(u)){case r.TopCenter:case r.TopRight:case r.TopLeft:h=90;break;case r.BottomRight:case r.LeftCenter:case r.BottonLeft:h=-90;break;case r.BottomCenter:h=-u;break;case r.RightCenter:h=-u-90;break}else if(o==e.Report.Gauge.StiLabelRotationMode.None)h=-u;else if(o==e.Report.Gauge.StiLabelRotationMode.SurroundIn)switch(this.getRadialPosition(u)){case r.TopCenter:h=-u-180;break;default:h=-90;break}else h=90;c=new l(n.x+a,n.y-i.height/2);var p=0;return 0!=u&&(t.addPushMatrixGaugeGeom(u,n),p++),0!=h&&(t.addPushMatrixGaugeGeom(h,new l(c.x+i.width/2,c.y+i.height/2)),p++),s.ref=c,p},i.prototype.getRadialPosition=function(e){e+=90;while(e>360)e-=360;return 0==e||360==e?r.TopCenter:e>0&&e<90?r.TopRight:90==e?r.RightCenter:e>90&&e<180?r.BottomRight:180==e?r.BottomCenter:e>180&&e<270?r.BottonLeft:270==e?r.LeftCenter:r.TopLeft},i}(i);t.StiRadialTickLabelBase=c}(r=t.Primitives||(t.Primitives={}))}(r=t.Gauge||(t.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.Events.StiGetTextEventArgs,i=e.Report.Gauge.Events.StiGetTextEvent,o=e.Report.Gauge.StiPlacement,a=e.System.Drawing.Point,u=e.System.Drawing.Rectangle,s=e.Report.Painters.StiGaugeContextPainter,l=e.Report.Engine.StiParser.StiParser,c=e.Report.Events.StiGetValueEventArgs,h=e.Report.Gauge.StiGaugeElemenType,p=e.Report.Events.StiGetValueEvent,f=e.Report.Expressions.StiExpression,d=e.Report.Gauge.Collections.StiCustomValuesCollection,m=e.Report.Components.Gauge.Primitives.StiRadialTickLabelBase,g=function(m){function g(){var e=null!==m&&m.apply(this,arguments)||this;return e._valueObj=0,e._textObj=null,e._values=new d,e._getValueEvent=new p,e._getTextEvent=new i,e._value="",e._text="",e}return __extends(g,m),g.prototype.saveToJsonObject=function(e){var t=m.prototype.saveToJsonObject.call(this,e);return t.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),t.addPropertyJObject("GetValueEvent",this.getValueEvent.saveToJsonObject(e)),t.addPropertyJObject("GetTextEvent",this.getTextEvent.saveToJsonObject(e)),t.addPropertyJObject("Value",new f(this.value).saveToJsonObject(e)),t.addPropertyJObject("Text",new f(this.text).saveToJsonObject(e)),t.addPropertyJObject("Values",this.values.saveToJsonObject(e)),t},g.prototype.loadFromJsonObject=function(e){m.prototype.loadFromJsonObject.call(this,e);for(var t=0,r=e.properties();t<r.length;t++){var n=r[t];switch(n.name){case"GetValueEvent":var o=new p;o.loadFromJsonObject(n.value),this.getValueEvent=o;break;case"GetTextEvent":var a=new i;a.loadFromJsonObject(n.value),this.getTextEvent=a;break;case"Value":var u=new f;u.loadFromJsonObject(n.value),this.value=u.value;break;case"Text":var s=new f;s.loadFromJsonObject(n.value),this.text=s.value;break;case"Values":this.values.loadFromJsonObject(n.value);break}}},Object.defineProperty(g.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialTickLabelCustom},enumerable:!0,configurable:!0}),g.prototype.clone=function(){var e=m.prototype.clone.call(this);null!=this.value?e.value=this.value:e.value=null,null!=this.text?e.text=this.text:e.text=null,e.values=new d;for(var t=0,r=this.values.list;t<r.length;t++){var n=r[t];e.values.add(n.clone())}return e},Object.defineProperty(g.prototype,"valueObj",{get:function(){return this._valueObj},set:function(e){this._valueObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"textObj",{get:function(){return this._textObj},set:function(e){this._textObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"elementType",{get:function(){return h.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"localizeName",{get:function(){return"RadialTickLabelCustom"},enumerable:!0,configurable:!0}),g.prototype.onGetValue=function(e){},g.prototype.invokeGetValue=function(e,r){try{if(this.onGetValue(r),e.scale.gauge.report.calculationMode==t.StiCalculationMode.Interpretation){var n=l.parseTextValue(this.value,e.scale.gauge);r.value=e.scale.gauge.report.toString2(n)}}catch(e){var i=String.stiFormat("Expression in GetValue property of '{0}' series from '{1}' chart can't be evaluated!","Indicator",this.scale.gauge.name)}},Object.defineProperty(g.prototype,"getValueEvent",{get:function(){return this._getValueEvent},set:function(e){this._getValueEvent=e},enumerable:!0,configurable:!0}),g.prototype.onGetText=function(e){},g.prototype.invokeGetText=function(e,t){try{this.onGetText(t)}catch(e){var r=String.stiFormat("Expression in GetText property of '{0}' series from '{1}' chart can't be evaluated!","GaugeElement",this.scale.gauge.name)}},Object.defineProperty(g.prototype,"getTextEvent",{get:function(){return this._getTextEvent},set:function(e){this._getTextEvent=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),g.prototype.createNew=function(){return new g},g.prototype.prepareGaugeElement=function(){m.prototype.prepareGaugeElement.call(this);var t=new c;this.invokeGetValue(this,t),this.valueObj=e.Report.Gauge.Helpers.StiGaugeHelper.getFloatValueFromObject2(t.value,0);var r=new n;this.invokeGetText(this,r),this.textObj=r.value},g.prototype.drawElement=function(e){var t=this.scale;if(null==t)return;var n=this.scale.barGeometry.rectGeometry;if(n.width<=0||n.height<=0)return;var i=t.barGeometry.center,l=this.scale.barGeometry.radius,c=t.getSweepAngle(),h=t.startAngle,p=this.scale.scaleHelper.actualMinimum,f=this.scale.scaleHelper.actualMaximum,m=this.scale.scaleHelper.maxWidth,g=this.scale.scaleHelper.minWidth;m*=2*l,g*=2*l;var b=m-g,y=this.textFormat,v=m-g,S=this.skipValuesObj,w=this.skipIndicesObj,k=this.values;null!=k&&0!=k.count||(k=new d,k.add(new r.StiRadialTickLabelCustomValue(this.valueObj,this.textObj,this.offset,this.offsetAngle,this.labelRotationMode,this.placement)));for(var G=s.changeFontSize(this.font,e.zoom),O=-1,P=0,B=k.list;P<B.length;P++){var j=B[P];if(O++,j.value<p)continue;if(j.value>f)continue;if(this.checkTickValue(S,w,j.value,O))continue;if(null!=this.minimumValue&&j.value<this.minimumValue)continue;if(null!=this.maximumValue&&j.value>this.maximumValue)continue;var R=this.scale.getPosition(j.value),_=String.isNullOrEmpty(j.text)?String.empty:this.getTextForRender2(j.text,y),x=this.getPlacement(j.placement)==o.Outside?l*(1+this.getOffset(j.offset)):l*(1-this.getOffset(j.offset)),W=this.getTextForRender2(_,y),T=e.measureString(W,G),M=this.scale.isReversed?h+c-R*c+this.getOffsetAngle(j.offsetAngle):h+R*c-this.getOffsetAngle(j.offsetAngle),C=0,E=new a;if(this.getPlacement(j.placement)==o.Outside){var A={ref:E};C=this.getMatrixRotation(e,i,T,this.getLabelRotationMode(j.labelRotationMode),x,M,A),E=A.ref}else if(this.getPlacement(j.placement)==o.Overlay){var I=void 0;I=this.scale.isUp?x-(g+b*R)/2-T.width/2:x-(m-b*R)/2-T.width/2;var A={ref:E};C=this.getMatrixRotation(e,i,T,this.getLabelRotationMode(j.labelRotationMode),I,M,A),E=A.ref}else{var I=0;I=this.scale.isUp?x-g-b*R-T.width:x-m+b*R-T.width;var A={ref:E};C=this.getMatrixRotation(e,i,T,this.getLabelRotationMode(j.labelRotationMode),I,M,A),E=A.ref}e.addTextGaugeGeom(W,G,this.textBrush,new u(E.x,E.y,T.width,T.height),null);for(var V=0;V<C;V++)e.addPopTranformGaugeGeom()}},g.prototype.getOffsetAngle=function(e){return null==e?this.offsetAngle:e},g.prototype.getLabelRotationMode=function(e){return null==e?this.labelRotationMode:e},g}(m);r.StiRadialTickLabelCustom=g}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r;!function(t){var r=function(t){function r(e,r,n,i,o,a){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null);var u=t.call(this)||this;return u._text=null,u._offsetAngle=null,u._labelRotationMode=null,u.value=e,u._text=r,u.offset=n,u._offsetAngle=i,u._labelRotationMode=o,u.placement=a,u}return __extends(r,t),r.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyString("Text",this.text),r.addPropertyNumber("OffsetAngle",this.offsetAngle,null),r},r.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var r=0,n=e.properties();r<n.length;r++){var i=n[r];switch(i.name){case"Text":this.text=i.value.toString();break;case"OffsetAngle":this.offsetAngle=i.value.toNumber();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return e.StiComponentId.StiRadialTickLabelCustomValue},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"offsetAngle",{get:function(){return this._offsetAngle},set:function(e){this._offsetAngle=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"labelRotationMode",{get:function(){return this._labelRotationMode},set:function(e){this._labelRotationMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizedName",{get:function(){return"RadialTickLabelCustom"},enumerable:!0,configurable:!0}),r.prototype.toString=function(){return String.stiFormat("Value={0}, Text={1}",this.value,this.text)},r.prototype.createNew=function(){return new r},r}(t.StiCustomValueBase);t.StiRadialTickLabelCustomValue=r}(r=t.Gauge||(t.Gauge={}))}(t=e.Components||(e.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.StiGaugeElemenType,i=e.Report.Components.Gauge.Primitives.StiRadialTickLabelBase,o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialTickLabelMajor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.textBrush=e.core.tickLabelMajorTextBrush,this.font=e.core.tickLabelMajorFont)},Object.defineProperty(r.prototype,"elementType",{get:function(){return n.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizeName",{get:function(){return"RadialTickLabelMajor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMajorCollections()},r}(i);r.StiRadialTickLabelMajor=o}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.StiGaugeElemenType,i=e.Report.Components.Gauge.Primitives.StiRadialTickLabelBase,o=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipMajorValues=!0,t}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyBool("SkipMajorValues",this.skipMajorValues,!0),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"SkipMajorValues":this.skipMajorValues=i.value.toBoolean();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiRadialTickLabelMinor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.textBrush=e.core.tickLabelMinorTextBrush,this.font=e.core.tickLabelMinorFont)},Object.defineProperty(r.prototype,"skipMajorValues",{get:function(){return this._skipMajorValues},set:function(e){this._skipMajorValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isSkipMajorValues",{get:function(){return this._skipMajorValues},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elementType",{get:function(){return n.RadialElement},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizeName",{get:function(){return"RadialTickLabelMinor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMinorCollections()},r}(i);r.StiRadialTickLabelMinor=o}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(n){var i=e.System.Windows.Forms.Orientation,o=e.System.Drawing.FontStyle,a=e.Report.Components.Gauge.StiLinearMarker,u=e.Report.Components.Gauge.StiLinearRangeList,s=e.Report.Components.Gauge.StiLinearRange,l=e.Report.Components.Gauge.StiLinearTickMarkCustom,c=e.Report.Components.Gauge.StiRadialIndicatorRangeInfo,h=e.Report.Components.Gauge.StiLinearIndicatorRangeInfo,p=e.Report.Components.Gauge.StiLinearTickMarkMinor,f=e.Report.Components.Gauge.StiStateIndicator,d=e.Report.Components.Gauge.StiStateIndicatorFilter,m=e.Report.Components.Gauge.StiRadialRangeList,g=e.Report.Components.Gauge.StiRadialRange,b=e.Report.Components.Gauge.StiRadialTickMarkCustom,y=e.Report.Components.Gauge.StiRadialTickLabelCustom,v=e.Report.Components.Gauge.StiRadialTickMarkCustomValue,S=e.Report.Components.Gauge.StiRadialTickLabelCustomValue,w=e.System.Drawing.Rectangle,k=e.System.Globalization.CultureInfo,G=e.Base.Drawing.StiGradientBrush,O=e.System.Drawing.Point,P=e.Report.Components.Gauge.StiLinearBar,B=e.Report.Components.Gauge.StiLinearTickLabelMajor,j=e.Report.Components.Gauge.StiLinearTickMarkMajor,R=e.Report.Components.Gauge.StiLinearScale,_=e.Report.Components.Gauge.StiRadialMarker,x=e.System.Drawing.Font,W=e.Base.Drawing.StiEmptyBrush,T=e.Report.Components.Gauge.StiRadialBar,M=e.Report.Components.Gauge.StiNeedle,C=e.Report.Components.Gauge.StiRadialTickLabelMajor,E=e.Report.Components.Gauge.StiRadialTickMarkMinor,A=e.Report.Components.Gauge.StiRadialTickMarkMajor,I=e.System.Drawing.Color,V=e.Base.Drawing.StiSolidBrush,F=e.Report.Components.Gauge.StiRadialScale,H=e.System.TimeSpan,N=e.System.Collections.Hashtable,L=function(){function e(){}return e.getFloatValueFromObject=function(e,t){var r=t.minimum;if(null!=e)if(e.sti_is(String)){var n=k.currentCulture;k.currentCulture=new k("en-US"),r=e.toNumber(),isNaN(r)?r=t.minimum:r<t.minimum?r=t.minimum:r>t.maximum&&(r=t.maximum),k.currentCulture=n}else r=e.toNumber();return r},e.getFloatValueFromObject2=function(e,t){var r=t;if(null!=e)if(e.sti_is(String)){var n=k.currentCulture;k.currentCulture=new k("en-US"),r=e.toNumber(),isNaN(r)&&(r=t),k.currentCulture=n}else r=e.toNumber();return r},e.getFloatArrayValueFromString=function(e){var t=e;if(String.isNullOrEmpty(t))return null;var r=t.split(";"),n=[],i=k.currentCulture;k.currentCulture=new k("en-US");var o=-1;while(++o<r.length){var a=r[o].toNumber();if(isNaN(a)){n=null;break}n[o]=a}return k.currentCulture=i,n},e.initializeGauge=function(e,t,r){if(e.scales.clear(),null!=e.page){var n=e.page.unit;e.clientRectangle=new w(e.left,e.top,n.convertFromHInches(t),n.convertFromHInches(r))}},e.initializeName=function(e,r){if(String.isNullOrEmpty(e.name)){var n=t.StiNameCreation.createSimpleName(r,t.StiNameCreation.generateName(e));e.name=n;var i=-1;while(++i<e.scales.count){var o=new N,a=e.scales.getByIndex(i),u=-1;while(++u<a.items.count){var s=a.items.getByIndex(u),l=s.getStiType(),c=0;o.containsKey(l)&&(c=Math.trunc(o.get(l))),c++,o.set(l,c)}}}},e.checkGaugeName=function(e){var t=e.name,r=-1;while(++r<e.scales.count){var n=new N,i=e.scales.getByIndex(r),o=-1;while(++o<i.items.count){var a=i.items.getByIndex(o),u=a.getStiType(),s=0;n.containsKey(u)&&(s=Math.trunc(n.get(u))),s++,n.set(u,s)}}},e.simpleRadialGauge=function(e,t){this.initializeGauge(e,250,250);var n=new F;n.startAngle=0,n.sweepAngle=340,n.startWidth=.05,n.endWidth=.05,n.minimum=0,n.maximum=100,n.majorInterval=10,n.minorInterval=5,n.brush=new V(I.fromArgb(238,238,238));var i=new A;i.placement=r.StiPlacement.Overlay,i.offsetAngle=-2,i.relativeWidth=.05,i.relativeHeight=.02,i.skin=r.StiTickMarkSkin.Rectangle,i.brush=new V(I.black);var o=new E;o.placement=r.StiPlacement.Overlay,o.relativeWidth=.01,o.relativeHeight=.01,o.skin=r.StiTickMarkSkin.Rectangle;var a=new C,u=new M;u.relativeHeight=.06,u.relativeWidth=.45,u.startWidth=.1,u.endWidth=1,u.capBrush=new V(I.white),u.capBorderBrush=new V(I.fromArgb(244,67,54)),u.capBorderWidth=2,u.brush=new V(I.fromArgb(244,67,54)),u.value="60",n.items.add(i),n.items.add(o),n.items.add(a),n.items.add(u),e.scales.add(n),this.initializeName(e,t)},e.radialTwoScalesGauge=function(e,t){this.initializeGauge(e,250,250);var n=new F;n.startAngle=270,n.sweepAngle=360,n.startWidth=.05,n.endWidth=.05,n.minimum=0,n.maximum=60,n.radius=.5,n.majorInterval=10,n.minorInterval=1,n.brush=new V(I.fromArgb(238,238,238));var i=new A;i.placement=r.StiPlacement.Overlay,i.relativeWidth=.05,i.offsetAngle=-2,i.relativeHeight=.03,i.skin=r.StiTickMarkSkin.Rectangle,i.brush=new V(I.black);var o=new C;o.minimumValue=1,o.font=new x("Arial",7),n.items.add(i),n.items.add(o),e.scales.add(n);var a=new F;a.startAngle=270,a.sweepAngle=360,a.startWidth=.05,a.endWidth=.05,a.minimum=0,a.maximum=12,a.radius=.75,a.majorInterval=1,a.minorInterval=0,a.brush=new V(I.fromArgb(238,238,238));var u=new A;u.minimumValue=1,u.placement=r.StiPlacement.Overlay,u.offsetAngle=-2,u.relativeHeight=.03,u.relativeWidth=.05,u.skin=r.StiTickMarkSkin.Rectangle,u.brush=new V(I.black),u.borderBrush=new V(I.white),u.borderWidth=3;var s=new C;s.minimumValue=1;var l=new M;l.value="2",l.offsetNeedle=.15,l.startWidth=.05,l.endWidth=.5,l.relativeHeight=.12,l.relativeWidth=.6,l.capBrush=new V(I.fromArgb(244,67,54)),l.brush=new V(I.fromArgb(244,67,54));var c=new M;c.value="10",c.offsetNeedle=.15,c.startWidth=.05,c.endWidth=.5,c.relativeHeight=.08,c.relativeWidth=.4,c.capBrush=new V(I.fromArgb(3,169,244)),c.brush=new V(I.fromArgb(3,169,244)),a.items.add(u),a.items.add(s),a.items.add(l),a.items.add(c),e.scales.add(a),this.initializeName(e,t)},e.radialBarGauge=function(e,t){this.initializeGauge(e,250,250);var n=new F;n.startAngle=120,n.sweepAngle=300,n.startWidth=.05,n.endWidth=.05,n.minimum=0,n.maximum=180,n.majorInterval=90,n.minorInterval=10,n.brush=new V(I.fromArgb(238,238,238));var i=new A;i.placement=r.StiPlacement.Inside,i.offsetAngle=-1,i.relativeWidth=.05,i.relativeHeight=.015,i.skin=r.StiTickMarkSkin.Rectangle,i.brush=new V(I.black);var o=new E;o.placement=r.StiPlacement.Inside,o.relativeWidth=.03,o.relativeHeight=.005,o.skin=r.StiTickMarkSkin.Rectangle,o.brush=new V(I.black);var a=new C;a.placement=r.StiPlacement.Inside,a.minimumValue=1,a.offset=.15;var u=new T;u.startWidth=.1,u.endWidth=.1,u.offset=.1,u.placement=r.StiPlacement.Outside,u.brush=new V(I.fromArgb(0,150,136)),u.value="90";var s=new M;s.relativeHeight=.3,s.relativeWidth=.4,s.startWidth=.1,s.endWidth=1,s.capBrush=new W,s.brush=new W,s.textBrush=new V(I.fromArgb(0,150,136)),s.font=new x("Arial",36),s.value="90",n.items.add(i),n.items.add(o),n.items.add(a),n.items.add(u),n.items.add(s),e.scales.add(n),this.initializeName(e,t)},e.simpleTwoBarGauge=function(e,t){this.initializeGauge(e,250,250);var n=new F;n.minimum=0,n.maximum=180,n.majorInterval=20,n.minorInterval=10,n.startWidth=.05,n.endWidth=.05,n.startAngle=120,n.sweepAngle=300,n.brush=new V(I.fromArgb(238,238,238));var i=new A;i.placement=r.StiPlacement.Overlay,i.offsetAngle=-1,i.relativeWidth=.05,i.relativeHeight=.02,i.skin=r.StiTickMarkSkin.Rectangle,i.brush=new V(I.black),i.borderBrush=new V(I.white),i.borderWidth=1;var o=new E;o.placement=r.StiPlacement.Overlay,o.relativeWidth=.01,o.relativeHeight=.01,o.skin=r.StiTickMarkSkin.Diamond,o.brush=new V(I.black),o.borderBrush=new V(I.gray),o.borderWidth=1;var a=new C;a.placement=r.StiPlacement.Inside,a.offset=.15;var u=new T;u.startWidth=.05,u.endWidth=.05,u.offset=0,u.placement=r.StiPlacement.Outside,u.brush=new V(I.fromArgb(3,169,244)),u.value="80";var s=new T;s.startWidth=.05,s.endWidth=.05,s.offset=0,s.placement=r.StiPlacement.Inside,s.brush=new V(I.fromArgb(255,235,59)),s.value="120";var l=new _;l.value="100",l.offset=.25,l.relativeHeight=.05,l.relativeWidth=.05,l.skin=r.StiMarkerSkin.TriangleRight,l.brush=new V(I.fromArgb(76,175,80)),n.items.add(i),n.items.add(o),n.items.add(a),n.items.add(u),n.items.add(s),n.items.add(l),e.scales.add(n),this.initializeName(e,t)},e.defaultRadialGauge=function(e,t){this.initializeGauge(e,250,250);var n=new F;n.startAngle=0,n.sweepAngle=340,n.startWidth=.05,n.endWidth=.05,n.minimum=0,n.maximum=100,n.majorInterval=10,n.minorInterval=5;var i=new A;i.placement=r.StiPlacement.Overlay,i.offsetAngle=-2,i.relativeWidth=.06,i.relativeHeight=.03,i.skin=r.StiTickMarkSkin.TriangleRight;var o=new C,a=new M;a.relativeHeight=.14,a.relativeWidth=.5,n.items.add(i),n.items.add(o),n.items.add(a),e.scales.add(n),this.initializeName(e,t)},e.defaultLinearGauge=function(e,t){this.initializeGauge(e,120,240);var n=new R;n.startWidth=.1,n.endWidth=.1,n.maximum=100,n.minorInterval=5,n.borderBrush=new V(I.fromArgb(158,158,158)),n.brush=new V(I.fromArgb(238,238,238));var i=new j;i.borderBrush=new W,i.borderWidth=0,i.relativeHeight=.005,i.relativeWidth=.05,i.brush=new V(I.fromArgb(158,158,158));var o=new B;o.placement=r.StiPlacement.Inside,o.textBrush=new V(I.fromArgb(158,158,158));var a=new P;a.startWidth=.1,a.endWidth=.1,a.brush=new V(I.fromArgb(0,150,136)),a.value="65",n.items.add(i),n.items.add(o),n.items.add(a),e.scales.add(n),this.initializeName(e,t)},e.linearGaugeRangeList=function(e,t){this.initializeGauge(e,120,240);var n=new R;n.startWidth=.1,n.endWidth=.1,n.maximum=100,n.minorInterval=5,n.borderBrush=new V(I.fromArgb(158,158,158)),n.brush=new V(I.fromArgb(238,238,238));var i=new u,o=new s;o.startValue=0,o.endValue=50,o.brush=new G(I.fromArgb(205,220,57),I.fromArgb(139,195,74),90),o.startWidth=.07,o.endWidth=.07;var l=new s;l.startValue=45,l.endValue=75,l.brush=new G(I.fromArgb(255,193,7),I.fromArgb(255,235,59),90),l.startWidth=.07,l.endWidth=.07;var c=new s;c.startValue=75,c.endValue=100,c.brush=new G(I.fromArgb(255,152,0),I.fromArgb(255,152,0),90),c.startWidth=.07,c.endWidth=.07,i.ranges.add(o),i.ranges.add(l),i.ranges.add(c);var h=new B;h.placement=r.StiPlacement.Inside,h.textBrush=new V(I.fromArgb(158,158,158));var f=new j;f.borderBrush=new W,f.borderWidth=0,f.relativeHeight=.005,f.relativeWidth=.05,f.brush=new V(I.fromArgb(158,158,158));var d=new p;d.placement=r.StiPlacement.Overlay,d.relativeWidth=.08,d.relativeHeight=.006,d.borderBrush=new W;var m=new a;m.relativeWidth=.18,m.relativeHeight=.04,m.placement=r.StiPlacement.Overlay,m.brush=new V(I.fromArgb(205,220,57)),n.items.add(i),n.items.add(h),n.items.add(f),n.items.add(d),n.items.add(m),e.scales.add(n),this.initializeName(e,t)},e.bulletGraphsGreen=function(e,t){this.initializeGauge(e,300,100);var n=new R;n.relativeHeight=.94,n.startWidth=.01,n.endWidth=.01,n.maximum=100,n.majorInterval=20,n.orientation=i.Horizontal,n.brush=new W,n.borderBrush=new W;var o=new u,a=0,c=0;while(++c<11){var h=new s;h.startValue=a,a+=10,h.endValue=a,h.startWidth=.5,h.endWidth=.5,h.placement=r.StiPlacement.Overlay,h.borderBrush=new V(I.fromArgb(150,139,138,135)),h.brush=new V(c>=1&&c<=3?I.fromArgb(165,214,167):c>=4&&c<=7?I.fromArgb(76,175,80):I.fromArgb(46,125,50)),o.ranges.add(h)}var p=new B;p.offset=.25;var f=new l;f.placement=r.StiPlacement.Overlay,f.relativeWidth=.015,f.relativeHeight=.3,f.brush=new G(I.fromArgb(100,100,100),I.fromArgb(10,10,10),90),f.valueObj=80;var d=new P;d.brush=new V(I.black),d.startWidth=.1,d.endWidth=.1,n.items.add(o),n.items.add(p),n.items.add(f),n.items.add(d),e.scales.add(n),this.initializeName(e,t)},e.halfDonutsGauge=function(e,t){this.initializeGauge(e,280,165);var n=new F;n.startAngle=180,n.sweepAngle=180,n.minimum=0,n.maximum=150,n.radius=.75,n.center=new O(.5,.8),n.radiusMode=r.StiRadiusMode.Width,n.skin=r.StiRadialScaleSkin.Empty;var i=new T;i.borderBrush=new W,i.borderWidth=0,i.startWidth=.3,i.endWidth=.3,i.emptyBrush=new G(I.fromArgb(221,221,221),I.fromArgb(240,240,240),90),i.useRangeColor=!0,i.value="60";var o=new c;o.value=0,o.brush=new V(I.fromArgb(139,195,74));var a=new c;a.value=50,a.brush=new V(I.fromArgb(255,235,59));var u=new c;u.value=100,u.brush=new V(I.fromArgb(244,67,54)),i.rangeList.add(o),i.rangeList.add(a),i.rangeList.add(u);var s=new M;s.relativeHeight=.05,s.relativeWidth=.4,s.startWidth=.1,s.endWidth=.2,s.capBrush=new V(I.white),s.capBorderBrush=new V(I.fromArgb(0,150,136)),s.capBorderWidth=2,s.brush=new V(I.fromArgb(0,150,136)),s.borderWidth=0,s.textBrush=new V(I.fromArgb(0,150,136)),s.value="60",n.items.add(i),n.items.add(s),e.scales.add(n),this.initializeName(e,t)},e.halfDonutsGauge2=function(e,t){this.initializeGauge(e,280,165);var n=new F;n.startAngle=180,n.sweepAngle=180,n.minimum=0,n.maximum=100,n.radius=.75,n.center=new O(.5,.8),n.radiusMode=r.StiRadiusMode.Width,n.skin=r.StiRadialScaleSkin.Empty;var i=new T;i.borderBrush=new W,i.startWidth=.3,i.endWidth=.3,i.brush=new V(I.fromArgb(79,134,194)),i.emptyBrush=new G(I.fromArgb(221,221,221),I.fromArgb(240,240,240),90),i.emptyBorderBrush=new V(I.fromArgb(79,134,194)),i.emptyBorderWidth=3,n.items.add(i),e.scales.add(n),this.initializeName(e,t)},e.radialGaugeHalfCircleN=function(e,t){this.initializeGauge(e,260,150);var n=new F;n.radiusMode=r.StiRadiusMode.Width,n.skin=r.StiRadialScaleSkin.RadialScaleHalfCircleN,n.startAngle=180,n.sweepAngle=180,n.maximum=100,n.center=new O(.5,.85),n.radius=.75,n.startWidth=.005,n.endWidth=.005,n.majorInterval=10,n.minorInterval=5,n.brush=new V(I.gray);var i=new A;i.placement=r.StiPlacement.Overlay,i.offset=.035,i.relativeWidth=.05,i.relativeHeight=.007,i.brush=new V(I.gray),i.borderBrush=new W;var o=new E;o.placement=r.StiPlacement.Overlay,o.offset=.017,o.relativeWidth=.03,o.relativeHeight=.007,o.brush=new V(I.lightGray),o.borderBrush=new W;var a=new C;a.labelRotationMode=r.StiLabelRotationMode.Automatic,a.textBrush=new V(I.black);var u=new M;u.value="45",u.capBrush=new V(I.fromArgb(3,169,244)),u.brush=new V(I.fromArgb(3,169,244)),u.startWidth=.1,u.endWidth=.99,u.relativeWidth=.5,u.relativeHeight=.04,n.items.add(i),n.items.add(o),n.items.add(a),n.items.add(u),e.scales.add(n),this.initializeName(e,t)},e.radialGaugeHalfCircleS=function(e,t){this.initializeGauge(e,260,150);var n=new F;n.radiusMode=r.StiRadiusMode.Width,n.skin=r.StiRadialScaleSkin.RadialScaleHalfCircleS,n.startAngle=0,n.sweepAngle=180,n.maximum=100,n.center=new O(.5,.15),n.radius=.75,n.startWidth=.005,n.endWidth=.005,n.majorInterval=10,n.minorInterval=5,n.brush=new V(I.gray);var i=new A;i.placement=r.StiPlacement.Overlay,i.offset=.035,i.relativeWidth=.05,i.relativeHeight=.007,i.brush=new V(I.gray),i.borderBrush=new W;var o=new E;o.placement=r.StiPlacement.Overlay,o.offset=.017,o.relativeWidth=.03,o.relativeHeight=.007,o.brush=new V(I.lightGray),o.borderBrush=new W;var a=new C;a.labelRotationMode=r.StiLabelRotationMode.Automatic,a.textBrush=new V(I.black);var u=new M;u.value="45",u.capBrush=new V(I.fromArgb(3,169,244)),u.brush=new V(I.fromArgb(3,169,244)),u.startWidth=.1,u.endWidth=.99,u.relativeWidth=.5,u.relativeHeight=.04,n.items.add(i),n.items.add(o),n.items.add(a),n.items.add(u),e.scales.add(n),this.initializeName(e,t)},e.radialGaugeQuarterCircleNW=function(e,t){this.radialGaugeQuarterCircle(e,t,r.StiRadialScaleSkin.RadialScaleQuarterCircleNW,180,new O(.9,.9))},e.radialGaugeQuarterCircleNE=function(e,t){this.radialGaugeQuarterCircle(e,t,r.StiRadialScaleSkin.RadialScaleQuarterCircleNE,270,new O(.1,.9))},e.radialGaugeQuarterCircleSW=function(e,t){this.radialGaugeQuarterCircle(e,t,r.StiRadialScaleSkin.RadialScaleQuarterCircleSW,90,new O(.9,.1))},e.radialGaugeQuarterCircleSE=function(e,t){this.radialGaugeQuarterCircle(e,t,r.StiRadialScaleSkin.RadialScaleQuarterCircleSE,0,new O(.1,.1))},e.radialGaugeQuarterCircle=function(e,t,n,i,o){this.initializeGauge(e,250,250);var a=new F;a.skin=n,a.startAngle=i,a.sweepAngle=90,a.maximum=100,a.center=o,a.radius=1.5,a.startWidth=.005,a.endWidth=.005,a.majorInterval=10,a.minorInterval=5;var u=new A;u.placement=r.StiPlacement.Overlay,u.offset=.045,u.relativeWidth=.03,u.relativeHeight=.004,u.borderBrush=new W,u.brush=new V(I.gray);var s=new E;s.placement=r.StiPlacement.Overlay,s.offset=.04,s.relativeWidth=.02,s.relativeHeight=.004,s.borderBrush=new W,s.brush=new V(I.gray);var l=new C;l.labelRotationMode=r.StiLabelRotationMode.Automatic;var c=new M;c.value="45",c.capBrush=new V(I.fromArgb(244,67,54)),c.brush=new V(I.fromArgb(244,67,54)),c.startWidth=.1,c.endWidth=.99,c.relativeWidth=.5,c.relativeHeight=.04,a.items.add(u),a.items.add(s),a.items.add(l),a.items.add(c),e.scales.add(a),this.initializeName(e,t)},e.horizontalThermometer=function(e,t){this.initializeGauge(e,300,50);var n=new R;n.orientation=i.Horizontal,n.relativeHeight=.85,n.left=.03,n.startWidth=.17,n.endWidth=.17,n.maximum=80,n.majorInterval=20,n.minorInterval=4;var o=new P;o.skin=r.StiLinearBarSkin.HorizontalThermometer,o.placement=r.StiPlacement.Outside,o.startWidth=.2,o.endWidth=.2,o.useRangeColor=!0;var a=new h;a.value=0,a.brush=new G(I.fromArgb(137,188,41),I.fromArgb(111,163,14),90);var u=new h;u.value=40,u.brush=new G(I.fromArgb(217,173,45),I.fromArgb(222,166,0),90);var s=new h;s.value=65,s.brush=new G(I.fromArgb(208,49,52),I.fromArgb(186,6,10),90),o.rangeList.add(a),o.rangeList.add(u),o.rangeList.add(s);var l=new j;l.placement=r.StiPlacement.Overlay,l.brush=new V(I.fromArgb(159,159,159)),l.relativeWidth=.01,l.relativeHeight=.18,l.offset=-.1;var c=new p;c.brush=new V(I.fromArgb(159,159,159)),c.relativeWidth=.005,c.relativeHeight=.1,c.offset=-.14;var m=new B;m.placement=r.StiPlacement.Inside,m.offset=.11,m.textBrush=new V(I.fromArgb(83,85,86)),m.font=new x("Arial",10);var g=new f;g.left=.02,g.top=.07,g.relativeWidth=.083,g.relativeHeight=.5;var b=new d;b.startValue=0,b.endValue=40,b.brush=new V(I.fromArgb(112,156,28));var y=new d;y.startValue=40,y.endValue=65,y.brush=new V(I.fromArgb(225,174,25));var v=new d;v.startValue=65,v.endValue=100,v.brush=new V(I.fromArgb(194,45,48)),g.filters.add(b),g.filters.add(y),g.filters.add(v),n.items.add(o),n.items.add(l),n.items.add(c),n.items.add(m),n.items.add(g),e.scales.add(n),this.initializeName(e,t)},e.verticalThermometer=function(e,t){this.initializeGauge(e,50,300);var n=new R;n.orientation=i.Vertical,n.relativeHeight=.85,n.startWidth=.17,n.endWidth=.17,n.maximum=80,n.majorInterval=20,n.minorInterval=4;var o=new P;o.skin=r.StiLinearBarSkin.VerticalThermometer,o.placement=r.StiPlacement.Outside,o.startWidth=.2,o.endWidth=.2,o.useRangeColor=!0;var a=new h;a.value=0,a.brush=new G(I.fromArgb(137,188,41),I.fromArgb(111,163,14),0);var u=new h;u.value=40,u.brush=new G(I.fromArgb(217,173,45),I.fromArgb(222,166,0),0);var s=new h;s.value=65,s.brush=new G(I.fromArgb(208,49,52),I.fromArgb(186,6,10),0),o.rangeList.add(a),o.rangeList.add(u),o.rangeList.add(s);var l=new j;l.placement=r.StiPlacement.Overlay,l.brush=new V(I.fromArgb(159,159,159)),l.relativeWidth=.18,l.relativeHeight=.01,l.offset=-.1;var c=new p;c.brush=new V(I.fromArgb(159,159,159)),c.relativeWidth=.1,c.relativeHeight=.005,c.offset=-.14;var m=new B;m.placement=r.StiPlacement.Inside,m.offset=.07,m.textBrush=new V(I.fromArgb(83,85,86)),m.font=new x("Arial",10);var g=new f;g.left=.05,g.top=.9,g.relativeWidth=.5,g.relativeHeight=.083;var b=new d;b.startValue=0,b.endValue=40,b.brush=new V(I.fromArgb(112,156,28));var y=new d;y.startValue=40,y.endValue=65,y.brush=new V(I.fromArgb(225,174,25));var v=new d;v.startValue=65,v.endValue=100,v.brush=new V(I.fromArgb(194,45,48)),g.filters.add(b),g.filters.add(y),g.filters.add(v),n.items.add(o),n.items.add(l),n.items.add(c),n.items.add(m),n.items.add(g),e.scales.add(n),this.initializeName(e,t)},e.lightSpeedometer=function(e,t){this.initializeGauge(e,350,350);var n=new F;n.skin=r.StiRadialScaleSkin.Empty,n.radius=.65,n.startAngle=115,n.sweepAngle=310,n.startWidth=.03,n.endWidth=.03,n.brush=new V(I.fromArgb(81,84,101)),n.majorInterval=10,n.minorInterval=2,n.maximum=100;var i=new m,a=new g;a.startValue=40,a.endValue=101.2,a.startWidth=.04,a.endWidth=.04,a.placement=r.StiPlacement.Inside,a.useValuesFromTheSpecifiedRange=!1,a.brush=new G(I.fromArgb(213,227,118),I.fromArgb(118,71,24),90),a.borderBrush=new V(I.white),i.ranges.add(a);var u=new A;u.skipValues="100",u.relativeHeight=.03,u.relativeWidth=.055,u.brush=new V(I.fromArgb(81,84,101));var s=new E;s.offset=.04,s.relativeHeight=.01,s.relativeWidth=.03,s.brush=new V(I.fromArgb(81,84,101));var l=new b;l.valueObj=100,l.offset=-.057,l.relativeWidth=.08,l.relativeHeight=.03,l.brush=new V(I.fromArgb(81,84,101));var c=new C;c.labelRotationMode=r.StiLabelRotationMode.None,c.offset=.14,c.textBrush=new V(I.black),c.font=new x("Arial",13,o.Bold);var h=new M;h.brush=new V(I.fromArgb(250,250,250)),h.borderBrush=new V(I.fromArgb(163,163,163)),h.borderWidth=1,h.placement=r.StiPlacement.Outside,h.relativeWidth=.63,h.relativeHeight=.14,h.skin=r.StiNeedleSkin.SpeedometerNeedle,n.items.add(i),n.items.add(u),n.items.add(s),n.items.add(l),n.items.add(c),n.items.add(h),e.scales.add(n),this.initializeName(e,t)},e.darkSpeedometer=function(e,t){this.initializeGauge(e,350,350);var n=new F;n.skin=r.StiRadialScaleSkin.Empty,n.radius=.65,n.startAngle=115,n.sweepAngle=310,n.startWidth=.03,n.endWidth=.03,n.brush=new V(I.fromArgb(81,84,101)),n.majorInterval=10,n.minorInterval=2,n.maximum=200;var i=new m,o=new g;o.startValue=0,o.endValue=60,o.borderWidth=1,o.startWidth=.06,o.endWidth=.06,o.placement=r.StiPlacement.Overlay,o.brush=new G(I.fromArgb(101,134,101),I.fromArgb(66,228,66),90);var a=new g;a.startValue=60,a.endValue=100,a.borderWidth=1,a.startWidth=.06,a.endWidth=.06,a.placement=r.StiPlacement.Overlay,a.brush=new G(I.fromArgb(255,255,0),I.fromArgb(143,174,126),90);var u=new g;u.startValue=100,u.endValue=140,u.borderWidth=1,u.startWidth=.06,u.endWidth=.06,u.placement=r.StiPlacement.Overlay,u.brush=new G(I.fromArgb(255,255,0),I.fromArgb(156,156,124),90);var s=new g;s.startValue=140,s.endValue=200,s.borderWidth=1,s.startWidth=.06,s.endWidth=.06,s.placement=r.StiPlacement.Overlay,s.brush=new G(I.fromArgb(125,86,80),I.fromArgb(208,45,44),90),i.ranges.add(o),i.ranges.add(a),i.ranges.add(u),i.ranges.add(s);var l=new A;l.placement=r.StiPlacement.Overlay,l.offset=.04,l.offsetAngle=-2,l.relativeWidth=.1,l.relativeHeight=.035,l.skin=r.StiTickMarkSkin.TriangleLeft;var c=new E;c.placement=r.StiPlacement.Overlay,c.skipMajorValues=!1,c.relativeWidth=.04,c.relativeHeight=.018,c.skin=r.StiTickMarkSkin.Rectangle,c.skipIndices="0;4;8;12;16;20;24;28;32;36;40";var h=new C;h.labelRotationMode=r.StiLabelRotationMode.None,h.offset=.05,h.font=new x("Arial",11);var p=new b;p.placement=r.StiPlacement.Inside,p.offset=.3,p.relativeHeight=.05,p.relativeWidth=.05,p.skin=r.StiTickMarkSkin.Ellipse;var f=new v(20);f.brush=new G(I.fromArgb(68,223,68),I.fromArgb(0,153,0),90);var d=new v(97);d.brush=new G(I.fromArgb(255,255,0),I.fromArgb(186,169,2),90);var w=new v(173);w.brush=new G(I.fromArgb(184,29,29),I.fromArgb(121,30,30),90),p.values.add(f),p.values.add(d),p.values.add(w);var k=new y;k.placement=r.StiPlacement.Inside,k.labelRotationMode=r.StiLabelRotationMode.None,k.font=new x("Arial",10),k.values.add(new S(17,"Safe",.16)),k.values.add(new S(102,"Caution",.25)),k.values.add(new S(181,"Danger",.06));var O=new M;O.borderBrush=new V(I.fromArgb(153,9,8)),O.brush=new G(I.fromArgb(255,198,172),I.fromArgb(197,25,19),90),O.borderWidth=1,O.placement=r.StiPlacement.Outside,O.relativeWidth=.57,O.relativeHeight=.17,O.skin=r.StiNeedleSkin.SpeedometerNeedle2,n.items.add(i),n.items.add(l),n.items.add(c),n.items.add(h),n.items.add(p),n.items.add(k),n.items.add(O),e.scales.add(n),this.initializeName(e,t)},e.globalDurationElement=H.fromMilliseconds(1800),e.globalBeginTimeElement=H.fromMilliseconds(300),e}();n.StiGaugeHelper=L}(n=r.Helpers||(r.Helpers={}))}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e.IStiScaleBarGeometry="IStiScaleBarGeometry"}(t=e.Primitives||(e.Primitives={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){e.IStiTickCustom="IStiTickCustom"}(t=e.Primitives||(e.Primitives={}))}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiEmptyBrush,n=function(){function e(){this._gauge=null}return Object.defineProperty(e.prototype,"localizedName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickMarkMajorBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickMarkMajorBorder",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickMarkMajorBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickMarkMinorBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickMarkMinorBorder",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickMarkMinorBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickLabelMajorTextBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickLabelMajorFont",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickLabelMinorTextBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickLabelMinorFont",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearBarBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearBarBorderBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearBarEmptyBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearBarEmptyBorderBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearBarStartWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linearBarEndWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialBarBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialBarBorderBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialBarEmptyBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialBarEmptyBorderBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialBarStartWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialBarEndWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleBorderBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleCapBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleCapBorderBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleBorderWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleCapBorderWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleStartWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleEndWidth",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleRelativeHeight",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needleRelativeWith",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerSkin",{get:function(){return t.StiMarkerSkin.TriangleRight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerBrush",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerBorderBrush",{get:function(){return new r},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"styleId",{get:function(){return t.StiGaugeStyleId.StiStyle26},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gauge",{get:function(){return this._gauge},set:function(e){this._gauge=e},enumerable:!0,configurable:!0}),e}();t.StiGaugeStyleCoreXF=n}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,n=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiEmptyBrush,u=e.System.Drawing.Font,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return n.get("Chart","Style")+"25"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.getBrush()},enumerable:!0,configurable:!0}),t.prototype.getBrush=function(){return new i(o.fromHtml("#ffffff"))},Object.defineProperty(t.prototype,"borderColor",{get:function(){return this.getBorderColor()},enumerable:!0,configurable:!0}),t.prototype.getBorderColor=function(){return r.transparent},Object.defineProperty(t.prototype,"borderWidth",{get:function(){return this.getBorderWidth()},enumerable:!0,configurable:!0}),t.prototype.getBorderWidth=function(){return 0},Object.defineProperty(t.prototype,"tickMarkMajorBrush",{get:function(){return this.getTickMarkMajorBrush()},enumerable:!0,configurable:!0}),t.prototype.getTickMarkMajorBrush=function(){return new i(o.fromHtml("#264478"))},Object.defineProperty(t.prototype,"tickMarkMajorBorder",{get:function(){return this.getTickMarkMajorBorder()},enumerable:!0,configurable:!0}),t.prototype.getTickMarkMajorBorder=function(){return new i(o.fromHtml("#264478"))},Object.defineProperty(t.prototype,"tickMarkMinorBrush",{get:function(){return this.getTickMarkMinorBrush()},enumerable:!0,configurable:!0}),t.prototype.getTickMarkMinorBrush=function(){return new i(o.fromHtml("#4472c4"))},Object.defineProperty(t.prototype,"tickMarkMinorBorder",{get:function(){return this.getTickMarkMinorBorder()},enumerable:!0,configurable:!0}),t.prototype.getTickMarkMinorBorder=function(){return new i(o.fromHtml("#4472c4"))},Object.defineProperty(t.prototype,"tickLabelMajorTextBrush",{get:function(){return this.getTickLabelMajorTextBrush()},enumerable:!0,configurable:!0}),t.prototype.getTickLabelMajorTextBrush=function(){return new i(o.fromHtml("#FF33475B"))},Object.defineProperty(t.prototype,"tickLabelMajorFont",{get:function(){return this.getTickLabelMajorFont()},enumerable:!0,configurable:!0}),t.prototype.getTickLabelMajorFont=function(){return new u("Arial",10)},Object.defineProperty(t.prototype,"tickLabelMinorTextBrush",{get:function(){return this.getTickLabelMinorTextBrush()},enumerable:!0,configurable:!0}),t.prototype.getTickLabelMinorTextBrush=function(){return new i(o.fromHtml("#FF33475B"))},Object.defineProperty(t.prototype,"tickLabelMinorFont",{get:function(){return this.getTickLabelMinorFont()},enumerable:!0,configurable:!0}),t.prototype.getTickLabelMinorFont=function(){return new u("Arial",9)},Object.defineProperty(t.prototype,"markerBrush",{get:function(){return this.getMarkerBrush()},enumerable:!0,configurable:!0}),t.prototype.getMarkerBrush=function(){return new i(o.fromHtml("#70ad47"))},Object.defineProperty(t.prototype,"linearBarBrush",{get:function(){return new i(o.fromHtml("#4472c4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBrush",{get:function(){return new i(o.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBrush",{get:function(){return new i(o.fromHtml("#43682b"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBrush",{get:function(){return new i(o.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBrush",{get:function(){return new i(o.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderBrush",{get:function(){return new i(o.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleEndWidth",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeHeight",{get:function(){return.08},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeWith",{get:function(){return.55},enumerable:!0,configurable:!0}),t}(t.StiGaugeStyleCoreXF);t.StiGaugeStyleCoreXF25=s}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.Base.Drawing.StiSolidBrush,n=e.Base.Drawing.StiEmptyBrush,i=e.System.Drawing.ColorTranslator,o=function(e){function t(t){var r=e.call(this)||this;return r.reportGaugeStyle=null,r._reportStyleName=null,r._customStyle=t,r}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return"CustomStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reportStyle",{get:function(){var e=null==this.reportStyleName?this.gauge.customStyleName:this.reportStyleName;if(null==this.gauge||null==this.gauge.report||null==e||0==e.length)return null;return this.gauge.report.styles.getByName(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reportStyleName",{get:function(){return this._reportStyleName},set:function(e){this._reportStyleName=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"customStyle",{get:function(){return this._customStyle},enumerable:!0,configurable:!0}),t.prototype.getBrush=function(){if(null!=this.reportStyle)return this.reportStyle.brush;return e.prototype.getBrush.call(this)},t.prototype.getBorderColor=function(){if(null!=this.reportStyle)return this.reportStyle.borderColor;return e.prototype.getBorderColor.call(this)},t.prototype.getBorderWidth=function(){if(null!=this.reportStyle)return this.reportStyle.borderWidth;return e.prototype.getBorderWidth.call(this)},t.prototype.getTickMarkMajorBrush=function(){if(null!=this.reportStyle)return this.reportStyle.tickMarkMajorBrush;return e.prototype.getTickMarkMajorBrush.call(this)},t.prototype.getTickMarkMajorBorder=function(){if(null!=this.reportStyle)return this.reportStyle.tickMarkMajorBorder;return e.prototype.getTickMarkMajorBorder.call(this)},t.prototype.getTickMarkMinorBrush=function(){if(null!=this.reportStyle)return this.reportStyle.tickMarkMinorBrush;return e.prototype.getTickMarkMinorBrush.call(this)},t.prototype.getTickMarkMinorBorder=function(){if(null!=this.reportStyle)return this.reportStyle.tickMarkMinorBorder;return e.prototype.getTickMarkMinorBorder.call(this)},t.prototype.getTickLabelMajorTextBrush=function(){if(null!=this.reportStyle)return this.reportStyle.tickLabelMajorTextBrush;return e.prototype.getTickLabelMajorTextBrush.call(this)},t.prototype.getTickLabelMajorFont=function(){if(null!=this.reportStyle)return this.reportStyle.tickLabelMajorFont;return e.prototype.getTickLabelMajorFont.call(this)},t.prototype.getTickLabelMinorTextBrush=function(){if(null!=this.reportStyle)return this.reportStyle.tickLabelMinorTextBrush;return e.prototype.getTickLabelMinorTextBrush.call(this)},t.prototype.getTickLabelMinorFont=function(){if(null!=this.reportStyle)return this.reportStyle.tickLabelMinorFont;return e.prototype.getTickLabelMinorFont.call(this)},t.prototype.getMarkerBrush=function(){if(null!=this.reportStyle)return this.reportStyle.markerBrush;return e.prototype.getMarkerBrush.call(this)},Object.defineProperty(t.prototype,"linearBarBrush",{get:function(){return new r(i.fromHtml("#4472c4"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBorderBrush",{get:function(){return new n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBrush",{get:function(){return new n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBorderBrush",{get:function(){return new n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBrush",{get:function(){return new r(i.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBorderBrush",{get:function(){return new n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBrush",{get:function(){return new r(i.fromHtml("#43682b"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBorderBrush",{get:function(){return new n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBrush",{get:function(){return new r(i.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderBrush",{get:function(){return new n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBrush",{get:function(){return new r(i.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderBrush",{get:function(){return new r(i.fromHtml("#ffc000"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleEndWidth",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeHeight",{get:function(){return.08},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeWith",{get:function(){return.55},enumerable:!0,configurable:!0}),t}(t.StiGaugeStyleCoreXF25);t.StiCustomGaugeStyleCoreXF=o}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,n=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiEmptyBrush,u=e.System.Drawing.Font,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return n.get("Chart","Style")+"24"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return new i(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return r.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBrush",{get:function(){return new i(o.fromHtml("#9e480e"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBorder",{get:function(){return new i(o.fromHtml("#9e480e"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBrush",{get:function(){return new i(o.fromHtml("#9e480e"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBorder",{get:function(){return new i(o.fromHtml("#9e480e"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorTextBrush",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorFont",{get:function(){return new u("Arial",10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorTextBrush",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorFont",{get:function(){return new u("Arial",9)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerBrush",{get:function(){return new i(o.fromHtml("#ed7d31"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBrush",{get:function(){return new i(o.fromHtml("#70ad47"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBrush",{get:function(){return new i(o.fromHtml("#70ad47"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBrush",{get:function(){return new i(o.fromHtml("#FF585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBrush",{get:function(){return new i(o.fromHtml("#ed7d31"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBrush",{get:function(){return new i(o.fromHtml("#ed7d31"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderBrush",{get:function(){return new i(o.fromHtml("#ed7d31"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderWidth",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleEndWidth",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeHeight",{get:function(){return.06},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeWith",{get:function(){return.45},enumerable:!0,configurable:!0}),t}(t.StiGaugeStyleCoreXF);t.StiGaugeStyleCoreXF24=s}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,n=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiEmptyBrush,u=e.System.Drawing.Font,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return n.get("Chart","Style")+"26"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return new i(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return r.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBrush",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBorder",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBrush",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBorder",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorTextBrush",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorFont",{get:function(){return new u("Arial",10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorTextBrush",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorFont",{get:function(){return new u("Arial",9)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerBrush",{get:function(){return new i(o.fromHtml("#2ec6c8"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBrush",{get:function(){return new i(o.fromHtml("#2ec6c8"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBrush",{get:function(){return new i(o.fromHtml("#b5a1dd"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBrush",{get:function(){return new i(o.fromHtml("#5ab0ee"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBrush",{get:function(){return new i(o.fromHtml("#f4984e"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBrush",{get:function(){return new i(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderBrush",{get:function(){return new i(o.fromHtml("#f4984e"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderWidth",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleEndWidth",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeHeight",{get:function(){return.06},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeWith",{get:function(){return.45},enumerable:!0,configurable:!0}),t}(t.StiGaugeStyleCoreXF);t.StiGaugeStyleCoreXF26=s}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,n=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiEmptyBrush,u=e.System.Drawing.Font,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return n.get("Chart","Style")+"27"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return new i(o.fromHtml("#FF33475B"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return r.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBrush",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBorder",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBrush",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBorder",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorTextBrush",{get:function(){return new i(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorFont",{get:function(){return new u("Arial",10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorTextBrush",{get:function(){return new i(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorFont",{get:function(){return new u("Arial",9)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerBrush",{get:function(){return new i(o.fromHtml("#ec334d"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBrush",{get:function(){return new i(o.fromHtml("#0bac45"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBrush",{get:function(){return new i(o.fromHtml("#0bac45"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBrush",{get:function(){return new i(o.fromHtml("#FF585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBrush",{get:function(){return new i(o.fromHtml("#ec334d"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBrush",{get:function(){return new i(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderBrush",{get:function(){return new i(o.fromHtml("#ec334d"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderWidth",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleEndWidth",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeHeight",{get:function(){return.06},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeWith",{get:function(){return.45},enumerable:!0,configurable:!0}),t}(t.StiGaugeStyleCoreXF);t.StiGaugeStyleCoreXF27=s}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(t){var r=e.System.Drawing.Color,n=e.Base.Localization.StiLocalization,i=e.Base.Drawing.StiSolidBrush,o=e.System.Drawing.ColorTranslator,a=e.Base.Drawing.StiEmptyBrush,u=e.System.Drawing.Font,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"localizedName",{get:function(){return n.get("Chart","Style")+"28"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return new i(o.fromHtml("#0a325a"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return r.transparent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBrush",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMajorBorder",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBrush",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickMarkMinorBorder",{get:function(){return new i(o.fromHtml("#585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorTextBrush",{get:function(){return new i(o.fromHtml("#ffffff"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMajorFont",{get:function(){return new u("Arial",10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorTextBrush",{get:function(){return new i(o.fromHtml("#d4dae0"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickLabelMinorFont",{get:function(){return new u("Arial",9)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerBrush",{get:function(){return new i(o.fromHtml("#569436"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBrush",{get:function(){return new i(o.fromHtml("#225056"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linearBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBrush",{get:function(){return new i(o.fromHtml("#225056"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBrush",{get:function(){return new i(o.fromHtml("#FF585257"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEmptyBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialBarEndWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBrush",{get:function(){return new i(o.fromHtml("#569436"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderBrush",{get:function(){return new a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBrush",{get:function(){return new i(o.fromHtml("#d4dae0"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderBrush",{get:function(){return new i(o.fromHtml("#569436"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleBorderWidth",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleCapBorderWidth",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleStartWidth",{get:function(){return.1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleEndWidth",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeHeight",{get:function(){return.06},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needleRelativeWith",{get:function(){return.45},enumerable:!0,configurable:!0}),t}(t.StiGaugeStyleCoreXF);t.StiGaugeStyleCoreXF28=s}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n=e.Base.StiJson,i=e.Report.Styles.StiBaseStyle,o=e.Report.Gauge.IStiGaugeStyleXF,a=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.implements=function(){return i.implementsStiGaugeStyleXF||(i.implementsStiGaugeStyleXF=e.prototype.implements.call(this).concat([r.IStiGaugeStyle,o])),i.implementsStiGaugeStyleXF},Object.defineProperty(i.prototype,"componentId",{get:function(){return t.StiComponentId.StiGaugeStyle},enumerable:!0,configurable:!0}),i.prototype.saveToJsonObject=function(e){var t=new n;return t.addPropertyStringNullOfEmpty("Ident",this.getStiType().getStiTypeName()),t},i.prototype.loadFromJsonObject=function(e){},i.loadFromJsonObjectInternal=function(e){var t=e.properties().firstOrDefault(function(e){return"Ident"==e.Name}).value.toString();if("StiGaugeStyleXF"==t)return new r.StiCustomGaugeStyle;var n=StiOptions.Services.gaugeStyles.firstOrDefault(function(e){return e.getStiType().getStiTypeName()==t});if(null==n)throw String.stiFormat("Type {0} is not found!",t);return n.createNew()},Object.defineProperty(i.prototype,"serviceName",{get:function(){return this.core.localizedName},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceCategory",{get:function(){return"Gauge"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"serviceType",{get:function(){return i},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"core",{get:function(){return this._core},set:function(e){this._core=e},enumerable:!0,configurable:!0}),i.prototype.toString=function(){if(this.sti_is(r.StiCustomGaugeStyle)&&null!=this.core.reportGaugeStyle)return this.core.reportGaugeStyle.name;return this.serviceName},i.prototype.compareGaugeStyle=function(e){if(null==e)return!1;var t=this.sti_as(r.StiCustomGaugeStyle),n=e.sti_as(r.StiCustomGaugeStyle);if(null!=t&&null!=n){var i=t.core.reportStyleName;null!=t.core.reportStyle&&(i=t.core.reportStyle.name);var o=n.core.reportStyleName;return null!=n.core.reportStyle&&(o=n.core.reportStyle.name),i==o}return this.getStiType()==e.getStiType()},i.prototype.drawStyle=function(e,t,r,n){},i.prototype.drawBox=function(e,t,r,n){},i.prototype.getStyleFromComponent=function(e,t){},i.prototype.setStyleToComponent=function(e){},i.prototype.createNew=function(){return null},i}(i);r.StiGaugeStyleXF=a}(r=t.Gauge||(t.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiGaugeStyleCoreXF27,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiGaugeStyleXF);e.StiGaugeStyleXF27=t}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(r){void 0===r&&(r=null);var n=t.call(this)||this;return n.core=new e.StiCustomGaugeStyleCoreXF(n),n.core.reportStyleName=r,n}return __extends(r,t),Object.defineProperty(r.prototype,"serviceName",{get:function(){return"CustomStyle"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"customCore",{get:function(){return this.core},enumerable:!0,configurable:!0}),r}(e.StiGaugeStyleXF27);e.StiCustomGaugeStyle=t}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiGaugeStyleCoreXF24,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiGaugeStyleXF);e.StiGaugeStyleXF24=t}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiGaugeStyleCoreXF25,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiGaugeStyleXF);e.StiGaugeStyleXF25=t}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiGaugeStyleCoreXF26,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiGaugeStyleXF);e.StiGaugeStyleXF26=t}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){var t=function(t){function r(){var r=t.call(this)||this;return r.core=new e.StiGaugeStyleCoreXF28,r}return __extends(r,t),r.prototype.createNew=function(){return new r},r}(e.StiGaugeStyleXF);e.StiGaugeStyleXF28=t}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IStiApplyStyleGauge="IStiApplyStyleGauge"}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(e){e.IStiGaugeStyle="IStiGaugeStyle"}(t=e.Gauge||(e.Gauge={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Gauge.Events.StiGetTextEventArgs,i=e.Report.Gauge.Events.StiGetTextEvent,o=e.System.Windows.Forms.Orientation,a=e.Report.Gauge.Helpers.StiGaugeHelper,u=e.Report.Painters.StiGaugeContextPainter,s=e.Report.Gauge.Helpers.StiRectangleHelper,l=e.Report.Gauge.StiPlacement,c=e.System.Drawing.Rectangle,h=e.Report.Engine.StiParser.StiParser,p=e.Report.Events.StiGetValueEventArgs,f=e.Report.Gauge.Collections.StiCustomValuesCollection,d=e.Report.Events.StiGetValueEvent,m=e.Report.Components.Gauge.Primitives.StiLinearTickLabelBase,g=e.Report.Expressions.StiExpression,b=function(e){function m(){var t=null!==e&&e.apply(this,arguments)||this;return t._valueObj=0,t._textObj=null,t._values=new f,t._getValueEvent=new d,t._getTextEvent=new i,t._value="",t._text="",t}return __extends(m,e),m.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyJObject("GetValueEvent",this.getValueEvent.saveToJsonObject(t)),r.addPropertyJObject("GetTextEvent",this.getTextEvent.saveToJsonObject(t)),r.addPropertyJObject("Value",new g(this.value).saveToJsonObject(t)),r.addPropertyJObject("Text",new g(this.text).saveToJsonObject(t)),r.addPropertyJObject("Values",this.values.saveToJsonObject(t)),r},m.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var o=n[r];switch(o.name){case"GetValueEvent":var a=new d;a.loadFromJsonObject(o.value),this.getValueEvent=a;break;case"GetTextEvent":var u=new i;u.loadFromJsonObject(o.value),this.getTextEvent=u;break;case"Value":var s=new g;s.loadFromJsonObject(o.value),this.value=s.value;break;case"Text":var l=new g;l.loadFromJsonObject(o.value),this.text=l.value;break;case"Values":this.values.loadFromJsonObject(o.value);break}}},Object.defineProperty(m.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearTickLabelCustom},enumerable:!0,configurable:!0}),m.prototype.clone=function(){var t=e.prototype.clone.call(this);null!=this.value?t.value=this.value:t.value=null,null!=this.text?t.text=this.text:t.text=null,t.values=new f;for(var r=0,n=this.values.list;r<n.length;r++){var i=n[r];t.values.add(i.clone())}return t},Object.defineProperty(m.prototype,"valueObj",{get:function(){return this._valueObj},set:function(e){this._valueObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"textObj",{get:function(){return this._textObj},set:function(e){this._textObj=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"localizeName",{get:function(){return"LinearTickLabelCustom"},enumerable:!0,configurable:!0}),m.prototype.onGetValue=function(e){},m.prototype.invokeGetValue=function(e,r){try{if(this.onGetValue(r),e.scale.gauge.report.calculationMode==t.StiCalculationMode.Interpretation){var n=h.parseTextValue(this.value,e.scale.gauge);r.value=e.scale.gauge.report.toString2(n)}}catch(e){var i=String.stiFormat("Expression in GetValue property of '{0}' series from '{1}' chart can't be evaluated!","Indicator",this.scale.gauge.name)}},Object.defineProperty(m.prototype,"getValueEvent",{get:function(){return this._getValueEvent},set:function(e){this.getValueEvent=e},enumerable:!0,configurable:!0}),m.prototype.onGetText=function(e){},m.prototype.invokeGetText=function(e,t){try{this.onGetText(t)}catch(e){var r=String.stiFormat("Expression in GetText property of '{0}' series from '{1}' chart can't be evaluated!","GaugeElement",this.scale.gauge.name)}},Object.defineProperty(m.prototype,"getTextEvent",{get:function(){return this._getTextEvent},set:function(e){this._getTextEvent=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),m.prototype.createNew=function(){return new m},m.prototype.prepareGaugeElement=function(){e.prototype.prepareGaugeElement.call(this);var t=new p;this.invokeGetValue(this,t),this.valueObj=a.getFloatValueFromObject2(t.value,0);var r=new n;this.invokeGetText(this,r),this.textObj=r.value},m.prototype.drawElement=function(e){var t=this.scale;if(null==t||String.isNullOrEmpty(this.textObj))return;var n=t.barGeometry.size,i=t.barGeometry.rectGeometry,a,h,p,d=this.scale.barGeometry.getRestToLenght(),m=t.orientation==o.Horizontal?n.height:n.width;m*=this.offset;var g=this.scale.scaleHelper.actualMinimum,b=this.scale.scaleHelper.actualMaximum,y=this.textFormat,v=this.skipValuesObj,S=this.skipIndicesObj,w=this.values;null!=w&&0!=w.count||(w=new f,w.add(new r.StiLinearTickLabelCustomValue(this.valueObj,this.textObj,this.offset,this.placement)));for(var k=-1,G=0,O=w.list;G<O.length;G++){var P=O[G];if(k++,P.value<g)continue;if(P.value>b)continue;if(this.checkTickValue(v,S,P.value,k))continue;if(null!=this.minimumValue&&P.value<this.minimumValue)continue;if(null!=this.maximumValue&&P.value>this.maximumValue)continue;var B=m*this.getOffset(P.offset),j=t.getPosition(P.value),R=this.getTextForRender2(P.text,y),_=u.changeFontSize(this.font,e.zoom),x=e.measureString(R,_);if(t.orientation==o.Horizontal)if(a=t.isReversed?i.width-i.width*j:i.width*j,this.getPlacement(P.placement)==l.Overlay)h=i.left+a-x.width/2,p=s.centerY(i)-x.height/2-B;else{var W=t.startWidth<t.endWidth?(1-j)*d:d*j;this.getPlacement(P.placement)==l.Outside?(h=i.left+a-x.width/2,p=i.top-x.height-B+W):(h=i.left+a-x.width/2,p=i.bottom+B-W)}else if(a=t.isReversed?i.height*j:i.height-i.height*j,this.getPlacement(P.placement)==l.Overlay)h=s.centerX(i)-x.width/2,p=i.top+a-x.height/2;else{var W=t.startWidth<t.endWidth?(1-j)*d:d*j;this.getPlacement(P.placement)==l.Outside?(h=i.left-x.width-3-B+W,p=i.top+a-x.height/2):(h=i.right+3+B-W,p=i.top+a-x.height/2)}e.addTextGaugeGeom(R,_,this.textBrush,new c(h,p,x.width,x.height),null)}},m}(m);r.StiLinearTickLabelCustom=b}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(e){var t;!function(t){var r;!function(t){var r=function(t){function r(e,r,n,i){void 0===e&&(e=0),void 0===r&&(r=null),void 0===n&&(n=null),void 0===i&&(i=null);var o=t.call(this)||this;return o._text=null,o.value=e,o._text=r,o.offset=n,o.placement=i,o}return __extends(r,t),r.prototype.saveToJsonObject=function(e){var r=t.prototype.saveToJsonObject.call(this,e);return r.addPropertyString("Text",this.text),r},r.prototype.loadFromJsonObject=function(e){t.prototype.loadFromJsonObject.call(this,e);for(var r=0,n=e.properties();r<n.length;r++){var i=n[r];switch(i.name){case"Text":this.text=i.value.toString();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return e.StiComponentId.StiLinearTickLabelCustomValue},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizedName",{get:function(){return"LinearTickLabelCustom"},enumerable:!0,configurable:!0}),r.prototype.toString=function(){return String.stiFormat("Value={0}, Text={1}",this.value,this._text)},r.prototype.createNew=function(){return new r},r}(t.StiCustomValueBase);t.StiLinearTickLabelCustomValue=r}(r=t.Gauge||(t.Gauge={}))}(t=e.Components||(e.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n;!function(r){var n=e.Report.Components.Gauge.Primitives.StiLinearTickLabelBase,i=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._skipMajorValues=!0,t}return __extends(r,e),r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.addPropertyIdent("Ident",this.getStiType().getStiTypeName()),r.addPropertyBool("SkipMajorValues",this.skipMajorValues,!0),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"SkipMajorValues":this.skipMajorValues=i.value.ToBoolean();break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiLinearTickLabelMinor},enumerable:!0,configurable:!0}),r.prototype.applyStyle=function(e){this.allowApplyStyle&&(this.textBrush=e.core.tickLabelMinorTextBrush,this.font=e.core.tickLabelMinorFont)},Object.defineProperty(r.prototype,"skipMajorValues",{get:function(){return this._skipMajorValues},set:function(e){this._skipMajorValues=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isSkipMajorValues",{get:function(){return this.skipMajorValues},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizeName",{get:function(){return"LinearTickLabelMinor"},enumerable:!0,configurable:!0}),r.prototype.createNew=function(){return new r},r.prototype.getPointCollection=function(){return this.getMinorCollections()},r}(n);r.StiLinearTickLabelMinor=i}(n=r.Gauge||(r.Gauge={}))}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));var Stimulsoft;!function(e){var t;!function(t){var r;!function(r){var n=e.Report.Gauge.Collections.StiScaleCollection,i=e.System.Drawing.Rectangle,o=e.Base.Localization.StiLocalization,a=e.System.Drawing.Color,u=e.Base.Drawing.StiSolidBrush,s=e.Base.Drawing.StiBorder,l=e.Report.Components.StiComponent,c=e.Report.Components.IStiExportImageExtended,h=e.Report.Components.IStiBorder,p=e.Report.Components.IStiBrush,f=e.Base.StiJsonReportObjectHelper,d=e.Report.Components.Gauge.IStiGauge,m=e.Report.Gauge.StiGaugeStyleXF26,g=function(e){function r(t){void 0===t&&(t=i.empty);var r=e.call(this)||this;return r._border=new s,r._brush=new u(a.transparent),r._style=new m,r._customStyleName="",r._isAnimation=!1,r.scales=new n(r),r.placeOnToolbox=!1,r}return __extends(r,e),r.prototype.implements=function(){return r.implementsStiGauge||(r.implementsStiGauge=e.prototype.implements.call(this).concat([c,h,p,d])),r.implementsStiGauge},r.prototype.saveToJsonObject=function(t){var r=e.prototype.saveToJsonObject.call(this,t);return r.removeProperty("ComponentStyle"),r.removeProperty("UseParentStyles"),r.removeProperty("CanGrow"),r.removeProperty("CanShrink"),r.removeProperty("GrowToHeight"),r.removeProperty("Interaction"),r.removeProperty("IsAnimation"),r.addPropertyStringNullOfEmpty("Border",f.Serialize.jBorder(this.border)),r.addPropertyStringNullOfEmpty("Brush",f.Serialize.jBrush(this.brush)),r.addPropertyJObject("Scales",this.scales.saveToJsonObject(t)),r},r.prototype.loadFromJsonObject=function(t){e.prototype.loadFromJsonObject.call(this,t);for(var r=0,n=t.properties();r<n.length;r++){var i=n[r];switch(i.name){case"Border":this.border=f.Deserialize.border(i.value);break;case"Brush":this.brush=f.Deserialize.brush(i.value);break;case"Scales":this.scales.loadFromJsonObject(i.value);break}}},Object.defineProperty(r.prototype,"componentId",{get:function(){return t.StiComponentId.StiGauge},enumerable:!0,configurable:!0}),r.prototype.clone=function(t,r){var i=e.prototype.clone.call(this,t);i.scales=new n(i);for(var o=0,a=this.scales.list;o<a.length;o++){var u=a[o];i.scales.add(u.clone())}return i},r.prototype.getImage=function(e,t){return null},r.prototype.isExportAsImage=function(e){return!0},Object.defineProperty(r.prototype,"border",{get:function(){return this._border},set:function(e){this._border=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"brush",{get:function(){return this._brush},set:function(e){this._brush=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizedCategory",{get:function(){return o.get("Report","Infographics")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"localizedName",{get:function(){return o.get("Components","StiGauge")},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"defaultClientRectangle",{get:function(){return new i(0,0,240,240)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"style",{get:function(){return this._style},set:function(e){this._style!=e&&(this._style=e,null!=e&&(e.core.gauge=this))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"customStyleName",{get:function(){return this._customStyleName},set:function(e){this._customStyleName=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"scales",{get:function(){return this._scales},set:function(e){this._scales=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isAnimation",{get:function(){return this._isAnimation},set:function(e){this._isAnimation!=e&&(this._isAnimation=e)},enumerable:!0,configurable:!0}),r.prototype.changeSkin=function(){},r.prototype.drawGauge=function(e){this.applyStyle(this.style);var t=-1;while(++t<this.scales.count){var r=this.scales.getByIndex(t);null!=r&&(r.barGeometry.checkRectGeometry(e.rect),r.drawElement(e))}},r.prototype.createNew=function(){return new r},r.prototype.applyStyle=function(e){this.brush=e.core.brush,this.border.color=e.core.borderColor,this.border.size=e.core.borderWidth;for(var t=0,r=this.scales.list;t<r.length;t++){r[t].applyStyle(e)}},r}(l);r.StiGauge=g}(r=t.Components||(t.Components={}))}(t=e.Report||(e.Report={}))}(Stimulsoft||(Stimulsoft={}));;
var Stimulsoft;
(function (Stimulsoft) {
    var Reflection;
    (function (Reflection) {
        var StiTypesHelper = (function () {
            function StiTypesHelper() {
            }
            StiTypesHelper.run = function (type, namespace) {
                if (type === undefined) {
                    StiTypesHelper.run(Stimulsoft, "Stimulsoft");
                    return;
                }
                for (var name_1 in type) {
                    if (typeof type[name_1] == "function") {
                        type[name_1].jsTypeName = name_1;
                        type[name_1].jsNamespace = namespace ? namespace.replaceAll("Stimulsoft.System", "System") : namespace;
                        type[name_1].getStiTypeName = type[name_1].getStiTypeName || function () { return this.jsTypeName; };
                        type[name_1].getStiNetTypeName = type[name_1].getStiNetTypeName || function () { return this.jsNamespace + "." + this.jsTypeName; };
                    }
                    else if (typeof type[name_1] == "object") {
                        StiTypesHelper.run(type[name_1], namespace + "." + name_1);
                    }
                }
            };
            return StiTypesHelper;
        }());
        Reflection.StiTypesHelper = StiTypesHelper;
    })(Reflection = Stimulsoft.Reflection || (Stimulsoft.Reflection = {}));
})(Stimulsoft || (Stimulsoft = {}));
Stimulsoft.Reflection.StiTypesHelper.run();
if (typeof module === "object") {
    module.exports = Stimulsoft;
}
;