var GcSpread;!function(a){!function(a){var b=window.GC.Spread.Commands;a.Key=b.Key}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);function d(){this.constructor=a}d.prototype=b.prototype,a.prototype=new d},c=window.GC.Spread.Common;a.Culture=c.CultureManager.culture,window.spreadJSEras=c.CultureInfo.eras,a.addCultureInfo=function(a,b){return e(b,"NumberFormat"),e(b,"DateTimeFormat"),c.CultureManager.addCultureInfo(a,b)},a.getCultureInfo=function(a){var b,e,f;c.CultureManager.getCultureInfo(a),b=this,e=b.NumberFormat,f=b.DateTimeFormat,d(b,e),d(b,f)},a.CultureInfo=function(a){b(c,a);function c(){var b,c,e;a.apply(this),b=this,c=b.NumberFormat,e=b.DateTimeFormat,d(b,c),d(b,e)}return c}(c.CultureInfo);function d(a,b){for(var c in b){if(!b.hasOwnProperty(c))break;a[c]=b[c]}}function e(a,b){var c,d=a[b]||{};for(c in d){if(!d.hasOwnProperty(c))break;a[b][c]=a[c]}}}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c,d,e=null,f=void 0,g=window.GC.Spread.Formatter,h=GC.Spread.Common.CultureManager,i=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);function d(){this.constructor=a}d.prototype=b.prototype,a.prototype=new d};!function(a){a[a.CustomMode=0]="CustomMode",a[a.StandardDateTimeMode=1]="StandardDateTimeMode",a[a.StandardNumericMode=2]="StandardNumericMode"}(a.FormatMode||(a.FormatMode={})),b=a.FormatMode,function(a){a[a.General=0]="General",a[a.Number=1]="Number",a[a.DateTime=2]="DateTime",a[a.Text=3]="Text"}(a.NumberFormatType||(a.NumberFormatType={})),c=a.NumberFormatType,d={StandardNumberFormatter:{CurrencyPattern1:"c",CurrencyPattern2:"C",DecimalPattern1:"d",DecimalPattern2:"D",ScientificPattern1:"e",ScientificPattern2:"E",FixedPointPattern1:"f",FixedPointPattern2:"F",GeneralPattern1:"g",GeneralPattern2:"G",NumberPattern1:"n",NumberPattern2:"N",PercentPattern1:"p",PercentPattern2:"P",RoundTripPattern1:"r",RoundTripPattern2:"R",HexadecimalPattern1:"x",HexadecimalPattern2:"X"},DefaultTokens:{DoubleQuote:'"',SingleQuote:"'",Tab:"\t",LeftSquareBracket:"[",RightSquareBracket:"]",LessThanSign:"<",GreaterThanSign:">",EqualsThanSign:":",PlusSign:"+",HyphenMinus:"-",UnderLine:"_",LeftParenthesis:"(",RightParenthesis:")",Dollar:"$",Comma:",",Space:" ",SolidusSign:"/",ReverseSolidusSign:"\\",Zero:"0",QuestionMark:"?",Colon:":",Semicolon:",",Sharp:"#",CommercialAt:"@",NumberSign:"#",Asterisk:"*",Exponential1:"E+",Exponential2:"E-",DecimalSeparator:".",numberGroupSeparator:",",percentSymbol:"%",nanSymbol:"NaN",FormatSeparator:";",negativeSign:"-",ReplacePlaceholder:"@",ExponentialSymbol:"E"},getPrecision:function(a){var b,c;if(a&&a.length>0)return b=a.substr(1),c=parseInt(b),isNaN(c)?null:c},startWith:function(a,b){return a.substr(0,1)===b},addDecimalPrecision:function(a,b,c){var e,f=a;if(c>0)for(f+=d.DefaultTokens.DecimalSeparator,e=0;e0){for(d="",e=0;e=0?a.font:(b="",c="normal",d="400",a.fontStyle!==c&&(b=a.fontStyle),a.fontVariant!==c&&(b+=(b?" ":"")+a.fontVariant),a.fontWeight!==c&&a.fontWeight!==d&&(b+=(b?" ":"")+a.fontWeight),b+=(b?" ":"")+a.fontSize,a.lineHeight!==c&&(b+="/"+a.lineHeight),b+=" "+a.fontFamily)},b=function(b){a.I5(c,b);function c(){b.apply(this,arguments)}return c.prototype.copyFrom=function(a){this.fromJSON(a.toJSON())},c}(d.Style),a.Style=b}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c,d,e,f,g,h,i=window.GC.Spread.Sheets;a.ShowResizeTip=a.F5(i.ShowResizeTip),a.ShowScrollTip=a.F5(i.ShowScrollTip),a.AutoFitType=a.F5(i.AutoFitType),a.InvalidOperationType=a.F5(i.InvalidOperationType),a.ResizeZeroIndicator=a.F5(i.ResizeZeroIndicator),a.HorizontalPosition=i.HorizontalPosition,a.VerticalPosition=i.VerticalPosition,b=i.Workbook,c=window.jQuery;function j(a,b){var c,d,e,f,g,h;b&&(c=a.defaults,d=a.options.gridline,"string"==typeof b.name&&b.name.length>0&&a.name(b.name),b.data&&a.setDataSource(b.data),"number"==typeof b.defaultRowHeight&&(c.rowHeight=b.defaultRowHeight),"number"==typeof b.defaultColWidth&&(c.colWidth=b.defaultColWidth),"number"==typeof b.defaultRowHeaderColWidth&&(c.rowHeaderColWidth=b.defaultRowHeaderColWidth),"number"==typeof b.defaultColHeaderRowHeight&&(c.colHeaderRowHeight=b.defaultColHeaderRowHeight),"number"==typeof b.rowCount&&a.setRowCount(b.rowCount),"number"==typeof b.colCount&&a.setColumnCount(b.colCount),"number"==typeof b.frozenRowCount&&a.frozenRowCount(b.frozenRowCount),"number"==typeof b.frozenColCount&&a.frozenColCount(b.frozenColCount),"number"==typeof b.frozenTrailingRowCount&&a.frozenTrailingRowCount(b.frozenTrailingRowCount),"number"==typeof b.frozenTrailingColCount&&a.frozenTrailingColCount(b.frozenTrailingColCount),b.gridlineColor&&(d.color=b.gridlineColor),"boolean"==typeof b.showVerticalGridline&&(d.showVerticalGridline=b.showVerticalGridline),"boolean"==typeof b.showHorizontalGridline&&(d.showHorizontalGridline=b.showHorizontalGridline),b.borderColor&&(a.options.borderColor=b.borderColor),"number"==typeof b.borderWidth&&(a.options.borderWidth=b.borderWidth),"number"==typeof b._zoomFactor&&a.zoom(b._zoomFactor),"boolean"==typeof b.rowHeaderVisible&&(a.options.rowHeaderVisible=b.rowHeaderVisible),"boolean"==typeof b.colHeaderVisible&&(a.options.colHeaderVisible=b.colHeaderVisible),"boolean"==typeof b.autoGenerateColumns&&(a.autoGenerateColumns=b.autoGenerateColumns),b.rowHeaderAutoText&&(a.rowHeaderAutoText=b.rowHeaderAutoText),b.colHeaderAutoText&&(a.colHeaderAutoText=b.colHeaderAutoText),"number"==typeof b.Jl&&(e=b.Jl),"number"==typeof b.Kl&&(f=b.Kl),a.setActiveCell(e,f),"boolean"==typeof b.d6&&(a.options.allowCellOverflow=b.d6),"boolean"==typeof b.isProtected&&(a.options.isProtected=b.isProtected),"boolean"==typeof b.allowUndo&&(g=a.getParent(),g&&(g.options.allowUndo=b.allowUndo)),h=b.columns,h&&h.length>0&&(a.autoGenerateColumns=!1,a.bindColumns(h)))}function k(a,b){var c,d,e=a.getSheetCount();for(c=0;c0){for(e=b.getSheetCount();e0)},b.prototype.saveState=function(){var a,b,c,d=this;if(d.xS&&d.xS.names instanceof Array)for(a=0,b=d.xS.names.length;aa?a:c,g=d>b?b:d,h=this.getCell(f,g,e);return h.rowCount=Math.abs(c-a)+1,h.colCount=Math.abs(d-b)+1,h},g.prototype.getRow=function(a,b){return new c(this,a,b)},g.prototype.getRows=function(a,b,c){var d=b>a?a:b,e=this.getRow(d,c);return e.rowCount=Math.abs(b-a)+1,e},g.prototype.getColumn=function(a,b){return new d(this,a,b)},g.prototype.getColumns=function(a,b,c){var d=b>a?a:b,e=this.getColumn(d,c);return e.colCount=Math.abs(b-a)+1,e}}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){a.CellBindingSource=window.GC.Spread.Sheets.Bindings.CellBindingSource,a.Sheet.prototype.isColumnBound=function(a){return!!this.getDataColumnName(a)}}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c,d,e,f,g=window.GC.Spread.Sheets;a.ReferenceStyle=a.F5(g.ReferenceStyle,{r1c1:"R1C1"}),a.NameInfo=g.NameInfo,b=window.GC.Spread.CalcEngine,c=a.Calc||(a.Calc={}),c.evaluateFormula=g.CalcEngine.evaluateFormula,c.rangeToFormula=g.CalcEngine.rangeToFormula,c.rangesToFormula=g.CalcEngine.rangesToFormula,c.RangeReferenceRelative=g.CalcEngine.RangeReferenceRelative,c.SheetParserContext=g.CalcEngine.SheetParserContext,c.ParserContext=b.ParserContext,c.Parser=b.Parser,c.EvaluateContext=b.EvaluateContext,c.AsyncEvaluateContext=b.AsyncEvaluateContext,c.Evaluator=b.Evaluator,c.CalcSource=b.CalcSource,c.CalcService=b.CalcService,c.CalcSourceModel=b.CalcSourceModel,c.CalcError=b.CalcError,c.Errors=b.Errors,c.CalcArray=b.CalcArray,c.CalcValueType={anyType:0,numberType:1,stringType:2,booleanType:3,dateType:4},c.Reference=b.CalcReference,c.SheetReference=b.CalcReference;function h(a){this.name=a}h.prototype.getName=function(){return this.name},h.prototype.compareTo=function(a){return this.name.toLowerCase()===a.name.toLowerCase()},c.Operator=h;function i(a){h.call(this,a)}i.prototype.evaluate=function(a,b){},c.UnaryOperator=i;function j(a,b){h.call(this,a),this.acceptsReference=b}j.prototype.evaluate=function(a,b,c){},c.BinaryOperator=j,d=c.Functions||(c.Functions={}),d.ArrayArgumentEvaluateMode=b.Functions.ArrayArgumentEvaluateMode,d.Function=b.Functions.Function,d.AsyncFunction=b.Functions.AsyncFunction,d.defineGlobalCustomFunction=b.Functions.defineGlobalCustomFunction,d.findGlobalFunction=b.Functions.findGlobalFunction,e=c.Expressions||(c.Expressions={}),f=e.Expression=b.Expression,e.ParenthesesExpression=function(a){f.call(this,b.ExpressionType.parentheses),this.value=a},e.FunctionExpression=function(a,c){f.call(this,b.ExpressionType.function),this.function=a,this.arguments=c,this.functionName=a.name},e.FunctionExpression.prototype.argCount=function(){return this.arguments?this.arguments.length:0},e.FunctionExpression.prototype.getArg=function(a){return this.arguments?this.arguments[a]:null},e.FunctionExpression.prototype.getFunctionName=function(){return this.functionName},e.NameExpression=function(a){f.call(this,b.ExpressionType.name),this.name=a},e.BangNameExpression=function(a){f.call(this,b.ExpressionType.name),this.name=a},e.ExternalNameExpression=function(a,c){f.call(this,b.ExpressionType.name),this.source=a,this.name=c},e.ConstantExpression=function(a){f.call(this,b.ExpressionType.unknow),this.value=a},e.BooleanExpression=function(a){f.call(this,b.ExpressionType.boolean),this.value=a},e.DoubleExpression=function(a,c){f.call(this,b.ExpressionType.number),this.value=a},e.StringExpression=function(a){f.call(this,b.ExpressionType.string),this.value=a},e.ErrorExpression=function(a){f.call(this,b.ExpressionType.error),this.value=a},e.ExternalErrorExpression=function(a,c){f.call(this,b.ExpressionType.error),this.value=c},e.SheetRangeErrorExpression=function(a,c,d){f.call(this,b.ExpressionType.error),this.value=d},e.BangErrorExpression=function(a){f.call(this,b.ExpressionType.error),this.value=a},e.ArrayExpression=function(a){f.call(this,b.ExpressionType.array),this.value=a},e.MissingArgumentExpression=function(){f.call(this,b.ExpressionType.missingArgument)},e.OperatorExpression=function(a){f.call(this,b.ExpressionType.operator),this.operatorType=a},e.UnaryOperatorExpression=function(a,c){f.call(this,b.ExpressionType.operator),this.operatorType=a,this.value=c},e.BinaryOperatorExpression=function(a,c,d){f.call(this,b.ExpressionType.operator),this.operatorType=a,this.value=c,this.value2=d},e.ReferenceExpression=function(){f.call(this,b.ExpressionType.reference)},e.ExternalReferenceExpression=function(a){f.call(this,b.ExpressionType.reference),this.source=a},e.CellExpression=function(a,c,d,e){f.call(this,b.ExpressionType.reference),this.row=a,this.column=c,this.rowRelative=d,this.columnRelative=e},e.BangCellExpression=function(a,c,d,e){f.call(this,b.ExpressionType.reference),this.row=a,this.column=c,this.rowRelative=d,this.columnRelative=e},e.ExternalCellExpression=function(a,c,d,e,g){f.call(this,b.ExpressionType.reference),this.source=a,this.row=c,this.column=d,this.rowRelative=e,this.columnRelative=g},e.RangeExpression=function(a,c,d,e,g,h,i,j){f.call(this,b.ExpressionType.reference),this.row=a,this.column=c,this.endRow=d,this.endColumn=e,this.rowRelative=g,this.columnRelative=h,this.endRowRelative=i,this.endColumnRelative=j},e.BangRangeExpression=function(a,c,d,e,g,h,i,j){f.call(this,b.ExpressionType.reference),this.row=a,this.column=c,this.endRow=d,this.endColumn=e,this.rowRelative=g,this.columnRelative=h,this.endRowRelative=i,this.endColumnRelative=j},e.ExternalRangeExpression=function(a,c,d,e,g,h,i,j,k){f.call(this,b.ExpressionType.reference),this.source=a,this.row=c,this.column=d,this.endRow=e,this.endColumn=g,this.rowRelative=h,this.columnRelative=i,this.endRowRelative=j,this.endColumnRelative=k},e.SheetRangeExpression=function(a,c,d,e,g,h,i,j,k,l){f.call(this,b.ExpressionType.reference),this.source=a,this.endSource=c,this.row=d,this.column=e,this.endRow=g,this.endColumn=h,this.rowRelative=i,this.columnRelative=j,this.endRowRelative=k,this.endColumnRelative=l},e.StructReferenceExpression=function(a,c){f.call(this,b.ExpressionType.structReference)},e.NameIdentityExpression=function(a){f.call(this,b.ExpressionType.unknow)},e.ExternalNameIdentityExpression=function(a,c){f.call(this,b.ExpressionType.unknow)}}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b=window.GC.Spread.Sheets.CellTypes;a.BaseCellType=b.Base,a.TextCellType=b.Text,a.RowHeaderCellType=b.RowHeader,a.ColumnHeaderCellType=b.ColumnHeader,a.CornerCellType=b.Corner,a.CheckBoxTextAlign=b.CheckBoxTextAlign,a.CheckBoxCellType=b.CheckBox,a.ButtonCellType=b.Button,a.HyperLinkTargetType=a.F5(b.HyperLinkTargetType),a.HyperLinkCellType=b.HyperLink,a.EditorValueType=a.F5(b.EditorValueType),a.ComboBoxCellType=b.ComboBox,a.CustomCellType=a.BaseCellType}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c=window.GC.Spread.Sheets.Comments;a.Comment=c.Comment,a.CommentState=a.F5(c.CommentState),a.DisplayMode=a.F5(c.DisplayMode),a.Padding=c.Padding,b=a.Sheet,b.prototype.setComment=function(a,b,c){var d,e,f,g;if(void 0!==a&&void 0!==b)if(c){d=this.comments.add(a,b,c),e=["clone","toJSON","fromJSON","text","zIndex"];for(f in c)e.indexOf(f)===-1&&(g=c[f],"function"==typeof g&&d[f](c[f]()))}else this.comments.remove(a,b)},b.prototype.getComment=function(a,b){return this.comments.get(a,b)},b.prototype.getComments=function(){return this.comments.all()}}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c,d,e,f,g,h,i=window.GC.Spread.Sheets.ConditionalFormatting,j=i.IconSetRule,k=a.I5,l=a.defineProperty,m=a.getPropertyValue,n=a._5,o=null,p=void 0;function q(a){l(a,"innerRule",["ranges","style","condition","type","operator","value1","value2","text","formula","rank"])}function r(b){var c={};switch(b.ruleType()){case 1:c=new a.CellValueRule;break;case 2:c=new a.SpecificTextRule;break;case 3:c=new a.FormulaRule;break;case 4:c=new a.DateOccurringRule;break;case 5:c=new a.Top10Rule;break;case 6:c=new a.UniqueRule;break;case 7:c=new a.DuplicateRule;break;case 8:c=new a.AverageRule;break;case 10:c=new a.TwoScaleRule;break;case 11:c=new a.ThreeScaleRule;break;case 12:c=new a.DataBarRule;break;case 13:c=new a.IconSetRule;break;default:c=new a.ConditionRuleBase}return c.innerRule=b,c}function s(a,b){var c=b;if(c&&!c.innerRule)return a.Y5.every(function(a){return a.innerRule!==c||(c=a,!1)}),c}function t(a){a.hasNoReference=function(){var a=this.innerRule.ranges();return!(a&&a.length>0)},["evaluate","initCondition","reset","contains","fromJSON","toJSON","priority","getExpected","intersects","stopIfTrue","getBaseCoordinate"].forEach(function(b){n(a,"innerRule",b)}),n(a,"innerRule","createCondition",o,function(a){return v(a)})}function u(b){a.defineProperty(b,"innerCondition",["compareType","item1","item2","ignoreBlank","expected","formula","treatNullValueAsZero","integerValue","forceValue2Text","useWildCards","ignoreCase","customValueType","expectTypeId","type","ranges","isPercent","regex"])}function v(b){var c={};switch(b.conType()){case 0:c=new a.RelationCondition;break;case 1:c=new a.NumberCondition;break;case 2:c=new a.TextCondition;break;case 3:c=new a.ColorCondition;break;case 4:c=new a.FormulaCondition;break;case 5:c=new a.DateCondition;break;case 6:c=new a.DateExCondition;break;case 7:c=new a.TextLengthCondition;break;case 8:c=new a.Top10Condition;break;case 10:c=new a.AverageCondition;break;case 11:c=new a.CellValueCondition;break;case 12:c=new a.AreaCondition}return c.innerCondition=b,c}function w(a){["evaluate","reset","getExpected","getValidList","fromJSON","toJSON"].forEach(function(b){n(a,"innerCondition",b)})}a.GeneralCompareType=a.F5(i.GeneralComparisonOperators),a.RelationCompareType=a.F5(i.LogicalOperators),a.ComparisonOperator=a.F5(i.ComparisonOperators),a.TextComparisonOperator=a.F5(i.TextComparisonOperators),a.TextCompareType=a.F5(i.TextCompareType),a.ColorCompareType=a.F5(i.ColorCompareType),a.CustomValueType=a.F5(i.CustomValueType),a.DateCompareType=a.F5(i.DateCompareType),a.Top10ConditionType=a.F5(i.Top10ConditionType),a.DateOccurringType=a.F5(i.DateOccurringType),a.QuarterType=a.F5(i.QuarterType),a.AverageConditionType=a.F5(i.AverageConditionType),a.ScaleValueType=a.F5(i.ScaleValueType),a.BarDirection=a.F5(i.BarDirection),a.DataBarAxisPosition=a.F5(i.DataBarAxisPosition),a.IconSetType=a.F5(i.IconSetType),a.IconValueType=a.F5(i.IconValueType),a.ConditionType=a.F5(i.ConditionType),a.RuleType=a.F5(i.RuleType),b=a.Condition=i.Condition,a.RelationCondition=function(a){k(c,a);function c(a,c,d){c&&c.innerCondition&&(c=c.innerCondition),d&&d.innerCondition&&(d=d.innerCondition),this.innerCondition=new b(0,{compareType:a,item1:c,item2:d,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.create=function(a,b,d){return new c(a,b,d)},w(c.prototype),c}(b),a.NumberCondition=function(a){k(c,a);function c(a,c,d){this.innerCondition=new b(1,{compareType:a,expected:c,formula:d,ignoreBlank:!1,integerValue:!1}),this.innerCondition.outer=this,u(this)}return w(c.prototype),c}(b),a.TextCondition=function(a){k(c,a);function c(a,c,d){this.innerCondition=new b(2,{compareType:a,expected:c,formula:d,forceValue2Text:!1,useWildCards:!0,ignoreCase:!1,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.getExpectedString=function(a,b,c){var d=this.getExpected(a,b,c);return d===p||d===o?o:""+d},w(c.prototype),c}(b),a.ColorCondition=function(a){k(c,a);function c(a,c){this.innerCondition=new b(3,{compareType:a,expected:c,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return w(c.prototype),c}(b),a.FormulaCondition=function(a){k(c,a);function c(a,c){this.innerCondition=new b(4,{customValueType:a,formula:c,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return w(c.prototype),c}(b),a.DateCondition=function(a){k(c,a);function c(a,c,d){this.innerCondition=new b(5,{compareType:a,expected:c,formula:d,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.getExpectedDateTime=function(a,b,c){var d=this.getExpected(a,b,c);return d instanceof Date?d:"string"==typeof d?new Date(d):o},w(c.prototype),c}(b),a.DateExCondition=function(a){k(c,a);function c(a){this.innerCondition=new b(6,{expected:a,formula:o,expectTypeId:0,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return w(c.prototype),c.prototype.getExpectedInt=function(a,b,c){var d=this.getExpected(a,b,c);return d=parseInt(d,10),isNaN(d)?o:d},c.fromDay=b.fromDay,c.fromMonth=b.fromMonth,c.fromQuarter=b.fromQuarter,c.fromWeek=b.fromWeek,c.fromYear=b.fromYear,c}(b),a.TextLengthCondition=function(a){k(c,a);function c(a,c,d){this.innerCondition=new b(7,{compareType:a,expected:c,formula:d,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.getExpectedInt=function(a,b,c){var d=this.getExpected(a,b,c);return d=parseInt(d,10),isNaN(d)?o:d},w(c.prototype),c}(b),a.Top10Condition=function(a){k(c,a);function c(a,c,d){this.innerCondition=new b(8,{type:a,expected:c,ranges:d,isPercent:!1,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.getExpectedInt=function(a,b,c){var d=this.getExpected(a,b,c);return d=parseInt(d,10),isNaN(d)||!isFinite(d)?o:d},w(c.prototype),c}(b),a.UniqueCondition=function(a){k(c,a);function c(a,c){this.innerCondition=new b(9,{expected:a,ranges:c,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.getExpectedBoolean=function(a,b,c){var d=this.getExpected(a,b,c);return!!d},w(c.prototype),c}(b),a.AverageCondition=function(a){k(c,a);function c(a,c){this.innerCondition=new b(10,{type:a,ranges:c,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.getExpectedDouble=function(a,b,c){var d=this.getExpected(a,b,c);return d=parseFloat(d),isNaN(d)?NaN:d},w(c.prototype),c}(b),a.CellValueCondition=function(a){k(c,a);function c(a,c,d){this.innerCondition=new b(11,{compareType:a,expected:c,formula:d,treatNullValueAsZero:!1}),this.innerCondition.outer=this,u(this)}return c.prototype.isSatisfyingCondition=function(a){return this.evaluate(o,0,0,a)},w(c.prototype),c}(b),a.AreaCondition=function(a){k(c,a);function c(a,c){this.innerCondition=new b(12,{expected:a,formula:c,ignoreBlank:!1}),this.innerCondition.outer=this,u(this)}return w(c.prototype),c.fromSource=b.fromSource,c.fromFormula=b.fromFormula,c}(b),c=a.ConditionRuleBase=function(a){k(b,a);function b(a){this.innerRule=new i.ConditionRuleBase(o,a),q(this)}return b.prototype.isScaleRule=function(){return!1},t(b.prototype),b}(i.ConditionRuleBase),d=a.NormalConditionRule=i.NormalConditionRule,a.AverageRule=function(a){k(b,a);function b(a,b){this.innerRule=new d(8,o,b,o,o,o,o,o,a),q(this)}return t(b.prototype),b}(d),a.CellValueRule=function(a){k(b,a);function b(a,b,c,e){this.innerRule=new d(1,o,e,a,b,c),q(this)}return b.prototype.isFormula=function(a){return a!==p&&a!==o&&"="===a[0]},t(b.prototype),b}(d),a.DateOccurringRule=function(a){k(b,a);function b(a,b){this.innerRule=new d(4,o,b,o,o,o,o,o,a),q(this)}return t(b.prototype),b}(d),a.DuplicateRule=function(a){k(b,a);function b(a){this.innerRule=new d(7,o,a),q(this)}return t(b.prototype),b}(d),a.FormulaRule=function(a){k(b,a);function b(a,b){this.innerRule=new d(3,o,b,o,o,o,o,a),q(this)}return t(b.prototype),b}(d),a.SpecificTextRule=function(a){k(b,a);function b(a,b,c){this.innerRule=new d(2,o,c,a,o,o,b),q(this)}return t(b.prototype),b}(d),a.Top10Rule=function(a){k(b,a);function b(a,b,c){this.innerRule=new d(5,o,c,o,o,o,o,o,a,b),q(this)}return t(b.prototype),b}(d),a.UniqueRule=function(a){k(b,a);function b(a){this.innerRule=new d(6,o,a),q(this)}return t(b.prototype),b}(d),e=a.ScaleRule=i.ScaleRule,a.TwoScaleRule=function(a){k(b,a);function b(a,b,c,d,f,g){0===arguments.length?this.innerRule=new e(10):this.innerRule=new e(10,a,b,c,o,o,o,d,f,g),q(this)}var c=["minType","minValue","minColor","maxType","maxValue","maxColor"];return["getMinimumType","setMinimumType","getMinimumValue","setMinimumValue","getMinimumColor","setMinimumColor","getMaximumType","setMaximumType","getMaximumValue","setMaximumValue","getMaximumColor","setMaximumColor"].forEach(function(a,d){n(b.prototype,"innerRule",a,c[d/2])}),t(b.prototype),b.prototype.isScaleRule=function(){return!0},b}(e),a.ThreeScaleRule=function(a){k(b,a);function b(a,b,c,d,f,g,h,i,j){0===arguments.length?this.innerRule=new e(11):this.innerRule=new e(11,a,b,c,d,f,g,h,i,j),q(this)}var c=["minType","minValue","minColor","midType","midValue","midColor","maxType","maxValue","maxColor"];return["getMinimumType","setMinimumType","getMinimumValue","setMinimumValue","getMinimumColor","setMinimumColor","getMidpointType","setMidpointType","getMidpointValue","setMidpointValue","getMidpointColor","setMidpointColor","getMaximumType","setMaximumType","getMaximumValue","setMaximumValue","getMaximumColor","setMaximumColor"].forEach(function(a,d){n(b.prototype,"innerRule",a,c[d/2])}),t(b.prototype),b}(e),a.DataBarRule=function(a){k(b,a);function b(a,b,c,d,e,f){0===arguments.length?this.innerRule=new i.DataBarRule:this.innerRule=new i.DataBarRule(a,b,c,d,e,f),q(this)}return[["minimumType","minType"],["minimumValue","minValue"],["maximumType","maxType"],["maximumValue","maxValue"]].forEach(function(a){n(b.prototype,"innerRule",a[0],a[1])}),["gradient","color","showBorder","borderColor","dataBarDirection","showBarOnly","negativeFillColor","useNegativeFillColor","negativeBorderColor","useNegativeBorderColor","axisPosition","axisColor"].forEach(function(a){n(b.prototype,"innerRule",a)}),t(b.prototype),b}(i.DataBarRule),f=a.IconSetRule=function(a){k(b,a);function b(a){0===arguments.length?this.innerRule=new j:this.innerRule=new j(a),q(this)}return b.prototype.iconCriteria=function(){return this.innerRule.iconCriteria()},["iconSetType","reverseIconOrder","showIconOnly"].forEach(function(a){n(b.prototype,"innerRule",a)}),t(b.prototype),b}(j),g=j.getIcon,j.getIcon=function(){return f.getIcon!==g?f.getIcon.apply(o,arguments):g.apply(o,arguments)},a.IconCriterion=function(a,b,c){this.isGreaterThanOrEqualTo=a,this.iconValueType=b,this.iconValue=c},h=a.ConditionalFormats=function(a){k(b,a);function b(a){this.sheet=a,this.Y5=[],this.cfs=a.conditionalFormats}return b.prototype.addRule=function(a){return a&&a.innerRule?(this.Y5.push(a),this.cfs.addRule(a.innerRule),a):(this.cfs.addRule(a),r(a))},b.prototype.removeRule=function(a){var b,c;if(a&&a.innerRule){for(b=this.Y5,c=b.length-1;c>=0;c--)b[c]&&b[c].innerRule===a&&b.splice(c,1);this.cfs.removeRule(a.innerRule)}else this.cfs.removeRule(a)},b.prototype.getRule=function(a){var b=this.cfs.getRule(a);return s(this,b)},b.prototype.getRules=function(a,b){var c,d=this,e=[];return c=0===arguments.length?d.cfs.getRules():d.cfs.getRules(a,b),c.forEach(function(a){e.push(s(d,a))}),e},b.prototype.containsRule=function(a,b,c){return a&&a.innerRule&&(a=a.innerRule),this.cfs.containsRule(a,b,c)},b.prototype.clearRule=function(){this.cfs.clearRule(),this.Y5.length=0},b.prototype.count=function(){return this.cfs.count()},b.prototype.removeRuleByRange=function(a,b,c,d){var e,f,g,h,i,j;for(this.cfs.removeRuleByRange(a,b,c,d),e=this.Y5,f=e.length,g=0,h=[];g=0;g--)e[g]===h[j]?j--:e.splice(g,1)},b}(i.ConditionalFormats),a.Sheet.prototype.getConditionalFormats=function(){return this.U5||(this.U5=new h(this)),this.U5}}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(b){var c,d,e=window.GC.Spread.Sheets.Fill;b.AutoFillType=b.F5(e.AutoFillType),b.FillDirection=b.F5(e.FillDirection),b.FillSeries=b.F5(e.FillSeries),b.FillType=b.F5(e.FillType),b.FillDateUnit=b.F5(e.FillDateUnit),c=b.Sheet,d=c.prototype.fillAuto,c.prototype.fillAuto=function(c,e,f){f===a.Sheets.FillSeries.Column||f===a.Sheets.FillSeries.Row?d.apply(this,[c,e,{fillType:b.FillType.Auto,series:f}]):d.apply(this,arguments)},c.prototype.fillAutobyDirection=function(a,c,d){this.fillAuto(a,c,{fillType:b.FillType.Direction,direction:d})},c.prototype.fillLinear=function(a,c,d,e,f){this.fillAuto(a,c,{fillType:b.FillType.Linear,series:d,step:e,stop:f})},c.prototype.fillGrowth=function(a,c,d,e,f){this.fillAuto(a,c,{fillType:b.FillType.Growth,series:d,step:e,stop:f})},c.prototype.fillDate=function(a,c,d,e,f,g){this.fillAuto(a,c,{fillType:b.FillType.Date,series:d,step:f,stop:g,unit:e})}}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c,d,e,f=window.GC.Spread.Sheets.ConditionalFormatting,g=window.GC.Spread.Sheets.Filter;a.FilterActionType=a.F5(g.FilterActionType),b=g.RowFilterBase,c=b.prototype.addFilterItem,b.prototype.addFilterItem=function(a,b){b&&b.innerCondition&&(b=b.innerCondition),c.call(this,a,b)},b.prototype.isHideRowFilter=function(){return!1},b.prototype.getShowFilterButton=function(){return this.filterButtonVisible()},b.prototype.setShowFilterButton=function(a){this.filterButtonVisible(a)},b.prototype.addAverageFilter=function(a,b){var c=new f.Condition(f.ConditionType.averageCondition,{type:b});this.addFilterItem(a,c)},b.prototype.addBackgroundFilter=function(a,b){var c=new f.Condition(f.ConditionType.colorCondition,{compareType:f.ColorCompareType.backgroundColor,expected:b});this.addFilterItem(a,c)},b.prototype.addDateFilter=function(a,b,c){var d=new f.Condition(f.ConditionType.dateCondition,{compareType:b,expected:c});this.addFilterItem(a,d)},b.prototype.addForegroundFilter=function(a,b){var c=new f.Condition(f.ConditionType.colorCondition,{compareType:f.ColorCompareType.foregroundColor,expected:b});this.addFilterItem(a,c)},b.prototype.addNumberFilter=function(a,b,c){var d=new f.Condition(f.ConditionType.numberCondition,{compareType:b,expected:c});this.addFilterItem(a,d)},b.prototype.addTextFilter=function(a,b,c){var d=new f.Condition(f.ConditionType.textCondition,{compareType:b,expected:c});this.addFilterItem(a,d)},b.prototype.addTop10Filter=function(a,b,c){var d=new f.Condition(f.ConditionType.top10Condition,{type:b,expected:c});this.addFilterItem(a,d)},b.prototype.isColumnFiltered=function(a){return this.isFiltered(a)},d=b.prototype.getFilterItems,b.prototype.getFilterItems=function(a){var b=d.call(this,a),c=[];return b.forEach(function(a){a&&a.outer?c.push(a.outer):c.push(a)}),c},a.RowFilterBase=b,e=g.HideRowFilter,e.prototype.isHideRowFilter=function(){return!0},a.HideRowFilter=e}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c=window.GC.Spread.Sheets.FloatingObjects,d=c.FloatingObject;d.prototype.position=function(a){return 0===arguments.length?{x:this.x(),y:this.y()}:(this.x(a.x),void this.y(a.y))},a.FloatingObject=d,a.Picture=c.Picture,a.CustomFloatingObject=d,a.CustomFloatingObject.prototype.Content=d.prototype.content,b=a.Sheet,b.prototype.addFloatingObject=function(a){return this.floatingObjects.add(a)},b.prototype.findFloatingObject=function(a){return this.floatingObjects.get(a)},b.prototype.removeFloatingObject=function(a){return this.floatingObjects.remove(a)},b.prototype.getFloatingObjects=function(){return this.floatingObjects.all()},b.prototype.setFloatingObjectZIndex=function(a,b){var c=this.pictures.get(a);return c?this.pictures.zIndex(a,b):this.floatingObjects.zIndex(a,b)},b.prototype.getFloatingObjectZIndex=function(a){var b=this.pictures.get(a);return b?this.pictures.zIndex(a):this.floatingObjects.zIndex(a)},b.prototype.addPicture=function(a,b,c,d,e,f,g,h,i,j){var k,l,m,n,o,p,q;function r(a,b,c){var d,e,f,g=a.getCellRect(b,c);if(void 0!==g.x&&void 0!==g.y)return{x:g.x,y:g.y};for(e=0,f={},d=0;d-1||(c.isEOF=!0,!1)},a.prototype.reset=function(){this.isEOF=!1,this.current=-1},a}(),c=a.Sheet,c.prototype.showRowRangeGroup=c.prototype.showRowOutline,c.prototype.showColumnRangeGroup=c.prototype.showColumnOutline}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b=window.GC.Spread.Sheets.Print;b&&(a.PrintVisibilityType=a.F5(b.PrintVisibilityType),a.PrintCentering=a.F5(b.PrintCentering),a.PrintPageOrientation=a.F5(b.PrintPageOrientation),a.PrintPageOrder=a.F5(b.PrintPageOrder),a.PaperKind=a.F5(b.PaperKind,{dlEnvelope:"DLEnvelope",usStandardFanfold:"USStandardFanfold"}),a.PaperSize=b.PaperSize,a.PrintInfo=b.PrintInfo)}(a.Sheets||(a.Sheets={}))}(GcSpread||(GcSpread={})),function(a){!function(a){var b,c,d=null,e=Math.max,f=Math.min,g=window.GC.Spread.Sheets.Search;a.SearchFlags=a.F5(g.SearchFlags),a.SearchOrder=a.F5(g.SearchOrder),a.SearchFoundFlags=a.F5(g.SearchFoundFlags),a.SearchResult=g.SearchResult,a.SearchCondition=g.SearchCondition,function(a){a[a.All=0]="All",a[a.HasValue=1]="HasValue",a[a.HasStyle=2]="HasStyle"}(a.EnumeratorOption||(a.EnumeratorOption={})),b=a.EnumeratorOption,c=a.SearchOrder,a.CellsEnumerator=function(){function g(a,c){if(this.actualEndRow=-1,this.isActualEndRowSet=!1,this.isBlockRange=!1,this.options=b.HasValue,!a)throw Error("sheet is null.");var d=this;d.worksheet=a,d.sheetArea=c.sheetArea,d.searchOrder=c.searchOrder,d.rowStart=c.rowStart,d.columnStart=c.columnStart,d.rowEnd=c.rowEnd,d.columnEnd=c.columnEnd,d.findBeginRow=c.findBeginRow,d.findBeginColumn=c.findBeginColumn,d.init(),d.block=d.worksheet}return g.prototype.init=function(){this.currentRow=-1,this.currentColumn=-1},g.prototype.moveNext=function(){var a=this;if(a.currentRow===-1&&a.currentColumn===-1&&a.rowStart<=a.rowEnd&&a.columnStart<=a.columnEnd&&(a.currentRow=a.findBeginRow,a.currentColumn=a.findBeginColumn,a.isIndexAcceptable(a.currentRow,a.currentColumn)&&!a.skipCurrent()))return!0;if(a.rowStart<=a.rowEnd&&a.columnStart<=a.columnEnd)for(;a.tryMoveNext();)if(!a.skipCurrent())return!0;return a.currentRow=-1,a.currentColumn=-1,!1},g.prototype.isIndexAcceptable=function(a,c){var e=this;return!(!((e.options&b.HasValue)>0&&e.block)||e.block.getValue(a,c,e.sheetArea)===d&&e.block.getFormula(a,c,e.sheetArea)===d&&e.block.getTag(a,c,e.sheetArea)===d)||e.options===b.All},g.prototype.skipCurrent=function(){return!1},g.prototype.tryMoveNext=function(){var a,c,d=this,e=d.currentRow,f=d.currentColumn,g=!1;return(d.options&b.HasValue)>0&&(a={value:e},c={value:f},d.nextValue(a,c)&&(e=a.value,f=c.value,g=!0)),d.options===b.HasValue&&(g?(d.currentRow=e,d.currentColumn=f):(d.currentRow=-1,d.currentColumn=-1)),!(d.currentRow===-1&&d.currentColumn===-1)},g.prototype.nextValue=function(a,b){for(;this.next(a,b);)if(this.isIndexAcceptable(a.value,b.value))return!0;return!1},g.prototype.nextValue=function(a,b){for(;this.next(a,b);)if(this.isIndexAcceptable(a.value,b.value))return!0;return!1},g.prototype.getNextNonEmptyColumnInRow=function(a,b,c){ for(var e=c;e<=this.columnEnd;e++)if(a.getValue(b,e)!==d)return e;return-1},g.prototype.isZOrderOver=function(a,b){var c=this;return c.isBlockRange?a>=c.rowStart&&a<=c.getActualEndRow()&&b>=c.columnStart&&b<=c.actualEndColumn():!(a>c.getActualEndRow())&&((a!==c.getActualEndRow()||!(b<0||b>c.actualEndColumn()))&&(!(a0&&g.block&&(d=g.block.getRowCount(g.sheetArea)-1,a=e(a,d),c=!0),a=c?f(a,g.rowEnd):g.rowEnd,g.actualEndRow=a,g.isActualEndRowSet=!0,g.actualEndRow)},g.prototype.actualEndColumn=function(){return this.columnEnd},g.prototype.next=function(a,b){var d,e,f=this;return f.searchOrder===c.ZOrder?(d=f.getActualEndColumnZOrder(a.value),b.value+1<=d?(b.value+=1,f.isZOrderOver(a.value,b.value)):a.value+1<=f.getActualEndRow()&&(a.value+=1,f.isBlockRange?b.value=f.columnStart:b.value=0,f.isZOrderOver(a.value,b.value))):f.searchOrder===c.NOrder&&(e=f.getActualEndRowNOrder(b.value),a.value+1<=e?(a.value+=1,f.isNOrderOver(a.value,b.value)):b.value+1<=f.actualEndColumn()&&(b.value+=1,f.isBlockRange?a.value=f.rowStart:a.value=0,f.isNOrderOver(a.value,b.value)))},g.prototype.getActualEndColumnZOrder=function(a){var c,d,g=this;return a>=g.rowStart&&a<=g.rowEnd?(c=-1,d=!1,(g.options&b.HasValue)>0&&g.block&&(c=e(c,g.block.getColumnCount(g.sheetArea)-1),d=!0),c=a===g.rowEnd||g.isBlockRange?d?f(c,g.columnEnd):g.columnEnd:d?e(c,g.worksheet.getColumnCount(g.sheetArea)-1):g.worksheet.getColumnCount(g.sheetArea)-1):-1},g.prototype.getActualEndRowNOrder=function(a){var c,d,g=this;return a>=g.columnStart&&a<=g.columnEnd?(c=-1,d=!1,(g.options&b.HasValue)>0&&g.block&&(c=e(c,g.rowEnd),d=!0),c=a===g.columnEnd||g.isBlockRange?d?f(c,g.rowEnd):g.rowEnd:d?e(c,g.worksheet.getRowCount(g.sheetArea)-1):g.worksheet.getRowCount(g.sheetArea)-1):-1},g.prototype.isNOrderOver=function(a,b){var c=this;return c.isBlockRange?a>=c.rowStart&&a<=c.getActualEndRow()&&b>=c.columnStart&&b<=c.actualEndColumn():!(b>c.actualEndColumn())&&((b!==c.actualEndColumn()||!(a<0||a>c.getActualEndRow()))&&(!(b-1))&&(b.splice(c,1),!0))};function h(a,b,c){if(b){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(b,a,c);var d=b.length;for(c=c?c<0?Math_max(0,d+c):c:0;c